From 2f364c4e4f7d9d9dadd753dc4fcb8c1273caeb8c Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Wed, 11 Aug 2021 16:44:14 +0000 Subject: [PATCH] CodeGen from PR 15308 in Azure/azure-rest-api-specs SF updates for 8.1 (#15308) * SF updates for 8.2 * fixed typo and added 8.1 * set the version to match. * fixed last typo. * fixed missing block. * remove Go SDK from auto-codegen * avoid hitting credscan alerts. Co-authored-by: Joel Hendrix --- sdk/servicefabric/servicefabric/LICENSE.txt | 2 +- sdk/servicefabric/servicefabric/README.md | 110 +- sdk/servicefabric/servicefabric/package.json | 7 +- .../servicefabric/rollup.config.js | 4 +- .../servicefabric/src/models/index.ts | 1105 +++++++++++++++-- .../servicefabric/src/models/mappers.ts | 1025 +++++++++++++-- .../src/models/meshApplicationMappers.ts | 5 +- .../src/models/meshCodePackageMappers.ts | 4 +- .../src/models/meshGatewayMappers.ts | 4 +- .../src/models/meshNetworkMappers.ts | 4 +- .../src/models/meshSecretMappers.ts | 4 +- .../src/models/meshSecretValueMappers.ts | 4 +- .../src/models/meshServiceMappers.ts | 5 +- .../src/models/meshServiceReplicaMappers.ts | 4 +- .../src/models/meshVolumeMappers.ts | 4 +- .../servicefabric/src/models/parameters.ts | 115 +- .../servicefabric/src/operations/index.ts | 5 +- .../src/operations/meshApplication.ts | 13 +- .../src/operations/meshCodePackage.ts | 7 +- .../src/operations/meshGateway.ts | 13 +- .../src/operations/meshNetwork.ts | 13 +- .../src/operations/meshSecret.ts | 13 +- .../src/operations/meshSecretValue.ts | 15 +- .../src/operations/meshService.ts | 9 +- .../src/operations/meshServiceReplica.ts | 9 +- .../src/operations/meshVolume.ts | 13 +- .../servicefabric/src/serviceFabricClient.ts | 538 +++++++- .../src/serviceFabricClientContext.ts | 5 +- 28 files changed, 2691 insertions(+), 368 deletions(-) diff --git a/sdk/servicefabric/servicefabric/LICENSE.txt b/sdk/servicefabric/servicefabric/LICENSE.txt index b73b4a1293c3..2d3163745319 100644 --- a/sdk/servicefabric/servicefabric/LICENSE.txt +++ b/sdk/servicefabric/servicefabric/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2019 Microsoft +Copyright (c) 2021 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/servicefabric/servicefabric/README.md b/sdk/servicefabric/servicefabric/README.md index 78b97b1c0c43..99658ea7cb08 100644 --- a/sdk/servicefabric/servicefabric/README.md +++ b/sdk/servicefabric/servicefabric/README.md @@ -1,60 +1,72 @@ ## An isomorphic javascript sdk for - ServiceFabricClient -This package contains an isomorphic SDK for ServiceFabricClient. +This package contains an isomorphic SDK (runs both in node.js and in browsers) for ServiceFabricClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge and Firefox. -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/servicefabric` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: ```bash -npm install @azure/servicefabric +npm install --save @azure/servicefabric @azure/identity ``` +> **Note**: You may have used either `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` in the past. These packages are in maintenance mode receiving critical bug fixes, but no new features. +If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/), or are writing a client side browser application, we strongly encourage you to upgrade to `@azure/identity` which uses the latest versions of Azure Active Directory and MSAL APIs and provides more authentication options. ### How to use -#### nodejs - Authentication, client creation and getClusterManifest as an example written in TypeScript. - -##### Install @azure/ms-rest-nodeauth +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. - -```bash -npm install @azure/ms-rest-nodeauth@"^3.0.0" -``` +In the below samples, we pass the credential and the Azure subscription id to instantiate the client. +Once the client is created, explore the operations on it either in your favorite editor or in our [API reference documentation](https://docs.microsoft.com/javascript/api) to get started. +#### nodejs - Authentication, client creation, and getClusterManifest as an example written in JavaScript. ##### Sample code -[Service Fabric cluster security scenarios](https://docs.microsoft.com/azure/service-fabric/service-fabric-cluster-security) - -```typescript -import { ServiceFabricClient } from "@azure/servicefabric"; -const baseUri = ":"; -const client = new ServiceFabricClient({ - baseUri +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); +const { ServiceFabricClient } = require("@azure/servicefabric"); +const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; + +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new ServiceFabricClient(creds, subscriptionId); +const timeout = 1; +client.getClusterManifest(timeout).then((result) => { + console.log("The result is:"); + console.log(result); +}).catch((err) => { + console.log("An error occurred:"); + console.error(err); }); -client - .getClusterManifest() - .then((result) => { - console.log(result.manifest); - }) - .catch(console.error); ``` -#### browser - Authentication, client creation and getClusterManifest as an example written in JavaScript. - -##### Install @azure/ms-rest-browserauth +#### browser - Authentication, client creation, and getClusterManifest as an example written in JavaScript. -```bash -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html ```html @@ -62,23 +74,25 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to @azure/servicefabric sample - diff --git a/sdk/servicefabric/servicefabric/package.json b/sdk/servicefabric/servicefabric/package.json index dc3b40415908..95bb3f31db0d 100644 --- a/sdk/servicefabric/servicefabric/package.json +++ b/sdk/servicefabric/servicefabric/package.json @@ -4,7 +4,8 @@ "description": "ServiceFabricClient Library with typescript type definitions for node.js and browser.", "version": "5.0.0", "dependencies": { - "@azure/ms-rest-js": "^2.0.4", + "@azure/ms-rest-js": "^2.2.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.10.0" }, "keywords": [ @@ -19,13 +20,13 @@ "module": "./esm/serviceFabricClient.js", "types": "./esm/serviceFabricClient.d.ts", "devDependencies": { - "typescript": "^3.5.3", + "typescript": "^3.6.0", "rollup": "^1.18.0", "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.6.0" }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/servicefabric/servicefabric", + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/servicefabric/servicefabric", "repository": { "type": "git", "url": "https://github.com/Azure/azure-sdk-for-js.git" diff --git a/sdk/servicefabric/servicefabric/rollup.config.js b/sdk/servicefabric/servicefabric/rollup.config.js index 8208f4f0f5e1..954736a3500c 100644 --- a/sdk/servicefabric/servicefabric/rollup.config.js +++ b/sdk/servicefabric/servicefabric/rollup.config.js @@ -21,8 +21,8 @@ const config = { "@azure/ms-rest-azure-js": "msRestAzure" }, banner: `/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/servicefabric/servicefabric/src/models/index.ts b/sdk/servicefabric/servicefabric/src/models/index.ts index fa1cfb12eb3d..67c4330de29b 100644 --- a/sdk/servicefabric/servicefabric/src/models/index.ts +++ b/sdk/servicefabric/servicefabric/src/models/index.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -403,7 +403,7 @@ export interface ApplicationHealth extends EntityHealth { /** * Contains the possible cases for HealthEvaluation. */ -export type HealthEvaluationUnion = HealthEvaluation | ApplicationHealthEvaluation | ApplicationsHealthEvaluation | ApplicationTypeApplicationsHealthEvaluation | DeltaNodesCheckHealthEvaluation | DeployedApplicationHealthEvaluation | DeployedApplicationsHealthEvaluation | DeployedServicePackageHealthEvaluation | DeployedServicePackagesHealthEvaluation | EventHealthEvaluation | NodeHealthEvaluation | NodesHealthEvaluation | PartitionHealthEvaluation | PartitionsHealthEvaluation | ReplicaHealthEvaluation | ReplicasHealthEvaluation | ServiceHealthEvaluation | ServicesHealthEvaluation | SystemApplicationHealthEvaluation | UpgradeDomainDeltaNodesCheckHealthEvaluation | UpgradeDomainNodesHealthEvaluation; +export type HealthEvaluationUnion = HealthEvaluation | ApplicationHealthEvaluation | ApplicationsHealthEvaluation | ApplicationTypeApplicationsHealthEvaluation | DeltaNodesCheckHealthEvaluation | DeployedApplicationHealthEvaluation | DeployedApplicationsHealthEvaluation | DeployedServicePackageHealthEvaluation | DeployedServicePackagesHealthEvaluation | EventHealthEvaluation | NodeHealthEvaluation | NodesHealthEvaluation | PartitionHealthEvaluation | PartitionsHealthEvaluation | ReplicaHealthEvaluation | ReplicasHealthEvaluation | ServiceHealthEvaluation | ServicesHealthEvaluation | SystemApplicationHealthEvaluation | UpgradeDomainDeltaNodesCheckHealthEvaluation | UpgradeDomainDeployedApplicationsHealthEvaluation | UpgradeDomainNodesHealthEvaluation | NodeTypeNodesHealthEvaluation; /** * Represents a health evaluation which describes the data and the algorithm used by health manager @@ -589,6 +589,22 @@ export interface ApplicationHealthPolicies { applicationHealthPolicyMap?: ApplicationHealthPolicyMapItem[]; } +/** + * Represents the map of application health policies for a ServiceFabric cluster upgrade + */ +export interface ApplicationHealthPolicyMapObject { + /** + * Defines a map that contains specific application health policies for different applications. + * Each entry specifies as key the application name and as value an ApplicationHealthPolicy used + * to evaluate the application health. + * If an application is not specified in the map, the application health evaluation uses the + * ApplicationHealthPolicy found in its application manifest or the default application health + * policy (if no health policy is defined in the manifest). + * The map is empty by default. + */ + applicationHealthPolicyMap?: ApplicationHealthPolicyMapItem[]; +} + /** * Represents the health state of an application, which contains the application identifier and the * aggregated health state. @@ -1171,6 +1187,34 @@ export interface ApplicationParameter { value: string; } +/** + * Describes a managed application identity. + */ +export interface ManagedApplicationIdentity { + /** + * The name of the identity. + */ + name: string; + /** + * The identity's PrincipalId. + */ + principalId?: string; +} + +/** + * Managed application identity description. + */ +export interface ManagedApplicationIdentityDescription { + /** + * Token service endpoint. + */ + tokenServiceEndpoint?: string; + /** + * A list of managed application identity objects. + */ + managedIdentities?: ManagedApplicationIdentity[]; +} + /** * Information about a Service Fabric application. */ @@ -1216,48 +1260,37 @@ export interface ApplicationInfo { * 'ServiceFabricApplicationDescription', 'Compose' */ applicationDefinitionKind?: ApplicationDefinitionKind; + /** + * Managed application identity description. + */ + managedApplicationIdentity?: ManagedApplicationIdentityDescription; } /** - * Describes capacity information for a custom resource balancing metric. This can be used to limit - * the total consumption of this metric by the services of this application. + * Describes load information for a custom resource balancing metric. This can be used to limit the + * total consumption of this metric by the services of this application. */ -export interface ApplicationMetricDescription { +export interface ApplicationLoadMetricInformation { /** * The name of the metric. */ name?: string; /** - * The maximum node capacity for Service Fabric application. - * This is the maximum Load for an instance of this application on a single node. Even if the - * capacity of node is greater than this value, Service Fabric will limit the total load of - * services within the application on each node to this value. - * If set to zero, capacity for this metric is unlimited on each node. - * When creating a new application with application capacity defined, the product of MaximumNodes - * and this value must always be smaller than or equal to TotalApplicationCapacity. - * When updating existing application with application capacity, the product of MaximumNodes and - * this value must always be smaller than or equal to TotalApplicationCapacity. - */ - maximumCapacity?: number; - /** - * The node reservation capacity for Service Fabric application. - * This is the amount of load which is reserved on nodes which have instances of this - * application. - * If MinimumNodes is specified, then the product of these values will be the capacity reserved - * in the cluster for the application. + * This is the capacity reserved in the cluster for the application. + * It's the product of NodeReservationCapacity and MinimumNodes. * If set to zero, no capacity is reserved for this metric. - * When setting application capacity or when updating application capacity; this value must be + * When setting application capacity or when updating application capacity this value must be * smaller than or equal to MaximumCapacity for each metric. */ reservationCapacity?: number; /** - * The total metric capacity for Service Fabric application. - * This is the total metric capacity for this application in the cluster. Service Fabric will try - * to limit the sum of loads of services within the application to this value. - * When creating a new application with application capacity defined, the product of MaximumNodes - * and MaximumCapacity must always be smaller than or equal to this value. + * Total capacity for this metric in this application instance. */ - totalApplicationCapacity?: number; + applicationCapacity?: number; + /** + * Current load for this metric in this application instance. + */ + applicationLoad?: number; } /** @@ -1291,9 +1324,9 @@ export interface ApplicationLoadInfo { */ nodeCount?: number; /** - * List of application capacity metric description. + * List of application load metric information. */ - applicationLoadMetricInformation?: ApplicationMetricDescription[]; + applicationLoadMetricInformation?: ApplicationLoadMetricInformation[]; } /** @@ -1470,6 +1503,96 @@ export interface ApplicationTypeManifest { manifest?: string; } +/** + * Describes capacity information for a custom resource balancing metric. This can be used to limit + * the total consumption of this metric by the services of this application. + */ +export interface ApplicationMetricDescription { + /** + * The name of the metric. + */ + name?: string; + /** + * The maximum node capacity for Service Fabric application. + * This is the maximum Load for an instance of this application on a single node. Even if the + * capacity of node is greater than this value, Service Fabric will limit the total load of + * services within the application on each node to this value. + * If set to zero, capacity for this metric is unlimited on each node. + * When creating a new application with application capacity defined, the product of MaximumNodes + * and this value must always be smaller than or equal to TotalApplicationCapacity. + * When updating existing application with application capacity, the product of MaximumNodes and + * this value must always be smaller than or equal to TotalApplicationCapacity. + */ + maximumCapacity?: number; + /** + * The node reservation capacity for Service Fabric application. + * This is the amount of load which is reserved on nodes which have instances of this + * application. + * If MinimumNodes is specified, then the product of these values will be the capacity reserved + * in the cluster for the application. + * If set to zero, no capacity is reserved for this metric. + * When setting application capacity or when updating application capacity; this value must be + * smaller than or equal to MaximumCapacity for each metric. + */ + reservationCapacity?: number; + /** + * The total metric capacity for Service Fabric application. + * This is the total metric capacity for this application in the cluster. Service Fabric will try + * to limit the sum of loads of services within the application to this value. + * When creating a new application with application capacity defined, the product of MaximumNodes + * and MaximumCapacity must always be smaller than or equal to this value. + */ + totalApplicationCapacity?: number; +} + +/** + * Describes the parameters for updating an application instance. + */ +export interface ApplicationUpdateDescription { + /** + * Flags indicating whether other properties are set. Each of the associated properties + * corresponds to a flag, specified below, which, if set, indicate that the property is + * specified. + * If flags are not specified for a certain property, the property will not be updated even if + * the new value is provided. + * This property can be a combination of those flags obtained using bitwise 'OR' operator. + * Exception is RemoveApplicationCapacity which cannot be specified along with other parameters. + * For example, if the provided value is 3 then the flags for MinimumNodes (1) and MaximumNodes + * (2) are set. + * + * - None - Does not indicate any other properties are set. The value is 0. + * - MinimumNodes - Indicates whether the MinimumNodes property is set. The value is 1. + * - MaximumNodes - Indicates whether the MinimumNodes property is set. The value is 2. + * - ApplicationMetrics - Indicates whether the ApplicationMetrics property is set. The value is + * 4. + */ + flags?: string; + /** + * Used to clear all parameters related to Application Capacity for this application. | + * It is not possible to specify this parameter together with other Application Capacity + * parameters. Default value: false. + */ + removeApplicationCapacity?: boolean; + /** + * The minimum number of nodes where Service Fabric will reserve capacity for this application. + * Note that this does not mean that the services of this application will be placed on all of + * those nodes. If this property is set to zero, no capacity will be reserved. The value of this + * property cannot be more than the value of the MaximumNodes property. + */ + minimumNodes?: number; + /** + * The maximum number of nodes where Service Fabric will reserve capacity for this application. + * Note that this does not mean that the services of this application will be placed on all of + * those nodes. By default, the value of this property is zero and it means that the services can + * be placed on any node. Default value: 0. + */ + maximumNodes?: number; + /** + * List of application capacity metric description. + */ + applicationMetrics?: ApplicationMetricDescription[]; +} + /** * Describes the parameters for monitoring an upgrade in Monitored mode. */ @@ -1592,6 +1715,10 @@ export interface ApplicationUpgradeDescription { * description. */ instanceCloseDelayDurationInSeconds?: number; + /** + * Managed application identity description. + */ + managedApplicationIdentity?: ManagedApplicationIdentityDescription; } /** @@ -1947,6 +2074,26 @@ export interface NodeHealthStateFilter { healthStateFilter?: number; } +/** + * Defines an item in NodeTypeHealthPolicyMap. + */ +export interface NodeTypeHealthPolicyMapItem { + /** + * The key of the node type health policy map item. This is the name of the node type. + */ + key: string; + /** + * The value of the node type health policy map item. + * If the percentage is respected but there is at least one unhealthy node in the node type, the + * health is evaluated as Warning. + * The percentage is calculated by dividing the number of unhealthy nodes over the total number + * of nodes in the node type. + * The computation rounds up to tolerate one failure on small numbers of nodes. + * The max percent unhealthy nodes allowed for the node type. Must be between zero and 100. + */ + value: number; +} + /** * Defines a health policy used to evaluate the health of the cluster or of a cluster node. */ @@ -2010,6 +2157,39 @@ export interface ClusterHealthPolicy { * HealthManager/EnableApplicationTypeHealthEvaluation. */ applicationTypeHealthPolicyMap?: ApplicationTypeHealthPolicyMapItem[]; + /** + * Defines a map with max percentage unhealthy nodes for specific node types. + * Each entry specifies as key the node type name and as value an integer that represents the + * MaxPercentUnhealthyNodes percentage used to evaluate the nodes of the specified node type. + * + * The node type health policy map can be used during cluster health evaluation to describe + * special node types. + * They are evaluated against the percentages associated with their node type name in the map. + * Setting this has no impact on the global pool of nodes used for MaxPercentUnhealthyNodes. + * The node type health policy map is used only if the cluster manifest enables node type health + * evaluation using the configuration entry for HealthManager/EnableNodeTypeHealthEvaluation. + * + * For example, given a cluster with many nodes of different types, with important work hosted on + * node type "SpecialNodeType" that should not tolerate any nodes down. + * You can specify global MaxPercentUnhealthyNodes to 20% to tolerate some failures for all + * nodes, but for the node type "SpecialNodeType", set the MaxPercentUnhealthyNodes to 0 by + * setting the value in the key value pair in NodeTypeHealthPolicyMapItem. The key is the node + * type name. + * This way, as long as no nodes of type "SpecialNodeType" are in Error state, + * even if some of the many nodes in the global pool are in Error state, but below the global + * unhealthy percentage, the cluster would be evaluated to Warning. + * A Warning health state does not impact cluster upgrade or other monitoring triggered by Error + * health state. + * But even one node of type SpecialNodeType in Error would make cluster unhealthy (in Error + * rather than Warning/Ok), which triggers rollback or pauses the cluster upgrade, depending on + * the upgrade configuration. + * + * Conversely, setting the global MaxPercentUnhealthyNodes to 0, and setting SpecialNodeType's + * max percent unhealthy nodes to 100, + * with one node of type SpecialNodeType in Error state would still put the cluster in an Error + * state, since the global restriction is more strict in this case. + */ + nodeTypeHealthPolicyMap?: NodeTypeHealthPolicyMapItem[]; } /** @@ -2711,7 +2891,8 @@ export interface DeployedServiceReplicaInfo { export interface ReconfigurationInformation { /** * Replica role before reconfiguration started. Possible values include: 'Unknown', 'None', - * 'Primary', 'IdleSecondary', 'ActiveSecondary' + * 'Primary', 'IdleSecondary', 'ActiveSecondary', 'IdleAuxiliary', 'ActiveAuxiliary', + * 'PrimaryAuxiliary' */ previousConfigurationRole?: ReplicaRole; /** @@ -2795,7 +2976,8 @@ export interface DeployedStatefulServiceReplicaInfo { replicaId?: string; /** * The role of a replica of a stateful service. Possible values include: 'Unknown', 'None', - * 'Primary', 'IdleSecondary', 'ActiveSecondary' + * 'Primary', 'IdleSecondary', 'ActiveSecondary', 'IdleAuxiliary', 'ActiveAuxiliary', + * 'PrimaryAuxiliary' */ replicaRole?: ReplicaRole; /** @@ -3199,6 +3381,78 @@ export interface Int64RangePartitionInformation { highKey?: string; } +/** + * Represents partition information. + */ +export interface LoadedPartitionInformationResult { + /** + * Name of the service this partition belongs to. + */ + serviceName: string; + /** + * Id of the partition. + */ + partitionId: string; + /** + * Name of the metric for which this information is provided. + */ + metricName: string; + /** + * Load for metric. + */ + load: number; +} + +/** + * Represents data structure that contains top/least loaded partitions for a certain metric. + */ +export interface LoadedPartitionInformationResultList { + /** + * The continuation token parameter is used to obtain next set of results. The continuation token + * is included in the response of the API when the results from the system do not fit in a single + * response. When this value is passed to the next API call, the API returns next set of results. + * If there are no further results, then the continuation token is not included in the response. + */ + continuationToken?: string; + /** + * List of application information. + */ + items?: LoadedPartitionInformationResult[]; +} + +/** + * Represents data structure that contains query information. + */ +export interface LoadedPartitionInformationQueryDescription { + /** + * Name of the metric for which this information is provided. + */ + metricName?: string; + /** + * Name of the service this partition belongs to. + */ + serviceName?: string; + /** + * Ordering of partitions' load. Possible values include: 'Desc', 'Asc'. Default value: 'Desc'. + */ + ordering?: Ordering; + /** + * The maximum number of results to be returned as part of the paged queries. This parameter + * defines the upper bound on the number of results returned. The results returned can be less + * than the specified maximum results if they do not fit in the message as per the max message + * size restrictions defined in the configuration. If this parameter is zero or not specified, + * the paged query includes as many results as possible that fit in the return message. + */ + maxResults?: number; + /** + * The continuation token parameter is used to obtain next set of results. The continuation token + * is included in the response of the API when the results from the system do not fit in a single + * response. When this value is passed to the next API call, the API returns next set of results. + * If there are no further results, then the continuation token is not included in the response. + */ + continuationToken?: string; +} + /** * Describes the partition information for the name as a string that is based on partition schemes. */ @@ -3441,6 +3695,10 @@ export interface NodeInfo { * zero date time. */ nodeDownAt?: Date; + /** + * List that contains tags, which will be applied to the nodes. + */ + nodeTags?: string[]; } /** @@ -4704,7 +4962,7 @@ export interface ServiceNameInfo { /** * Contains the possible cases for ServicePlacementPolicyDescription. */ -export type ServicePlacementPolicyDescriptionUnion = ServicePlacementPolicyDescription | ServicePlacementInvalidDomainPolicyDescription | ServicePlacementNonPartiallyPlaceServicePolicyDescription | ServicePlacementPreferPrimaryDomainPolicyDescription | ServicePlacementRequiredDomainPolicyDescription | ServicePlacementRequireDomainDistributionPolicyDescription; +export type ServicePlacementPolicyDescriptionUnion = ServicePlacementPolicyDescription | ServicePlacementInvalidDomainPolicyDescription | ServicePlacementNonPartiallyPlaceServicePolicyDescription | ServicePlacementAllowMultipleStatelessInstancesOnNodePolicyDescription | ServicePlacementPreferPrimaryDomainPolicyDescription | ServicePlacementRequiredDomainPolicyDescription | ServicePlacementRequireDomainDistributionPolicyDescription; /** * Describes the policy to be used for placement of a Service Fabric service. @@ -4743,6 +5001,22 @@ export interface ServicePlacementNonPartiallyPlaceServicePolicyDescription { type: "NonPartiallyPlaceService"; } +/** + * Describes the policy to be used for placement of a Service Fabric service allowing multiple + * stateless instances of a partition of the service to be placed on a node. + */ +export interface ServicePlacementAllowMultipleStatelessInstancesOnNodePolicyDescription { + /** + * Polymorphic Discriminator + */ + type: "AllowMultipleStatelessInstancesOnNode"; + /** + * Holdover from other policy descriptions, not used for this policy, values are ignored by + * runtime. Keeping it for any backwards-compatibility with clients. + */ + domainName?: string; +} + /** * Describes the policy to be used for placement of a Service Fabric service where the service's * Primary replicas should optimally be placed in a particular domain. @@ -4867,6 +5141,11 @@ export interface ServiceLoadMetricDescription { * creates for this metric when it is a Secondary replica. */ secondaryDefaultLoad?: number; + /** + * Used only for Stateful services. The default amount of load, as a number, that this service + * creates for this metric when it is an Auxiliary replica. + */ + auxiliaryDefaultLoad?: number; /** * Used only for Stateless services. The default amount of load, as a number, that this service * creates for this metric. @@ -5065,6 +5344,11 @@ export interface StatefulServicePartitionInfo { * The minimum replica set size as a number. */ minReplicaSetSize?: number; + /** + * The auxiliary replica count as a number. To use Auxiliary replicas the following must be true, + * AuxiliaryReplicaCount < (TargetReplicaSetSize+1)/2 and TargetReplicaSetSize >=3. + */ + auxiliaryReplicaCount?: number; /** * The duration for which this partition was in quorum loss. If the partition is currently in * quorum loss, it returns the duration since it has been in that state. This field is using @@ -5481,6 +5765,46 @@ export interface UpgradeDomainDeltaNodesCheckHealthEvaluation { unhealthyEvaluations?: HealthEvaluationWrapper[]; } +/** + * Represents health evaluation for deployed applications in an upgrade domain, containing health + * evaluations for each unhealthy deployed application that impacted current aggregated health + * state. Can be returned when evaluating cluster health during cluster upgrade and the aggregated + * health state is either Error or Warning. + */ +export interface UpgradeDomainDeployedApplicationsHealthEvaluation { + /** + * Polymorphic Discriminator + */ + kind: "UpgradeDomainDeployedApplications"; + /** + * The health state of a Service Fabric entity such as Cluster, Node, Application, Service, + * Partition, Replica etc. Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', + * 'Unknown' + */ + aggregatedHealthState?: HealthState; + /** + * Description of the health evaluation, which represents a summary of the evaluation process. + */ + description?: string; + /** + * Name of the upgrade domain where deployed applications health is currently evaluated. + */ + upgradeDomainName?: string; + /** + * Maximum allowed percentage of unhealthy deployed applications from the ClusterHealthPolicy. + */ + maxPercentUnhealthyDeployedApplications?: number; + /** + * Total number of deployed applications in the current upgrade domain. + */ + totalCount?: number; + /** + * List of unhealthy evaluations that led to the aggregated health state. Includes all the + * unhealthy DeployedApplicationHealthEvaluation that impacted the aggregated health. + */ + unhealthyEvaluations?: HealthEvaluationWrapper[]; +} + /** * Represents health evaluation for cluster nodes in an upgrade domain, containing health * evaluations for each unhealthy node that impacted current aggregated health state. Can be @@ -5608,8 +5932,8 @@ export interface LoadMetricReport { } /** - * Represents load information for a partition, which contains the primary and secondary reported - * load metrics. + * Represents load information for a partition, which contains the primary, secondary and auxiliary + * reported load metrics. * In case there is no load reported, PartitionLoadInformation will contain the default load for * the service of the partition. * For default loads, LoadMetricReport's LastReportedUtc is set to 0. @@ -5628,6 +5952,11 @@ export interface PartitionLoadInformation { * Array only contains the latest reported load for each metric. */ secondaryLoadMetricReports?: LoadMetricReport[]; + /** + * Array of aggregated load reports from all auxiliary replicas for this partition. + * Array only contains the latest reported load for each metric. + */ + auxiliaryLoadMetricReports?: LoadMetricReport[]; } /** @@ -5664,7 +5993,8 @@ export interface StatefulServiceReplicaInfo { lastInBuildDurationInSeconds?: string; /** * The role of a replica of a stateful service. Possible values include: 'Unknown', 'None', - * 'Primary', 'IdleSecondary', 'ActiveSecondary' + * 'Primary', 'IdleSecondary', 'ActiveSecondary', 'IdleAuxiliary', 'ActiveAuxiliary', + * 'PrimaryAuxiliary' */ replicaRole?: ReplicaRole; /** @@ -5778,15 +6108,9 @@ export interface ClusterUpgradeDescriptionObject { */ clusterUpgradeHealthPolicy?: ClusterUpgradeHealthPolicyObject; /** - * Defines a map that contains specific application health policies for different applications. - * Each entry specifies as key the application name and as value an ApplicationHealthPolicy used - * to evaluate the application health. - * If an application is not specified in the map, the application health evaluation uses the - * ApplicationHealthPolicy found in its application manifest or the default application health - * policy (if no health policy is defined in the manifest). - * The map is empty by default. + * Represents the map of application health policies for a ServiceFabric cluster upgrade */ - applicationHealthPolicyMap?: ApplicationHealthPolicyMapItem[]; + applicationHealthPolicyMap?: ApplicationHealthPolicyMapObject; } /** @@ -6626,34 +6950,6 @@ export interface ApplicationCapacityDescription { applicationMetrics?: ApplicationMetricDescription[]; } -/** - * Describes a managed application identity. - */ -export interface ManagedApplicationIdentity { - /** - * The name of the identity. - */ - name: string; - /** - * The identity's PrincipalId. - */ - principalId?: string; -} - -/** - * Managed application identity description. - */ -export interface ManagedApplicationIdentityDescription { - /** - * Token service endpoint. - */ - tokenServiceEndpoint?: string; - /** - * A list of managed application identity objects. - */ - managedIdentities?: ManagedApplicationIdentity[]; -} - /** * Describes a Service Fabric application. */ @@ -7079,6 +7375,20 @@ export interface ScalingPolicyDescription { scalingMechanism: ScalingMechanismDescriptionUnion; } +/** + * Describes the tags required for placement or running of the service. + */ +export interface NodeTagsDescription { + /** + * The number of tags. + */ + count: number; + /** + * Array of size specified by the ‘Count’ parameter, for the placement tags of the service. + */ + tags: string[]; +} + /** * Contains the possible cases for ServiceDescription. */ @@ -7155,6 +7465,29 @@ export interface ServiceDescription { * Scaling policies for this service. */ scalingPolicies?: ScalingPolicyDescription[]; + /** + * Tags for placement of this service. + */ + tagsRequiredToPlace?: NodeTagsDescription; + /** + * Tags for running of this service. + */ + tagsRequiredToRun?: NodeTagsDescription; +} + +/** + * Describes how the replica will behave + */ +export interface ReplicaLifecycleDescription { + /** + * If set to true, replicas with a target replica set size of 1 will be permitted to move during + * upgrade. + */ + isSingletonReplicaMoveAllowedDuringUpgrade?: boolean; + /** + * If set to true, move/swap replica to original location after upgrade. + */ + restoreReplicaLocationAfterUpgrade?: boolean; } /** @@ -7228,6 +7561,14 @@ export interface StatefulServiceDescription { * Scaling policies for this service. */ scalingPolicies?: ScalingPolicyDescription[]; + /** + * Tags for placement of this service. + */ + tagsRequiredToPlace?: NodeTagsDescription; + /** + * Tags for running of this service. + */ + tagsRequiredToRun?: NodeTagsDescription; /** * The target replica set size as a number. */ @@ -7258,6 +7599,8 @@ export interface StatefulServiceDescription { * value is 4. * - ServicePlacementTimeLimit - Indicates the ServicePlacementTimeLimit property is set. The * value is 8. + * - DropSourceReplicaOnMove - Indicates the DropSourceReplicaOnMove property is set. The value + * is 16. */ flags?: number; /** @@ -7277,6 +7620,31 @@ export interface StatefulServiceDescription { * The duration for which replicas can stay InBuild before reporting that build is stuck. */ servicePlacementTimeLimitSeconds?: number; + /** + * Indicates whether to drop source Secondary replica even if the target replica has not finished + * build. If desired behavior is to drop it as soon as possible the value of this property is + * true, if not it is false. + */ + dropSourceReplicaOnMove?: boolean; + /** + * Defines how replicas of this service will behave during their lifecycle. + */ + replicaLifecycleDescription?: ReplicaLifecycleDescription; + /** + * The auxiliary replica count as a number. To use Auxiliary replicas, the following must be + * true: AuxiliaryReplicaCount < (TargetReplicaSetSize+1)/2 and TargetReplicaSetSize >=3. + */ + auxiliaryReplicaCount?: number; +} + +/** + * Describes how the instance will behave + */ +export interface InstanceLifecycleDescription { + /** + * If set to true, move/swap replica to original location after upgrade. + */ + restoreReplicaLocationAfterUpgrade?: boolean; } /** @@ -7350,6 +7718,14 @@ export interface StatelessServiceDescription { * Scaling policies for this service. */ scalingPolicies?: ScalingPolicyDescription[]; + /** + * Tags for placement of this service. + */ + tagsRequiredToPlace?: NodeTagsDescription; + /** + * Tags for running of this service. + */ + tagsRequiredToRun?: NodeTagsDescription; /** * The instance count. */ @@ -7384,6 +7760,8 @@ export interface StatelessServiceDescription { * - None - Does not indicate any other properties are set. The value is zero. * - InstanceCloseDelayDuration - Indicates the InstanceCloseDelayDuration property is set. The * value is 1. + * - InstanceRestartWaitDuration - Indicates the InstanceRestartWaitDurationSeconds property is + * set. The value is 2. */ flags?: number; /** @@ -7393,7 +7771,7 @@ export interface StatelessServiceDescription { * The endpoint exposed on this instance is removed prior to starting the delay, which prevents * new connections to this instance. * In addition, clients that have subscribed to service endpoint change - * events(https://docs.microsoft.com/en-us/dotnet/api/system.fabric.fabricclient.servicemanagementclient.registerservicenotificationfilterasync), + * events(https://docs.microsoft.com/dotnet/api/system.fabric.fabricclient.servicemanagementclient.registerservicenotificationfilterasync), * can do * the following upon receiving the endpoint removal notification: * - Stop sending new requests to this instance. @@ -7403,6 +7781,19 @@ export interface StatelessServiceDescription { * be any delay or removal of the endpoint prior to closing the instance. */ instanceCloseDelayDurationSeconds?: number; + /** + * Defines how instances of this service will behave during their lifecycle. + */ + instanceLifecycleDescription?: InstanceLifecycleDescription; + /** + * When a stateless instance goes down, this timer starts. When it expires Service Fabric will + * create a new instance on any node in the cluster. + * This configuration is to reduce unnecessary creation of a new instance in situations where the + * instance going down is likely to recover in a short time. For example, during an upgrade. + * The default value is 0, which indicates that when stateless instance goes down, Service Fabric + * will immediately start building its replacement. + */ + instanceRestartWaitDurationSeconds?: number; } /** @@ -7970,6 +8361,13 @@ export interface ServiceUpdateDescription { * 8192. * - InstanceCloseDelayDuration - Indicates the InstanceCloseDelayDuration property is set. The * value is 16384. + * - InstanceRestartWaitDuration - Indicates the InstanceCloseDelayDuration property is set. The + * value is 32768. + * - DropSourceReplicaOnMove - Indicates the DropSourceReplicaOnMove property is set. The value + * is 65536. + * - ServiceDnsName - Indicates the ServiceDnsName property is set. The value is 131072. + * - TagsForPlacement - Indicates the TagsForPlacement property is set. The value is 1048576. + * - TagsForRunning - Indicates the TagsForRunning property is set. The value is 2097152. */ flags?: string; /** @@ -8000,6 +8398,18 @@ export interface ServiceUpdateDescription { * Scaling policies for this service. */ scalingPolicies?: ScalingPolicyDescription[]; + /** + * The DNS name of the service. + */ + serviceDnsName?: string; + /** + * Tags for placement of this service. + */ + tagsForPlacement?: NodeTagsDescription; + /** + * Tags for running of this service. + */ + tagsForRunning?: NodeTagsDescription; } /** @@ -8043,6 +8453,13 @@ export interface StatefulServiceUpdateDescription { * 8192. * - InstanceCloseDelayDuration - Indicates the InstanceCloseDelayDuration property is set. The * value is 16384. + * - InstanceRestartWaitDuration - Indicates the InstanceCloseDelayDuration property is set. The + * value is 32768. + * - DropSourceReplicaOnMove - Indicates the DropSourceReplicaOnMove property is set. The value + * is 65536. + * - ServiceDnsName - Indicates the ServiceDnsName property is set. The value is 131072. + * - TagsForPlacement - Indicates the TagsForPlacement property is set. The value is 1048576. + * - TagsForRunning - Indicates the TagsForRunning property is set. The value is 2097152. */ flags?: string; /** @@ -8073,6 +8490,18 @@ export interface StatefulServiceUpdateDescription { * Scaling policies for this service. */ scalingPolicies?: ScalingPolicyDescription[]; + /** + * The DNS name of the service. + */ + serviceDnsName?: string; + /** + * Tags for placement of this service. + */ + tagsForPlacement?: NodeTagsDescription; + /** + * Tags for running of this service. + */ + tagsForRunning?: NodeTagsDescription; /** * The target replica set size as a number. */ @@ -8098,6 +8527,21 @@ export interface StatefulServiceUpdateDescription { * The duration for which replicas can stay InBuild before reporting that build is stuck. */ servicePlacementTimeLimitSeconds?: string; + /** + * Indicates whether to drop source Secondary replica even if the target replica has not finished + * build. If desired behavior is to drop it as soon as possible the value of this property is + * true, if not it is false. + */ + dropSourceReplicaOnMove?: boolean; + /** + * Defines how replicas of this service will behave during their lifecycle. + */ + replicaLifecycleDescription?: ReplicaLifecycleDescription; + /** + * The auxiliary replica count as a number. To use Auxiliary replicas, the following must be + * true: AuxiliaryReplicaCount < (TargetReplicaSetSize+1)/2 and TargetReplicaSetSize >=3. + */ + auxiliaryReplicaCount?: number; } /** @@ -8141,6 +8585,13 @@ export interface StatelessServiceUpdateDescription { * 8192. * - InstanceCloseDelayDuration - Indicates the InstanceCloseDelayDuration property is set. The * value is 16384. + * - InstanceRestartWaitDuration - Indicates the InstanceCloseDelayDuration property is set. The + * value is 32768. + * - DropSourceReplicaOnMove - Indicates the DropSourceReplicaOnMove property is set. The value + * is 65536. + * - ServiceDnsName - Indicates the ServiceDnsName property is set. The value is 131072. + * - TagsForPlacement - Indicates the TagsForPlacement property is set. The value is 1048576. + * - TagsForRunning - Indicates the TagsForRunning property is set. The value is 2097152. */ flags?: string; /** @@ -8171,6 +8622,18 @@ export interface StatelessServiceUpdateDescription { * Scaling policies for this service. */ scalingPolicies?: ScalingPolicyDescription[]; + /** + * The DNS name of the service. + */ + serviceDnsName?: string; + /** + * Tags for placement of this service. + */ + tagsForPlacement?: NodeTagsDescription; + /** + * Tags for running of this service. + */ + tagsForRunning?: NodeTagsDescription; /** * The instance count. */ @@ -8202,7 +8665,7 @@ export interface StatelessServiceUpdateDescription { * The endpoint exposed on this instance is removed prior to starting the delay, which prevents * new connections to this instance. * In addition, clients that have subscribed to service endpoint change - * events(https://docs.microsoft.com/en-us/dotnet/api/system.fabric.fabricclient.servicemanagementclient.registerservicenotificationfilterasync), + * events(https://docs.microsoft.com/dotnet/api/system.fabric.fabricclient.servicemanagementclient.registerservicenotificationfilterasync), * can do * the following upon receiving the endpoint removal notification: * - Stop sending new requests to this instance. @@ -8210,6 +8673,19 @@ export interface StatelessServiceUpdateDescription { * - Connect to a different instance of the service partition for future requests. */ instanceCloseDelayDurationSeconds?: string; + /** + * Defines how instances of this service will behave during their lifecycle. + */ + instanceLifecycleDescription?: InstanceLifecycleDescription; + /** + * When a stateless instance goes down, this timer starts. When it expires Service Fabric will + * create a new instance on any node in the cluster. + * This configuration is to reduce unnecessary creation of a new instance in situations where the + * instance going down is likely to recover in a short time. For example, during an upgrade. + * The default value is 0, which indicates that when stateless instance goes down, Service Fabric + * will immediately start building its replacement. + */ + instanceRestartWaitDurationSeconds?: string; } /** @@ -8372,15 +8848,15 @@ export interface ImageStoreInfo { /** * the ImageStore's file system usage for copied application and cluster packages. [Removing * application and cluster - * packages](https://docs.microsoft.com/en-us/rest/api/servicefabric/sfclient-api-deleteimagestorecontent) + * packages](https://docs.microsoft.com/rest/api/servicefabric/sfclient-api-deleteimagestorecontent) * will free up this space. */ usedByCopy?: UsageInfo; /** * the ImageStore's file system usage for registered and cluster packages. [Unregistering - * application](https://docs.microsoft.com/en-us/rest/api/servicefabric/sfclient-api-unprovisionapplicationtype) + * application](https://docs.microsoft.com/rest/api/servicefabric/sfclient-api-unprovisionapplicationtype) * and [cluster - * packages](https://docs.microsoft.com/en-us/rest/api/servicefabric/sfclient-api-unprovisionapplicationtype) + * packages](https://docs.microsoft.com/rest/api/servicefabric/sfclient-api-unprovisionapplicationtype) * will free up this space. */ usedByRegister?: UsageInfo; @@ -9194,7 +9670,7 @@ export interface BackupScheduleDescription { /** * Contains the possible cases for BackupStorageDescription. */ -export type BackupStorageDescriptionUnion = BackupStorageDescription | AzureBlobBackupStorageDescription | FileShareBackupStorageDescription; +export type BackupStorageDescriptionUnion = BackupStorageDescription | AzureBlobBackupStorageDescription | FileShareBackupStorageDescription | DsmsAzureBlobBackupStorageDescription | ManagedIdentityAzureBlobBackupStorageDescription; /** * Describes the parameters for the backup storage. @@ -9617,7 +10093,57 @@ export interface FileShareBackupStorageDescription { /** * Secondary password to access the share location */ - secondaryPassword?: string; + secondaryPassword?: string; +} + +/** + * Describes the parameters for Dsms Azure blob store used for storing and enumerating backups. + */ +export interface DsmsAzureBlobBackupStorageDescription { + /** + * Polymorphic Discriminator + */ + storageKind: "DsmsAzureBlobStore"; + /** + * Friendly name for this backup storage. + */ + friendlyName?: string; + /** + * The source location of the storage credentials to connect to the Dsms Azure blob store. + */ + storageCredentialsSourceLocation: string; + /** + * The name of the container in the blob store to store and enumerate backups from. + */ + containerName: string; +} + +/** + * Describes the parameters for Azure blob store (connected using managed identity) used for + * storing and enumerating backups. + */ +export interface ManagedIdentityAzureBlobBackupStorageDescription { + /** + * Polymorphic Discriminator + */ + storageKind: "ManagedIdentityAzureBlobStore"; + /** + * Friendly name for this backup storage. + */ + friendlyName?: string; + /** + * The type of managed identity to be used to connect to Azure Blob Store via Managed Identity. + * Possible values include: 'Invalid', 'VMSS', 'Cluster' + */ + managedIdentityType: ManagedIdentityType; + /** + * The Blob Service Uri to connect to the Azure blob store.. + */ + blobServiceUri: string; + /** + * The name of the container in the blob store to store and enumerate backups from. + */ + containerName: string; } /** @@ -10314,6 +10840,14 @@ export interface AverageServiceLoadScalingTrigger { * The period in seconds on which a decision is made whether to scale or not. */ scaleIntervalInSeconds: number; + /** + * Flag determines whether only the load of primary replica should be considered for scaling. + * If set to true, then trigger will only consider the load of primary replicas of stateful + * service. + * If set to false, trigger will consider load of all replicas. + * This parameter cannot be set to true for stateless service. + */ + useOnlyPrimaryLoad: boolean; } /** @@ -13574,6 +14108,148 @@ export interface ChaosNodeRestartScheduledEvent { faultId: string; } +/** + * Specifies metric load information. + */ +export interface MetricLoadDescription { + /** + * The name of the reported metric. + */ + metricName?: string; + /** + * The current value of the metric load. + */ + currentLoad?: number; + /** + * The predicted value of the metric load. + */ + predictedLoad?: number; +} + +/** + * Specifies result of updating load for specified partitions. The output will be ordered based on + * the partition ID. + */ +export interface UpdatePartitionLoadResult { + /** + * Id of the partition. + */ + partitionId?: string; + /** + * If OperationState is Completed - this is 0. If OperationState is Faulted - this is an error + * code indicating the reason. + */ + partitionErrorCode?: number; +} + +/** + * The list of results of the call UpdatePartitionLoad. The list is paged when all of the results + * cannot fit in a single message. The next set of results can be obtained by executing the same + * query with the continuation token provided in this list. + */ +export interface PagedUpdatePartitionLoadResultList { + /** + * The continuation token parameter is used to obtain next set of results. The continuation token + * is included in the response of the API when the results from the system do not fit in a single + * response. When this value is passed to the next API call, the API returns next set of results. + * If there are no further results, then the continuation token is not included in the response. + */ + continuationToken?: string; + /** + * List of partition load update information. + */ + items?: UpdatePartitionLoadResult[]; +} + +/** + * Specifies metric loads of a partition's specific secondary replica or instance. + */ +export interface ReplicaMetricLoadDescription { + /** + * Node name of a specific secondary replica or instance. + */ + nodeName?: string; + /** + * Loads of a different metrics for a partition's secondary replica or instance. + */ + replicaOrInstanceLoadEntries?: MetricLoadDescription[]; +} + +/** + * Represents load information for a partition, which contains the metrics load information about + * primary, all secondary replicas/instances or a specific secondary replica/instance on a specific + * node , all auxiliary replicas or a specific auxiliary replica on a specific node. + */ +export interface PartitionMetricLoadDescription { + /** + * Id of the partition. + */ + partitionId?: string; + /** + * Partition's load information for primary replica, in case partition is from a stateful + * service. + */ + primaryReplicaLoadEntries?: MetricLoadDescription[]; + /** + * Partition's load information for all secondary replicas or instances. + */ + secondaryReplicasOrInstancesLoadEntries?: MetricLoadDescription[]; + /** + * Partition's load information for a specific secondary replica or instance located on a + * specific node. + */ + secondaryReplicaOrInstanceLoadEntriesPerNode?: ReplicaMetricLoadDescription[]; + /** + * Partition's load information for all auxiliary replicas. + */ + auxiliaryReplicasLoadEntries?: MetricLoadDescription[]; + /** + * Partition's load information for a specific auxiliary replica located on a specific node. + */ + auxiliaryReplicaLoadEntriesPerNode?: ReplicaMetricLoadDescription[]; +} + +/** + * Represents health evaluation for nodes of a particular node type. The node type nodes evaluation + * can be returned when cluster health evaluation returns unhealthy aggregated health state, either + * Error or Warning. It contains health evaluations for each unhealthy node of the included node + * type that impacted current aggregated health state. + */ +export interface NodeTypeNodesHealthEvaluation { + /** + * Polymorphic Discriminator + */ + kind: "NodeTypeNodes"; + /** + * The health state of a Service Fabric entity such as Cluster, Node, Application, Service, + * Partition, Replica etc. Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', + * 'Unknown' + */ + aggregatedHealthState?: HealthState; + /** + * Description of the health evaluation, which represents a summary of the evaluation process. + */ + description?: string; + /** + * The node type name as defined in the cluster manifest. + */ + nodeTypeName?: string; + /** + * Maximum allowed percentage of unhealthy nodes for the node type, specified as an entry in + * NodeTypeHealthPolicyMap. + */ + maxPercentUnhealthyNodes?: number; + /** + * Total number of nodes of the node type found in the health store. + */ + totalCount?: number; + /** + * List of unhealthy evaluations that led to the aggregated health state. Includes all the + * unhealthy NodeHealthEvaluation of this node type that impacted the aggregated health. + */ + unhealthyEvaluations?: HealthEvaluationWrapper[]; +} + /** * Contains the possible cases for SecretResourcePropertiesBase. */ @@ -14519,23 +15195,26 @@ export interface ProbeTcpSocket { */ export interface Probe { /** - * The initial delay in seconds to start executing probe once code package has started. + * The initial delay in seconds to start executing probe once codepackage has started. Default + * value: 0. */ initialDelaySeconds?: number; /** - * Periodic seconds to execute probe. + * Periodic seconds to execute probe. Default value: 10. */ periodSeconds?: number; /** - * Period after which probe is considered as failed if it hasn't completed successfully. + * Period after which probe is considered as failed if it hasn't completed successfully. Default + * value: 1. */ timeoutSeconds?: number; /** - * The count of successful probe executions after which probe is considered success. + * The count of successful probe executions after which probe is considered success. Default + * value: 1. */ successThreshold?: number; /** - * The count of failures after which probe is considered failed. + * The count of failures after which probe is considered failed. Default value: 3. */ failureThreshold?: number; /** @@ -14571,7 +15250,7 @@ export interface ContainerCodePackageProperties { /** * Override for the default entry point in the container. */ - entrypoint?: string; + entryPoint?: string; /** * Command array to execute within the container in exec form. */ @@ -14635,7 +15314,7 @@ export interface ContainerCodePackageProperties { /** * Contains the possible cases for ExecutionPolicy. */ -export type ExecutionPolicyUnion = ExecutionPolicy | RunToCompletionExecutionPolicy; +export type ExecutionPolicyUnion = ExecutionPolicy | DefaultExecutionPolicy | RunToCompletionExecutionPolicy; /** * The execution policy of the service @@ -15040,16 +15719,29 @@ export interface AutoScalingResourceMetric { } /** - * The run to completion execution policy + * The default execution policy. Always restart the service if an exit occurs. + */ +export interface DefaultExecutionPolicy { + /** + * Polymorphic Discriminator + */ + type: "Default"; +} + +/** + * The run to completion execution policy, the service will perform its desired operation and + * complete successfully. If the service encounters failure, it will restarted based on restart + * policy specified. If the service completes its operation successfully, it will not be restarted + * again. */ export interface RunToCompletionExecutionPolicy { /** * Polymorphic Discriminator */ - type: "runToCompletion"; + type: "RunToCompletion"; /** * Enumerates the restart policy for RunToCompletionExecutionPolicy. Possible values include: - * 'onFailure', 'never' + * 'OnFailure', 'Never' */ restart: RestartPolicy; } @@ -16593,6 +17285,18 @@ export interface ServiceFabricClientUpdateApplicationUpgradeOptionalParams exten timeoutParameter?: number; } +/** + * Optional Parameters. + */ +export interface ServiceFabricClientUpdateApplicationOptionalParams extends msRest.RequestOptionsBase { + /** + * The server timeout for performing the operation in seconds. This timeout specifies the time + * duration that the client is willing to wait for the requested operation to complete. The + * default value for this parameter is 60 seconds. Default value: 60. + */ + timeoutParameter?: number; +} + /** * Optional Parameters. */ @@ -17183,6 +17887,37 @@ export interface ServiceFabricClientGetUnplacedReplicaInformationOptionalParams timeoutParameter?: number; } +/** + * Optional Parameters. + */ +export interface ServiceFabricClientGetLoadedPartitionInfoListOptionalParams extends msRest.RequestOptionsBase { + /** + * The name of a service. + */ + serviceName?: string; + /** + * Ordering of partitions' load. Possible values include: 'Desc', 'Asc'. Default value: 'Desc'. + */ + ordering?: Ordering; + /** + * The maximum number of results to be returned as part of the paged queries. This parameter + * defines the upper bound on the number of results returned. The results returned can be less + * than the specified maximum results if they do not fit in the message as per the max message + * size restrictions defined in the configuration. If this parameter is zero or not specified, + * the paged query includes as many results as possible that fit in the return message. Default + * value: 0. + */ + maxResults?: number; + /** + * The continuation token parameter is used to obtain next set of results. A continuation token + * with a non-empty value is included in the response of the API when the results from the system + * do not fit in a single response. When this value is passed to the next API call, the API + * returns next set of results. If there are no further results, then the continuation token does + * not contain a value. The value of this parameter should not be URL encoded. + */ + continuationToken?: string; +} + /** * Optional Parameters. */ @@ -17464,8 +18199,8 @@ export interface ServiceFabricClientMovePrimaryReplicaOptionalParams extends msR */ nodeName?: string; /** - * Ignore constraints when moving a replica. If this parameter is not specified, all constraints - * are honored. Default value: false. + * Ignore constraints when moving a replica or instance. If this parameter is not specified, all + * constraints are honored. Default value: false. */ ignoreConstraints?: boolean; /** @@ -17481,13 +18216,96 @@ export interface ServiceFabricClientMovePrimaryReplicaOptionalParams extends msR */ export interface ServiceFabricClientMoveSecondaryReplicaOptionalParams extends msRest.RequestOptionsBase { /** - * The name of the target node for secondary replica move. If not specified, replica is moved to - * a random node. + * The name of the target node for secondary replica or instance move. If not specified, replica + * or instance is moved to a random node. + */ + newNodeName?: string; + /** + * Ignore constraints when moving a replica or instance. If this parameter is not specified, all + * constraints are honored. Default value: false. + */ + ignoreConstraints?: boolean; + /** + * The server timeout for performing the operation in seconds. This timeout specifies the time + * duration that the client is willing to wait for the requested operation to complete. The + * default value for this parameter is 60 seconds. Default value: 60. + */ + timeoutParameter?: number; +} + +/** + * Optional Parameters. + */ +export interface ServiceFabricClientUpdatePartitionLoadOptionalParams extends msRest.RequestOptionsBase { + /** + * The continuation token parameter is used to obtain next set of results. A continuation token + * with a non-empty value is included in the response of the API when the results from the system + * do not fit in a single response. When this value is passed to the next API call, the API + * returns next set of results. If there are no further results, then the continuation token does + * not contain a value. The value of this parameter should not be URL encoded. + */ + continuationToken?: string; + /** + * The maximum number of results to be returned as part of the paged queries. This parameter + * defines the upper bound on the number of results returned. The results returned can be less + * than the specified maximum results if they do not fit in the message as per the max message + * size restrictions defined in the configuration. If this parameter is zero or not specified, + * the paged query includes as many results as possible that fit in the return message. Default + * value: 0. + */ + maxResults?: number; + /** + * The server timeout for performing the operation in seconds. This timeout specifies the time + * duration that the client is willing to wait for the requested operation to complete. The + * default value for this parameter is 60 seconds. Default value: 60. + */ + timeoutParameter?: number; +} + +/** + * Optional Parameters. + */ +export interface ServiceFabricClientMoveInstanceOptionalParams extends msRest.RequestOptionsBase { + /** + * The name of the source node for instance move. If not specified, instance is moved from a + * random node. + */ + currentNodeName?: string; + /** + * The name of the target node for secondary replica or instance move. If not specified, replica + * or instance is moved to a random node. + */ + newNodeName?: string; + /** + * Ignore constraints when moving a replica or instance. If this parameter is not specified, all + * constraints are honored. Default value: false. + */ + ignoreConstraints?: boolean; + /** + * The server timeout for performing the operation in seconds. This timeout specifies the time + * duration that the client is willing to wait for the requested operation to complete. The + * default value for this parameter is 60 seconds. Default value: 60. + */ + timeoutParameter?: number; +} + +/** + * Optional Parameters. + */ +export interface ServiceFabricClientMoveAuxiliaryReplicaOptionalParams extends msRest.RequestOptionsBase { + /** + * The name of the source node for instance move. If not specified, instance is moved from a + * random node. + */ + currentNodeName?: string; + /** + * The name of the target node for secondary replica or instance move. If not specified, replica + * or instance is moved to a random node. */ newNodeName?: string; /** - * Ignore constraints when moving a replica. If this parameter is not specified, all constraints - * are honored. Default value: false. + * Ignore constraints when moving a replica or instance. If this parameter is not specified, all + * constraints are honored. Default value: false. */ ignoreConstraints?: boolean; /** @@ -18467,6 +19285,11 @@ export interface ServiceFabricClientCreateBackupPolicyOptionalParams extends msR * default value for this parameter is 60 seconds. Default value: 60. */ timeoutParameter?: number; + /** + * Specifies whether to validate the storage connection and credentials before creating or + * updating the backup policies. Default value: false. + */ + validateConnection?: boolean; } /** @@ -18561,6 +19384,11 @@ export interface ServiceFabricClientUpdateBackupPolicyOptionalParams extends msR * default value for this parameter is 60 seconds. Default value: 60. */ timeoutParameter?: number; + /** + * Specifies whether to validate the storage connection and credentials before creating or + * updating the backup policies. Default value: false. + */ + validateConnection?: boolean; } /** @@ -19679,11 +20507,12 @@ export type ReplicaStatus = 'Invalid' | 'InBuild' | 'Standby' | 'Ready' | 'Down' /** * Defines values for ReplicaRole. - * Possible values include: 'Unknown', 'None', 'Primary', 'IdleSecondary', 'ActiveSecondary' + * Possible values include: 'Unknown', 'None', 'Primary', 'IdleSecondary', 'ActiveSecondary', + * 'IdleAuxiliary', 'ActiveAuxiliary', 'PrimaryAuxiliary' * @readonly * @enum {string} */ -export type ReplicaRole = 'Unknown' | 'None' | 'Primary' | 'IdleSecondary' | 'ActiveSecondary'; +export type ReplicaRole = 'Unknown' | 'None' | 'Primary' | 'IdleSecondary' | 'ActiveSecondary' | 'IdleAuxiliary' | 'ActiveAuxiliary' | 'PrimaryAuxiliary'; /** * Defines values for ReconfigurationPhase. @@ -19746,11 +20575,20 @@ export type FabricEventKind = 'ClusterEvent' | 'ContainerInstanceEvent' | 'NodeE * 'DeployedServicePackages', 'DeployedApplications', 'Services', 'Nodes', 'Applications', * 'SystemApplication', 'UpgradeDomainDeployedApplications', 'UpgradeDomainNodes', 'Replica', * 'Partition', 'DeployedServicePackage', 'DeployedApplication', 'Service', 'Node', 'Application', - * 'DeltaNodesCheck', 'UpgradeDomainDeltaNodesCheck', 'ApplicationTypeApplications' + * 'DeltaNodesCheck', 'UpgradeDomainDeltaNodesCheck', 'ApplicationTypeApplications', + * 'NodeTypeNodes' + * @readonly + * @enum {string} + */ +export type HealthEvaluationKind = 'Invalid' | 'Event' | 'Replicas' | 'Partitions' | 'DeployedServicePackages' | 'DeployedApplications' | 'Services' | 'Nodes' | 'Applications' | 'SystemApplication' | 'UpgradeDomainDeployedApplications' | 'UpgradeDomainNodes' | 'Replica' | 'Partition' | 'DeployedServicePackage' | 'DeployedApplication' | 'Service' | 'Node' | 'Application' | 'DeltaNodesCheck' | 'UpgradeDomainDeltaNodesCheck' | 'ApplicationTypeApplications' | 'NodeTypeNodes'; + +/** + * Defines values for Ordering. + * Possible values include: 'Desc', 'Asc' * @readonly * @enum {string} */ -export type HealthEvaluationKind = 'Invalid' | 'Event' | 'Replicas' | 'Partitions' | 'DeployedServicePackages' | 'DeployedApplications' | 'Services' | 'Nodes' | 'Applications' | 'SystemApplication' | 'UpgradeDomainDeployedApplications' | 'UpgradeDomainNodes' | 'Replica' | 'Partition' | 'DeployedServicePackage' | 'DeployedApplication' | 'Service' | 'Node' | 'Application' | 'DeltaNodesCheck' | 'UpgradeDomainDeltaNodesCheck' | 'ApplicationTypeApplications'; +export type Ordering = 'Desc' | 'Asc'; /** * Defines values for NodeDeactivationIntent. @@ -19863,11 +20701,11 @@ export type ServicePartitionKind = 'Invalid' | 'Singleton' | 'Int64Range' | 'Nam /** * Defines values for ServicePlacementPolicyType. * Possible values include: 'Invalid', 'InvalidDomain', 'RequireDomain', 'PreferPrimaryDomain', - * 'RequireDomainDistribution', 'NonPartiallyPlaceService' + * 'RequireDomainDistribution', 'NonPartiallyPlaceService', 'AllowMultipleStatelessInstancesOnNode' * @readonly * @enum {string} */ -export type ServicePlacementPolicyType = 'Invalid' | 'InvalidDomain' | 'RequireDomain' | 'PreferPrimaryDomain' | 'RequireDomainDistribution' | 'NonPartiallyPlaceService'; +export type ServicePlacementPolicyType = 'Invalid' | 'InvalidDomain' | 'RequireDomain' | 'PreferPrimaryDomain' | 'RequireDomainDistribution' | 'NonPartiallyPlaceService' | 'AllowMultipleStatelessInstancesOnNode'; /** * Defines values for ServiceLoadMetricWeight. @@ -20097,11 +20935,12 @@ export type RetentionPolicyType = 'Basic' | 'Invalid'; /** * Defines values for BackupStorageKind. - * Possible values include: 'Invalid', 'FileShare', 'AzureBlobStore' + * Possible values include: 'Invalid', 'FileShare', 'AzureBlobStore', 'DsmsAzureBlobStore', + * 'ManagedIdentityAzureBlobStore' * @readonly * @enum {string} */ -export type BackupStorageKind = 'Invalid' | 'FileShare' | 'AzureBlobStore'; +export type BackupStorageKind = 'Invalid' | 'FileShare' | 'AzureBlobStore' | 'DsmsAzureBlobStore' | 'ManagedIdentityAzureBlobStore'; /** * Defines values for BackupScheduleKind. @@ -20144,6 +20983,14 @@ export type RestoreState = 'Invalid' | 'Accepted' | 'RestoreInProgress' | 'Succe */ export type BackupType = 'Invalid' | 'Full' | 'Incremental'; +/** + * Defines values for ManagedIdentityType. + * Possible values include: 'Invalid', 'VMSS', 'Cluster' + * @readonly + * @enum {string} + */ +export type ManagedIdentityType = 'Invalid' | 'VMSS' | 'Cluster'; + /** * Defines values for BackupScheduleFrequencyType. * Possible values include: 'Invalid', 'Daily', 'Weekly' @@ -20400,19 +21247,19 @@ export type AutoScalingTriggerKind = 'AverageLoad'; /** * Defines values for ExecutionPolicyType. - * Possible values include: 'runToCompletion' + * Possible values include: 'Default', 'RunToCompletion' * @readonly * @enum {string} */ -export type ExecutionPolicyType = 'runToCompletion'; +export type ExecutionPolicyType = 'Default' | 'RunToCompletion'; /** * Defines values for RestartPolicy. - * Possible values include: 'onFailure', 'never' + * Possible values include: 'OnFailure', 'Never' * @readonly * @enum {string} */ -export type RestartPolicy = 'onFailure' | 'never'; +export type RestartPolicy = 'OnFailure' | 'Never'; /** * Defines values for NodeStatusFilter. @@ -21403,6 +22250,26 @@ export type GetUnplacedReplicaInformationResponse = UnplacedReplicaInformation & }; }; +/** + * Contains response data for the getLoadedPartitionInfoList operation. + */ +export type GetLoadedPartitionInfoListResponse = LoadedPartitionInformationResultList & { + /** + * 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: LoadedPartitionInformationResultList; + }; +}; + /** * Contains response data for the getPartitionInfoList operation. */ @@ -21523,6 +22390,26 @@ export type GetPartitionLoadInformationResponse = PartitionLoadInformation & { }; }; +/** + * Contains response data for the updatePartitionLoad operation. + */ +export type UpdatePartitionLoadResponse = PagedUpdatePartitionLoadResultList & { + /** + * 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: PagedUpdatePartitionLoadResultList; + }; +}; + /** * Contains response data for the createRepairTask operation. */ diff --git a/sdk/servicefabric/servicefabric/src/models/mappers.ts b/sdk/servicefabric/servicefabric/src/models/mappers.ts index 566215cfd85f..9fd18f34cd87 100644 --- a/sdk/servicefabric/servicefabric/src/models/mappers.ts +++ b/sdk/servicefabric/servicefabric/src/models/mappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -597,6 +597,28 @@ export const ApplicationHealthPolicies: msRest.CompositeMapper = { } }; +export const ApplicationHealthPolicyMapObject: msRest.CompositeMapper = { + serializedName: "ApplicationHealthPolicyMapObject", + type: { + name: "Composite", + className: "ApplicationHealthPolicyMapObject", + modelProperties: { + applicationHealthPolicyMap: { + serializedName: "ApplicationHealthPolicyMap", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApplicationHealthPolicyMapItem" + } + } + } + } + } + } +}; + export const ApplicationHealthState: msRest.CompositeMapper = { serializedName: "ApplicationHealthState", type: { @@ -1162,6 +1184,57 @@ export const ApplicationParameter: msRest.CompositeMapper = { } }; +export const ManagedApplicationIdentity: msRest.CompositeMapper = { + serializedName: "ManagedApplicationIdentity", + type: { + name: "Composite", + className: "ManagedApplicationIdentity", + modelProperties: { + name: { + required: true, + serializedName: "Name", + type: { + name: "String" + } + }, + principalId: { + serializedName: "PrincipalId", + type: { + name: "String" + } + } + } + } +}; + +export const ManagedApplicationIdentityDescription: msRest.CompositeMapper = { + serializedName: "ManagedApplicationIdentityDescription", + type: { + name: "Composite", + className: "ManagedApplicationIdentityDescription", + modelProperties: { + tokenServiceEndpoint: { + serializedName: "TokenServiceEndpoint", + type: { + name: "String" + } + }, + managedIdentities: { + serializedName: "ManagedIdentities", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedApplicationIdentity" + } + } + } + } + } + } +}; + export const ApplicationInfo: msRest.CompositeMapper = { serializedName: "ApplicationInfo", type: { @@ -1221,16 +1294,23 @@ export const ApplicationInfo: msRest.CompositeMapper = { type: { name: "String" } + }, + managedApplicationIdentity: { + serializedName: "ManagedApplicationIdentity", + type: { + name: "Composite", + className: "ManagedApplicationIdentityDescription" + } } } } }; -export const ApplicationMetricDescription: msRest.CompositeMapper = { - serializedName: "ApplicationMetricDescription", +export const ApplicationLoadMetricInformation: msRest.CompositeMapper = { + serializedName: "ApplicationLoadMetricInformation", type: { name: "Composite", - className: "ApplicationMetricDescription", + className: "ApplicationLoadMetricInformation", modelProperties: { name: { serializedName: "Name", @@ -1238,20 +1318,20 @@ export const ApplicationMetricDescription: msRest.CompositeMapper = { name: "String" } }, - maximumCapacity: { - serializedName: "MaximumCapacity", + reservationCapacity: { + serializedName: "ReservationCapacity", type: { name: "Number" } }, - reservationCapacity: { - serializedName: "ReservationCapacity", + applicationCapacity: { + serializedName: "ApplicationCapacity", type: { name: "Number" } }, - totalApplicationCapacity: { - serializedName: "TotalApplicationCapacity", + applicationLoad: { + serializedName: "ApplicationLoad", type: { name: "Number" } @@ -1297,7 +1377,7 @@ export const ApplicationLoadInfo: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "ApplicationMetricDescription" + className: "ApplicationLoadMetricInformation" } } } @@ -1528,6 +1608,94 @@ export const ApplicationTypeManifest: msRest.CompositeMapper = { } }; +export const ApplicationMetricDescription: msRest.CompositeMapper = { + serializedName: "ApplicationMetricDescription", + type: { + name: "Composite", + className: "ApplicationMetricDescription", + modelProperties: { + name: { + serializedName: "Name", + type: { + name: "String" + } + }, + maximumCapacity: { + serializedName: "MaximumCapacity", + type: { + name: "Number" + } + }, + reservationCapacity: { + serializedName: "ReservationCapacity", + type: { + name: "Number" + } + }, + totalApplicationCapacity: { + serializedName: "TotalApplicationCapacity", + type: { + name: "Number" + } + } + } + } +}; + +export const ApplicationUpdateDescription: msRest.CompositeMapper = { + serializedName: "ApplicationUpdateDescription", + type: { + name: "Composite", + className: "ApplicationUpdateDescription", + modelProperties: { + flags: { + serializedName: "Flags", + type: { + name: "String" + } + }, + removeApplicationCapacity: { + serializedName: "RemoveApplicationCapacity", + defaultValue: false, + type: { + name: "Boolean" + } + }, + minimumNodes: { + serializedName: "MinimumNodes", + constraints: { + InclusiveMinimum: 0 + }, + type: { + name: "Number" + } + }, + maximumNodes: { + serializedName: "MaximumNodes", + defaultValue: 0, + constraints: { + InclusiveMinimum: 0 + }, + type: { + name: "Number" + } + }, + applicationMetrics: { + serializedName: "ApplicationMetrics", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApplicationMetricDescription" + } + } + } + } + } + } +}; + export const MonitoringPolicyDescription: msRest.CompositeMapper = { serializedName: "MonitoringPolicyDescription", type: { @@ -1659,6 +1827,13 @@ export const ApplicationUpgradeDescription: msRest.CompositeMapper = { type: { name: "Number" } + }, + managedApplicationIdentity: { + serializedName: "ManagedApplicationIdentity", + type: { + name: "Composite", + className: "ManagedApplicationIdentityDescription" + } } } } @@ -2140,6 +2315,30 @@ export const NodeHealthStateFilter: msRest.CompositeMapper = { } }; +export const NodeTypeHealthPolicyMapItem: msRest.CompositeMapper = { + serializedName: "NodeTypeHealthPolicyMapItem", + type: { + name: "Composite", + className: "NodeTypeHealthPolicyMapItem", + modelProperties: { + key: { + required: true, + serializedName: "Key", + type: { + name: "String" + } + }, + value: { + required: true, + serializedName: "Value", + type: { + name: "Number" + } + } + } + } +}; + export const ClusterHealthPolicy: msRest.CompositeMapper = { serializedName: "ClusterHealthPolicy", type: { @@ -2178,6 +2377,18 @@ export const ClusterHealthPolicy: msRest.CompositeMapper = { } } } + }, + nodeTypeHealthPolicyMap: { + serializedName: "NodeTypeHealthPolicyMap", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NodeTypeHealthPolicyMapItem" + } + } + } } } } @@ -3520,6 +3731,113 @@ export const Int64RangePartitionInformation: msRest.CompositeMapper = { } }; +export const LoadedPartitionInformationResult: msRest.CompositeMapper = { + serializedName: "LoadedPartitionInformationResult", + type: { + name: "Composite", + className: "LoadedPartitionInformationResult", + modelProperties: { + serviceName: { + required: true, + serializedName: "ServiceName", + type: { + name: "String" + } + }, + partitionId: { + required: true, + serializedName: "PartitionId", + type: { + name: "Uuid" + } + }, + metricName: { + required: true, + serializedName: "MetricName", + type: { + name: "String" + } + }, + load: { + required: true, + serializedName: "Load", + type: { + name: "Number" + } + } + } + } +}; + +export const LoadedPartitionInformationResultList: msRest.CompositeMapper = { + serializedName: "LoadedPartitionInformationResultList", + type: { + name: "Composite", + className: "LoadedPartitionInformationResultList", + modelProperties: { + continuationToken: { + serializedName: "ContinuationToken", + type: { + name: "String" + } + }, + items: { + serializedName: "Items", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "LoadedPartitionInformationResult" + } + } + } + } + } + } +}; + +export const LoadedPartitionInformationQueryDescription: msRest.CompositeMapper = { + serializedName: "LoadedPartitionInformationQueryDescription", + type: { + name: "Composite", + className: "LoadedPartitionInformationQueryDescription", + modelProperties: { + metricName: { + serializedName: "MetricName", + type: { + name: "String" + } + }, + serviceName: { + serializedName: "ServiceName", + type: { + name: "String" + } + }, + ordering: { + serializedName: "Ordering", + defaultValue: 'Desc', + type: { + name: "String" + } + }, + maxResults: { + serializedName: "MaxResults", + type: { + name: "Number" + } + }, + continuationToken: { + serializedName: "ContinuationToken", + type: { + name: "String" + } + } + } + } +}; + export const NamedPartitionInformation: msRest.CompositeMapper = { serializedName: "Named", type: { @@ -3813,6 +4131,17 @@ export const NodeInfo: msRest.CompositeMapper = { type: { name: "DateTime" } + }, + nodeTags: { + serializedName: "NodeTags", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } } } } @@ -4333,7 +4662,7 @@ export const ReplicaHealthState: msRest.CompositeMapper = { serializedName: "ServiceKind", clientName: "serviceKind" }, - uberParent: "EntityHealthState", + uberParent: "ReplicaHealthState", className: "ReplicaHealthState", modelProperties: { ...EntityHealthState.type.modelProperties, @@ -4959,7 +5288,7 @@ export const ReplicaHealth: msRest.CompositeMapper = { serializedName: "ServiceKind", clientName: "serviceKind" }, - uberParent: "EntityHealth", + uberParent: "ReplicaHealth", className: "ReplicaHealth", modelProperties: { ...EntityHealth.type.modelProperties, @@ -5289,6 +5618,25 @@ export const ServicePlacementNonPartiallyPlaceServicePolicyDescription: msRest.C } }; +export const ServicePlacementAllowMultipleStatelessInstancesOnNodePolicyDescription: msRest.CompositeMapper = { + serializedName: "AllowMultipleStatelessInstancesOnNode", + type: { + name: "Composite", + polymorphicDiscriminator: ServicePlacementPolicyDescription.type.polymorphicDiscriminator, + uberParent: "ServicePlacementPolicyDescription", + className: "ServicePlacementAllowMultipleStatelessInstancesOnNodePolicyDescription", + modelProperties: { + ...ServicePlacementPolicyDescription.type.modelProperties, + domainName: { + serializedName: "DomainName", + type: { + name: "String" + } + } + } + } +}; + export const ServicePlacementPreferPrimaryDomainPolicyDescription: msRest.CompositeMapper = { serializedName: "PreferPrimaryDomain", type: { @@ -5420,6 +5768,12 @@ export const ServiceLoadMetricDescription: msRest.CompositeMapper = { name: "Number" } }, + auxiliaryDefaultLoad: { + serializedName: "AuxiliaryDefaultLoad", + type: { + name: "Number" + } + }, defaultLoad: { serializedName: "DefaultLoad", type: { @@ -5632,6 +5986,12 @@ export const StatefulServicePartitionInfo: msRest.CompositeMapper = { name: "Number" } }, + auxiliaryReplicaCount: { + serializedName: "AuxiliaryReplicaCount", + type: { + name: "Number" + } + }, lastQuorumLossDuration: { serializedName: "LastQuorumLossDuration", type: { @@ -5653,6 +6013,8 @@ export const StatefulServiceReplicaHealth: msRest.CompositeMapper = { serializedName: "Stateful", type: { name: "Composite", + polymorphicDiscriminator: ReplicaHealth.type.polymorphicDiscriminator, + uberParent: "ReplicaHealth", className: "StatefulServiceReplicaHealth", modelProperties: { ...ReplicaHealth.type.modelProperties, @@ -5670,6 +6032,8 @@ export const StatefulServiceReplicaHealthState: msRest.CompositeMapper = { serializedName: "Stateful", type: { name: "Composite", + polymorphicDiscriminator: ReplicaHealthState.type.polymorphicDiscriminator, + uberParent: "ReplicaHealthState", className: "StatefulServiceReplicaHealthState", modelProperties: { ...ReplicaHealthState.type.modelProperties, @@ -5719,6 +6083,8 @@ export const StatelessServiceInstanceHealth: msRest.CompositeMapper = { serializedName: "Stateless", type: { name: "Composite", + polymorphicDiscriminator: ReplicaHealth.type.polymorphicDiscriminator, + uberParent: "ReplicaHealth", className: "StatelessServiceInstanceHealth", modelProperties: { ...ReplicaHealth.type.modelProperties, @@ -5736,6 +6102,8 @@ export const StatelessServiceInstanceHealthState: msRest.CompositeMapper = { serializedName: "Stateless", type: { name: "Composite", + polymorphicDiscriminator: ReplicaHealthState.type.polymorphicDiscriminator, + uberParent: "ReplicaHealthState", className: "StatelessServiceInstanceHealthState", modelProperties: { ...ReplicaHealthState.type.modelProperties, @@ -5879,6 +6247,49 @@ export const UpgradeDomainDeltaNodesCheckHealthEvaluation: msRest.CompositeMappe } }; +export const UpgradeDomainDeployedApplicationsHealthEvaluation: msRest.CompositeMapper = { + serializedName: "UpgradeDomainDeployedApplications", + type: { + name: "Composite", + polymorphicDiscriminator: HealthEvaluation.type.polymorphicDiscriminator, + uberParent: "HealthEvaluation", + className: "UpgradeDomainDeployedApplicationsHealthEvaluation", + modelProperties: { + ...HealthEvaluation.type.modelProperties, + upgradeDomainName: { + serializedName: "UpgradeDomainName", + type: { + name: "String" + } + }, + maxPercentUnhealthyDeployedApplications: { + serializedName: "MaxPercentUnhealthyDeployedApplications", + type: { + name: "Number" + } + }, + totalCount: { + serializedName: "TotalCount", + type: { + name: "Number" + } + }, + unhealthyEvaluations: { + serializedName: "UnhealthyEvaluations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HealthEvaluationWrapper" + } + } + } + } + } + } +}; + export const UpgradeDomainNodesHealthEvaluation: msRest.CompositeMapper = { serializedName: "UpgradeDomainNodes", type: { @@ -6043,6 +6454,18 @@ export const PartitionLoadInformation: msRest.CompositeMapper = { } } } + }, + auxiliaryLoadMetricReports: { + serializedName: "AuxiliaryLoadMetricReports", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "LoadMetricReport" + } + } + } } } } @@ -6173,13 +6596,8 @@ export const ClusterUpgradeDescriptionObject: msRest.CompositeMapper = { applicationHealthPolicyMap: { serializedName: "ApplicationHealthPolicyMap", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApplicationHealthPolicyMapItem" - } - } + name: "Composite", + className: "ApplicationHealthPolicyMapObject" } } } @@ -7367,57 +7785,6 @@ export const ApplicationCapacityDescription: msRest.CompositeMapper = { } }; -export const ManagedApplicationIdentity: msRest.CompositeMapper = { - serializedName: "ManagedApplicationIdentity", - type: { - name: "Composite", - className: "ManagedApplicationIdentity", - modelProperties: { - name: { - required: true, - serializedName: "Name", - type: { - name: "String" - } - }, - principalId: { - serializedName: "PrincipalId", - type: { - name: "String" - } - } - } - } -}; - -export const ManagedApplicationIdentityDescription: msRest.CompositeMapper = { - serializedName: "ManagedApplicationIdentityDescription", - type: { - name: "Composite", - className: "ManagedApplicationIdentityDescription", - modelProperties: { - tokenServiceEndpoint: { - serializedName: "TokenServiceEndpoint", - type: { - name: "String" - } - }, - managedIdentities: { - serializedName: "ManagedIdentities", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedApplicationIdentity" - } - } - } - } - } - } -}; - export const ApplicationDescription: msRest.CompositeMapper = { serializedName: "ApplicationDescription", type: { @@ -8039,6 +8406,35 @@ export const ScalingPolicyDescription: msRest.CompositeMapper = { } }; +export const NodeTagsDescription: msRest.CompositeMapper = { + serializedName: "NodeTagsDescription", + type: { + name: "Composite", + className: "NodeTagsDescription", + modelProperties: { + count: { + required: true, + serializedName: "Count", + type: { + name: "Number" + } + }, + tags: { + required: true, + serializedName: "Tags", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + export const ServiceDescription: msRest.CompositeMapper = { serializedName: "ServiceDescription", type: { @@ -8167,6 +8563,20 @@ export const ServiceDescription: msRest.CompositeMapper = { } } }, + tagsRequiredToPlace: { + serializedName: "TagsRequiredToPlace", + type: { + name: "Composite", + className: "NodeTagsDescription" + } + }, + tagsRequiredToRun: { + serializedName: "TagsRequiredToRun", + type: { + name: "Composite", + className: "NodeTagsDescription" + } + }, serviceKind: { required: true, serializedName: "ServiceKind", @@ -8178,6 +8588,28 @@ export const ServiceDescription: msRest.CompositeMapper = { } }; +export const ReplicaLifecycleDescription: msRest.CompositeMapper = { + serializedName: "ReplicaLifecycleDescription", + type: { + name: "Composite", + className: "ReplicaLifecycleDescription", + modelProperties: { + isSingletonReplicaMoveAllowedDuringUpgrade: { + serializedName: "IsSingletonReplicaMoveAllowedDuringUpgrade", + type: { + name: "Boolean" + } + }, + restoreReplicaLocationAfterUpgrade: { + serializedName: "RestoreReplicaLocationAfterUpgrade", + type: { + name: "Boolean" + } + } + } + } +}; + export const StatefulServiceDescription: msRest.CompositeMapper = { serializedName: "Stateful", type: { @@ -8259,6 +8691,44 @@ export const StatefulServiceDescription: msRest.CompositeMapper = { type: { name: "Number" } + }, + dropSourceReplicaOnMove: { + serializedName: "DropSourceReplicaOnMove", + type: { + name: "Boolean" + } + }, + replicaLifecycleDescription: { + serializedName: "ReplicaLifecycleDescription", + type: { + name: "Composite", + className: "ReplicaLifecycleDescription" + } + }, + auxiliaryReplicaCount: { + serializedName: "AuxiliaryReplicaCount", + constraints: { + InclusiveMinimum: 0 + }, + type: { + name: "Number" + } + } + } + } +}; + +export const InstanceLifecycleDescription: msRest.CompositeMapper = { + serializedName: "InstanceLifecycleDescription", + type: { + name: "Composite", + className: "InstanceLifecycleDescription", + modelProperties: { + restoreReplicaLocationAfterUpgrade: { + serializedName: "RestoreReplicaLocationAfterUpgrade", + type: { + name: "Boolean" + } } } } @@ -8310,6 +8780,23 @@ export const StatelessServiceDescription: msRest.CompositeMapper = { type: { name: "Number" } + }, + instanceLifecycleDescription: { + serializedName: "InstanceLifecycleDescription", + type: { + name: "Composite", + className: "InstanceLifecycleDescription" + } + }, + instanceRestartWaitDurationSeconds: { + serializedName: "InstanceRestartWaitDurationSeconds", + constraints: { + InclusiveMaximum: 4294967295, + InclusiveMinimum: 0 + }, + type: { + name: "Number" + } } } } @@ -8927,6 +9414,26 @@ export const ServiceUpdateDescription: msRest.CompositeMapper = { } } }, + serviceDnsName: { + serializedName: "ServiceDnsName", + type: { + name: "String" + } + }, + tagsForPlacement: { + serializedName: "TagsForPlacement", + type: { + name: "Composite", + className: "NodeTagsDescription" + } + }, + tagsForRunning: { + serializedName: "TagsForRunning", + type: { + name: "Composite", + className: "NodeTagsDescription" + } + }, serviceKind: { required: true, serializedName: "ServiceKind", @@ -8986,7 +9493,29 @@ export const StatefulServiceUpdateDescription: msRest.CompositeMapper = { servicePlacementTimeLimitSeconds: { serializedName: "ServicePlacementTimeLimitSeconds", type: { - name: "String" + name: "String" + } + }, + dropSourceReplicaOnMove: { + serializedName: "DropSourceReplicaOnMove", + type: { + name: "Boolean" + } + }, + replicaLifecycleDescription: { + serializedName: "ReplicaLifecycleDescription", + type: { + name: "Composite", + className: "ReplicaLifecycleDescription" + } + }, + auxiliaryReplicaCount: { + serializedName: "AuxiliaryReplicaCount", + constraints: { + InclusiveMinimum: 0 + }, + type: { + name: "Number" } } } @@ -9028,6 +9557,19 @@ export const StatelessServiceUpdateDescription: msRest.CompositeMapper = { type: { name: "String" } + }, + instanceLifecycleDescription: { + serializedName: "InstanceLifecycleDescription", + type: { + name: "Composite", + className: "InstanceLifecycleDescription" + } + }, + instanceRestartWaitDurationSeconds: { + serializedName: "InstanceRestartWaitDurationSeconds", + type: { + name: "String" + } } } } @@ -11003,6 +11545,67 @@ export const FileShareBackupStorageDescription: msRest.CompositeMapper = { } }; +export const DsmsAzureBlobBackupStorageDescription: msRest.CompositeMapper = { + serializedName: "DsmsAzureBlobStore", + type: { + name: "Composite", + polymorphicDiscriminator: BackupStorageDescription.type.polymorphicDiscriminator, + uberParent: "BackupStorageDescription", + className: "DsmsAzureBlobBackupStorageDescription", + modelProperties: { + ...BackupStorageDescription.type.modelProperties, + storageCredentialsSourceLocation: { + required: true, + serializedName: "StorageCredentialsSourceLocation", + type: { + name: "String" + } + }, + containerName: { + required: true, + serializedName: "ContainerName", + type: { + name: "String" + } + } + } + } +}; + +export const ManagedIdentityAzureBlobBackupStorageDescription: msRest.CompositeMapper = { + serializedName: "ManagedIdentityAzureBlobStore", + type: { + name: "Composite", + polymorphicDiscriminator: BackupStorageDescription.type.polymorphicDiscriminator, + uberParent: "BackupStorageDescription", + className: "ManagedIdentityAzureBlobBackupStorageDescription", + modelProperties: { + ...BackupStorageDescription.type.modelProperties, + managedIdentityType: { + required: true, + serializedName: "ManagedIdentityType", + type: { + name: "String" + } + }, + blobServiceUri: { + required: true, + serializedName: "BlobServiceUri", + type: { + name: "String" + } + }, + containerName: { + required: true, + serializedName: "ContainerName", + type: { + name: "String" + } + } + } + } +}; + export const FrequencyBasedBackupScheduleDescription: msRest.CompositeMapper = { serializedName: "FrequencyBased", type: { @@ -11938,6 +12541,13 @@ export const AverageServiceLoadScalingTrigger: msRest.CompositeMapper = { type: { name: "Number" } + }, + useOnlyPrimaryLoad: { + required: true, + serializedName: "UseOnlyPrimaryLoad", + type: { + name: "Boolean" + } } } } @@ -15259,6 +15869,231 @@ export const ChaosNodeRestartScheduledEvent: msRest.CompositeMapper = { } }; +export const MetricLoadDescription: msRest.CompositeMapper = { + serializedName: "MetricLoadDescription", + type: { + name: "Composite", + className: "MetricLoadDescription", + modelProperties: { + metricName: { + serializedName: "MetricName", + type: { + name: "String" + } + }, + currentLoad: { + serializedName: "CurrentLoad", + type: { + name: "Number" + } + }, + predictedLoad: { + serializedName: "PredictedLoad", + type: { + name: "Number" + } + } + } + } +}; + +export const UpdatePartitionLoadResult: msRest.CompositeMapper = { + serializedName: "UpdatePartitionLoadResult", + type: { + name: "Composite", + className: "UpdatePartitionLoadResult", + modelProperties: { + partitionId: { + serializedName: "PartitionId", + type: { + name: "Uuid" + } + }, + partitionErrorCode: { + serializedName: "PartitionErrorCode", + type: { + name: "Number" + } + } + } + } +}; + +export const PagedUpdatePartitionLoadResultList: msRest.CompositeMapper = { + serializedName: "PagedUpdatePartitionLoadResultList", + type: { + name: "Composite", + className: "PagedUpdatePartitionLoadResultList", + modelProperties: { + continuationToken: { + serializedName: "ContinuationToken", + type: { + name: "String" + } + }, + items: { + serializedName: "Items", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "UpdatePartitionLoadResult" + } + } + } + } + } + } +}; + +export const ReplicaMetricLoadDescription: msRest.CompositeMapper = { + serializedName: "ReplicaMetricLoadDescription", + type: { + name: "Composite", + className: "ReplicaMetricLoadDescription", + modelProperties: { + nodeName: { + serializedName: "NodeName", + type: { + name: "String" + } + }, + replicaOrInstanceLoadEntries: { + serializedName: "ReplicaOrInstanceLoadEntries", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MetricLoadDescription" + } + } + } + } + } + } +}; + +export const PartitionMetricLoadDescription: msRest.CompositeMapper = { + serializedName: "PartitionMetricLoadDescription", + type: { + name: "Composite", + className: "PartitionMetricLoadDescription", + modelProperties: { + partitionId: { + serializedName: "PartitionId", + type: { + name: "Uuid" + } + }, + primaryReplicaLoadEntries: { + serializedName: "PrimaryReplicaLoadEntries", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MetricLoadDescription" + } + } + } + }, + secondaryReplicasOrInstancesLoadEntries: { + serializedName: "SecondaryReplicasOrInstancesLoadEntries", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MetricLoadDescription" + } + } + } + }, + secondaryReplicaOrInstanceLoadEntriesPerNode: { + serializedName: "SecondaryReplicaOrInstanceLoadEntriesPerNode", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ReplicaMetricLoadDescription" + } + } + } + }, + auxiliaryReplicasLoadEntries: { + serializedName: "AuxiliaryReplicasLoadEntries", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MetricLoadDescription" + } + } + } + }, + auxiliaryReplicaLoadEntriesPerNode: { + serializedName: "AuxiliaryReplicaLoadEntriesPerNode", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ReplicaMetricLoadDescription" + } + } + } + } + } + } +}; + +export const NodeTypeNodesHealthEvaluation: msRest.CompositeMapper = { + serializedName: "NodeTypeNodes", + type: { + name: "Composite", + polymorphicDiscriminator: HealthEvaluation.type.polymorphicDiscriminator, + uberParent: "HealthEvaluation", + className: "NodeTypeNodesHealthEvaluation", + modelProperties: { + ...HealthEvaluation.type.modelProperties, + nodeTypeName: { + serializedName: "NodeTypeName", + type: { + name: "String" + } + }, + maxPercentUnhealthyNodes: { + serializedName: "MaxPercentUnhealthyNodes", + type: { + name: "Number" + } + }, + totalCount: { + serializedName: "TotalCount", + type: { + name: "Number" + } + }, + unhealthyEvaluations: { + serializedName: "UnhealthyEvaluations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HealthEvaluationWrapper" + } + } + } + } + } + } +}; + export const SecretResourcePropertiesBase: msRest.CompositeMapper = { serializedName: "SecretResourcePropertiesBase", type: { @@ -16720,30 +17555,35 @@ export const Probe: msRest.CompositeMapper = { modelProperties: { initialDelaySeconds: { serializedName: "initialDelaySeconds", + defaultValue: 0, type: { name: "Number" } }, periodSeconds: { serializedName: "periodSeconds", + defaultValue: 10, type: { name: "Number" } }, timeoutSeconds: { serializedName: "timeoutSeconds", + defaultValue: 1, type: { name: "Number" } }, successThreshold: { serializedName: "successThreshold", + defaultValue: 1, type: { name: "Number" } }, failureThreshold: { serializedName: "failureThreshold", + defaultValue: 3, type: { name: "Number" } @@ -16800,8 +17640,8 @@ export const ContainerCodePackageProperties: msRest.CompositeMapper = { className: "ImageRegistryCredential" } }, - entrypoint: { - serializedName: "entrypoint", + entryPoint: { + serializedName: "entryPoint", type: { name: "String" } @@ -17580,8 +18420,21 @@ export const AutoScalingResourceMetric: msRest.CompositeMapper = { } }; +export const DefaultExecutionPolicy: msRest.CompositeMapper = { + serializedName: "Default", + type: { + name: "Composite", + polymorphicDiscriminator: ExecutionPolicy.type.polymorphicDiscriminator, + uberParent: "ExecutionPolicy", + className: "DefaultExecutionPolicy", + modelProperties: { + ...ExecutionPolicy.type.modelProperties + } + } +}; + export const RunToCompletionExecutionPolicy: msRest.CompositeMapper = { - serializedName: "runToCompletion", + serializedName: "RunToCompletion", type: { name: "Composite", polymorphicDiscriminator: ExecutionPolicy.type.polymorphicDiscriminator, @@ -18008,7 +18861,7 @@ export const discriminators = { 'ServiceInfo' : ServiceInfo, 'FabricEvent.PartitionAnalysisEvent' : PartitionAnalysisEvent, 'FabricEvent.PartitionEvent' : PartitionEvent, - 'EntityHealthState.ReplicaHealthState' : ReplicaHealthState, + 'ReplicaHealthState' : ReplicaHealthState, 'HealthEvaluation.Partition' : PartitionHealthEvaluation, 'ProvisionApplicationTypeDescriptionBase' : ProvisionApplicationTypeDescriptionBase, 'ProvisionApplicationTypeDescriptionBase.ImageStorePath' : ProvisionApplicationTypeDescription, @@ -18019,13 +18872,14 @@ export const discriminators = { 'SafetyCheck.EnsureSeedNodeQuorum' : SeedNodeSafetyCheck, 'HealthEvaluation.Partitions' : PartitionsHealthEvaluation, 'FabricEvent.ReplicaEvent' : ReplicaEvent, - 'EntityHealth.ReplicaHealth' : ReplicaHealth, + 'ReplicaHealth' : ReplicaHealth, 'HealthEvaluation.Replica' : ReplicaHealthEvaluation, 'HealthEvaluation.Replicas' : ReplicasHealthEvaluation, 'FabricEvent.ServiceEvent' : ServiceEvent, 'HealthEvaluation.Service' : ServiceHealthEvaluation, 'ServicePlacementPolicyDescription.InvalidDomain' : ServicePlacementInvalidDomainPolicyDescription, 'ServicePlacementPolicyDescription.NonPartiallyPlaceService' : ServicePlacementNonPartiallyPlaceServicePolicyDescription, + 'ServicePlacementPolicyDescription.AllowMultipleStatelessInstancesOnNode' : ServicePlacementAllowMultipleStatelessInstancesOnNodePolicyDescription, 'ServicePlacementPolicyDescription' : ServicePlacementPolicyDescription, 'ServicePlacementPolicyDescription.PreferPrimaryDomain' : ServicePlacementPreferPrimaryDomainPolicyDescription, 'ServicePlacementPolicyDescription.RequireDomain' : ServicePlacementRequiredDomainPolicyDescription, @@ -18035,16 +18889,17 @@ export const discriminators = { 'PartitionInformation.Singleton' : SingletonPartitionInformation, 'ServiceInfo.Stateful' : StatefulServiceInfo, 'ServicePartitionInfo.Stateful' : StatefulServicePartitionInfo, - 'EntityHealth.Stateful' : StatefulServiceReplicaHealth, - 'EntityHealthState.Stateful' : StatefulServiceReplicaHealthState, + 'ReplicaHealth.Stateful' : StatefulServiceReplicaHealth, + 'ReplicaHealthState.Stateful' : StatefulServiceReplicaHealthState, 'ServiceTypeDescription.Stateful' : StatefulServiceTypeDescription, 'ServiceInfo.Stateless' : StatelessServiceInfo, - 'EntityHealth.Stateless' : StatelessServiceInstanceHealth, - 'EntityHealthState.Stateless' : StatelessServiceInstanceHealthState, + 'ReplicaHealth.Stateless' : StatelessServiceInstanceHealth, + 'ReplicaHealthState.Stateless' : StatelessServiceInstanceHealthState, 'ServicePartitionInfo.Stateless' : StatelessServicePartitionInfo, 'ServiceTypeDescription.Stateless' : StatelessServiceTypeDescription, 'HealthEvaluation.SystemApplication' : SystemApplicationHealthEvaluation, 'HealthEvaluation.UpgradeDomainDeltaNodesCheck' : UpgradeDomainDeltaNodesCheckHealthEvaluation, + 'HealthEvaluation.UpgradeDomainDeployedApplications' : UpgradeDomainDeployedApplicationsHealthEvaluation, 'HealthEvaluation.UpgradeDomainNodes' : UpgradeDomainNodesHealthEvaluation, 'SafetyCheck.WaitForInbuildReplica' : WaitForInbuildReplicaSafetyCheck, 'SafetyCheck.WaitForPrimaryPlacement' : WaitForPrimaryPlacementSafetyCheck, @@ -18106,6 +18961,8 @@ export const discriminators = { 'BackupConfigurationInfo' : BackupConfigurationInfo, 'BackupStorageDescription.AzureBlobStore' : AzureBlobBackupStorageDescription, 'BackupStorageDescription.FileShare' : FileShareBackupStorageDescription, + 'BackupStorageDescription.DsmsAzureBlobStore' : DsmsAzureBlobBackupStorageDescription, + 'BackupStorageDescription.ManagedIdentityAzureBlobStore' : ManagedIdentityAzureBlobBackupStorageDescription, 'BackupScheduleDescription.FrequencyBased' : FrequencyBasedBackupScheduleDescription, 'BackupScheduleDescription.TimeBased' : TimeBasedBackupScheduleDescription, 'BackupConfigurationInfo.Partition' : PartitionBackupConfigurationInfo, @@ -18175,6 +19032,7 @@ export const discriminators = { 'FabricEvent.ChaosPartitionPrimaryMoveScheduled' : ChaosPartitionPrimaryMoveScheduledEvent, 'FabricEvent.ChaosReplicaRestartScheduled' : ChaosReplicaRestartScheduledEvent, 'FabricEvent.ChaosNodeRestartScheduled' : ChaosNodeRestartScheduledEvent, + 'HealthEvaluation.NodeTypeNodes' : NodeTypeNodesHealthEvaluation, 'SecretResourcePropertiesBase.SecretResourceProperties' : SecretResourceProperties, 'SecretResourcePropertiesBase.inlinedValue' : InlinedValueSecretResourceProperties, 'SecretResourcePropertiesBase' : SecretResourcePropertiesBase, @@ -18191,7 +19049,8 @@ export const discriminators = { 'AutoScalingMechanism.AddRemoveReplica' : AddRemoveReplicaScalingMechanism, 'AutoScalingMetric' : AutoScalingMetric, 'AutoScalingMetric.Resource' : AutoScalingResourceMetric, - 'ExecutionPolicy.runToCompletion' : RunToCompletionExecutionPolicy, + 'ExecutionPolicy.Default' : DefaultExecutionPolicy, + 'ExecutionPolicy.RunToCompletion' : RunToCompletionExecutionPolicy, 'AutoScalingTrigger.AverageLoad' : AverageLoadScalingTrigger }; diff --git a/sdk/servicefabric/servicefabric/src/models/meshApplicationMappers.ts b/sdk/servicefabric/servicefabric/src/models/meshApplicationMappers.ts index cdbbd872531a..8ac2522f659e 100644 --- a/sdk/servicefabric/servicefabric/src/models/meshApplicationMappers.ts +++ b/sdk/servicefabric/servicefabric/src/models/meshApplicationMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -26,6 +26,7 @@ export { ContainerInstanceView, ContainerLabel, ContainerState, + DefaultExecutionPolicy, DiagnosticsDescription, DiagnosticsRef, DiagnosticsSinkProperties, diff --git a/sdk/servicefabric/servicefabric/src/models/meshCodePackageMappers.ts b/sdk/servicefabric/servicefabric/src/models/meshCodePackageMappers.ts index 9b5c83b74e1c..0e7f75ed8bc5 100644 --- a/sdk/servicefabric/servicefabric/src/models/meshCodePackageMappers.ts +++ b/sdk/servicefabric/servicefabric/src/models/meshCodePackageMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/servicefabric/servicefabric/src/models/meshGatewayMappers.ts b/sdk/servicefabric/servicefabric/src/models/meshGatewayMappers.ts index e70c544ca189..fa2c2ef6ae72 100644 --- a/sdk/servicefabric/servicefabric/src/models/meshGatewayMappers.ts +++ b/sdk/servicefabric/servicefabric/src/models/meshGatewayMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/servicefabric/servicefabric/src/models/meshNetworkMappers.ts b/sdk/servicefabric/servicefabric/src/models/meshNetworkMappers.ts index 1e2fb43ed183..92c32d4026b8 100644 --- a/sdk/servicefabric/servicefabric/src/models/meshNetworkMappers.ts +++ b/sdk/servicefabric/servicefabric/src/models/meshNetworkMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/servicefabric/servicefabric/src/models/meshSecretMappers.ts b/sdk/servicefabric/servicefabric/src/models/meshSecretMappers.ts index 09244fa6bce4..9869d01372b9 100644 --- a/sdk/servicefabric/servicefabric/src/models/meshSecretMappers.ts +++ b/sdk/servicefabric/servicefabric/src/models/meshSecretMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/servicefabric/servicefabric/src/models/meshSecretValueMappers.ts b/sdk/servicefabric/servicefabric/src/models/meshSecretValueMappers.ts index c8d5a97560b4..6039dba613f0 100644 --- a/sdk/servicefabric/servicefabric/src/models/meshSecretValueMappers.ts +++ b/sdk/servicefabric/servicefabric/src/models/meshSecretValueMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/servicefabric/servicefabric/src/models/meshServiceMappers.ts b/sdk/servicefabric/servicefabric/src/models/meshServiceMappers.ts index 2e4c06f514a4..45abaa16cc9a 100644 --- a/sdk/servicefabric/servicefabric/src/models/meshServiceMappers.ts +++ b/sdk/servicefabric/servicefabric/src/models/meshServiceMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -23,6 +23,7 @@ export { ContainerInstanceView, ContainerLabel, ContainerState, + DefaultExecutionPolicy, DiagnosticsRef, EndpointProperties, EndpointRef, diff --git a/sdk/servicefabric/servicefabric/src/models/meshServiceReplicaMappers.ts b/sdk/servicefabric/servicefabric/src/models/meshServiceReplicaMappers.ts index dd757c86aa23..5c61b318c348 100644 --- a/sdk/servicefabric/servicefabric/src/models/meshServiceReplicaMappers.ts +++ b/sdk/servicefabric/servicefabric/src/models/meshServiceReplicaMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/servicefabric/servicefabric/src/models/meshVolumeMappers.ts b/sdk/servicefabric/servicefabric/src/models/meshVolumeMappers.ts index 5ada252660b6..ea39df407a6b 100644 --- a/sdk/servicefabric/servicefabric/src/models/meshVolumeMappers.ts +++ b/sdk/servicefabric/servicefabric/src/models/meshVolumeMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/servicefabric/servicefabric/src/models/parameters.ts b/sdk/servicefabric/servicefabric/src/models/parameters.ts index 71650ad86d50..b3245e90112d 100644 --- a/sdk/servicefabric/servicefabric/src/models/parameters.ts +++ b/sdk/servicefabric/servicefabric/src/models/parameters.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -34,6 +33,42 @@ export const apiVersion1: msRest.OperationQueryParameter = { } } }; +export const apiVersion10: msRest.OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + required: true, + isConstant: true, + serializedName: "api-version", + defaultValue: '6.0-preview', + type: { + name: "String" + } + } +}; +export const apiVersion11: msRest.OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + required: true, + isConstant: true, + serializedName: "api-version", + defaultValue: '6.4-preview', + type: { + name: "String" + } + } +}; +export const apiVersion12: msRest.OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + required: true, + isConstant: true, + serializedName: "api-version", + defaultValue: '6.2-preview', + type: { + name: "String" + } + } +}; export const apiVersion2: msRest.OperationQueryParameter = { parameterPath: "apiVersion", mapper: { @@ -64,7 +99,7 @@ export const apiVersion4: msRest.OperationQueryParameter = { required: true, isConstant: true, serializedName: "api-version", - defaultValue: '6.2', + defaultValue: '7.2', type: { name: "String" } @@ -76,7 +111,7 @@ export const apiVersion5: msRest.OperationQueryParameter = { required: true, isConstant: true, serializedName: "api-version", - defaultValue: '6.1', + defaultValue: '6.2', type: { name: "String" } @@ -88,7 +123,7 @@ export const apiVersion6: msRest.OperationQueryParameter = { required: true, isConstant: true, serializedName: "api-version", - defaultValue: '6.5', + defaultValue: '6.1', type: { name: "String" } @@ -100,7 +135,7 @@ export const apiVersion7: msRest.OperationQueryParameter = { required: true, isConstant: true, serializedName: "api-version", - defaultValue: '6.0-preview', + defaultValue: '8.1', type: { name: "String" } @@ -112,7 +147,7 @@ export const apiVersion8: msRest.OperationQueryParameter = { required: true, isConstant: true, serializedName: "api-version", - defaultValue: '6.4-preview', + defaultValue: '8.0', type: { name: "String" } @@ -124,7 +159,7 @@ export const apiVersion9: msRest.OperationQueryParameter = { required: true, isConstant: true, serializedName: "api-version", - defaultValue: '6.2-preview', + defaultValue: '6.5', type: { name: "String" } @@ -377,7 +412,7 @@ export const continuationToken: msRest.OperationQueryParameter = { }, skipEncoding: true }; -export const currentNodeName: msRest.OperationQueryParameter = { +export const currentNodeName0: msRest.OperationQueryParameter = { parameterPath: "currentNodeName", mapper: { required: true, @@ -387,6 +422,18 @@ export const currentNodeName: msRest.OperationQueryParameter = { } } }; +export const currentNodeName1: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "currentNodeName" + ], + mapper: { + serializedName: "CurrentNodeName", + type: { + name: "String" + } + } +}; export const dataLossMode: msRest.OperationQueryParameter = { parameterPath: "dataLossMode", mapper: { @@ -703,6 +750,16 @@ export const maxResults: msRest.OperationQueryParameter = { } } }; +export const metricName: msRest.OperationQueryParameter = { + parameterPath: "metricName", + mapper: { + required: true, + serializedName: "MetricName", + type: { + name: "String" + } + } +}; export const nameId: msRest.OperationURLParameter = { parameterPath: "nameId", mapper: { @@ -828,6 +885,19 @@ export const operationId: msRest.OperationQueryParameter = { } } }; +export const ordering: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "ordering" + ], + mapper: { + serializedName: "Ordering", + defaultValue: 'Desc', + type: { + name: "String" + } + } +}; export const partitionId0: msRest.OperationQueryParameter = { parameterPath: [ "options", @@ -1094,6 +1164,18 @@ export const serviceManifestName1: msRest.OperationQueryParameter = { } } }; +export const serviceName: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "serviceName" + ], + mapper: { + serializedName: "ServiceName", + type: { + name: "String" + } + } +}; export const servicePackageName: msRest.OperationURLParameter = { parameterPath: "servicePackageName", mapper: { @@ -1296,6 +1378,19 @@ export const typeFilter: msRest.OperationQueryParameter = { } } }; +export const validateConnection: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "validateConnection" + ], + mapper: { + serializedName: "ValidateConnection", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; export const volumeResourceName: msRest.OperationURLParameter = { parameterPath: "volumeResourceName", mapper: { diff --git a/sdk/servicefabric/servicefabric/src/operations/index.ts b/sdk/servicefabric/servicefabric/src/operations/index.ts index 68b308155de3..d2a76778e7e6 100644 --- a/sdk/servicefabric/servicefabric/src/operations/index.ts +++ b/sdk/servicefabric/servicefabric/src/operations/index.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is diff --git a/sdk/servicefabric/servicefabric/src/operations/meshApplication.ts b/sdk/servicefabric/servicefabric/src/operations/meshApplication.ts index aa5fa63b0458..2bb46044bf49 100644 --- a/sdk/servicefabric/servicefabric/src/operations/meshApplication.ts +++ b/sdk/servicefabric/servicefabric/src/operations/meshApplication.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -187,7 +186,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.applicationResourceName ], queryParameters: [ - Parameters.apiVersion8 + Parameters.apiVersion11 ], requestBody: { parameterPath: "applicationResourceDescription", @@ -218,7 +217,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.applicationResourceName ], queryParameters: [ - Parameters.apiVersion8 + Parameters.apiVersion11 ], responses: { 200: { @@ -238,7 +237,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.applicationResourceName ], queryParameters: [ - Parameters.apiVersion8 + Parameters.apiVersion11 ], responses: { 200: {}, @@ -255,7 +254,7 @@ const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "Resources/Applications", queryParameters: [ - Parameters.apiVersion8 + Parameters.apiVersion11 ], responses: { 200: { diff --git a/sdk/servicefabric/servicefabric/src/operations/meshCodePackage.ts b/sdk/servicefabric/servicefabric/src/operations/meshCodePackage.ts index e7b1fd66279d..84f85f847f1a 100644 --- a/sdk/servicefabric/servicefabric/src/operations/meshCodePackage.ts +++ b/sdk/servicefabric/servicefabric/src/operations/meshCodePackage.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -80,7 +79,7 @@ const getContainerLogsOperationSpec: msRest.OperationSpec = { Parameters.codePackageName2 ], queryParameters: [ - Parameters.apiVersion8, + Parameters.apiVersion11, Parameters.tail ], responses: { diff --git a/sdk/servicefabric/servicefabric/src/operations/meshGateway.ts b/sdk/servicefabric/servicefabric/src/operations/meshGateway.ts index 5015bcefb822..d2a11c8f237b 100644 --- a/sdk/servicefabric/servicefabric/src/operations/meshGateway.ts +++ b/sdk/servicefabric/servicefabric/src/operations/meshGateway.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -156,7 +155,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.gatewayResourceName ], queryParameters: [ - Parameters.apiVersion8 + Parameters.apiVersion11 ], requestBody: { parameterPath: "gatewayResourceDescription", @@ -187,7 +186,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.gatewayResourceName ], queryParameters: [ - Parameters.apiVersion8 + Parameters.apiVersion11 ], responses: { 200: { @@ -207,7 +206,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.gatewayResourceName ], queryParameters: [ - Parameters.apiVersion8 + Parameters.apiVersion11 ], responses: { 200: {}, @@ -224,7 +223,7 @@ const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "Resources/Gateways", queryParameters: [ - Parameters.apiVersion8 + Parameters.apiVersion11 ], responses: { 200: { diff --git a/sdk/servicefabric/servicefabric/src/operations/meshNetwork.ts b/sdk/servicefabric/servicefabric/src/operations/meshNetwork.ts index d6c6f73dd85d..0178049b7b14 100644 --- a/sdk/servicefabric/servicefabric/src/operations/meshNetwork.ts +++ b/sdk/servicefabric/servicefabric/src/operations/meshNetwork.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -156,7 +155,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.networkResourceName ], queryParameters: [ - Parameters.apiVersion8 + Parameters.apiVersion11 ], requestBody: { parameterPath: "networkResourceDescription", @@ -187,7 +186,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.networkResourceName ], queryParameters: [ - Parameters.apiVersion8 + Parameters.apiVersion11 ], responses: { 200: { @@ -207,7 +206,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.networkResourceName ], queryParameters: [ - Parameters.apiVersion8 + Parameters.apiVersion11 ], responses: { 200: {}, @@ -224,7 +223,7 @@ const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "Resources/Networks", queryParameters: [ - Parameters.apiVersion8 + Parameters.apiVersion11 ], responses: { 200: { diff --git a/sdk/servicefabric/servicefabric/src/operations/meshSecret.ts b/sdk/servicefabric/servicefabric/src/operations/meshSecret.ts index 2cde10f50c96..7dae7567785d 100644 --- a/sdk/servicefabric/servicefabric/src/operations/meshSecret.ts +++ b/sdk/servicefabric/servicefabric/src/operations/meshSecret.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -156,7 +155,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.secretResourceName ], queryParameters: [ - Parameters.apiVersion8 + Parameters.apiVersion11 ], requestBody: { parameterPath: "secretResourceDescription", @@ -187,7 +186,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.secretResourceName ], queryParameters: [ - Parameters.apiVersion8 + Parameters.apiVersion11 ], responses: { 200: { @@ -207,7 +206,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.secretResourceName ], queryParameters: [ - Parameters.apiVersion8 + Parameters.apiVersion11 ], responses: { 200: {}, @@ -224,7 +223,7 @@ const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "Resources/Secrets", queryParameters: [ - Parameters.apiVersion8 + Parameters.apiVersion11 ], responses: { 200: { diff --git a/sdk/servicefabric/servicefabric/src/operations/meshSecretValue.ts b/sdk/servicefabric/servicefabric/src/operations/meshSecretValue.ts index fb9e9dfc7efa..4d03c9a3a785 100644 --- a/sdk/servicefabric/servicefabric/src/operations/meshSecretValue.ts +++ b/sdk/servicefabric/servicefabric/src/operations/meshSecretValue.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -219,7 +218,7 @@ const addValueOperationSpec: msRest.OperationSpec = { Parameters.secretValueResourceName ], queryParameters: [ - Parameters.apiVersion8 + Parameters.apiVersion11 ], requestBody: { parameterPath: "secretValueResourceDescription", @@ -251,7 +250,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.secretValueResourceName ], queryParameters: [ - Parameters.apiVersion8 + Parameters.apiVersion11 ], responses: { 200: { @@ -272,7 +271,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.secretValueResourceName ], queryParameters: [ - Parameters.apiVersion8 + Parameters.apiVersion11 ], responses: { 200: {}, @@ -292,7 +291,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.secretResourceName ], queryParameters: [ - Parameters.apiVersion8 + Parameters.apiVersion11 ], responses: { 200: { @@ -313,7 +312,7 @@ const showOperationSpec: msRest.OperationSpec = { Parameters.secretValueResourceName ], queryParameters: [ - Parameters.apiVersion8 + Parameters.apiVersion11 ], responses: { 200: { diff --git a/sdk/servicefabric/servicefabric/src/operations/meshService.ts b/sdk/servicefabric/servicefabric/src/operations/meshService.ts index 4ded71f9d775..8e2e803053f8 100644 --- a/sdk/servicefabric/servicefabric/src/operations/meshService.ts +++ b/sdk/servicefabric/servicefabric/src/operations/meshService.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -101,7 +100,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.serviceResourceName ], queryParameters: [ - Parameters.apiVersion8 + Parameters.apiVersion11 ], responses: { 200: { @@ -121,7 +120,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.applicationResourceName ], queryParameters: [ - Parameters.apiVersion8 + Parameters.apiVersion11 ], responses: { 200: { diff --git a/sdk/servicefabric/servicefabric/src/operations/meshServiceReplica.ts b/sdk/servicefabric/servicefabric/src/operations/meshServiceReplica.ts index 480e2a4780d5..71eff3779e47 100644 --- a/sdk/servicefabric/servicefabric/src/operations/meshServiceReplica.ts +++ b/sdk/servicefabric/servicefabric/src/operations/meshServiceReplica.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -110,7 +109,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.replicaName ], queryParameters: [ - Parameters.apiVersion8 + Parameters.apiVersion11 ], responses: { 200: { @@ -131,7 +130,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.serviceResourceName ], queryParameters: [ - Parameters.apiVersion8 + Parameters.apiVersion11 ], responses: { 200: { diff --git a/sdk/servicefabric/servicefabric/src/operations/meshVolume.ts b/sdk/servicefabric/servicefabric/src/operations/meshVolume.ts index a1570deeda46..87316e76dc89 100644 --- a/sdk/servicefabric/servicefabric/src/operations/meshVolume.ts +++ b/sdk/servicefabric/servicefabric/src/operations/meshVolume.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -156,7 +155,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.volumeResourceName ], queryParameters: [ - Parameters.apiVersion8 + Parameters.apiVersion11 ], requestBody: { parameterPath: "volumeResourceDescription", @@ -187,7 +186,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.volumeResourceName ], queryParameters: [ - Parameters.apiVersion8 + Parameters.apiVersion11 ], responses: { 200: { @@ -207,7 +206,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.volumeResourceName ], queryParameters: [ - Parameters.apiVersion8 + Parameters.apiVersion11 ], responses: { 200: {}, @@ -224,7 +223,7 @@ const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "Resources/Volumes", queryParameters: [ - Parameters.apiVersion8 + Parameters.apiVersion11 ], responses: { 200: { diff --git a/sdk/servicefabric/servicefabric/src/serviceFabricClient.ts b/sdk/servicefabric/servicefabric/src/serviceFabricClient.ts index db80ae7558f5..839421caef7b 100644 --- a/sdk/servicefabric/servicefabric/src/serviceFabricClient.ts +++ b/sdk/servicefabric/servicefabric/src/serviceFabricClient.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -1024,7 +1023,7 @@ class ServiceFabricClient extends ServiceFabricClientContext { * number of Down seed nodes. If necessary, add more nodes to the primary node type to achieve * this. For standalone cluster, if the Down seed node is not expected to come back up with its * state intact, please remove the node from the cluster, see - * https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-cluster-windows-server-add-remove-nodes + * https://docs.microsoft.com/azure/service-fabric/service-fabric-cluster-windows-server-add-remove-nodes * @summary Notifies Service Fabric that the persisted state on a node has been permanently removed * or lost. * @param nodeName The name of the node. @@ -1180,6 +1179,72 @@ class ServiceFabricClient extends ServiceFabricClientContext { callback); } + /** + * This api allows removing set of tags from the specified node. + * @summary Removes the list of tags from the specified node. + * @param nodeName The name of the node. + * @param nodeTags Description for adding list of node tags. + * @param [options] The optional parameters + * @returns Promise + */ + removeNodeTags(nodeName: string, nodeTags: string[], options?: msRest.RequestOptionsBase): Promise; + /** + * @param nodeName The name of the node. + * @param nodeTags Description for adding list of node tags. + * @param callback The callback + */ + removeNodeTags(nodeName: string, nodeTags: string[], callback: msRest.ServiceCallback): void; + /** + * @param nodeName The name of the node. + * @param nodeTags Description for adding list of node tags. + * @param options The optional parameters + * @param callback The callback + */ + removeNodeTags(nodeName: string, nodeTags: string[], options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + removeNodeTags(nodeName: string, nodeTags: string[], options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.sendOperationRequest( + { + nodeName, + nodeTags, + options + }, + removeNodeTagsOperationSpec, + callback); + } + + /** + * This api allows adding tags to the specified node. + * @summary Adds the list of tags on the specified node. + * @param nodeName The name of the node. + * @param nodeTags Description for adding list of node tags. + * @param [options] The optional parameters + * @returns Promise + */ + addNodeTags(nodeName: string, nodeTags: string[], options?: msRest.RequestOptionsBase): Promise; + /** + * @param nodeName The name of the node. + * @param nodeTags Description for adding list of node tags. + * @param callback The callback + */ + addNodeTags(nodeName: string, nodeTags: string[], callback: msRest.ServiceCallback): void; + /** + * @param nodeName The name of the node. + * @param nodeTags Description for adding list of node tags. + * @param options The optional parameters + * @param callback The callback + */ + addNodeTags(nodeName: string, nodeTags: string[], options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + addNodeTags(nodeName: string, nodeTags: string[], options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.sendOperationRequest( + { + nodeName, + nodeTags, + options + }, + addNodeTagsOperationSpec, + callback); + } + /** * Returns the information about the application types that are provisioned or in the process of * being provisioned in the Service Fabric cluster. Each version of an application type is returned @@ -1892,6 +1957,12 @@ class ServiceFabricClient extends ServiceFabricClientContext { /** * Validates the supplied application upgrade parameters and starts upgrading the application if * the parameters are valid. + * Note, + * [ApplicationParameter](https://docs.microsoft.com/dotnet/api/system.fabric.description.applicationdescription.applicationparameters)s + * are not preserved across an application upgrade. + * In order to preserve current application parameters, the user should get the parameters using + * [GetApplicationInfo](./GetApplicationInfo.md) operation first and pass them into the upgrade API + * call as shown in the example. * @summary Starts upgrading an application in the Service Fabric cluster. * @param applicationId The identity of the application. This is typically the full name of the * application without the 'fabric:' URI scheme. @@ -2027,6 +2098,52 @@ class ServiceFabricClient extends ServiceFabricClientContext { callback); } + /** + * Updates a Service Fabric application instance. The set of properties that can be updated are a + * subset of the properties that were specified at the time of creating the application. + * @summary Updates a Service Fabric application. + * @param applicationId The identity of the application. This is typically the full name of the + * application without the 'fabric:' URI scheme. + * Starting from version 6.0, hierarchical names are delimited with the "~" character. + * For example, if the application name is "fabric:/myapp/app1", the application identity would be + * "myapp~app1" in 6.0+ and "myapp/app1" in previous versions. + * @param applicationUpdateDescription Parameters for updating an existing application instance. + * @param [options] The optional parameters + * @returns Promise + */ + updateApplication(applicationId: string, applicationUpdateDescription: Models.ApplicationUpdateDescription, options?: Models.ServiceFabricClientUpdateApplicationOptionalParams): Promise; + /** + * @param applicationId The identity of the application. This is typically the full name of the + * application without the 'fabric:' URI scheme. + * Starting from version 6.0, hierarchical names are delimited with the "~" character. + * For example, if the application name is "fabric:/myapp/app1", the application identity would be + * "myapp~app1" in 6.0+ and "myapp/app1" in previous versions. + * @param applicationUpdateDescription Parameters for updating an existing application instance. + * @param callback The callback + */ + updateApplication(applicationId: string, applicationUpdateDescription: Models.ApplicationUpdateDescription, callback: msRest.ServiceCallback): void; + /** + * @param applicationId The identity of the application. This is typically the full name of the + * application without the 'fabric:' URI scheme. + * Starting from version 6.0, hierarchical names are delimited with the "~" character. + * For example, if the application name is "fabric:/myapp/app1", the application identity would be + * "myapp~app1" in 6.0+ and "myapp/app1" in previous versions. + * @param applicationUpdateDescription Parameters for updating an existing application instance. + * @param options The optional parameters + * @param callback The callback + */ + updateApplication(applicationId: string, applicationUpdateDescription: Models.ApplicationUpdateDescription, options: Models.ServiceFabricClientUpdateApplicationOptionalParams, callback: msRest.ServiceCallback): void; + updateApplication(applicationId: string, applicationUpdateDescription: Models.ApplicationUpdateDescription, options?: Models.ServiceFabricClientUpdateApplicationOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.sendOperationRequest( + { + applicationId, + applicationUpdateDescription, + options + }, + updateApplicationOperationSpec, + callback); + } + /** * Resumes an unmonitored manual Service Fabric application upgrade. Service Fabric upgrades one * upgrade domain at a time. For unmonitored manual upgrades, after Service Fabric finishes an @@ -3022,6 +3139,35 @@ class ServiceFabricClient extends ServiceFabricClientContext { callback) as Promise; } + /** + * Retrieves partitions which are most/least loaded according to specified metric. + * @summary Gets ordered list of partitions. + * @param metricName Name of the metric based on which to get ordered list of partitions. + * @param [options] The optional parameters + * @returns Promise + */ + getLoadedPartitionInfoList(metricName: string, options?: Models.ServiceFabricClientGetLoadedPartitionInfoListOptionalParams): Promise; + /** + * @param metricName Name of the metric based on which to get ordered list of partitions. + * @param callback The callback + */ + getLoadedPartitionInfoList(metricName: string, callback: msRest.ServiceCallback): void; + /** + * @param metricName Name of the metric based on which to get ordered list of partitions. + * @param options The optional parameters + * @param callback The callback + */ + getLoadedPartitionInfoList(metricName: string, options: Models.ServiceFabricClientGetLoadedPartitionInfoListOptionalParams, callback: msRest.ServiceCallback): void; + getLoadedPartitionInfoList(metricName: string, options?: Models.ServiceFabricClientGetLoadedPartitionInfoListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.sendOperationRequest( + { + metricName, + options + }, + getLoadedPartitionInfoListOperationSpec, + callback) as Promise; + } + /** * The response includes the partition ID, partitioning scheme information, keys supported by the * partition, status, health, and other details about the partition. @@ -3512,6 +3658,138 @@ class ServiceFabricClient extends ServiceFabricClientContext { callback); } + /** + * Updates the load value and predicted load value for all the partitions provided for specified + * metrics. + * @summary Update the loads of provided partitions for specific metrics. + * @param partitionMetricLoadDescriptionList Description of updating load for list of partitions. + * @param [options] The optional parameters + * @returns Promise + */ + updatePartitionLoad(partitionMetricLoadDescriptionList: Models.PartitionMetricLoadDescription[], options?: Models.ServiceFabricClientUpdatePartitionLoadOptionalParams): Promise; + /** + * @param partitionMetricLoadDescriptionList Description of updating load for list of partitions. + * @param callback The callback + */ + updatePartitionLoad(partitionMetricLoadDescriptionList: Models.PartitionMetricLoadDescription[], callback: msRest.ServiceCallback): void; + /** + * @param partitionMetricLoadDescriptionList Description of updating load for list of partitions. + * @param options The optional parameters + * @param callback The callback + */ + updatePartitionLoad(partitionMetricLoadDescriptionList: Models.PartitionMetricLoadDescription[], options: Models.ServiceFabricClientUpdatePartitionLoadOptionalParams, callback: msRest.ServiceCallback): void; + updatePartitionLoad(partitionMetricLoadDescriptionList: Models.PartitionMetricLoadDescription[], options?: Models.ServiceFabricClientUpdatePartitionLoadOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.sendOperationRequest( + { + partitionMetricLoadDescriptionList, + options + }, + updatePartitionLoadOperationSpec, + callback) as Promise; + } + + /** + * This command moves the instance of a partition of a stateless service, respecting all + * constraints. + * Partition id and service name must be specified to be able to move the instance. + * CurrentNodeName when specified identifies the instance that is moved. If not specified, random + * instance will be moved + * New node name can be omitted, and in that case instance is moved to a random node. + * If IgnoreConstraints parameter is specified and set to true, then instance will be moved + * regardless of the constraints. + * @summary Moves the instance of a partition of a stateless service. + * @param serviceId The identity of the service. This ID is typically the full name of the service + * without the 'fabric:' URI scheme. + * Starting from version 6.0, hierarchical names are delimited with the "~" character. + * For example, if the service name is "fabric:/myapp/app1/svc1", the service identity would be + * "myapp~app1~svc1" in 6.0+ and "myapp/app1/svc1" in previous versions. + * @param partitionId The identity of the partition. + * @param [options] The optional parameters + * @returns Promise + */ + moveInstance(serviceId: string, partitionId: string, options?: Models.ServiceFabricClientMoveInstanceOptionalParams): Promise; + /** + * @param serviceId The identity of the service. This ID is typically the full name of the service + * without the 'fabric:' URI scheme. + * Starting from version 6.0, hierarchical names are delimited with the "~" character. + * For example, if the service name is "fabric:/myapp/app1/svc1", the service identity would be + * "myapp~app1~svc1" in 6.0+ and "myapp/app1/svc1" in previous versions. + * @param partitionId The identity of the partition. + * @param callback The callback + */ + moveInstance(serviceId: string, partitionId: string, callback: msRest.ServiceCallback): void; + /** + * @param serviceId The identity of the service. This ID is typically the full name of the service + * without the 'fabric:' URI scheme. + * Starting from version 6.0, hierarchical names are delimited with the "~" character. + * For example, if the service name is "fabric:/myapp/app1/svc1", the service identity would be + * "myapp~app1~svc1" in 6.0+ and "myapp/app1/svc1" in previous versions. + * @param partitionId The identity of the partition. + * @param options The optional parameters + * @param callback The callback + */ + moveInstance(serviceId: string, partitionId: string, options: Models.ServiceFabricClientMoveInstanceOptionalParams, callback: msRest.ServiceCallback): void; + moveInstance(serviceId: string, partitionId: string, options?: Models.ServiceFabricClientMoveInstanceOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.sendOperationRequest( + { + serviceId, + partitionId, + options + }, + moveInstanceOperationSpec, + callback); + } + + /** + * This command moves the auxiliary replica of a partition of a stateful service, respecting all + * constraints. + * CurrentNodeName can be omitted, and in that case a random auxiliary replica is chosen. + * NewNodeName can be omitted, and in that case the auxiliary replica is moved to a random node. + * If IgnoreConstraints parameter is specified and set to true, then auxiliary will be moved + * regardless of the constraints. + * @summary Moves the auxiliary replica of a partition of a stateful service. + * @param serviceId The identity of the service. This ID is typically the full name of the service + * without the 'fabric:' URI scheme. + * Starting from version 6.0, hierarchical names are delimited with the "~" character. + * For example, if the service name is "fabric:/myapp/app1/svc1", the service identity would be + * "myapp~app1~svc1" in 6.0+ and "myapp/app1/svc1" in previous versions. + * @param partitionId The identity of the partition. + * @param [options] The optional parameters + * @returns Promise + */ + moveAuxiliaryReplica(serviceId: string, partitionId: string, options?: Models.ServiceFabricClientMoveAuxiliaryReplicaOptionalParams): Promise; + /** + * @param serviceId The identity of the service. This ID is typically the full name of the service + * without the 'fabric:' URI scheme. + * Starting from version 6.0, hierarchical names are delimited with the "~" character. + * For example, if the service name is "fabric:/myapp/app1/svc1", the service identity would be + * "myapp~app1~svc1" in 6.0+ and "myapp/app1/svc1" in previous versions. + * @param partitionId The identity of the partition. + * @param callback The callback + */ + moveAuxiliaryReplica(serviceId: string, partitionId: string, callback: msRest.ServiceCallback): void; + /** + * @param serviceId The identity of the service. This ID is typically the full name of the service + * without the 'fabric:' URI scheme. + * Starting from version 6.0, hierarchical names are delimited with the "~" character. + * For example, if the service name is "fabric:/myapp/app1/svc1", the service identity would be + * "myapp~app1~svc1" in 6.0+ and "myapp/app1/svc1" in previous versions. + * @param partitionId The identity of the partition. + * @param options The optional parameters + * @param callback The callback + */ + moveAuxiliaryReplica(serviceId: string, partitionId: string, options: Models.ServiceFabricClientMoveAuxiliaryReplicaOptionalParams, callback: msRest.ServiceCallback): void; + moveAuxiliaryReplica(serviceId: string, partitionId: string, options?: Models.ServiceFabricClientMoveAuxiliaryReplicaOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.sendOperationRequest( + { + serviceId, + partitionId, + options + }, + moveAuxiliaryReplicaOperationSpec, + callback); + } + /** * For clusters that have the Repair Manager Service configured, * this API provides a way to create repair tasks that run automatically or manually. @@ -8851,6 +9129,72 @@ const addConfigurationParameterOverridesOperationSpec: msRest.OperationSpec = { serializer }; +const removeNodeTagsOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "Nodes/{nodeName}/$/RemoveNodeTags", + urlParameters: [ + Parameters.nodeName0 + ], + queryParameters: [ + Parameters.apiVersion3 + ], + requestBody: { + parameterPath: "nodeTags", + mapper: { + required: true, + serializedName: "NodeTags", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + }, + responses: { + 200: {}, + default: { + bodyMapper: Mappers.FabricError + } + }, + serializer +}; + +const addNodeTagsOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "Nodes/{nodeName}/$/AddNodeTags", + urlParameters: [ + Parameters.nodeName0 + ], + queryParameters: [ + Parameters.apiVersion4 + ], + requestBody: { + parameterPath: "nodeTags", + mapper: { + required: true, + serializedName: "NodeTags", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + }, + responses: { + 200: {}, + default: { + bodyMapper: Mappers.FabricError + } + }, + serializer +}; + const getApplicationTypeInfoListOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "ApplicationTypes", @@ -8902,7 +9246,7 @@ const provisionApplicationTypeOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "ApplicationTypes/$/Provision", queryParameters: [ - Parameters.apiVersion4, + Parameters.apiVersion5, Parameters.timeout ], requestBody: { @@ -9168,7 +9512,7 @@ const getApplicationInfoListOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "Applications", queryParameters: [ - Parameters.apiVersion5, + Parameters.apiVersion6, Parameters.applicationDefinitionKindFilter, Parameters.applicationTypeName1, Parameters.excludeApplicationParameters, @@ -9367,6 +9711,32 @@ const updateApplicationUpgradeOperationSpec: msRest.OperationSpec = { serializer }; +const updateApplicationOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "Applications/{applicationId}/$/Update", + urlParameters: [ + Parameters.applicationId + ], + queryParameters: [ + Parameters.apiVersion7, + Parameters.timeout + ], + requestBody: { + parameterPath: "applicationUpdateDescription", + mapper: { + ...Mappers.ApplicationUpdateDescription, + required: true + } + }, + responses: { + 200: {}, + default: { + bodyMapper: Mappers.FabricError + } + }, + serializer +}; + const resumeApplicationUpgradeOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "Applications/{applicationId}/$/MoveToNextUpgradeDomain", @@ -9419,7 +9789,7 @@ const getDeployedApplicationInfoListOperationSpec: msRest.OperationSpec = { Parameters.nodeName0 ], queryParameters: [ - Parameters.apiVersion5, + Parameters.apiVersion6, Parameters.timeout, Parameters.includeHealthState, Parameters.continuationToken, @@ -9444,7 +9814,7 @@ const getDeployedApplicationInfoOperationSpec: msRest.OperationSpec = { Parameters.applicationId ], queryParameters: [ - Parameters.apiVersion5, + Parameters.apiVersion6, Parameters.timeout, Parameters.includeHealthState ], @@ -9882,6 +10252,28 @@ const getUnplacedReplicaInformationOperationSpec: msRest.OperationSpec = { serializer }; +const getLoadedPartitionInfoListOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "$/GetLoadedPartitionInfoList", + queryParameters: [ + Parameters.apiVersion8, + Parameters.metricName, + Parameters.serviceName, + Parameters.ordering, + Parameters.maxResults, + Parameters.continuationToken + ], + responses: { + 200: { + bodyMapper: Mappers.LoadedPartitionInformationResultList + }, + default: { + bodyMapper: Mappers.FabricError + } + }, + serializer +}; + const getPartitionInfoListOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "Services/{serviceId}/$/GetPartitions", @@ -10146,7 +10538,7 @@ const movePrimaryReplicaOperationSpec: msRest.OperationSpec = { Parameters.partitionId1 ], queryParameters: [ - Parameters.apiVersion6, + Parameters.apiVersion9, Parameters.nodeName1, Parameters.ignoreConstraints, Parameters.timeout @@ -10167,8 +10559,90 @@ const moveSecondaryReplicaOperationSpec: msRest.OperationSpec = { Parameters.partitionId1 ], queryParameters: [ - Parameters.apiVersion6, - Parameters.currentNodeName, + Parameters.apiVersion9, + Parameters.currentNodeName0, + Parameters.newNodeName, + Parameters.ignoreConstraints, + Parameters.timeout + ], + responses: { + 200: {}, + default: { + bodyMapper: Mappers.FabricError + } + }, + serializer +}; + +const updatePartitionLoadOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "$/UpdatePartitionLoad", + queryParameters: [ + Parameters.apiVersion4, + Parameters.continuationToken, + Parameters.maxResults, + Parameters.timeout + ], + requestBody: { + parameterPath: "partitionMetricLoadDescriptionList", + mapper: { + required: true, + serializedName: "PartitionMetricLoadDescriptionList", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PartitionMetricLoadDescription" + } + } + } + } + }, + responses: { + 200: { + bodyMapper: Mappers.PagedUpdatePartitionLoadResultList + }, + default: { + bodyMapper: Mappers.FabricError + } + }, + serializer +}; + +const moveInstanceOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "Services/{serviceId}/$/GetPartitions/{partitionId}/$/MoveInstance", + urlParameters: [ + Parameters.serviceId0, + Parameters.partitionId1 + ], + queryParameters: [ + Parameters.apiVersion8, + Parameters.currentNodeName1, + Parameters.newNodeName, + Parameters.ignoreConstraints, + Parameters.timeout + ], + responses: { + 200: {}, + default: { + bodyMapper: Mappers.FabricError + } + }, + serializer +}; + +const moveAuxiliaryReplicaOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "Services/{serviceId}/$/GetPartitions/{partitionId}/$/MoveAuxiliaryReplica", + urlParameters: [ + Parameters.serviceId0, + Parameters.partitionId1 + ], + queryParameters: [ + Parameters.apiVersion7, + Parameters.currentNodeName1, Parameters.newNodeName, Parameters.ignoreConstraints, Parameters.timeout @@ -10854,7 +11328,7 @@ const getContainerLogsDeployedOnNodeOperationSpec: msRest.OperationSpec = { Parameters.applicationId ], queryParameters: [ - Parameters.apiVersion4, + Parameters.apiVersion5, Parameters.serviceManifestName0, Parameters.codePackageName1, Parameters.tail, @@ -10880,7 +11354,7 @@ const invokeContainerApiOperationSpec: msRest.OperationSpec = { Parameters.applicationId ], queryParameters: [ - Parameters.apiVersion4, + Parameters.apiVersion5, Parameters.serviceManifestName0, Parameters.codePackageName1, Parameters.codePackageInstanceId, @@ -10908,7 +11382,7 @@ const createComposeDeploymentOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "ComposeDeployments/$/Create", queryParameters: [ - Parameters.apiVersion7, + Parameters.apiVersion10, Parameters.timeout ], requestBody: { @@ -10934,7 +11408,7 @@ const getComposeDeploymentStatusOperationSpec: msRest.OperationSpec = { Parameters.deploymentName ], queryParameters: [ - Parameters.apiVersion7, + Parameters.apiVersion10, Parameters.timeout ], responses: { @@ -10952,7 +11426,7 @@ const getComposeDeploymentStatusListOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "ComposeDeployments", queryParameters: [ - Parameters.apiVersion7, + Parameters.apiVersion10, Parameters.continuationToken, Parameters.maxResults, Parameters.timeout @@ -10975,7 +11449,7 @@ const getComposeDeploymentUpgradeProgressOperationSpec: msRest.OperationSpec = { Parameters.deploymentName ], queryParameters: [ - Parameters.apiVersion7, + Parameters.apiVersion10, Parameters.timeout ], responses: { @@ -10996,7 +11470,7 @@ const removeComposeDeploymentOperationSpec: msRest.OperationSpec = { Parameters.deploymentName ], queryParameters: [ - Parameters.apiVersion7, + Parameters.apiVersion10, Parameters.timeout ], responses: { @@ -11015,7 +11489,7 @@ const startComposeDeploymentUpgradeOperationSpec: msRest.OperationSpec = { Parameters.deploymentName ], queryParameters: [ - Parameters.apiVersion7, + Parameters.apiVersion10, Parameters.timeout ], requestBody: { @@ -11041,7 +11515,7 @@ const startRollbackComposeDeploymentUpgradeOperationSpec: msRest.OperationSpec = Parameters.deploymentName ], queryParameters: [ - Parameters.apiVersion8, + Parameters.apiVersion11, Parameters.timeout ], responses: { @@ -11057,7 +11531,7 @@ const getChaosOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "Tools/Chaos", queryParameters: [ - Parameters.apiVersion4, + Parameters.apiVersion5, Parameters.timeout ], responses: { @@ -11114,7 +11588,7 @@ const getChaosEventsOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "Tools/Chaos/Events", queryParameters: [ - Parameters.apiVersion4, + Parameters.apiVersion5, Parameters.continuationToken, Parameters.startTimeUtc0, Parameters.endTimeUtc0, @@ -11136,7 +11610,7 @@ const getChaosScheduleOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "Tools/Chaos/Schedule", queryParameters: [ - Parameters.apiVersion4, + Parameters.apiVersion5, Parameters.timeout ], responses: { @@ -11154,7 +11628,7 @@ const postChaosScheduleOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "Tools/Chaos/Schedule", queryParameters: [ - Parameters.apiVersion4, + Parameters.apiVersion5, Parameters.timeout ], requestBody: { @@ -11199,7 +11673,7 @@ const getImageStoreContentOperationSpec: msRest.OperationSpec = { Parameters.contentPath ], queryParameters: [ - Parameters.apiVersion4, + Parameters.apiVersion5, Parameters.timeout ], responses: { @@ -11374,7 +11848,7 @@ const getImageStoreRootFolderSizeOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "ImageStore/$/FolderSize", queryParameters: [ - Parameters.apiVersion6, + Parameters.apiVersion9, Parameters.timeout ], responses: { @@ -11395,7 +11869,7 @@ const getImageStoreFolderSizeOperationSpec: msRest.OperationSpec = { Parameters.contentPath ], queryParameters: [ - Parameters.apiVersion6, + Parameters.apiVersion9, Parameters.timeout ], responses: { @@ -11413,7 +11887,7 @@ const getImageStoreInfoOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "ImageStore/$/Info", queryParameters: [ - Parameters.apiVersion6, + Parameters.apiVersion9, Parameters.timeout ], responses: { @@ -11712,7 +12186,8 @@ const createBackupPolicyOperationSpec: msRest.OperationSpec = { path: "BackupRestore/BackupPolicies/$/Create", queryParameters: [ Parameters.apiVersion1, - Parameters.timeout + Parameters.timeout, + Parameters.validateConnection ], requestBody: { parameterPath: "backupPolicyDescription", @@ -11821,7 +12296,8 @@ const updateBackupPolicyOperationSpec: msRest.OperationSpec = { ], queryParameters: [ Parameters.apiVersion1, - Parameters.timeout + Parameters.timeout, + Parameters.validateConnection ], requestBody: { parameterPath: "backupPolicyDescription", @@ -12619,7 +13095,7 @@ const getContainersEventListOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "EventsStore/Containers/Events", queryParameters: [ - Parameters.apiVersion9, + Parameters.apiVersion12, Parameters.timeout, Parameters.startTimeUtc1, Parameters.endTimeUtc1, diff --git a/sdk/servicefabric/servicefabric/src/serviceFabricClientContext.ts b/sdk/servicefabric/servicefabric/src/serviceFabricClientContext.ts index 72378388f394..11d35ec590a9 100644 --- a/sdk/servicefabric/servicefabric/src/serviceFabricClientContext.ts +++ b/sdk/servicefabric/servicefabric/src/serviceFabricClientContext.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is