From 47f7538bee0ce53d24cea052781e6e714d187eef Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Wed, 4 Dec 2019 19:32:23 +0000 Subject: [PATCH] Generated from 06afab0f54bff3e5dc2d842648fbd77ff4c97b77 Incorporated ARM feedback --- .../arm-deploymentmanager/LICENSE.txt | 2 +- .../arm-deploymentmanager/README.md | 11 +- .../arm-deploymentmanager/package.json | 14 +- .../arm-deploymentmanager/rollup.config.js | 22 +- .../src/azureDeploymentManagerContext.ts | 4 +- .../src/models/artifactSourcesMappers.ts | 49 +- .../arm-deploymentmanager/src/models/index.ts | 967 ++++++++++-------- .../src/models/mappers.ts | 299 +++++- .../src/models/operationsMappers.ts | 10 +- .../src/models/rolloutsMappers.ts | 55 +- .../src/models/serviceTopologiesMappers.ts | 51 +- .../src/models/serviceUnitsMappers.ts | 53 +- .../src/models/servicesMappers.ts | 51 +- .../src/models/stepsMappers.ts | 53 +- .../src/operations/artifactSources.ts | 63 ++ .../src/operations/operations.ts | 36 +- .../src/operations/rollouts.ts | 63 ++ .../src/operations/serviceTopologies.ts | 63 ++ .../src/operations/serviceUnits.ts | 73 ++ .../src/operations/services.ts | 68 ++ .../src/operations/steps.ts | 63 ++ 21 files changed, 1424 insertions(+), 646 deletions(-) diff --git a/sdk/deploymentmanager/arm-deploymentmanager/LICENSE.txt b/sdk/deploymentmanager/arm-deploymentmanager/LICENSE.txt index a70e8cf66038..b73b4a1293c3 100644 --- a/sdk/deploymentmanager/arm-deploymentmanager/LICENSE.txt +++ b/sdk/deploymentmanager/arm-deploymentmanager/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/deploymentmanager/arm-deploymentmanager/README.md b/sdk/deploymentmanager/arm-deploymentmanager/README.md index 3fe2eaf457f0..631363044463 100644 --- a/sdk/deploymentmanager/arm-deploymentmanager/README.md +++ b/sdk/deploymentmanager/arm-deploymentmanager/README.md @@ -9,7 +9,7 @@ This package contains an isomorphic SDK for AzureDeploymentManager. ### How to Install -``` +```bash npm install @azure/arm-deploymentmanager ``` @@ -19,13 +19,13 @@ npm install @azure/arm-deploymentmanager ##### 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"; @@ -49,7 +49,7 @@ msRestNodeAuth.interactiveLogin().then((creds) => { ##### Install @azure/ms-rest-browserauth -``` +```bash npm install @azure/ms-rest-browserauth ``` @@ -99,5 +99,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%2Fdeploymentmanager%2Farm-deploymentmanager%2FREADME.png) +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/deploymentmanager/arm-deploymentmanager/README.png) diff --git a/sdk/deploymentmanager/arm-deploymentmanager/package.json b/sdk/deploymentmanager/arm-deploymentmanager/package.json index a606dfd240ff..53ed9d4cd123 100644 --- a/sdk/deploymentmanager/arm-deploymentmanager/package.json +++ b/sdk/deploymentmanager/arm-deploymentmanager/package.json @@ -4,8 +4,8 @@ "description": "AzureDeploymentManager 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", + "@azure/ms-rest-azure-js": "^1.3.2", + "@azure/ms-rest-js": "^1.8.1", "tslib": "^1.9.3" }, "keywords": [ @@ -23,15 +23,16 @@ "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/deploymentmanager/arm-deploymentmanager", + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/deploymentmanager/arm-deploymentmanager", "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/deploymentmanager/arm-deploymentmanager/rollup.config.js b/sdk/deploymentmanager/arm-deploymentmanager/rollup.config.js index 3ecd8b075746..c39c8915f416 100644 --- a/sdk/deploymentmanager/arm-deploymentmanager/rollup.config.js +++ b/sdk/deploymentmanager/arm-deploymentmanager/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/azureDeploymentManager.js', - external: ["@azure/ms-rest-js", "@azure/ms-rest-azure-js"], + input: "./esm/azureDeploymentManager.js", + external: [ + "@azure/ms-rest-js", + "@azure/ms-rest-azure-js" + ], output: { file: "./dist/arm-deploymentmanager.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/deploymentmanager/arm-deploymentmanager/src/azureDeploymentManagerContext.ts b/sdk/deploymentmanager/arm-deploymentmanager/src/azureDeploymentManagerContext.ts index fd7b70425219..af8b3777bae2 100644 --- a/sdk/deploymentmanager/arm-deploymentmanager/src/azureDeploymentManagerContext.ts +++ b/sdk/deploymentmanager/arm-deploymentmanager/src/azureDeploymentManagerContext.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-deploymentmanager"; -const packageVersion = "0.1.0"; +const packageVersion = "2.1.0"; export class AzureDeploymentManagerContext extends msRestAzure.AzureServiceClient { credentials: msRest.ServiceClientCredentials; @@ -45,7 +45,7 @@ export class AzureDeploymentManagerContext extends msRestAzure.AzureServiceClien super(credentials, options); - this.apiVersion = '2018-09-01-preview'; + this.apiVersion = '2019-11-01-preview'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; diff --git a/sdk/deploymentmanager/arm-deploymentmanager/src/models/artifactSourcesMappers.ts b/sdk/deploymentmanager/arm-deploymentmanager/src/models/artifactSourcesMappers.ts index d605a7895823..8c22a6325f9e 100644 --- a/sdk/deploymentmanager/arm-deploymentmanager/src/models/artifactSourcesMappers.ts +++ b/sdk/deploymentmanager/arm-deploymentmanager/src/models/artifactSourcesMappers.ts @@ -1,45 +1,50 @@ /* * 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 { discriminators, ArtifactSource, - TrackedResource, - Resource, - BaseResource, Authentication, + AzureEntityResource, + BaseResource, CloudError, - RolloutRequest, + HealthCheckStepAttributes, + HealthCheckStepProperties, Identity, - Step, + Message, PrePostStep, - SasAuthentication, + ProxyResource, + Resource, + ResourceOperation, + RestHealthCheck, + RestHealthCheckStepAttributes, + RestRequest, + RestRequestAuthentication, + RestResponse, + RestResponseRegex, Rollout, RolloutOperationInfo, + RolloutRequest, + RolloutStep, + SasAuthentication, Service, ServiceProperties, + ServiceResource, + ServiceTopologyResource, ServiceUnit, - ServiceUnitProperties, ServiceUnitArtifacts, - RolloutStep, - StepOperationInfo, - ResourceOperation, - Message, - ServiceTopologyResource, - ServiceResource, + ServiceUnitProperties, ServiceUnitResource, - StepResource, + StepGroup, + StepOperationInfo, StepProperties, - WaitStepProperties, + StepResource, + TrackedResource, WaitStepAttributes, - ProxyResource, - AzureEntityResource + WaitStepProperties } from "../models/mappers"; - diff --git a/sdk/deploymentmanager/arm-deploymentmanager/src/models/index.ts b/sdk/deploymentmanager/arm-deploymentmanager/src/models/index.ts index 329d4d1ab976..b21aecfa2157 100644 --- a/sdk/deploymentmanager/arm-deploymentmanager/src/models/index.ts +++ b/sdk/deploymentmanager/arm-deploymentmanager/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,177 +11,140 @@ import * as msRest from "@azure/ms-rest-js"; export { BaseResource, CloudError }; - /** - * @interface - * An interface representing Identity. * Identity for the resource. - * */ export interface Identity { /** - * @member {string} type The identity type. + * The identity type. */ type: string; /** - * @member {string[]} identityIds The list of identities. + * The list of identities. */ identityIds: string[]; } /** - * @interface - * An interface representing PrePostStep. * The properties that define a step. - * */ export interface PrePostStep { /** - * @member {string} stepId The resource Id of the step to be run. + * The resource Id of the step to be run. */ stepId: string; } /** - * @interface - * An interface representing Step. - * The properties that define an Azure Deployment Manager step. - * + * The properties that define a Step group in a rollout. */ -export interface Step { +export interface StepGroup { /** - * @member {string} name The name of the step group. + * The name of the step group. */ name: string; /** - * @member {string[]} [dependsOnStepGroups] The list of step group names on - * which this step group depends on. + * The list of step group names on which this step group depends on. */ dependsOnStepGroups?: string[]; /** - * @member {PrePostStep[]} [preDeploymentSteps] The list of steps to be run - * before deploying the target. + * The list of steps to be run before deploying the target. */ preDeploymentSteps?: PrePostStep[]; /** - * @member {string} deploymentTargetId The resource Id of service unit to be - * deployed. The service unit should be from the service topology referenced - * in targetServiceTopologyId + * The resource Id of service unit to be deployed. The service unit should be from the service + * topology referenced in targetServiceTopologyId */ deploymentTargetId: string; /** - * @member {PrePostStep[]} [postDeploymentSteps] The list of steps to be run - * after deploying the target. + * The list of steps to be run after deploying the target. */ postDeploymentSteps?: PrePostStep[]; } /** - * @interface * An interface representing Resource. - * @extends BaseResource */ export interface Resource extends BaseResource { /** - * @member {string} [id] Fully qualified resource Id for the resource. Ex - + * Fully qualified resource Id for the resource. Ex - * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * **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 resource - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The name of the resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; /** - * @member {string} [type] The type of the resource. Ex- - * Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The type of the resource. Ex- Microsoft.Compute/virtualMachines or + * Microsoft.Storage/storageAccounts. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: string; } /** - * @interface - * An interface representing TrackedResource. * The resource model definition for a ARM tracked top level resource - * - * @extends Resource */ export interface TrackedResource extends Resource { /** - * @member {{ [propertyName: string]: string }} [tags] Resource tags. + * Resource tags. */ tags?: { [propertyName: string]: string }; /** - * @member {string} location The geo-location where the resource lives + * The geo-location where the resource lives */ location: string; } /** - * @interface - * An interface representing RolloutRequest. * Defines the PUT rollout request body. - * - * @extends TrackedResource */ export interface RolloutRequest extends TrackedResource { /** - * @member {Identity} identity Identity for the resource. + * Identity for the resource. */ identity: Identity; /** - * @member {string} buildVersion The version of the build being deployed. + * The version of the build being deployed. */ buildVersion: string; /** - * @member {string} [artifactSourceId] The reference to the artifact source - * resource Id where the payload is located. + * The reference to the artifact source resource Id where the payload is located. */ artifactSourceId?: string; /** - * @member {string} targetServiceTopologyId The resource Id of the service - * topology from which service units are being referenced in step groups to - * be deployed. + * The resource Id of the service topology from which service units are being referenced in step + * groups to be deployed. */ targetServiceTopologyId: string; /** - * @member {Step[]} stepGroups The list of step groups that define the - * orchestration. + * The list of step groups that define the orchestration. */ - stepGroups: Step[]; + stepGroups: StepGroup[]; } /** - * @interface - * An interface representing ArtifactSource. - * The resource that defines the source location where the artifacts are - * located. - * - * @extends TrackedResource + * The resource that defines the source location where the artifacts are located. */ export interface ArtifactSource extends TrackedResource { /** - * @member {string} sourceType The type of artifact source used. + * The type of artifact source used. */ sourceType: string; /** - * @member {string} [artifactRoot] The path from the location that the - * 'authentication' property [say, a SAS URI to the blob container] refers - * to, to the location of the artifacts. This can be used to differentiate - * different versions of the artifacts. Or, different types of artifacts like - * binaries or templates. The location referenced by the authentication - * property concatenated with this optional artifactRoot path forms the - * artifact source location where the artifacts are expected to be found. + * The path from the location that the 'authentication' property [say, a SAS URI to the blob + * container] refers to, to the location of the artifacts. This can be used to differentiate + * different versions of the artifacts. Or, different types of artifacts like binaries or + * templates. The location referenced by the authentication property concatenated with this + * optional artifactRoot path forms the artifact source location where the artifacts are expected + * to be found. */ artifactRoot?: string; /** - * @member {AuthenticationUnion} authentication The authentication method to - * use to access the artifact source. + * The authentication method to use to access the artifact source. */ authentication: AuthenticationUnion; } @@ -194,859 +155,820 @@ export interface ArtifactSource extends TrackedResource { export type AuthenticationUnion = Authentication | SasAuthentication; /** - * @interface - * An interface representing Authentication. * Defines the authentication method and properties to access the artifacts. - * */ export interface Authentication { /** - * @member {string} type Polymorphic Discriminator + * Polymorphic Discriminator */ type: "Authentication"; } /** - * @interface - * An interface representing ArtifactSourcePropertiesModel. - * The properties that define the source location where the artifacts are - * located. - * + * The properties that define the source location where the artifacts are located. */ export interface ArtifactSourcePropertiesModel { /** - * @member {string} sourceType The type of artifact source used. + * The type of artifact source used. */ sourceType: string; /** - * @member {string} [artifactRoot] The path from the location that the - * 'authentication' property [say, a SAS URI to the blob container] refers - * to, to the location of the artifacts. This can be used to differentiate - * different versions of the artifacts. Or, different types of artifacts like - * binaries or templates. The location referenced by the authentication - * property concatenated with this optional artifactRoot path forms the - * artifact source location where the artifacts are expected to be found. + * The path from the location that the 'authentication' property [say, a SAS URI to the blob + * container] refers to, to the location of the artifacts. This can be used to differentiate + * different versions of the artifacts. Or, different types of artifacts like binaries or + * templates. The location referenced by the authentication property concatenated with this + * optional artifactRoot path forms the artifact source location where the artifacts are expected + * to be found. */ artifactRoot?: string; /** - * @member {AuthenticationUnion} authentication The authentication method to - * use to access the artifact source. + * The authentication method to use to access the artifact source. */ authentication: AuthenticationUnion; } /** - * @interface - * An interface representing SasAuthentication. - * Defines the properties to access the artifacts using an Azure Storage SAS - * URI. - * + * Defines the properties to access the artifacts using an Azure Storage SAS URI. */ export interface SasAuthentication { /** - * @member {string} type Polymorphic Discriminator + * Polymorphic Discriminator */ type: "Sas"; /** - * @member {string} sasUri The SAS URI to the Azure Storage blob container. - * Any offset from the root of the container to where the artifacts are - * located can be defined in the artifactRoot. + * The SAS URI to the Azure Storage blob container. Any offset from the root of the container to + * where the artifacts are located can be defined in the artifactRoot. */ sasUri: string; } /** - * @interface - * An interface representing CloudErrorBody. * Detailed error information of any failure. - * */ export interface CloudErrorBody { /** - * @member {string} [code] Error code string. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Error code string. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly code?: string; /** - * @member {string} [message] Descriptive error information. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Descriptive error information. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly message?: string; /** - * @member {string} [target] Error target + * Error target */ target?: string; /** - * @member {CloudErrorBody[]} [details] More detailed error information. + * More detailed error information. */ details?: CloudErrorBody[]; } /** - * @interface - * An interface representing RolloutOperationInfo. * Detailed runtime information of the rollout. - * */ export interface RolloutOperationInfo { /** - * @member {number} [retryAttempt] The ordinal count of the number of retry - * attempts on a rollout. 0 if no retries of the rollout have been performed. - * If the rollout is updated with a PUT, this count is reset to 0. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The ordinal count of the number of retry attempts on a rollout. 0 if no retries of the rollout + * have been performed. If the rollout is updated with a PUT, this count is reset to 0. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly retryAttempt?: number; /** - * @member {boolean} [skipSucceededOnRetry] True, if all steps that succeeded - * on the previous run/attempt were chosen to be skipped in this retry - * attempt. False, otherwise. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * True, if all steps that succeeded on the previous run/attempt were chosen to be skipped in + * this retry attempt. False, otherwise. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly skipSucceededOnRetry?: boolean; /** - * @member {Date} [startTime] The start time of the rollout in UTC. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The start time of the rollout in UTC. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly startTime?: Date; /** - * @member {Date} [endTime] The start time of the rollout in UTC. This - * property will not be set if the rollout has not completed yet. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The start time of the rollout in UTC. This property will not be set if the rollout has not + * completed yet. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly endTime?: Date; /** - * @member {CloudErrorBody} [error] The detailed error information for any - * failure. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The detailed error information for any failure. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly error?: CloudErrorBody; } /** - * @interface - * An interface representing StepOperationInfo. * Detailed information of a specific step run. - * */ export interface StepOperationInfo { /** - * @member {string} [deploymentName] The name of the ARM deployment initiated - * as part of the step. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The name of the ARM deployment initiated as part of the step. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly deploymentName?: string; /** - * @member {string} [correlationId] Unique identifier to track the request - * for ARM-based resources. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Unique identifier to track the request for ARM-based resources. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly correlationId?: string; /** - * @member {Date} [startTime] Start time of the action in UTC. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Start time of the action in UTC. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly startTime?: Date; /** - * @member {Date} [endTime] End time of the action in UTC. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * End time of the action in UTC. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly endTime?: Date; /** - * @member {Date} [lastUpdatedTime] Last time in UTC this operation was - * updated. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Last time in UTC this operation was updated. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly lastUpdatedTime?: Date; /** - * @member {CloudErrorBody} [error] The errors, if any, for the action. + * The errors, if any, for the action. */ error?: CloudErrorBody; } /** - * @interface - * An interface representing ResourceOperation. - * Individial resource operation information. - * + * Individual resource operation information. */ export interface ResourceOperation { /** - * @member {string} [resourceName] Name of the resource as specified in the - * artifacts. For ARM resources, this is the name of the resource specified - * in the template. + * Name of the resource as specified in the artifacts. For ARM resources, this is the name of the + * resource specified in the template. */ resourceName?: string; /** - * @member {string} [operationId] Unique identifier of the operation. For ARM - * resources, this is the operationId obtained from ARM service. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Unique identifier of the operation. For ARM resources, this is the operationId obtained from + * ARM service. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly operationId?: string; /** - * @member {string} [resourceType] Type of the resource as specified in the - * artifacts. For ARM resources, this is the type of the resource specified - * in the template. + * Type of the resource as specified in the artifacts. For ARM resources, this is the type of the + * resource specified in the template. */ resourceType?: string; /** - * @member {string} [provisioningState] State of the resource deployment. For - * ARM resources, this is the current provisioning state of the resource. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * State of the resource deployment. For ARM resources, this is the current provisioning state of + * the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly provisioningState?: string; /** - * @member {string} [statusMessage] Descriptive information of the resource - * operation. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Descriptive information of the resource operation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly statusMessage?: string; /** - * @member {string} [statusCode] Http status code of the operation. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Http status code of the operation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly statusCode?: string; } /** - * @interface - * An interface representing Message. * Supplementary contextual messages during a rollout. - * */ export interface Message { /** - * @member {Date} [timeStamp] Time in UTC this message was provided. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Time in UTC this message was provided. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly timeStamp?: Date; /** - * @member {string} [message] The actual message text. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The actual message text. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly message?: string; } /** - * @interface - * An interface representing RolloutStep. * Defines a specific step on a target service unit. - * */ export interface RolloutStep { /** - * @member {string} name Name of the step. + * Name of the step. */ name: string; /** - * @member {string} [status] Current state of the step. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Current state of the step. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly status?: string; /** - * @member {string} [stepGroup] The step group the current step is part of. + * The step group the current step is part of. */ stepGroup?: string; /** - * @member {StepOperationInfo} [operationInfo] Detailed information of - * specific action execution. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Detailed information of specific action execution. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly operationInfo?: StepOperationInfo; /** - * @member {ResourceOperation[]} [resourceOperations] Set of resource - * operations that were performed, if any, on an Azure resource. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Set of resource operations that were performed, if any, on an Azure resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly resourceOperations?: ResourceOperation[]; /** - * @member {Message[]} [messages] Supplementary informative messages during - * rollout. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Supplementary informative messages during rollout. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly messages?: Message[]; } /** - * @interface - * An interface representing ServiceUnitProperties. * Defines the properties of a service unit. - * */ export interface ServiceUnitProperties { /** - * @member {string} targetResourceGroup The Azure Resource Group to which the - * resources in the service unit belong to or should be deployed to. + * The Azure Resource Group to which the resources in the service unit belong to or should be + * deployed to. */ targetResourceGroup: string; /** - * @member {DeploymentMode} deploymentMode Describes the type of ARM - * deployment to be performed on the resource. Possible values include: + * Describes the type of ARM deployment to be performed on the resource. Possible values include: * 'Incremental', 'Complete' */ deploymentMode: DeploymentMode; /** - * @member {ServiceUnitArtifacts} [artifacts] The artifacts for the service - * unit. + * The artifacts for the service unit. */ artifacts?: ServiceUnitArtifacts; } /** - * @interface - * An interface representing ServiceUnit. * Defines a service unit. - * - * @extends ServiceUnitProperties */ export interface ServiceUnit extends ServiceUnitProperties { /** - * @member {string} [name] Name of the service unit. + * Name of the service unit. */ name?: string; /** - * @member {RolloutStep[]} [steps] Detailed step information, if present. + * Detailed step information, if present. */ steps?: RolloutStep[]; } /** - * @interface - * An interface representing ServiceProperties. * The properties of a service. - * */ export interface ServiceProperties { /** - * @member {string} targetLocation The Azure location to which the resources - * in the service belong to or should be deployed to. + * The Azure location to which the resources in the service belong to or should be deployed to. */ targetLocation: string; /** - * @member {string} targetSubscriptionId The subscription to which the - * resources in the service belong to or should be deployed to. + * The subscription to which the resources in the service belong to or should be deployed to. */ targetSubscriptionId: string; } /** - * @interface - * An interface representing Service. * Defines a service. - * - * @extends ServiceProperties */ export interface Service extends ServiceProperties { /** - * @member {string} [name] Name of the service. + * Name of the service. */ name?: string; /** - * @member {ServiceUnit[]} [serviceUnits] The detailed information about the - * units that make up the service. + * The detailed information about the units that make up the service. */ serviceUnits?: ServiceUnit[]; } /** - * @interface - * An interface representing Rollout. * Defines the rollout. - * - * @extends TrackedResource */ export interface Rollout extends TrackedResource { /** - * @member {Identity} [identity] Identity for the resource. + * Identity for the resource. */ identity?: Identity; /** - * @member {string} buildVersion The version of the build being deployed. + * The version of the build being deployed. */ buildVersion: string; /** - * @member {string} [artifactSourceId] The reference to the artifact source - * resource Id where the payload is located. + * The reference to the artifact source resource Id where the payload is located. */ artifactSourceId?: string; /** - * @member {string} targetServiceTopologyId The resource Id of the service - * topology from which service units are being referenced in step groups to - * be deployed. + * The resource Id of the service topology from which service units are being referenced in step + * groups to be deployed. */ targetServiceTopologyId: string; /** - * @member {Step[]} stepGroups The list of step groups that define the - * orchestration. + * The list of step groups that define the orchestration. */ - stepGroups: Step[]; + stepGroups: StepGroup[]; /** - * @member {string} [status] The current status of the rollout. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The current status of the rollout. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly status?: string; /** - * @member {number} [totalRetryAttempts] The cardinal count of total number - * of retries performed on the rollout at a given time. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The cardinal count of total number of retries performed on the rollout at a given time. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly totalRetryAttempts?: number; /** - * @member {RolloutOperationInfo} [operationInfo] Operational information of - * the rollout. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Operational information of the rollout. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly operationInfo?: RolloutOperationInfo; /** - * @member {Service[]} [services] The detailed information on the services - * being deployed. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The detailed information on the services being deployed. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly services?: Service[]; } /** - * @interface - * An interface representing RolloutPropertiesModel. * Defines the properties of a rollout. - * */ export interface RolloutPropertiesModel { /** - * @member {string} [status] The current status of the rollout. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The current status of the rollout. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly status?: string; /** - * @member {number} [totalRetryAttempts] The cardinal count of total number - * of retries performed on the rollout at a given time. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The cardinal count of total number of retries performed on the rollout at a given time. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly totalRetryAttempts?: number; /** - * @member {RolloutOperationInfo} [operationInfo] Operational information of - * the rollout. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Operational information of the rollout. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly operationInfo?: RolloutOperationInfo; /** - * @member {Service[]} [services] The detailed information on the services - * being deployed. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The detailed information on the services being deployed. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly services?: Service[]; } /** - * @interface - * An interface representing ServiceTopologyResource. * The resource representation of a service topology. - * - * @extends TrackedResource */ export interface ServiceTopologyResource extends TrackedResource { /** - * @member {string} [artifactSourceId] The resource Id of the artifact source - * that contains the artifacts that can be referenced in the service units. + * The resource Id of the artifact source that contains the artifacts that can be referenced in + * the service units. */ artifactSourceId?: string; } /** - * @interface - * An interface representing ServiceTopologyProperties. * The properties of a service topology. - * */ export interface ServiceTopologyProperties { /** - * @member {string} [artifactSourceId] The resource Id of the artifact source - * that contains the artifacts that can be referenced in the service units. + * The resource Id of the artifact source that contains the artifacts that can be referenced in + * the service units. */ artifactSourceId?: string; } /** - * @interface - * An interface representing ServiceResource. * The resource representation of a service in a service topology. - * - * @extends TrackedResource */ export interface ServiceResource extends TrackedResource { /** - * @member {string} targetLocation The Azure location to which the resources - * in the service belong to or should be deployed to. + * The Azure location to which the resources in the service belong to or should be deployed to. */ targetLocation: string; /** - * @member {string} targetSubscriptionId The subscription to which the - * resources in the service belong to or should be deployed to. + * The subscription to which the resources in the service belong to or should be deployed to. */ targetSubscriptionId: string; } /** - * @interface - * An interface representing ServiceUnitResource. * Represents the response of a service unit resource. - * - * @extends TrackedResource */ export interface ServiceUnitResource extends TrackedResource { /** - * @member {string} targetResourceGroup The Azure Resource Group to which the - * resources in the service unit belong to or should be deployed to. + * The Azure Resource Group to which the resources in the service unit belong to or should be + * deployed to. */ targetResourceGroup: string; /** - * @member {DeploymentMode} deploymentMode Describes the type of ARM - * deployment to be performed on the resource. Possible values include: + * Describes the type of ARM deployment to be performed on the resource. Possible values include: * 'Incremental', 'Complete' */ deploymentMode: DeploymentMode; /** - * @member {ServiceUnitArtifacts} [artifacts] The artifacts for the service - * unit. + * The artifacts for the service unit. */ artifacts?: ServiceUnitArtifacts; } /** - * @interface - * An interface representing ServiceUnitArtifacts. * Defines the artifacts of a service unit. - * */ export interface ServiceUnitArtifacts { /** - * @member {string} [templateUri] The full URI of the ARM template file with - * the SAS token. + * The full URI of the ARM template file with the SAS token. */ templateUri?: string; /** - * @member {string} [parametersUri] The full URI of the ARM parameters file - * with the SAS token. + * The full URI of the ARM parameters file with the SAS token. */ parametersUri?: string; /** - * @member {string} [templateArtifactSourceRelativePath] The path to the ARM - * template file relative to the artifact source. + * The path to the ARM template file relative to the artifact source. */ templateArtifactSourceRelativePath?: string; /** - * @member {string} [parametersArtifactSourceRelativePath] The path to the - * ARM parameters file relative to the artifact source. + * The path to the ARM parameters file relative to the artifact source. */ parametersArtifactSourceRelativePath?: string; } /** - * @interface - * An interface representing OperationDetail. * The detail about an operation. - * */ export interface OperationDetail { /** - * @member {string} [provider] The name of the provider that supports the - * operation. + * The name of the provider that supports the operation. */ provider?: string; /** - * @member {string} [resource] The resource type on which this operation can - * be performed. + * The resource type on which this operation can be performed. */ resource?: string; /** - * @member {string} [operation] The name of the operation. + * The name of the operation. */ operation?: string; /** - * @member {string} [description] The description of the operation. + * The description of the operation. */ description?: string; } /** - * @interface - * An interface representing Operation. * Represents an operation that can be performed on the service. - * */ export interface Operation { /** - * @member {string} [name] The name of the operation. + * The name of the operation. */ name?: string; /** - * @member {OperationDetail} [display] The display name of the operation. + * The display name of the operation. */ display?: OperationDetail; /** - * @member {string} [origin] The origin of the operation. + * The origin of the operation. */ origin?: string; /** - * @member {any} [properties] The properties of the operation. + * The properties of the operation. */ properties?: any; } +/** + * The operations response. + */ +export interface OperationsList { + /** + * The list of supported operations + */ + value?: Operation; +} + /** * Contains the possible cases for StepProperties. */ -export type StepPropertiesUnion = StepProperties | WaitStepProperties; +export type StepPropertiesUnion = StepProperties | HealthCheckStepProperties | WaitStepProperties; /** - * @interface - * An interface representing StepProperties. * The properties of a step resource. - * */ export interface StepProperties { /** - * @member {string} stepType Polymorphic Discriminator + * Polymorphic Discriminator */ stepType: "StepProperties"; } /** - * @interface - * An interface representing StepResource. * The resource representation of a rollout step. - * - * @extends TrackedResource */ export interface StepResource extends TrackedResource { /** - * @member {StepPropertiesUnion} properties The properties that define the - * step. + * The properties that define the step. */ properties: StepPropertiesUnion; } /** - * @interface - * An interface representing WaitStepAttributes. + * Contains the possible cases for HealthCheckStepAttributes. + */ +export type HealthCheckStepAttributesUnion = HealthCheckStepAttributes | RestHealthCheckStepAttributes; + +/** + * The attributes for the health check step. + */ +export interface HealthCheckStepAttributes { + /** + * Polymorphic Discriminator + */ + type: "HealthCheckStepAttributes"; + /** + * The duration in ISO 8601 format for which health check waits idly without any checks. + */ + waitDuration?: string; + /** + * The duration in ISO 8601 format for which the health check waits for the resource to become + * healthy. Health check fails if it doesn't. Health check starts to enforce healthyStateDuration + * once resource becomes healthy. + */ + maxElasticDuration?: string; + /** + * The duration in ISO 8601 format for which the resource is expected to be continuously healthy. + * If maxElasticDuration is specified, healthy state duration is enforced after the detection of + * first healthy signal. + */ + healthyStateDuration: string; +} + +/** + * Defines the properties of a health check step. + */ +export interface HealthCheckStepProperties { + /** + * Polymorphic Discriminator + */ + stepType: "HealthCheck"; + /** + * The health check step attributes + */ + attributes: HealthCheckStepAttributesUnion; +} + +/** + * The authentication information required in the REST health check request to the health provider. + */ +export interface RestRequestAuthentication { + /** + * The key name of the authentication key/value pair. + */ + name: string; + /** + * The location of the authentication key/value pair in the request. Possible values include: + * 'Query', 'Header' + */ + inProperty: RestAuthLocation; + /** + * The value of the authentication key/value pair. + */ + value: string; +} + +/** + * The properties that make up a REST request + */ +export interface RestRequest { + /** + * The HTTP method to use for the request. Possible values include: 'GET', 'POST' + */ + method: RestRequestMethod; + /** + * The HTTP URI to use for the request. + */ + uri: string; + /** + * The authentication information required in the request to the health provider. + */ + authentication: RestRequestAuthentication; +} + +/** + * The regular expressions to match the response content with. + */ +export interface RestResponseRegex { + /** + * The list of regular expressions. + */ + matches?: string[]; + /** + * Indicates whether any or all of the expressions should match with the response content. + * Possible values include: 'All', 'Any' + */ + matchQuantifier?: RestMatchQuantifier; +} + +/** + * The properties that make up the expected REST response + */ +export interface RestResponse { + /** + * The HTTP status codes expected in a successful health check response. The response is expected + * to match one of the given status codes. If no expected status codes are provided, default + * expected status code is 200 OK. + */ + successStatusCodes?: string[]; + /** + * The regular expressions to match the response content with. + */ + regex?: RestResponseRegex; +} + +/** + * A REST based health check + */ +export interface RestHealthCheck { + /** + * A unique name for this check. + */ + name: string; + /** + * The request to the health provider. + */ + request: RestRequest; + /** + * The expected response from the health provider. If no expected response is provided, the + * default is to expect the received response to have an HTTP status code of 200 OK. + */ + response?: RestResponse; +} + +/** + * Defines the REST health check step properties. + */ +export interface RestHealthCheckStepAttributes { + /** + * Polymorphic Discriminator + */ + type: "REST"; + /** + * The duration in ISO 8601 format for which health check waits idly without any checks. + */ + waitDuration?: string; + /** + * The duration in ISO 8601 format for which the health check waits for the resource to become + * healthy. Health check fails if it doesn't. Health check starts to enforce healthyStateDuration + * once resource becomes healthy. + */ + maxElasticDuration?: string; + /** + * The duration in ISO 8601 format for which the resource is expected to be continuously healthy. + * If maxElasticDuration is specified, healthy state duration is enforced after the detection of + * first healthy signal. + */ + healthyStateDuration: string; + /** + * The list of checks that form the health check step. + */ + healthChecks: RestHealthCheck[]; +} + +/** * The parameters for the wait step. - * */ export interface WaitStepAttributes { /** - * @member {string} duration The duration in ISO 8601 format of how long the - * wait should be. + * The duration in ISO 8601 format of how long the wait should be. */ duration: string; } /** - * @interface - * An interface representing WaitStepProperties. * Defines the properties of a Wait step. - * */ export interface WaitStepProperties { /** - * @member {string} stepType Polymorphic Discriminator + * Polymorphic Discriminator */ stepType: "Wait"; /** - * @member {WaitStepAttributes} [attributes] The Wait attributes + * The Wait attributes */ - attributes?: WaitStepAttributes; + attributes: WaitStepAttributes; } /** - * @interface - * An interface representing ProxyResource. - * The resource model definition for a ARM proxy resource. It will have - * everything other than required location and tags - * - * @extends Resource + * The resource model definition for a ARM proxy resource. It will have everything other than + * required location and tags */ export interface ProxyResource extends Resource { } /** - * @interface - * An interface representing AzureEntityResource. - * The resource model definition for a Azure Resource Manager resource with an - * etag. - * - * @extends Resource + * The resource model definition for a Azure Resource Manager resource with an etag. */ export interface AzureEntityResource extends Resource { /** - * @member {string} [etag] Resource Etag. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Resource Etag. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly etag?: string; } /** - * @interface - * An interface representing StepsCreateOrUpdateOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface StepsCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { /** - * @member {StepResource} [stepInfo] The step object. + * The step object. */ stepInfo?: StepResource; } /** - * @interface - * An interface representing RolloutsCreateOrUpdateOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface RolloutsCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { /** - * @member {RolloutRequest} [rolloutRequest] Source rollout request object - * that defines the rollout. + * Source rollout request object that defines the rollout. */ rolloutRequest?: RolloutRequest; } /** - * @interface - * An interface representing RolloutsGetOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface RolloutsGetOptionalParams extends msRest.RequestOptionsBase { /** - * @member {number} [retryAttempt] Rollout retry attempt ordinal to get the - * result of. If not specified, result of the latest attempt will be - * returned. + * Rollout retry attempt ordinal to get the result of. If not specified, result of the latest + * attempt will be returned. */ retryAttempt?: number; } /** - * @interface - * An interface representing RolloutsRestartOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface RolloutsRestartOptionalParams extends msRest.RequestOptionsBase { /** - * @member {boolean} [skipSucceeded] If true, will skip all succeeded steps - * so far in the rollout. If false, will execute the entire rollout again - * regardless of the current state of individual resources. Defaults to false - * if not specified. + * If true, will skip all succeeded steps so far in the rollout. If false, will execute the + * entire rollout again regardless of the current state of individual resources. Defaults to + * false if not specified. */ skipSucceeded?: boolean; } /** - * @interface - * An interface representing RolloutsBeginCreateOrUpdateOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface RolloutsBeginCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { /** - * @member {RolloutRequest} [rolloutRequest] Source rollout request object - * that defines the rollout. + * Source rollout request object that defines the rollout. */ rolloutRequest?: RolloutRequest; } /** - * @interface - * An interface representing ArtifactSourcesCreateOrUpdateOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface ArtifactSourcesCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { /** - * @member {ArtifactSource} [artifactSourceInfo] Source object that defines - * the resource. + * Source object that defines the resource. */ artifactSourceInfo?: ArtifactSource; } /** - * @interface * An interface representing AzureDeploymentManagerOptions. - * @extends AzureServiceClientOptions */ export interface AzureDeploymentManagerOptions extends AzureServiceClientOptions { - /** - * @member {string} [baseUri] - */ baseUri?: string; } /** - * @interface - * An interface representing ServiceUnitsCreateOrUpdateHeaders. * Defines headers for CreateOrUpdate operation. - * */ export interface ServiceUnitsCreateOrUpdateHeaders { /** - * @member {string} [azureAsyncOperation] Contains the status URL on which - * clients are expected to poll the status of the operation. + * Contains the status URL on which clients are expected to poll the status of the operation. */ azureAsyncOperation: string; } /** - * @interface - * An interface representing RolloutsCreateOrUpdateHeaders. * Defines headers for CreateOrUpdate operation. - * */ export interface RolloutsCreateOrUpdateHeaders { /** - * @member {string} [azureAsyncOperation] Contains the status URL on which - * clients are expected to poll the status of the operation. + * Contains the status URL on which clients are expected to poll the status of the operation. */ azureAsyncOperation: string; } - /** * Defines values for DeploymentMode. * Possible values include: 'Incremental', 'Complete' @@ -1055,6 +977,30 @@ export interface RolloutsCreateOrUpdateHeaders { */ export type DeploymentMode = 'Incremental' | 'Complete'; +/** + * Defines values for RestRequestMethod. + * Possible values include: 'GET', 'POST' + * @readonly + * @enum {string} + */ +export type RestRequestMethod = 'GET' | 'POST'; + +/** + * Defines values for RestAuthLocation. + * Possible values include: 'Query', 'Header' + * @readonly + * @enum {string} + */ +export type RestAuthLocation = 'Query' | 'Header'; + +/** + * Defines values for RestMatchQuantifier. + * Possible values include: 'All', 'Any' + * @readonly + * @enum {string} + */ +export type RestMatchQuantifier = 'All' | 'Any'; + /** * Contains response data for the createOrUpdate operation. */ @@ -1067,6 +1013,7 @@ export type ServiceTopologiesCreateOrUpdateResponse = ServiceTopologyResource & * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1086,6 +1033,7 @@ export type ServiceTopologiesGetResponse = ServiceTopologyResource & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1093,6 +1041,26 @@ export type ServiceTopologiesGetResponse = ServiceTopologyResource & { }; }; +/** + * Contains response data for the list operation. + */ +export type ServiceTopologiesListResponse = Array & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ServiceTopologyResource[]; + }; +}; + /** * Contains response data for the createOrUpdate operation. */ @@ -1105,6 +1073,7 @@ export type ServicesCreateOrUpdateResponse = ServiceResource & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1124,6 +1093,7 @@ export type ServicesGetResponse = ServiceResource & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1131,6 +1101,26 @@ export type ServicesGetResponse = ServiceResource & { }; }; +/** + * Contains response data for the list operation. + */ +export type ServicesListResponse = Array & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ServiceResource[]; + }; +}; + /** * Contains response data for the createOrUpdate operation. */ @@ -1143,10 +1133,12 @@ export type ServiceUnitsCreateOrUpdateResponse = ServiceUnitResource & ServiceUn * The parsed HTTP response headers. */ parsedHeaders: ServiceUnitsCreateOrUpdateHeaders; + /** * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1166,6 +1158,7 @@ export type ServiceUnitsGetResponse = ServiceUnitResource & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1173,6 +1166,26 @@ export type ServiceUnitsGetResponse = ServiceUnitResource & { }; }; +/** + * Contains response data for the list operation. + */ +export type ServiceUnitsListResponse = Array & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ServiceUnitResource[]; + }; +}; + /** * Contains response data for the createOrUpdate operation. */ @@ -1185,6 +1198,7 @@ export type StepsCreateOrUpdateResponse = StepResource & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1204,6 +1218,7 @@ export type StepsGetResponse = StepResource & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1211,6 +1226,26 @@ export type StepsGetResponse = StepResource & { }; }; +/** + * Contains response data for the list operation. + */ +export type StepsListResponse = Array & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: StepResource[]; + }; +}; + /** * Contains response data for the createOrUpdate operation. */ @@ -1223,10 +1258,12 @@ export type RolloutsCreateOrUpdateResponse = RolloutRequest & RolloutsCreateOrUp * The parsed HTTP response headers. */ parsedHeaders: RolloutsCreateOrUpdateHeaders; + /** * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1246,6 +1283,7 @@ export type RolloutsGetResponse = Rollout & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1265,6 +1303,7 @@ export type RolloutsCancelResponse = Rollout & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1284,6 +1323,7 @@ export type RolloutsRestartResponse = Rollout & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1291,6 +1331,26 @@ export type RolloutsRestartResponse = Rollout & { }; }; +/** + * Contains response data for the list operation. + */ +export type RolloutsListResponse = Array & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Rollout[]; + }; +}; + /** * Contains response data for the createOrUpdate operation. */ @@ -1303,6 +1363,7 @@ export type ArtifactSourcesCreateOrUpdateResponse = ArtifactSource & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1322,6 +1383,7 @@ export type ArtifactSourcesGetResponse = ArtifactSource & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1330,9 +1392,29 @@ export type ArtifactSourcesGetResponse = ArtifactSource & { }; /** - * Contains response data for the get operation. + * Contains response data for the list operation. + */ +export type ArtifactSourcesListResponse = Array & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ArtifactSource[]; + }; +}; + +/** + * Contains response data for the list operation. */ -export type OperationsGetResponse = Array & { +export type OperationsListResponse = OperationsList & { /** * The underlying HTTP response. */ @@ -1341,9 +1423,10 @@ export type OperationsGetResponse = Array & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: Operation[]; + parsedBody: OperationsList; }; }; diff --git a/sdk/deploymentmanager/arm-deploymentmanager/src/models/mappers.ts b/sdk/deploymentmanager/arm-deploymentmanager/src/models/mappers.ts index 2bcd85f0b693..697893bc8677 100644 --- a/sdk/deploymentmanager/arm-deploymentmanager/src/models/mappers.ts +++ b/sdk/deploymentmanager/arm-deploymentmanager/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"; @@ -60,11 +58,11 @@ export const PrePostStep: msRest.CompositeMapper = { } }; -export const Step: msRest.CompositeMapper = { - serializedName: "Step", +export const StepGroup: msRest.CompositeMapper = { + serializedName: "StepGroup", type: { name: "Composite", - className: "Step", + className: "StepGroup", modelProperties: { name: { required: true, @@ -222,7 +220,7 @@ export const RolloutRequest: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "Step" + className: "StepGroup" } } } @@ -773,7 +771,7 @@ export const Rollout: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "Step" + className: "StepGroup" } } } @@ -1059,6 +1057,23 @@ export const Operation: msRest.CompositeMapper = { } }; +export const OperationsList: msRest.CompositeMapper = { + serializedName: "OperationsList", + type: { + name: "Composite", + className: "OperationsList", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Composite", + className: "Operation" + } + } + } + } +}; + export const StepProperties: msRest.CompositeMapper = { serializedName: "StepProperties", type: { @@ -1100,6 +1115,267 @@ export const StepResource: msRest.CompositeMapper = { } }; +export const HealthCheckStepAttributes: msRest.CompositeMapper = { + serializedName: "HealthCheckStepAttributes", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "type", + clientName: "type" + }, + uberParent: "HealthCheckStepAttributes", + className: "HealthCheckStepAttributes", + modelProperties: { + waitDuration: { + serializedName: "waitDuration", + type: { + name: "String" + } + }, + maxElasticDuration: { + serializedName: "maxElasticDuration", + type: { + name: "String" + } + }, + healthyStateDuration: { + required: true, + serializedName: "healthyStateDuration", + type: { + name: "String" + } + }, + type: { + required: true, + serializedName: "type", + type: { + name: "String" + } + } + } + } +}; + +export const HealthCheckStepProperties: msRest.CompositeMapper = { + serializedName: "HealthCheck", + type: { + name: "Composite", + polymorphicDiscriminator: StepProperties.type.polymorphicDiscriminator, + uberParent: "StepProperties", + className: "HealthCheckStepProperties", + modelProperties: { + ...StepProperties.type.modelProperties, + attributes: { + required: true, + serializedName: "attributes", + type: { + name: "Composite", + className: "HealthCheckStepAttributes" + } + } + } + } +}; + +export const RestRequestAuthentication: msRest.CompositeMapper = { + serializedName: "RestRequestAuthentication", + type: { + name: "Composite", + className: "RestRequestAuthentication", + modelProperties: { + type: { + required: true, + isConstant: true, + serializedName: "type", + defaultValue: 'ApiKey', + type: { + name: "String" + } + }, + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + }, + inProperty: { + required: true, + serializedName: "in", + type: { + name: "Enum", + allowedValues: [ + "Query", + "Header" + ] + } + }, + value: { + required: true, + serializedName: "value", + type: { + name: "String" + } + } + } + } +}; + +export const RestRequest: msRest.CompositeMapper = { + serializedName: "RestRequest", + type: { + name: "Composite", + className: "RestRequest", + modelProperties: { + method: { + required: true, + serializedName: "method", + type: { + name: "Enum", + allowedValues: [ + "GET", + "POST" + ] + } + }, + uri: { + required: true, + serializedName: "uri", + type: { + name: "String" + } + }, + authentication: { + required: true, + serializedName: "authentication", + defaultValue: {}, + type: { + name: "Composite", + className: "RestRequestAuthentication" + } + } + } + } +}; + +export const RestResponseRegex: msRest.CompositeMapper = { + serializedName: "RestResponse_regex", + type: { + name: "Composite", + className: "RestResponseRegex", + modelProperties: { + matches: { + serializedName: "matches", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + matchQuantifier: { + serializedName: "matchQuantifier", + type: { + name: "Enum", + allowedValues: [ + "All", + "Any" + ] + } + } + } + } +}; + +export const RestResponse: msRest.CompositeMapper = { + serializedName: "RestResponse", + type: { + name: "Composite", + className: "RestResponse", + modelProperties: { + successStatusCodes: { + serializedName: "successStatusCodes", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + regex: { + serializedName: "regex", + type: { + name: "Composite", + className: "RestResponseRegex" + } + } + } + } +}; + +export const RestHealthCheck: msRest.CompositeMapper = { + serializedName: "RestHealthCheck", + type: { + name: "Composite", + className: "RestHealthCheck", + modelProperties: { + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + }, + request: { + required: true, + serializedName: "request", + defaultValue: {}, + type: { + name: "Composite", + className: "RestRequest" + } + }, + response: { + serializedName: "response", + type: { + name: "Composite", + className: "RestResponse" + } + } + } + } +}; + +export const RestHealthCheckStepAttributes: msRest.CompositeMapper = { + serializedName: "REST", + type: { + name: "Composite", + polymorphicDiscriminator: HealthCheckStepAttributes.type.polymorphicDiscriminator, + uberParent: "HealthCheckStepAttributes", + className: "RestHealthCheckStepAttributes", + modelProperties: { + ...HealthCheckStepAttributes.type.modelProperties, + healthChecks: { + required: true, + serializedName: "properties.healthChecks", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RestHealthCheck" + } + } + } + } + } + } +}; + export const WaitStepAttributes: msRest.CompositeMapper = { serializedName: "WaitStepAttributes", type: { @@ -1127,6 +1403,7 @@ export const WaitStepProperties: msRest.CompositeMapper = { modelProperties: { ...StepProperties.type.modelProperties, attributes: { + required: true, serializedName: "attributes", type: { name: "Composite", @@ -1202,5 +1479,9 @@ export const discriminators = { 'Authentication' : Authentication, 'Authentication.Sas' : SasAuthentication, 'StepProperties' : StepProperties, + 'HealthCheckStepAttributes' : HealthCheckStepAttributes, + 'StepProperties.HealthCheck' : HealthCheckStepProperties, + 'HealthCheckStepAttributes.REST' : RestHealthCheckStepAttributes, 'StepProperties.Wait' : WaitStepProperties + }; diff --git a/sdk/deploymentmanager/arm-deploymentmanager/src/models/operationsMappers.ts b/sdk/deploymentmanager/arm-deploymentmanager/src/models/operationsMappers.ts index 4d490f2e19ee..6c49bbac166a 100644 --- a/sdk/deploymentmanager/arm-deploymentmanager/src/models/operationsMappers.ts +++ b/sdk/deploymentmanager/arm-deploymentmanager/src/models/operationsMappers.ts @@ -1,17 +1,15 @@ /* * 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 { discriminators, + CloudError, Operation, OperationDetail, - CloudError + OperationsList } from "../models/mappers"; - diff --git a/sdk/deploymentmanager/arm-deploymentmanager/src/models/rolloutsMappers.ts b/sdk/deploymentmanager/arm-deploymentmanager/src/models/rolloutsMappers.ts index 9a765fd4d16c..8ab2afe935af 100644 --- a/sdk/deploymentmanager/arm-deploymentmanager/src/models/rolloutsMappers.ts +++ b/sdk/deploymentmanager/arm-deploymentmanager/src/models/rolloutsMappers.ts @@ -1,46 +1,51 @@ /* * 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 { discriminators, - RolloutRequest, - TrackedResource, - Resource, + ArtifactSource, + Authentication, + AzureEntityResource, BaseResource, + CloudError, + HealthCheckStepAttributes, + HealthCheckStepProperties, Identity, - Step, + Message, PrePostStep, - RolloutsCreateOrUpdateHeaders, - CloudError, + ProxyResource, + Resource, + ResourceOperation, + RestHealthCheck, + RestHealthCheckStepAttributes, + RestRequest, + RestRequestAuthentication, + RestResponse, + RestResponseRegex, Rollout, RolloutOperationInfo, + RolloutRequest, + RolloutsCreateOrUpdateHeaders, + RolloutStep, + SasAuthentication, Service, ServiceProperties, + ServiceResource, + ServiceTopologyResource, ServiceUnit, - ServiceUnitProperties, ServiceUnitArtifacts, - RolloutStep, - StepOperationInfo, - ResourceOperation, - Message, - ArtifactSource, - Authentication, - SasAuthentication, - ServiceTopologyResource, - ServiceResource, + ServiceUnitProperties, ServiceUnitResource, - StepResource, + StepGroup, + StepOperationInfo, StepProperties, - WaitStepProperties, + StepResource, + TrackedResource, WaitStepAttributes, - ProxyResource, - AzureEntityResource + WaitStepProperties } from "../models/mappers"; - diff --git a/sdk/deploymentmanager/arm-deploymentmanager/src/models/serviceTopologiesMappers.ts b/sdk/deploymentmanager/arm-deploymentmanager/src/models/serviceTopologiesMappers.ts index 41084c2da145..8c22a6325f9e 100644 --- a/sdk/deploymentmanager/arm-deploymentmanager/src/models/serviceTopologiesMappers.ts +++ b/sdk/deploymentmanager/arm-deploymentmanager/src/models/serviceTopologiesMappers.ts @@ -1,45 +1,50 @@ /* * 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 { discriminators, - ServiceTopologyResource, - TrackedResource, - Resource, + ArtifactSource, + Authentication, + AzureEntityResource, BaseResource, CloudError, - RolloutRequest, + HealthCheckStepAttributes, + HealthCheckStepProperties, Identity, - Step, + Message, PrePostStep, - ArtifactSource, - Authentication, - SasAuthentication, + ProxyResource, + Resource, + ResourceOperation, + RestHealthCheck, + RestHealthCheckStepAttributes, + RestRequest, + RestRequestAuthentication, + RestResponse, + RestResponseRegex, Rollout, RolloutOperationInfo, + RolloutRequest, + RolloutStep, + SasAuthentication, Service, ServiceProperties, + ServiceResource, + ServiceTopologyResource, ServiceUnit, - ServiceUnitProperties, ServiceUnitArtifacts, - RolloutStep, - StepOperationInfo, - ResourceOperation, - Message, - ServiceResource, + ServiceUnitProperties, ServiceUnitResource, - StepResource, + StepGroup, + StepOperationInfo, StepProperties, - WaitStepProperties, + StepResource, + TrackedResource, WaitStepAttributes, - ProxyResource, - AzureEntityResource + WaitStepProperties } from "../models/mappers"; - diff --git a/sdk/deploymentmanager/arm-deploymentmanager/src/models/serviceUnitsMappers.ts b/sdk/deploymentmanager/arm-deploymentmanager/src/models/serviceUnitsMappers.ts index 0be3937ee2a0..5d398322f867 100644 --- a/sdk/deploymentmanager/arm-deploymentmanager/src/models/serviceUnitsMappers.ts +++ b/sdk/deploymentmanager/arm-deploymentmanager/src/models/serviceUnitsMappers.ts @@ -1,46 +1,51 @@ /* * 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 { discriminators, - ServiceUnitResource, - TrackedResource, - Resource, + ArtifactSource, + Authentication, + AzureEntityResource, BaseResource, - ServiceUnitArtifacts, - ServiceUnitsCreateOrUpdateHeaders, CloudError, - RolloutRequest, + HealthCheckStepAttributes, + HealthCheckStepProperties, Identity, - Step, + Message, PrePostStep, - ArtifactSource, - Authentication, - SasAuthentication, + ProxyResource, + Resource, + ResourceOperation, + RestHealthCheck, + RestHealthCheckStepAttributes, + RestRequest, + RestRequestAuthentication, + RestResponse, + RestResponseRegex, Rollout, RolloutOperationInfo, + RolloutRequest, + RolloutStep, + SasAuthentication, Service, ServiceProperties, + ServiceResource, + ServiceTopologyResource, ServiceUnit, + ServiceUnitArtifacts, ServiceUnitProperties, - RolloutStep, + ServiceUnitResource, + ServiceUnitsCreateOrUpdateHeaders, + StepGroup, StepOperationInfo, - ResourceOperation, - Message, - ServiceTopologyResource, - ServiceResource, - StepResource, StepProperties, - WaitStepProperties, + StepResource, + TrackedResource, WaitStepAttributes, - ProxyResource, - AzureEntityResource + WaitStepProperties } from "../models/mappers"; - diff --git a/sdk/deploymentmanager/arm-deploymentmanager/src/models/servicesMappers.ts b/sdk/deploymentmanager/arm-deploymentmanager/src/models/servicesMappers.ts index 48204f616e0f..8c22a6325f9e 100644 --- a/sdk/deploymentmanager/arm-deploymentmanager/src/models/servicesMappers.ts +++ b/sdk/deploymentmanager/arm-deploymentmanager/src/models/servicesMappers.ts @@ -1,45 +1,50 @@ /* * 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 { discriminators, - ServiceResource, - TrackedResource, - Resource, + ArtifactSource, + Authentication, + AzureEntityResource, BaseResource, CloudError, - RolloutRequest, + HealthCheckStepAttributes, + HealthCheckStepProperties, Identity, - Step, + Message, PrePostStep, - ArtifactSource, - Authentication, - SasAuthentication, + ProxyResource, + Resource, + ResourceOperation, + RestHealthCheck, + RestHealthCheckStepAttributes, + RestRequest, + RestRequestAuthentication, + RestResponse, + RestResponseRegex, Rollout, RolloutOperationInfo, + RolloutRequest, + RolloutStep, + SasAuthentication, Service, ServiceProperties, + ServiceResource, + ServiceTopologyResource, ServiceUnit, - ServiceUnitProperties, ServiceUnitArtifacts, - RolloutStep, - StepOperationInfo, - ResourceOperation, - Message, - ServiceTopologyResource, + ServiceUnitProperties, ServiceUnitResource, - StepResource, + StepGroup, + StepOperationInfo, StepProperties, - WaitStepProperties, + StepResource, + TrackedResource, WaitStepAttributes, - ProxyResource, - AzureEntityResource + WaitStepProperties } from "../models/mappers"; - diff --git a/sdk/deploymentmanager/arm-deploymentmanager/src/models/stepsMappers.ts b/sdk/deploymentmanager/arm-deploymentmanager/src/models/stepsMappers.ts index 73da3a8ae61b..8c22a6325f9e 100644 --- a/sdk/deploymentmanager/arm-deploymentmanager/src/models/stepsMappers.ts +++ b/sdk/deploymentmanager/arm-deploymentmanager/src/models/stepsMappers.ts @@ -1,45 +1,50 @@ /* * 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 { discriminators, - StepResource, - TrackedResource, - Resource, + ArtifactSource, + Authentication, + AzureEntityResource, BaseResource, - StepProperties, CloudError, - RolloutRequest, + HealthCheckStepAttributes, + HealthCheckStepProperties, Identity, - Step, + Message, PrePostStep, - ArtifactSource, - Authentication, - SasAuthentication, + ProxyResource, + Resource, + ResourceOperation, + RestHealthCheck, + RestHealthCheckStepAttributes, + RestRequest, + RestRequestAuthentication, + RestResponse, + RestResponseRegex, Rollout, RolloutOperationInfo, + RolloutRequest, + RolloutStep, + SasAuthentication, Service, ServiceProperties, + ServiceResource, + ServiceTopologyResource, ServiceUnit, - ServiceUnitProperties, ServiceUnitArtifacts, - RolloutStep, - StepOperationInfo, - ResourceOperation, - Message, - ServiceTopologyResource, - ServiceResource, + ServiceUnitProperties, ServiceUnitResource, - WaitStepProperties, + StepGroup, + StepOperationInfo, + StepProperties, + StepResource, + TrackedResource, WaitStepAttributes, - ProxyResource, - AzureEntityResource + WaitStepProperties } from "../models/mappers"; - diff --git a/sdk/deploymentmanager/arm-deploymentmanager/src/operations/artifactSources.ts b/sdk/deploymentmanager/arm-deploymentmanager/src/operations/artifactSources.ts index 617df1b95483..ce948c089105 100644 --- a/sdk/deploymentmanager/arm-deploymentmanager/src/operations/artifactSources.ts +++ b/sdk/deploymentmanager/arm-deploymentmanager/src/operations/artifactSources.ts @@ -122,6 +122,34 @@ export class ArtifactSources { deleteMethodOperationSpec, callback); } + + /** + * @summary Lists the artifact sources in a resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param callback The callback + */ + list(resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + options + }, + listOperationSpec, + callback) as Promise; + } } // Operation Specifications @@ -206,3 +234,38 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { }, serializer }; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeploymentManager/artifactSources", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ArtifactSource" + } + } + } + } + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/deploymentmanager/arm-deploymentmanager/src/operations/operations.ts b/sdk/deploymentmanager/arm-deploymentmanager/src/operations/operations.ts index 6ce81dd5bdfd..77d17ecb0bca 100644 --- a/sdk/deploymentmanager/arm-deploymentmanager/src/operations/operations.ts +++ b/sdk/deploymentmanager/arm-deploymentmanager/src/operations/operations.ts @@ -27,38 +27,35 @@ export class Operations { } /** - * @summary Gets an operation resource. + * @summary Lists the supported operations. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - get(options?: msRest.RequestOptionsBase): Promise; + list(options?: msRest.RequestOptionsBase): Promise; /** * @param callback The callback */ - get(callback: msRest.ServiceCallback): void; + list(callback: msRest.ServiceCallback): void; /** * @param options The optional parameters * @param callback The callback */ - get(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { options }, - getOperationSpec, - callback) as Promise; + listOperationSpec, + callback) as Promise; } } // Operation Specifications const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { +const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.DeploymentManager/operations", - urlParameters: [ - Parameters.subscriptionId - ], + path: "providers/Microsoft.DeploymentManager/operations", queryParameters: [ Parameters.apiVersion ], @@ -67,18 +64,7 @@ const getOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: { - serializedName: "parsedResponse", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Operation" - } - } - } - } + bodyMapper: Mappers.OperationsList }, default: { bodyMapper: Mappers.CloudError diff --git a/sdk/deploymentmanager/arm-deploymentmanager/src/operations/rollouts.ts b/sdk/deploymentmanager/arm-deploymentmanager/src/operations/rollouts.ts index 8d6f069444d9..8d8027a3e50a 100644 --- a/sdk/deploymentmanager/arm-deploymentmanager/src/operations/rollouts.ts +++ b/sdk/deploymentmanager/arm-deploymentmanager/src/operations/rollouts.ts @@ -172,6 +172,34 @@ export class Rollouts { callback) as Promise; } + /** + * @summary Lists the rollouts in a resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param callback The callback + */ + list(resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + options + }, + listOperationSpec, + callback) as Promise; + } + /** * This is an asynchronous operation and can be polled to completion using the location header * returned by this operation. @@ -296,6 +324,41 @@ const restartOperationSpec: msRest.OperationSpec = { serializer }; +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeploymentManager/rollouts", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Rollout" + } + } + } + } + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeploymentManager/rollouts/{rolloutName}", diff --git a/sdk/deploymentmanager/arm-deploymentmanager/src/operations/serviceTopologies.ts b/sdk/deploymentmanager/arm-deploymentmanager/src/operations/serviceTopologies.ts index 493e5b789d82..b03fd4f8f1b5 100644 --- a/sdk/deploymentmanager/arm-deploymentmanager/src/operations/serviceTopologies.ts +++ b/sdk/deploymentmanager/arm-deploymentmanager/src/operations/serviceTopologies.ts @@ -126,6 +126,34 @@ export class ServiceTopologies { deleteMethodOperationSpec, callback); } + + /** + * @summary Lists the service topologies in the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param callback The callback + */ + list(resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + options + }, + listOperationSpec, + callback) as Promise; + } } // Operation Specifications @@ -210,3 +238,38 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { }, serializer }; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeploymentManager/serviceTopologies", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServiceTopologyResource" + } + } + } + } + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/deploymentmanager/arm-deploymentmanager/src/operations/serviceUnits.ts b/sdk/deploymentmanager/arm-deploymentmanager/src/operations/serviceUnits.ts index 88044bbc4e6a..c38f35dcb65e 100644 --- a/sdk/deploymentmanager/arm-deploymentmanager/src/operations/serviceUnits.ts +++ b/sdk/deploymentmanager/arm-deploymentmanager/src/operations/serviceUnits.ts @@ -124,6 +124,42 @@ export class ServiceUnits { callback); } + /** + * @summary Lists the service units under a service in the service topology. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceTopologyName The name of the service topology . + * @param serviceName The name of the service resource. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, serviceTopologyName: string, serviceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceTopologyName The name of the service topology . + * @param serviceName The name of the service resource. + * @param callback The callback + */ + list(resourceGroupName: string, serviceTopologyName: string, serviceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceTopologyName The name of the service topology . + * @param serviceName The name of the service resource. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, serviceTopologyName: string, serviceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, serviceTopologyName: string, serviceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceTopologyName, + serviceName, + options + }, + listOperationSpec, + callback) as Promise; + } + /** * This is an asynchronous operation and can be polled to completion using the operation resource * returned by this operation. @@ -206,6 +242,43 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { serializer }; +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeploymentManager/serviceTopologies/{serviceTopologyName}/services/{serviceName}/serviceUnits", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceTopologyName, + Parameters.serviceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServiceUnitResource" + } + } + } + } + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeploymentManager/serviceTopologies/{serviceTopologyName}/services/{serviceName}/serviceUnits/{serviceUnitName}", diff --git a/sdk/deploymentmanager/arm-deploymentmanager/src/operations/services.ts b/sdk/deploymentmanager/arm-deploymentmanager/src/operations/services.ts index b230fe0e99fe..f46d0036a0a0 100644 --- a/sdk/deploymentmanager/arm-deploymentmanager/src/operations/services.ts +++ b/sdk/deploymentmanager/arm-deploymentmanager/src/operations/services.ts @@ -138,6 +138,38 @@ export class Services { deleteMethodOperationSpec, callback); } + + /** + * @summary Lists the services in the service topology. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceTopologyName The name of the service topology . + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, serviceTopologyName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceTopologyName The name of the service topology . + * @param callback The callback + */ + list(resourceGroupName: string, serviceTopologyName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceTopologyName The name of the service topology . + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, serviceTopologyName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, serviceTopologyName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceTopologyName, + options + }, + listOperationSpec, + callback) as Promise; + } } // Operation Specifications @@ -225,3 +257,39 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { }, serializer }; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeploymentManager/serviceTopologies/{serviceTopologyName}/services", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceTopologyName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServiceResource" + } + } + } + } + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/deploymentmanager/arm-deploymentmanager/src/operations/steps.ts b/sdk/deploymentmanager/arm-deploymentmanager/src/operations/steps.ts index 568a331a49c5..09a13375f8bc 100644 --- a/sdk/deploymentmanager/arm-deploymentmanager/src/operations/steps.ts +++ b/sdk/deploymentmanager/arm-deploymentmanager/src/operations/steps.ts @@ -122,6 +122,34 @@ export class Steps { deleteMethodOperationSpec, callback); } + + /** + * @summary Lists the steps in a resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param callback The callback + */ + list(resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + options + }, + listOperationSpec, + callback) as Promise; + } } // Operation Specifications @@ -206,3 +234,38 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { }, serializer }; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeploymentManager/steps", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "StepResource" + } + } + } + } + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +};