diff --git a/packages/@azure/servicefabric/lib/models/index.ts b/packages/@azure/servicefabric/lib/models/index.ts index 8e2fc98341fe..cf91758d313e 100644 --- a/packages/@azure/servicefabric/lib/models/index.ts +++ b/packages/@azure/servicefabric/lib/models/index.ts @@ -12,6 +12,214 @@ import { ServiceClientOptions } from "ms-rest-js"; import * as msRest from "ms-rest-js"; +/** + * @interface + * An interface representing FabricErrorError. + * Error object containing error code and error message. + * + */ +export interface FabricErrorError { + /** + * @member {FabricErrorCodes} code Defines the fabric error codes that be + * returned as part of the error object in response to Service Fabric API + * operations that are not successful. Following are the error code values + * that can be returned for a specific HTTP status code. + * + * - Possible values of the error code for HTTP status code 400 (Bad Request) + * - "FABRIC_E_INVALID_PARTITION_KEY" + * - "FABRIC_E_IMAGEBUILDER_VALIDATION_ERROR" + * - "FABRIC_E_INVALID_ADDRESS" + * - "FABRIC_E_APPLICATION_NOT_UPGRADING" + * - "FABRIC_E_APPLICATION_UPGRADE_VALIDATION_ERROR" + * - "FABRIC_E_FABRIC_NOT_UPGRADING" + * - "FABRIC_E_FABRIC_UPGRADE_VALIDATION_ERROR" + * - "FABRIC_E_INVALID_CONFIGURATION" + * - "FABRIC_E_INVALID_NAME_URI" + * - "FABRIC_E_PATH_TOO_LONG" + * - "FABRIC_E_KEY_TOO_LARGE" + * - "FABRIC_E_SERVICE_AFFINITY_CHAIN_NOT_SUPPORTED" + * - "FABRIC_E_INVALID_ATOMIC_GROUP" + * - "FABRIC_E_VALUE_EMPTY" + * - "FABRIC_E_BACKUP_IS_ENABLED" + * - "FABRIC_E_RESTORE_SOURCE_TARGET_PARTITION_MISMATCH" + * - "FABRIC_E_INVALID_FOR_STATELESS_SERVICES" + * - "FABRIC_E_INVALID_SERVICE_SCALING_POLICY" + * - "E_INVALIDARG" + * + * - Possible values of the error code for HTTP status code 404 (Not Found) + * - "FABRIC_E_NODE_NOT_FOUND" + * - "FABRIC_E_APPLICATION_TYPE_NOT_FOUND" + * - "FABRIC_E_APPLICATION_NOT_FOUND" + * - "FABRIC_E_SERVICE_TYPE_NOT_FOUND" + * - "FABRIC_E_SERVICE_DOES_NOT_EXIST" + * - "FABRIC_E_SERVICE_TYPE_TEMPLATE_NOT_FOUND" + * - "FABRIC_E_CONFIGURATION_SECTION_NOT_FOUND" + * - "FABRIC_E_PARTITION_NOT_FOUND" + * - "FABRIC_E_REPLICA_DOES_NOT_EXIST" + * - "FABRIC_E_SERVICE_GROUP_DOES_NOT_EXIST" + * - "FABRIC_E_CONFIGURATION_PARAMETER_NOT_FOUND" + * - "FABRIC_E_DIRECTORY_NOT_FOUND" + * - "FABRIC_E_FABRIC_VERSION_NOT_FOUND" + * - "FABRIC_E_FILE_NOT_FOUND" + * - "FABRIC_E_NAME_DOES_NOT_EXIST" + * - "FABRIC_E_PROPERTY_DOES_NOT_EXIST" + * - "FABRIC_E_ENUMERATION_COMPLETED" + * - "FABRIC_E_SERVICE_MANIFEST_NOT_FOUND" + * - "FABRIC_E_KEY_NOT_FOUND" + * - "FABRIC_E_HEALTH_ENTITY_NOT_FOUND" + * - "FABRIC_E_BACKUP_NOT_ENABLED" + * - "FABRIC_E_BACKUP_POLICY_NOT_EXISTING" + * - "FABRIC_E_FAULT_ANALYSIS_SERVICE_NOT_EXISTING" + * - "FABRIC_E_IMAGEBUILDER_RESERVED_DIRECTORY_ERROR" + * + * - Possible values of the error code for HTTP status code 409 (Conflict) + * - "FABRIC_E_APPLICATION_TYPE_ALREADY_EXISTS" + * - "FABRIC_E_APPLICATION_ALREADY_EXISTS" + * - "FABRIC_E_APPLICATION_ALREADY_IN_TARGET_VERSION" + * - "FABRIC_E_APPLICATION_TYPE_PROVISION_IN_PROGRESS" + * - "FABRIC_E_APPLICATION_UPGRADE_IN_PROGRESS" + * - "FABRIC_E_SERVICE_ALREADY_EXISTS" + * - "FABRIC_E_SERVICE_GROUP_ALREADY_EXISTS" + * - "FABRIC_E_APPLICATION_TYPE_IN_USE" + * - "FABRIC_E_FABRIC_ALREADY_IN_TARGET_VERSION" + * - "FABRIC_E_FABRIC_VERSION_ALREADY_EXISTS" + * - "FABRIC_E_FABRIC_VERSION_IN_USE" + * - "FABRIC_E_FABRIC_UPGRADE_IN_PROGRESS" + * - "FABRIC_E_NAME_ALREADY_EXISTS" + * - "FABRIC_E_NAME_NOT_EMPTY" + * - "FABRIC_E_PROPERTY_CHECK_FAILED" + * - "FABRIC_E_SERVICE_METADATA_MISMATCH" + * - "FABRIC_E_SERVICE_TYPE_MISMATCH" + * - "FABRIC_E_HEALTH_STALE_REPORT" + * - "FABRIC_E_SEQUENCE_NUMBER_CHECK_FAILED" + * - "FABRIC_E_NODE_HAS_NOT_STOPPED_YET" + * - "FABRIC_E_INSTANCE_ID_MISMATCH" + * - "FABRIC_E_BACKUP_IN_PROGRESS" + * - "FABRIC_E_RESTORE_IN_PROGRESS" + * - "FABRIC_E_BACKUP_POLICY_ALREADY_EXISTING" + * + * - Possible values of the error code for HTTP status code 413 (Request + * Entity Too Large) + * - "FABRIC_E_VALUE_TOO_LARGE" + * + * - Possible values of the error code for HTTP status code 500 (Internal + * Server Error) + * - "FABRIC_E_NODE_IS_UP" + * - "E_FAIL" + * - "FABRIC_E_SINGLE_INSTANCE_APPLICATION_ALREADY_EXISTS" + * - "FABRIC_E_SINGLE_INSTANCE_APPLICATION_NOT_FOUND" + * - "FABRIC_E_VOLUME_ALREADY_EXISTS" + * - "ABRIC_E_VOLUME_NOT_FOUND" + * - "SerializationError" + * + * - Possible values of the error code for HTTP status code 503 (Service + * Unavailable) + * - "FABRIC_E_NO_WRITE_QUORUM" + * - "FABRIC_E_NOT_PRIMARY" + * - "FABRIC_E_NOT_READY" + * - "FABRIC_E_RECONFIGURATION_PENDING" + * - "FABRIC_E_SERVICE_OFFLINE" + * - "E_ABORT" + * - "FABRIC_E_VALUE_TOO_LARGE" + * + * - Possible values of the error code for HTTP status code 504 (Gateway + * Timeout) + * - "FABRIC_E_COMMUNICATION_ERROR" + * - "FABRIC_E_OPERATION_NOT_COMPLETE" + * - "FABRIC_E_TIMEOUT". Possible values include: + * 'FABRIC_E_INVALID_PARTITION_KEY', + * 'FABRIC_E_IMAGEBUILDER_VALIDATION_ERROR', 'FABRIC_E_INVALID_ADDRESS', + * 'FABRIC_E_APPLICATION_NOT_UPGRADING', + * 'FABRIC_E_APPLICATION_UPGRADE_VALIDATION_ERROR', + * 'FABRIC_E_FABRIC_NOT_UPGRADING', + * 'FABRIC_E_FABRIC_UPGRADE_VALIDATION_ERROR', + * 'FABRIC_E_INVALID_CONFIGURATION', 'FABRIC_E_INVALID_NAME_URI', + * 'FABRIC_E_PATH_TOO_LONG', 'FABRIC_E_KEY_TOO_LARGE', + * 'FABRIC_E_SERVICE_AFFINITY_CHAIN_NOT_SUPPORTED', + * 'FABRIC_E_INVALID_ATOMIC_GROUP', 'FABRIC_E_VALUE_EMPTY', + * 'FABRIC_E_NODE_NOT_FOUND', 'FABRIC_E_APPLICATION_TYPE_NOT_FOUND', + * 'FABRIC_E_APPLICATION_NOT_FOUND', 'FABRIC_E_SERVICE_TYPE_NOT_FOUND', + * 'FABRIC_E_SERVICE_DOES_NOT_EXIST', + * 'FABRIC_E_SERVICE_TYPE_TEMPLATE_NOT_FOUND', + * 'FABRIC_E_CONFIGURATION_SECTION_NOT_FOUND', + * 'FABRIC_E_PARTITION_NOT_FOUND', 'FABRIC_E_REPLICA_DOES_NOT_EXIST', + * 'FABRIC_E_SERVICE_GROUP_DOES_NOT_EXIST', + * 'FABRIC_E_CONFIGURATION_PARAMETER_NOT_FOUND', + * 'FABRIC_E_DIRECTORY_NOT_FOUND', 'FABRIC_E_FABRIC_VERSION_NOT_FOUND', + * 'FABRIC_E_FILE_NOT_FOUND', 'FABRIC_E_NAME_DOES_NOT_EXIST', + * 'FABRIC_E_PROPERTY_DOES_NOT_EXIST', 'FABRIC_E_ENUMERATION_COMPLETED', + * 'FABRIC_E_SERVICE_MANIFEST_NOT_FOUND', 'FABRIC_E_KEY_NOT_FOUND', + * 'FABRIC_E_HEALTH_ENTITY_NOT_FOUND', + * 'FABRIC_E_APPLICATION_TYPE_ALREADY_EXISTS', + * 'FABRIC_E_APPLICATION_ALREADY_EXISTS', + * 'FABRIC_E_APPLICATION_ALREADY_IN_TARGET_VERSION', + * 'FABRIC_E_APPLICATION_TYPE_PROVISION_IN_PROGRESS', + * 'FABRIC_E_APPLICATION_UPGRADE_IN_PROGRESS', + * 'FABRIC_E_SERVICE_ALREADY_EXISTS', + * 'FABRIC_E_SERVICE_GROUP_ALREADY_EXISTS', + * 'FABRIC_E_APPLICATION_TYPE_IN_USE', + * 'FABRIC_E_FABRIC_ALREADY_IN_TARGET_VERSION', + * 'FABRIC_E_FABRIC_VERSION_ALREADY_EXISTS', + * 'FABRIC_E_FABRIC_VERSION_IN_USE', 'FABRIC_E_FABRIC_UPGRADE_IN_PROGRESS', + * 'FABRIC_E_NAME_ALREADY_EXISTS', 'FABRIC_E_NAME_NOT_EMPTY', + * 'FABRIC_E_PROPERTY_CHECK_FAILED', 'FABRIC_E_SERVICE_METADATA_MISMATCH', + * 'FABRIC_E_SERVICE_TYPE_MISMATCH', 'FABRIC_E_HEALTH_STALE_REPORT', + * 'FABRIC_E_SEQUENCE_NUMBER_CHECK_FAILED', + * 'FABRIC_E_NODE_HAS_NOT_STOPPED_YET', 'FABRIC_E_INSTANCE_ID_MISMATCH', + * 'FABRIC_E_VALUE_TOO_LARGE', 'FABRIC_E_NO_WRITE_QUORUM', + * 'FABRIC_E_NOT_PRIMARY', 'FABRIC_E_NOT_READY', + * 'FABRIC_E_RECONFIGURATION_PENDING', 'FABRIC_E_SERVICE_OFFLINE', 'E_ABORT', + * 'FABRIC_E_COMMUNICATION_ERROR', 'FABRIC_E_OPERATION_NOT_COMPLETE', + * 'FABRIC_E_TIMEOUT', 'FABRIC_E_NODE_IS_UP', 'E_FAIL', + * 'FABRIC_E_BACKUP_IS_ENABLED', + * 'FABRIC_E_RESTORE_SOURCE_TARGET_PARTITION_MISMATCH', + * 'FABRIC_E_INVALID_FOR_STATELESS_SERVICES', 'FABRIC_E_BACKUP_NOT_ENABLED', + * 'FABRIC_E_BACKUP_POLICY_NOT_EXISTING', + * 'FABRIC_E_FAULT_ANALYSIS_SERVICE_NOT_EXISTING', + * 'FABRIC_E_BACKUP_IN_PROGRESS', 'FABRIC_E_RESTORE_IN_PROGRESS', + * 'FABRIC_E_BACKUP_POLICY_ALREADY_EXISTING', + * 'FABRIC_E_INVALID_SERVICE_SCALING_POLICY', 'E_INVALIDARG', + * 'FABRIC_E_SINGLE_INSTANCE_APPLICATION_ALREADY_EXISTS', + * 'FABRIC_E_SINGLE_INSTANCE_APPLICATION_NOT_FOUND', + * 'FABRIC_E_VOLUME_ALREADY_EXISTS', 'FABRIC_E_VOLUME_NOT_FOUND', + * 'SerializationError', 'FABRIC_E_IMAGEBUILDER_RESERVED_DIRECTORY_ERROR' + */ + code: FabricErrorCodes; + /** + * @member {string} [message] Error message. + */ + message?: string; +} + +/** + * @interface + * An interface representing FabricError. + * The REST API operations for Service Fabric return standard HTTP status + * codes. This type defines the additional information returned from the + * Service Fabric API operations that are not successful. + * + */ +export interface FabricError { + /** + * @member {FabricErrorError} error Error object containing error code and + * error message. + */ + error: FabricErrorError; +} + +/** + * @interface + * An interface representing ContainerLogs. + * Container logs. + * + */ +export interface ContainerLogs { + /** + * @member {string} [content] Container logs. + */ + content?: string; +} + /** * @interface * An interface representing AadMetadata. @@ -102,6 +310,10 @@ export interface FabricEvent { * instance. */ eventInstanceId: string; + /** + * @member {string} [category] The category of event. + */ + category?: string; /** * @member {Date} timeStamp The time event was logged. */ @@ -116,7 +328,7 @@ export interface FabricEvent { /** * Contains the possible cases for ApplicationEvent. */ -export type ApplicationEventUnion = ApplicationEvent | ApplicationCreatedEvent | ApplicationDeletedEvent | ApplicationHealthReportCreatedEvent | ApplicationHealthReportExpiredEvent | ApplicationUpgradeCompleteEvent | ApplicationUpgradeDomainCompleteEvent | ApplicationUpgradeRollbackCompleteEvent | ApplicationUpgradeRollbackStartEvent | ApplicationUpgradeStartEvent | DeployedApplicationHealthReportCreatedEvent | DeployedApplicationHealthReportExpiredEvent | ProcessDeactivatedEvent | ContainerDeactivatedEvent | DeployedServiceHealthReportCreatedEvent | DeployedServiceHealthReportExpiredEvent | ChaosRestartCodePackageFaultScheduledEvent | ChaosRestartCodePackageFaultCompletedEvent; +export type ApplicationEventUnion = ApplicationEvent | ApplicationCreatedEvent | ApplicationDeletedEvent | ApplicationNewHealthReportEvent | ApplicationHealthReportExpiredEvent | ApplicationUpgradeCompletedEvent | ApplicationUpgradeDomainCompletedEvent | ApplicationUpgradeRollbackCompletedEvent | ApplicationUpgradeRollbackStartedEvent | ApplicationUpgradeStartedEvent | DeployedApplicationNewHealthReportEvent | DeployedApplicationHealthReportExpiredEvent | ApplicationProcessExitedEvent | ApplicationContainerInstanceExitedEvent | DeployedServicePackageNewHealthReportEvent | DeployedServicePackageHealthReportExpiredEvent | ChaosCodePackageRestartScheduledEvent; /** * @interface @@ -134,6 +346,10 @@ export interface ApplicationEvent { * instance. */ eventInstanceId: string; + /** + * @member {string} [category] The category of event. + */ + category?: string; /** * @member {Date} timeStamp The time event was logged. */ @@ -2034,7 +2250,7 @@ export interface ClusterConfiguration { /** * Contains the possible cases for ClusterEvent. */ -export type ClusterEventUnion = ClusterEvent | ClusterHealthReportCreatedEvent | ClusterHealthReportExpiredEvent | ClusterUpgradeCompleteEvent | ClusterUpgradeDomainCompleteEvent | ClusterUpgradeRollbackCompleteEvent | ClusterUpgradeRollbackStartEvent | ClusterUpgradeStartEvent | ChaosStoppedEvent | ChaosStartedEvent; +export type ClusterEventUnion = ClusterEvent | ClusterNewHealthReportEvent | ClusterHealthReportExpiredEvent | ClusterUpgradeCompletedEvent | ClusterUpgradeDomainCompletedEvent | ClusterUpgradeRollbackCompletedEvent | ClusterUpgradeRollbackStartedEvent | ClusterUpgradeStartedEvent | ChaosStoppedEvent | ChaosStartedEvent; /** * @interface @@ -2052,6 +2268,10 @@ export interface ClusterEvent { * instance. */ eventInstanceId: string; + /** + * @member {string} [category] The category of event. + */ + category?: string; /** * @member {Date} timeStamp The time event was logged. */ @@ -2404,6 +2624,19 @@ export interface ClusterManifest { manifest?: string; } +/** + * @interface + * An interface representing ClusterVersion. + * The cluster version. + * + */ +export interface ClusterVersion { + /** + * @member {string} [version] The Service Fabric cluster runtime version. + */ + version?: string; +} + /** * @interface * An interface representing ContainerApiRequestBody. @@ -2486,6 +2719,10 @@ export interface ContainerInstanceEvent { * instance. */ eventInstanceId: string; + /** + * @member {string} [category] The category of event. + */ + category?: string; /** * @member {Date} timeStamp The time event was logged. */ @@ -3251,7 +3488,7 @@ export interface HealthInformation { * of this property is false by default. * When clients report periodically, they should set RemoveWhenExpired false * (default). - * This way, is the reporter has issues (eg. deadlock) and can't report, the + * This way, if the reporter has issues (e.g. deadlock) and can't report, the * entity is evaluated at error when the health report expires. * This flags the entity as being in Error health state. */ @@ -3422,32 +3659,6 @@ export interface Epoch { dataLossVersion?: string; } -/** - * @interface - * An interface representing BackupEpoch. - * An Epoch is a configuration number for the partition as a whole. When the - * configuration of the replica set changes, for example when the Primary - * replica changes, the operations that are replicated from the new Primary - * replica are said to be a new Epoch from the ones which were sent by the old - * Primary replica. - * - */ -export interface BackupEpoch { - /** - * @member {string} [configurationNumber] The current configuration number of - * this Epoch. The configuration number is an increasing value that is - * updated whenever the configuration of this replica set changes. - */ - configurationNumber?: string; - /** - * @member {string} [dataLossNumber] The current dataloss number of this - * Epoch. The data loss number property is an increasing value which is - * updated whenever data loss is suspected, as when loss of a quorum of - * replicas in the replica set that includes the Primary replica. - */ - dataLossNumber?: string; -} - /** * @interface * An interface representing EventHealthEvaluation. @@ -3516,205 +3727,11 @@ export interface FabricConfigVersionInfo { /** * @interface - * An interface representing FabricErrorError. - * Error object containing error code and error message. + * An interface representing ClusterConfigurationUpgradeStatusInfo. + * Information about a standalone cluster configuration upgrade status. * */ -export interface FabricErrorError { - /** - * @member {FabricErrorCodes} code Defines the fabric error codes that be - * returned as part of the error object in response to Service Fabric API - * operations that are not successful. Following are the error code values - * that can be returned for a specific HTTP status code. - * - * - Possible values of the error code for HTTP status code 400 (Bad Request) - * - "FABRIC_E_INVALID_PARTITION_KEY" - * - "FABRIC_E_IMAGEBUILDER_VALIDATION_ERROR" - * - "FABRIC_E_INVALID_ADDRESS" - * - "FABRIC_E_APPLICATION_NOT_UPGRADING" - * - "FABRIC_E_APPLICATION_UPGRADE_VALIDATION_ERROR" - * - "FABRIC_E_FABRIC_NOT_UPGRADING" - * - "FABRIC_E_FABRIC_UPGRADE_VALIDATION_ERROR" - * - "FABRIC_E_INVALID_CONFIGURATION" - * - "FABRIC_E_INVALID_NAME_URI" - * - "FABRIC_E_PATH_TOO_LONG" - * - "FABRIC_E_KEY_TOO_LARGE" - * - "FABRIC_E_SERVICE_AFFINITY_CHAIN_NOT_SUPPORTED" - * - "FABRIC_E_INVALID_ATOMIC_GROUP" - * - "FABRIC_E_VALUE_EMPTY" - * - "FABRIC_E_BACKUP_IS_ENABLED" - * - "FABRIC_E_RESTORE_SOURCE_TARGET_PARTITION_MISMATCH" - * - "FABRIC_E_INVALID_FOR_STATELESS_SERVICES" - * - "FABRIC_E_INVALID_SERVICE_SCALING_POLICY" - * - "E_INVALIDARG" - * - * - Possible values of the error code for HTTP status code 404 (Not Found) - * - "FABRIC_E_NODE_NOT_FOUND" - * - "FABRIC_E_APPLICATION_TYPE_NOT_FOUND" - * - "FABRIC_E_APPLICATION_NOT_FOUND" - * - "FABRIC_E_SERVICE_TYPE_NOT_FOUND" - * - "FABRIC_E_SERVICE_DOES_NOT_EXIST" - * - "FABRIC_E_SERVICE_TYPE_TEMPLATE_NOT_FOUND" - * - "FABRIC_E_CONFIGURATION_SECTION_NOT_FOUND" - * - "FABRIC_E_PARTITION_NOT_FOUND" - * - "FABRIC_E_REPLICA_DOES_NOT_EXIST" - * - "FABRIC_E_SERVICE_GROUP_DOES_NOT_EXIST" - * - "FABRIC_E_CONFIGURATION_PARAMETER_NOT_FOUND" - * - "FABRIC_E_DIRECTORY_NOT_FOUND" - * - "FABRIC_E_FABRIC_VERSION_NOT_FOUND" - * - "FABRIC_E_FILE_NOT_FOUND" - * - "FABRIC_E_NAME_DOES_NOT_EXIST" - * - "FABRIC_E_PROPERTY_DOES_NOT_EXIST" - * - "FABRIC_E_ENUMERATION_COMPLETED" - * - "FABRIC_E_SERVICE_MANIFEST_NOT_FOUND" - * - "FABRIC_E_KEY_NOT_FOUND" - * - "FABRIC_E_HEALTH_ENTITY_NOT_FOUND" - * - "FABRIC_E_BACKUP_NOT_ENABLED" - * - "FABRIC_E_BACKUP_POLICY_NOT_EXISTING" - * - "FABRIC_E_FAULT_ANALYSIS_SERVICE_NOT_EXISTING" - * - * - Possible values of the error code for HTTP status code 409 (Conflict) - * - "FABRIC_E_APPLICATION_TYPE_ALREADY_EXISTS" - * - "FABRIC_E_APPLICATION_ALREADY_EXISTS" - * - "FABRIC_E_APPLICATION_ALREADY_IN_TARGET_VERSION" - * - "FABRIC_E_APPLICATION_TYPE_PROVISION_IN_PROGRESS" - * - "FABRIC_E_APPLICATION_UPGRADE_IN_PROGRESS" - * - "FABRIC_E_SERVICE_ALREADY_EXISTS" - * - "FABRIC_E_SERVICE_GROUP_ALREADY_EXISTS" - * - "FABRIC_E_APPLICATION_TYPE_IN_USE" - * - "FABRIC_E_FABRIC_ALREADY_IN_TARGET_VERSION" - * - "FABRIC_E_FABRIC_VERSION_ALREADY_EXISTS" - * - "FABRIC_E_FABRIC_VERSION_IN_USE" - * - "FABRIC_E_FABRIC_UPGRADE_IN_PROGRESS" - * - "FABRIC_E_NAME_ALREADY_EXISTS" - * - "FABRIC_E_NAME_NOT_EMPTY" - * - "FABRIC_E_PROPERTY_CHECK_FAILED" - * - "FABRIC_E_SERVICE_METADATA_MISMATCH" - * - "FABRIC_E_SERVICE_TYPE_MISMATCH" - * - "FABRIC_E_HEALTH_STALE_REPORT" - * - "FABRIC_E_SEQUENCE_NUMBER_CHECK_FAILED" - * - "FABRIC_E_NODE_HAS_NOT_STOPPED_YET" - * - "FABRIC_E_INSTANCE_ID_MISMATCH" - * - "FABRIC_E_BACKUP_IN_PROGRESS" - * - "FABRIC_E_RESTORE_IN_PROGRESS" - * - "FABRIC_E_BACKUP_POLICY_ALREADY_EXISTING" - * - * - Possible values of the error code for HTTP status code 413 (Request - * Entity Too Large) - * - "FABRIC_E_VALUE_TOO_LARGE" - * - * - Possible values of the error code for HTTP status code 500 (Internal - * Server Error) - * - "FABRIC_E_NODE_IS_UP" - * - "E_FAIL" - * - "FABRIC_E_SINGLE_INSTANCE_APPLICATION_ALREADY_EXISTS" - * - "FABRIC_E_SINGLE_INSTANCE_APPLICATION_NOT_FOUND" - * - "FABRIC_E_VOLUME_ALREADY_EXISTS" - * - "ABRIC_E_VOLUME_NOT_FOUND" - * - "SerializationError" - * - * - Possible values of the error code for HTTP status code 503 (Service - * Unavailable) - * - "FABRIC_E_NO_WRITE_QUORUM" - * - "FABRIC_E_NOT_PRIMARY" - * - "FABRIC_E_NOT_READY" - * - "FABRIC_E_RECONFIGURATION_PENDING" - * - "FABRIC_E_SERVICE_OFFLINE" - * - "E_ABORT" - * - "FABRIC_E_VALUE_TOO_LARGE" - * - * - Possible values of the error code for HTTP status code 504 (Gateway - * Timeout) - * - "FABRIC_E_COMMUNICATION_ERROR" - * - "FABRIC_E_OPERATION_NOT_COMPLETE" - * - "FABRIC_E_TIMEOUT". Possible values include: - * 'FABRIC_E_INVALID_PARTITION_KEY', - * 'FABRIC_E_IMAGEBUILDER_VALIDATION_ERROR', 'FABRIC_E_INVALID_ADDRESS', - * 'FABRIC_E_APPLICATION_NOT_UPGRADING', - * 'FABRIC_E_APPLICATION_UPGRADE_VALIDATION_ERROR', - * 'FABRIC_E_FABRIC_NOT_UPGRADING', - * 'FABRIC_E_FABRIC_UPGRADE_VALIDATION_ERROR', - * 'FABRIC_E_INVALID_CONFIGURATION', 'FABRIC_E_INVALID_NAME_URI', - * 'FABRIC_E_PATH_TOO_LONG', 'FABRIC_E_KEY_TOO_LARGE', - * 'FABRIC_E_SERVICE_AFFINITY_CHAIN_NOT_SUPPORTED', - * 'FABRIC_E_INVALID_ATOMIC_GROUP', 'FABRIC_E_VALUE_EMPTY', - * 'FABRIC_E_NODE_NOT_FOUND', 'FABRIC_E_APPLICATION_TYPE_NOT_FOUND', - * 'FABRIC_E_APPLICATION_NOT_FOUND', 'FABRIC_E_SERVICE_TYPE_NOT_FOUND', - * 'FABRIC_E_SERVICE_DOES_NOT_EXIST', - * 'FABRIC_E_SERVICE_TYPE_TEMPLATE_NOT_FOUND', - * 'FABRIC_E_CONFIGURATION_SECTION_NOT_FOUND', - * 'FABRIC_E_PARTITION_NOT_FOUND', 'FABRIC_E_REPLICA_DOES_NOT_EXIST', - * 'FABRIC_E_SERVICE_GROUP_DOES_NOT_EXIST', - * 'FABRIC_E_CONFIGURATION_PARAMETER_NOT_FOUND', - * 'FABRIC_E_DIRECTORY_NOT_FOUND', 'FABRIC_E_FABRIC_VERSION_NOT_FOUND', - * 'FABRIC_E_FILE_NOT_FOUND', 'FABRIC_E_NAME_DOES_NOT_EXIST', - * 'FABRIC_E_PROPERTY_DOES_NOT_EXIST', 'FABRIC_E_ENUMERATION_COMPLETED', - * 'FABRIC_E_SERVICE_MANIFEST_NOT_FOUND', 'FABRIC_E_KEY_NOT_FOUND', - * 'FABRIC_E_HEALTH_ENTITY_NOT_FOUND', - * 'FABRIC_E_APPLICATION_TYPE_ALREADY_EXISTS', - * 'FABRIC_E_APPLICATION_ALREADY_EXISTS', - * 'FABRIC_E_APPLICATION_ALREADY_IN_TARGET_VERSION', - * 'FABRIC_E_APPLICATION_TYPE_PROVISION_IN_PROGRESS', - * 'FABRIC_E_APPLICATION_UPGRADE_IN_PROGRESS', - * 'FABRIC_E_SERVICE_ALREADY_EXISTS', - * 'FABRIC_E_SERVICE_GROUP_ALREADY_EXISTS', - * 'FABRIC_E_APPLICATION_TYPE_IN_USE', - * 'FABRIC_E_FABRIC_ALREADY_IN_TARGET_VERSION', - * 'FABRIC_E_FABRIC_VERSION_ALREADY_EXISTS', - * 'FABRIC_E_FABRIC_VERSION_IN_USE', 'FABRIC_E_FABRIC_UPGRADE_IN_PROGRESS', - * 'FABRIC_E_NAME_ALREADY_EXISTS', 'FABRIC_E_NAME_NOT_EMPTY', - * 'FABRIC_E_PROPERTY_CHECK_FAILED', 'FABRIC_E_SERVICE_METADATA_MISMATCH', - * 'FABRIC_E_SERVICE_TYPE_MISMATCH', 'FABRIC_E_HEALTH_STALE_REPORT', - * 'FABRIC_E_SEQUENCE_NUMBER_CHECK_FAILED', - * 'FABRIC_E_NODE_HAS_NOT_STOPPED_YET', 'FABRIC_E_INSTANCE_ID_MISMATCH', - * 'FABRIC_E_VALUE_TOO_LARGE', 'FABRIC_E_NO_WRITE_QUORUM', - * 'FABRIC_E_NOT_PRIMARY', 'FABRIC_E_NOT_READY', - * 'FABRIC_E_RECONFIGURATION_PENDING', 'FABRIC_E_SERVICE_OFFLINE', 'E_ABORT', - * 'FABRIC_E_COMMUNICATION_ERROR', 'FABRIC_E_OPERATION_NOT_COMPLETE', - * 'FABRIC_E_TIMEOUT', 'FABRIC_E_NODE_IS_UP', 'E_FAIL', - * 'FABRIC_E_BACKUP_IS_ENABLED', - * 'FABRIC_E_RESTORE_SOURCE_TARGET_PARTITION_MISMATCH', - * 'FABRIC_E_INVALID_FOR_STATELESS_SERVICES', 'FABRIC_E_BACKUP_NOT_ENABLED', - * 'FABRIC_E_BACKUP_POLICY_NOT_EXISTING', - * 'FABRIC_E_FAULT_ANALYSIS_SERVICE_NOT_EXISTING', - * 'FABRIC_E_BACKUP_IN_PROGRESS', 'FABRIC_E_RESTORE_IN_PROGRESS', - * 'FABRIC_E_BACKUP_POLICY_ALREADY_EXISTING', - * 'FABRIC_E_INVALID_SERVICE_SCALING_POLICY', 'E_INVALIDARG', - * 'FABRIC_E_SINGLE_INSTANCE_APPLICATION_ALREADY_EXISTS', - * 'FABRIC_E_SINGLE_INSTANCE_APPLICATION_NOT_FOUND', - * 'FABRIC_E_VOLUME_ALREADY_EXISTS', 'FABRIC_E_VOLUME_NOT_FOUND', - * 'SerializationError' - */ - code: FabricErrorCodes; - /** - * @member {string} [message] Error message. - */ - message?: string; -} - -/** - * @interface - * An interface representing FabricError. - * The REST API operations for Service Fabric return standard HTTP status - * codes. This type defines the additional information returned from the - * Service Fabric API operations that are not successful. - * - */ -export interface FabricError { - /** - * @member {FabricErrorError} error Error object containing error code and - * error message. - */ - error: FabricErrorError; -} - -/** - * @interface - * An interface representing ClusterConfigurationUpgradeStatusInfo. - * Information about a standalone cluster configuration upgrade status. - * - */ -export interface ClusterConfigurationUpgradeStatusInfo { +export interface ClusterConfigurationUpgradeStatusInfo { /** * @member {UpgradeState} [upgradeState] The state of the upgrade domain. * Possible values include: 'Invalid', 'RollingBackInProgress', @@ -3899,7 +3916,7 @@ export interface NodeDeactivationInfo { /** * Contains the possible cases for NodeEvent. */ -export type NodeEventUnion = NodeEvent | NodeAbortedEvent | NodeAbortingEvent | NodeAddedEvent | NodeCloseEvent | NodeClosingEvent | NodeDeactivateCompleteEvent | NodeDeactivateStartEvent | NodeDownEvent | NodeHealthReportCreatedEvent | NodeHealthReportExpiredEvent | NodeOpenedSuccessEvent | NodeOpenFailedEvent | NodeOpeningEvent | NodeRemovedEvent | NodeUpEvent | ChaosRestartNodeFaultCompletedEvent | ChaosRestartNodeFaultScheduledEvent; +export type NodeEventUnion = NodeEvent | NodeAbortedEvent | NodeAddedToClusterEvent | NodeClosedEvent | NodeDeactivateCompletedEvent | NodeDeactivateStartedEvent | NodeDownEvent | NodeNewHealthReportEvent | NodeHealthReportExpiredEvent | NodeOpenSucceededEvent | NodeOpenFailedEvent | NodeRemovedFromClusterEvent | NodeUpEvent | ChaosNodeRestartScheduledEvent; /** * @interface @@ -3917,6 +3934,10 @@ export interface NodeEvent { * instance. */ eventInstanceId: string; + /** + * @member {string} [category] The category of event. + */ + category?: string; /** * @member {Date} timeStamp The time event was logged. */ @@ -4496,7 +4517,7 @@ export interface PagedServiceInfoList { /** * Contains the possible cases for PartitionEvent. */ -export type PartitionEventUnion = PartitionEvent | PartitionAnalysisEventUnion | PartitionHealthReportCreatedEvent | PartitionHealthReportExpiredEvent | PartitionReconfigurationCompletedEvent | ChaosMoveSecondaryFaultScheduledEvent | ChaosMovePrimaryFaultScheduledEvent; +export type PartitionEventUnion = PartitionEvent | PartitionAnalysisEventUnion | PartitionNewHealthReportEvent | PartitionHealthReportExpiredEvent | PartitionReconfiguredEvent | ChaosPartitionSecondaryMoveScheduledEvent | ChaosPartitionPrimaryMoveScheduledEvent; /** * @interface @@ -4514,6 +4535,10 @@ export interface PartitionEvent { * instance. */ eventInstanceId: string; + /** + * @member {string} [category] The category of event. + */ + category?: string; /** * @member {Date} timeStamp The time event was logged. */ @@ -4554,6 +4579,10 @@ export interface PartitionAnalysisEvent { * instance. */ eventInstanceId: string; + /** + * @member {string} [category] The category of event. + */ + category?: string; /** * @member {Date} timeStamp The time event was logged. */ @@ -5196,7 +5225,7 @@ export interface PartitionsHealthEvaluation { /** * Contains the possible cases for ReplicaEvent. */ -export type ReplicaEventUnion = ReplicaEvent | StatefulReplicaHealthReportCreatedEvent | StatefulReplicaHealthReportExpiredEvent | StatelessReplicaHealthReportCreatedEvent | StatelessReplicaHealthReportExpiredEvent | ChaosRemoveReplicaFaultScheduledEvent | ChaosRemoveReplicaFaultCompletedEvent | ChaosRestartReplicaFaultScheduledEvent; +export type ReplicaEventUnion = ReplicaEvent | StatefulReplicaNewHealthReportEvent | StatefulReplicaHealthReportExpiredEvent | StatelessReplicaNewHealthReportEvent | StatelessReplicaHealthReportExpiredEvent | ChaosReplicaRemovalScheduledEvent | ChaosReplicaRestartScheduledEvent; /** * @interface @@ -5214,6 +5243,10 @@ export interface ReplicaEvent { * instance. */ eventInstanceId: string; + /** + * @member {string} [category] The category of event. + */ + category?: string; /** * @member {Date} timeStamp The time event was logged. */ @@ -5419,7 +5452,7 @@ export interface RestartNodeDescription { /** * Contains the possible cases for ServiceEvent. */ -export type ServiceEventUnion = ServiceEvent | ServiceCreatedEvent | ServiceDeletedEvent | ServiceHealthReportCreatedEvent | ServiceHealthReportExpiredEvent; +export type ServiceEventUnion = ServiceEvent | ServiceCreatedEvent | ServiceDeletedEvent | ServiceNewHealthReportEvent | ServiceHealthReportExpiredEvent; /** * @interface @@ -5437,6 +5470,10 @@ export interface ServiceEvent { * instance. */ eventInstanceId: string; + /** + * @member {string} [category] The category of event. + */ + category?: string; /** * @member {Date} timeStamp The time event was logged. */ @@ -6047,13 +6084,13 @@ export interface StatefulServicePartitionInfo { */ lastQuorumLossDuration?: string; /** - * @member {Epoch} [currentConfigurationEpoch] An Epoch is a configuration - * number for the partition as a whole. When the configuration of the replica - * set changes, for example when the Primary replica changes, the operations - * that are replicated from the new Primary replica are said to be a new - * Epoch from the ones which were sent by the old Primary replica. + * @member {Epoch} [primaryEpoch] An Epoch is a configuration number for the + * partition as a whole. When the configuration of the replica set changes, + * for example when the Primary replica changes, the operations that are + * replicated from the new Primary replica are said to be a new Epoch from + * the ones which were sent by the old Primary replica. */ - currentConfigurationEpoch?: Epoch; + primaryEpoch?: Epoch; } /** @@ -6673,9 +6710,15 @@ export interface LoadMetricReport { */ name?: string; /** - * @member {string} [value] The value of the load metric. + * @member {string} [value] The value of the load metric. In future releases + * of Service Fabric this parameter will be deprecated in favor of + * CurrentValue. */ value?: string; + /** + * @member {string} [currentValue] The value of the load metric. + */ + currentValue?: string; } /** @@ -7015,12 +7058,16 @@ export interface ClusterUpgradeProgressObject { */ export interface ClusterConfigurationUpgradeDescription { /** - * @member {string} clusterConfig The cluster configuration. + * @member {string} clusterConfig The cluster configuration as a JSON string. + * For example, [this + * file](https://github.com/Azure-Samples/service-fabric-dotnet-standalone-cluster-configuration/blob/master/Samples/ClusterConfig.Unsecure.DevCluster.json) + * contains JSON describing the [nodes and other properties of the + * cluster](https://docs.microsoft.com/azure/service-fabric/service-fabric-cluster-manifest). */ clusterConfig: string; /** * @member {string} [healthCheckRetryTimeout] The length of time between - * attempts to perform a health checks if the application or cluster is not + * attempts to perform health checks if the application or cluster is not * healthy. Default value: 'PT0H0M0S' . */ healthCheckRetryTimeout?: string; @@ -7032,8 +7079,8 @@ export interface ClusterConfigurationUpgradeDescription { healthCheckWaitDurationInSeconds?: string; /** * @member {string} [healthCheckStableDurationInSeconds] The length of time - * that the application or cluster must remain healthy. Default value: - * 'PT0H0M0S' . + * that the application or cluster must remain healthy before the upgrade + * proceeds to the next upgrade domain. Default value: 'PT0H0M0S' . */ healthCheckStableDurationInSeconds?: string; /** @@ -9208,9 +9255,16 @@ export interface LoadMetricReportInfo { */ name?: string; /** - * @member {number} [value] The value of the load for the metric.. + * @member {number} [value] The value of the load for the metric. In future + * releases of Service Fabric this parameter will be deprecated in favor of + * CurrentValue. */ value?: number; + /** + * @member {string} [currentValue] The double value of the load for the + * metric. + */ + currentValue?: string; /** * @member {Date} [lastReportedUtc] The UTC time when the load is reported. */ @@ -10922,6 +10976,24 @@ export interface BackupStorageDescription { friendlyName?: string; } +/** + * Contains the possible cases for RetentionPolicyDescription. + */ +export type RetentionPolicyDescriptionUnion = RetentionPolicyDescription | BasicRetentionPolicyDescription; + +/** + * @interface + * An interface representing RetentionPolicyDescription. + * Describes the retention policy configured. + * + */ +export interface RetentionPolicyDescription { + /** + * @member {string} retentionPolicyType Polymorphic Discriminator + */ + retentionPolicyType: "RetentionPolicyDescription"; +} + /** * @interface * An interface representing BackupPolicyDescription. @@ -10959,6 +11031,11 @@ export interface BackupPolicyDescription { * backup storage where to store the periodic backups. */ storage: BackupStorageDescriptionUnion; + /** + * @member {RetentionPolicyDescriptionUnion} [retentionPolicy] Describes the + * policy to retain backups in storage. + */ + retentionPolicy?: RetentionPolicyDescriptionUnion; } /** @@ -10987,6 +11064,48 @@ export interface PagedBackupPolicyDescriptionList { items?: BackupPolicyDescription[]; } +/** + * @interface + * An interface representing BasicRetentionPolicyDescription. + * Describes basic retention policy. + * + */ +export interface BasicRetentionPolicyDescription { + /** + * @member {string} retentionPolicyType Polymorphic Discriminator + */ + retentionPolicyType: "Basic"; + /** + * @member {string} retentionDuration It is the minimum duration for which a + * backup created, will remain stored in the storage and might get deleted + * after that span of time. It should be specified in ISO8601 format. + */ + retentionDuration: string; + /** + * @member {number} [minimumNumberOfBackups] It is the minimum number of + * backups to be retained at any point of time. If specified with a non zero + * value, backups will not be deleted even if the backups have gone past + * retention duration and have number of backups less than or equal to it. + */ + minimumNumberOfBackups?: number; +} + +/** + * @interface + * An interface representing DisableBackupDescription. + * It describes the body parameters while disabling backup of a backup + * entity(Application/Service/Partition). + * + */ +export interface DisableBackupDescription { + /** + * @member {boolean} cleanBackup Boolean flag to delete backups. It can be + * set to true for deleting all the backups which were created for the backup + * entity that is getting disabled for backup. + */ + cleanBackup: boolean; +} + /** * Contains the possible cases for BackupConfigurationInfo. */ @@ -11182,10 +11301,10 @@ export interface RestoreProgressInfo { */ timeStampUtc?: Date; /** - * @member {BackupEpoch} [restoredEpoch] Describes the epoch at which the - * partition is restored. + * @member {Epoch} [restoredEpoch] Describes the epoch at which the partition + * is restored. */ - restoredEpoch?: BackupEpoch; + restoredEpoch?: Epoch; /** * @member {string} [restoredLsn] Restored LSN. */ @@ -11255,10 +11374,10 @@ export interface BackupInfo { */ backupType?: BackupType; /** - * @member {BackupEpoch} [epochOfLastBackupRecord] Epoch of the last record - * in this backup. + * @member {Epoch} [epochOfLastBackupRecord] Epoch of the last record in this + * backup. */ - epochOfLastBackupRecord?: BackupEpoch; + epochOfLastBackupRecord?: Epoch; /** * @member {string} [lsnOfLastBackupRecord] LSN of the last record in this * backup. @@ -11268,6 +11387,11 @@ export interface BackupInfo { * @member {Date} [creationTimeUtc] The date time when this backup was taken. */ creationTimeUtc?: Date; + /** + * @member {string} [serviceManifestVersion] Manifest Version of the service + * this partition backup belongs to. + */ + serviceManifestVersion?: string; /** * @member {FabricErrorError} [failureError] Denotes the failure encountered * in getting backup point information. @@ -11448,10 +11572,10 @@ export interface BackupProgressInfo { */ backupLocation?: string; /** - * @member {BackupEpoch} [epochOfLastBackupRecord] Specifies the epoch of the - * last record included in backup. + * @member {Epoch} [epochOfLastBackupRecord] Specifies the epoch of the last + * record included in backup. */ - epochOfLastBackupRecord?: BackupEpoch; + epochOfLastBackupRecord?: Epoch; /** * @member {string} [lsnOfLastBackupRecord] The LSN of last record included * in backup. @@ -11498,11 +11622,8 @@ export interface PartitionBackupConfigurationInfo { */ serviceName?: string; /** - * @member {string} [partitionId] An internal ID used by Service Fabric to - * uniquely identify a partition. This is a randomly generated GUID when the - * service was created. The partition ID is unique and does not change for - * the lifetime of the service. If the same service was deleted and recreated - * the IDs of its partitions would be different. + * @member {string} [partitionId] The partition ID indentifying the + * partition. */ partitionId?: string; } @@ -11578,11 +11699,8 @@ export interface PartitionBackupEntity { */ serviceName?: string; /** - * @member {string} [partitionId] An internal ID used by Service Fabric to - * uniquely identify a partition. This is a randomly generated GUID when the - * service was created. The partition ID is unique and does not change for - * the lifetime of the service. If the same service was deleted and recreated - * the IDs of its partitions would be different. + * @member {string} [partitionId] The partition ID indentifying the + * partition. */ partitionId?: string; } @@ -12172,22 +12290,9 @@ export interface UploadSession { /** * @interface - * An interface representing ContainerLogs. - * Container logs. - * - */ -export interface ContainerLogs { - /** - * @member {string} [content] Container logs. - */ - content?: string; -} - -/** - * @interface - * An interface representing AveragePartitionLoadScalingTrigger. - * Represents a scaling trigger related to an average load of a metric/resource - * of a partition. + * An interface representing AveragePartitionLoadScalingTrigger. + * Represents a scaling trigger related to an average load of a metric/resource + * of a partition. * */ export interface AveragePartitionLoadScalingTrigger { @@ -12325,6 +12430,10 @@ export interface ApplicationCreatedEvent { * instance. */ eventInstanceId: string; + /** + * @member {string} [category] The category of event. + */ + category?: string; /** * @member {Date} timeStamp The time event was logged. */ @@ -12374,6 +12483,10 @@ export interface ApplicationDeletedEvent { * instance. */ eventInstanceId: string; + /** + * @member {string} [category] The category of event. + */ + category?: string; /** * @member {Date} timeStamp The time event was logged. */ @@ -12405,20 +12518,24 @@ export interface ApplicationDeletedEvent { /** * @interface - * An interface representing ApplicationHealthReportCreatedEvent. + * An interface representing ApplicationNewHealthReportEvent. * Application Health Report Created event. * */ -export interface ApplicationHealthReportCreatedEvent { +export interface ApplicationNewHealthReportEvent { /** * @member {string} kind Polymorphic Discriminator */ - kind: "ApplicationHealthReportCreated"; + kind: "ApplicationNewHealthReport"; /** * @member {string} eventInstanceId The identifier for the FabricEvent * instance. */ eventInstanceId: string; + /** + * @member {string} [category] The category of event. + */ + category?: string; /** * @member {Date} timeStamp The time event was logged. */ @@ -12492,6 +12609,10 @@ export interface ApplicationHealthReportExpiredEvent { * instance. */ eventInstanceId: string; + /** + * @member {string} [category] The category of event. + */ + category?: string; /** * @member {Date} timeStamp The time event was logged. */ @@ -12551,20 +12672,24 @@ export interface ApplicationHealthReportExpiredEvent { /** * @interface - * An interface representing ApplicationUpgradeCompleteEvent. - * Application Upgrade Complete event. + * An interface representing ApplicationUpgradeCompletedEvent. + * Application Upgrade Completed event. * */ -export interface ApplicationUpgradeCompleteEvent { +export interface ApplicationUpgradeCompletedEvent { /** * @member {string} kind Polymorphic Discriminator */ - kind: "ApplicationUpgradeComplete"; + kind: "ApplicationUpgradeCompleted"; /** * @member {string} eventInstanceId The identifier for the FabricEvent * instance. */ eventInstanceId: string; + /** + * @member {string} [category] The category of event. + */ + category?: string; /** * @member {Date} timeStamp The time event was logged. */ @@ -12601,20 +12726,24 @@ export interface ApplicationUpgradeCompleteEvent { /** * @interface - * An interface representing ApplicationUpgradeDomainCompleteEvent. - * Application Upgrade Domain Complete event. + * An interface representing ApplicationUpgradeDomainCompletedEvent. + * Application Upgrade Domain Completed event. * */ -export interface ApplicationUpgradeDomainCompleteEvent { +export interface ApplicationUpgradeDomainCompletedEvent { /** * @member {string} kind Polymorphic Discriminator */ - kind: "ApplicationUpgradeDomainComplete"; + kind: "ApplicationUpgradeDomainCompleted"; /** * @member {string} eventInstanceId The identifier for the FabricEvent * instance. */ eventInstanceId: string; + /** + * @member {string} [category] The category of event. + */ + category?: string; /** * @member {Date} timeStamp The time event was logged. */ @@ -12664,20 +12793,24 @@ export interface ApplicationUpgradeDomainCompleteEvent { /** * @interface - * An interface representing ApplicationUpgradeRollbackCompleteEvent. - * Application Upgrade Rollback Complete event. + * An interface representing ApplicationUpgradeRollbackCompletedEvent. + * Application Upgrade Rollback Completed event. * */ -export interface ApplicationUpgradeRollbackCompleteEvent { +export interface ApplicationUpgradeRollbackCompletedEvent { /** * @member {string} kind Polymorphic Discriminator */ - kind: "ApplicationUpgradeRollbackComplete"; + kind: "ApplicationUpgradeRollbackCompleted"; /** * @member {string} eventInstanceId The identifier for the FabricEvent * instance. */ eventInstanceId: string; + /** + * @member {string} [category] The category of event. + */ + category?: string; /** * @member {Date} timeStamp The time event was logged. */ @@ -12718,20 +12851,24 @@ export interface ApplicationUpgradeRollbackCompleteEvent { /** * @interface - * An interface representing ApplicationUpgradeRollbackStartEvent. - * Application Upgrade Rollback Start event. + * An interface representing ApplicationUpgradeRollbackStartedEvent. + * Application Upgrade Rollback Started event. * */ -export interface ApplicationUpgradeRollbackStartEvent { +export interface ApplicationUpgradeRollbackStartedEvent { /** * @member {string} kind Polymorphic Discriminator */ - kind: "ApplicationUpgradeRollbackStart"; + kind: "ApplicationUpgradeRollbackStarted"; /** * @member {string} eventInstanceId The identifier for the FabricEvent * instance. */ eventInstanceId: string; + /** + * @member {string} [category] The category of event. + */ + category?: string; /** * @member {Date} timeStamp The time event was logged. */ @@ -12777,20 +12914,24 @@ export interface ApplicationUpgradeRollbackStartEvent { /** * @interface - * An interface representing ApplicationUpgradeStartEvent. - * Application Upgrade Start event. + * An interface representing ApplicationUpgradeStartedEvent. + * Application Upgrade Started event. * */ -export interface ApplicationUpgradeStartEvent { +export interface ApplicationUpgradeStartedEvent { /** * @member {string} kind Polymorphic Discriminator */ - kind: "ApplicationUpgradeStart"; + kind: "ApplicationUpgradeStarted"; /** * @member {string} eventInstanceId The identifier for the FabricEvent * instance. */ eventInstanceId: string; + /** + * @member {string} [category] The category of event. + */ + category?: string; /** * @member {Date} timeStamp The time event was logged. */ @@ -12839,20 +12980,24 @@ export interface ApplicationUpgradeStartEvent { /** * @interface - * An interface representing DeployedApplicationHealthReportCreatedEvent. + * An interface representing DeployedApplicationNewHealthReportEvent. * Deployed Application Health Report Created event. * */ -export interface DeployedApplicationHealthReportCreatedEvent { +export interface DeployedApplicationNewHealthReportEvent { /** * @member {string} kind Polymorphic Discriminator */ - kind: "DeployedApplicationHealthReportCreated"; + kind: "DeployedApplicationNewHealthReport"; /** * @member {string} eventInstanceId The identifier for the FabricEvent * instance. */ eventInstanceId: string; + /** + * @member {string} [category] The category of event. + */ + category?: string; /** * @member {Date} timeStamp The time event was logged. */ @@ -12930,6 +13075,10 @@ export interface DeployedApplicationHealthReportExpiredEvent { * instance. */ eventInstanceId: string; + /** + * @member {string} [category] The category of event. + */ + category?: string; /** * @member {Date} timeStamp The time event was logged. */ @@ -12993,20 +13142,24 @@ export interface DeployedApplicationHealthReportExpiredEvent { /** * @interface - * An interface representing ProcessDeactivatedEvent. - * Process Deactivated event. + * An interface representing ApplicationProcessExitedEvent. + * Process Exited event. * */ -export interface ProcessDeactivatedEvent { +export interface ApplicationProcessExitedEvent { /** * @member {string} kind Polymorphic Discriminator */ - kind: "ProcessDeactivated"; + kind: "ApplicationProcessExited"; /** * @member {string} eventInstanceId The identifier for the FabricEvent * instance. */ eventInstanceId: string; + /** + * @member {string} [category] The category of event. + */ + category?: string; /** * @member {Date} timeStamp The time event was logged. */ @@ -13080,20 +13233,24 @@ export interface ProcessDeactivatedEvent { /** * @interface - * An interface representing ContainerDeactivatedEvent. - * Container Deactivated event. + * An interface representing ApplicationContainerInstanceExitedEvent. + * Container Exited event. * */ -export interface ContainerDeactivatedEvent { +export interface ApplicationContainerInstanceExitedEvent { /** * @member {string} kind Polymorphic Discriminator */ - kind: "ContainerDeactivated"; + kind: "ApplicationContainerInstanceExited"; /** * @member {string} eventInstanceId The identifier for the FabricEvent * instance. */ eventInstanceId: string; + /** + * @member {string} [category] The category of event. + */ + category?: string; /** * @member {Date} timeStamp The time event was logged. */ @@ -13182,68 +13339,9 @@ export interface NodeAbortedEvent { */ eventInstanceId: string; /** - * @member {Date} timeStamp The time event was logged. - */ - timeStamp: Date; - /** - * @member {boolean} [hasCorrelatedEvents] Shows there is existing related - * events available. - */ - hasCorrelatedEvents?: boolean; - /** - * @member {string} nodeName The name of a Service Fabric node. - */ - nodeName: string; - /** - * @member {number} nodeInstance Id of Node instance. - */ - nodeInstance: number; - /** - * @member {string} nodeId Id of Node. - */ - nodeId: string; - /** - * @member {string} upgradeDomain Upgrade domain of Node. - */ - upgradeDomain: string; - /** - * @member {string} faultDomain Fault domain of Node. - */ - faultDomain: string; - /** - * @member {string} ipAddressOrFQDN IP address or FQDN. - */ - ipAddressOrFQDN: string; - /** - * @member {string} hostname Name of Host. - */ - hostname: string; - /** - * @member {boolean} isSeedNode Indicates if it is seed node. - */ - isSeedNode: boolean; - /** - * @member {string} nodeVersion Version of Node. - */ - nodeVersion: string; -} - -/** - * @interface - * An interface representing NodeAbortingEvent. - * Node Aborting event. - * - */ -export interface NodeAbortingEvent { - /** - * @member {string} kind Polymorphic Discriminator - */ - kind: "NodeAborting"; - /** - * @member {string} eventInstanceId The identifier for the FabricEvent - * instance. + * @member {string} [category] The category of event. */ - eventInstanceId: string; + category?: string; /** * @member {Date} timeStamp The time event was logged. */ @@ -13293,20 +13391,24 @@ export interface NodeAbortingEvent { /** * @interface - * An interface representing NodeAddedEvent. + * An interface representing NodeAddedToClusterEvent. * Node Added event. * */ -export interface NodeAddedEvent { +export interface NodeAddedToClusterEvent { /** * @member {string} kind Polymorphic Discriminator */ - kind: "NodeAdded"; + kind: "NodeAddedToCluster"; /** * @member {string} eventInstanceId The identifier for the FabricEvent * instance. */ eventInstanceId: string; + /** + * @member {string} [category] The category of event. + */ + category?: string; /** * @member {Date} timeStamp The time event was logged. */ @@ -13348,20 +13450,24 @@ export interface NodeAddedEvent { /** * @interface - * An interface representing NodeCloseEvent. - * Node Close event. + * An interface representing NodeClosedEvent. + * Node Closed event. * */ -export interface NodeCloseEvent { +export interface NodeClosedEvent { /** * @member {string} kind Polymorphic Discriminator */ - kind: "NodeClose"; + kind: "NodeClosed"; /** * @member {string} eventInstanceId The identifier for the FabricEvent * instance. */ eventInstanceId: string; + /** + * @member {string} [category] The category of event. + */ + category?: string; /** * @member {Date} timeStamp The time event was logged. */ @@ -13380,9 +13486,9 @@ export interface NodeCloseEvent { */ nodeId: string; /** - * @member {string} nodeInstance Id of Node instance. + * @member {number} nodeInstance Id of Node instance. */ - nodeInstance: string; + nodeInstance: number; /** * @member {string} error Describes error. */ @@ -13391,83 +13497,24 @@ export interface NodeCloseEvent { /** * @interface - * An interface representing NodeClosingEvent. - * Node Closing event. + * An interface representing NodeDeactivateCompletedEvent. + * Node Deactivate Completed event. * */ -export interface NodeClosingEvent { +export interface NodeDeactivateCompletedEvent { /** * @member {string} kind Polymorphic Discriminator */ - kind: "NodeClosing"; + kind: "NodeDeactivateCompleted"; /** * @member {string} eventInstanceId The identifier for the FabricEvent * instance. */ eventInstanceId: string; /** - * @member {Date} timeStamp The time event was logged. - */ - timeStamp: Date; - /** - * @member {boolean} [hasCorrelatedEvents] Shows there is existing related - * events available. - */ - hasCorrelatedEvents?: boolean; - /** - * @member {string} nodeName The name of a Service Fabric node. - */ - nodeName: string; - /** - * @member {number} nodeInstance Id of Node instance. - */ - nodeInstance: number; - /** - * @member {string} nodeId Id of Node. - */ - nodeId: string; - /** - * @member {string} upgradeDomain Upgrade domain of Node. - */ - upgradeDomain: string; - /** - * @member {string} faultDomain Fault domain of Node. - */ - faultDomain: string; - /** - * @member {string} ipAddressOrFQDN IP address or FQDN. - */ - ipAddressOrFQDN: string; - /** - * @member {string} hostname Name of Host. - */ - hostname: string; - /** - * @member {boolean} isSeedNode Indicates if it is seed node. - */ - isSeedNode: boolean; - /** - * @member {string} nodeVersion Version of Node. - */ - nodeVersion: string; -} - -/** - * @interface - * An interface representing NodeDeactivateCompleteEvent. - * Node Deactivate Complete event. - * - */ -export interface NodeDeactivateCompleteEvent { - /** - * @member {string} kind Polymorphic Discriminator - */ - kind: "NodeDeactivateComplete"; - /** - * @member {string} eventInstanceId The identifier for the FabricEvent - * instance. + * @member {string} [category] The category of event. */ - eventInstanceId: string; + category?: string; /** * @member {Date} timeStamp The time event was logged. */ @@ -13501,20 +13548,24 @@ export interface NodeDeactivateCompleteEvent { /** * @interface - * An interface representing NodeDeactivateStartEvent. - * Node Deactivate Start event. + * An interface representing NodeDeactivateStartedEvent. + * Node Deactivate Started event. * */ -export interface NodeDeactivateStartEvent { +export interface NodeDeactivateStartedEvent { /** * @member {string} kind Polymorphic Discriminator */ - kind: "NodeDeactivateStart"; + kind: "NodeDeactivateStarted"; /** * @member {string} eventInstanceId The identifier for the FabricEvent * instance. */ eventInstanceId: string; + /** + * @member {string} [category] The category of event. + */ + category?: string; /** * @member {Date} timeStamp The time event was logged. */ @@ -13558,6 +13609,10 @@ export interface NodeDownEvent { * instance. */ eventInstanceId: string; + /** + * @member {string} [category] The category of event. + */ + category?: string; /** * @member {Date} timeStamp The time event was logged. */ @@ -13583,20 +13638,24 @@ export interface NodeDownEvent { /** * @interface - * An interface representing NodeHealthReportCreatedEvent. + * An interface representing NodeNewHealthReportEvent. * Node Health Report Created event. * */ -export interface NodeHealthReportCreatedEvent { +export interface NodeNewHealthReportEvent { /** * @member {string} kind Polymorphic Discriminator */ - kind: "NodeHealthReportCreated"; + kind: "NodeNewHealthReport"; /** * @member {string} eventInstanceId The identifier for the FabricEvent * instance. */ eventInstanceId: string; + /** + * @member {string} [category] The category of event. + */ + category?: string; /** * @member {Date} timeStamp The time event was logged. */ @@ -13664,6 +13723,10 @@ export interface NodeHealthReportExpiredEvent { * instance. */ eventInstanceId: string; + /** + * @member {string} [category] The category of event. + */ + category?: string; /** * @member {Date} timeStamp The time event was logged. */ @@ -13717,20 +13780,24 @@ export interface NodeHealthReportExpiredEvent { /** * @interface - * An interface representing NodeOpenedSuccessEvent. - * Node Opened Success event. + * An interface representing NodeOpenSucceededEvent. + * Node Opened Succeeded event. * */ -export interface NodeOpenedSuccessEvent { +export interface NodeOpenSucceededEvent { /** * @member {string} kind Polymorphic Discriminator */ - kind: "NodeOpenedSuccess"; + kind: "NodeOpenSucceeded"; /** * @member {string} eventInstanceId The identifier for the FabricEvent * instance. */ eventInstanceId: string; + /** + * @member {string} [category] The category of event. + */ + category?: string; /** * @member {Date} timeStamp The time event was logged. */ @@ -13794,6 +13861,10 @@ export interface NodeOpenFailedEvent { * instance. */ eventInstanceId: string; + /** + * @member {string} [category] The category of event. + */ + category?: string; /** * @member {Date} timeStamp The time event was logged. */ @@ -13847,83 +13918,24 @@ export interface NodeOpenFailedEvent { /** * @interface - * An interface representing NodeOpeningEvent. - * Node Opening event. + * An interface representing NodeRemovedFromClusterEvent. + * Node Removed event. * */ -export interface NodeOpeningEvent { +export interface NodeRemovedFromClusterEvent { /** * @member {string} kind Polymorphic Discriminator */ - kind: "NodeOpening"; + kind: "NodeRemovedFromCluster"; /** * @member {string} eventInstanceId The identifier for the FabricEvent * instance. */ eventInstanceId: string; /** - * @member {Date} timeStamp The time event was logged. - */ - timeStamp: Date; - /** - * @member {boolean} [hasCorrelatedEvents] Shows there is existing related - * events available. - */ - hasCorrelatedEvents?: boolean; - /** - * @member {string} nodeName The name of a Service Fabric node. - */ - nodeName: string; - /** - * @member {number} nodeInstance Id of Node instance. - */ - nodeInstance: number; - /** - * @member {string} nodeId Id of Node. - */ - nodeId: string; - /** - * @member {string} upgradeDomain Upgrade domain of Node. - */ - upgradeDomain: string; - /** - * @member {string} faultDomain Fault domain of Node. - */ - faultDomain: string; - /** - * @member {string} ipAddressOrFQDN IP address or FQDN. - */ - ipAddressOrFQDN: string; - /** - * @member {string} hostname Name of Host. - */ - hostname: string; - /** - * @member {boolean} isSeedNode Indicates if it is seed node. - */ - isSeedNode: boolean; - /** - * @member {string} nodeVersion Version of Node. - */ - nodeVersion: string; -} - -/** - * @interface - * An interface representing NodeRemovedEvent. - * Node Removed event. - * - */ -export interface NodeRemovedEvent { - /** - * @member {string} kind Polymorphic Discriminator - */ - kind: "NodeRemoved"; - /** - * @member {string} eventInstanceId The identifier for the FabricEvent - * instance. + * @member {string} [category] The category of event. */ - eventInstanceId: string; + category?: string; /** * @member {Date} timeStamp The time event was logged. */ @@ -13979,6 +13991,10 @@ export interface NodeUpEvent { * instance. */ eventInstanceId: string; + /** + * @member {string} [category] The category of event. + */ + category?: string; /** * @member {Date} timeStamp The time event was logged. */ @@ -14004,20 +14020,24 @@ export interface NodeUpEvent { /** * @interface - * An interface representing PartitionHealthReportCreatedEvent. + * An interface representing PartitionNewHealthReportEvent. * Partition Health Report Created event. * */ -export interface PartitionHealthReportCreatedEvent { +export interface PartitionNewHealthReportEvent { /** * @member {string} kind Polymorphic Discriminator */ - kind: "PartitionHealthReportCreated"; + kind: "PartitionNewHealthReport"; /** * @member {string} eventInstanceId The identifier for the FabricEvent * instance. */ eventInstanceId: string; + /** + * @member {string} [category] The category of event. + */ + category?: string; /** * @member {Date} timeStamp The time event was logged. */ @@ -14085,6 +14105,10 @@ export interface PartitionHealthReportExpiredEvent { * instance. */ eventInstanceId: string; + /** + * @member {string} [category] The category of event. + */ + category?: string; /** * @member {Date} timeStamp The time event was logged. */ @@ -14138,20 +14162,24 @@ export interface PartitionHealthReportExpiredEvent { /** * @interface - * An interface representing PartitionReconfigurationCompletedEvent. - * Partition Reconfiguration Completed event. + * An interface representing PartitionReconfiguredEvent. + * Partition Reconfiguration event. * */ -export interface PartitionReconfigurationCompletedEvent { +export interface PartitionReconfiguredEvent { /** * @member {string} kind Polymorphic Discriminator */ - kind: "PartitionReconfigurationCompleted"; + kind: "PartitionReconfigured"; /** * @member {string} eventInstanceId The identifier for the FabricEvent * instance. */ eventInstanceId: string; + /** + * @member {string} [category] The category of event. + */ + category?: string; /** * @member {Date} timeStamp The time event was logged. */ @@ -14239,6 +14267,10 @@ export interface PartitionPrimaryMoveAnalysisEvent { * instance. */ eventInstanceId: string; + /** + * @member {string} [category] The category of event. + */ + category?: string; /** * @member {Date} timeStamp The time event was logged. */ @@ -14298,6 +14330,10 @@ export interface ServiceCreatedEvent { * instance. */ eventInstanceId: string; + /** + * @member {string} [category] The category of event. + */ + category?: string; /** * @member {Date} timeStamp The time event was logged. */ @@ -14379,6 +14415,10 @@ export interface ServiceDeletedEvent { * instance. */ eventInstanceId: string; + /** + * @member {string} [category] The category of event. + */ + category?: string; /** * @member {Date} timeStamp The time event was logged. */ @@ -14438,20 +14478,24 @@ export interface ServiceDeletedEvent { /** * @interface - * An interface representing ServiceHealthReportCreatedEvent. + * An interface representing ServiceNewHealthReportEvent. * Service Health Report Created event. * */ -export interface ServiceHealthReportCreatedEvent { +export interface ServiceNewHealthReportEvent { /** * @member {string} kind Polymorphic Discriminator */ - kind: "ServiceHealthReportCreated"; + kind: "ServiceNewHealthReport"; /** * @member {string} eventInstanceId The identifier for the FabricEvent * instance. */ eventInstanceId: string; + /** + * @member {string} [category] The category of event. + */ + category?: string; /** * @member {Date} timeStamp The time event was logged. */ @@ -14525,6 +14569,10 @@ export interface ServiceHealthReportExpiredEvent { * instance. */ eventInstanceId: string; + /** + * @member {string} [category] The category of event. + */ + category?: string; /** * @member {Date} timeStamp The time event was logged. */ @@ -14584,20 +14632,24 @@ export interface ServiceHealthReportExpiredEvent { /** * @interface - * An interface representing DeployedServiceHealthReportCreatedEvent. + * An interface representing DeployedServicePackageNewHealthReportEvent. * Deployed Service Health Report Created event. * */ -export interface DeployedServiceHealthReportCreatedEvent { +export interface DeployedServicePackageNewHealthReportEvent { /** * @member {string} kind Polymorphic Discriminator */ - kind: "DeployedServiceHealthReportCreated"; + kind: "DeployedServicePackageNewHealthReport"; /** * @member {string} eventInstanceId The identifier for the FabricEvent * instance. */ eventInstanceId: string; + /** + * @member {string} [category] The category of event. + */ + category?: string; /** * @member {Date} timeStamp The time event was logged. */ @@ -14647,9 +14699,9 @@ export interface DeployedServiceHealthReportCreatedEvent { */ healthState: string; /** - * @member {number} tTLTimespan Time to live in milli-seconds. + * @member {number} timeToLiveMs Time to live in milli-seconds. */ - tTLTimespan: number; + timeToLiveMs: number; /** * @member {number} sequenceNumber Sequence number of report. */ @@ -14670,20 +14722,24 @@ export interface DeployedServiceHealthReportCreatedEvent { /** * @interface - * An interface representing DeployedServiceHealthReportExpiredEvent. + * An interface representing DeployedServicePackageHealthReportExpiredEvent. * Deployed Service Health Report Expired event. * */ -export interface DeployedServiceHealthReportExpiredEvent { +export interface DeployedServicePackageHealthReportExpiredEvent { /** * @member {string} kind Polymorphic Discriminator */ - kind: "DeployedServiceHealthReportExpired"; + kind: "DeployedServicePackageHealthReportExpired"; /** * @member {string} eventInstanceId The identifier for the FabricEvent * instance. */ eventInstanceId: string; + /** + * @member {string} [category] The category of event. + */ + category?: string; /** * @member {Date} timeStamp The time event was logged. */ @@ -14733,9 +14789,9 @@ export interface DeployedServiceHealthReportExpiredEvent { */ healthState: string; /** - * @member {number} tTLTimespan Time to live in milli-seconds. + * @member {number} timeToLiveMs Time to live in milli-seconds. */ - tTLTimespan: number; + timeToLiveMs: number; /** * @member {number} sequenceNumber Sequence number of report. */ @@ -14756,20 +14812,24 @@ export interface DeployedServiceHealthReportExpiredEvent { /** * @interface - * An interface representing StatefulReplicaHealthReportCreatedEvent. + * An interface representing StatefulReplicaNewHealthReportEvent. * Stateful Replica Health Report Created event. * */ -export interface StatefulReplicaHealthReportCreatedEvent { +export interface StatefulReplicaNewHealthReportEvent { /** * @member {string} kind Polymorphic Discriminator */ - kind: "StatefulReplicaHealthReportCreated"; + kind: "StatefulReplicaNewHealthReport"; /** * @member {string} eventInstanceId The identifier for the FabricEvent * instance. */ eventInstanceId: string; + /** + * @member {string} [category] The category of event. + */ + category?: string; /** * @member {Date} timeStamp The time event was logged. */ @@ -14851,6 +14911,10 @@ export interface StatefulReplicaHealthReportExpiredEvent { * instance. */ eventInstanceId: string; + /** + * @member {string} [category] The category of event. + */ + category?: string; /** * @member {Date} timeStamp The time event was logged. */ @@ -14918,20 +14982,24 @@ export interface StatefulReplicaHealthReportExpiredEvent { /** * @interface - * An interface representing StatelessReplicaHealthReportCreatedEvent. + * An interface representing StatelessReplicaNewHealthReportEvent. * Stateless Replica Health Report Created event. * */ -export interface StatelessReplicaHealthReportCreatedEvent { +export interface StatelessReplicaNewHealthReportEvent { /** * @member {string} kind Polymorphic Discriminator */ - kind: "StatelessReplicaHealthReportCreated"; + kind: "StatelessReplicaNewHealthReport"; /** * @member {string} eventInstanceId The identifier for the FabricEvent * instance. */ eventInstanceId: string; + /** + * @member {string} [category] The category of event. + */ + category?: string; /** * @member {Date} timeStamp The time event was logged. */ @@ -15009,6 +15077,10 @@ export interface StatelessReplicaHealthReportExpiredEvent { * instance. */ eventInstanceId: string; + /** + * @member {string} [category] The category of event. + */ + category?: string; /** * @member {Date} timeStamp The time event was logged. */ @@ -15072,20 +15144,24 @@ export interface StatelessReplicaHealthReportExpiredEvent { /** * @interface - * An interface representing ClusterHealthReportCreatedEvent. + * An interface representing ClusterNewHealthReportEvent. * Cluster Health Report Created event. * */ -export interface ClusterHealthReportCreatedEvent { +export interface ClusterNewHealthReportEvent { /** * @member {string} kind Polymorphic Discriminator */ - kind: "ClusterHealthReportCreated"; + kind: "ClusterNewHealthReport"; /** * @member {string} eventInstanceId The identifier for the FabricEvent * instance. */ eventInstanceId: string; + /** + * @member {string} [category] The category of event. + */ + category?: string; /** * @member {Date} timeStamp The time event was logged. */ @@ -15145,6 +15221,10 @@ export interface ClusterHealthReportExpiredEvent { * instance. */ eventInstanceId: string; + /** + * @member {string} [category] The category of event. + */ + category?: string; /** * @member {Date} timeStamp The time event was logged. */ @@ -15190,20 +15270,24 @@ export interface ClusterHealthReportExpiredEvent { /** * @interface - * An interface representing ClusterUpgradeCompleteEvent. - * Cluster Upgrade Complete event. + * An interface representing ClusterUpgradeCompletedEvent. + * Cluster Upgrade Completed event. * */ -export interface ClusterUpgradeCompleteEvent { +export interface ClusterUpgradeCompletedEvent { /** * @member {string} kind Polymorphic Discriminator */ - kind: "ClusterUpgradeComplete"; + kind: "ClusterUpgradeCompleted"; /** * @member {string} eventInstanceId The identifier for the FabricEvent * instance. */ eventInstanceId: string; + /** + * @member {string} [category] The category of event. + */ + category?: string; /** * @member {Date} timeStamp The time event was logged. */ @@ -15226,20 +15310,24 @@ export interface ClusterUpgradeCompleteEvent { /** * @interface - * An interface representing ClusterUpgradeDomainCompleteEvent. - * Cluster Upgrade Domain Complete event. + * An interface representing ClusterUpgradeDomainCompletedEvent. + * Cluster Upgrade Domain Completed event. * */ -export interface ClusterUpgradeDomainCompleteEvent { +export interface ClusterUpgradeDomainCompletedEvent { /** * @member {string} kind Polymorphic Discriminator */ - kind: "ClusterUpgradeDomainComplete"; + kind: "ClusterUpgradeDomainCompleted"; /** * @member {string} eventInstanceId The identifier for the FabricEvent * instance. */ eventInstanceId: string; + /** + * @member {string} [category] The category of event. + */ + category?: string; /** * @member {Date} timeStamp The time event was logged. */ @@ -15270,20 +15358,24 @@ export interface ClusterUpgradeDomainCompleteEvent { /** * @interface - * An interface representing ClusterUpgradeRollbackCompleteEvent. - * Cluster Upgrade Rollback Complete event. + * An interface representing ClusterUpgradeRollbackCompletedEvent. + * Cluster Upgrade Rollback Completed event. * */ -export interface ClusterUpgradeRollbackCompleteEvent { +export interface ClusterUpgradeRollbackCompletedEvent { /** * @member {string} kind Polymorphic Discriminator */ - kind: "ClusterUpgradeRollbackComplete"; + kind: "ClusterUpgradeRollbackCompleted"; /** * @member {string} eventInstanceId The identifier for the FabricEvent * instance. */ eventInstanceId: string; + /** + * @member {string} [category] The category of event. + */ + category?: string; /** * @member {Date} timeStamp The time event was logged. */ @@ -15310,20 +15402,24 @@ export interface ClusterUpgradeRollbackCompleteEvent { /** * @interface - * An interface representing ClusterUpgradeRollbackStartEvent. - * Cluster Upgrade Rollback Start event. + * An interface representing ClusterUpgradeRollbackStartedEvent. + * Cluster Upgrade Rollback Started event. * */ -export interface ClusterUpgradeRollbackStartEvent { +export interface ClusterUpgradeRollbackStartedEvent { /** * @member {string} kind Polymorphic Discriminator */ - kind: "ClusterUpgradeRollbackStart"; + kind: "ClusterUpgradeRollbackStarted"; /** * @member {string} eventInstanceId The identifier for the FabricEvent * instance. */ eventInstanceId: string; + /** + * @member {string} [category] The category of event. + */ + category?: string; /** * @member {Date} timeStamp The time event was logged. */ @@ -15350,20 +15446,24 @@ export interface ClusterUpgradeRollbackStartEvent { /** * @interface - * An interface representing ClusterUpgradeStartEvent. - * Cluster Upgrade Start event. + * An interface representing ClusterUpgradeStartedEvent. + * Cluster Upgrade Started event. * */ -export interface ClusterUpgradeStartEvent { +export interface ClusterUpgradeStartedEvent { /** * @member {string} kind Polymorphic Discriminator */ - kind: "ClusterUpgradeStart"; + kind: "ClusterUpgradeStarted"; /** * @member {string} eventInstanceId The identifier for the FabricEvent * instance. */ eventInstanceId: string; + /** + * @member {string} [category] The category of event. + */ + category?: string; /** * @member {Date} timeStamp The time event was logged. */ @@ -15411,6 +15511,10 @@ export interface ChaosStoppedEvent { * instance. */ eventInstanceId: string; + /** + * @member {string} [category] The category of event. + */ + category?: string; /** * @member {Date} timeStamp The time event was logged. */ @@ -15442,6 +15546,10 @@ export interface ChaosStartedEvent { * instance. */ eventInstanceId: string; + /** + * @member {string} [category] The category of event. + */ + category?: string; /** * @member {Date} timeStamp The time event was logged. */ @@ -15499,125 +15607,24 @@ export interface ChaosStartedEvent { /** * @interface - * An interface representing ChaosRestartNodeFaultCompletedEvent. - * Chaos Restart Node Fault Completed event. - * - */ -export interface ChaosRestartNodeFaultCompletedEvent { - /** - * @member {string} kind Polymorphic Discriminator - */ - kind: "ChaosRestartNodeFaultCompleted"; - /** - * @member {string} eventInstanceId The identifier for the FabricEvent - * instance. - */ - eventInstanceId: string; - /** - * @member {Date} timeStamp The time event was logged. - */ - timeStamp: Date; - /** - * @member {boolean} [hasCorrelatedEvents] Shows there is existing related - * events available. - */ - hasCorrelatedEvents?: boolean; - /** - * @member {string} nodeName The name of a Service Fabric node. - */ - nodeName: string; - /** - * @member {number} nodeInstanceId Id of Node instance. - */ - nodeInstanceId: number; - /** - * @member {string} faultGroupId Id of fault group. - */ - faultGroupId: string; - /** - * @member {string} faultId Id of fault. - */ - faultId: string; -} - -/** - * @interface - * An interface representing ChaosRestartCodePackageFaultScheduledEvent. + * An interface representing ChaosCodePackageRestartScheduledEvent. * Chaos Restart Code Package Fault Scheduled event. * */ -export interface ChaosRestartCodePackageFaultScheduledEvent { +export interface ChaosCodePackageRestartScheduledEvent { /** * @member {string} kind Polymorphic Discriminator */ - kind: "ChaosRestartCodePackageFaultScheduled"; + kind: "ChaosCodePackageRestartScheduled"; /** * @member {string} eventInstanceId The identifier for the FabricEvent * instance. */ eventInstanceId: string; /** - * @member {Date} timeStamp The time event was logged. - */ - timeStamp: Date; - /** - * @member {boolean} [hasCorrelatedEvents] Shows there is existing related - * events available. - */ - hasCorrelatedEvents?: boolean; - /** - * @member {string} applicationId The identity of the application. This is an - * encoded representation of the application name. This is used in the REST - * APIs to identify the application resource. - * Starting in 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. - */ - applicationId: string; - /** - * @member {string} faultGroupId Id of fault group. - */ - faultGroupId: string; - /** - * @member {string} faultId Id of fault. - */ - faultId: string; - /** - * @member {string} nodeName The name of a Service Fabric node. - */ - nodeName: string; - /** - * @member {string} serviceManifestName Service manifest name. - */ - serviceManifestName: string; - /** - * @member {string} codePackageName Code package name. - */ - codePackageName: string; - /** - * @member {string} servicePackageActivationId Id of Service package - * activation. - */ - servicePackageActivationId: string; -} - -/** - * @interface - * An interface representing ChaosRestartCodePackageFaultCompletedEvent. - * Chaos Restart Code Package Fault Completed event. - * - */ -export interface ChaosRestartCodePackageFaultCompletedEvent { - /** - * @member {string} kind Polymorphic Discriminator - */ - kind: "ChaosRestartCodePackageFaultCompleted"; - /** - * @member {string} eventInstanceId The identifier for the FabricEvent - * instance. + * @member {string} [category] The category of event. */ - eventInstanceId: string; + category?: string; /** * @member {Date} timeStamp The time event was logged. */ @@ -15666,77 +15673,24 @@ export interface ChaosRestartCodePackageFaultCompletedEvent { /** * @interface - * An interface representing ChaosRemoveReplicaFaultScheduledEvent. + * An interface representing ChaosReplicaRemovalScheduledEvent. * Chaos Remove Replica Fault Scheduled event. * */ -export interface ChaosRemoveReplicaFaultScheduledEvent { +export interface ChaosReplicaRemovalScheduledEvent { /** * @member {string} kind Polymorphic Discriminator */ - kind: "ChaosRemoveReplicaFaultScheduled"; + kind: "ChaosReplicaRemovalScheduled"; /** * @member {string} eventInstanceId The identifier for the FabricEvent * instance. */ eventInstanceId: string; /** - * @member {Date} timeStamp The time event was logged. - */ - timeStamp: Date; - /** - * @member {boolean} [hasCorrelatedEvents] Shows there is existing related - * events available. - */ - hasCorrelatedEvents?: boolean; - /** - * @member {string} partitionId An internal ID used by Service Fabric to - * uniquely identify a partition. This is a randomly generated GUID when the - * service was created. The partition ID is unique and does not change for - * the lifetime of the service. If the same service was deleted and recreated - * the IDs of its partitions would be different. - */ - partitionId: string; - /** - * @member {number} replicaId Id of a stateful service replica. ReplicaId is - * used by Service Fabric to uniquely identify a replica of a partition. It - * is unique within a partition and does not change for the lifetime of the - * replica. If a replica gets dropped and another replica gets created on the - * same node for the same partition, it will get a different value for the - * id. Sometimes the id of a stateless service instance is also referred as a - * replica id. - */ - replicaId: number; - /** - * @member {string} faultGroupId Id of fault group. - */ - faultGroupId: string; - /** - * @member {string} faultId Id of fault. - */ - faultId: string; - /** - * @member {string} serviceUri Service name. - */ - serviceUri: string; -} - -/** - * @interface - * An interface representing ChaosRemoveReplicaFaultCompletedEvent. - * Chaos Remove Replica Fault Completed event. - * - */ -export interface ChaosRemoveReplicaFaultCompletedEvent { - /** - * @member {string} kind Polymorphic Discriminator - */ - kind: "ChaosRemoveReplicaFaultCompleted"; - /** - * @member {string} eventInstanceId The identifier for the FabricEvent - * instance. + * @member {string} [category] The category of event. */ - eventInstanceId: string; + category?: string; /** * @member {Date} timeStamp The time event was logged. */ @@ -15780,20 +15734,24 @@ export interface ChaosRemoveReplicaFaultCompletedEvent { /** * @interface - * An interface representing ChaosMoveSecondaryFaultScheduledEvent. + * An interface representing ChaosPartitionSecondaryMoveScheduledEvent. * Chaos Move Secondary Fault Scheduled event. * */ -export interface ChaosMoveSecondaryFaultScheduledEvent { +export interface ChaosPartitionSecondaryMoveScheduledEvent { /** * @member {string} kind Polymorphic Discriminator */ - kind: "ChaosMoveSecondaryFaultScheduled"; + kind: "ChaosPartitionSecondaryMoveScheduled"; /** * @member {string} eventInstanceId The identifier for the FabricEvent * instance. */ eventInstanceId: string; + /** + * @member {string} [category] The category of event. + */ + category?: string; /** * @member {Date} timeStamp The time event was logged. */ @@ -15839,20 +15797,24 @@ export interface ChaosMoveSecondaryFaultScheduledEvent { /** * @interface - * An interface representing ChaosMovePrimaryFaultScheduledEvent. + * An interface representing ChaosPartitionPrimaryMoveScheduledEvent. * Chaos Move Primary Fault Scheduled event. * */ -export interface ChaosMovePrimaryFaultScheduledEvent { +export interface ChaosPartitionPrimaryMoveScheduledEvent { /** * @member {string} kind Polymorphic Discriminator */ - kind: "ChaosMovePrimaryFaultScheduled"; + kind: "ChaosPartitionPrimaryMoveScheduled"; /** * @member {string} eventInstanceId The identifier for the FabricEvent * instance. */ eventInstanceId: string; + /** + * @member {string} [category] The category of event. + */ + category?: string; /** * @member {Date} timeStamp The time event was logged. */ @@ -15894,20 +15856,24 @@ export interface ChaosMovePrimaryFaultScheduledEvent { /** * @interface - * An interface representing ChaosRestartReplicaFaultScheduledEvent. + * An interface representing ChaosReplicaRestartScheduledEvent. * Chaos Restart Replica Fault Scheduled event. * */ -export interface ChaosRestartReplicaFaultScheduledEvent { +export interface ChaosReplicaRestartScheduledEvent { /** * @member {string} kind Polymorphic Discriminator */ - kind: "ChaosRestartReplicaFaultScheduled"; + kind: "ChaosReplicaRestartScheduled"; /** * @member {string} eventInstanceId The identifier for the FabricEvent * instance. */ eventInstanceId: string; + /** + * @member {string} [category] The category of event. + */ + category?: string; /** * @member {Date} timeStamp The time event was logged. */ @@ -15951,20 +15917,24 @@ export interface ChaosRestartReplicaFaultScheduledEvent { /** * @interface - * An interface representing ChaosRestartNodeFaultScheduledEvent. + * An interface representing ChaosNodeRestartScheduledEvent. * Chaos Restart Node Fault Scheduled event. * */ -export interface ChaosRestartNodeFaultScheduledEvent { +export interface ChaosNodeRestartScheduledEvent { /** * @member {string} kind Polymorphic Discriminator */ - kind: "ChaosRestartNodeFaultScheduled"; + kind: "ChaosNodeRestartScheduled"; /** * @member {string} eventInstanceId The identifier for the FabricEvent * instance. */ eventInstanceId: string; + /** + * @member {string} [category] The category of event. + */ + category?: string; /** * @member {Date} timeStamp The time event was logged. */ @@ -15992,192 +15962,134 @@ export interface ChaosRestartNodeFaultScheduledEvent { faultId: string; } +/** + * Contains the possible cases for SecretResourcePropertiesBase. + */ +export type SecretResourcePropertiesBaseUnion = SecretResourcePropertiesBase | SecretResourcePropertiesUnion; + /** * @interface - * An interface representing ServiceResourceDescription. - * Describes a service fabric service resource. + * An interface representing SecretResourcePropertiesBase. + * This type describes the properties of a secret resource, including its kind. * */ -export interface ServiceResourceDescription { - /** - * @member {OperatingSystemTypes} osType The Operating system type required - * by the code in service. Possible values include: 'Linux', 'Windows' - */ - osType: OperatingSystemTypes; - /** - * @member {ContainerCodePackageProperties[]} codePackages Describes the set - * of code packages that forms the service. A code package describes the - * container and the properties for running it. All the code packages are - * started together on the same host and share the same context (network, - * process etc.). - */ - codePackages: ContainerCodePackageProperties[]; +export interface SecretResourcePropertiesBase { /** - * @member {NetworkRef[]} [networkRefs] The names of the private networks - * that this service needs to be part of. + * @member {string} kind Polymorphic Discriminator */ - networkRefs?: NetworkRef[]; + kind: "SecretResourcePropertiesBase"; +} + +/** + * Contains the possible cases for SecretResourceProperties. + */ +export type SecretResourcePropertiesUnion = SecretResourceProperties | InlinedValueSecretResourceProperties; + +/** + * @interface + * An interface representing SecretResourceProperties. + * Describes the properties of a secret resource. + * + */ +export interface SecretResourceProperties { /** - * @member {DiagnosticsRef} [diagnostics] Reference to sinks in - * DiagnosticsDescription. + * @member {string} kind Polymorphic Discriminator */ - diagnostics?: DiagnosticsRef; + kind: "SecretResourceProperties"; /** - * @member {string} [description] User readable description of the service. + * @member {string} [description] User readable description of the secret. */ description?: string; /** - * @member {number} [replicaCount] The number of replicas of the service to - * create. Defaults to 1 if not specified. - */ - replicaCount?: number; - /** - * @member {HealthState} [healthState] 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' + * @member {ResourceStatus} [status] Status of the resource. Possible values + * include: 'Unknown', 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - healthState?: HealthState; + readonly status?: ResourceStatus; /** - * @member {ServiceResourceStatus} [status] Represents the status of the - * service. Possible values include: 'Unknown', 'Active', 'Upgrading', - * 'Deleting', 'Creating', 'Failed' + * @member {string} [statusDetails] Gives additional information about the + * current status of the secret. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly status?: ServiceResourceStatus; + readonly statusDetails?: string; /** - * @member {string} name Service resource name. + * @member {string} [contentType] The type of the content stored in the + * secret value. The value of this property is opaque to Service Fabric. Once + * set, the value of this property cannot be changed. */ - name: string; + contentType?: string; } /** * @interface - * An interface representing DiagnosticsSinkProperties. - * Properties of a DiagnosticsSink. + * An interface representing InlinedValueSecretResourceProperties. + * Describes the properties of a secret resource whose value is provided + * explicitly as plaintext. The secret resource may have multiple values, each + * being uniquely versioned. The secret value of each version is stored + * encrypted, and delivered as plaintext into the context of applications + * referencing it. * */ -export interface DiagnosticsSinkProperties { +export interface InlinedValueSecretResourceProperties { /** * @member {string} kind Polymorphic Discriminator */ - kind: "DiagnosticsSinkProperties"; + kind: "inlinedValue"; /** - * @member {string} [name] Name of the sink. This value is referenced by - * DiagnosticsReferenceDescription + * @member {string} [description] User readable description of the secret. */ - name?: string; + description?: string; /** - * @member {string} [description] A description of the sink. + * @member {ResourceStatus} [status] Status of the resource. Possible values + * include: 'Unknown', 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - description?: string; + readonly status?: ResourceStatus; + /** + * @member {string} [statusDetails] Gives additional information about the + * current status of the secret. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly statusDetails?: string; + /** + * @member {string} [contentType] The type of the content stored in the + * secret value. The value of this property is opaque to Service Fabric. Once + * set, the value of this property cannot be changed. + */ + contentType?: string; } /** * @interface - * An interface representing DiagnosticsDescription. - * Describes the diagnostics options available + * An interface representing SecretResourceDescription. + * This type describes a secret resource. * */ -export interface DiagnosticsDescription { +export interface SecretResourceDescription { /** - * @member {DiagnosticsSinkProperties[]} [sinks] List of supported sinks that - * can be referenced. + * @member {SecretResourcePropertiesUnion} properties Describes the + * properties of a secret resource. */ - sinks?: DiagnosticsSinkProperties[]; + properties: SecretResourcePropertiesUnion; /** - * @member {boolean} [enabled] Status of whether or not sinks are enabled. - */ - enabled?: boolean; - /** - * @member {string[]} [defaultSinkRefs] The sinks to be used if diagnostics - * is enabled. Sink choices can be overridden at the service and code package - * level. - */ - defaultSinkRefs?: string[]; -} - -/** - * @interface - * An interface representing ApplicationResourceDescription. - * Describes a service fabric application resource. - * - */ -export interface ApplicationResourceDescription { - /** - * @member {string} [description] User readable description of the - * application. - */ - description?: string; - /** - * @member {string} [debugParams] Internal use. - */ - debugParams?: string; - /** - * @member {ServiceResourceDescription[]} [services] describes the services - * in the application. - */ - services?: ServiceResourceDescription[]; - /** - * @member {HealthState} [healthState] Describes the health state of an - * application resource. Possible values include: 'Invalid', 'Ok', 'Warning', - * 'Error', 'Unknown' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly healthState?: HealthState; - /** - * @member {string} [unhealthyEvaluation] When the application's health state - * is not 'Ok', this additional details from service fabric Health Manager - * for the user to know why the application is marked unhealthy. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly unhealthyEvaluation?: string; - /** - * @member {ApplicationResourceStatus} [status] Status of the application - * resource. Possible values include: 'Invalid', 'Ready', 'Upgrading', - * 'Creating', 'Deleting', 'Failed' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly status?: ApplicationResourceStatus; - /** - * @member {string} [statusDetails] Gives additional information about the - * current status of the application deployment. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly statusDetails?: string; - /** - * @member {string[]} [serviceNames] Names of the services in the - * application. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly serviceNames?: string[]; - /** - * @member {DiagnosticsDescription} [diagnostics] Describes the diagnostics - * definition and usage for an application resource. - */ - diagnostics?: DiagnosticsDescription; - /** - * @member {string} name Application resource name. + * @member {string} name Name of the Secret resource. */ name: string; } /** * @interface - * An interface representing PagedServiceResourceDescriptionList. - * The list of service resources in the cluster. 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. + * An interface representing PagedSecretResourceDescriptionList. + * The list of secret resources. 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 PagedServiceResourceDescriptionList { +export interface PagedSecretResourceDescriptionList { /** * @member {string} [continuationToken] The continuation token parameter is * used to obtain next set of results. The continuation token is included in @@ -16188,68 +16100,65 @@ export interface PagedServiceResourceDescriptionList { */ continuationToken?: string; /** - * @member {ServiceResourceDescription[]} [items] List of service resource - * description. + * @member {SecretResourceDescription[]} [items] One page of the list. */ - items?: ServiceResourceDescription[]; + items?: SecretResourceDescription[]; } /** * @interface - * An interface representing ServiceReplicaProperties. - * Describes the properties of a service replica. + * An interface representing SecretValue. + * This type represents the unencrypted value of the secret. * */ -export interface ServiceReplicaProperties { - /** - * @member {OperatingSystemTypes} osType The Operating system type required - * by the code in service. Possible values include: 'Linux', 'Windows' - */ - osType: OperatingSystemTypes; - /** - * @member {ContainerCodePackageProperties[]} codePackages Describes the set - * of code packages that forms the service. A code package describes the - * container and the properties for running it. All the code packages are - * started together on the same host and share the same context (network, - * process etc.). - */ - codePackages: ContainerCodePackageProperties[]; +export interface SecretValue { /** - * @member {NetworkRef[]} [networkRefs] The names of the private networks - * that this service needs to be part of. + * @member {string} [value] The actual value of the secret. */ - networkRefs?: NetworkRef[]; + value?: string; +} + +/** + * @interface + * An interface representing SecretValueProperties. + * This type describes properties of secret value resource. + * + */ +export interface SecretValueProperties { /** - * @member {DiagnosticsRef} [diagnostics] Reference to sinks in - * DiagnosticsDescription. + * @member {string} [value] The actual value of the secret. */ - diagnostics?: DiagnosticsRef; + value?: string; } /** * @interface - * An interface representing ServiceResourceReplicaDescription. - * Describes a replica of a service resource. + * An interface representing SecretValueResourceDescription. + * This type describes a value of a secret resource. The name of this resource + * is the version identifier corresponding to this secret value. * - * @extends ServiceReplicaProperties */ -export interface ServiceResourceReplicaDescription extends ServiceReplicaProperties { +export interface SecretValueResourceDescription { /** - * @member {string} replicaName Name of the replica. + * @member {string} name Version identifier of the secret value. */ - replicaName: string; + name: string; + /** + * @member {string} [value] The actual value of the secret. + */ + value?: string; } /** * @interface - * An interface representing PagedServiceResourceReplicaDescriptionList. - * The list of service resources in the cluster. The list is paged when all of - * the results cannot fit in a single message. The next set of results can be + * An interface representing PagedSecretValueResourceDescriptionList. + * The list of values of a secret resource, paged if the number of results + * exceeds the limits of a single message. The next set of results can be * obtained by executing the same query with the continuation token provided in - * this list. + * the previous page. * */ -export interface PagedServiceResourceReplicaDescriptionList { +export interface PagedSecretValueResourceDescriptionList { /** * @member {string} [continuationToken] The continuation token parameter is * used to obtain next set of results. The continuation token is included in @@ -16260,10 +16169,9 @@ export interface PagedServiceResourceReplicaDescriptionList { */ continuationToken?: string; /** - * @member {ServiceResourceReplicaDescription[]} [items] List of service - * resource description. + * @member {SecretValueResourceDescription[]} [items] One page of the list. */ - items?: ServiceResourceReplicaDescription[]; + items?: SecretValueResourceDescription[]; } /** @@ -16292,440 +16200,1557 @@ export interface VolumeProviderParametersAzureFile { /** * @interface - * An interface representing VolumeResourceDescription. - * Describes a service fabric volume resource. + * An interface representing VolumeReference. + * Describes a reference to a volume resource. * */ -export interface VolumeResourceDescription { +export interface VolumeReference { /** - * @member {string} [description] User readable description of the volume. + * @member {string} name Name of the volume being referenced. */ - description?: string; + name: string; /** - * @member {VolumeProviderParametersAzureFile} [azureFileParameters] This - * type describes a volume provided by an Azure Files file share. + * @member {boolean} [readOnly] The flag indicating whether the volume is + * read only. Default is 'false'. */ - azureFileParameters?: VolumeProviderParametersAzureFile; + readOnly?: boolean; /** - * @member {string} name Volume resource name. + * @member {string} destinationPath The path within the container at which + * the volume should be mounted. Only valid path characters are allowed. */ - name: string; + destinationPath: string; } +/** + * Contains the possible cases for ApplicationScopedVolumeCreationParameters. + */ +export type ApplicationScopedVolumeCreationParametersUnion = ApplicationScopedVolumeCreationParameters | ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk; + /** * @interface - * An interface representing ImageRegistryCredential. - * Image registry credential. + * An interface representing ApplicationScopedVolumeCreationParameters. + * Describes parameters for creating application-scoped volumes. * */ -export interface ImageRegistryCredential { - /** - * @member {string} server Docker image registry server, without protocol - * such as `http` and `https`. - */ - server: string; +export interface ApplicationScopedVolumeCreationParameters { /** - * @member {string} username The username for the private registry. + * @member {string} kind Polymorphic Discriminator */ - username: string; + kind: "ApplicationScopedVolumeCreationParameters"; /** - * @member {string} [password] The password for the private registry. + * @member {string} [description] User readable description of the volume. */ - password?: string; + description?: string; } /** * @interface - * An interface representing EnvironmentVariable. - * Describes an environment variable for the container. + * An interface representing ApplicationScopedVolume. + * Describes a volume whose lifetime is scoped to the application's lifetime. * + * @extends VolumeReference */ -export interface EnvironmentVariable { - /** - * @member {string} [name] The name of the environment variable. - */ - name?: string; +export interface ApplicationScopedVolume extends VolumeReference { /** - * @member {string} [value] The value of the environment variable. + * @member {ApplicationScopedVolumeCreationParametersUnion} + * creationParameters Describes parameters for creating application-scoped + * volumes. */ - value?: string; + creationParameters: ApplicationScopedVolumeCreationParametersUnion; } /** * @interface - * An interface representing Setting. - * Describes a setting for the container. + * An interface representing ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk. + * Describes parameters for creating application-scoped volumes provided by + * Service Fabric Volume Disks * */ -export interface Setting { +export interface ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk { /** - * @member {string} [name] The name of the setting. + * @member {string} kind Polymorphic Discriminator */ - name?: string; + kind: "ServiceFabricVolumeDisk"; /** - * @member {string} [value] The value of the setting. + * @member {string} [description] User readable description of the volume. */ - value?: string; + description?: string; + /** + * @member {SizeTypes} sizeDisk Volume size. Possible values include: + * 'Small', 'Medium', 'Large' + */ + sizeDisk: SizeTypes; } /** * @interface - * An interface representing ContainerLabel. - * Describes a container label. + * An interface representing VolumeResourceDescription. + * This type describes a volume resource. * */ -export interface ContainerLabel { +export interface VolumeResourceDescription { /** - * @member {string} name The name of the container label. + * @member {string} name Name of the Volume resource. */ name: string; /** - * @member {string} value The value of the container label. + * @member {string} [description] User readable description of the volume. */ - value: string; + description?: string; + /** + * @member {ResourceStatus} [status] Status of the volume. Possible values + * include: 'Unknown', 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly status?: ResourceStatus; + /** + * @member {string} [statusDetails] Gives additional information about the + * current status of the volume. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly statusDetails?: string; + /** + * @member {VolumeProviderParametersAzureFile} [azureFileParameters] This + * type describes a volume provided by an Azure Files file share. + */ + azureFileParameters?: VolumeProviderParametersAzureFile; } /** * @interface - * An interface representing EndpointProperties. - * Describes a container endpoint. + * An interface representing PagedVolumeResourceDescriptionList. + * The list of volume resources. 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 EndpointProperties { +export interface PagedVolumeResourceDescriptionList { /** - * @member {string} name The name of the endpoint. + * @member {string} [continuationToken] 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. */ - name: string; + continuationToken?: string; /** - * @member {number} [port] Port used by the container. + * @member {VolumeResourceDescription[]} [items] One page of the list. */ - port?: number; + items?: VolumeResourceDescription[]; } +/** + * Contains the possible cases for NetworkResourcePropertiesBase. + */ +export type NetworkResourcePropertiesBaseUnion = NetworkResourcePropertiesBase | NetworkResourcePropertiesUnion; + /** * @interface - * An interface representing ResourceRequests. - * This type describes the requested resources for a given container. It - * describes the least amount of resources required for the container. A - * container can consume more than requested resources up to the specified - * limits before being restarted. Currently, the requested resources are - * treated as limits. + * An interface representing NetworkResourcePropertiesBase. + * This type describes the properties of a network resource, including its + * kind. * */ -export interface ResourceRequests { - /** - * @member {number} memoryInGB The memory request in GB for this container. - */ - memoryInGB: number; +export interface NetworkResourcePropertiesBase { /** - * @member {number} cpu Requested number of CPU cores. At present, only full - * cores are supported. + * @member {string} kind Polymorphic Discriminator */ - cpu: number; + kind: "NetworkResourcePropertiesBase"; } +/** + * Contains the possible cases for NetworkResourceProperties. + */ +export type NetworkResourcePropertiesUnion = NetworkResourceProperties | LocalNetworkResourceProperties; + /** * @interface - * An interface representing ResourceLimits. - * This type describes the resource limits for a given container. It describes - * the most amount of resources a container is allowed to use before being - * restarted. + * An interface representing NetworkResourceProperties. + * Describes properties of a network resource. * */ -export interface ResourceLimits { +export interface NetworkResourceProperties { /** - * @member {number} [memoryInGB] The memory limit in GB. + * @member {string} kind Polymorphic Discriminator */ - memoryInGB?: number; + kind: "NetworkResourceProperties"; /** - * @member {number} [cpu] CPU limits in cores. At present, only full cores - * are supported. + * @member {string} [description] User readable description of the network. */ - cpu?: number; + description?: string; + /** + * @member {ResourceStatus} [status] Status of the network. Possible values + * include: 'Unknown', 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly status?: ResourceStatus; + /** + * @member {string} [statusDetails] Gives additional information about the + * current status of the network. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly statusDetails?: string; } /** * @interface - * An interface representing ResourceRequirements. - * This type describes the resource requirements for a container or a service. + * An interface representing LocalNetworkResourceProperties. + * Information about a Service Fabric container network local to a single + * Service Fabric cluster. * */ -export interface ResourceRequirements { +export interface LocalNetworkResourceProperties { /** - * @member {ResourceRequests} requests Describes the requested resources for - * a given container. + * @member {string} kind Polymorphic Discriminator */ - requests: ResourceRequests; + kind: "Local"; /** - * @member {ResourceLimits} [limits] Describes the maximum limits on the - * resources for a given container. + * @member {string} [description] User readable description of the network. */ - limits?: ResourceLimits; + description?: string; + /** + * @member {ResourceStatus} [status] Status of the network. Possible values + * include: 'Unknown', 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly status?: ResourceStatus; + /** + * @member {string} [statusDetails] Gives additional information about the + * current status of the network. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly statusDetails?: string; + /** + * @member {string} [networkAddressPrefix] Address space for the local + * container network. + */ + networkAddressPrefix?: string; } /** * @interface - * An interface representing ContainerVolume. - * Describes how a volume is attached to a container. + * An interface representing EndpointRef. + * Describes a reference to a service endpoint. * */ -export interface ContainerVolume { +export interface EndpointRef { /** - * @member {string} name Name of the volume. + * @member {string} [name] Name of the endpoint. */ - name: string; + name?: string; +} + +/** + * @interface + * An interface representing NetworkRef. + * Describes a network reference in a service. + * + */ +export interface NetworkRef { /** - * @member {boolean} [readOnly] The flag indicating whether the volume is - * read only. Default is 'false'. + * @member {string} [name] Name of the network */ - readOnly?: boolean; + name?: string; /** - * @member {string} destinationPath The path within the container at which - * the volume should be mounted. Only valid path characters are allowed. + * @member {EndpointRef[]} [endpointRefs] A list of endpoints that are + * exposed on this network. */ - destinationPath: string; + endpointRefs?: EndpointRef[]; } /** * @interface - * An interface representing ContainerState. - * The container state. + * An interface representing NetworkResourceDescription. + * This type describes a network resource. * */ -export interface ContainerState { - /** - * @member {string} [state] The state of this container - */ - state?: string; +export interface NetworkResourceDescription { /** - * @member {Date} [startTime] Date/time when the container state started. + * @member {string} name Name of the Network resource. */ - startTime?: Date; + name: string; /** - * @member {string} [exitCode] The container exit code. + * @member {NetworkResourcePropertiesUnion} properties Describes properties + * of a network resource. */ - exitCode?: string; + properties: NetworkResourcePropertiesUnion; +} + +/** + * @interface + * An interface representing PagedNetworkResourceDescriptionList. + * The list of network resources. 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 PagedNetworkResourceDescriptionList { /** - * @member {Date} [finishTime] Date/time when the container state finished. + * @member {string} [continuationToken] 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. */ - finishTime?: Date; + continuationToken?: string; /** - * @member {string} [detailStatus] Human-readable status of this state. + * @member {NetworkResourceDescription[]} [items] One page of the list. */ - detailStatus?: string; + items?: NetworkResourceDescription[]; } /** * @interface - * An interface representing ContainerEvent. - * A container event. + * An interface representing GatewayDestination. + * Describes destination endpoint for routing traffic. * */ -export interface ContainerEvent { +export interface GatewayDestination { /** - * @member {string} [name] The name of the container event. + * @member {string} applicationName Name of the service fabric Mesh + * application. */ - name?: string; + applicationName: string; /** - * @member {number} [count] The count of the event. + * @member {string} serviceName service that contains the endpoint. */ - count?: number; + serviceName: string; /** - * @member {string} [firstTimestamp] Date/time of the first event. + * @member {string} endpointName name of the endpoint in the service. */ - firstTimestamp?: string; + endpointName: string; +} + +/** + * @interface + * An interface representing TcpConfig. + * Describes the tcp configuration for external connectivity for this network. + * + */ +export interface TcpConfig { /** - * @member {string} [lastTimestamp] Date/time of the last event. + * @member {string} name tcp gateway config name. */ - lastTimestamp?: string; + name: string; /** - * @member {string} [message] The event message + * @member {number} port Specifies the port at which the service endpoint + * below needs to be exposed. */ - message?: string; + port: number; /** - * @member {string} [type] The event type. + * @member {GatewayDestination} destination Describes destination endpoint + * for routing traffic. */ - type?: string; + destination: GatewayDestination; } /** * @interface - * An interface representing ContainerInstanceView. - * Runtime information of a container instance. + * An interface representing HttpRouteMatchPath. + * Path to match for routing. * */ -export interface ContainerInstanceView { +export interface HttpRouteMatchPath { /** - * @member {number} [restartCount] The number of times the container has been - * restarted. + * @member {string} value Uri path to match for request. */ - restartCount?: number; + value: string; /** - * @member {ContainerState} [currentState] Current container instance state. + * @member {string} [rewrite] replacement string for matched part of the Uri. */ - currentState?: ContainerState; + rewrite?: string; +} + +/** + * @interface + * An interface representing HttpRouteMatchHeader. + * Describes header information for http route matching. + * + */ +export interface HttpRouteMatchHeader { /** - * @member {ContainerState} [previousState] Previous container instance - * state. + * @member {string} name Name of header to match in request. */ - previousState?: ContainerState; + name: string; /** - * @member {ContainerEvent[]} [events] The events of this container instance. + * @member {string} [value] Value of header to match in request. */ - events?: ContainerEvent[]; + value?: string; + /** + * @member {HeaderMatchType} [type] how to match header value. Possible + * values include: 'exact' + */ + type?: HeaderMatchType; } /** * @interface - * An interface representing DiagnosticsRef. - * Reference to sinks in DiagnosticsDescription. + * An interface representing HttpRouteMatchRule. + * Describes a rule for http route matching. * */ -export interface DiagnosticsRef { +export interface HttpRouteMatchRule { /** - * @member {boolean} [enabled] Status of whether or not sinks are enabled. + * @member {HttpRouteMatchPath} path Path to match for routing. */ - enabled?: boolean; + path: HttpRouteMatchPath; /** - * @member {string[]} [sinkRefs] List of sinks to be used if enabled. - * References the list of sinks in DiagnosticsDescription. + * @member {HttpRouteMatchHeader[]} [headers] headers and their values to + * match in request. */ - sinkRefs?: string[]; + headers?: HttpRouteMatchHeader[]; } /** * @interface - * An interface representing ContainerCodePackageProperties. - * Describes a container and its runtime properties. + * An interface representing HttpRouteConfig. + * Describes the hostname properties for http routing. * */ -export interface ContainerCodePackageProperties { +export interface HttpRouteConfig { /** - * @member {string} name The name of the code package. + * @member {string} name http route name. */ name: string; /** - * @member {string} image The Container image to use. + * @member {HttpRouteMatchRule} match Describes a rule for http route + * matching. */ - image: string; + match: HttpRouteMatchRule; /** - * @member {ImageRegistryCredential} [imageRegistryCredential] Image registry - * credential. + * @member {GatewayDestination} destination Describes destination endpoint + * for routing traffic. */ - imageRegistryCredential?: ImageRegistryCredential; + destination: GatewayDestination; +} + +/** + * @interface + * An interface representing HttpHostConfig. + * Describes the hostname properties for http routing. + * + */ +export interface HttpHostConfig { /** - * @member {string} [entrypoint] Override for the default entry point in the - * container. + * @member {string} name http hostname config name. */ - entrypoint?: string; + name: string; /** - * @member {string[]} [commands] Command array to execute within the - * container in exec form. + * @member {HttpRouteConfig[]} routes Route information to use for routing. + * Routes are processed in the order they are specified. Specify routes that + * are more specific before routes that can hamdle general cases. */ - commands?: string[]; + routes: HttpRouteConfig[]; +} + +/** + * @interface + * An interface representing HttpConfig. + * Describes the http configuration for external connectivity for this network. + * + */ +export interface HttpConfig { /** - * @member {EnvironmentVariable[]} [environmentVariables] The environment - * variables to set in this container + * @member {string} name http gateway config name. */ - environmentVariables?: EnvironmentVariable[]; + name: string; /** - * @member {Setting[]} [settings] The settings to set in this container. The - * setting file path can be fetched from environment variable - * "Fabric_SettingPath". The path for Windows container is "C:\\secrets". The - * path for Linux container is "/var/secrets". + * @member {number} port Specifies the port at which the service endpoint + * below needs to be exposed. */ - settings?: Setting[]; + port: number; /** - * @member {ContainerLabel[]} [labels] The labels to set in this container. + * @member {HttpHostConfig[]} hosts description for routing. */ - labels?: ContainerLabel[]; + hosts: HttpHostConfig[]; +} + +/** + * @interface + * An interface representing GatewayResourceDescription. + * This type describes a gateway resource. + * + */ +export interface GatewayResourceDescription { /** - * @member {EndpointProperties[]} [endpoints] The endpoints exposed by this - * container. + * @member {string} name Name of the Gateway resource. */ - endpoints?: EndpointProperties[]; + name: string; /** - * @member {ResourceRequirements} resources This type describes the resource - * requirements for a container or a service. + * @member {string} [description] User readable description of the gateway. */ - resources: ResourceRequirements; + description?: string; /** - * @member {ContainerVolume[]} [volumeRefs] The volumes to be attached to the - * container. + * @member {NetworkRef} sourceNetwork Network the gateway should listen on + * for requests. */ - volumeRefs?: ContainerVolume[]; + sourceNetwork: NetworkRef; /** - * @member {ContainerInstanceView} [instanceView] Runtime information of a - * container instance. + * @member {NetworkRef} destinationNetwork Network that the Application is + * using. + */ + destinationNetwork: NetworkRef; + /** + * @member {TcpConfig[]} [tcp] Configuration for tcp connectivity for this + * gateway. + */ + tcp?: TcpConfig[]; + /** + * @member {HttpConfig[]} [http] Configuration for http connectivity for this + * gateway. + */ + http?: HttpConfig[]; + /** + * @member {ResourceStatus} [status] Status of the resource. Possible values + * include: 'Unknown', 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed' * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly instanceView?: ContainerInstanceView; + readonly status?: ResourceStatus; /** - * @member {DiagnosticsRef} [diagnostics] Reference to sinks in - * DiagnosticsDescription. + * @member {string} [statusDetails] Gives additional information about the + * current status of the gateway. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - diagnostics?: DiagnosticsRef; + readonly statusDetails?: string; + /** + * @member {string} [ipAddress] IP address of the gateway. This is populated + * in the response and is ignored for incoming requests. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly ipAddress?: string; } /** * @interface - * An interface representing NetworkRef. - * Describes a network reference in a service. + * An interface representing PagedGatewayResourceDescriptionList. + * The list of gateway resources. 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 NetworkRef { +export interface PagedGatewayResourceDescriptionList { + /** + * @member {string} [continuationToken] 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; /** - * @member {string} [name] Name of the network. + * @member {GatewayResourceDescription[]} [items] One page of the list. */ - name?: string; + items?: GatewayResourceDescription[]; } /** * @interface - * An interface representing ServiceFabricClientOptions. - * @extends ServiceClientOptions + * An interface representing ImageRegistryCredential. + * Image registry credential. + * */ -export interface ServiceFabricClientOptions extends ServiceClientOptions { +export interface ImageRegistryCredential { /** - * @member {string} [baseUri] + * @member {string} server Docker image registry server, without protocol + * such as `http` and `https`. */ - baseUri?: string; + server: string; + /** + * @member {string} username The username for the private registry. + */ + username: string; + /** + * @member {string} [password] The password for the private registry. The + * password is required for create or update operations, however it is not + * returned in the get or list operations. + */ + password?: string; } /** * @interface - * An interface representing ServiceFabricClientGetClusterManifestOptionalParams. - * Optional Parameters. + * An interface representing EnvironmentVariable. + * Describes an environment variable for the container. * - * @extends RequestOptionsBase */ -export interface ServiceFabricClientGetClusterManifestOptionalParams extends msRest.RequestOptionsBase { +export interface EnvironmentVariable { /** - * @member {number} [timeoutParameter] 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 . + * @member {string} [name] The name of the environment variable. */ - timeoutParameter?: number; + name?: string; + /** + * @member {string} [value] The value of the environment variable. + */ + value?: string; } /** * @interface - * An interface representing ServiceFabricClientGetClusterHealthOptionalParams. - * Optional Parameters. + * An interface representing Setting. + * Describes a setting for the container. The setting file path can be fetched + * from environment variable "Fabric_SettingPath". The path for Windows + * container is "C:\\secrets". The path for Linux container is "/var/secrets". * - * @extends RequestOptionsBase */ -export interface ServiceFabricClientGetClusterHealthOptionalParams extends msRest.RequestOptionsBase { +export interface Setting { /** - * @member {number} [nodesHealthStateFilter] Allows filtering of the node - * health state objects returned in the result of cluster health query - * based on their health state. The possible values for this parameter - * include integer value of one of the - * following health states. Only nodes that match the filter are returned. - * All nodes are used to evaluate the aggregated health state. - * If not specified, all entries are returned. + * @member {string} [name] The name of the setting. + */ + name?: string; + /** + * @member {string} [value] The value of the setting. + */ + value?: string; +} + +/** + * @interface + * An interface representing ContainerLabel. + * Describes a container label. + * + */ +export interface ContainerLabel { + /** + * @member {string} name The name of the container label. + */ + name: string; + /** + * @member {string} value The value of the container label. + */ + value: string; +} + +/** + * @interface + * An interface representing EndpointProperties. + * Describes a container endpoint. + * + */ +export interface EndpointProperties { + /** + * @member {string} name The name of the endpoint. + */ + name: string; + /** + * @member {number} [port] Port used by the container. + */ + port?: number; +} + +/** + * @interface + * An interface representing ResourceRequests. + * This type describes the requested resources for a given container. It + * describes the least amount of resources required for the container. A + * container can consume more than requested resources up to the specified + * limits before being restarted. Currently, the requested resources are + * treated as limits. + * + */ +export interface ResourceRequests { + /** + * @member {number} memoryInGB The memory request in GB for this container. + */ + memoryInGB: number; + /** + * @member {number} cpu Requested number of CPU cores. At present, only full + * cores are supported. + */ + cpu: number; +} + +/** + * @interface + * An interface representing ResourceLimits. + * This type describes the resource limits for a given container. It describes + * the most amount of resources a container is allowed to use before being + * restarted. + * + */ +export interface ResourceLimits { + /** + * @member {number} [memoryInGB] The memory limit in GB. + */ + memoryInGB?: number; + /** + * @member {number} [cpu] CPU limits in cores. At present, only full cores + * are supported. + */ + cpu?: number; +} + +/** + * @interface + * An interface representing ResourceRequirements. + * This type describes the resource requirements for a container or a service. + * + */ +export interface ResourceRequirements { + /** + * @member {ResourceRequests} requests Describes the requested resources for + * a given container. + */ + requests: ResourceRequests; + /** + * @member {ResourceLimits} [limits] Describes the maximum limits on the + * resources for a given container. + */ + limits?: ResourceLimits; +} + +/** + * @interface + * An interface representing DiagnosticsRef. + * Reference to sinks in DiagnosticsDescription. + * + */ +export interface DiagnosticsRef { + /** + * @member {boolean} [enabled] Status of whether or not sinks are enabled. + */ + enabled?: boolean; + /** + * @member {string[]} [sinkRefs] List of sinks to be used if enabled. + * References the list of sinks in DiagnosticsDescription. + */ + sinkRefs?: string[]; +} + +/** + * @interface + * An interface representing ReliableCollectionsRef. + * Specifying this parameter adds support for reliable collections + * + */ +export interface ReliableCollectionsRef { + /** + * @member {string} name Name of ReliableCollection resource. Right now it's + * not used and you can use any string. + */ + name: string; + /** + * @member {boolean} [doNotPersistState] False (the default) if + * ReliableCollections state is persisted to disk as usual. True if you do + * not want to persist state, in which case replication is still enabled and + * you can use ReliableCollections as distributed cache. + */ + doNotPersistState?: boolean; +} + +/** + * @interface + * An interface representing ContainerState. + * The container state. + * + */ +export interface ContainerState { + /** + * @member {string} [state] The state of this container + */ + state?: string; + /** + * @member {Date} [startTime] Date/time when the container state started. + */ + startTime?: Date; + /** + * @member {string} [exitCode] The container exit code. + */ + exitCode?: string; + /** + * @member {Date} [finishTime] Date/time when the container state finished. + */ + finishTime?: Date; + /** + * @member {string} [detailStatus] Human-readable status of this state. + */ + detailStatus?: string; +} + +/** + * @interface + * An interface representing ContainerEvent. + * A container event. + * + */ +export interface ContainerEvent { + /** + * @member {string} [name] The name of the container event. + */ + name?: string; + /** + * @member {number} [count] The count of the event. + */ + count?: number; + /** + * @member {string} [firstTimestamp] Date/time of the first event. + */ + firstTimestamp?: string; + /** + * @member {string} [lastTimestamp] Date/time of the last event. + */ + lastTimestamp?: string; + /** + * @member {string} [message] The event message + */ + message?: string; + /** + * @member {string} [type] The event type. + */ + type?: string; +} + +/** + * @interface + * An interface representing ContainerInstanceView. + * Runtime information of a container instance. + * + */ +export interface ContainerInstanceView { + /** + * @member {number} [restartCount] The number of times the container has been + * restarted. + */ + restartCount?: number; + /** + * @member {ContainerState} [currentState] Current container instance state. + */ + currentState?: ContainerState; + /** + * @member {ContainerState} [previousState] Previous container instance + * state. + */ + previousState?: ContainerState; + /** + * @member {ContainerEvent[]} [events] The events of this container instance. + */ + events?: ContainerEvent[]; +} + +/** + * @interface + * An interface representing ContainerCodePackageProperties. + * Describes a container and its runtime properties. + * + */ +export interface ContainerCodePackageProperties { + /** + * @member {string} name The name of the code package. + */ + name: string; + /** + * @member {string} image The Container image to use. + */ + image: string; + /** + * @member {ImageRegistryCredential} [imageRegistryCredential] Image registry + * credential. + */ + imageRegistryCredential?: ImageRegistryCredential; + /** + * @member {string} [entrypoint] Override for the default entry point in the + * container. + */ + entrypoint?: string; + /** + * @member {string[]} [commands] Command array to execute within the + * container in exec form. + */ + commands?: string[]; + /** + * @member {EnvironmentVariable[]} [environmentVariables] The environment + * variables to set in this container + */ + environmentVariables?: EnvironmentVariable[]; + /** + * @member {Setting[]} [settings] The settings to set in this container. The + * setting file path can be fetched from environment variable + * "Fabric_SettingPath". The path for Windows container is "C:\\secrets". The + * path for Linux container is "/var/secrets". + */ + settings?: Setting[]; + /** + * @member {ContainerLabel[]} [labels] The labels to set in this container. + */ + labels?: ContainerLabel[]; + /** + * @member {EndpointProperties[]} [endpoints] The endpoints exposed by this + * container. + */ + endpoints?: EndpointProperties[]; + /** + * @member {ResourceRequirements} resources The resources required by this + * container. + */ + resources: ResourceRequirements; + /** + * @member {VolumeReference[]} [volumeRefs] Volumes to be attached to the + * container. The lifetime of these volumes is independent of the + * application's lifetime. + */ + volumeRefs?: VolumeReference[]; + /** + * @member {ApplicationScopedVolume[]} [volumes] Volumes to be attached to + * the container. The lifetime of these volumes is scoped to the + * application's lifetime. + */ + volumes?: ApplicationScopedVolume[]; + /** + * @member {DiagnosticsRef} [diagnostics] Reference to sinks in + * DiagnosticsDescription. + */ + diagnostics?: DiagnosticsRef; + /** + * @member {ReliableCollectionsRef[]} [reliableCollectionsRefs] A list of + * ReliableCollection resources used by this particular code package. Please + * refer to ReliablecollectionsRef for more details. + */ + reliableCollectionsRefs?: ReliableCollectionsRef[]; + /** + * @member {ContainerInstanceView} [instanceView] Runtime information of a + * container instance. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly instanceView?: ContainerInstanceView; +} + +/** + * Contains the possible cases for AutoScalingTrigger. + */ +export type AutoScalingTriggerUnion = AutoScalingTrigger | AverageLoadScalingTrigger; + +/** + * @interface + * An interface representing AutoScalingTrigger. + * Describes the trigger for performing auto scaling operation. + * + */ +export interface AutoScalingTrigger { + /** + * @member {string} kind Polymorphic Discriminator + */ + kind: "AutoScalingTrigger"; +} + +/** + * Contains the possible cases for AutoScalingMechanism. + */ +export type AutoScalingMechanismUnion = AutoScalingMechanism | AddRemoveReplicaScalingMechanism; + +/** + * @interface + * An interface representing AutoScalingMechanism. + * Describes the mechanism for performing auto scaling operation. Derived + * classes will describe the actual mechanism. + * + */ +export interface AutoScalingMechanism { + /** + * @member {string} kind Polymorphic Discriminator + */ + kind: "AutoScalingMechanism"; +} + +/** + * @interface + * An interface representing AutoScalingPolicy. + * Describes the auto scaling policy + * + */ +export interface AutoScalingPolicy { + /** + * @member {string} name The name of the auto scaling policy. + */ + name: string; + /** + * @member {AutoScalingTriggerUnion} trigger Determines when auto scaling + * operation will be invoked. + */ + trigger: AutoScalingTriggerUnion; + /** + * @member {AutoScalingMechanismUnion} mechanism The mechanism that is used + * to scale when auto scaling operation is invoked. + */ + mechanism: AutoScalingMechanismUnion; +} + +/** + * @interface + * An interface representing ServiceResourceDescription. + * This type describes a service resource. + * + */ +export interface ServiceResourceDescription { + /** + * @member {string} name Name of the Service resource. + */ + name: string; + /** + * @member {OperatingSystemType} osType The operation system required by the + * code in service. Possible values include: 'Linux', 'Windows' + */ + osType: OperatingSystemType; + /** + * @member {ContainerCodePackageProperties[]} codePackages Describes the set + * of code packages that forms the service. A code package describes the + * container and the properties for running it. All the code packages are + * started together on the same host and share the same context (network, + * process etc.). + */ + codePackages: ContainerCodePackageProperties[]; + /** + * @member {NetworkRef[]} [networkRefs] The names of the private networks + * that this service needs to be part of. + */ + networkRefs?: NetworkRef[]; + /** + * @member {DiagnosticsRef} [diagnostics] Reference to sinks in + * DiagnosticsDescription. + */ + diagnostics?: DiagnosticsRef; + /** + * @member {string} [description] User readable description of the service. + */ + description?: string; + /** + * @member {number} [replicaCount] The number of replicas of the service to + * create. Defaults to 1 if not specified. + */ + replicaCount?: number; + /** + * @member {AutoScalingPolicy[]} [autoScalingPolicies] Auto scaling policies + */ + autoScalingPolicies?: AutoScalingPolicy[]; + /** + * @member {ResourceStatus} [status] Status of the service. Possible values + * include: 'Unknown', 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly status?: ResourceStatus; + /** + * @member {string} [statusDetails] Gives additional information about the + * current status of the service. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly statusDetails?: string; + /** + * @member {HealthState} [healthState] Describes the health state of an + * application resource. Possible values include: 'Invalid', 'Ok', 'Warning', + * 'Error', 'Unknown' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly healthState?: HealthState; + /** + * @member {string} [unhealthyEvaluation] When the service's health state is + * not 'Ok', this additional details from service fabric Health Manager for + * the user to know why the service is marked unhealthy. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly unhealthyEvaluation?: string; +} + +/** + * Contains the possible cases for DiagnosticsSinkProperties. + */ +export type DiagnosticsSinkPropertiesUnion = DiagnosticsSinkProperties | AzureInternalMonitoringPipelineSinkDescription; + +/** + * @interface + * An interface representing DiagnosticsSinkProperties. + * Properties of a DiagnosticsSink. + * + */ +export interface DiagnosticsSinkProperties { + /** + * @member {string} kind Polymorphic Discriminator + */ + kind: "DiagnosticsSinkProperties"; + /** + * @member {string} [name] Name of the sink. This value is referenced by + * DiagnosticsReferenceDescription + */ + name?: string; + /** + * @member {string} [description] A description of the sink. + */ + description?: string; +} + +/** + * @interface + * An interface representing DiagnosticsDescription. + * Describes the diagnostics options available + * + */ +export interface DiagnosticsDescription { + /** + * @member {DiagnosticsSinkPropertiesUnion[]} [sinks] List of supported sinks + * that can be referenced. + */ + sinks?: DiagnosticsSinkPropertiesUnion[]; + /** + * @member {boolean} [enabled] Status of whether or not sinks are enabled. + */ + enabled?: boolean; + /** + * @member {string[]} [defaultSinkRefs] The sinks to be used if diagnostics + * is enabled. Sink choices can be overridden at the service and code package + * level. + */ + defaultSinkRefs?: string[]; +} + +/** + * @interface + * An interface representing AzureInternalMonitoringPipelineSinkDescription. + * Diagnostics settings for Geneva. + * + */ +export interface AzureInternalMonitoringPipelineSinkDescription { + /** + * @member {string} kind Polymorphic Discriminator + */ + kind: "AzureInternalMonitoringPipeline"; + /** + * @member {string} [name] Name of the sink. This value is referenced by + * DiagnosticsReferenceDescription + */ + name?: string; + /** + * @member {string} [description] A description of the sink. + */ + description?: string; + /** + * @member {string} [accountName] Azure Internal monitoring pipeline account. + */ + accountName?: string; + /** + * @member {string} [namespace] Azure Internal monitoring pipeline account + * namespace. + */ + namespace?: string; + /** + * @member {string} [maConfigUrl] Azure Internal monitoring agent + * configuration. + */ + maConfigUrl?: string; + /** + * @member {any} [fluentdConfigUrl] Azure Internal monitoring agent fluentd + * configuration. + */ + fluentdConfigUrl?: any; + /** + * @member {string} [autoKeyConfigUrl] Azure Internal monitoring pipeline + * autokey associated with the certificate. + */ + autoKeyConfigUrl?: string; +} + +/** + * @interface + * An interface representing AddRemoveReplicaScalingMechanism. + * Describes the horizontal auto scaling mechanism that adds or removes + * replicas (containers or container groups). + * + */ +export interface AddRemoveReplicaScalingMechanism { + /** + * @member {string} kind Polymorphic Discriminator + */ + kind: "AddRemoveReplica"; + /** + * @member {number} minCount Minimum number of containers (scale down won't + * be performed below this number). + */ + minCount: number; + /** + * @member {number} maxCount Maximum number of containers (scale up won't be + * performed above this number). + */ + maxCount: number; + /** + * @member {number} scaleIncrement Each time auto scaling is performed, this + * number of containers will be added or removed. + */ + scaleIncrement: number; +} + +/** + * Contains the possible cases for AutoScalingMetric. + */ +export type AutoScalingMetricUnion = AutoScalingMetric | AutoScalingResourceMetric; + +/** + * @interface + * An interface representing AutoScalingMetric. + * Describes the metric that is used for triggering auto scaling operation. + * Derived classes will describe resources or metrics. + * + */ +export interface AutoScalingMetric { + /** + * @member {string} kind Polymorphic Discriminator + */ + kind: "AutoScalingMetric"; +} + +/** + * @interface + * An interface representing AutoScalingResourceMetric. + * Describes the resource that is used for triggering auto scaling. + * + */ +export interface AutoScalingResourceMetric { + /** + * @member {string} kind Polymorphic Discriminator + */ + kind: "Resource"; + /** + * @member {AutoScalingResourceMetricName} name Name of the resource. + * Possible values include: 'cpu', 'memoryInGB' + */ + name: AutoScalingResourceMetricName; +} + +/** + * @interface + * An interface representing ServiceProperties. + * Describes properties of a service resource. + * + */ +export interface ServiceProperties { + /** + * @member {string} [description] User readable description of the service. + */ + description?: string; + /** + * @member {number} [replicaCount] The number of replicas of the service to + * create. Defaults to 1 if not specified. + */ + replicaCount?: number; + /** + * @member {AutoScalingPolicy[]} [autoScalingPolicies] Auto scaling policies + */ + autoScalingPolicies?: AutoScalingPolicy[]; + /** + * @member {ResourceStatus} [status] Status of the service. Possible values + * include: 'Unknown', 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly status?: ResourceStatus; + /** + * @member {string} [statusDetails] Gives additional information about the + * current status of the service. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly statusDetails?: string; + /** + * @member {HealthState} [healthState] Describes the health state of an + * application resource. Possible values include: 'Invalid', 'Ok', 'Warning', + * 'Error', 'Unknown' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly healthState?: HealthState; + /** + * @member {string} [unhealthyEvaluation] When the service's health state is + * not 'Ok', this additional details from service fabric Health Manager for + * the user to know why the service is marked unhealthy. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly unhealthyEvaluation?: string; +} + +/** + * @interface + * An interface representing ServiceReplicaProperties. + * Describes the properties of a service replica. + * + */ +export interface ServiceReplicaProperties { + /** + * @member {OperatingSystemType} osType The operation system required by the + * code in service. Possible values include: 'Linux', 'Windows' + */ + osType: OperatingSystemType; + /** + * @member {ContainerCodePackageProperties[]} codePackages Describes the set + * of code packages that forms the service. A code package describes the + * container and the properties for running it. All the code packages are + * started together on the same host and share the same context (network, + * process etc.). + */ + codePackages: ContainerCodePackageProperties[]; + /** + * @member {NetworkRef[]} [networkRefs] The names of the private networks + * that this service needs to be part of. + */ + networkRefs?: NetworkRef[]; + /** + * @member {DiagnosticsRef} [diagnostics] Reference to sinks in + * DiagnosticsDescription. + */ + diagnostics?: DiagnosticsRef; +} + +/** + * @interface + * An interface representing ServiceReplicaDescription. + * Describes a replica of a service resource. + * + * @extends ServiceReplicaProperties + */ +export interface ServiceReplicaDescription extends ServiceReplicaProperties { + /** + * @member {string} replicaName Name of the replica. + */ + replicaName: string; +} + +/** + * @interface + * An interface representing AverageLoadScalingTrigger. + * Describes the average load trigger used for auto scaling. + * + */ +export interface AverageLoadScalingTrigger { + /** + * @member {string} kind Polymorphic Discriminator + */ + kind: "AverageLoad"; + /** + * @member {AutoScalingMetricUnion} metric Description of the metric that is + * used for scaling. + */ + metric: AutoScalingMetricUnion; + /** + * @member {number} lowerLoadThreshold Lower load threshold (if average load + * is below this threshold, service will scale down). + */ + lowerLoadThreshold: number; + /** + * @member {number} upperLoadThreshold Upper load threshold (if average load + * is above this threshold, service will scale up). + */ + upperLoadThreshold: number; + /** + * @member {number} scaleIntervalInSeconds Scale interval that indicates how + * often will this trigger be checked. + */ + scaleIntervalInSeconds: number; +} + +/** + * @interface + * An interface representing PagedServiceResourceDescriptionList. + * The list of service resources. 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 PagedServiceResourceDescriptionList { + /** + * @member {string} [continuationToken] 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; + /** + * @member {ServiceResourceDescription[]} [items] One page of the list. + */ + items?: ServiceResourceDescription[]; +} + +/** + * @interface + * An interface representing PagedServiceReplicaDescriptionList. + * The list of service resource replicas in the cluster. 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 PagedServiceReplicaDescriptionList { + /** + * @member {string} [continuationToken] 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; + /** + * @member {ServiceReplicaDescription[]} [items] List of service resource + * replica description. + */ + items?: ServiceReplicaDescription[]; +} + +/** + * @interface + * An interface representing ApplicationResourceDescription. + * This type describes a application resource. + * + */ +export interface ApplicationResourceDescription { + /** + * @member {string} name Name of the Application resource. + */ + name: string; + /** + * @member {string} [description] User readable description of the + * application. + */ + description?: string; + /** + * @member {ServiceResourceDescription[]} [services] Describes the services + * in the application. This property is used to create or modify services of + * the application. On get only the name of the service is returned. The + * service description can be obtained by querying for the service resource. + */ + services?: ServiceResourceDescription[]; + /** + * @member {DiagnosticsDescription} [diagnostics] Describes the diagnostics + * definition and usage for an application resource. + */ + diagnostics?: DiagnosticsDescription; + /** + * @member {string} [debugParams] Internal - used by Visual Studio to setup + * the debugging session on the local development environment. + */ + debugParams?: string; + /** + * @member {string[]} [serviceNames] Names of the services in the + * application. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly serviceNames?: string[]; + /** + * @member {ResourceStatus} [status] Status of the application. Possible + * values include: 'Unknown', 'Ready', 'Upgrading', 'Creating', 'Deleting', + * 'Failed' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly status?: ResourceStatus; + /** + * @member {string} [statusDetails] Gives additional information about the + * current status of the application. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly statusDetails?: string; + /** + * @member {HealthState} [healthState] Describes the health state of an + * application resource. Possible values include: 'Invalid', 'Ok', 'Warning', + * 'Error', 'Unknown' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly healthState?: HealthState; + /** + * @member {string} [unhealthyEvaluation] When the application's health state + * is not 'Ok', this additional details from service fabric Health Manager + * for the user to know why the application is marked unhealthy. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly unhealthyEvaluation?: string; +} + +/** + * @interface + * An interface representing PagedApplicationResourceDescriptionList. + * The list of application resources. 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 PagedApplicationResourceDescriptionList { + /** + * @member {string} [continuationToken] 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; + /** + * @member {ApplicationResourceDescription[]} [items] One page of the list. + */ + items?: ApplicationResourceDescription[]; +} + +/** + * @interface + * An interface representing ServiceFabricClientOptions. + * @extends ServiceClientOptions + */ +export interface ServiceFabricClientOptions extends ServiceClientOptions { + /** + * @member {string} [baseUri] + */ + baseUri?: string; +} + +/** + * @interface + * An interface representing ServiceFabricClientGetClusterManifestOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ServiceFabricClientGetClusterManifestOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {number} [timeoutParameter] 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; +} + +/** + * @interface + * An interface representing ServiceFabricClientGetClusterHealthOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ServiceFabricClientGetClusterHealthOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {number} [nodesHealthStateFilter] Allows filtering of the node + * health state objects returned in the result of cluster health query + * based on their health state. The possible values for this parameter + * include integer value of one of the + * following health states. Only nodes that match the filter are returned. + * All nodes are used to evaluate the aggregated health state. + * If not specified, all entries are returned. * The state values are flag-based enumeration, so the value could be a * combination of these values obtained using bitwise 'OR' operator. * For example, if the provided value is 6 then health state of nodes with @@ -17320,6 +18345,23 @@ export interface ServiceFabricClientGetAadMetadataOptionalParams extends msRest. timeoutParameter?: number; } +/** + * @interface + * An interface representing ServiceFabricClientGetClusterVersionOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ServiceFabricClientGetClusterVersionOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {number} [timeoutParameter] 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; +} + /** * @interface * An interface representing ServiceFabricClientGetNodeInfoListOptionalParams. @@ -19019,6 +20061,11 @@ export interface ServiceFabricClientResolveServiceOptionalParams extends msRest. /** * @member {string} [partitionKeyValue] Partition key. This is required if * the partition scheme for the service is Int64Range or Named. + * This is not the partition ID, but rather, either the integer key value, or + * the name of the partition ID. + * For example, if your service is using ranged partitions from 0 to 10, then + * they PartitionKeyValue would be an + * integer in that range. Query service description to see the range or name. */ partitionKeyValue?: string; /** @@ -20107,6 +21154,23 @@ export interface ServiceFabricClientStartComposeDeploymentUpgradeOptionalParams timeoutParameter?: number; } +/** + * @interface + * An interface representing ServiceFabricClientStartRollbackComposeDeploymentUpgradeOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ServiceFabricClientStartRollbackComposeDeploymentUpgradeOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {number} [timeoutParameter] 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; +} + /** * @interface * An interface representing ServiceFabricClientGetChaosOptionalParams. @@ -20807,6 +21871,11 @@ export interface ServiceFabricClientDisableApplicationBackupOptionalParams exten * default value for this parameter is 60 seconds. Default value: 60 . */ timeoutParameter?: number; + /** + * @member {DisableBackupDescription} [disableBackupDescription] Specifies + * the parameters to disable backup for any backup entity. + */ + disableBackupDescription?: DisableBackupDescription; } /** @@ -20962,6 +22031,11 @@ export interface ServiceFabricClientEnableServiceBackupOptionalParams extends ms * @extends RequestOptionsBase */ export interface ServiceFabricClientDisableServiceBackupOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {DisableBackupDescription} [disableBackupDescription] Specifies + * the parameters to disable backup for any backup entity. + */ + disableBackupDescription?: DisableBackupDescription; /** * @member {number} [timeoutParameter] The server timeout for performing the * operation in seconds. This timeout specifies the time duration that the @@ -21124,6 +22198,11 @@ export interface ServiceFabricClientEnablePartitionBackupOptionalParams extends * @extends RequestOptionsBase */ export interface ServiceFabricClientDisablePartitionBackupOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {DisableBackupDescription} [disableBackupDescription] Specifies + * the parameters to disable backup for any backup entity. + */ + disableBackupDescription?: DisableBackupDescription; /** * @member {number} [timeoutParameter] The server timeout for performing the * operation in seconds. This timeout specifies the time duration that the @@ -21975,6 +23054,207 @@ export interface ServiceFabricClientGetCorrelatedEventListOptionalParams extends timeoutParameter?: number; } +/** + * @interface + * An interface representing MeshCodePackageGetContainerLogsOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface MeshCodePackageGetContainerLogsOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [tail] Number of lines to show from the end of the logs. + * Default is 100. 'all' to show the complete logs. + */ + tail?: string; +} + +/** + * Defines values for HealthState. + * Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: HealthState = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum HealthState { + /** + * Indicates an invalid health state. All Service Fabric enumerations have + * the invalid type. The value is zero. + */ + Invalid = 'Invalid', + /** + * Indicates the health state is okay. The value is 1. + */ + Ok = 'Ok', + /** + * Indicates the health state is at a warning level. The value is 2. + */ + Warning = 'Warning', + /** + * Indicates the health state is at an error level. Error health state should + * be investigated, as they can impact the correct functionality of the + * cluster. The value is 3. + */ + Error = 'Error', + /** + * Indicates an unknown health status. The value is 65535. + */ + Unknown = 'Unknown', +} + +/** + * Defines values for FabricErrorCodes. + * Possible values include: 'FABRIC_E_INVALID_PARTITION_KEY', + * 'FABRIC_E_IMAGEBUILDER_VALIDATION_ERROR', 'FABRIC_E_INVALID_ADDRESS', + * 'FABRIC_E_APPLICATION_NOT_UPGRADING', + * 'FABRIC_E_APPLICATION_UPGRADE_VALIDATION_ERROR', + * 'FABRIC_E_FABRIC_NOT_UPGRADING', 'FABRIC_E_FABRIC_UPGRADE_VALIDATION_ERROR', + * 'FABRIC_E_INVALID_CONFIGURATION', 'FABRIC_E_INVALID_NAME_URI', + * 'FABRIC_E_PATH_TOO_LONG', 'FABRIC_E_KEY_TOO_LARGE', + * 'FABRIC_E_SERVICE_AFFINITY_CHAIN_NOT_SUPPORTED', + * 'FABRIC_E_INVALID_ATOMIC_GROUP', 'FABRIC_E_VALUE_EMPTY', + * 'FABRIC_E_NODE_NOT_FOUND', 'FABRIC_E_APPLICATION_TYPE_NOT_FOUND', + * 'FABRIC_E_APPLICATION_NOT_FOUND', 'FABRIC_E_SERVICE_TYPE_NOT_FOUND', + * 'FABRIC_E_SERVICE_DOES_NOT_EXIST', + * 'FABRIC_E_SERVICE_TYPE_TEMPLATE_NOT_FOUND', + * 'FABRIC_E_CONFIGURATION_SECTION_NOT_FOUND', 'FABRIC_E_PARTITION_NOT_FOUND', + * 'FABRIC_E_REPLICA_DOES_NOT_EXIST', 'FABRIC_E_SERVICE_GROUP_DOES_NOT_EXIST', + * 'FABRIC_E_CONFIGURATION_PARAMETER_NOT_FOUND', + * 'FABRIC_E_DIRECTORY_NOT_FOUND', 'FABRIC_E_FABRIC_VERSION_NOT_FOUND', + * 'FABRIC_E_FILE_NOT_FOUND', 'FABRIC_E_NAME_DOES_NOT_EXIST', + * 'FABRIC_E_PROPERTY_DOES_NOT_EXIST', 'FABRIC_E_ENUMERATION_COMPLETED', + * 'FABRIC_E_SERVICE_MANIFEST_NOT_FOUND', 'FABRIC_E_KEY_NOT_FOUND', + * 'FABRIC_E_HEALTH_ENTITY_NOT_FOUND', + * 'FABRIC_E_APPLICATION_TYPE_ALREADY_EXISTS', + * 'FABRIC_E_APPLICATION_ALREADY_EXISTS', + * 'FABRIC_E_APPLICATION_ALREADY_IN_TARGET_VERSION', + * 'FABRIC_E_APPLICATION_TYPE_PROVISION_IN_PROGRESS', + * 'FABRIC_E_APPLICATION_UPGRADE_IN_PROGRESS', + * 'FABRIC_E_SERVICE_ALREADY_EXISTS', 'FABRIC_E_SERVICE_GROUP_ALREADY_EXISTS', + * 'FABRIC_E_APPLICATION_TYPE_IN_USE', + * 'FABRIC_E_FABRIC_ALREADY_IN_TARGET_VERSION', + * 'FABRIC_E_FABRIC_VERSION_ALREADY_EXISTS', 'FABRIC_E_FABRIC_VERSION_IN_USE', + * 'FABRIC_E_FABRIC_UPGRADE_IN_PROGRESS', 'FABRIC_E_NAME_ALREADY_EXISTS', + * 'FABRIC_E_NAME_NOT_EMPTY', 'FABRIC_E_PROPERTY_CHECK_FAILED', + * 'FABRIC_E_SERVICE_METADATA_MISMATCH', 'FABRIC_E_SERVICE_TYPE_MISMATCH', + * 'FABRIC_E_HEALTH_STALE_REPORT', 'FABRIC_E_SEQUENCE_NUMBER_CHECK_FAILED', + * 'FABRIC_E_NODE_HAS_NOT_STOPPED_YET', 'FABRIC_E_INSTANCE_ID_MISMATCH', + * 'FABRIC_E_VALUE_TOO_LARGE', 'FABRIC_E_NO_WRITE_QUORUM', + * 'FABRIC_E_NOT_PRIMARY', 'FABRIC_E_NOT_READY', + * 'FABRIC_E_RECONFIGURATION_PENDING', 'FABRIC_E_SERVICE_OFFLINE', 'E_ABORT', + * 'FABRIC_E_COMMUNICATION_ERROR', 'FABRIC_E_OPERATION_NOT_COMPLETE', + * 'FABRIC_E_TIMEOUT', 'FABRIC_E_NODE_IS_UP', 'E_FAIL', + * 'FABRIC_E_BACKUP_IS_ENABLED', + * 'FABRIC_E_RESTORE_SOURCE_TARGET_PARTITION_MISMATCH', + * 'FABRIC_E_INVALID_FOR_STATELESS_SERVICES', 'FABRIC_E_BACKUP_NOT_ENABLED', + * 'FABRIC_E_BACKUP_POLICY_NOT_EXISTING', + * 'FABRIC_E_FAULT_ANALYSIS_SERVICE_NOT_EXISTING', + * 'FABRIC_E_BACKUP_IN_PROGRESS', 'FABRIC_E_RESTORE_IN_PROGRESS', + * 'FABRIC_E_BACKUP_POLICY_ALREADY_EXISTING', + * 'FABRIC_E_INVALID_SERVICE_SCALING_POLICY', 'E_INVALIDARG', + * 'FABRIC_E_SINGLE_INSTANCE_APPLICATION_ALREADY_EXISTS', + * 'FABRIC_E_SINGLE_INSTANCE_APPLICATION_NOT_FOUND', + * 'FABRIC_E_VOLUME_ALREADY_EXISTS', 'FABRIC_E_VOLUME_NOT_FOUND', + * 'SerializationError', 'FABRIC_E_IMAGEBUILDER_RESERVED_DIRECTORY_ERROR' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: FabricErrorCodes = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum FabricErrorCodes { + FABRICEINVALIDPARTITIONKEY = 'FABRIC_E_INVALID_PARTITION_KEY', + FABRICEIMAGEBUILDERVALIDATIONERROR = 'FABRIC_E_IMAGEBUILDER_VALIDATION_ERROR', + FABRICEINVALIDADDRESS = 'FABRIC_E_INVALID_ADDRESS', + FABRICEAPPLICATIONNOTUPGRADING = 'FABRIC_E_APPLICATION_NOT_UPGRADING', + FABRICEAPPLICATIONUPGRADEVALIDATIONERROR = 'FABRIC_E_APPLICATION_UPGRADE_VALIDATION_ERROR', + FABRICEFABRICNOTUPGRADING = 'FABRIC_E_FABRIC_NOT_UPGRADING', + FABRICEFABRICUPGRADEVALIDATIONERROR = 'FABRIC_E_FABRIC_UPGRADE_VALIDATION_ERROR', + FABRICEINVALIDCONFIGURATION = 'FABRIC_E_INVALID_CONFIGURATION', + FABRICEINVALIDNAMEURI = 'FABRIC_E_INVALID_NAME_URI', + FABRICEPATHTOOLONG = 'FABRIC_E_PATH_TOO_LONG', + FABRICEKEYTOOLARGE = 'FABRIC_E_KEY_TOO_LARGE', + FABRICESERVICEAFFINITYCHAINNOTSUPPORTED = 'FABRIC_E_SERVICE_AFFINITY_CHAIN_NOT_SUPPORTED', + FABRICEINVALIDATOMICGROUP = 'FABRIC_E_INVALID_ATOMIC_GROUP', + FABRICEVALUEEMPTY = 'FABRIC_E_VALUE_EMPTY', + FABRICENODENOTFOUND = 'FABRIC_E_NODE_NOT_FOUND', + FABRICEAPPLICATIONTYPENOTFOUND = 'FABRIC_E_APPLICATION_TYPE_NOT_FOUND', + FABRICEAPPLICATIONNOTFOUND = 'FABRIC_E_APPLICATION_NOT_FOUND', + FABRICESERVICETYPENOTFOUND = 'FABRIC_E_SERVICE_TYPE_NOT_FOUND', + FABRICESERVICEDOESNOTEXIST = 'FABRIC_E_SERVICE_DOES_NOT_EXIST', + FABRICESERVICETYPETEMPLATENOTFOUND = 'FABRIC_E_SERVICE_TYPE_TEMPLATE_NOT_FOUND', + FABRICECONFIGURATIONSECTIONNOTFOUND = 'FABRIC_E_CONFIGURATION_SECTION_NOT_FOUND', + FABRICEPARTITIONNOTFOUND = 'FABRIC_E_PARTITION_NOT_FOUND', + FABRICEREPLICADOESNOTEXIST = 'FABRIC_E_REPLICA_DOES_NOT_EXIST', + FABRICESERVICEGROUPDOESNOTEXIST = 'FABRIC_E_SERVICE_GROUP_DOES_NOT_EXIST', + FABRICECONFIGURATIONPARAMETERNOTFOUND = 'FABRIC_E_CONFIGURATION_PARAMETER_NOT_FOUND', + FABRICEDIRECTORYNOTFOUND = 'FABRIC_E_DIRECTORY_NOT_FOUND', + FABRICEFABRICVERSIONNOTFOUND = 'FABRIC_E_FABRIC_VERSION_NOT_FOUND', + FABRICEFILENOTFOUND = 'FABRIC_E_FILE_NOT_FOUND', + FABRICENAMEDOESNOTEXIST = 'FABRIC_E_NAME_DOES_NOT_EXIST', + FABRICEPROPERTYDOESNOTEXIST = 'FABRIC_E_PROPERTY_DOES_NOT_EXIST', + FABRICEENUMERATIONCOMPLETED = 'FABRIC_E_ENUMERATION_COMPLETED', + FABRICESERVICEMANIFESTNOTFOUND = 'FABRIC_E_SERVICE_MANIFEST_NOT_FOUND', + FABRICEKEYNOTFOUND = 'FABRIC_E_KEY_NOT_FOUND', + FABRICEHEALTHENTITYNOTFOUND = 'FABRIC_E_HEALTH_ENTITY_NOT_FOUND', + FABRICEAPPLICATIONTYPEALREADYEXISTS = 'FABRIC_E_APPLICATION_TYPE_ALREADY_EXISTS', + FABRICEAPPLICATIONALREADYEXISTS = 'FABRIC_E_APPLICATION_ALREADY_EXISTS', + FABRICEAPPLICATIONALREADYINTARGETVERSION = 'FABRIC_E_APPLICATION_ALREADY_IN_TARGET_VERSION', + FABRICEAPPLICATIONTYPEPROVISIONINPROGRESS = 'FABRIC_E_APPLICATION_TYPE_PROVISION_IN_PROGRESS', + FABRICEAPPLICATIONUPGRADEINPROGRESS = 'FABRIC_E_APPLICATION_UPGRADE_IN_PROGRESS', + FABRICESERVICEALREADYEXISTS = 'FABRIC_E_SERVICE_ALREADY_EXISTS', + FABRICESERVICEGROUPALREADYEXISTS = 'FABRIC_E_SERVICE_GROUP_ALREADY_EXISTS', + FABRICEAPPLICATIONTYPEINUSE = 'FABRIC_E_APPLICATION_TYPE_IN_USE', + FABRICEFABRICALREADYINTARGETVERSION = 'FABRIC_E_FABRIC_ALREADY_IN_TARGET_VERSION', + FABRICEFABRICVERSIONALREADYEXISTS = 'FABRIC_E_FABRIC_VERSION_ALREADY_EXISTS', + FABRICEFABRICVERSIONINUSE = 'FABRIC_E_FABRIC_VERSION_IN_USE', + FABRICEFABRICUPGRADEINPROGRESS = 'FABRIC_E_FABRIC_UPGRADE_IN_PROGRESS', + FABRICENAMEALREADYEXISTS = 'FABRIC_E_NAME_ALREADY_EXISTS', + FABRICENAMENOTEMPTY = 'FABRIC_E_NAME_NOT_EMPTY', + FABRICEPROPERTYCHECKFAILED = 'FABRIC_E_PROPERTY_CHECK_FAILED', + FABRICESERVICEMETADATAMISMATCH = 'FABRIC_E_SERVICE_METADATA_MISMATCH', + FABRICESERVICETYPEMISMATCH = 'FABRIC_E_SERVICE_TYPE_MISMATCH', + FABRICEHEALTHSTALEREPORT = 'FABRIC_E_HEALTH_STALE_REPORT', + FABRICESEQUENCENUMBERCHECKFAILED = 'FABRIC_E_SEQUENCE_NUMBER_CHECK_FAILED', + FABRICENODEHASNOTSTOPPEDYET = 'FABRIC_E_NODE_HAS_NOT_STOPPED_YET', + FABRICEINSTANCEIDMISMATCH = 'FABRIC_E_INSTANCE_ID_MISMATCH', + FABRICEVALUETOOLARGE = 'FABRIC_E_VALUE_TOO_LARGE', + FABRICENOWRITEQUORUM = 'FABRIC_E_NO_WRITE_QUORUM', + FABRICENOTPRIMARY = 'FABRIC_E_NOT_PRIMARY', + FABRICENOTREADY = 'FABRIC_E_NOT_READY', + FABRICERECONFIGURATIONPENDING = 'FABRIC_E_RECONFIGURATION_PENDING', + FABRICESERVICEOFFLINE = 'FABRIC_E_SERVICE_OFFLINE', + EABORT = 'E_ABORT', + FABRICECOMMUNICATIONERROR = 'FABRIC_E_COMMUNICATION_ERROR', + FABRICEOPERATIONNOTCOMPLETE = 'FABRIC_E_OPERATION_NOT_COMPLETE', + FABRICETIMEOUT = 'FABRIC_E_TIMEOUT', + FABRICENODEISUP = 'FABRIC_E_NODE_IS_UP', + EFAIL = 'E_FAIL', + FABRICEBACKUPISENABLED = 'FABRIC_E_BACKUP_IS_ENABLED', + FABRICERESTORESOURCETARGETPARTITIONMISMATCH = 'FABRIC_E_RESTORE_SOURCE_TARGET_PARTITION_MISMATCH', + FABRICEINVALIDFORSTATELESSSERVICES = 'FABRIC_E_INVALID_FOR_STATELESS_SERVICES', + FABRICEBACKUPNOTENABLED = 'FABRIC_E_BACKUP_NOT_ENABLED', + FABRICEBACKUPPOLICYNOTEXISTING = 'FABRIC_E_BACKUP_POLICY_NOT_EXISTING', + FABRICEFAULTANALYSISSERVICENOTEXISTING = 'FABRIC_E_FAULT_ANALYSIS_SERVICE_NOT_EXISTING', + FABRICEBACKUPINPROGRESS = 'FABRIC_E_BACKUP_IN_PROGRESS', + FABRICERESTOREINPROGRESS = 'FABRIC_E_RESTORE_IN_PROGRESS', + FABRICEBACKUPPOLICYALREADYEXISTING = 'FABRIC_E_BACKUP_POLICY_ALREADY_EXISTING', + FABRICEINVALIDSERVICESCALINGPOLICY = 'FABRIC_E_INVALID_SERVICE_SCALING_POLICY', + EINVALIDARG = 'E_INVALIDARG', + FABRICESINGLEINSTANCEAPPLICATIONALREADYEXISTS = 'FABRIC_E_SINGLE_INSTANCE_APPLICATION_ALREADY_EXISTS', + FABRICESINGLEINSTANCEAPPLICATIONNOTFOUND = 'FABRIC_E_SINGLE_INSTANCE_APPLICATION_NOT_FOUND', + FABRICEVOLUMEALREADYEXISTS = 'FABRIC_E_VOLUME_ALREADY_EXISTS', + FABRICEVOLUMENOTFOUND = 'FABRIC_E_VOLUME_NOT_FOUND', + SerializationError = 'SerializationError', + FABRICEIMAGEBUILDERRESERVEDDIRECTORYERROR = 'FABRIC_E_IMAGEBUILDER_RESERVED_DIRECTORY_ERROR', +} + /** * Defines values for ApplicationDefinitionKind. * Possible values include: 'Invalid', 'ServiceFabricApplicationDescription', @@ -22004,43 +23284,6 @@ export enum ApplicationDefinitionKind { Compose = 'Compose', } -/** - * Defines values for HealthState. - * Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: HealthState = - * "someUnknownValueThatWillStillBeValid"; - * @readonly - * @enum {string} - */ -export enum HealthState { - /** - * Indicates an invalid health state. All Service Fabric enumerations have - * the invalid type. The value is zero. - */ - Invalid = 'Invalid', - /** - * Indicates the health state is okay. The value is 1. - */ - Ok = 'Ok', - /** - * Indicates the health state is at a warning level. The value is 2. - */ - Warning = 'Warning', - /** - * Indicates the health state is at an error level. Error health state should - * be investigated, as they can impact the correct functionality of the - * cluster. The value is 3. - */ - Error = 'Error', - /** - * Indicates an unknown health status. The value is 65535. - */ - Unknown = 'Unknown', -} - /** * Defines values for ApplicationStatus. * Possible values include: 'Invalid', 'Ready', 'Upgrading', 'Creating', @@ -22628,2903 +23871,3315 @@ export enum ReconfigurationPhase { * Refers to the phase where the reconfiguration is ensuring that data from * the current primary is present in a majority of the replica set. */ - Phase2 = 'Phase2', + Phase2 = 'Phase2', + /** + * This phase is for internal use only. + */ + Phase3 = 'Phase3', + /** + * This phase is for internal use only. + */ + Phase4 = 'Phase4', + /** + * This phase is for internal use only. + */ + AbortPhaseZero = 'AbortPhaseZero', +} + +/** + * Defines values for ReconfigurationType. + * Possible values include: 'Unknown', 'SwapPrimary', 'Failover', 'Other' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: ReconfigurationType = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum ReconfigurationType { + /** + * Indicates the invalid reconfiguration type. + */ + Unknown = 'Unknown', + /** + * Specifies that the primary replica is being swapped with a different + * replica. + */ + SwapPrimary = 'SwapPrimary', + /** + * Reconfiguration triggered in response to a primary going down. This could + * be due to many reasons such as primary replica crashing etc. + */ + Failover = 'Failover', + /** + * Reconfigurations where the primary replica is not changing. + */ + Other = 'Other', +} + +/** + * Defines values for EntityKind. + * Possible values include: 'Invalid', 'Node', 'Partition', 'Service', + * 'Application', 'Replica', 'DeployedApplication', 'DeployedServicePackage', + * 'Cluster' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: EntityKind = "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum EntityKind { + /** + * Indicates an invalid entity kind. All Service Fabric enumerations have the + * invalid type. The value is zero. + */ + Invalid = 'Invalid', + /** + * Indicates the entity is a Service Fabric node. The value is 1. + */ + Node = 'Node', + /** + * Indicates the entity is a Service Fabric partition. The value is 2. + */ + Partition = 'Partition', + /** + * Indicates the entity is a Service Fabric service. The value is 3. + */ + Service = 'Service', + /** + * Indicates the entity is a Service Fabric application. The value is 4. + */ + Application = 'Application', + /** + * Indicates the entity is a Service Fabric replica. The value is 5. + */ + Replica = 'Replica', + /** + * Indicates the entity is a Service Fabric deployed application. The value + * is 6. + */ + DeployedApplication = 'DeployedApplication', + /** + * Indicates the entity is a Service Fabric deployed service package. The + * value is 7. + */ + DeployedServicePackage = 'DeployedServicePackage', + /** + * Indicates the entity is a Service Fabric cluster. The value is 8. + */ + Cluster = 'Cluster', +} + +/** + * Defines values for FabricEventKind. + * Possible values include: 'ClusterEvent', 'ContainerInstanceEvent', + * 'NodeEvent', 'ApplicationEvent', 'ServiceEvent', 'PartitionEvent', + * 'ReplicaEvent', 'PartitionAnalysisEvent', 'ApplicationCreated', + * 'ApplicationDeleted', 'ApplicationNewHealthReport', + * 'ApplicationHealthReportExpired', 'ApplicationUpgradeCompleted', + * 'ApplicationUpgradeDomainCompleted', 'ApplicationUpgradeRollbackCompleted', + * 'ApplicationUpgradeRollbackStarted', 'ApplicationUpgradeStarted', + * 'DeployedApplicationNewHealthReport', + * 'DeployedApplicationHealthReportExpired', 'ApplicationProcessExited', + * 'ApplicationContainerInstanceExited', 'NodeAborted', 'NodeAddedToCluster', + * 'NodeClosed', 'NodeDeactivateCompleted', 'NodeDeactivateStarted', + * 'NodeDown', 'NodeNewHealthReport', 'NodeHealthReportExpired', + * 'NodeOpenSucceeded', 'NodeOpenFailed', 'NodeRemovedFromCluster', 'NodeUp', + * 'PartitionNewHealthReport', 'PartitionHealthReportExpired', + * 'PartitionReconfigured', 'PartitionPrimaryMoveAnalysis', 'ServiceCreated', + * 'ServiceDeleted', 'ServiceNewHealthReport', 'ServiceHealthReportExpired', + * 'DeployedServicePackageNewHealthReport', + * 'DeployedServicePackageHealthReportExpired', + * 'StatefulReplicaNewHealthReport', 'StatefulReplicaHealthReportExpired', + * 'StatelessReplicaNewHealthReport', 'StatelessReplicaHealthReportExpired', + * 'ClusterNewHealthReport', 'ClusterHealthReportExpired', + * 'ClusterUpgradeCompleted', 'ClusterUpgradeDomainCompleted', + * 'ClusterUpgradeRollbackCompleted', 'ClusterUpgradeRollbackStarted', + * 'ClusterUpgradeStarted', 'ChaosStopped', 'ChaosStarted', + * 'ChaosCodePackageRestartScheduled', 'ChaosReplicaRemovalScheduled', + * 'ChaosPartitionSecondaryMoveScheduled', + * 'ChaosPartitionPrimaryMoveScheduled', 'ChaosReplicaRestartScheduled', + * 'ChaosNodeRestartScheduled' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: FabricEventKind = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum FabricEventKind { + ClusterEvent = 'ClusterEvent', + ContainerInstanceEvent = 'ContainerInstanceEvent', + NodeEvent = 'NodeEvent', + ApplicationEvent = 'ApplicationEvent', + ServiceEvent = 'ServiceEvent', + PartitionEvent = 'PartitionEvent', + ReplicaEvent = 'ReplicaEvent', + PartitionAnalysisEvent = 'PartitionAnalysisEvent', + ApplicationCreated = 'ApplicationCreated', + ApplicationDeleted = 'ApplicationDeleted', + ApplicationNewHealthReport = 'ApplicationNewHealthReport', + ApplicationHealthReportExpired = 'ApplicationHealthReportExpired', + ApplicationUpgradeCompleted = 'ApplicationUpgradeCompleted', + ApplicationUpgradeDomainCompleted = 'ApplicationUpgradeDomainCompleted', + ApplicationUpgradeRollbackCompleted = 'ApplicationUpgradeRollbackCompleted', + ApplicationUpgradeRollbackStarted = 'ApplicationUpgradeRollbackStarted', + ApplicationUpgradeStarted = 'ApplicationUpgradeStarted', + DeployedApplicationNewHealthReport = 'DeployedApplicationNewHealthReport', + DeployedApplicationHealthReportExpired = 'DeployedApplicationHealthReportExpired', + ApplicationProcessExited = 'ApplicationProcessExited', + ApplicationContainerInstanceExited = 'ApplicationContainerInstanceExited', + NodeAborted = 'NodeAborted', + NodeAddedToCluster = 'NodeAddedToCluster', + NodeClosed = 'NodeClosed', + NodeDeactivateCompleted = 'NodeDeactivateCompleted', + NodeDeactivateStarted = 'NodeDeactivateStarted', + NodeDown = 'NodeDown', + NodeNewHealthReport = 'NodeNewHealthReport', + NodeHealthReportExpired = 'NodeHealthReportExpired', + NodeOpenSucceeded = 'NodeOpenSucceeded', + NodeOpenFailed = 'NodeOpenFailed', + NodeRemovedFromCluster = 'NodeRemovedFromCluster', + NodeUp = 'NodeUp', + PartitionNewHealthReport = 'PartitionNewHealthReport', + PartitionHealthReportExpired = 'PartitionHealthReportExpired', + PartitionReconfigured = 'PartitionReconfigured', + PartitionPrimaryMoveAnalysis = 'PartitionPrimaryMoveAnalysis', + ServiceCreated = 'ServiceCreated', + ServiceDeleted = 'ServiceDeleted', + ServiceNewHealthReport = 'ServiceNewHealthReport', + ServiceHealthReportExpired = 'ServiceHealthReportExpired', + DeployedServicePackageNewHealthReport = 'DeployedServicePackageNewHealthReport', + DeployedServicePackageHealthReportExpired = 'DeployedServicePackageHealthReportExpired', + StatefulReplicaNewHealthReport = 'StatefulReplicaNewHealthReport', + StatefulReplicaHealthReportExpired = 'StatefulReplicaHealthReportExpired', + StatelessReplicaNewHealthReport = 'StatelessReplicaNewHealthReport', + StatelessReplicaHealthReportExpired = 'StatelessReplicaHealthReportExpired', + ClusterNewHealthReport = 'ClusterNewHealthReport', + ClusterHealthReportExpired = 'ClusterHealthReportExpired', + ClusterUpgradeCompleted = 'ClusterUpgradeCompleted', + ClusterUpgradeDomainCompleted = 'ClusterUpgradeDomainCompleted', + ClusterUpgradeRollbackCompleted = 'ClusterUpgradeRollbackCompleted', + ClusterUpgradeRollbackStarted = 'ClusterUpgradeRollbackStarted', + ClusterUpgradeStarted = 'ClusterUpgradeStarted', + ChaosStopped = 'ChaosStopped', + ChaosStarted = 'ChaosStarted', + ChaosCodePackageRestartScheduled = 'ChaosCodePackageRestartScheduled', + ChaosReplicaRemovalScheduled = 'ChaosReplicaRemovalScheduled', + ChaosPartitionSecondaryMoveScheduled = 'ChaosPartitionSecondaryMoveScheduled', + ChaosPartitionPrimaryMoveScheduled = 'ChaosPartitionPrimaryMoveScheduled', + ChaosReplicaRestartScheduled = 'ChaosReplicaRestartScheduled', + ChaosNodeRestartScheduled = 'ChaosNodeRestartScheduled', +} + +/** + * Defines values for HealthEvaluationKind. + * Possible values include: 'Invalid', 'Event', 'Replicas', 'Partitions', + * 'DeployedServicePackages', 'DeployedApplications', 'Services', 'Nodes', + * 'Applications', 'SystemApplication', 'UpgradeDomainDeployedApplications', + * 'UpgradeDomainNodes', 'Replica', 'Partition', 'DeployedServicePackage', + * 'DeployedApplication', 'Service', 'Node', 'Application', 'DeltaNodesCheck', + * 'UpgradeDomainDeltaNodesCheck', 'ApplicationTypeApplications' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: HealthEvaluationKind = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum HealthEvaluationKind { + /** + * Indicates that the health evaluation is invalid. The value is zero. + */ + Invalid = 'Invalid', + /** + * Indicates that the health evaluation is for a health event. The value is + * 1. + */ + Event = 'Event', + /** + * Indicates that the health evaluation is for the replicas of a partition. + * The value is 2. + */ + Replicas = 'Replicas', + /** + * Indicates that the health evaluation is for the partitions of a service. + * The value is 3. + */ + Partitions = 'Partitions', + /** + * Indicates that the health evaluation is for the deployed service packages + * of a deployed application. The value is 4. + */ + DeployedServicePackages = 'DeployedServicePackages', + /** + * Indicates that the health evaluation is for the deployed applications of + * an application. The value is 5. + */ + DeployedApplications = 'DeployedApplications', /** - * This phase is for internal use only. + * Indicates that the health evaluation is for services of an application. + * The value is 6. */ - Phase3 = 'Phase3', + Services = 'Services', /** - * This phase is for internal use only. + * Indicates that the health evaluation is for the cluster nodes. The value + * is 7. */ - Phase4 = 'Phase4', + Nodes = 'Nodes', /** - * This phase is for internal use only. + * Indicates that the health evaluation is for the cluster applications. The + * value is 8. */ - AbortPhaseZero = 'AbortPhaseZero', -} - -/** - * Defines values for ReconfigurationType. - * Possible values include: 'Unknown', 'SwapPrimary', 'Failover', 'Other' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ReconfigurationType = - * "someUnknownValueThatWillStillBeValid"; - * @readonly - * @enum {string} - */ -export enum ReconfigurationType { + Applications = 'Applications', /** - * Indicates the invalid reconfiguration type. + * Indicates that the health evaluation is for the system application. The + * value is 9. */ - Unknown = 'Unknown', + SystemApplication = 'SystemApplication', /** - * Specifies that the primary replica is being swapped with a different - * replica. + * Indicates that the health evaluation is for the deployed applications of + * an application in an upgrade domain. The value is 10. */ - SwapPrimary = 'SwapPrimary', + UpgradeDomainDeployedApplications = 'UpgradeDomainDeployedApplications', /** - * Reconfiguration triggered in response to a primary going down. This could - * be due to many reasons such as primary replica crashing etc. + * Indicates that the health evaluation is for the cluster nodes in an + * upgrade domain. The value is 11. */ - Failover = 'Failover', + UpgradeDomainNodes = 'UpgradeDomainNodes', /** - * Reconfigurations where the primary replica is not changing. + * Indicates that the health evaluation is for a replica. The value is 13. */ - Other = 'Other', -} - -/** - * Defines values for EntityKind. - * Possible values include: 'Invalid', 'Node', 'Partition', 'Service', - * 'Application', 'Replica', 'DeployedApplication', 'DeployedServicePackage', - * 'Cluster' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: EntityKind = "someUnknownValueThatWillStillBeValid"; - * @readonly - * @enum {string} - */ -export enum EntityKind { + Replica = 'Replica', /** - * Indicates an invalid entity kind. All Service Fabric enumerations have the - * invalid type. The value is zero. + * Indicates that the health evaluation is for a partition. The value is 14. */ - Invalid = 'Invalid', + Partition = 'Partition', /** - * Indicates the entity is a Service Fabric node. The value is 1. + * Indicates that the health evaluation is for a deployed service package. + * The value is 16. */ - Node = 'Node', + DeployedServicePackage = 'DeployedServicePackage', /** - * Indicates the entity is a Service Fabric partition. The value is 2. + * Indicates that the health evaluation is for a deployed application. The + * value is 17. */ - Partition = 'Partition', + DeployedApplication = 'DeployedApplication', /** - * Indicates the entity is a Service Fabric service. The value is 3. + * Indicates that the health evaluation is for a service. The value is 15. */ Service = 'Service', /** - * Indicates the entity is a Service Fabric application. The value is 4. + * Indicates that the health evaluation is for a node. The value is 12. */ - Application = 'Application', + Node = 'Node', /** - * Indicates the entity is a Service Fabric replica. The value is 5. + * Indicates that the health evaluation is for an application. The value is + * 18. */ - Replica = 'Replica', + Application = 'Application', /** - * Indicates the entity is a Service Fabric deployed application. The value - * is 6. + * Indicates that the health evaluation is for the delta of unhealthy cluster + * nodes. The value is 19. */ - DeployedApplication = 'DeployedApplication', + DeltaNodesCheck = 'DeltaNodesCheck', /** - * Indicates the entity is a Service Fabric deployed service package. The - * value is 7. + * Indicates that the health evaluation is for the delta of unhealthy upgrade + * domain cluster nodes. The value is 20. */ - DeployedServicePackage = 'DeployedServicePackage', + UpgradeDomainDeltaNodesCheck = 'UpgradeDomainDeltaNodesCheck', /** - * Indicates the entity is a Service Fabric cluster. The value is 8. + * – Indicates that the health evaluation is for applications of an + * application type. The value is 21. */ - Cluster = 'Cluster', + ApplicationTypeApplications = 'ApplicationTypeApplications', } /** - * Defines values for FabricErrorCodes. - * Possible values include: 'FABRIC_E_INVALID_PARTITION_KEY', - * 'FABRIC_E_IMAGEBUILDER_VALIDATION_ERROR', 'FABRIC_E_INVALID_ADDRESS', - * 'FABRIC_E_APPLICATION_NOT_UPGRADING', - * 'FABRIC_E_APPLICATION_UPGRADE_VALIDATION_ERROR', - * 'FABRIC_E_FABRIC_NOT_UPGRADING', 'FABRIC_E_FABRIC_UPGRADE_VALIDATION_ERROR', - * 'FABRIC_E_INVALID_CONFIGURATION', 'FABRIC_E_INVALID_NAME_URI', - * 'FABRIC_E_PATH_TOO_LONG', 'FABRIC_E_KEY_TOO_LARGE', - * 'FABRIC_E_SERVICE_AFFINITY_CHAIN_NOT_SUPPORTED', - * 'FABRIC_E_INVALID_ATOMIC_GROUP', 'FABRIC_E_VALUE_EMPTY', - * 'FABRIC_E_NODE_NOT_FOUND', 'FABRIC_E_APPLICATION_TYPE_NOT_FOUND', - * 'FABRIC_E_APPLICATION_NOT_FOUND', 'FABRIC_E_SERVICE_TYPE_NOT_FOUND', - * 'FABRIC_E_SERVICE_DOES_NOT_EXIST', - * 'FABRIC_E_SERVICE_TYPE_TEMPLATE_NOT_FOUND', - * 'FABRIC_E_CONFIGURATION_SECTION_NOT_FOUND', 'FABRIC_E_PARTITION_NOT_FOUND', - * 'FABRIC_E_REPLICA_DOES_NOT_EXIST', 'FABRIC_E_SERVICE_GROUP_DOES_NOT_EXIST', - * 'FABRIC_E_CONFIGURATION_PARAMETER_NOT_FOUND', - * 'FABRIC_E_DIRECTORY_NOT_FOUND', 'FABRIC_E_FABRIC_VERSION_NOT_FOUND', - * 'FABRIC_E_FILE_NOT_FOUND', 'FABRIC_E_NAME_DOES_NOT_EXIST', - * 'FABRIC_E_PROPERTY_DOES_NOT_EXIST', 'FABRIC_E_ENUMERATION_COMPLETED', - * 'FABRIC_E_SERVICE_MANIFEST_NOT_FOUND', 'FABRIC_E_KEY_NOT_FOUND', - * 'FABRIC_E_HEALTH_ENTITY_NOT_FOUND', - * 'FABRIC_E_APPLICATION_TYPE_ALREADY_EXISTS', - * 'FABRIC_E_APPLICATION_ALREADY_EXISTS', - * 'FABRIC_E_APPLICATION_ALREADY_IN_TARGET_VERSION', - * 'FABRIC_E_APPLICATION_TYPE_PROVISION_IN_PROGRESS', - * 'FABRIC_E_APPLICATION_UPGRADE_IN_PROGRESS', - * 'FABRIC_E_SERVICE_ALREADY_EXISTS', 'FABRIC_E_SERVICE_GROUP_ALREADY_EXISTS', - * 'FABRIC_E_APPLICATION_TYPE_IN_USE', - * 'FABRIC_E_FABRIC_ALREADY_IN_TARGET_VERSION', - * 'FABRIC_E_FABRIC_VERSION_ALREADY_EXISTS', 'FABRIC_E_FABRIC_VERSION_IN_USE', - * 'FABRIC_E_FABRIC_UPGRADE_IN_PROGRESS', 'FABRIC_E_NAME_ALREADY_EXISTS', - * 'FABRIC_E_NAME_NOT_EMPTY', 'FABRIC_E_PROPERTY_CHECK_FAILED', - * 'FABRIC_E_SERVICE_METADATA_MISMATCH', 'FABRIC_E_SERVICE_TYPE_MISMATCH', - * 'FABRIC_E_HEALTH_STALE_REPORT', 'FABRIC_E_SEQUENCE_NUMBER_CHECK_FAILED', - * 'FABRIC_E_NODE_HAS_NOT_STOPPED_YET', 'FABRIC_E_INSTANCE_ID_MISMATCH', - * 'FABRIC_E_VALUE_TOO_LARGE', 'FABRIC_E_NO_WRITE_QUORUM', - * 'FABRIC_E_NOT_PRIMARY', 'FABRIC_E_NOT_READY', - * 'FABRIC_E_RECONFIGURATION_PENDING', 'FABRIC_E_SERVICE_OFFLINE', 'E_ABORT', - * 'FABRIC_E_COMMUNICATION_ERROR', 'FABRIC_E_OPERATION_NOT_COMPLETE', - * 'FABRIC_E_TIMEOUT', 'FABRIC_E_NODE_IS_UP', 'E_FAIL', - * 'FABRIC_E_BACKUP_IS_ENABLED', - * 'FABRIC_E_RESTORE_SOURCE_TARGET_PARTITION_MISMATCH', - * 'FABRIC_E_INVALID_FOR_STATELESS_SERVICES', 'FABRIC_E_BACKUP_NOT_ENABLED', - * 'FABRIC_E_BACKUP_POLICY_NOT_EXISTING', - * 'FABRIC_E_FAULT_ANALYSIS_SERVICE_NOT_EXISTING', - * 'FABRIC_E_BACKUP_IN_PROGRESS', 'FABRIC_E_RESTORE_IN_PROGRESS', - * 'FABRIC_E_BACKUP_POLICY_ALREADY_EXISTING', - * 'FABRIC_E_INVALID_SERVICE_SCALING_POLICY', 'E_INVALIDARG', - * 'FABRIC_E_SINGLE_INSTANCE_APPLICATION_ALREADY_EXISTS', - * 'FABRIC_E_SINGLE_INSTANCE_APPLICATION_NOT_FOUND', - * 'FABRIC_E_VOLUME_ALREADY_EXISTS', 'FABRIC_E_VOLUME_NOT_FOUND', - * 'SerializationError' + * Defines values for NodeDeactivationIntent. + * Possible values include: 'Invalid', 'Pause', 'Restart', 'RemoveData', + * 'RemoveNode' * There could be more values for this enum apart from the ones defined here.If * you want to set a value that is not from the known values then you can do - * the following: - * let param: FabricErrorCodes = - * "someUnknownValueThatWillStillBeValid"; - * @readonly - * @enum {string} - */ -export enum FabricErrorCodes { - FABRICEINVALIDPARTITIONKEY = 'FABRIC_E_INVALID_PARTITION_KEY', - FABRICEIMAGEBUILDERVALIDATIONERROR = 'FABRIC_E_IMAGEBUILDER_VALIDATION_ERROR', - FABRICEINVALIDADDRESS = 'FABRIC_E_INVALID_ADDRESS', - FABRICEAPPLICATIONNOTUPGRADING = 'FABRIC_E_APPLICATION_NOT_UPGRADING', - FABRICEAPPLICATIONUPGRADEVALIDATIONERROR = 'FABRIC_E_APPLICATION_UPGRADE_VALIDATION_ERROR', - FABRICEFABRICNOTUPGRADING = 'FABRIC_E_FABRIC_NOT_UPGRADING', - FABRICEFABRICUPGRADEVALIDATIONERROR = 'FABRIC_E_FABRIC_UPGRADE_VALIDATION_ERROR', - FABRICEINVALIDCONFIGURATION = 'FABRIC_E_INVALID_CONFIGURATION', - FABRICEINVALIDNAMEURI = 'FABRIC_E_INVALID_NAME_URI', - FABRICEPATHTOOLONG = 'FABRIC_E_PATH_TOO_LONG', - FABRICEKEYTOOLARGE = 'FABRIC_E_KEY_TOO_LARGE', - FABRICESERVICEAFFINITYCHAINNOTSUPPORTED = 'FABRIC_E_SERVICE_AFFINITY_CHAIN_NOT_SUPPORTED', - FABRICEINVALIDATOMICGROUP = 'FABRIC_E_INVALID_ATOMIC_GROUP', - FABRICEVALUEEMPTY = 'FABRIC_E_VALUE_EMPTY', - FABRICENODENOTFOUND = 'FABRIC_E_NODE_NOT_FOUND', - FABRICEAPPLICATIONTYPENOTFOUND = 'FABRIC_E_APPLICATION_TYPE_NOT_FOUND', - FABRICEAPPLICATIONNOTFOUND = 'FABRIC_E_APPLICATION_NOT_FOUND', - FABRICESERVICETYPENOTFOUND = 'FABRIC_E_SERVICE_TYPE_NOT_FOUND', - FABRICESERVICEDOESNOTEXIST = 'FABRIC_E_SERVICE_DOES_NOT_EXIST', - FABRICESERVICETYPETEMPLATENOTFOUND = 'FABRIC_E_SERVICE_TYPE_TEMPLATE_NOT_FOUND', - FABRICECONFIGURATIONSECTIONNOTFOUND = 'FABRIC_E_CONFIGURATION_SECTION_NOT_FOUND', - FABRICEPARTITIONNOTFOUND = 'FABRIC_E_PARTITION_NOT_FOUND', - FABRICEREPLICADOESNOTEXIST = 'FABRIC_E_REPLICA_DOES_NOT_EXIST', - FABRICESERVICEGROUPDOESNOTEXIST = 'FABRIC_E_SERVICE_GROUP_DOES_NOT_EXIST', - FABRICECONFIGURATIONPARAMETERNOTFOUND = 'FABRIC_E_CONFIGURATION_PARAMETER_NOT_FOUND', - FABRICEDIRECTORYNOTFOUND = 'FABRIC_E_DIRECTORY_NOT_FOUND', - FABRICEFABRICVERSIONNOTFOUND = 'FABRIC_E_FABRIC_VERSION_NOT_FOUND', - FABRICEFILENOTFOUND = 'FABRIC_E_FILE_NOT_FOUND', - FABRICENAMEDOESNOTEXIST = 'FABRIC_E_NAME_DOES_NOT_EXIST', - FABRICEPROPERTYDOESNOTEXIST = 'FABRIC_E_PROPERTY_DOES_NOT_EXIST', - FABRICEENUMERATIONCOMPLETED = 'FABRIC_E_ENUMERATION_COMPLETED', - FABRICESERVICEMANIFESTNOTFOUND = 'FABRIC_E_SERVICE_MANIFEST_NOT_FOUND', - FABRICEKEYNOTFOUND = 'FABRIC_E_KEY_NOT_FOUND', - FABRICEHEALTHENTITYNOTFOUND = 'FABRIC_E_HEALTH_ENTITY_NOT_FOUND', - FABRICEAPPLICATIONTYPEALREADYEXISTS = 'FABRIC_E_APPLICATION_TYPE_ALREADY_EXISTS', - FABRICEAPPLICATIONALREADYEXISTS = 'FABRIC_E_APPLICATION_ALREADY_EXISTS', - FABRICEAPPLICATIONALREADYINTARGETVERSION = 'FABRIC_E_APPLICATION_ALREADY_IN_TARGET_VERSION', - FABRICEAPPLICATIONTYPEPROVISIONINPROGRESS = 'FABRIC_E_APPLICATION_TYPE_PROVISION_IN_PROGRESS', - FABRICEAPPLICATIONUPGRADEINPROGRESS = 'FABRIC_E_APPLICATION_UPGRADE_IN_PROGRESS', - FABRICESERVICEALREADYEXISTS = 'FABRIC_E_SERVICE_ALREADY_EXISTS', - FABRICESERVICEGROUPALREADYEXISTS = 'FABRIC_E_SERVICE_GROUP_ALREADY_EXISTS', - FABRICEAPPLICATIONTYPEINUSE = 'FABRIC_E_APPLICATION_TYPE_IN_USE', - FABRICEFABRICALREADYINTARGETVERSION = 'FABRIC_E_FABRIC_ALREADY_IN_TARGET_VERSION', - FABRICEFABRICVERSIONALREADYEXISTS = 'FABRIC_E_FABRIC_VERSION_ALREADY_EXISTS', - FABRICEFABRICVERSIONINUSE = 'FABRIC_E_FABRIC_VERSION_IN_USE', - FABRICEFABRICUPGRADEINPROGRESS = 'FABRIC_E_FABRIC_UPGRADE_IN_PROGRESS', - FABRICENAMEALREADYEXISTS = 'FABRIC_E_NAME_ALREADY_EXISTS', - FABRICENAMENOTEMPTY = 'FABRIC_E_NAME_NOT_EMPTY', - FABRICEPROPERTYCHECKFAILED = 'FABRIC_E_PROPERTY_CHECK_FAILED', - FABRICESERVICEMETADATAMISMATCH = 'FABRIC_E_SERVICE_METADATA_MISMATCH', - FABRICESERVICETYPEMISMATCH = 'FABRIC_E_SERVICE_TYPE_MISMATCH', - FABRICEHEALTHSTALEREPORT = 'FABRIC_E_HEALTH_STALE_REPORT', - FABRICESEQUENCENUMBERCHECKFAILED = 'FABRIC_E_SEQUENCE_NUMBER_CHECK_FAILED', - FABRICENODEHASNOTSTOPPEDYET = 'FABRIC_E_NODE_HAS_NOT_STOPPED_YET', - FABRICEINSTANCEIDMISMATCH = 'FABRIC_E_INSTANCE_ID_MISMATCH', - FABRICEVALUETOOLARGE = 'FABRIC_E_VALUE_TOO_LARGE', - FABRICENOWRITEQUORUM = 'FABRIC_E_NO_WRITE_QUORUM', - FABRICENOTPRIMARY = 'FABRIC_E_NOT_PRIMARY', - FABRICENOTREADY = 'FABRIC_E_NOT_READY', - FABRICERECONFIGURATIONPENDING = 'FABRIC_E_RECONFIGURATION_PENDING', - FABRICESERVICEOFFLINE = 'FABRIC_E_SERVICE_OFFLINE', - EABORT = 'E_ABORT', - FABRICECOMMUNICATIONERROR = 'FABRIC_E_COMMUNICATION_ERROR', - FABRICEOPERATIONNOTCOMPLETE = 'FABRIC_E_OPERATION_NOT_COMPLETE', - FABRICETIMEOUT = 'FABRIC_E_TIMEOUT', - FABRICENODEISUP = 'FABRIC_E_NODE_IS_UP', - EFAIL = 'E_FAIL', - FABRICEBACKUPISENABLED = 'FABRIC_E_BACKUP_IS_ENABLED', - FABRICERESTORESOURCETARGETPARTITIONMISMATCH = 'FABRIC_E_RESTORE_SOURCE_TARGET_PARTITION_MISMATCH', - FABRICEINVALIDFORSTATELESSSERVICES = 'FABRIC_E_INVALID_FOR_STATELESS_SERVICES', - FABRICEBACKUPNOTENABLED = 'FABRIC_E_BACKUP_NOT_ENABLED', - FABRICEBACKUPPOLICYNOTEXISTING = 'FABRIC_E_BACKUP_POLICY_NOT_EXISTING', - FABRICEFAULTANALYSISSERVICENOTEXISTING = 'FABRIC_E_FAULT_ANALYSIS_SERVICE_NOT_EXISTING', - FABRICEBACKUPINPROGRESS = 'FABRIC_E_BACKUP_IN_PROGRESS', - FABRICERESTOREINPROGRESS = 'FABRIC_E_RESTORE_IN_PROGRESS', - FABRICEBACKUPPOLICYALREADYEXISTING = 'FABRIC_E_BACKUP_POLICY_ALREADY_EXISTING', - FABRICEINVALIDSERVICESCALINGPOLICY = 'FABRIC_E_INVALID_SERVICE_SCALING_POLICY', - EINVALIDARG = 'E_INVALIDARG', - FABRICESINGLEINSTANCEAPPLICATIONALREADYEXISTS = 'FABRIC_E_SINGLE_INSTANCE_APPLICATION_ALREADY_EXISTS', - FABRICESINGLEINSTANCEAPPLICATIONNOTFOUND = 'FABRIC_E_SINGLE_INSTANCE_APPLICATION_NOT_FOUND', - FABRICEVOLUMEALREADYEXISTS = 'FABRIC_E_VOLUME_ALREADY_EXISTS', - FABRICEVOLUMENOTFOUND = 'FABRIC_E_VOLUME_NOT_FOUND', - SerializationError = 'SerializationError', + * the following: + * let param: NodeDeactivationIntent = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum NodeDeactivationIntent { + /** + * Indicates the node deactivation intent is invalid. All Service Fabric + * enumerations have the invalid type. The value is zero. This value is not + * used. + */ + Invalid = 'Invalid', + /** + * Indicates that the node should be paused. The value is 1. + */ + Pause = 'Pause', + /** + * Indicates that the intent is for the node to be restarted after a short + * period of time. Service Fabric does not restart the node, this action is + * done outside of Service Fabric. The value is 2. + */ + Restart = 'Restart', + /** + * Indicates that the intent is to reimage the node. Service Fabric does not + * reimage the node, this action is done outside of Service Fabric. The value + * is 3. + */ + RemoveData = 'RemoveData', + /** + * Indicates that the node is being decommissioned and is not expected to + * return. Service Fabric does not decommission the node, this action is done + * outside of Service Fabric. The value is 4. + */ + RemoveNode = 'RemoveNode', } /** - * Defines values for FabricEventKind. - * Possible values include: 'ClusterEvent', 'ContainerInstanceEvent', - * 'NodeEvent', 'ApplicationEvent', 'ServiceEvent', 'PartitionEvent', - * 'ReplicaEvent', 'PartitionAnalysisEvent', 'ApplicationCreated', - * 'ApplicationDeleted', 'ApplicationHealthReportCreated', - * 'ApplicationHealthReportExpired', 'ApplicationUpgradeComplete', - * 'ApplicationUpgradeDomainComplete', 'ApplicationUpgradeRollbackComplete', - * 'ApplicationUpgradeRollbackStart', 'ApplicationUpgradeStart', - * 'DeployedApplicationHealthReportCreated', - * 'DeployedApplicationHealthReportExpired', 'ProcessDeactivated', - * 'ContainerDeactivated', 'NodeAborted', 'NodeAborting', 'NodeAdded', - * 'NodeClose', 'NodeClosing', 'NodeDeactivateComplete', 'NodeDeactivateStart', - * 'NodeDown', 'NodeHealthReportCreated', 'NodeHealthReportExpired', - * 'NodeOpenedSuccess', 'NodeOpenFailed', 'NodeOpening', 'NodeRemoved', - * 'NodeUp', 'PartitionHealthReportCreated', 'PartitionHealthReportExpired', - * 'PartitionReconfigurationCompleted', 'PartitionPrimaryMoveAnalysis', - * 'ServiceCreated', 'ServiceDeleted', 'ServiceHealthReportCreated', - * 'ServiceHealthReportExpired', 'DeployedServiceHealthReportCreated', - * 'DeployedServiceHealthReportExpired', 'StatefulReplicaHealthReportCreated', - * 'StatefulReplicaHealthReportExpired', 'StatelessReplicaHealthReportCreated', - * 'StatelessReplicaHealthReportExpired', 'ClusterHealthReportCreated', - * 'ClusterHealthReportExpired', 'ClusterUpgradeComplete', - * 'ClusterUpgradeDomainComplete', 'ClusterUpgradeRollbackComplete', - * 'ClusterUpgradeRollbackStart', 'ClusterUpgradeStart', 'ChaosStopped', - * 'ChaosStarted', 'ChaosRestartNodeFaultCompleted', - * 'ChaosRestartCodePackageFaultScheduled', - * 'ChaosRestartCodePackageFaultCompleted', 'ChaosRemoveReplicaFaultScheduled', - * 'ChaosRemoveReplicaFaultCompleted', 'ChaosMoveSecondaryFaultScheduled', - * 'ChaosMovePrimaryFaultScheduled', 'ChaosRestartReplicaFaultScheduled', - * 'ChaosRestartNodeFaultScheduled' + * Defines values for NodeDeactivationStatus. + * Possible values include: 'None', 'SafetyCheckInProgress', + * 'SafetyCheckComplete', 'Completed' * There could be more values for this enum apart from the ones defined here.If * you want to set a value that is not from the known values then you can do * the following: - * let param: FabricEventKind = - * "someUnknownValueThatWillStillBeValid"; + * let param: NodeDeactivationStatus = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum FabricEventKind { - ClusterEvent = 'ClusterEvent', - ContainerInstanceEvent = 'ContainerInstanceEvent', - NodeEvent = 'NodeEvent', - ApplicationEvent = 'ApplicationEvent', - ServiceEvent = 'ServiceEvent', - PartitionEvent = 'PartitionEvent', - ReplicaEvent = 'ReplicaEvent', - PartitionAnalysisEvent = 'PartitionAnalysisEvent', - ApplicationCreated = 'ApplicationCreated', - ApplicationDeleted = 'ApplicationDeleted', - ApplicationHealthReportCreated = 'ApplicationHealthReportCreated', - ApplicationHealthReportExpired = 'ApplicationHealthReportExpired', - ApplicationUpgradeComplete = 'ApplicationUpgradeComplete', - ApplicationUpgradeDomainComplete = 'ApplicationUpgradeDomainComplete', - ApplicationUpgradeRollbackComplete = 'ApplicationUpgradeRollbackComplete', - ApplicationUpgradeRollbackStart = 'ApplicationUpgradeRollbackStart', - ApplicationUpgradeStart = 'ApplicationUpgradeStart', - DeployedApplicationHealthReportCreated = 'DeployedApplicationHealthReportCreated', - DeployedApplicationHealthReportExpired = 'DeployedApplicationHealthReportExpired', - ProcessDeactivated = 'ProcessDeactivated', - ContainerDeactivated = 'ContainerDeactivated', - NodeAborted = 'NodeAborted', - NodeAborting = 'NodeAborting', - NodeAdded = 'NodeAdded', - NodeClose = 'NodeClose', - NodeClosing = 'NodeClosing', - NodeDeactivateComplete = 'NodeDeactivateComplete', - NodeDeactivateStart = 'NodeDeactivateStart', - NodeDown = 'NodeDown', - NodeHealthReportCreated = 'NodeHealthReportCreated', - NodeHealthReportExpired = 'NodeHealthReportExpired', - NodeOpenedSuccess = 'NodeOpenedSuccess', - NodeOpenFailed = 'NodeOpenFailed', - NodeOpening = 'NodeOpening', - NodeRemoved = 'NodeRemoved', - NodeUp = 'NodeUp', - PartitionHealthReportCreated = 'PartitionHealthReportCreated', - PartitionHealthReportExpired = 'PartitionHealthReportExpired', - PartitionReconfigurationCompleted = 'PartitionReconfigurationCompleted', - PartitionPrimaryMoveAnalysis = 'PartitionPrimaryMoveAnalysis', - ServiceCreated = 'ServiceCreated', - ServiceDeleted = 'ServiceDeleted', - ServiceHealthReportCreated = 'ServiceHealthReportCreated', - ServiceHealthReportExpired = 'ServiceHealthReportExpired', - DeployedServiceHealthReportCreated = 'DeployedServiceHealthReportCreated', - DeployedServiceHealthReportExpired = 'DeployedServiceHealthReportExpired', - StatefulReplicaHealthReportCreated = 'StatefulReplicaHealthReportCreated', - StatefulReplicaHealthReportExpired = 'StatefulReplicaHealthReportExpired', - StatelessReplicaHealthReportCreated = 'StatelessReplicaHealthReportCreated', - StatelessReplicaHealthReportExpired = 'StatelessReplicaHealthReportExpired', - ClusterHealthReportCreated = 'ClusterHealthReportCreated', - ClusterHealthReportExpired = 'ClusterHealthReportExpired', - ClusterUpgradeComplete = 'ClusterUpgradeComplete', - ClusterUpgradeDomainComplete = 'ClusterUpgradeDomainComplete', - ClusterUpgradeRollbackComplete = 'ClusterUpgradeRollbackComplete', - ClusterUpgradeRollbackStart = 'ClusterUpgradeRollbackStart', - ClusterUpgradeStart = 'ClusterUpgradeStart', - ChaosStopped = 'ChaosStopped', - ChaosStarted = 'ChaosStarted', - ChaosRestartNodeFaultCompleted = 'ChaosRestartNodeFaultCompleted', - ChaosRestartCodePackageFaultScheduled = 'ChaosRestartCodePackageFaultScheduled', - ChaosRestartCodePackageFaultCompleted = 'ChaosRestartCodePackageFaultCompleted', - ChaosRemoveReplicaFaultScheduled = 'ChaosRemoveReplicaFaultScheduled', - ChaosRemoveReplicaFaultCompleted = 'ChaosRemoveReplicaFaultCompleted', - ChaosMoveSecondaryFaultScheduled = 'ChaosMoveSecondaryFaultScheduled', - ChaosMovePrimaryFaultScheduled = 'ChaosMovePrimaryFaultScheduled', - ChaosRestartReplicaFaultScheduled = 'ChaosRestartReplicaFaultScheduled', - ChaosRestartNodeFaultScheduled = 'ChaosRestartNodeFaultScheduled', +export enum NodeDeactivationStatus { + /** + * No status is associated with the task. The value is zero. + */ + None = 'None', + /** + * When a node is deactivated Service Fabric performs checks to ensure that + * the operation is safe to proceed to ensure availability of the service and + * reliability of the state. This value indicates that one or more safety + * checks are in progress. The value is 1. + */ + SafetyCheckInProgress = 'SafetyCheckInProgress', + /** + * When a node is deactivated Service Fabric performs checks to ensure that + * the operation is safe to proceed to ensure availability of the service and + * reliability of the state. This value indicates that all safety checks have + * been completed. The value is 2. + */ + SafetyCheckComplete = 'SafetyCheckComplete', + /** + * The task is completed. The value is 3. + */ + Completed = 'Completed', } /** - * Defines values for HealthEvaluationKind. - * Possible values include: 'Invalid', 'Event', 'Replicas', 'Partitions', - * 'DeployedServicePackages', 'DeployedApplications', 'Services', 'Nodes', - * 'Applications', 'SystemApplication', 'UpgradeDomainDeployedApplications', - * 'UpgradeDomainNodes', 'Replica', 'Partition', 'DeployedServicePackage', - * 'DeployedApplication', 'Service', 'Node', 'Application', 'DeltaNodesCheck', - * 'UpgradeDomainDeltaNodesCheck', 'ApplicationTypeApplications' + * Defines values for NodeDeactivationTaskType. + * Possible values include: 'Invalid', 'Infrastructure', 'Repair', 'Client' * There could be more values for this enum apart from the ones defined here.If * you want to set a value that is not from the known values then you can do * the following: - * let param: HealthEvaluationKind = - * "someUnknownValueThatWillStillBeValid"; + * let param: NodeDeactivationTaskType = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum HealthEvaluationKind { +export enum NodeDeactivationTaskType { /** - * Indicates that the health evaluation is invalid. The value is zero. + * Indicates the node deactivation task type is invalid. All Service Fabric + * enumerations have the invalid type. The value is zero. This value is not + * used. */ Invalid = 'Invalid', /** - * Indicates that the health evaluation is for a health event. The value is - * 1. + * Specifies the task created by Infrastructure hosting the nodes. The value + * is 1. */ - Event = 'Event', + Infrastructure = 'Infrastructure', /** - * Indicates that the health evaluation is for the replicas of a partition. - * The value is 2. + * Specifies the task that was created by the Repair Manager service. The + * value is 2. */ - Replicas = 'Replicas', + Repair = 'Repair', /** - * Indicates that the health evaluation is for the partitions of a service. - * The value is 3. + * Specifies that the task was created by using the public API. The value is + * 3. */ - Partitions = 'Partitions', + Client = 'Client', +} + +/** + * Defines values for NodeStatus. + * Possible values include: 'Invalid', 'Up', 'Down', 'Enabling', 'Disabling', + * 'Disabled', 'Unknown', 'Removed' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: NodeStatus = "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum NodeStatus { /** - * Indicates that the health evaluation is for the deployed service packages - * of a deployed application. The value is 4. + * Indicates the node status is invalid. All Service Fabric enumerations have + * the invalid type. The value is zero. */ - DeployedServicePackages = 'DeployedServicePackages', + Invalid = 'Invalid', /** - * Indicates that the health evaluation is for the deployed applications of - * an application. The value is 5. + * Indicates the node is up. The value is 1. */ - DeployedApplications = 'DeployedApplications', + Up = 'Up', /** - * Indicates that the health evaluation is for services of an application. - * The value is 6. + * Indicates the node is down. The value is 2. */ - Services = 'Services', + Down = 'Down', /** - * Indicates that the health evaluation is for the cluster nodes. The value - * is 7. + * Indicates the node is in process of being enabled. The value is 3. */ - Nodes = 'Nodes', + Enabling = 'Enabling', /** - * Indicates that the health evaluation is for the cluster applications. The - * value is 8. + * Indicates the node is in the process of being disabled. The value is 4. */ - Applications = 'Applications', + Disabling = 'Disabling', /** - * Indicates that the health evaluation is for the system application. The - * value is 9. + * Indicates the node is disabled. The value is 5. */ - SystemApplication = 'SystemApplication', + Disabled = 'Disabled', /** - * Indicates that the health evaluation is for the deployed applications of - * an application in an upgrade domain. The value is 10. + * Indicates the node is unknown. A node would be in Unknown state if Service + * Fabric does not have authoritative information about that node. This can + * happen if the system learns about a node at runtime.The value is 6. */ - UpgradeDomainDeployedApplications = 'UpgradeDomainDeployedApplications', + Unknown = 'Unknown', /** - * Indicates that the health evaluation is for the cluster nodes in an - * upgrade domain. The value is 11. + * Indicates the node is removed. A node would be in Removed state if + * NodeStateRemoved API has been called for this node. In other words, + * Service Fabric has been informed that the persisted state on the node has + * been permanently lost. The value is 7. */ - UpgradeDomainNodes = 'UpgradeDomainNodes', + Removed = 'Removed', +} + +/** + * Defines values for ServicePartitionStatus. + * Possible values include: 'Invalid', 'Ready', 'NotReady', 'InQuorumLoss', + * 'Reconfiguring', 'Deleting' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: ServicePartitionStatus = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum ServicePartitionStatus { /** - * Indicates that the health evaluation is for a replica. The value is 13. + * Indicates the partition status is invalid. All Service Fabric enumerations + * have the invalid type. The value is zero. */ - Replica = 'Replica', + Invalid = 'Invalid', + /** + * Indicates that the partition is ready. This means that for a stateless + * service partition there is at least one instance that is up and for a + * stateful service partition the number of ready replicas is greater than or + * equal to the MinReplicaSetSize. The value is 1. + */ + Ready = 'Ready', + /** + * Indicates that the partition is not ready. This status is returned when + * none of the other states apply. The value is 2. + */ + NotReady = 'NotReady', + /** + * Indicates that the partition is in quorum loss. This means that number of + * replicas that are up and participating in a replica set is less than + * MinReplicaSetSize for this partition. The value is 3. + */ + InQuorumLoss = 'InQuorumLoss', + /** + * Indicates that the partition is undergoing reconfiguration of its replica + * sets. This can happen due to failover, upgrade, load balancing or addition + * or removal of replicas from the replica set. The value is 4. + */ + Reconfiguring = 'Reconfiguring', + /** + * Indicates that the partition is being deleted. The value is 5. + */ + Deleting = 'Deleting', +} + +/** + * Defines values for ServiceStatus. + * Possible values include: 'Unknown', 'Active', 'Upgrading', 'Deleting', + * 'Creating', 'Failed' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: ServiceStatus = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum ServiceStatus { /** - * Indicates that the health evaluation is for a partition. The value is 14. + * Indicates the service status is unknown. The value is zero. */ - Partition = 'Partition', + Unknown = 'Unknown', /** - * Indicates that the health evaluation is for a deployed service package. - * The value is 16. + * Indicates the service status is active. The value is 1. */ - DeployedServicePackage = 'DeployedServicePackage', + Active = 'Active', /** - * Indicates that the health evaluation is for a deployed application. The - * value is 17. + * Indicates the service is upgrading. The value is 2. */ - DeployedApplication = 'DeployedApplication', + Upgrading = 'Upgrading', /** - * Indicates that the health evaluation is for a service. The value is 15. + * Indicates the service is being deleted. The value is 3. */ - Service = 'Service', + Deleting = 'Deleting', /** - * Indicates that the health evaluation is for a node. The value is 12. + * Indicates the service is being created. The value is 4. */ - Node = 'Node', + Creating = 'Creating', /** - * Indicates that the health evaluation is for an application. The value is - * 18. + * Indicates creation or deletion was terminated due to persistent failures. + * Another create/delete request can be accepted. The value is 5. */ - Application = 'Application', + Failed = 'Failed', +} + +/** + * Defines values for ProvisionApplicationTypeKind. + * Possible values include: 'Invalid', 'ImageStorePath', 'ExternalStore' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: ProvisionApplicationTypeKind = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum ProvisionApplicationTypeKind { /** - * Indicates that the health evaluation is for the delta of unhealthy cluster - * nodes. The value is 19. + * Indicates that the provision kind is invalid. This value is default and + * should not be used. The value is zero. */ - DeltaNodesCheck = 'DeltaNodesCheck', + Invalid = 'Invalid', /** - * Indicates that the health evaluation is for the delta of unhealthy upgrade - * domain cluster nodes. The value is 20. + * Indicates that the provision is for a package that was previously uploaded + * to the image store. The value is 1. */ - UpgradeDomainDeltaNodesCheck = 'UpgradeDomainDeltaNodesCheck', + ImageStorePath = 'ImageStorePath', /** - * – Indicates that the health evaluation is for applications of an - * application type. The value is 21. + * Indicates that the provision is for an application package that was + * previously uploaded to an external store. The application package ends + * with the extension *.sfpkg. The value is 2. */ - ApplicationTypeApplications = 'ApplicationTypeApplications', + ExternalStore = 'ExternalStore', } /** - * Defines values for NodeDeactivationIntent. - * Possible values include: 'Invalid', 'Pause', 'Restart', 'RemoveData', - * 'RemoveNode' + * Defines values for UpgradeType. + * Possible values include: 'Invalid', 'Rolling', 'Rolling_ForceRestart' * There could be more values for this enum apart from the ones defined here.If * you want to set a value that is not from the known values then you can do * the following: - * let param: NodeDeactivationIntent = - * "someUnknownValueThatWillStillBeValid"; + * let param: UpgradeType = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum NodeDeactivationIntent { +export enum UpgradeType { /** - * Indicates the node deactivation intent is invalid. All Service Fabric - * enumerations have the invalid type. The value is zero. This value is not - * used. + * Indicates the upgrade kind is invalid. All Service Fabric enumerations + * have the invalid type. The value is zero. */ Invalid = 'Invalid', /** - * Indicates that the node should be paused. The value is 1. - */ - Pause = 'Pause', - /** - * Indicates that the intent is for the node to be restarted after a short - * period of time. Service Fabric does not restart the node, this action is - * done outside of Service Fabric. The value is 2. - */ - Restart = 'Restart', - /** - * Indicates that the intent is to reimage the node. Service Fabric does not - * reimage the node, this action is done outside of Service Fabric. The value - * is 3. + * The upgrade progresses one upgrade domain at a time. The value is 1. */ - RemoveData = 'RemoveData', + Rolling = 'Rolling', /** - * Indicates that the node is being decommissioned and is not expected to - * return. Service Fabric does not decommission the node, this action is done - * outside of Service Fabric. The value is 4. + * The upgrade gets restarted by force. The value is 2. */ - RemoveNode = 'RemoveNode', + RollingForceRestart = 'Rolling_ForceRestart', } /** - * Defines values for NodeDeactivationStatus. - * Possible values include: 'None', 'SafetyCheckInProgress', - * 'SafetyCheckComplete', 'Completed' + * Defines values for SafetyCheckKind. + * Possible values include: 'Invalid', 'EnsureSeedNodeQuorum', + * 'EnsurePartitionQuorum', 'WaitForPrimaryPlacement', 'WaitForPrimarySwap', + * 'WaitForReconfiguration', 'WaitForInbuildReplica', 'EnsureAvailability' * There could be more values for this enum apart from the ones defined here.If * you want to set a value that is not from the known values then you can do * the following: - * let param: NodeDeactivationStatus = - * "someUnknownValueThatWillStillBeValid"; + * let param: SafetyCheckKind = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum NodeDeactivationStatus { +export enum SafetyCheckKind { /** - * No status is associated with the task. The value is zero. + * Indicates that the upgrade safety check kind is invalid. All Service + * Fabric enumerations have the invalid type. The value is zero. */ - None = 'None', + Invalid = 'Invalid', /** - * When a node is deactivated Service Fabric performs checks to ensure that - * the operation is safe to proceed to ensure availability of the service and - * reliability of the state. This value indicates that one or more safety - * checks are in progress. The value is 1. + * Indicates that if we bring down the node then this will result in global + * seed node quorum loss. The value is 1. */ - SafetyCheckInProgress = 'SafetyCheckInProgress', + EnsureSeedNodeQuorum = 'EnsureSeedNodeQuorum', /** - * When a node is deactivated Service Fabric performs checks to ensure that - * the operation is safe to proceed to ensure availability of the service and - * reliability of the state. This value indicates that all safety checks have - * been completed. The value is 2. + * Indicates that there is some partition for which if we bring down the + * replica on the node, it will result in quorum loss for that partition. The + * value is 2. */ - SafetyCheckComplete = 'SafetyCheckComplete', + EnsurePartitionQuorum = 'EnsurePartitionQuorum', /** - * The task is completed. The value is 3. + * Indicates that there is some replica on the node that was moved out of + * this node due to upgrade. Service Fabric is now waiting for the primary to + * be moved back to this node. The value is 3. */ - Completed = 'Completed', + WaitForPrimaryPlacement = 'WaitForPrimaryPlacement', + /** + * Indicates that Service Fabric is waiting for a primary replica to be moved + * out of the node before starting upgrade on that node. The value is 4. + */ + WaitForPrimarySwap = 'WaitForPrimarySwap', + /** + * Indicates that there is some replica on the node that is involved in a + * reconfiguration. Service Fabric is waiting for the reconfiguration to be + * complete before staring upgrade on that node. The value is 5. + */ + WaitForReconfiguration = 'WaitForReconfiguration', + /** + * Indicates that there is either a replica on the node that is going through + * copy, or there is a primary replica on the node that is copying data to + * some other replica. In both cases, bringing down the replica on the node + * due to upgrade will abort the copy. The value is 6. + */ + WaitForInbuildReplica = 'WaitForInbuildReplica', + /** + * Indicates that there is either a stateless service partition on the node + * having exactly one instance, or there is a primary replica on the node for + * which the partition is quorum loss. In both cases, bringing down the + * replicas due to upgrade will result in loss of availability. The value is + * 7. + */ + EnsureAvailability = 'EnsureAvailability', } /** - * Defines values for NodeDeactivationTaskType. - * Possible values include: 'Invalid', 'Infrastructure', 'Repair', 'Client' + * Defines values for CreateFabricDump. + * Possible values include: 'False', 'True' * There could be more values for this enum apart from the ones defined here.If * you want to set a value that is not from the known values then you can do * the following: - * let param: NodeDeactivationTaskType = - * "someUnknownValueThatWillStillBeValid"; + * let param: CreateFabricDump = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum NodeDeactivationTaskType { - /** - * Indicates the node deactivation task type is invalid. All Service Fabric - * enumerations have the invalid type. The value is zero. This value is not - * used. - */ - Invalid = 'Invalid', - /** - * Specifies the task created by Infrastructure hosting the nodes. The value - * is 1. - */ - Infrastructure = 'Infrastructure', +export enum CreateFabricDump { + False = 'False', + True = 'True', +} + +/** + * Defines values for ServicePackageActivationMode. + * Possible values include: 'SharedProcess', 'ExclusiveProcess' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: ServicePackageActivationMode = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum ServicePackageActivationMode { /** - * Specifies the task that was created by the Repair Manager service. The - * value is 2. + * This is the default activation mode. With this activation mode, replicas + * or instances from different partition(s) of service, on a given node, will + * share same activation of service package on a node. The value is zero. */ - Repair = 'Repair', + SharedProcess = 'SharedProcess', /** - * Specifies that the task was created by using the public API. The value is - * 3. + * With this activation mode, each replica or instance of service, on a given + * node, will have its own dedicated activation of service package on a node. + * The value is 1. */ - Client = 'Client', + ExclusiveProcess = 'ExclusiveProcess', } /** - * Defines values for NodeStatus. - * Possible values include: 'Invalid', 'Up', 'Down', 'Enabling', 'Disabling', - * 'Disabled', 'Unknown', 'Removed' + * Defines values for ServiceKind. + * Possible values include: 'Invalid', 'Stateless', 'Stateful' * There could be more values for this enum apart from the ones defined here.If * you want to set a value that is not from the known values then you can do * the following: - * let param: NodeStatus = "someUnknownValueThatWillStillBeValid"; + * let param: ServiceKind = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum NodeStatus { +export enum ServiceKind { /** - * Indicates the node status is invalid. All Service Fabric enumerations have - * the invalid type. The value is zero. + * Indicates the service kind is invalid. All Service Fabric enumerations + * have the invalid type. The value is zero. */ Invalid = 'Invalid', /** - * Indicates the node is up. The value is 1. - */ - Up = 'Up', - /** - * Indicates the node is down. The value is 2. + * Does not use Service Fabric to make its state highly available or + * reliable. The value is 1. */ - Down = 'Down', + Stateless = 'Stateless', /** - * Indicates the node is in process of being enabled. The value is 3. + * Uses Service Fabric to make its state or part of its state highly + * available and reliable. The value is 2. */ - Enabling = 'Enabling', + Stateful = 'Stateful', +} + +/** + * Defines values for ServicePartitionKind. + * Possible values include: 'Invalid', 'Singleton', 'Int64Range', 'Named' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: ServicePartitionKind = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum ServicePartitionKind { /** - * Indicates the node is in the process of being disabled. The value is 4. + * Indicates the partition kind is invalid. All Service Fabric enumerations + * have the invalid type. The value is zero. */ - Disabling = 'Disabling', + Invalid = 'Invalid', /** - * Indicates the node is disabled. The value is 5. + * Indicates that there is only one partition, and + * SingletonPartitionSchemeDescription was specified while creating the + * service. The value is 1. */ - Disabled = 'Disabled', + Singleton = 'Singleton', /** - * Indicates the node is unknown. A node would be in Unknown state if Service - * Fabric does not have authoritative information about that node. This can - * happen if the system learns about a node at runtime.The value is 6. + * Indicates that the partition is based on Int64 key ranges, and + * UniformInt64RangePartitionSchemeDescription was specified while creating + * the service. The value is 2. */ - Unknown = 'Unknown', + Int64Range = 'Int64Range', /** - * Indicates the node is removed. A node would be in Removed state if - * NodeStateRemoved API has been called for this node. In other words, - * Service Fabric has been informed that the persisted state on the node has - * been permanently lost. The value is 7. + * Indicates that the partition is based on string names, and + * NamedPartitionInformation was specified while creating the service. The + * value is 3. */ - Removed = 'Removed', + Named = 'Named', } /** - * Defines values for ServicePartitionStatus. - * Possible values include: 'Invalid', 'Ready', 'NotReady', 'InQuorumLoss', - * 'Reconfiguring', 'Deleting' + * Defines values for ServicePlacementPolicyType. + * Possible values include: 'Invalid', 'InvalidDomain', 'RequiredDomain', + * 'PreferredPrimaryDomain', 'RequiredDomainDistribution', + * 'NonPartiallyPlaceService' * There could be more values for this enum apart from the ones defined here.If * you want to set a value that is not from the known values then you can do * the following: - * let param: ServicePartitionStatus = - * "someUnknownValueThatWillStillBeValid"; + * let param: ServicePlacementPolicyType = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ServicePartitionStatus { +export enum ServicePlacementPolicyType { /** - * Indicates the partition status is invalid. All Service Fabric enumerations - * have the invalid type. The value is zero. + * Indicates the type of the placement policy is invalid. All Service Fabric + * enumerations have the invalid type. The value is zero. */ Invalid = 'Invalid', /** - * Indicates that the partition is ready. This means that for a stateless - * service partition there is at least one instance that is up and for a - * stateful service partition the number of ready replicas is greater than or - * equal to the MinReplicaSetSize. The value is 1. + * Indicates that the ServicePlacementPolicyDescription is of type + * ServicePlacementInvalidDomainPolicyDescription, which indicates that a + * particular fault or upgrade domain cannot be used for placement of this + * service. The value is 1. */ - Ready = 'Ready', + InvalidDomain = 'InvalidDomain', /** - * Indicates that the partition is not ready. This status is returned when - * none of the other states apply. The value is 2. + * Indicates that the ServicePlacementPolicyDescription is of type + * ServicePlacementRequireDomainDistributionPolicyDescription indicating that + * the replicas of the service must be placed in a specific domain. The value + * is 2. */ - NotReady = 'NotReady', + RequiredDomain = 'RequiredDomain', /** - * Indicates that the partition is in quorum loss. This means that number of - * replicas that are up and participating in a replica set is less than - * MinReplicaSetSize for this partition. The value is 3. + * Indicates that the ServicePlacementPolicyDescription is of type + * ServicePlacementPreferPrimaryDomainPolicyDescription, which indicates that + * if possible the Primary replica for the partitions of the service should + * be located in a particular domain as an optimization. The value is 3. */ - InQuorumLoss = 'InQuorumLoss', + PreferredPrimaryDomain = 'PreferredPrimaryDomain', /** - * Indicates that the partition is undergoing reconfiguration of its replica - * sets. This can happen due to failover, upgrade, load balancing or addition - * or removal of replicas from the replica set. The value is 4. + * Indicates that the ServicePlacementPolicyDescription is of type + * ServicePlacementRequireDomainDistributionPolicyDescription, indicating + * that the system will disallow placement of any two replicas from the same + * partition in the same domain at any time. The value is 4. */ - Reconfiguring = 'Reconfiguring', + RequiredDomainDistribution = 'RequiredDomainDistribution', /** - * Indicates that the partition is being deleted. The value is 5. + * Indicates that the ServicePlacementPolicyDescription is of type + * ServicePlacementNonPartiallyPlaceServicePolicyDescription, which indicates + * that if possible all replicas of a particular partition of the service + * should be placed atomically. The value is 5. */ - Deleting = 'Deleting', + NonPartiallyPlaceService = 'NonPartiallyPlaceService', } /** - * Defines values for ServiceStatus. - * Possible values include: 'Unknown', 'Active', 'Upgrading', 'Deleting', - * 'Creating', 'Failed' + * Defines values for ServiceLoadMetricWeight. + * Possible values include: 'Zero', 'Low', 'Medium', 'High' * There could be more values for this enum apart from the ones defined here.If * you want to set a value that is not from the known values then you can do * the following: - * let param: ServiceStatus = - * "someUnknownValueThatWillStillBeValid"; + * let param: ServiceLoadMetricWeight = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ServiceStatus { - /** - * Indicates the service status is unknown. The value is zero. - */ - Unknown = 'Unknown', - /** - * Indicates the service status is active. The value is 1. - */ - Active = 'Active', +export enum ServiceLoadMetricWeight { /** - * Indicates the service is upgrading. The value is 2. + * Disables resource balancing for this metric. This value is zero. */ - Upgrading = 'Upgrading', + Zero = 'Zero', /** - * Indicates the service is being deleted. The value is 3. + * Specifies the metric weight of the service load as Low. The value is 1. */ - Deleting = 'Deleting', + Low = 'Low', /** - * Indicates the service is being created. The value is 4. + * Specifies the metric weight of the service load as Medium. The value is 2. */ - Creating = 'Creating', + Medium = 'Medium', /** - * Indicates creation or deletion was terminated due to persistent failures. - * Another create/delete request can be accepted. The value is 5. + * Specifies the metric weight of the service load as High. The value is 3. */ - Failed = 'Failed', + High = 'High', } /** - * Defines values for ProvisionApplicationTypeKind. - * Possible values include: 'Invalid', 'ImageStorePath', 'ExternalStore' + * Defines values for HostType. + * Possible values include: 'Invalid', 'ExeHost', 'ContainerHost' * There could be more values for this enum apart from the ones defined here.If * you want to set a value that is not from the known values then you can do * the following: - * let param: ProvisionApplicationTypeKind = - * "someUnknownValueThatWillStillBeValid"; + * let param: HostType = "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ProvisionApplicationTypeKind { +export enum HostType { /** - * Indicates that the provision kind is invalid. This value is default and - * should not be used. The value is zero. + * Indicates the type of host is not known or invalid. The value is 0. */ Invalid = 'Invalid', /** - * Indicates that the provision is for a package that was previously uploaded - * to the image store. The value is 1. + * Indicates the host is an executable. The value is 1. */ - ImageStorePath = 'ImageStorePath', + ExeHost = 'ExeHost', /** - * Indicates that the provision is for an application package that was - * previously uploaded to an external store. The application package ends - * with the extension *.sfpkg. The value is 2. + * Indicates the host is a container. The value is 2. */ - ExternalStore = 'ExternalStore', + ContainerHost = 'ContainerHost', } /** - * Defines values for UpgradeType. - * Possible values include: 'Invalid', 'Rolling', 'Rolling_ForceRestart' + * Defines values for HostIsolationMode. + * Possible values include: 'None', 'Process', 'HyperV' * There could be more values for this enum apart from the ones defined here.If * you want to set a value that is not from the known values then you can do * the following: - * let param: UpgradeType = - * "someUnknownValueThatWillStillBeValid"; + * let param: HostIsolationMode = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum UpgradeType { +export enum HostIsolationMode { /** - * Indicates the upgrade kind is invalid. All Service Fabric enumerations - * have the invalid type. The value is zero. + * Indicates the isolation mode is not applicable for given HostType. The + * value is 0. */ - Invalid = 'Invalid', + None = 'None', /** - * The upgrade progresses one upgrade domain at a time. The value is 1. + * This is the default isolation mode for a ContainerHost. The value is 1. */ - Rolling = 'Rolling', + Process = 'Process', /** - * The upgrade gets restarted by force. The value is 2. + * Indicates the ContainerHost is a Hyper-V container. This applies to only + * Windows containers. The value is 2. */ - RollingForceRestart = 'Rolling_ForceRestart', + HyperV = 'HyperV', } /** - * Defines values for SafetyCheckKind. - * Possible values include: 'Invalid', 'EnsureSeedNodeQuorum', - * 'EnsurePartitionQuorum', 'WaitForPrimaryPlacement', 'WaitForPrimarySwap', - * 'WaitForReconfiguration', 'WaitForInbuildReplica', 'EnsureAvailability' + * Defines values for DeploymentStatus. + * Possible values include: 'Invalid', 'Downloading', 'Activating', 'Active', + * 'Upgrading', 'Deactivating' * There could be more values for this enum apart from the ones defined here.If * you want to set a value that is not from the known values then you can do * the following: - * let param: SafetyCheckKind = - * "someUnknownValueThatWillStillBeValid"; + * let param: DeploymentStatus = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum SafetyCheckKind { +export enum DeploymentStatus { /** - * Indicates that the upgrade safety check kind is invalid. All Service - * Fabric enumerations have the invalid type. The value is zero. + * Indicates status of the application or service package is not known or + * invalid. The value is 0. */ Invalid = 'Invalid', /** - * Indicates that if we bring down the node then this will result in global - * seed node quorum loss. The value is 1. - */ - EnsureSeedNodeQuorum = 'EnsureSeedNodeQuorum', - /** - * Indicates that there is some partition for which if we bring down the - * replica on the node, it will result in quorum loss for that partition. The - * value is 2. - */ - EnsurePartitionQuorum = 'EnsurePartitionQuorum', - /** - * Indicates that there is some replica on the node that was moved out of - * this node due to upgrade. Service Fabric is now waiting for the primary to - * be moved back to this node. The value is 3. - */ - WaitForPrimaryPlacement = 'WaitForPrimaryPlacement', - /** - * Indicates that Service Fabric is waiting for a primary replica to be moved - * out of the node before starting upgrade on that node. The value is 4. + * Indicates the application or service package is being downloaded to the + * node from the ImageStore. The value is 1. */ - WaitForPrimarySwap = 'WaitForPrimarySwap', + Downloading = 'Downloading', /** - * Indicates that there is some replica on the node that is involved in a - * reconfiguration. Service Fabric is waiting for the reconfiguration to be - * complete before staring upgrade on that node. The value is 5. + * Indicates the application or service package is being activated. The value + * is 2. */ - WaitForReconfiguration = 'WaitForReconfiguration', + Activating = 'Activating', /** - * Indicates that there is either a replica on the node that is going through - * copy, or there is a primary replica on the node that is copying data to - * some other replica. In both cases, bringing down the replica on the node - * due to upgrade will abort the copy. The value is 6. + * Indicates the application or service package is active the node. The value + * is 3. */ - WaitForInbuildReplica = 'WaitForInbuildReplica', + Active = 'Active', /** - * Indicates that there is either a stateless service partition on the node - * having exactly one instance, or there is a primary replica on the node for - * which the partition is quorum loss. In both cases, bringing down the - * replicas due to upgrade will result in loss of availability. The value is - * 7. + * Indicates the application or service package is being upgraded. The value + * is 4. */ - EnsureAvailability = 'EnsureAvailability', -} - -/** - * Defines values for CreateFabricDump. - * Possible values include: 'False', 'True' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: CreateFabricDump = - * "someUnknownValueThatWillStillBeValid"; - * @readonly - * @enum {string} - */ -export enum CreateFabricDump { - False = 'False', - True = 'True', + Upgrading = 'Upgrading', + /** + * Indicates the application or service package is being deactivated. The + * value is 5. + */ + Deactivating = 'Deactivating', } /** - * Defines values for ServicePackageActivationMode. - * Possible values include: 'SharedProcess', 'ExclusiveProcess' + * Defines values for EntryPointStatus. + * Possible values include: 'Invalid', 'Pending', 'Starting', 'Started', + * 'Stopping', 'Stopped' * There could be more values for this enum apart from the ones defined here.If * you want to set a value that is not from the known values then you can do * the following: - * let param: ServicePackageActivationMode = - * "someUnknownValueThatWillStillBeValid"; + * let param: EntryPointStatus = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ServicePackageActivationMode { +export enum EntryPointStatus { /** - * This is the default activation mode. With this activation mode, replicas - * or instances from different partition(s) of service, on a given node, will - * share same activation of service package on a node. The value is zero. + * Indicates status of entry point is not known or invalid. The value is 0. */ - SharedProcess = 'SharedProcess', + Invalid = 'Invalid', /** - * With this activation mode, each replica or instance of service, on a given - * node, will have its own dedicated activation of service package on a node. - * The value is 1. + * Indicates the entry point is scheduled to be started. The value is 1. */ - ExclusiveProcess = 'ExclusiveProcess', + Pending = 'Pending', + /** + * Indicates the entry point is being started. The value is 2. + */ + Starting = 'Starting', + /** + * Indicates the entry point was started successfully and is running. The + * value is 3. + */ + Started = 'Started', + /** + * Indicates the entry point is being stopped. The value is 4. + */ + Stopping = 'Stopping', + /** + * Indicates the entry point is not running. The value is 5. + */ + Stopped = 'Stopped', } /** - * Defines values for ServiceKind. - * Possible values include: 'Invalid', 'Stateless', 'Stateful' + * Defines values for ChaosStatus. + * Possible values include: 'Invalid', 'Running', 'Stopped' * There could be more values for this enum apart from the ones defined here.If * you want to set a value that is not from the known values then you can do * the following: - * let param: ServiceKind = - * "someUnknownValueThatWillStillBeValid"; + * let param: ChaosStatus = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ServiceKind { +export enum ChaosStatus { /** - * Indicates the service kind is invalid. All Service Fabric enumerations - * have the invalid type. The value is zero. + * Indicates an invalid Chaos status. All Service Fabric enumerations have + * the invalid type. The valus is zero. */ Invalid = 'Invalid', /** - * Does not use Service Fabric to make its state highly available or - * reliable. The value is 1. + * Indicates that Chaos is not stopped. The value is one. */ - Stateless = 'Stateless', + Running = 'Running', /** - * Uses Service Fabric to make its state or part of its state highly - * available and reliable. The value is 2. + * Indicates that Chaos is not scheduling further faults. The value is two. */ - Stateful = 'Stateful', + Stopped = 'Stopped', } /** - * Defines values for ServicePartitionKind. - * Possible values include: 'Invalid', 'Singleton', 'Int64Range', 'Named' + * Defines values for ChaosScheduleStatus. + * Possible values include: 'Invalid', 'Stopped', 'Active', 'Expired', + * 'Pending' * There could be more values for this enum apart from the ones defined here.If * you want to set a value that is not from the known values then you can do * the following: - * let param: ServicePartitionKind = - * "someUnknownValueThatWillStillBeValid"; + * let param: ChaosScheduleStatus = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ServicePartitionKind { +export enum ChaosScheduleStatus { /** - * Indicates the partition kind is invalid. All Service Fabric enumerations - * have the invalid type. The value is zero. + * Indicates an invalid Chaos Schedule status. All Service Fabric + * enumerations have the invalid type. The valus is zero. */ Invalid = 'Invalid', /** - * Indicates that there is only one partition, and - * SingletonPartitionSchemeDescription was specified while creating the - * service. The value is 1. + * Indicates that the schedule is stopped and not being used to schedule runs + * of chaos. The value is one. */ - Singleton = 'Singleton', + Stopped = 'Stopped', /** - * Indicates that the partition is based on Int64 key ranges, and - * UniformInt64RangePartitionSchemeDescription was specified while creating - * the service. The value is 2. + * Indicates that the schedule is active and is being used to schedule runs + * of Chaos. The value is two. */ - Int64Range = 'Int64Range', + Active = 'Active', /** - * Indicates that the partition is based on string names, and - * NamedPartitionInformation was specified while creating the service. The - * value is 3. + * Indicates that the schedule is expired and will no longer be used to + * schedule runs of Chaos. The value is three. */ - Named = 'Named', + Expired = 'Expired', + /** + * Indicates that the schedule is pending and is not yet being used to + * schedule runs of Chaos but will be used when the start time is passed. The + * value is four. + */ + Pending = 'Pending', } /** - * Defines values for ServicePlacementPolicyType. - * Possible values include: 'Invalid', 'InvalidDomain', 'RequiredDomain', - * 'PreferredPrimaryDomain', 'RequiredDomainDistribution', - * 'NonPartiallyPlaceService' + * Defines values for ChaosEventKind. + * Possible values include: 'Invalid', 'Started', 'ExecutingFaults', 'Waiting', + * 'ValidationFailed', 'TestError', 'Stopped' * There could be more values for this enum apart from the ones defined here.If * you want to set a value that is not from the known values then you can do * the following: - * let param: ServicePlacementPolicyType = - * "someUnknownValueThatWillStillBeValid"; + * let param: ChaosEventKind = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ServicePlacementPolicyType { +export enum ChaosEventKind { /** - * Indicates the type of the placement policy is invalid. All Service Fabric - * enumerations have the invalid type. The value is zero. + * Indicates an invalid Chaos event kind. All Service Fabric enumerations + * have the invalid type. */ Invalid = 'Invalid', /** - * Indicates that the ServicePlacementPolicyDescription is of type - * ServicePlacementInvalidDomainPolicyDescription, which indicates that a - * particular fault or upgrade domain cannot be used for placement of this - * service. The value is 1. + * Indicates a Chaos event that gets generated when Chaos is started. */ - InvalidDomain = 'InvalidDomain', + Started = 'Started', /** - * Indicates that the ServicePlacementPolicyDescription is of type - * ServicePlacementRequireDomainDistributionPolicyDescription indicating that - * the replicas of the service must be placed in a specific domain. The value - * is 2. + * Indicates a Chaos event that gets generated when Chaos has decided on the + * faults for an iteration. This Chaos event contains the details of the + * faults as a list of strings. */ - RequiredDomain = 'RequiredDomain', + ExecutingFaults = 'ExecutingFaults', /** - * Indicates that the ServicePlacementPolicyDescription is of type - * ServicePlacementPreferPrimaryDomainPolicyDescription, which indicates that - * if possible the Primary replica for the partitions of the service should - * be located in a particular domain as an optimization. The value is 3. + * Indicates a Chaos event that gets generated when Chaos is waiting for the + * cluster to become ready for faulting, for example, Chaos may be waiting + * for the on-going upgrade to finish. */ - PreferredPrimaryDomain = 'PreferredPrimaryDomain', + Waiting = 'Waiting', /** - * Indicates that the ServicePlacementPolicyDescription is of type - * ServicePlacementRequireDomainDistributionPolicyDescription, indicating - * that the system will disallow placement of any two replicas from the same - * partition in the same domain at any time. The value is 4. + * Indicates a Chaos event that gets generated when the cluster entities do + * not become stable and healthy within + * ChaosParameters.MaxClusterStabilizationTimeoutInSeconds. */ - RequiredDomainDistribution = 'RequiredDomainDistribution', + ValidationFailed = 'ValidationFailed', /** - * Indicates that the ServicePlacementPolicyDescription is of type - * ServicePlacementNonPartiallyPlaceServicePolicyDescription, which indicates - * that if possible all replicas of a particular partition of the service - * should be placed atomically. The value is 5. + * Indicates a Chaos event that gets generated when an unexpected event has + * occurred in the Chaos engine, for example, due to the cluster snapshot + * being inconsistent, while faulting a faultable entity Chaos found that the + * entity was already faulted. */ - NonPartiallyPlaceService = 'NonPartiallyPlaceService', + TestError = 'TestError', + /** + * Indicates a Chaos event that gets generated when Chaos stops because + * either the user issued a stop or the time to run was up. + */ + Stopped = 'Stopped', } /** - * Defines values for ServiceLoadMetricWeight. - * Possible values include: 'Zero', 'Low', 'Medium', 'High' + * Defines values for ComposeDeploymentStatus. + * Possible values include: 'Invalid', 'Provisioning', 'Creating', 'Ready', + * 'Unprovisioning', 'Deleting', 'Failed', 'Upgrading' * There could be more values for this enum apart from the ones defined here.If * you want to set a value that is not from the known values then you can do * the following: - * let param: ServiceLoadMetricWeight = - * "someUnknownValueThatWillStillBeValid"; + * let param: ComposeDeploymentStatus = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ServiceLoadMetricWeight { +export enum ComposeDeploymentStatus { /** - * Disables resource balancing for this metric. This value is zero. + * Indicates that the compose deployment status is invalid. The value is + * zero. */ - Zero = 'Zero', + Invalid = 'Invalid', /** - * Specifies the metric weight of the service load as Low. The value is 1. + * Indicates that the compose deployment is being provisioned in background. + * The value is 1. */ - Low = 'Low', + Provisioning = 'Provisioning', /** - * Specifies the metric weight of the service load as Medium. The value is 2. + * Indicates that the compose deployment is being created in background. The + * value is 2. */ - Medium = 'Medium', + Creating = 'Creating', /** - * Specifies the metric weight of the service load as High. The value is 3. + * Indicates that the compose deployment has been successfully created or + * upgraded. The value is 3. */ - High = 'High', + Ready = 'Ready', + /** + * Indicates that the compose deployment is being unprovisioned in + * background. The value is 4. + */ + Unprovisioning = 'Unprovisioning', + /** + * Indicates that the compose deployment is being deleted in background. The + * value is 5. + */ + Deleting = 'Deleting', + /** + * Indicates that the compose deployment was terminated due to persistent + * failures. The value is 6. + */ + Failed = 'Failed', + /** + * Indicates that the compose deployment is being upgraded in the background. + * The value is 7. + */ + Upgrading = 'Upgrading', } /** - * Defines values for HostType. - * Possible values include: 'Invalid', 'ExeHost', 'ContainerHost' + * Defines values for ComposeDeploymentUpgradeState. + * Possible values include: 'Invalid', 'ProvisioningTarget', + * 'RollingForwardInProgress', 'RollingForwardPending', + * 'UnprovisioningCurrent', 'RollingForwardCompleted', 'RollingBackInProgress', + * 'UnprovisioningTarget', 'RollingBackCompleted', 'Failed' * There could be more values for this enum apart from the ones defined here.If * you want to set a value that is not from the known values then you can do * the following: - * let param: HostType = "someUnknownValueThatWillStillBeValid"; + * let param: ComposeDeploymentUpgradeState = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum HostType { +export enum ComposeDeploymentUpgradeState { + /** + * Indicates the upgrade state is invalid. All Service Fabric enumerations + * have the invalid type. The value is zero. + */ + Invalid = 'Invalid', + /** + * The upgrade is in the progress of provisioning target application type + * version. The value is 1. + */ + ProvisioningTarget = 'ProvisioningTarget', + /** + * The upgrade is rolling forward to the target version but is not complete + * yet. The value is 2. + */ + RollingForwardInProgress = 'RollingForwardInProgress', + /** + * The current upgrade domain has finished upgrading. The overall upgrade is + * waiting for an explicit move next request in UnmonitoredManual mode or + * performing health checks in Monitored mode. The value is 3 + */ + RollingForwardPending = 'RollingForwardPending', /** - * Indicates the type of host is not known or invalid. The value is 0. + * The upgrade is in the progress of unprovisioning current application type + * version and rolling forward to the target version is completed. The value + * is 4. */ - Invalid = 'Invalid', + UnprovisioningCurrent = 'UnprovisioningCurrent', /** - * Indicates the host is an executable. The value is 1. + * The upgrade has finished rolling forward. The value is 5. */ - ExeHost = 'ExeHost', + RollingForwardCompleted = 'RollingForwardCompleted', /** - * Indicates the host is a container. The value is 2. + * The upgrade is rolling back to the previous version but is not complete + * yet. The value is 6. */ - ContainerHost = 'ContainerHost', -} - -/** - * Defines values for HostIsolationMode. - * Possible values include: 'None', 'Process', 'HyperV' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: HostIsolationMode = - * "someUnknownValueThatWillStillBeValid"; - * @readonly - * @enum {string} - */ -export enum HostIsolationMode { + RollingBackInProgress = 'RollingBackInProgress', /** - * Indicates the isolation mode is not applicable for given HostType. The - * value is 0. + * The upgrade is in the progress of unprovisioning target application type + * version and rolling back to the current version is completed. The value is + * 7. */ - None = 'None', + UnprovisioningTarget = 'UnprovisioningTarget', /** - * This is the default isolation mode for a ContainerHost. The value is 1. + * The upgrade has finished rolling back. The value is 8. */ - Process = 'Process', + RollingBackCompleted = 'RollingBackCompleted', /** - * Indicates the ContainerHost is a Hyper-V container. This applies to only - * Windows containers. The value is 2. + * The upgrade has failed and is unable to execute FailureAction. The value + * is 9. */ - HyperV = 'HyperV', + Failed = 'Failed', } /** - * Defines values for DeploymentStatus. - * Possible values include: 'Invalid', 'Downloading', 'Activating', 'Active', - * 'Upgrading', 'Deactivating' + * Defines values for ServiceCorrelationScheme. + * Possible values include: 'Invalid', 'Affinity', 'AlignedAffinity', + * 'NonAlignedAffinity' * There could be more values for this enum apart from the ones defined here.If * you want to set a value that is not from the known values then you can do * the following: - * let param: DeploymentStatus = - * "someUnknownValueThatWillStillBeValid"; + * let param: ServiceCorrelationScheme = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum DeploymentStatus { +export enum ServiceCorrelationScheme { /** - * Indicates status of the application or service package is not known or - * invalid. The value is 0. + * An invalid correlation scheme. Cannot be used. The value is zero. */ Invalid = 'Invalid', /** - * Indicates the application or service package is being downloaded to the - * node from the ImageStore. The value is 1. - */ - Downloading = 'Downloading', - /** - * Indicates the application or service package is being activated. The value - * is 2. - */ - Activating = 'Activating', - /** - * Indicates the application or service package is active the node. The value - * is 3. + * Indicates that this service has an affinity relationship with another + * service. Provided for backwards compatibility, consider preferring the + * Aligned or NonAlignedAffinity options. The value is 1. */ - Active = 'Active', + Affinity = 'Affinity', /** - * Indicates the application or service package is being upgraded. The value - * is 4. + * Aligned affinity ensures that the primaries of the partitions of the + * affinitized services are collocated on the same nodes. This is the default + * and is the same as selecting the Affinity scheme. The value is 2. */ - Upgrading = 'Upgrading', + AlignedAffinity = 'AlignedAffinity', /** - * Indicates the application or service package is being deactivated. The - * value is 5. + * Non-Aligned affinity guarantees that all replicas of each service will be + * placed on the same nodes. Unlike Aligned Affinity, this does not guarantee + * that replicas of particular role will be collocated. The value is 3. */ - Deactivating = 'Deactivating', + NonAlignedAffinity = 'NonAlignedAffinity', } /** - * Defines values for EntryPointStatus. - * Possible values include: 'Invalid', 'Pending', 'Starting', 'Started', - * 'Stopping', 'Stopped' + * Defines values for MoveCost. + * Possible values include: 'Zero', 'Low', 'Medium', 'High' * There could be more values for this enum apart from the ones defined here.If * you want to set a value that is not from the known values then you can do * the following: - * let param: EntryPointStatus = - * "someUnknownValueThatWillStillBeValid"; + * let param: MoveCost = "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum EntryPointStatus { - /** - * Indicates status of entry point is not known or invalid. The value is 0. - */ - Invalid = 'Invalid', - /** - * Indicates the entry point is scheduled to be started. The value is 1. - */ - Pending = 'Pending', +export enum MoveCost { /** - * Indicates the entry point is being started. The value is 2. + * Zero move cost. This value is zero. */ - Starting = 'Starting', + Zero = 'Zero', /** - * Indicates the entry point was started successfully and is running. The - * value is 3. + * Specifies the move cost of the service as Low. The value is 1. */ - Started = 'Started', + Low = 'Low', /** - * Indicates the entry point is being stopped. The value is 4. + * Specifies the move cost of the service as Medium. The value is 2. */ - Stopping = 'Stopping', + Medium = 'Medium', /** - * Indicates the entry point is not running. The value is 5. + * Specifies the move cost of the service as High. The value is 3. */ - Stopped = 'Stopped', + High = 'High', } /** - * Defines values for ChaosStatus. - * Possible values include: 'Invalid', 'Running', 'Stopped' + * Defines values for PartitionScheme. + * Possible values include: 'Invalid', 'Singleton', 'UniformInt64Range', + * 'Named' * There could be more values for this enum apart from the ones defined here.If * you want to set a value that is not from the known values then you can do * the following: - * let param: ChaosStatus = - * "someUnknownValueThatWillStillBeValid"; + * let param: PartitionScheme = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ChaosStatus { +export enum PartitionScheme { /** - * Indicates an invalid Chaos status. All Service Fabric enumerations have - * the invalid type. The valus is zero. + * Indicates the partition kind is invalid. All Service Fabric enumerations + * have the invalid type. The value is zero. */ Invalid = 'Invalid', /** - * Indicates that Chaos is not stopped. The value is one. + * Indicates that the partition is based on string names, and is a + * SingletonPartitionSchemeDescription object, The value is 1. */ - Running = 'Running', + Singleton = 'Singleton', /** - * Indicates that Chaos is not scheduling further faults. The value is two. + * Indicates that the partition is based on Int64 key ranges, and is a + * UniformInt64RangePartitionSchemeDescription object. The value is 2. */ - Stopped = 'Stopped', + UniformInt64Range = 'UniformInt64Range', + /** + * Indicates that the partition is based on string names, and is a + * NamedPartitionSchemeDescription object. The value is 3 + */ + Named = 'Named', } /** - * Defines values for ChaosScheduleStatus. - * Possible values include: 'Invalid', 'Stopped', 'Active', 'Expired', - * 'Pending' + * Defines values for ServiceOperationName. + * Possible values include: 'Unknown', 'None', 'Open', 'ChangeRole', 'Close', + * 'Abort' * There could be more values for this enum apart from the ones defined here.If * you want to set a value that is not from the known values then you can do * the following: - * let param: ChaosScheduleStatus = - * "someUnknownValueThatWillStillBeValid"; + * let param: ServiceOperationName = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ChaosScheduleStatus { +export enum ServiceOperationName { /** - * Indicates an invalid Chaos Schedule status. All Service Fabric - * enumerations have the invalid type. The valus is zero. + * Reserved for future use. */ - Invalid = 'Invalid', + Unknown = 'Unknown', /** - * Indicates that the schedule is stopped and not being used to schedule runs - * of chaos. The value is one. + * The service replica or instance is not going through any life-cycle + * changes. */ - Stopped = 'Stopped', + None = 'None', /** - * Indicates that the schedule is active and is being used to schedule runs - * of Chaos. The value is two. + * The service replica or instance is being opened. */ - Active = 'Active', + Open = 'Open', /** - * Indicates that the schedule is expired and will no longer be used to - * schedule runs of Chaos. The value is three. + * The service replica is changing roles. */ - Expired = 'Expired', + ChangeRole = 'ChangeRole', /** - * Indicates that the schedule is pending and is not yet being used to - * schedule runs of Chaos but will be used when the start time is passed. The - * value is four. + * The service replica or instance is being closed. */ - Pending = 'Pending', + Close = 'Close', + /** + * The service replica or instance is being aborted. + */ + Abort = 'Abort', } /** - * Defines values for ChaosEventKind. - * Possible values include: 'Invalid', 'Started', 'ExecutingFaults', 'Waiting', - * 'ValidationFailed', 'TestError', 'Stopped' + * Defines values for ReplicatorOperationName. + * Possible values include: 'Invalid', 'None', 'Open', 'ChangeRole', + * 'UpdateEpoch', 'Close', 'Abort', 'OnDataLoss', 'WaitForCatchup', 'Build' * There could be more values for this enum apart from the ones defined here.If * you want to set a value that is not from the known values then you can do * the following: - * let param: ChaosEventKind = - * "someUnknownValueThatWillStillBeValid"; + * let param: ReplicatorOperationName = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ChaosEventKind { +export enum ReplicatorOperationName { /** - * Indicates an invalid Chaos event kind. All Service Fabric enumerations - * have the invalid type. + * Default value if the replicator is not yet ready. */ Invalid = 'Invalid', /** - * Indicates a Chaos event that gets generated when Chaos is started. + * Replicator is not running any operation from Service Fabric perspective. */ - Started = 'Started', + None = 'None', /** - * Indicates a Chaos event that gets generated when Chaos has decided on the - * faults for an iteration. This Chaos event contains the details of the - * faults as a list of strings. + * Replicator is opening. */ - ExecutingFaults = 'ExecutingFaults', + Open = 'Open', /** - * Indicates a Chaos event that gets generated when Chaos is waiting for the - * cluster to become ready for faulting, for example, Chaos may be waiting - * for the on-going upgrade to finish. + * Replicator is in the process of changing its role. */ - Waiting = 'Waiting', + ChangeRole = 'ChangeRole', /** - * Indicates a Chaos event that gets generated when the cluster entities do - * not become stable and healthy within - * ChaosParameters.MaxClusterStabilizationTimeoutInSeconds. + * Due to a change in the replica set, replicator is being updated with its + * Epoch. */ - ValidationFailed = 'ValidationFailed', + UpdateEpoch = 'UpdateEpoch', + /** + * Replicator is closing. + */ + Close = 'Close', + /** + * Replicator is being aborted. + */ + Abort = 'Abort', + /** + * Replicator is handling the data loss condition, where the user service may + * potentially be recovering state from an external source. + */ + OnDataLoss = 'OnDataLoss', /** - * Indicates a Chaos event that gets generated when an unexpected event has - * occurred in the Chaos engine, for example, due to the cluster snapshot - * being inconsistent, while faulting a faultable entity Chaos found that the - * entity was already faulted. + * Replicator is waiting for a quorum of replicas to be caught up to the + * latest state. */ - TestError = 'TestError', + WaitForCatchup = 'WaitForCatchup', /** - * Indicates a Chaos event that gets generated when Chaos stops because - * either the user issued a stop or the time to run was up. + * Replicator is in the process of building one or more replicas. */ - Stopped = 'Stopped', + Build = 'Build', } /** - * Defines values for ComposeDeploymentStatus. - * Possible values include: 'Invalid', 'Provisioning', 'Creating', 'Ready', - * 'Unprovisioning', 'Deleting', 'Failed', 'Upgrading' + * Defines values for PartitionAccessStatus. + * Possible values include: 'Invalid', 'Granted', 'ReconfigurationPending', + * 'NotPrimary', 'NoWriteQuorum' * There could be more values for this enum apart from the ones defined here.If * you want to set a value that is not from the known values then you can do * the following: - * let param: ComposeDeploymentStatus = - * "someUnknownValueThatWillStillBeValid"; + * let param: PartitionAccessStatus = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ComposeDeploymentStatus { +export enum PartitionAccessStatus { /** - * Indicates that the compose deployment status is invalid. The value is - * zero. + * Indicates that the read or write operation access status is not valid. + * This value is not returned to the caller. */ Invalid = 'Invalid', /** - * Indicates that the compose deployment is being provisioned in background. - * The value is 1. + * Indicates that the read or write operation access is granted and the + * operation is allowed. */ - Provisioning = 'Provisioning', + Granted = 'Granted', /** - * Indicates that the compose deployment is being created in background. The - * value is 2. + * Indicates that the client should try again later, because a + * reconfiguration is in progress. */ - Creating = 'Creating', + ReconfigurationPending = 'ReconfigurationPending', /** - * Indicates that the compose deployment has been successfully created or - * upgraded. The value is 3. + * Indicates that this client request was received by a replica that is not a + * Primary replica. */ - Ready = 'Ready', + NotPrimary = 'NotPrimary', /** - * Indicates that the compose deployment is being unprovisioned in - * background. The value is 4. + * Indicates that no write quorum is available and, therefore, no write + * operation can be accepted. */ - Unprovisioning = 'Unprovisioning', + NoWriteQuorum = 'NoWriteQuorum', +} + +/** + * Defines values for FabricReplicaStatus. + * Possible values include: 'Invalid', 'Down', 'Up' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: FabricReplicaStatus = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum FabricReplicaStatus { /** - * Indicates that the compose deployment is being deleted in background. The - * value is 5. + * Indicates that the read or write operation access status is not valid. + * This value is not returned to the caller. */ - Deleting = 'Deleting', + Invalid = 'Invalid', /** - * Indicates that the compose deployment was terminated due to persistent - * failures. The value is 6. + * Indicates that the replica is down. */ - Failed = 'Failed', + Down = 'Down', /** - * Indicates that the compose deployment is being upgraded in the background. - * The value is 7. + * Indicates that the replica is up. */ - Upgrading = 'Upgrading', + Up = 'Up', } /** - * Defines values for ComposeDeploymentUpgradeState. - * Possible values include: 'Invalid', 'ProvisioningTarget', - * 'RollingForwardInProgress', 'RollingForwardPending', - * 'UnprovisioningCurrent', 'RollingForwardCompleted', 'RollingBackInProgress', - * 'UnprovisioningTarget', 'RollingBackCompleted', 'Failed' + * Defines values for ReplicaKind. + * Possible values include: 'Invalid', 'KeyValueStore' * There could be more values for this enum apart from the ones defined here.If * you want to set a value that is not from the known values then you can do * the following: - * let param: ComposeDeploymentUpgradeState = - * "someUnknownValueThatWillStillBeValid"; + * let param: ReplicaKind = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ComposeDeploymentUpgradeState { +export enum ReplicaKind { /** - * Indicates the upgrade state is invalid. All Service Fabric enumerations - * have the invalid type. The value is zero. + * Represents an invalid replica kind. The value is zero. */ Invalid = 'Invalid', /** - * The upgrade is in the progress of provisioning target application type - * version. The value is 1. + * Represents a key value store replica. The value is 1 */ - ProvisioningTarget = 'ProvisioningTarget', + KeyValueStore = 'KeyValueStore', +} + +/** + * Defines values for ServiceTypeRegistrationStatus. + * Possible values include: 'Invalid', 'Disabled', 'Enabled', 'Registered' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: ServiceTypeRegistrationStatus = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum ServiceTypeRegistrationStatus { /** - * The upgrade is rolling forward to the target version but is not complete - * yet. The value is 2. + * Indicates the registration status is invalid. All Service Fabric + * enumerations have the invalid type. The value is zero. */ - RollingForwardInProgress = 'RollingForwardInProgress', + Invalid = 'Invalid', /** - * The current upgrade domain has finished upgrading. The overall upgrade is - * waiting for an explicit move next request in UnmonitoredManual mode or - * performing health checks in Monitored mode. The value is 3 + * Indicates that the service type is disabled on this node. A type gets + * disabled when there are too many failures of the code package hosting the + * service type. If the service type is disabled, new replicas of that + * service type will not be placed on the node until it is enabled again. The + * service type is enabled again after the process hosting it comes up and + * re-registers the type or a preconfigured time interval has passed. The + * value is 1. */ - RollingForwardPending = 'RollingForwardPending', + Disabled = 'Disabled', /** - * The upgrade is in the progress of unprovisioning current application type - * version and rolling forward to the target version is completed. The value - * is 4. + * Indicates that the service type is enabled on this node. Replicas of this + * service type can be placed on this node when the code package registers + * the service type. The value is 2. */ - UnprovisioningCurrent = 'UnprovisioningCurrent', + Enabled = 'Enabled', /** - * The upgrade has finished rolling forward. The value is 5. + * Indicates that the service type is enabled and registered on the node by a + * code package. Replicas of this service type can now be placed on this + * node. The value is 3. */ - RollingForwardCompleted = 'RollingForwardCompleted', + Registered = 'Registered', +} + +/** + * Defines values for ServiceEndpointRole. + * Possible values include: 'Invalid', 'Stateless', 'StatefulPrimary', + * 'StatefulSecondary' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: ServiceEndpointRole = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum ServiceEndpointRole { /** - * The upgrade is rolling back to the previous version but is not complete - * yet. The value is 6. + * Indicates the service endpoint role is invalid. All Service Fabric + * enumerations have the invalid type. The value is zero. */ - RollingBackInProgress = 'RollingBackInProgress', + Invalid = 'Invalid', /** - * The upgrade is in the progress of unprovisioning target application type - * version and rolling back to the current version is completed. The value is - * 7. + * Indicates that the service endpoint is of a stateless service. The value + * is 1. */ - UnprovisioningTarget = 'UnprovisioningTarget', + Stateless = 'Stateless', /** - * The upgrade has finished rolling back. The value is 8. + * Indicates that the service endpoint is of a primary replica of a stateful + * service. The value is 2. */ - RollingBackCompleted = 'RollingBackCompleted', + StatefulPrimary = 'StatefulPrimary', /** - * The upgrade has failed and is unable to execute FailureAction. The value - * is 9. + * Indicates that the service endpoint is of a secondary replica of a + * stateful service. The value is 3. */ - Failed = 'Failed', + StatefulSecondary = 'StatefulSecondary', } /** - * Defines values for ServiceCorrelationScheme. - * Possible values include: 'Invalid', 'Affinity', 'AlignedAffinity', - * 'NonAlignedAffinity' + * Defines values for OperationState. + * Possible values include: 'Invalid', 'Running', 'RollingBack', 'Completed', + * 'Faulted', 'Cancelled', 'ForceCancelled' * There could be more values for this enum apart from the ones defined here.If * you want to set a value that is not from the known values then you can do * the following: - * let param: ServiceCorrelationScheme = - * "someUnknownValueThatWillStillBeValid"; + * let param: OperationState = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ServiceCorrelationScheme { +export enum OperationState { /** - * An invalid correlation scheme. Cannot be used. The value is zero. + * The operation state is invalid. */ Invalid = 'Invalid', /** - * Indicates that this service has an affinity relationship with another - * service. Provided for backwards compatibility, consider preferring the - * Aligned or NonAlignedAffinity options. The value is 1. + * The operation is in progress. */ - Affinity = 'Affinity', + Running = 'Running', /** - * Aligned affinity ensures that the primaries of the partitions of the - * affinitized services are collocated on the same nodes. This is the default - * and is the same as selecting the Affinity scheme. The value is 2. + * The operation is rolling back internal system state because it encountered + * a fatal error or was cancelled by the user. "RollingBack" does not + * refer to user state. For example, if CancelOperation is called on a + * command of type PartitionDataLoss, state of "RollingBack" does not mean + * service data is being restored (assuming the command has progressed far + * enough to cause data loss). It means the system is rolling back/cleaning + * up internal system state associated with the command. */ - AlignedAffinity = 'AlignedAffinity', + RollingBack = 'RollingBack', /** - * Non-Aligned affinity guarantees that all replicas of each service will be - * placed on the same nodes. Unlike Aligned Affinity, this does not guarantee - * that replicas of particular role will be collocated. The value is 3. + * The operation has completed successfully and is no longer running. */ - NonAlignedAffinity = 'NonAlignedAffinity', + Completed = 'Completed', + /** + * The operation has failed and is no longer running. + */ + Faulted = 'Faulted', + /** + * The operation was cancelled by the user using CancelOperation, and is no + * longer running. + */ + Cancelled = 'Cancelled', + /** + * The operation was cancelled by the user using CancelOperation, with the + * force parameter set to true. It is no longer running. Refer to + * CancelOperation for more details. + */ + ForceCancelled = 'ForceCancelled', } /** - * Defines values for MoveCost. - * Possible values include: 'Zero', 'Low', 'Medium', 'High' + * Defines values for OperationType. + * Possible values include: 'Invalid', 'PartitionDataLoss', + * 'PartitionQuorumLoss', 'PartitionRestart', 'NodeTransition' * There could be more values for this enum apart from the ones defined here.If * you want to set a value that is not from the known values then you can do * the following: - * let param: MoveCost = "someUnknownValueThatWillStillBeValid"; + * let param: OperationType = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum MoveCost { +export enum OperationType { + /** + * The operation state is invalid. + */ + Invalid = 'Invalid', /** - * Zero move cost. This value is zero. + * An operation started using the StartDataLoss API. */ - Zero = 'Zero', + PartitionDataLoss = 'PartitionDataLoss', /** - * Specifies the move cost of the service as Low. The value is 1. + * An operation started using the StartQuorumLoss API. */ - Low = 'Low', + PartitionQuorumLoss = 'PartitionQuorumLoss', /** - * Specifies the move cost of the service as Medium. The value is 2. + * An operation started using the StartPartitionRestart API. */ - Medium = 'Medium', + PartitionRestart = 'PartitionRestart', /** - * Specifies the move cost of the service as High. The value is 3. + * An operation started using the StartNodeTransition API. */ - High = 'High', + NodeTransition = 'NodeTransition', } /** - * Defines values for PartitionScheme. - * Possible values include: 'Invalid', 'Singleton', 'UniformInt64Range', - * 'Named' + * Defines values for PackageSharingPolicyScope. + * Possible values include: 'None', 'All', 'Code', 'Config', 'Data' * There could be more values for this enum apart from the ones defined here.If * you want to set a value that is not from the known values then you can do * the following: - * let param: PartitionScheme = - * "someUnknownValueThatWillStillBeValid"; + * let param: PackageSharingPolicyScope = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum PartitionScheme { +export enum PackageSharingPolicyScope { /** - * Indicates the partition kind is invalid. All Service Fabric enumerations - * have the invalid type. The value is zero. + * No package sharing policy scope. The value is 0. */ - Invalid = 'Invalid', + None = 'None', /** - * Indicates that the partition is based on string names, and is a - * SingletonPartitionSchemeDescription object, The value is 1. + * Share all code, config and data packages from corresponding service + * manifest. The value is 1. */ - Singleton = 'Singleton', + All = 'All', /** - * Indicates that the partition is based on Int64 key ranges, and is a - * UniformInt64RangePartitionSchemeDescription object. The value is 2. + * Share all code packages from corresponding service manifest. The value is + * 2. */ - UniformInt64Range = 'UniformInt64Range', + Code = 'Code', /** - * Indicates that the partition is based on string names, and is a - * NamedPartitionSchemeDescription object. The value is 3 + * Share all config packages from corresponding service manifest. The value + * is 3. */ - Named = 'Named', + Config = 'Config', + /** + * Share all data packages from corresponding service manifest. The value is + * 4. + */ + Data = 'Data', } /** - * Defines values for ServiceOperationName. - * Possible values include: 'Unknown', 'None', 'Open', 'ChangeRole', 'Close', - * 'Abort' + * Defines values for PropertyValueKind. + * Possible values include: 'Invalid', 'Binary', 'Int64', 'Double', 'String', + * 'Guid' * There could be more values for this enum apart from the ones defined here.If * you want to set a value that is not from the known values then you can do * the following: - * let param: ServiceOperationName = - * "someUnknownValueThatWillStillBeValid"; + * let param: PropertyValueKind = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ServiceOperationName { +export enum PropertyValueKind { /** - * Reserved for future use. + * Indicates the property is invalid. All Service Fabric enumerations have + * the invalid type. The value is zero. */ - Unknown = 'Unknown', + Invalid = 'Invalid', /** - * The service replica or instance is not going through any life-cycle - * changes. + * The data inside the property is a binary blob. The value is 1. */ - None = 'None', + Binary = 'Binary', /** - * The service replica or instance is being opened. + * The data inside the property is an int64. The value is 2. */ - Open = 'Open', + Int64 = 'Int64', /** - * The service replica is changing roles. + * The data inside the property is a double. The value is 3. */ - ChangeRole = 'ChangeRole', + Double = 'Double', /** - * The service replica or instance is being closed. + * The data inside the property is a string. The value is 4. */ - Close = 'Close', + String = 'String', /** - * The service replica or instance is being aborted. + * The data inside the property is a guid. The value is 5. */ - Abort = 'Abort', + Guid = 'Guid', } /** - * Defines values for ReplicatorOperationName. - * Possible values include: 'Invalid', 'None', 'Open', 'ChangeRole', - * 'UpdateEpoch', 'Close', 'Abort', 'OnDataLoss', 'WaitForCatchup', 'Build' + * Defines values for PropertyBatchOperationKind. + * Possible values include: 'Invalid', 'Put', 'Get', 'CheckExists', + * 'CheckSequence', 'Delete', 'CheckValue' * There could be more values for this enum apart from the ones defined here.If * you want to set a value that is not from the known values then you can do * the following: - * let param: ReplicatorOperationName = - * "someUnknownValueThatWillStillBeValid"; + * let param: PropertyBatchOperationKind = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ReplicatorOperationName { +export enum PropertyBatchOperationKind { /** - * Default value if the replicator is not yet ready. + * Indicates the property operation is invalid. All Service Fabric + * enumerations have the invalid type. The value is zero. */ Invalid = 'Invalid', /** - * Replicator is not running any operation from Service Fabric perspective. - */ - None = 'None', - /** - * Replicator is opening. - */ - Open = 'Open', - /** - * Replicator is in the process of changing its role. - */ - ChangeRole = 'ChangeRole', - /** - * Due to a change in the replica set, replicator is being updated with its - * Epoch. + * The operation will create or edit a property. The value is 1. */ - UpdateEpoch = 'UpdateEpoch', + Put = 'Put', /** - * Replicator is closing. + * The operation will get a property. The value is 2. */ - Close = 'Close', + Get = 'Get', /** - * Replicator is being aborted. + * The operation will check that a property exists or doesn't exists, + * depending on the provided value. The value is 3. */ - Abort = 'Abort', + CheckExists = 'CheckExists', /** - * Replicator is handling the data loss condition, where the user service may - * potentially be recovering state from an external source. + * The operation will ensure that the sequence number is equal to the + * provided value. The value is 4. */ - OnDataLoss = 'OnDataLoss', + CheckSequence = 'CheckSequence', /** - * Replicator is waiting for a quorum of replicas to be caught up to the - * latest state. + * The operation will delete a property. The value is 5. */ - WaitForCatchup = 'WaitForCatchup', + Delete = 'Delete', /** - * Replicator is in the process of building one or more replicas. + * The operation will ensure that the value of a property is equal to the + * provided value. The value is 7. */ - Build = 'Build', + CheckValue = 'CheckValue', } /** - * Defines values for PartitionAccessStatus. - * Possible values include: 'Invalid', 'Granted', 'ReconfigurationPending', - * 'NotPrimary', 'NoWriteQuorum' + * Defines values for PropertyBatchInfoKind. + * Possible values include: 'Invalid', 'Successful', 'Failed' * There could be more values for this enum apart from the ones defined here.If * you want to set a value that is not from the known values then you can do * the following: - * let param: PartitionAccessStatus = - * "someUnknownValueThatWillStillBeValid"; + * let param: PropertyBatchInfoKind = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum PartitionAccessStatus { +export enum PropertyBatchInfoKind { /** - * Indicates that the read or write operation access status is not valid. - * This value is not returned to the caller. + * Indicates the property batch info is invalid. All Service Fabric + * enumerations have the invalid type. */ Invalid = 'Invalid', /** - * Indicates that the read or write operation access is granted and the - * operation is allowed. + * The property batch succeeded. */ - Granted = 'Granted', + Successful = 'Successful', /** - * Indicates that the client should try again later, because a - * reconfiguration is in progress. + * The property batch failed. */ - ReconfigurationPending = 'ReconfigurationPending', + Failed = 'Failed', +} + +/** + * Defines values for RetentionPolicyType. + * Possible values include: 'Basic', 'Invalid' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: RetentionPolicyType = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum RetentionPolicyType { /** - * Indicates that this client request was received by a replica that is not a - * Primary replica. + * Indicates a basic retention policy type. */ - NotPrimary = 'NotPrimary', + Basic = 'Basic', /** - * Indicates that no write quorum is available and, therefore, no write - * operation can be accepted. + * Indicates an invalid retention policy type. */ - NoWriteQuorum = 'NoWriteQuorum', + Invalid = 'Invalid', } /** - * Defines values for FabricReplicaStatus. - * Possible values include: 'Invalid', 'Down', 'Up' + * Defines values for BackupStorageKind. + * Possible values include: 'Invalid', 'FileShare', 'AzureBlobStore' * There could be more values for this enum apart from the ones defined here.If * you want to set a value that is not from the known values then you can do * the following: - * let param: FabricReplicaStatus = - * "someUnknownValueThatWillStillBeValid"; + * let param: BackupStorageKind = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum FabricReplicaStatus { +export enum BackupStorageKind { /** - * Indicates that the read or write operation access status is not valid. - * This value is not returned to the caller. + * Indicates an invalid backup storage kind. All Service Fabric enumerations + * have the invalid type. */ Invalid = 'Invalid', /** - * Indicates that the replica is down. + * Indicates file/ SMB share to be used as backup storage. */ - Down = 'Down', + FileShare = 'FileShare', /** - * Indicates that the replica is up. + * Indicates Azure blob store to be used as backup storage. */ - Up = 'Up', + AzureBlobStore = 'AzureBlobStore', } /** - * Defines values for ReplicaKind. - * Possible values include: 'Invalid', 'KeyValueStore' + * Defines values for BackupScheduleKind. + * Possible values include: 'Invalid', 'TimeBased', 'FrequencyBased' * There could be more values for this enum apart from the ones defined here.If * you want to set a value that is not from the known values then you can do * the following: - * let param: ReplicaKind = - * "someUnknownValueThatWillStillBeValid"; + * let param: BackupScheduleKind = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ReplicaKind { +export enum BackupScheduleKind { /** - * Represents an invalid replica kind. The value is zero. + * Indicates an invalid backup schedule kind. All Service Fabric enumerations + * have the invalid type. */ Invalid = 'Invalid', /** - * Represents a key value store replica. The value is 1 + * Indicates a time-based backup schedule. */ - KeyValueStore = 'KeyValueStore', + TimeBased = 'TimeBased', + /** + * Indicates a frequency-based backup schedule. + */ + FrequencyBased = 'FrequencyBased', } /** - * Defines values for ServiceTypeRegistrationStatus. - * Possible values include: 'Invalid', 'Disabled', 'Enabled', 'Registered' + * Defines values for BackupPolicyScope. + * Possible values include: 'Invalid', 'Partition', 'Service', 'Application' * There could be more values for this enum apart from the ones defined here.If * you want to set a value that is not from the known values then you can do * the following: - * let param: ServiceTypeRegistrationStatus = - * "someUnknownValueThatWillStillBeValid"; + * let param: BackupPolicyScope = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ServiceTypeRegistrationStatus { +export enum BackupPolicyScope { /** - * Indicates the registration status is invalid. All Service Fabric - * enumerations have the invalid type. The value is zero. + * Indicates an invalid backup policy scope type. All Service Fabric + * enumerations have the invalid type. */ Invalid = 'Invalid', /** - * Indicates that the service type is disabled on this node. A type gets - * disabled when there are too many failures of the code package hosting the - * service type. If the service type is disabled, new replicas of that - * service type will not be placed on the node until it is enabled again. The - * service type is enabled again after the process hosting it comes up and - * re-registers the type or a preconfigured time interval has passed. The - * value is 1. + * Indicates the backup policy is applied at partition level. Hence + * overriding any policy which may have applied at partition's service or + * application level. */ - Disabled = 'Disabled', + Partition = 'Partition', /** - * Indicates that the service type is enabled on this node. Replicas of this - * service type can be placed on this node when the code package registers - * the service type. The value is 2. + * Indicates the backup policy is applied at service level. All partitions of + * the service inherit this policy unless explicitly overridden at partition + * level. */ - Enabled = 'Enabled', + Service = 'Service', /** - * Indicates that the service type is enabled and registered on the node by a - * code package. Replicas of this service type can now be placed on this - * node. The value is 3. + * Indicates the backup policy is applied at application level. All services + * and partitions of the application inherit this policy unless explicitly + * overridden at service or partition level. */ - Registered = 'Registered', + Application = 'Application', } /** - * Defines values for ServiceEndpointRole. - * Possible values include: 'Invalid', 'Stateless', 'StatefulPrimary', - * 'StatefulSecondary' + * Defines values for BackupSuspensionScope. + * Possible values include: 'Invalid', 'Partition', 'Service', 'Application' * There could be more values for this enum apart from the ones defined here.If * you want to set a value that is not from the known values then you can do * the following: - * let param: ServiceEndpointRole = - * "someUnknownValueThatWillStillBeValid"; + * let param: BackupSuspensionScope = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ServiceEndpointRole { +export enum BackupSuspensionScope { /** - * Indicates the service endpoint role is invalid. All Service Fabric - * enumerations have the invalid type. The value is zero. + * Indicates an invalid backup suspension scope type also indicating entity + * is not suspended. All Service Fabric enumerations have the invalid type. */ Invalid = 'Invalid', /** - * Indicates that the service endpoint is of a stateless service. The value - * is 1. + * Indicates the backup suspension is applied at partition level. */ - Stateless = 'Stateless', + Partition = 'Partition', /** - * Indicates that the service endpoint is of a primary replica of a stateful - * service. The value is 2. + * Indicates the backup suspension is applied at service level. All + * partitions of the service are hence suspended for backup. */ - StatefulPrimary = 'StatefulPrimary', + Service = 'Service', /** - * Indicates that the service endpoint is of a secondary replica of a - * stateful service. The value is 3. + * Indicates the backup suspension is applied at application level. All + * services and partitions of the application are hence suspended for backup. */ - StatefulSecondary = 'StatefulSecondary', + Application = 'Application', } /** - * Defines values for OperationState. - * Possible values include: 'Invalid', 'Running', 'RollingBack', 'Completed', - * 'Faulted', 'Cancelled', 'ForceCancelled' + * Defines values for RestoreState. + * Possible values include: 'Invalid', 'Accepted', 'RestoreInProgress', + * 'Success', 'Failure', 'Timeout' * There could be more values for this enum apart from the ones defined here.If * you want to set a value that is not from the known values then you can do * the following: - * let param: OperationState = - * "someUnknownValueThatWillStillBeValid"; + * let param: RestoreState = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum OperationState { +export enum RestoreState { /** - * The operation state is invalid. + * Indicates an invalid restore state. All Service Fabric enumerations have + * the invalid type. */ Invalid = 'Invalid', /** - * The operation is in progress. - */ - Running = 'Running', - /** - * The operation is rolling back internal system state because it encountered - * a fatal error or was cancelled by the user. "RollingBack" does not - * refer to user state. For example, if CancelOperation is called on a - * command of type PartitionDataLoss, state of "RollingBack" does not mean - * service data is being restored (assuming the command has progressed far - * enough to cause data loss). It means the system is rolling back/cleaning - * up internal system state associated with the command. + * Operation has been validated and accepted. Restore is yet to be triggered. */ - RollingBack = 'RollingBack', + Accepted = 'Accepted', /** - * The operation has completed successfully and is no longer running. + * Restore operation has been triggered and is under process. */ - Completed = 'Completed', + RestoreInProgress = 'RestoreInProgress', /** - * The operation has failed and is no longer running. + * Operation completed with success. */ - Faulted = 'Faulted', + Success = 'Success', /** - * The operation was cancelled by the user using CancelOperation, and is no - * longer running. + * Operation completed with failure. */ - Cancelled = 'Cancelled', + Failure = 'Failure', /** - * The operation was cancelled by the user using CancelOperation, with the - * force parameter set to true. It is no longer running. Refer to - * CancelOperation for more details. + * Operation timed out. */ - ForceCancelled = 'ForceCancelled', + Timeout = 'Timeout', } /** - * Defines values for OperationType. - * Possible values include: 'Invalid', 'PartitionDataLoss', - * 'PartitionQuorumLoss', 'PartitionRestart', 'NodeTransition' + * Defines values for BackupType. + * Possible values include: 'Invalid', 'Full', 'Incremental' * There could be more values for this enum apart from the ones defined here.If * you want to set a value that is not from the known values then you can do * the following: - * let param: OperationType = - * "someUnknownValueThatWillStillBeValid"; + * let param: BackupType = "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum OperationType { +export enum BackupType { /** - * The operation state is invalid. + * Indicates an invalid backup type. All Service Fabric enumerations have the + * invalid type. */ Invalid = 'Invalid', /** - * An operation started using the StartDataLoss API. + * Indicates a full backup. */ - PartitionDataLoss = 'PartitionDataLoss', + Full = 'Full', /** - * An operation started using the StartQuorumLoss API. + * Indicates an incremental backup. A backup chain is comprised of a full + * backup followed by 0 or more incremental backups. */ - PartitionQuorumLoss = 'PartitionQuorumLoss', + Incremental = 'Incremental', +} + +/** + * Defines values for BackupScheduleFrequencyType. + * Possible values include: 'Invalid', 'Daily', 'Weekly' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: BackupScheduleFrequencyType = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum BackupScheduleFrequencyType { /** - * An operation started using the StartPartitionRestart API. + * Indicates an invalid backup schedule frequency type. All Service Fabric + * enumerations have the invalid type. */ - PartitionRestart = 'PartitionRestart', + Invalid = 'Invalid', /** - * An operation started using the StartNodeTransition API. + * Indicates that the time based backup schedule is repeated at a daily + * frequency. */ - NodeTransition = 'NodeTransition', + Daily = 'Daily', + /** + * Indicates that the time based backup schedule is repeated at a weekly + * frequency. + */ + Weekly = 'Weekly', } /** - * Defines values for PackageSharingPolicyScope. - * Possible values include: 'None', 'All', 'Code', 'Config', 'Data' + * Defines values for DayOfWeek. + * Possible values include: 'Sunday', 'Monday', 'Tuesday', 'Wednesday', + * 'Thursday', 'Friday', 'Saturday' * There could be more values for this enum apart from the ones defined here.If * you want to set a value that is not from the known values then you can do * the following: - * let param: PackageSharingPolicyScope = - * "someUnknownValueThatWillStillBeValid"; + * let param: DayOfWeek = "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum PackageSharingPolicyScope { +export enum DayOfWeek { /** - * No package sharing policy scope. The value is 0. + * Indicates the Day referred is Sunday. */ - None = 'None', + Sunday = 'Sunday', /** - * Share all code, config and data packages from corresponding service - * manifest. The value is 1. + * Indicates the Day referred is Monday. */ - All = 'All', + Monday = 'Monday', /** - * Share all code packages from corresponding service manifest. The value is - * 2. + * Indicates the Day referred is Tuesday. */ - Code = 'Code', + Tuesday = 'Tuesday', /** - * Share all config packages from corresponding service manifest. The value - * is 3. + * Indicates the Day referred is Wednesday. */ - Config = 'Config', + Wednesday = 'Wednesday', /** - * Share all data packages from corresponding service manifest. The value is - * 4. + * Indicates the Day referred is Thursday. */ - Data = 'Data', + Thursday = 'Thursday', + /** + * Indicates the Day referred is Friday. + */ + Friday = 'Friday', + /** + * Indicates the Day referred is Saturday. + */ + Saturday = 'Saturday', } /** - * Defines values for PropertyValueKind. - * Possible values include: 'Invalid', 'Binary', 'Int64', 'Double', 'String', - * 'Guid' + * Defines values for BackupState. + * Possible values include: 'Invalid', 'Accepted', 'BackupInProgress', + * 'Success', 'Failure', 'Timeout' * There could be more values for this enum apart from the ones defined here.If * you want to set a value that is not from the known values then you can do * the following: - * let param: PropertyValueKind = - * "someUnknownValueThatWillStillBeValid"; + * let param: BackupState = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum PropertyValueKind { +export enum BackupState { /** - * Indicates the property is invalid. All Service Fabric enumerations have - * the invalid type. The value is zero. + * Indicates an invalid backup state. All Service Fabric enumerations have + * the invalid type. */ Invalid = 'Invalid', /** - * The data inside the property is a binary blob. The value is 1. + * Operation has been validated and accepted. Backup is yet to be triggered. */ - Binary = 'Binary', + Accepted = 'Accepted', /** - * The data inside the property is an int64. The value is 2. + * Backup operation has been triggered and is under process. */ - Int64 = 'Int64', + BackupInProgress = 'BackupInProgress', /** - * The data inside the property is a double. The value is 3. + * Operation completed with success. */ - Double = 'Double', + Success = 'Success', /** - * The data inside the property is a string. The value is 4. + * Operation completed with failure. */ - String = 'String', + Failure = 'Failure', /** - * The data inside the property is a guid. The value is 5. + * Operation timed out. */ - Guid = 'Guid', + Timeout = 'Timeout', } /** - * Defines values for PropertyBatchOperationKind. - * Possible values include: 'Invalid', 'Put', 'Get', 'CheckExists', - * 'CheckSequence', 'Delete', 'CheckValue' + * Defines values for BackupEntityKind. + * Possible values include: 'Invalid', 'Partition', 'Service', 'Application' * There could be more values for this enum apart from the ones defined here.If * you want to set a value that is not from the known values then you can do * the following: - * let param: PropertyBatchOperationKind = - * "someUnknownValueThatWillStillBeValid"; + * let param: BackupEntityKind = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum PropertyBatchOperationKind { - /** - * Indicates the property operation is invalid. All Service Fabric - * enumerations have the invalid type. The value is zero. - */ - Invalid = 'Invalid', - /** - * The operation will create or edit a property. The value is 1. - */ - Put = 'Put', - /** - * The operation will get a property. The value is 2. - */ - Get = 'Get', - /** - * The operation will check that a property exists or doesn't exists, - * depending on the provided value. The value is 3. +export enum BackupEntityKind { + /** + * Indicates an invalid entity kind. All Service Fabric enumerations have the + * invalid type. */ - CheckExists = 'CheckExists', + Invalid = 'Invalid', /** - * The operation will ensure that the sequence number is equal to the - * provided value. The value is 4. + * Indicates the entity is a Service Fabric partition. */ - CheckSequence = 'CheckSequence', + Partition = 'Partition', /** - * The operation will delete a property. The value is 5. + * Indicates the entity is a Service Fabric service. */ - Delete = 'Delete', + Service = 'Service', /** - * The operation will ensure that the value of a property is equal to the - * provided value. The value is 7. + * Indicates the entity is a Service Fabric application. */ - CheckValue = 'CheckValue', + Application = 'Application', } /** - * Defines values for PropertyBatchInfoKind. - * Possible values include: 'Invalid', 'Successful', 'Failed' + * Defines values for ImpactLevel. + * Possible values include: 'Invalid', 'None', 'Restart', 'RemoveData', + * 'RemoveNode' * There could be more values for this enum apart from the ones defined here.If * you want to set a value that is not from the known values then you can do * the following: - * let param: PropertyBatchInfoKind = - * "someUnknownValueThatWillStillBeValid"; + * let param: ImpactLevel = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum PropertyBatchInfoKind { - /** - * Indicates the property batch info is invalid. All Service Fabric - * enumerations have the invalid type. - */ +export enum ImpactLevel { Invalid = 'Invalid', - /** - * The property batch succeeded. - */ - Successful = 'Successful', - /** - * The property batch failed. - */ - Failed = 'Failed', + None = 'None', + Restart = 'Restart', + RemoveData = 'RemoveData', + RemoveNode = 'RemoveNode', } /** - * Defines values for BackupStorageKind. - * Possible values include: 'Invalid', 'FileShare', 'AzureBlobStore' + * Defines values for RepairImpactKind. + * Possible values include: 'Invalid', 'Node' * There could be more values for this enum apart from the ones defined here.If * you want to set a value that is not from the known values then you can do * the following: - * let param: BackupStorageKind = - * "someUnknownValueThatWillStillBeValid"; + * let param: RepairImpactKind = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum BackupStorageKind { +export enum RepairImpactKind { /** - * Indicates an invalid backup storage kind. All Service Fabric enumerations - * have the invalid type. + * The repair impact is not valid or is of an unknown type. */ Invalid = 'Invalid', /** - * Indicates file/ SMB share to be used as backup storage. - */ - FileShare = 'FileShare', - /** - * Indicates Azure blob store to be used as backup storage. + * The repair impact affects a set of Service Fabric nodes. */ - AzureBlobStore = 'AzureBlobStore', + Node = 'Node', } /** - * Defines values for BackupScheduleKind. - * Possible values include: 'Invalid', 'TimeBased', 'FrequencyBased' + * Defines values for RepairTargetKind. + * Possible values include: 'Invalid', 'Node' * There could be more values for this enum apart from the ones defined here.If * you want to set a value that is not from the known values then you can do * the following: - * let param: BackupScheduleKind = - * "someUnknownValueThatWillStillBeValid"; + * let param: RepairTargetKind = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum BackupScheduleKind { +export enum RepairTargetKind { /** - * Indicates an invalid backup schedule kind. All Service Fabric enumerations - * have the invalid type. + * The repair target is not valid or is of an unknown type. */ Invalid = 'Invalid', /** - * Indicates a time-based backup schedule. - */ - TimeBased = 'TimeBased', - /** - * Indicates a frequency-based backup schedule. + * The repair target is a set of Service Fabric nodes. */ - FrequencyBased = 'FrequencyBased', + Node = 'Node', } /** - * Defines values for BackupPolicyScope. - * Possible values include: 'Invalid', 'Partition', 'Service', 'Application' + * Defines values for State. + * Possible values include: 'Invalid', 'Created', 'Claimed', 'Preparing', + * 'Approved', 'Executing', 'Restoring', 'Completed' * There could be more values for this enum apart from the ones defined here.If * you want to set a value that is not from the known values then you can do * the following: - * let param: BackupPolicyScope = - * "someUnknownValueThatWillStillBeValid"; + * let param: State = "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum BackupPolicyScope { +export enum State { /** - * Indicates an invalid backup policy scope type. All Service Fabric - * enumerations have the invalid type. + * Indicates that the repair task state is invalid. All Service Fabric + * enumerations have the invalid value. */ Invalid = 'Invalid', /** - * Indicates the backup policy is applied at partition level. Hence - * overriding any policy which may have applied at partition's service or - * application level. + * Indicates that the repair task has been created. */ - Partition = 'Partition', + Created = 'Created', /** - * Indicates the backup policy is applied at service level. All partitions of - * the service inherit this policy unless explicitly overridden at partition - * level. + * Indicates that the repair task has been claimed by a repair executor. */ - Service = 'Service', + Claimed = 'Claimed', /** - * Indicates the backup policy is applied at application level. All services - * and partitions of the application inherit this policy unless explicitly - * overridden at service or partition level. + * Indicates that the Repair Manager is preparing the system to handle the + * impact of the repair task, usually by taking resources offline gracefully. */ - Application = 'Application', + Preparing = 'Preparing', + /** + * Indicates that the repair task has been approved by the Repair Manager and + * is safe to execute. + */ + Approved = 'Approved', + /** + * Indicates that execution of the repair task is in progress. + */ + Executing = 'Executing', + /** + * Indicates that the Repair Manager is restoring the system to its + * pre-repair state, usually by bringing resources back online. + */ + Restoring = 'Restoring', + /** + * Indicates that the repair task has completed, and no further state changes + * will occur. + */ + Completed = 'Completed', } /** - * Defines values for BackupSuspensionScope. - * Possible values include: 'Invalid', 'Partition', 'Service', 'Application' + * Defines values for ResultStatus. + * Possible values include: 'Invalid', 'Succeeded', 'Cancelled', 'Interrupted', + * 'Failed', 'Pending' * There could be more values for this enum apart from the ones defined here.If * you want to set a value that is not from the known values then you can do * the following: - * let param: BackupSuspensionScope = - * "someUnknownValueThatWillStillBeValid"; + * let param: ResultStatus = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum BackupSuspensionScope { +export enum ResultStatus { /** - * Indicates an invalid backup suspension scope type also indicating entity - * is not suspended. All Service Fabric enumerations have the invalid type. + * Indicates that the repair task result is invalid. All Service Fabric + * enumerations have the invalid value. */ Invalid = 'Invalid', /** - * Indicates the backup suspension is applied at partition level. + * Indicates that the repair task completed execution successfully. */ - Partition = 'Partition', + Succeeded = 'Succeeded', /** - * Indicates the backup suspension is applied at service level. All - * partitions of the service are hence suspended for backup. + * Indicates that the repair task was cancelled prior to execution. */ - Service = 'Service', + Cancelled = 'Cancelled', /** - * Indicates the backup suspension is applied at application level. All - * services and partitions of the application are hence suspended for backup. + * Indicates that execution of the repair task was interrupted by a + * cancellation request after some work had already been performed. */ - Application = 'Application', + Interrupted = 'Interrupted', + /** + * Indicates that there was a failure during execution of the repair task. + * Some work may have been performed. + */ + Failed = 'Failed', + /** + * Indicates that the repair task result is not yet available, because the + * repair task has not finished executing. + */ + Pending = 'Pending', } /** - * Defines values for RestoreState. - * Possible values include: 'Invalid', 'Accepted', 'RestoreInProgress', - * 'Success', 'Failure', 'Timeout' + * Defines values for RepairTaskHealthCheckState. + * Possible values include: 'NotStarted', 'InProgress', 'Succeeded', 'Skipped', + * 'TimedOut' * There could be more values for this enum apart from the ones defined here.If * you want to set a value that is not from the known values then you can do * the following: - * let param: RestoreState = - * "someUnknownValueThatWillStillBeValid"; + * let param: RepairTaskHealthCheckState = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum RestoreState { - /** - * Indicates an invalid restore state. All Service Fabric enumerations have - * the invalid type. - */ - Invalid = 'Invalid', +export enum RepairTaskHealthCheckState { /** - * Operation has been validated and accepted. Restore is yet to be triggered. + * Indicates that the health check has not started. */ - Accepted = 'Accepted', + NotStarted = 'NotStarted', /** - * Restore operation has been triggered and is under process. + * Indicates that the health check is in progress. */ - RestoreInProgress = 'RestoreInProgress', + InProgress = 'InProgress', /** - * Operation completed with success. + * Indicates that the health check succeeded. */ - Success = 'Success', + Succeeded = 'Succeeded', /** - * Operation completed with failure. + * Indicates that the health check was skipped. */ - Failure = 'Failure', + Skipped = 'Skipped', /** - * Operation timed out. + * Indicates that the health check timed out. */ - Timeout = 'Timeout', + TimedOut = 'TimedOut', } /** - * Defines values for BackupType. - * Possible values include: 'Invalid', 'Full', 'Incremental' + * Defines values for ScalingTriggerKind. + * Possible values include: 'Invalid', 'AveragePartitionLoad', + * 'AverageServiceLoad' * There could be more values for this enum apart from the ones defined here.If * you want to set a value that is not from the known values then you can do * the following: - * let param: BackupType = "someUnknownValueThatWillStillBeValid"; + * let param: ScalingTriggerKind = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum BackupType { +export enum ScalingTriggerKind { /** - * Indicates an invalid backup type. All Service Fabric enumerations have the - * invalid type. + * Indicates the scaling trigger is invalid. All Service Fabric enumerations + * have the invalid type. The value is zero. */ Invalid = 'Invalid', /** - * Indicates a full backup. + * Indicates a trigger where scaling decisions are made based on average load + * of a partition. The value is 1. */ - Full = 'Full', + AveragePartitionLoad = 'AveragePartitionLoad', /** - * Indicates an incremental backup. A backup chain is comprised of a full - * backup followed by 0 or more incremental backups. + * Indicates a trigger where scaling decisions are made based on average load + * of a service. The value is 2. */ - Incremental = 'Incremental', + AverageServiceLoad = 'AverageServiceLoad', } /** - * Defines values for BackupScheduleFrequencyType. - * Possible values include: 'Invalid', 'Daily', 'Weekly' + * Defines values for ScalingMechanismKind. + * Possible values include: 'Invalid', 'PartitionInstanceCount', + * 'AddRemoveIncrementalNamedPartition' * There could be more values for this enum apart from the ones defined here.If * you want to set a value that is not from the known values then you can do * the following: - * let param: BackupScheduleFrequencyType = - * "someUnknownValueThatWillStillBeValid"; + * let param: ScalingMechanismKind = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum BackupScheduleFrequencyType { - /** - * Indicates an invalid backup schedule frequency type. All Service Fabric - * enumerations have the invalid type. +export enum ScalingMechanismKind { + /** + * Indicates the scaling mechanism is invalid. All Service Fabric + * enumerations have the invalid type. The value is zero. */ Invalid = 'Invalid', /** - * Indicates that the time based backup schedule is repeated at a daily - * frequency. + * Indicates a mechanism for scaling where new instances are added or removed + * from a partition. The value is 1. */ - Daily = 'Daily', + PartitionInstanceCount = 'PartitionInstanceCount', /** - * Indicates that the time based backup schedule is repeated at a weekly - * frequency. + * Indicates a mechanism for scaling where new named partitions are added or + * removed from a service. The value is 2. */ - Weekly = 'Weekly', + AddRemoveIncrementalNamedPartition = 'AddRemoveIncrementalNamedPartition', } /** - * Defines values for DayOfWeek. - * Possible values include: 'Sunday', 'Monday', 'Tuesday', 'Wednesday', - * 'Thursday', 'Friday', 'Saturday' + * Defines values for ResourceStatus. + * Possible values include: 'Unknown', 'Ready', 'Upgrading', 'Creating', + * 'Deleting', 'Failed' * There could be more values for this enum apart from the ones defined here.If * you want to set a value that is not from the known values then you can do * the following: - * let param: DayOfWeek = "someUnknownValueThatWillStillBeValid"; + * let param: ResourceStatus = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum DayOfWeek { - /** - * Indicates the Day referred is Sunday. - */ - Sunday = 'Sunday', +export enum ResourceStatus { /** - * Indicates the Day referred is Monday. + * Indicates the resource status is unknown. The value is zero. */ - Monday = 'Monday', + Unknown = 'Unknown', /** - * Indicates the Day referred is Tuesday. + * Indicates the resource is ready. The value is 1. */ - Tuesday = 'Tuesday', + Ready = 'Ready', /** - * Indicates the Day referred is Wednesday. + * Indicates the resource is upgrading. The value is 2. */ - Wednesday = 'Wednesday', + Upgrading = 'Upgrading', /** - * Indicates the Day referred is Thursday. + * Indicates the resource is being created. The value is 3. */ - Thursday = 'Thursday', + Creating = 'Creating', /** - * Indicates the Day referred is Friday. + * Indicates the resource is being deletd. The value is 4. */ - Friday = 'Friday', + Deleting = 'Deleting', /** - * Indicates the Day referred is Saturday. + * Indicates the resource is not functional due to persistent failures. See + * statusDetails property for more details. The value is 5. */ - Saturday = 'Saturday', + Failed = 'Failed', } /** - * Defines values for BackupState. - * Possible values include: 'Invalid', 'Accepted', 'BackupInProgress', - * 'Success', 'Failure', 'Timeout' + * Defines values for SecretKind. + * Possible values include: 'inlinedValue' * There could be more values for this enum apart from the ones defined here.If * you want to set a value that is not from the known values then you can do * the following: - * let param: BackupState = - * "someUnknownValueThatWillStillBeValid"; + * let param: SecretKind = "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum BackupState { - /** - * Indicates an invalid backup state. All Service Fabric enumerations have - * the invalid type. - */ - Invalid = 'Invalid', - /** - * Operation has been validated and accepted. Backup is yet to be triggered. - */ - Accepted = 'Accepted', - /** - * Backup operation has been triggered and is under process. - */ - BackupInProgress = 'BackupInProgress', - /** - * Operation completed with success. - */ - Success = 'Success', - /** - * Operation completed with failure. - */ - Failure = 'Failure', +export enum SecretKind { /** - * Operation timed out. + * A simple secret resource whose plaintext value is provided by the user. */ - Timeout = 'Timeout', + InlinedValue = 'inlinedValue', } /** - * Defines values for BackupEntityKind. - * Possible values include: 'Invalid', 'Partition', 'Service', 'Application' + * Defines values for VolumeProvider. + * Possible values include: 'SFAzureFile' * There could be more values for this enum apart from the ones defined here.If * you want to set a value that is not from the known values then you can do * the following: - * let param: BackupEntityKind = - * "someUnknownValueThatWillStillBeValid"; + * let param: VolumeProvider = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum BackupEntityKind { - /** - * Indicates an invalid entity kind. All Service Fabric enumerations have the - * invalid type. - */ - Invalid = 'Invalid', - /** - * Indicates the entity is a Service Fabric partition. - */ - Partition = 'Partition', - /** - * Indicates the entity is a Service Fabric service. - */ - Service = 'Service', +export enum VolumeProvider { /** - * Indicates the entity is a Service Fabric application. + * Provides volumes that are backed by Azure Files. */ - Application = 'Application', + SFAzureFile = 'SFAzureFile', } /** - * Defines values for ImpactLevel. - * Possible values include: 'Invalid', 'None', 'Restart', 'RemoveData', - * 'RemoveNode' + * Defines values for SizeTypes. + * Possible values include: 'Small', 'Medium', 'Large' * There could be more values for this enum apart from the ones defined here.If * you want to set a value that is not from the known values then you can do * the following: - * let param: ImpactLevel = - * "someUnknownValueThatWillStillBeValid"; + * let param: SizeTypes = "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ImpactLevel { - Invalid = 'Invalid', - None = 'None', - Restart = 'Restart', - RemoveData = 'RemoveData', - RemoveNode = 'RemoveNode', +export enum SizeTypes { + Small = 'Small', + Medium = 'Medium', + Large = 'Large', } /** - * Defines values for RepairImpactKind. - * Possible values include: 'Invalid', 'Node' + * Defines values for ApplicationScopedVolumeKind. + * Possible values include: 'ServiceFabricVolumeDisk' * There could be more values for this enum apart from the ones defined here.If * you want to set a value that is not from the known values then you can do * the following: - * let param: RepairImpactKind = - * "someUnknownValueThatWillStillBeValid"; + * let param: ApplicationScopedVolumeKind = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum RepairImpactKind { +export enum ApplicationScopedVolumeKind { /** - * The repair impact is not valid or is of an unknown type. + * Provides Service Fabric High Availability Volume Disk */ - Invalid = 'Invalid', + ServiceFabricVolumeDisk = 'ServiceFabricVolumeDisk', +} + +/** + * Defines values for NetworkKind. + * Possible values include: 'Local' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: NetworkKind = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum NetworkKind { /** - * The repair impact affects a set of Service Fabric nodes. + * Indicates a container network local to a single Service Fabric cluster. + * The value is 1. */ - Node = 'Node', + Local = 'Local', } /** - * Defines values for RepairTargetKind. - * Possible values include: 'Invalid', 'Node' + * Defines values for HeaderMatchType. + * Possible values include: 'exact' * There could be more values for this enum apart from the ones defined here.If * you want to set a value that is not from the known values then you can do * the following: - * let param: RepairTargetKind = - * "someUnknownValueThatWillStillBeValid"; + * let param: HeaderMatchType = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum RepairTargetKind { +export enum HeaderMatchType { + Exact = 'exact', +} + +/** + * Defines values for OperatingSystemType. + * Possible values include: 'Linux', 'Windows' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: OperatingSystemType = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum OperatingSystemType { /** - * The repair target is not valid or is of an unknown type. + * The required operating system is Linux. */ - Invalid = 'Invalid', + Linux = 'Linux', /** - * The repair target is a set of Service Fabric nodes. + * The required operating system is Windows. */ - Node = 'Node', + Windows = 'Windows', } /** - * Defines values for State. - * Possible values include: 'Invalid', 'Created', 'Claimed', 'Preparing', - * 'Approved', 'Executing', 'Restoring', 'Completed' + * Defines values for DiagnosticsSinkKind. + * Possible values include: 'Invalid', 'AzureInternalMonitoringPipeline' * There could be more values for this enum apart from the ones defined here.If * you want to set a value that is not from the known values then you can do * the following: - * let param: State = "someUnknownValueThatWillStillBeValid"; + * let param: DiagnosticsSinkKind = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum State { +export enum DiagnosticsSinkKind { /** - * Indicates that the repair task state is invalid. All Service Fabric - * enumerations have the invalid value. + * Indicates an invalid sink kind. All Service Fabric enumerations have the + * invalid type. */ Invalid = 'Invalid', /** - * Indicates that the repair task has been created. - */ - Created = 'Created', - /** - * Indicates that the repair task has been claimed by a repair executor. + * Diagnostics settings for Geneva. */ - Claimed = 'Claimed', + AzureInternalMonitoringPipeline = 'AzureInternalMonitoringPipeline', +} + +/** + * Defines values for AutoScalingMechanismKind. + * Possible values include: 'AddRemoveReplica' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: AutoScalingMechanismKind = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum AutoScalingMechanismKind { /** - * Indicates that the Repair Manager is preparing the system to handle the - * impact of the repair task, usually by taking resources offline gracefully. + * Indicates that scaling should be performed by adding or removing replicas. */ - Preparing = 'Preparing', + AddRemoveReplica = 'AddRemoveReplica', +} + +/** + * Defines values for AutoScalingMetricKind. + * Possible values include: 'Resource' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: AutoScalingMetricKind = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum AutoScalingMetricKind { /** - * Indicates that the repair task has been approved by the Repair Manager and - * is safe to execute. + * Indicates that the metric is one of resources, like cpu or memory. */ - Approved = 'Approved', + Resource = 'Resource', +} + +/** + * Defines values for AutoScalingResourceMetricName. + * Possible values include: 'cpu', 'memoryInGB' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: AutoScalingResourceMetricName = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum AutoScalingResourceMetricName { /** - * Indicates that execution of the repair task is in progress. + * Indicates that the resource is CPU cores. */ - Executing = 'Executing', + Cpu = 'cpu', /** - * Indicates that the Repair Manager is restoring the system to its - * pre-repair state, usually by bringing resources back online. + * Indicates that the resource is memory in GB. */ - Restoring = 'Restoring', + MemoryInGB = 'memoryInGB', +} + +/** + * Defines values for AutoScalingTriggerKind. + * Possible values include: 'AverageLoad' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: AutoScalingTriggerKind = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum AutoScalingTriggerKind { /** - * Indicates that the repair task has completed, and no further state changes - * will occur. + * Indicates that scaling should be performed based on average load of all + * replicas in the service. */ - Completed = 'Completed', + AverageLoad = 'AverageLoad', } /** - * Defines values for ResultStatus. - * Possible values include: 'Invalid', 'Succeeded', 'Cancelled', 'Interrupted', - * 'Failed', 'Pending' + * Defines values for NodeStatusFilter. + * Possible values include: 'default', 'all', 'up', 'down', 'enabling', + * 'disabling', 'disabled', 'unknown', 'removed' * There could be more values for this enum apart from the ones defined here.If * you want to set a value that is not from the known values then you can do * the following: - * let param: ResultStatus = - * "someUnknownValueThatWillStillBeValid"; + * let param: NodeStatusFilter = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ResultStatus { +export enum NodeStatusFilter { /** - * Indicates that the repair task result is invalid. All Service Fabric - * enumerations have the invalid value. + * This filter value will match all of the nodes excepts the ones with status + * as Unknown or Removed. */ - Invalid = 'Invalid', + Default = 'default', /** - * Indicates that the repair task completed execution successfully. + * This filter value will match all of the nodes. */ - Succeeded = 'Succeeded', + All = 'all', /** - * Indicates that the repair task was cancelled prior to execution. + * This filter value will match nodes that are Up. */ - Cancelled = 'Cancelled', + Up = 'up', + /** + * This filter value will match nodes that are Down. + */ + Down = 'down', + /** + * This filter value will match nodes that are in the process of being + * enabled with status as Enabling. + */ + Enabling = 'enabling', + /** + * This filter value will match nodes that are in the process of being + * disabled with status as Disabling. + */ + Disabling = 'disabling', /** - * Indicates that execution of the repair task was interrupted by a - * cancellation request after some work had already been performed. + * This filter value will match nodes that are Disabled. */ - Interrupted = 'Interrupted', + Disabled = 'disabled', /** - * Indicates that there was a failure during execution of the repair task. - * Some work may have been performed. + * This filter value will match nodes whose status is Unknown. A node would + * be in Unknown state if Service Fabric does not have authoritative + * information about that node. This can happen if the system learns about a + * node at runtime. */ - Failed = 'Failed', + Unknown = 'unknown', /** - * Indicates that the repair task result is not yet available, because the - * repair task has not finished executing. + * This filter value will match nodes whose status is Removed. These are the + * nodes that are removed from the cluster using the RemoveNodeState API. */ - Pending = 'Pending', + Removed = 'removed', } /** - * Defines values for RepairTaskHealthCheckState. - * Possible values include: 'NotStarted', 'InProgress', 'Succeeded', 'Skipped', - * 'TimedOut' + * Defines values for ReplicaHealthReportServiceKind. + * Possible values include: 'Stateless', 'Stateful' * There could be more values for this enum apart from the ones defined here.If * you want to set a value that is not from the known values then you can do * the following: - * let param: RepairTaskHealthCheckState = - * "someUnknownValueThatWillStillBeValid"; + * let param: ReplicaHealthReportServiceKind = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum RepairTaskHealthCheckState { - /** - * Indicates that the health check has not started. - */ - NotStarted = 'NotStarted', - /** - * Indicates that the health check is in progress. - */ - InProgress = 'InProgress', - /** - * Indicates that the health check succeeded. - */ - Succeeded = 'Succeeded', +export enum ReplicaHealthReportServiceKind { /** - * Indicates that the health check was skipped. + * Does not use Service Fabric to make its state highly available or + * reliable. The value is 1 */ - Skipped = 'Skipped', + Stateless = 'Stateless', /** - * Indicates that the health check timed out. + * Uses Service Fabric to make its state or part of its state highly + * available and reliable. The value is 2. */ - TimedOut = 'TimedOut', + Stateful = 'Stateful', } /** - * Defines values for ScalingTriggerKind. - * Possible values include: 'Invalid', 'AveragePartitionLoad', - * 'AverageServiceLoad' + * Defines values for DataLossMode. + * Possible values include: 'Invalid', 'PartialDataLoss', 'FullDataLoss' * There could be more values for this enum apart from the ones defined here.If * you want to set a value that is not from the known values then you can do * the following: - * let param: ScalingTriggerKind = - * "someUnknownValueThatWillStillBeValid"; + * let param: DataLossMode = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ScalingTriggerKind { +export enum DataLossMode { /** - * Indicates the scaling trigger is invalid. All Service Fabric enumerations - * have the invalid type. The value is zero. + * Reserved. Do not pass into API. */ Invalid = 'Invalid', /** - * Indicates a trigger where scaling decisions are made based on average load - * of a partition. The value is 1. + * PartialDataLoss option will cause a quorum of replicas to go down, + * triggering an OnDataLoss event in the system for the given partition. */ - AveragePartitionLoad = 'AveragePartitionLoad', + PartialDataLoss = 'PartialDataLoss', /** - * Indicates a trigger where scaling decisions are made based on average load - * of a service. The value is 2. + * FullDataLoss option will drop all the replicas which means that all the + * data will be lost. */ - AverageServiceLoad = 'AverageServiceLoad', + FullDataLoss = 'FullDataLoss', } /** - * Defines values for ScalingMechanismKind. - * Possible values include: 'Invalid', 'PartitionInstanceCount', - * 'AddRemoveIncrementalNamedPartition' + * Defines values for NodeTransitionType. + * Possible values include: 'Invalid', 'Start', 'Stop' * There could be more values for this enum apart from the ones defined here.If * you want to set a value that is not from the known values then you can do * the following: - * let param: ScalingMechanismKind = - * "someUnknownValueThatWillStillBeValid"; + * let param: NodeTransitionType = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ScalingMechanismKind { +export enum NodeTransitionType { /** - * Indicates the scaling mechanism is invalid. All Service Fabric - * enumerations have the invalid type. The value is zero. + * Reserved. Do not pass into API. */ Invalid = 'Invalid', /** - * Indicates a mechanism for scaling where new instances are added or removed - * from a partition. The value is 1. + * Transition a stopped node to up. */ - PartitionInstanceCount = 'PartitionInstanceCount', + Start = 'Start', /** - * Indicates a mechanism for scaling where new named partitions are added or - * removed from a service. The value is 2. + * Transition an up node to stopped. */ - AddRemoveIncrementalNamedPartition = 'AddRemoveIncrementalNamedPartition', + Stop = 'Stop', } /** - * Defines values for ServiceResourceStatus. - * Possible values include: 'Unknown', 'Active', 'Upgrading', 'Deleting', - * 'Creating', 'Failed' + * Defines values for QuorumLossMode. + * Possible values include: 'Invalid', 'QuorumReplicas', 'AllReplicas' * There could be more values for this enum apart from the ones defined here.If * you want to set a value that is not from the known values then you can do * the following: - * let param: ServiceResourceStatus = - * "someUnknownValueThatWillStillBeValid"; + * let param: QuorumLossMode = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ServiceResourceStatus { - Unknown = 'Unknown', - Active = 'Active', - Upgrading = 'Upgrading', - Deleting = 'Deleting', - Creating = 'Creating', - Failed = 'Failed', +export enum QuorumLossMode { + /** + * Reserved. Do not pass into API. + */ + Invalid = 'Invalid', + /** + * Partial Quorum loss mode : Minimum number of replicas for a partition will + * be down that will cause a quorum loss. + */ + QuorumReplicas = 'QuorumReplicas', + AllReplicas = 'AllReplicas', } /** - * Defines values for ApplicationResourceStatus. - * Possible values include: 'Invalid', 'Ready', 'Upgrading', 'Creating', - * 'Deleting', 'Failed' + * Defines values for RestartPartitionMode. + * Possible values include: 'Invalid', 'AllReplicasOrInstances', + * 'OnlyActiveSecondaries' * There could be more values for this enum apart from the ones defined here.If * you want to set a value that is not from the known values then you can do * the following: - * let param: ApplicationResourceStatus = - * "someUnknownValueThatWillStillBeValid"; + * let param: RestartPartitionMode = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ApplicationResourceStatus { +export enum RestartPartitionMode { + /** + * Reserved. Do not pass into API. + */ Invalid = 'Invalid', - Ready = 'Ready', - Upgrading = 'Upgrading', - Creating = 'Creating', - Deleting = 'Deleting', - Failed = 'Failed', + /** + * All replicas or instances in the partition are restarted at once. + */ + AllReplicasOrInstances = 'AllReplicasOrInstances', + /** + * Only the secondary replicas are restarted. + */ + OnlyActiveSecondaries = 'OnlyActiveSecondaries', } /** - * Defines values for DiagnosticsSinkKind. - * Possible values include: 'Invalid', 'AzureInternalMonitoringPipeline' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: DiagnosticsSinkKind = - * "someUnknownValueThatWillStillBeValid"; - * @readonly - * @enum {string} + * Contains response data for the getClusterManifest operation. */ -export enum DiagnosticsSinkKind { +export type GetClusterManifestResponse = ClusterManifest & { /** - * Indicates an invalid sink kind. All Service Fabric enumerations have the - * invalid type. + * The underlying HTTP response. */ - Invalid = 'Invalid', + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ClusterManifest; + }; +}; + +/** + * Contains response data for the getClusterHealth operation. + */ +export type GetClusterHealthResponse = ClusterHealth & { /** - * Diagnostics settings for Geneva. + * The underlying HTTP response. */ - AzureInternalMonitoringPipeline = 'AzureInternalMonitoringPipeline', -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ClusterHealth; + }; +}; /** - * Defines values for OperatingSystemTypes. - * Possible values include: 'Linux', 'Windows' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: OperatingSystemTypes = - * "someUnknownValueThatWillStillBeValid"; - * @readonly - * @enum {string} + * Contains response data for the getClusterHealthUsingPolicy operation. */ -export enum OperatingSystemTypes { - Linux = 'Linux', - Windows = 'Windows', -} +export type GetClusterHealthUsingPolicyResponse = ClusterHealth & { + /** + * 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: ClusterHealth; + }; +}; + +/** + * Contains response data for the getClusterHealthChunk operation. + */ +export type GetClusterHealthChunkResponse = ClusterHealthChunk & { + /** + * 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: ClusterHealthChunk; + }; +}; + +/** + * Contains response data for the getClusterHealthChunkUsingPolicyAndAdvancedFilters operation. + */ +export type GetClusterHealthChunkUsingPolicyAndAdvancedFiltersResponse = ClusterHealthChunk & { + /** + * 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: ClusterHealthChunk; + }; +}; /** - * Defines values for NodeStatusFilter. - * Possible values include: 'default', 'all', 'up', 'down', 'enabling', - * 'disabling', 'disabled', 'unknown', 'removed' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: NodeStatusFilter = - * "someUnknownValueThatWillStillBeValid"; - * @readonly - * @enum {string} + * Contains response data for the getProvisionedFabricCodeVersionInfoList operation. */ -export enum NodeStatusFilter { - /** - * This filter value will match all of the nodes excepts the ones with status - * as Unknown or Removed. - */ - Default = 'default', - /** - * This filter value will match all of the nodes. - */ - All = 'all', - /** - * This filter value will match nodes that are Up. - */ - Up = 'up', +export type GetProvisionedFabricCodeVersionInfoListResponse = Array & { /** - * This filter value will match nodes that are Down. + * The underlying HTTP response. */ - Down = 'down', + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: FabricCodeVersionInfo[]; + }; +}; + +/** + * Contains response data for the getProvisionedFabricConfigVersionInfoList operation. + */ +export type GetProvisionedFabricConfigVersionInfoListResponse = Array & { /** - * This filter value will match nodes that are in the process of being - * enabled with status as Enabling. + * The underlying HTTP response. */ - Enabling = 'enabling', + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: FabricConfigVersionInfo[]; + }; +}; + +/** + * Contains response data for the getClusterUpgradeProgress operation. + */ +export type GetClusterUpgradeProgressResponse = ClusterUpgradeProgressObject & { /** - * This filter value will match nodes that are in the process of being - * disabled with status as Disabling. + * The underlying HTTP response. */ - Disabling = 'disabling', + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ClusterUpgradeProgressObject; + }; +}; + +/** + * Contains response data for the getClusterConfiguration operation. + */ +export type GetClusterConfigurationResponse = ClusterConfiguration & { /** - * This filter value will match nodes that are Disabled. + * The underlying HTTP response. */ - Disabled = 'disabled', + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ClusterConfiguration; + }; +}; + +/** + * Contains response data for the getClusterConfigurationUpgradeStatus operation. + */ +export type GetClusterConfigurationUpgradeStatusResponse = ClusterConfigurationUpgradeStatusInfo & { /** - * This filter value will match nodes whose status is Unknown. A node would - * be in Unknown state if Service Fabric does not have authoritative - * information about that node. This can happen if the system learns about a - * node at runtime. + * The underlying HTTP response. */ - Unknown = 'unknown', + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ClusterConfigurationUpgradeStatusInfo; + }; +}; + +/** + * Contains response data for the getUpgradeOrchestrationServiceState operation. + */ +export type GetUpgradeOrchestrationServiceStateResponse = UpgradeOrchestrationServiceState & { /** - * This filter value will match nodes whose status is Removed. These are the - * nodes that are removed from the cluster using the RemoveNodeState API. + * The underlying HTTP response. */ - Removed = 'removed', -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: UpgradeOrchestrationServiceState; + }; +}; /** - * Defines values for ReplicaHealthReportServiceKind. - * Possible values include: 'Stateless', 'Stateful' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ReplicaHealthReportServiceKind = - * "someUnknownValueThatWillStillBeValid"; - * @readonly - * @enum {string} + * Contains response data for the setUpgradeOrchestrationServiceState operation. */ -export enum ReplicaHealthReportServiceKind { +export type SetUpgradeOrchestrationServiceStateResponse = UpgradeOrchestrationServiceStateSummary & { /** - * Does not use Service Fabric to make its state highly available or - * reliable. The value is 1 + * The underlying HTTP response. */ - Stateless = 'Stateless', + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: UpgradeOrchestrationServiceStateSummary; + }; +}; + +/** + * Contains response data for the getAadMetadata operation. + */ +export type GetAadMetadataResponse = AadMetadataObject & { /** - * Uses Service Fabric to make its state or part of its state highly - * available and reliable. The value is 2. + * The underlying HTTP response. */ - Stateful = 'Stateful', -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AadMetadataObject; + }; +}; /** - * Defines values for DataLossMode. - * Possible values include: 'Invalid', 'PartialDataLoss', 'FullDataLoss' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: DataLossMode = - * "someUnknownValueThatWillStillBeValid"; - * @readonly - * @enum {string} + * Contains response data for the getClusterVersion operation. */ -export enum DataLossMode { +export type GetClusterVersionResponse = ClusterVersion & { /** - * Reserved. Do not pass into API. + * The underlying HTTP response. */ - Invalid = 'Invalid', + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ClusterVersion; + }; +}; + +/** + * Contains response data for the getNodeInfoList operation. + */ +export type GetNodeInfoListResponse = PagedNodeInfoList & { /** - * PartialDataLoss option will cause a quorum of replicas to go down, - * triggering an OnDataLoss event in the system for the given partition. + * The underlying HTTP response. */ - PartialDataLoss = 'PartialDataLoss', + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PagedNodeInfoList; + }; +}; + +/** + * Contains response data for the getNodeInfo operation. + */ +export type GetNodeInfoResponse = NodeInfo & { /** - * FullDataLoss option will drop all the replicas which means that all the - * data will be lost. + * The underlying HTTP response. */ - FullDataLoss = 'FullDataLoss', -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: NodeInfo; + }; +}; /** - * Defines values for NodeTransitionType. - * Possible values include: 'Invalid', 'Start', 'Stop' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: NodeTransitionType = - * "someUnknownValueThatWillStillBeValid"; - * @readonly - * @enum {string} + * Contains response data for the getNodeHealth operation. */ -export enum NodeTransitionType { - /** - * Reserved. Do not pass into API. - */ - Invalid = 'Invalid', - /** - * Transition a stopped node to up. - */ - Start = 'Start', +export type GetNodeHealthResponse = NodeHealth & { /** - * Transition an up node to stopped. + * The underlying HTTP response. */ - Stop = 'Stop', -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: NodeHealth; + }; +}; /** - * Defines values for QuorumLossMode. - * Possible values include: 'Invalid', 'QuorumReplicas', 'AllReplicas' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: QuorumLossMode = - * "someUnknownValueThatWillStillBeValid"; - * @readonly - * @enum {string} + * Contains response data for the getNodeHealthUsingPolicy operation. */ -export enum QuorumLossMode { - /** - * Reserved. Do not pass into API. - */ - Invalid = 'Invalid', +export type GetNodeHealthUsingPolicyResponse = NodeHealth & { /** - * Partial Quorum loss mode : Minimum number of replicas for a partition will - * be down that will cause a quorum loss. + * The underlying HTTP response. */ - QuorumReplicas = 'QuorumReplicas', - AllReplicas = 'AllReplicas', -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: NodeHealth; + }; +}; /** - * Defines values for RestartPartitionMode. - * Possible values include: 'Invalid', 'AllReplicasOrInstances', - * 'OnlyActiveSecondaries' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: RestartPartitionMode = - * "someUnknownValueThatWillStillBeValid"; - * @readonly - * @enum {string} + * Contains response data for the getNodeLoadInfo operation. */ -export enum RestartPartitionMode { - /** - * Reserved. Do not pass into API. - */ - Invalid = 'Invalid', - /** - * All replicas or instances in the partition are restarted at once. - */ - AllReplicasOrInstances = 'AllReplicasOrInstances', +export type GetNodeLoadInfoResponse = NodeLoadInfo & { /** - * Only the secondary replicas are restarted. + * The underlying HTTP response. */ - OnlyActiveSecondaries = 'OnlyActiveSecondaries', -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: NodeLoadInfo; + }; +}; /** - * Contains response data for the getClusterManifest operation. + * Contains response data for the getApplicationTypeInfoList operation. */ -export type GetClusterManifestResponse = ClusterManifest & { +export type GetApplicationTypeInfoListResponse = PagedApplicationTypeInfoList & { /** * The underlying HTTP response. */ @@ -25536,14 +27191,14 @@ export type GetClusterManifestResponse = ClusterManifest & { /** * The response body as parsed JSON or XML */ - parsedBody: ClusterManifest; + parsedBody: PagedApplicationTypeInfoList; }; }; /** - * Contains response data for the getClusterHealth operation. + * Contains response data for the getApplicationTypeInfoListByName operation. */ -export type GetClusterHealthResponse = ClusterHealth & { +export type GetApplicationTypeInfoListByNameResponse = PagedApplicationTypeInfoList & { /** * The underlying HTTP response. */ @@ -25555,14 +27210,14 @@ export type GetClusterHealthResponse = ClusterHealth & { /** * The response body as parsed JSON or XML */ - parsedBody: ClusterHealth; + parsedBody: PagedApplicationTypeInfoList; }; }; /** - * Contains response data for the getClusterHealthUsingPolicy operation. + * Contains response data for the getServiceTypeInfoList operation. */ -export type GetClusterHealthUsingPolicyResponse = ClusterHealth & { +export type GetServiceTypeInfoListResponse = Array & { /** * The underlying HTTP response. */ @@ -25574,14 +27229,14 @@ export type GetClusterHealthUsingPolicyResponse = ClusterHealth & { /** * The response body as parsed JSON or XML */ - parsedBody: ClusterHealth; + parsedBody: ServiceTypeInfo[]; }; }; /** - * Contains response data for the getClusterHealthChunk operation. + * Contains response data for the getServiceTypeInfoByName operation. */ -export type GetClusterHealthChunkResponse = ClusterHealthChunk & { +export type GetServiceTypeInfoByNameResponse = ServiceTypeInfo & { /** * The underlying HTTP response. */ @@ -25593,14 +27248,14 @@ export type GetClusterHealthChunkResponse = ClusterHealthChunk & { /** * The response body as parsed JSON or XML */ - parsedBody: ClusterHealthChunk; + parsedBody: ServiceTypeInfo; }; }; /** - * Contains response data for the getClusterHealthChunkUsingPolicyAndAdvancedFilters operation. + * Contains response data for the getServiceManifest operation. */ -export type GetClusterHealthChunkUsingPolicyAndAdvancedFiltersResponse = ClusterHealthChunk & { +export type GetServiceManifestResponse = ServiceTypeManifest & { /** * The underlying HTTP response. */ @@ -25612,14 +27267,14 @@ export type GetClusterHealthChunkUsingPolicyAndAdvancedFiltersResponse = Cluster /** * The response body as parsed JSON or XML */ - parsedBody: ClusterHealthChunk; + parsedBody: ServiceTypeManifest; }; }; /** - * Contains response data for the getProvisionedFabricCodeVersionInfoList operation. + * Contains response data for the getDeployedServiceTypeInfoList operation. */ -export type GetProvisionedFabricCodeVersionInfoListResponse = Array & { +export type GetDeployedServiceTypeInfoListResponse = Array & { /** * The underlying HTTP response. */ @@ -25631,14 +27286,14 @@ export type GetProvisionedFabricCodeVersionInfoListResponse = Array & { +export type GetDeployedServiceTypeInfoByNameResponse = Array & { /** * The underlying HTTP response. */ @@ -25650,14 +27305,14 @@ export type GetProvisionedFabricConfigVersionInfoListResponse = Array & { +export type GetApplicationNameInfoResponse = ApplicationNameInfo & { /** * The underlying HTTP response. */ @@ -25916,14 +27571,14 @@ export type GetServiceTypeInfoListResponse = Array & { /** * The response body as parsed JSON or XML */ - parsedBody: ServiceTypeInfo[]; + parsedBody: ApplicationNameInfo; }; }; /** - * Contains response data for the getServiceTypeInfoByName operation. + * Contains response data for the getServiceDescription operation. */ -export type GetServiceTypeInfoByNameResponse = ServiceTypeInfo & { +export type GetServiceDescriptionResponse = ServiceDescriptionUnion & { /** * The underlying HTTP response. */ @@ -25935,14 +27590,14 @@ export type GetServiceTypeInfoByNameResponse = ServiceTypeInfo & { /** * The response body as parsed JSON or XML */ - parsedBody: ServiceTypeInfo; + parsedBody: ServiceDescriptionUnion; }; }; /** - * Contains response data for the getServiceManifest operation. + * Contains response data for the getServiceHealth operation. */ -export type GetServiceManifestResponse = ServiceTypeManifest & { +export type GetServiceHealthResponse = ServiceHealth & { /** * The underlying HTTP response. */ @@ -25954,14 +27609,14 @@ export type GetServiceManifestResponse = ServiceTypeManifest & { /** * The response body as parsed JSON or XML */ - parsedBody: ServiceTypeManifest; + parsedBody: ServiceHealth; }; }; /** - * Contains response data for the getDeployedServiceTypeInfoList operation. + * Contains response data for the getServiceHealthUsingPolicy operation. */ -export type GetDeployedServiceTypeInfoListResponse = Array & { +export type GetServiceHealthUsingPolicyResponse = ServiceHealth & { /** * The underlying HTTP response. */ @@ -25973,14 +27628,14 @@ export type GetDeployedServiceTypeInfoListResponse = Array & { +export type ResolveServiceResponse = ResolvedServicePartition & { /** * The underlying HTTP response. */ @@ -25992,14 +27647,14 @@ export type GetDeployedServiceTypeInfoByNameResponse = Array & { /** * The underlying HTTP response. */ @@ -26163,14 +27818,14 @@ export type GetDeployedApplicationHealthResponse = DeployedApplicationHealth & { /** * The response body as parsed JSON or XML */ - parsedBody: DeployedApplicationHealth; + parsedBody: RepairTask[]; }; }; /** - * Contains response data for the getDeployedApplicationHealthUsingPolicy operation. + * Contains response data for the forceApproveRepairTask operation. */ -export type GetDeployedApplicationHealthUsingPolicyResponse = DeployedApplicationHealth & { +export type ForceApproveRepairTaskResponse = RepairTaskUpdateInfo & { /** * The underlying HTTP response. */ @@ -26182,14 +27837,14 @@ export type GetDeployedApplicationHealthUsingPolicyResponse = DeployedApplicatio /** * The response body as parsed JSON or XML */ - parsedBody: DeployedApplicationHealth; + parsedBody: RepairTaskUpdateInfo; }; }; /** - * Contains response data for the getApplicationManifest operation. + * Contains response data for the updateRepairTaskHealthPolicy operation. */ -export type GetApplicationManifestResponse = ApplicationTypeManifest & { +export type UpdateRepairTaskHealthPolicyResponse = RepairTaskUpdateInfo & { /** * The underlying HTTP response. */ @@ -26201,14 +27856,14 @@ export type GetApplicationManifestResponse = ApplicationTypeManifest & { /** * The response body as parsed JSON or XML */ - parsedBody: ApplicationTypeManifest; + parsedBody: RepairTaskUpdateInfo; }; }; /** - * Contains response data for the getServiceInfoList operation. + * Contains response data for the updateRepairExecutionState operation. */ -export type GetServiceInfoListResponse = PagedServiceInfoList & { +export type UpdateRepairExecutionStateResponse = RepairTaskUpdateInfo & { /** * The underlying HTTP response. */ @@ -26220,14 +27875,14 @@ export type GetServiceInfoListResponse = PagedServiceInfoList & { /** * The response body as parsed JSON or XML */ - parsedBody: PagedServiceInfoList; + parsedBody: RepairTaskUpdateInfo; }; }; /** - * Contains response data for the getServiceInfo operation. + * Contains response data for the getReplicaInfoList operation. */ -export type GetServiceInfoResponse = ServiceInfoUnion & { +export type GetReplicaInfoListResponse = PagedReplicaInfoList & { /** * The underlying HTTP response. */ @@ -26239,14 +27894,14 @@ export type GetServiceInfoResponse = ServiceInfoUnion & { /** * The response body as parsed JSON or XML */ - parsedBody: ServiceInfoUnion; + parsedBody: PagedReplicaInfoList; }; }; /** - * Contains response data for the getApplicationNameInfo operation. + * Contains response data for the getReplicaInfo operation. */ -export type GetApplicationNameInfoResponse = ApplicationNameInfo & { +export type GetReplicaInfoResponse = ReplicaInfoUnion & { /** * The underlying HTTP response. */ @@ -26258,14 +27913,14 @@ export type GetApplicationNameInfoResponse = ApplicationNameInfo & { /** * The response body as parsed JSON or XML */ - parsedBody: ApplicationNameInfo; + parsedBody: ReplicaInfoUnion; }; }; /** - * Contains response data for the getServiceDescription operation. + * Contains response data for the getReplicaHealth operation. */ -export type GetServiceDescriptionResponse = ServiceDescriptionUnion & { +export type GetReplicaHealthResponse = ReplicaHealthUnion & { /** * The underlying HTTP response. */ @@ -26277,14 +27932,14 @@ export type GetServiceDescriptionResponse = ServiceDescriptionUnion & { /** * The response body as parsed JSON or XML */ - parsedBody: ServiceDescriptionUnion; + parsedBody: ReplicaHealthUnion; }; }; /** - * Contains response data for the getServiceHealth operation. + * Contains response data for the getReplicaHealthUsingPolicy operation. */ -export type GetServiceHealthResponse = ServiceHealth & { +export type GetReplicaHealthUsingPolicyResponse = ReplicaHealthUnion & { /** * The underlying HTTP response. */ @@ -26296,14 +27951,14 @@ export type GetServiceHealthResponse = ServiceHealth & { /** * The response body as parsed JSON or XML */ - parsedBody: ServiceHealth; + parsedBody: ReplicaHealthUnion; }; }; /** - * Contains response data for the getServiceHealthUsingPolicy operation. + * Contains response data for the getDeployedServiceReplicaInfoList operation. */ -export type GetServiceHealthUsingPolicyResponse = ServiceHealth & { +export type GetDeployedServiceReplicaInfoListResponse = Array & { /** * The underlying HTTP response. */ @@ -26315,14 +27970,14 @@ export type GetServiceHealthUsingPolicyResponse = ServiceHealth & { /** * The response body as parsed JSON or XML */ - parsedBody: ServiceHealth; + parsedBody: DeployedServiceReplicaInfoUnion[]; }; }; /** - * Contains response data for the resolveService operation. + * Contains response data for the getDeployedServiceReplicaDetailInfo operation. */ -export type ResolveServiceResponse = ResolvedServicePartition & { +export type GetDeployedServiceReplicaDetailInfoResponse = DeployedServiceReplicaDetailInfoUnion & { /** * The underlying HTTP response. */ @@ -26334,14 +27989,14 @@ export type ResolveServiceResponse = ResolvedServicePartition & { /** * The response body as parsed JSON or XML */ - parsedBody: ResolvedServicePartition; + parsedBody: DeployedServiceReplicaDetailInfoUnion; }; }; /** - * Contains response data for the getPartitionInfoList operation. + * Contains response data for the getDeployedServiceReplicaDetailInfoByPartitionId operation. */ -export type GetPartitionInfoListResponse = PagedServicePartitionInfoList & { +export type GetDeployedServiceReplicaDetailInfoByPartitionIdResponse = DeployedServiceReplicaDetailInfoUnion & { /** * The underlying HTTP response. */ @@ -26353,14 +28008,14 @@ export type GetPartitionInfoListResponse = PagedServicePartitionInfoList & { /** * The response body as parsed JSON or XML */ - parsedBody: PagedServicePartitionInfoList; + parsedBody: DeployedServiceReplicaDetailInfoUnion; }; }; /** - * Contains response data for the getPartitionInfo operation. + * Contains response data for the getDeployedServicePackageInfoList operation. */ -export type GetPartitionInfoResponse = ServicePartitionInfoUnion & { +export type GetDeployedServicePackageInfoListResponse = Array & { /** * The underlying HTTP response. */ @@ -26372,14 +28027,14 @@ export type GetPartitionInfoResponse = ServicePartitionInfoUnion & { /** * The response body as parsed JSON or XML */ - parsedBody: ServicePartitionInfoUnion; + parsedBody: DeployedServicePackageInfo[]; }; }; /** - * Contains response data for the getServiceNameInfo operation. + * Contains response data for the getDeployedServicePackageInfoListByName operation. */ -export type GetServiceNameInfoResponse = ServiceNameInfo & { +export type GetDeployedServicePackageInfoListByNameResponse = Array & { /** * The underlying HTTP response. */ @@ -26391,14 +28046,14 @@ export type GetServiceNameInfoResponse = ServiceNameInfo & { /** * The response body as parsed JSON or XML */ - parsedBody: ServiceNameInfo; + parsedBody: DeployedServicePackageInfo[]; }; }; /** - * Contains response data for the getPartitionHealth operation. + * Contains response data for the getDeployedServicePackageHealth operation. */ -export type GetPartitionHealthResponse = PartitionHealth & { +export type GetDeployedServicePackageHealthResponse = DeployedServicePackageHealth & { /** * The underlying HTTP response. */ @@ -26410,14 +28065,14 @@ export type GetPartitionHealthResponse = PartitionHealth & { /** * The response body as parsed JSON or XML */ - parsedBody: PartitionHealth; + parsedBody: DeployedServicePackageHealth; }; }; /** - * Contains response data for the getPartitionHealthUsingPolicy operation. + * Contains response data for the getDeployedServicePackageHealthUsingPolicy operation. */ -export type GetPartitionHealthUsingPolicyResponse = PartitionHealth & { +export type GetDeployedServicePackageHealthUsingPolicyResponse = DeployedServicePackageHealth & { /** * The underlying HTTP response. */ @@ -26429,14 +28084,14 @@ export type GetPartitionHealthUsingPolicyResponse = PartitionHealth & { /** * The response body as parsed JSON or XML */ - parsedBody: PartitionHealth; + parsedBody: DeployedServicePackageHealth; }; }; /** - * Contains response data for the getPartitionLoadInformation operation. + * Contains response data for the getDeployedCodePackageInfoList operation. */ -export type GetPartitionLoadInformationResponse = PartitionLoadInformation & { +export type GetDeployedCodePackageInfoListResponse = Array & { /** * The underlying HTTP response. */ @@ -26448,14 +28103,14 @@ export type GetPartitionLoadInformationResponse = PartitionLoadInformation & { /** * The response body as parsed JSON or XML */ - parsedBody: PartitionLoadInformation; + parsedBody: DeployedCodePackageInfo[]; }; }; /** - * Contains response data for the createRepairTask operation. + * Contains response data for the getContainerLogsDeployedOnNode operation. */ -export type CreateRepairTaskResponse = RepairTaskUpdateInfo & { +export type GetContainerLogsDeployedOnNodeResponse = ContainerLogs & { /** * The underlying HTTP response. */ @@ -26467,14 +28122,14 @@ export type CreateRepairTaskResponse = RepairTaskUpdateInfo & { /** * The response body as parsed JSON or XML */ - parsedBody: RepairTaskUpdateInfo; + parsedBody: ContainerLogs; }; }; /** - * Contains response data for the cancelRepairTask operation. + * Contains response data for the invokeContainerApi operation. */ -export type CancelRepairTaskResponse = RepairTaskUpdateInfo & { +export type InvokeContainerApiResponse = ContainerApiResponse & { /** * The underlying HTTP response. */ @@ -26486,14 +28141,14 @@ export type CancelRepairTaskResponse = RepairTaskUpdateInfo & { /** * The response body as parsed JSON or XML */ - parsedBody: RepairTaskUpdateInfo; + parsedBody: ContainerApiResponse; }; }; /** - * Contains response data for the getRepairTaskList operation. + * Contains response data for the getComposeDeploymentStatus operation. */ -export type GetRepairTaskListResponse = Array & { +export type GetComposeDeploymentStatusResponse = ComposeDeploymentStatusInfo & { /** * The underlying HTTP response. */ @@ -26505,14 +28160,14 @@ export type GetRepairTaskListResponse = Array & { /** * The response body as parsed JSON or XML */ - parsedBody: RepairTask[]; + parsedBody: ComposeDeploymentStatusInfo; }; }; /** - * Contains response data for the forceApproveRepairTask operation. + * Contains response data for the getComposeDeploymentStatusList operation. */ -export type ForceApproveRepairTaskResponse = RepairTaskUpdateInfo & { +export type GetComposeDeploymentStatusListResponse = PagedComposeDeploymentStatusInfoList & { /** * The underlying HTTP response. */ @@ -26524,14 +28179,14 @@ export type ForceApproveRepairTaskResponse = RepairTaskUpdateInfo & { /** * The response body as parsed JSON or XML */ - parsedBody: RepairTaskUpdateInfo; + parsedBody: PagedComposeDeploymentStatusInfoList; }; }; /** - * Contains response data for the updateRepairTaskHealthPolicy operation. + * Contains response data for the getComposeDeploymentUpgradeProgress operation. */ -export type UpdateRepairTaskHealthPolicyResponse = RepairTaskUpdateInfo & { +export type GetComposeDeploymentUpgradeProgressResponse = ComposeDeploymentUpgradeProgressInfo & { /** * The underlying HTTP response. */ @@ -26543,14 +28198,14 @@ export type UpdateRepairTaskHealthPolicyResponse = RepairTaskUpdateInfo & { /** * The response body as parsed JSON or XML */ - parsedBody: RepairTaskUpdateInfo; + parsedBody: ComposeDeploymentUpgradeProgressInfo; }; }; /** - * Contains response data for the updateRepairExecutionState operation. + * Contains response data for the getChaos operation. */ -export type UpdateRepairExecutionStateResponse = RepairTaskUpdateInfo & { +export type GetChaosResponse = Chaos & { /** * The underlying HTTP response. */ @@ -26562,14 +28217,14 @@ export type UpdateRepairExecutionStateResponse = RepairTaskUpdateInfo & { /** * The response body as parsed JSON or XML */ - parsedBody: RepairTaskUpdateInfo; + parsedBody: Chaos; }; }; /** - * Contains response data for the getReplicaInfoList operation. + * Contains response data for the getChaosEvents operation. */ -export type GetReplicaInfoListResponse = PagedReplicaInfoList & { +export type GetChaosEventsResponse = ChaosEventsSegment & { /** * The underlying HTTP response. */ @@ -26581,14 +28236,14 @@ export type GetReplicaInfoListResponse = PagedReplicaInfoList & { /** * The response body as parsed JSON or XML */ - parsedBody: PagedReplicaInfoList; + parsedBody: ChaosEventsSegment; }; }; /** - * Contains response data for the getReplicaInfo operation. + * Contains response data for the getChaosSchedule operation. */ -export type GetReplicaInfoResponse = ReplicaInfoUnion & { +export type GetChaosScheduleResponse = ChaosScheduleDescription & { /** * The underlying HTTP response. */ @@ -26600,14 +28255,14 @@ export type GetReplicaInfoResponse = ReplicaInfoUnion & { /** * The response body as parsed JSON or XML */ - parsedBody: ReplicaInfoUnion; + parsedBody: ChaosScheduleDescription; }; }; /** - * Contains response data for the getReplicaHealth operation. + * Contains response data for the getImageStoreContent operation. */ -export type GetReplicaHealthResponse = ReplicaHealthUnion & { +export type GetImageStoreContentResponse = ImageStoreContent & { /** * The underlying HTTP response. */ @@ -26619,14 +28274,14 @@ export type GetReplicaHealthResponse = ReplicaHealthUnion & { /** * The response body as parsed JSON or XML */ - parsedBody: ReplicaHealthUnion; + parsedBody: ImageStoreContent; }; }; /** - * Contains response data for the getReplicaHealthUsingPolicy operation. + * Contains response data for the getImageStoreRootContent operation. */ -export type GetReplicaHealthUsingPolicyResponse = ReplicaHealthUnion & { +export type GetImageStoreRootContentResponse = ImageStoreContent & { /** * The underlying HTTP response. */ @@ -26638,14 +28293,14 @@ export type GetReplicaHealthUsingPolicyResponse = ReplicaHealthUnion & { /** * The response body as parsed JSON or XML */ - parsedBody: ReplicaHealthUnion; + parsedBody: ImageStoreContent; }; }; /** - * Contains response data for the getDeployedServiceReplicaInfoList operation. + * Contains response data for the getImageStoreUploadSessionById operation. */ -export type GetDeployedServiceReplicaInfoListResponse = Array & { +export type GetImageStoreUploadSessionByIdResponse = UploadSession & { /** * The underlying HTTP response. */ @@ -26657,14 +28312,14 @@ export type GetDeployedServiceReplicaInfoListResponse = Array & { +export type InvokeInfrastructureQueryResponse = { + /** + * The parsed response body. + */ + body: string; /** * The underlying HTTP response. */ @@ -26714,14 +28377,14 @@ export type GetDeployedServicePackageInfoListResponse = Array & { +export type GetDataLossProgressResponse = PartitionDataLossProgress & { /** * The underlying HTTP response. */ @@ -26733,14 +28396,14 @@ export type GetDeployedServicePackageInfoListByNameResponse = Array & { +export type GetNodeTransitionProgressResponse = NodeTransitionProgress & { /** * The underlying HTTP response. */ @@ -26790,14 +28453,14 @@ export type GetDeployedCodePackageInfoListResponse = Array & { /** * The underlying HTTP response. */ @@ -26809,14 +28472,14 @@ export type GetContainerLogsDeployedOnNodeResponse = ContainerLogs & { /** * The response body as parsed JSON or XML */ - parsedBody: ContainerLogs; + parsedBody: OperationStatus[]; }; }; /** - * Contains response data for the invokeContainerApi operation. + * Contains response data for the getBackupPolicyList operation. */ -export type InvokeContainerApiResponse = ContainerApiResponse & { +export type GetBackupPolicyListResponse = PagedBackupPolicyDescriptionList & { /** * The underlying HTTP response. */ @@ -26828,14 +28491,14 @@ export type InvokeContainerApiResponse = ContainerApiResponse & { /** * The response body as parsed JSON or XML */ - parsedBody: ContainerApiResponse; + parsedBody: PagedBackupPolicyDescriptionList; }; }; /** - * Contains response data for the getComposeDeploymentStatus operation. + * Contains response data for the getBackupPolicyByName operation. */ -export type GetComposeDeploymentStatusResponse = ComposeDeploymentStatusInfo & { +export type GetBackupPolicyByNameResponse = BackupPolicyDescription & { /** * The underlying HTTP response. */ @@ -26847,14 +28510,14 @@ export type GetComposeDeploymentStatusResponse = ComposeDeploymentStatusInfo & { /** * The response body as parsed JSON or XML */ - parsedBody: ComposeDeploymentStatusInfo; + parsedBody: BackupPolicyDescription; }; }; /** - * Contains response data for the getComposeDeploymentStatusList operation. + * Contains response data for the getAllEntitiesBackedUpByPolicy operation. */ -export type GetComposeDeploymentStatusListResponse = PagedComposeDeploymentStatusInfoList & { +export type GetAllEntitiesBackedUpByPolicyResponse = PagedBackupEntityList & { /** * The underlying HTTP response. */ @@ -26866,14 +28529,14 @@ export type GetComposeDeploymentStatusListResponse = PagedComposeDeploymentStatu /** * The response body as parsed JSON or XML */ - parsedBody: PagedComposeDeploymentStatusInfoList; + parsedBody: PagedBackupEntityList; }; }; /** - * Contains response data for the getComposeDeploymentUpgradeProgress operation. + * Contains response data for the getApplicationBackupConfigurationInfo operation. */ -export type GetComposeDeploymentUpgradeProgressResponse = ComposeDeploymentUpgradeProgressInfo & { +export type GetApplicationBackupConfigurationInfoResponse = PagedBackupConfigurationInfoList & { /** * The underlying HTTP response. */ @@ -26885,14 +28548,14 @@ export type GetComposeDeploymentUpgradeProgressResponse = ComposeDeploymentUpgra /** * The response body as parsed JSON or XML */ - parsedBody: ComposeDeploymentUpgradeProgressInfo; + parsedBody: PagedBackupConfigurationInfoList; }; }; /** - * Contains response data for the getChaos operation. + * Contains response data for the getApplicationBackupList operation. */ -export type GetChaosResponse = Chaos & { +export type GetApplicationBackupListResponse = PagedBackupInfoList & { /** * The underlying HTTP response. */ @@ -26904,14 +28567,14 @@ export type GetChaosResponse = Chaos & { /** * The response body as parsed JSON or XML */ - parsedBody: Chaos; + parsedBody: PagedBackupInfoList; }; }; /** - * Contains response data for the getChaosEvents operation. + * Contains response data for the getServiceBackupConfigurationInfo operation. */ -export type GetChaosEventsResponse = ChaosEventsSegment & { +export type GetServiceBackupConfigurationInfoResponse = PagedBackupConfigurationInfoList & { /** * The underlying HTTP response. */ @@ -26923,14 +28586,14 @@ export type GetChaosEventsResponse = ChaosEventsSegment & { /** * The response body as parsed JSON or XML */ - parsedBody: ChaosEventsSegment; + parsedBody: PagedBackupConfigurationInfoList; }; }; /** - * Contains response data for the getChaosSchedule operation. + * Contains response data for the getServiceBackupList operation. */ -export type GetChaosScheduleResponse = ChaosScheduleDescription & { +export type GetServiceBackupListResponse = PagedBackupInfoList & { /** * The underlying HTTP response. */ @@ -26942,14 +28605,14 @@ export type GetChaosScheduleResponse = ChaosScheduleDescription & { /** * The response body as parsed JSON or XML */ - parsedBody: ChaosScheduleDescription; + parsedBody: PagedBackupInfoList; }; }; /** - * Contains response data for the getImageStoreContent operation. + * Contains response data for the getPartitionBackupConfigurationInfo operation. */ -export type GetImageStoreContentResponse = ImageStoreContent & { +export type GetPartitionBackupConfigurationInfoResponse = PartitionBackupConfigurationInfo & { /** * The underlying HTTP response. */ @@ -26961,14 +28624,14 @@ export type GetImageStoreContentResponse = ImageStoreContent & { /** * The response body as parsed JSON or XML */ - parsedBody: ImageStoreContent; + parsedBody: PartitionBackupConfigurationInfo; }; }; /** - * Contains response data for the getImageStoreRootContent operation. + * Contains response data for the getPartitionBackupList operation. */ -export type GetImageStoreRootContentResponse = ImageStoreContent & { +export type GetPartitionBackupListResponse = PagedBackupInfoList & { /** * The underlying HTTP response. */ @@ -26980,14 +28643,14 @@ export type GetImageStoreRootContentResponse = ImageStoreContent & { /** * The response body as parsed JSON or XML */ - parsedBody: ImageStoreContent; + parsedBody: PagedBackupInfoList; }; }; /** - * Contains response data for the getImageStoreUploadSessionById operation. + * Contains response data for the getPartitionBackupProgress operation. */ -export type GetImageStoreUploadSessionByIdResponse = UploadSession & { +export type GetPartitionBackupProgressResponse = BackupProgressInfo & { /** * The underlying HTTP response. */ @@ -26999,14 +28662,14 @@ export type GetImageStoreUploadSessionByIdResponse = UploadSession & { /** * The response body as parsed JSON or XML */ - parsedBody: UploadSession; + parsedBody: BackupProgressInfo; }; }; /** - * Contains response data for the getImageStoreUploadSessionByPath operation. + * Contains response data for the getPartitionRestoreProgress operation. */ -export type GetImageStoreUploadSessionByPathResponse = UploadSession & { +export type GetPartitionRestoreProgressResponse = RestoreProgressInfo & { /** * The underlying HTTP response. */ @@ -27018,18 +28681,14 @@ export type GetImageStoreUploadSessionByPathResponse = UploadSession & { /** * The response body as parsed JSON or XML */ - parsedBody: UploadSession; + parsedBody: RestoreProgressInfo; }; }; /** - * Contains response data for the invokeInfrastructureCommand operation. + * Contains response data for the getBackupsFromBackupLocation operation. */ -export type InvokeInfrastructureCommandResponse = { - /** - * The parsed response body. - */ - body: string; +export type GetBackupsFromBackupLocationResponse = PagedBackupInfoList & { /** * The underlying HTTP response. */ @@ -27041,18 +28700,14 @@ export type InvokeInfrastructureCommandResponse = { /** * The response body as parsed JSON or XML */ - parsedBody: string; + parsedBody: PagedBackupInfoList; }; }; /** - * Contains response data for the invokeInfrastructureQuery operation. + * Contains response data for the getSubNameInfoList operation. */ -export type InvokeInfrastructureQueryResponse = { - /** - * The parsed response body. - */ - body: string; +export type GetSubNameInfoListResponse = PagedSubNameInfoList & { /** * The underlying HTTP response. */ @@ -27064,14 +28719,14 @@ export type InvokeInfrastructureQueryResponse = { /** * The response body as parsed JSON or XML */ - parsedBody: string; + parsedBody: PagedSubNameInfoList; }; }; /** - * Contains response data for the getDataLossProgress operation. + * Contains response data for the getPropertyInfoList operation. */ -export type GetDataLossProgressResponse = PartitionDataLossProgress & { +export type GetPropertyInfoListResponse = PagedPropertyInfoList & { /** * The underlying HTTP response. */ @@ -27083,14 +28738,14 @@ export type GetDataLossProgressResponse = PartitionDataLossProgress & { /** * The response body as parsed JSON or XML */ - parsedBody: PartitionDataLossProgress; + parsedBody: PagedPropertyInfoList; }; }; /** - * Contains response data for the getQuorumLossProgress operation. + * Contains response data for the getPropertyInfo operation. */ -export type GetQuorumLossProgressResponse = PartitionQuorumLossProgress & { +export type GetPropertyInfoResponse = PropertyInfo & { /** * The underlying HTTP response. */ @@ -27102,14 +28757,14 @@ export type GetQuorumLossProgressResponse = PartitionQuorumLossProgress & { /** * The response body as parsed JSON or XML */ - parsedBody: PartitionQuorumLossProgress; + parsedBody: PropertyInfo; }; }; /** - * Contains response data for the getPartitionRestartProgress operation. + * Contains response data for the submitPropertyBatch operation. */ -export type GetPartitionRestartProgressResponse = PartitionRestartProgress & { +export type SubmitPropertyBatchResponse = PropertyBatchInfoUnion & { /** * The underlying HTTP response. */ @@ -27121,14 +28776,14 @@ export type GetPartitionRestartProgressResponse = PartitionRestartProgress & { /** * The response body as parsed JSON or XML */ - parsedBody: PartitionRestartProgress; + parsedBody: PropertyBatchInfoUnion; }; }; /** - * Contains response data for the getNodeTransitionProgress operation. + * Contains response data for the getClusterEventList operation. */ -export type GetNodeTransitionProgressResponse = NodeTransitionProgress & { +export type GetClusterEventListResponse = Array & { /** * The underlying HTTP response. */ @@ -27140,14 +28795,14 @@ export type GetNodeTransitionProgressResponse = NodeTransitionProgress & { /** * The response body as parsed JSON or XML */ - parsedBody: NodeTransitionProgress; + parsedBody: ClusterEventUnion[]; }; }; /** - * Contains response data for the getFaultOperationList operation. + * Contains response data for the getContainersEventList operation. */ -export type GetFaultOperationListResponse = Array & { +export type GetContainersEventListResponse = Array & { /** * The underlying HTTP response. */ @@ -27159,14 +28814,14 @@ export type GetFaultOperationListResponse = Array & { /** * The response body as parsed JSON or XML */ - parsedBody: OperationStatus[]; + parsedBody: ContainerInstanceEvent[]; }; }; /** - * Contains response data for the getBackupPolicyList operation. + * Contains response data for the getNodeEventList operation. */ -export type GetBackupPolicyListResponse = PagedBackupPolicyDescriptionList & { +export type GetNodeEventListResponse = Array & { /** * The underlying HTTP response. */ @@ -27178,14 +28833,14 @@ export type GetBackupPolicyListResponse = PagedBackupPolicyDescriptionList & { /** * The response body as parsed JSON or XML */ - parsedBody: PagedBackupPolicyDescriptionList; + parsedBody: NodeEventUnion[]; }; }; /** - * Contains response data for the getBackupPolicyByName operation. + * Contains response data for the getNodesEventList operation. */ -export type GetBackupPolicyByNameResponse = BackupPolicyDescription & { +export type GetNodesEventListResponse = Array & { /** * The underlying HTTP response. */ @@ -27197,14 +28852,14 @@ export type GetBackupPolicyByNameResponse = BackupPolicyDescription & { /** * The response body as parsed JSON or XML */ - parsedBody: BackupPolicyDescription; + parsedBody: NodeEventUnion[]; }; }; /** - * Contains response data for the getAllEntitiesBackedUpByPolicy operation. + * Contains response data for the getApplicationEventList operation. */ -export type GetAllEntitiesBackedUpByPolicyResponse = PagedBackupEntityList & { +export type GetApplicationEventListResponse = Array & { /** * The underlying HTTP response. */ @@ -27216,14 +28871,14 @@ export type GetAllEntitiesBackedUpByPolicyResponse = PagedBackupEntityList & { /** * The response body as parsed JSON or XML */ - parsedBody: PagedBackupEntityList; + parsedBody: ApplicationEventUnion[]; }; }; /** - * Contains response data for the getApplicationBackupConfigurationInfo operation. + * Contains response data for the getApplicationsEventList operation. */ -export type GetApplicationBackupConfigurationInfoResponse = PagedBackupConfigurationInfoList & { +export type GetApplicationsEventListResponse = Array & { /** * The underlying HTTP response. */ @@ -27235,14 +28890,14 @@ export type GetApplicationBackupConfigurationInfoResponse = PagedBackupConfigura /** * The response body as parsed JSON or XML */ - parsedBody: PagedBackupConfigurationInfoList; + parsedBody: ApplicationEventUnion[]; }; }; /** - * Contains response data for the getApplicationBackupList operation. + * Contains response data for the getServiceEventList operation. */ -export type GetApplicationBackupListResponse = PagedBackupInfoList & { +export type GetServiceEventListResponse = Array & { /** * The underlying HTTP response. */ @@ -27254,14 +28909,14 @@ export type GetApplicationBackupListResponse = PagedBackupInfoList & { /** * The response body as parsed JSON or XML */ - parsedBody: PagedBackupInfoList; + parsedBody: ServiceEventUnion[]; }; }; /** - * Contains response data for the getServiceBackupConfigurationInfo operation. + * Contains response data for the getServicesEventList operation. */ -export type GetServiceBackupConfigurationInfoResponse = PagedBackupConfigurationInfoList & { +export type GetServicesEventListResponse = Array & { /** * The underlying HTTP response. */ @@ -27273,14 +28928,14 @@ export type GetServiceBackupConfigurationInfoResponse = PagedBackupConfiguration /** * The response body as parsed JSON or XML */ - parsedBody: PagedBackupConfigurationInfoList; + parsedBody: ServiceEventUnion[]; }; }; /** - * Contains response data for the getServiceBackupList operation. + * Contains response data for the getPartitionEventList operation. */ -export type GetServiceBackupListResponse = PagedBackupInfoList & { +export type GetPartitionEventListResponse = Array & { /** * The underlying HTTP response. */ @@ -27292,14 +28947,14 @@ export type GetServiceBackupListResponse = PagedBackupInfoList & { /** * The response body as parsed JSON or XML */ - parsedBody: PagedBackupInfoList; + parsedBody: PartitionEventUnion[]; }; }; /** - * Contains response data for the getPartitionBackupConfigurationInfo operation. + * Contains response data for the getPartitionsEventList operation. */ -export type GetPartitionBackupConfigurationInfoResponse = PartitionBackupConfigurationInfo & { +export type GetPartitionsEventListResponse = Array & { /** * The underlying HTTP response. */ @@ -27311,14 +28966,14 @@ export type GetPartitionBackupConfigurationInfoResponse = PartitionBackupConfigu /** * The response body as parsed JSON or XML */ - parsedBody: PartitionBackupConfigurationInfo; + parsedBody: PartitionEventUnion[]; }; }; /** - * Contains response data for the getPartitionBackupList operation. + * Contains response data for the getPartitionReplicaEventList operation. */ -export type GetPartitionBackupListResponse = PagedBackupInfoList & { +export type GetPartitionReplicaEventListResponse = Array & { /** * The underlying HTTP response. */ @@ -27330,14 +28985,14 @@ export type GetPartitionBackupListResponse = PagedBackupInfoList & { /** * The response body as parsed JSON or XML */ - parsedBody: PagedBackupInfoList; + parsedBody: ReplicaEventUnion[]; }; }; /** - * Contains response data for the getPartitionBackupProgress operation. + * Contains response data for the getPartitionReplicasEventList operation. */ -export type GetPartitionBackupProgressResponse = BackupProgressInfo & { +export type GetPartitionReplicasEventListResponse = Array & { /** * The underlying HTTP response. */ @@ -27349,14 +29004,14 @@ export type GetPartitionBackupProgressResponse = BackupProgressInfo & { /** * The response body as parsed JSON or XML */ - parsedBody: BackupProgressInfo; + parsedBody: ReplicaEventUnion[]; }; }; /** - * Contains response data for the getPartitionRestoreProgress operation. + * Contains response data for the getCorrelatedEventList operation. */ -export type GetPartitionRestoreProgressResponse = RestoreProgressInfo & { +export type GetCorrelatedEventListResponse = Array & { /** * The underlying HTTP response. */ @@ -27368,14 +29023,14 @@ export type GetPartitionRestoreProgressResponse = RestoreProgressInfo & { /** * The response body as parsed JSON or XML */ - parsedBody: RestoreProgressInfo; + parsedBody: FabricEventUnion[]; }; }; /** - * Contains response data for the getBackupsFromBackupLocation operation. + * Contains response data for the createOrUpdate operation. */ -export type GetBackupsFromBackupLocationResponse = PagedBackupInfoList & { +export type MeshSecretCreateOrUpdateResponse = SecretResourceDescription & { /** * The underlying HTTP response. */ @@ -27387,14 +29042,14 @@ export type GetBackupsFromBackupLocationResponse = PagedBackupInfoList & { /** * The response body as parsed JSON or XML */ - parsedBody: PagedBackupInfoList; + parsedBody: SecretResourceDescription; }; }; /** - * Contains response data for the getSubNameInfoList operation. + * Contains response data for the get operation. */ -export type GetSubNameInfoListResponse = PagedSubNameInfoList & { +export type MeshSecretGetResponse = SecretResourceDescription & { /** * The underlying HTTP response. */ @@ -27406,14 +29061,14 @@ export type GetSubNameInfoListResponse = PagedSubNameInfoList & { /** * The response body as parsed JSON or XML */ - parsedBody: PagedSubNameInfoList; + parsedBody: SecretResourceDescription; }; }; /** - * Contains response data for the getPropertyInfoList operation. + * Contains response data for the list operation. */ -export type GetPropertyInfoListResponse = PagedPropertyInfoList & { +export type MeshSecretListResponse = PagedSecretResourceDescriptionList & { /** * The underlying HTTP response. */ @@ -27425,14 +29080,14 @@ export type GetPropertyInfoListResponse = PagedPropertyInfoList & { /** * The response body as parsed JSON or XML */ - parsedBody: PagedPropertyInfoList; + parsedBody: PagedSecretResourceDescriptionList; }; }; /** - * Contains response data for the getPropertyInfo operation. + * Contains response data for the addValue operation. */ -export type GetPropertyInfoResponse = PropertyInfo & { +export type MeshSecretValueAddValueResponse = SecretValueResourceDescription & { /** * The underlying HTTP response. */ @@ -27444,14 +29099,14 @@ export type GetPropertyInfoResponse = PropertyInfo & { /** * The response body as parsed JSON or XML */ - parsedBody: PropertyInfo; + parsedBody: SecretValueResourceDescription; }; }; /** - * Contains response data for the submitPropertyBatch operation. + * Contains response data for the get operation. */ -export type SubmitPropertyBatchResponse = PropertyBatchInfoUnion & { +export type MeshSecretValueGetResponse = SecretValueResourceDescription & { /** * The underlying HTTP response. */ @@ -27463,14 +29118,14 @@ export type SubmitPropertyBatchResponse = PropertyBatchInfoUnion & { /** * The response body as parsed JSON or XML */ - parsedBody: PropertyBatchInfoUnion; + parsedBody: SecretValueResourceDescription; }; }; /** - * Contains response data for the getClusterEventList operation. + * Contains response data for the list operation. */ -export type GetClusterEventListResponse = Array & { +export type MeshSecretValueListResponse = PagedSecretValueResourceDescriptionList & { /** * The underlying HTTP response. */ @@ -27482,14 +29137,14 @@ export type GetClusterEventListResponse = Array & { /** * The response body as parsed JSON or XML */ - parsedBody: ClusterEventUnion[]; + parsedBody: PagedSecretValueResourceDescriptionList; }; }; /** - * Contains response data for the getContainersEventList operation. + * Contains response data for the show operation. */ -export type GetContainersEventListResponse = Array & { +export type MeshSecretValueShowResponse = SecretValue & { /** * The underlying HTTP response. */ @@ -27501,14 +29156,14 @@ export type GetContainersEventListResponse = Array & { /** * The response body as parsed JSON or XML */ - parsedBody: ContainerInstanceEvent[]; + parsedBody: SecretValue; }; }; /** - * Contains response data for the getNodeEventList operation. + * Contains response data for the createOrUpdate operation. */ -export type GetNodeEventListResponse = Array & { +export type MeshVolumeCreateOrUpdateResponse = VolumeResourceDescription & { /** * The underlying HTTP response. */ @@ -27520,14 +29175,14 @@ export type GetNodeEventListResponse = Array & { /** * The response body as parsed JSON or XML */ - parsedBody: NodeEventUnion[]; + parsedBody: VolumeResourceDescription; }; }; /** - * Contains response data for the getNodesEventList operation. + * Contains response data for the get operation. */ -export type GetNodesEventListResponse = Array & { +export type MeshVolumeGetResponse = VolumeResourceDescription & { /** * The underlying HTTP response. */ @@ -27539,14 +29194,14 @@ export type GetNodesEventListResponse = Array & { /** * The response body as parsed JSON or XML */ - parsedBody: NodeEventUnion[]; + parsedBody: VolumeResourceDescription; }; }; /** - * Contains response data for the getApplicationEventList operation. + * Contains response data for the list operation. */ -export type GetApplicationEventListResponse = Array & { +export type MeshVolumeListResponse = PagedVolumeResourceDescriptionList & { /** * The underlying HTTP response. */ @@ -27558,14 +29213,14 @@ export type GetApplicationEventListResponse = Array & { /** * The response body as parsed JSON or XML */ - parsedBody: ApplicationEventUnion[]; + parsedBody: PagedVolumeResourceDescriptionList; }; }; /** - * Contains response data for the getApplicationsEventList operation. + * Contains response data for the createOrUpdate operation. */ -export type GetApplicationsEventListResponse = Array & { +export type MeshNetworkCreateOrUpdateResponse = NetworkResourceDescription & { /** * The underlying HTTP response. */ @@ -27577,14 +29232,14 @@ export type GetApplicationsEventListResponse = Array & { /** * The response body as parsed JSON or XML */ - parsedBody: ApplicationEventUnion[]; + parsedBody: NetworkResourceDescription; }; }; /** - * Contains response data for the getServiceEventList operation. + * Contains response data for the get operation. */ -export type GetServiceEventListResponse = Array & { +export type MeshNetworkGetResponse = NetworkResourceDescription & { /** * The underlying HTTP response. */ @@ -27596,14 +29251,14 @@ export type GetServiceEventListResponse = Array & { /** * The response body as parsed JSON or XML */ - parsedBody: ServiceEventUnion[]; + parsedBody: NetworkResourceDescription; }; }; /** - * Contains response data for the getServicesEventList operation. + * Contains response data for the list operation. */ -export type GetServicesEventListResponse = Array & { +export type MeshNetworkListResponse = PagedNetworkResourceDescriptionList & { /** * The underlying HTTP response. */ @@ -27615,14 +29270,14 @@ export type GetServicesEventListResponse = Array & { /** * The response body as parsed JSON or XML */ - parsedBody: ServiceEventUnion[]; + parsedBody: PagedNetworkResourceDescriptionList; }; }; /** - * Contains response data for the getPartitionEventList operation. + * Contains response data for the createOrUpdate operation. */ -export type GetPartitionEventListResponse = Array & { +export type MeshApplicationCreateOrUpdateResponse = ApplicationResourceDescription & { /** * The underlying HTTP response. */ @@ -27634,14 +29289,14 @@ export type GetPartitionEventListResponse = Array & { /** * The response body as parsed JSON or XML */ - parsedBody: PartitionEventUnion[]; + parsedBody: ApplicationResourceDescription; }; }; /** - * Contains response data for the getPartitionsEventList operation. + * Contains response data for the get operation. */ -export type GetPartitionsEventListResponse = Array & { +export type MeshApplicationGetResponse = ApplicationResourceDescription & { /** * The underlying HTTP response. */ @@ -27653,14 +29308,14 @@ export type GetPartitionsEventListResponse = Array & { /** * The response body as parsed JSON or XML */ - parsedBody: PartitionEventUnion[]; + parsedBody: ApplicationResourceDescription; }; }; /** - * Contains response data for the getPartitionReplicaEventList operation. + * Contains response data for the list operation. */ -export type GetPartitionReplicaEventListResponse = Array & { +export type MeshApplicationListResponse = PagedApplicationResourceDescriptionList & { /** * The underlying HTTP response. */ @@ -27672,14 +29327,14 @@ export type GetPartitionReplicaEventListResponse = Array & { /** * The response body as parsed JSON or XML */ - parsedBody: ReplicaEventUnion[]; + parsedBody: PagedApplicationResourceDescriptionList; }; }; /** - * Contains response data for the getPartitionReplicasEventList operation. + * Contains response data for the get operation. */ -export type GetPartitionReplicasEventListResponse = Array & { +export type MeshServiceGetResponse = ServiceResourceDescription & { /** * The underlying HTTP response. */ @@ -27691,14 +29346,14 @@ export type GetPartitionReplicasEventListResponse = Array & { /** * The response body as parsed JSON or XML */ - parsedBody: ReplicaEventUnion[]; + parsedBody: ServiceResourceDescription; }; }; /** - * Contains response data for the getCorrelatedEventList operation. + * Contains response data for the list operation. */ -export type GetCorrelatedEventListResponse = Array & { +export type MeshServiceListResponse = PagedServiceResourceDescriptionList & { /** * The underlying HTTP response. */ @@ -27710,14 +29365,14 @@ export type GetCorrelatedEventListResponse = Array & { /** * The response body as parsed JSON or XML */ - parsedBody: FabricEventUnion[]; + parsedBody: PagedServiceResourceDescriptionList; }; }; /** - * Contains response data for the getApplicationResource operation. + * Contains response data for the getContainerLogs operation. */ -export type GetApplicationResourceResponse = ApplicationResourceDescription & { +export type MeshCodePackageGetContainerLogsResponse = ContainerLogs & { /** * The underlying HTTP response. */ @@ -27729,14 +29384,14 @@ export type GetApplicationResourceResponse = ApplicationResourceDescription & { /** * The response body as parsed JSON or XML */ - parsedBody: ApplicationResourceDescription; + parsedBody: ContainerLogs; }; }; /** - * Contains response data for the getServices operation. + * Contains response data for the get operation. */ -export type GetServicesResponse = PagedServiceResourceDescriptionList & { +export type MeshServiceReplicaGetResponse = ServiceReplicaDescription & { /** * The underlying HTTP response. */ @@ -27748,14 +29403,14 @@ export type GetServicesResponse = PagedServiceResourceDescriptionList & { /** * The response body as parsed JSON or XML */ - parsedBody: PagedServiceResourceDescriptionList; + parsedBody: ServiceReplicaDescription; }; }; /** - * Contains response data for the getService operation. + * Contains response data for the list operation. */ -export type GetServiceResponse = ServiceResourceDescription & { +export type MeshServiceReplicaListResponse = PagedServiceReplicaDescriptionList & { /** * The underlying HTTP response. */ @@ -27767,14 +29422,14 @@ export type GetServiceResponse = ServiceResourceDescription & { /** * The response body as parsed JSON or XML */ - parsedBody: ServiceResourceDescription; + parsedBody: PagedServiceReplicaDescriptionList; }; }; /** - * Contains response data for the getReplicas operation. + * Contains response data for the createOrUpdate operation. */ -export type GetReplicasResponse = PagedServiceResourceReplicaDescriptionList & { +export type MeshGatewayCreateOrUpdateResponse = GatewayResourceDescription & { /** * The underlying HTTP response. */ @@ -27786,14 +29441,14 @@ export type GetReplicasResponse = PagedServiceResourceReplicaDescriptionList & { /** * The response body as parsed JSON or XML */ - parsedBody: PagedServiceResourceReplicaDescriptionList; + parsedBody: GatewayResourceDescription; }; }; /** - * Contains response data for the getReplica operation. + * Contains response data for the get operation. */ -export type GetReplicaResponse = ServiceResourceReplicaDescription & { +export type MeshGatewayGetResponse = GatewayResourceDescription & { /** * The underlying HTTP response. */ @@ -27805,14 +29460,14 @@ export type GetReplicaResponse = ServiceResourceReplicaDescription & { /** * The response body as parsed JSON or XML */ - parsedBody: ServiceResourceReplicaDescription; + parsedBody: GatewayResourceDescription; }; }; /** - * Contains response data for the getVolumeResource operation. + * Contains response data for the list operation. */ -export type GetVolumeResourceResponse = VolumeResourceDescription & { +export type MeshGatewayListResponse = PagedGatewayResourceDescriptionList & { /** * The underlying HTTP response. */ @@ -27824,6 +29479,6 @@ export type GetVolumeResourceResponse = VolumeResourceDescription & { /** * The response body as parsed JSON or XML */ - parsedBody: VolumeResourceDescription; + parsedBody: PagedGatewayResourceDescriptionList; }; }; diff --git a/packages/@azure/servicefabric/lib/models/mappers.ts b/packages/@azure/servicefabric/lib/models/mappers.ts index a85f0edee4a8..e6d013a8ae4a 100644 --- a/packages/@azure/servicefabric/lib/models/mappers.ts +++ b/packages/@azure/servicefabric/lib/models/mappers.ts @@ -11,6 +11,63 @@ import * as msRest from "ms-rest-js"; +export const FabricErrorError: msRest.CompositeMapper = { + serializedName: "FabricErrorError", + type: { + name: "Composite", + className: "FabricErrorError", + modelProperties: { + code: { + required: true, + serializedName: "Code", + type: { + name: "String" + } + }, + message: { + serializedName: "Message", + type: { + name: "String" + } + } + } + } +}; + +export const FabricError: msRest.CompositeMapper = { + serializedName: "FabricError", + type: { + name: "Composite", + className: "FabricError", + modelProperties: { + error: { + required: true, + serializedName: "Error", + type: { + name: "Composite", + className: "FabricErrorError" + } + } + } + } +}; + +export const ContainerLogs: msRest.CompositeMapper = { + serializedName: "ContainerLogs", + type: { + name: "Composite", + className: "ContainerLogs", + modelProperties: { + content: { + serializedName: "Content", + type: { + name: "String" + } + } + } + } +}; + export const AadMetadata: msRest.CompositeMapper = { serializedName: "AadMetadata", type: { @@ -120,6 +177,12 @@ export const FabricEvent: msRest.CompositeMapper = { name: "Uuid" } }, + category: { + serializedName: "Category", + type: { + name: "String" + } + }, timeStamp: { required: true, serializedName: "TimeStamp", @@ -2213,6 +2276,22 @@ export const ClusterManifest: msRest.CompositeMapper = { } }; +export const ClusterVersion: msRest.CompositeMapper = { + serializedName: "ClusterVersion", + type: { + name: "Composite", + className: "ClusterVersion", + modelProperties: { + version: { + serializedName: "Version", + type: { + name: "String" + } + } + } + } +}; + export const ContainerApiRequestBody: msRest.CompositeMapper = { serializedName: "ContainerApiRequestBody", type: { @@ -3051,28 +3130,6 @@ export const Epoch: msRest.CompositeMapper = { } }; -export const BackupEpoch: msRest.CompositeMapper = { - serializedName: "BackupEpoch", - type: { - name: "Composite", - className: "BackupEpoch", - modelProperties: { - configurationNumber: { - serializedName: "ConfigurationNumber", - type: { - name: "String" - } - }, - dataLossNumber: { - serializedName: "DataLossNumber", - type: { - name: "String" - } - } - } - } -}; - export const EventHealthEvaluation: msRest.CompositeMapper = { serializedName: "Event", type: { @@ -3131,47 +3188,6 @@ export const FabricConfigVersionInfo: msRest.CompositeMapper = { } }; -export const FabricErrorError: msRest.CompositeMapper = { - serializedName: "FabricErrorError", - type: { - name: "Composite", - className: "FabricErrorError", - modelProperties: { - code: { - required: true, - serializedName: "Code", - type: { - name: "String" - } - }, - message: { - serializedName: "Message", - type: { - name: "String" - } - } - } - } -}; - -export const FabricError: msRest.CompositeMapper = { - serializedName: "FabricError", - type: { - name: "Composite", - className: "FabricError", - modelProperties: { - error: { - required: true, - serializedName: "Error", - type: { - name: "Composite", - className: "FabricErrorError" - } - } - } - } -}; - export const ClusterConfigurationUpgradeStatusInfo: msRest.CompositeMapper = { serializedName: "ClusterConfigurationUpgradeStatusInfo", type: { @@ -5369,8 +5385,8 @@ export const StatefulServicePartitionInfo: msRest.CompositeMapper = { name: "TimeSpan" } }, - currentConfigurationEpoch: { - serializedName: "CurrentConfigurationEpoch", + primaryEpoch: { + serializedName: "PrimaryEpoch", type: { name: "Composite", className: "Epoch" @@ -5716,6 +5732,12 @@ export const LoadMetricReport: msRest.CompositeMapper = { type: { name: "String" } + }, + currentValue: { + serializedName: "CurrentValue", + type: { + name: "String" + } } } } @@ -8262,6 +8284,12 @@ export const LoadMetricReportInfo: msRest.CompositeMapper = { name: "Number" } }, + currentValue: { + serializedName: "CurrentValue", + type: { + name: "String" + } + }, lastReportedUtc: { serializedName: "LastReportedUtc", type: { @@ -9986,6 +10014,28 @@ export const BackupStorageDescription: msRest.CompositeMapper = { } }; +export const RetentionPolicyDescription: msRest.CompositeMapper = { + serializedName: "RetentionPolicyDescription", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "RetentionPolicyType", + clientName: "retentionPolicyType" + }, + uberParent: "RetentionPolicyDescription", + className: "RetentionPolicyDescription", + modelProperties: { + retentionPolicyType: { + required: true, + serializedName: "RetentionPolicyType", + type: { + name: "String" + } + } + } + } +}; + export const BackupPolicyDescription: msRest.CompositeMapper = { serializedName: "BackupPolicyDescription", type: { @@ -10042,6 +10092,18 @@ export const BackupPolicyDescription: msRest.CompositeMapper = { uberParent: "BackupStorageDescription", className: "BackupStorageDescription" } + }, + retentionPolicy: { + serializedName: "RetentionPolicy", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "RetentionPolicyType", + clientName: "retentionPolicyType" + }, + uberParent: "RetentionPolicyDescription", + className: "RetentionPolicyDescription" + } } } } @@ -10075,6 +10137,52 @@ export const PagedBackupPolicyDescriptionList: msRest.CompositeMapper = { } }; +export const BasicRetentionPolicyDescription: msRest.CompositeMapper = { + serializedName: "Basic", + type: { + name: "Composite", + polymorphicDiscriminator: RetentionPolicyDescription.type.polymorphicDiscriminator, + uberParent: "RetentionPolicyDescription", + className: "BasicRetentionPolicyDescription", + modelProperties: { + ...RetentionPolicyDescription.type.modelProperties, + retentionDuration: { + required: true, + serializedName: "RetentionDuration", + type: { + name: "TimeSpan" + } + }, + minimumNumberOfBackups: { + serializedName: "MinimumNumberOfBackups", + constraints: { + InclusiveMinimum: 0 + }, + type: { + name: "Number" + } + } + } + } +}; + +export const DisableBackupDescription: msRest.CompositeMapper = { + serializedName: "DisableBackupDescription", + type: { + name: "Composite", + className: "DisableBackupDescription", + modelProperties: { + cleanBackup: { + required: true, + serializedName: "CleanBackup", + type: { + name: "Boolean" + } + } + } + } +}; + export const BackupConfigurationInfo: msRest.CompositeMapper = { serializedName: "BackupConfigurationInfo", type: { @@ -10267,7 +10375,7 @@ export const RestoreProgressInfo: msRest.CompositeMapper = { serializedName: "RestoredEpoch", type: { name: "Composite", - className: "BackupEpoch" + className: "Epoch" } }, restoredLsn: { @@ -10367,7 +10475,7 @@ export const BackupInfo: msRest.CompositeMapper = { serializedName: "EpochOfLastBackupRecord", type: { name: "Composite", - className: "BackupEpoch" + className: "Epoch" } }, lsnOfLastBackupRecord: { @@ -10382,6 +10490,12 @@ export const BackupInfo: msRest.CompositeMapper = { name: "DateTime" } }, + serviceManifestVersion: { + serializedName: "ServiceManifestVersion", + type: { + name: "String" + } + }, failureError: { serializedName: "FailureError", type: { @@ -10589,7 +10703,7 @@ export const BackupProgressInfo: msRest.CompositeMapper = { serializedName: "EpochOfLastBackupRecord", type: { name: "Composite", - className: "BackupEpoch" + className: "Epoch" } }, lsnOfLastBackupRecord: { @@ -11367,22 +11481,6 @@ export const UploadSession: msRest.CompositeMapper = { } }; -export const ContainerLogs: msRest.CompositeMapper = { - serializedName: "ContainerLogs", - type: { - name: "Composite", - className: "ContainerLogs", - modelProperties: { - content: { - serializedName: "Content", - type: { - name: "String" - } - } - } - } -}; - export const AveragePartitionLoadScalingTrigger: msRest.CompositeMapper = { serializedName: "AveragePartitionLoad", type: { @@ -11602,13 +11700,13 @@ export const ApplicationDeletedEvent: msRest.CompositeMapper = { } }; -export const ApplicationHealthReportCreatedEvent: msRest.CompositeMapper = { - serializedName: "ApplicationHealthReportCreated", +export const ApplicationNewHealthReportEvent: msRest.CompositeMapper = { + serializedName: "ApplicationNewHealthReport", type: { name: "Composite", polymorphicDiscriminator: FabricEvent.type.polymorphicDiscriminator, uberParent: "FabricEvent", - className: "ApplicationHealthReportCreatedEvent", + className: "ApplicationNewHealthReportEvent", modelProperties: { ...ApplicationEvent.type.modelProperties, applicationInstanceId: { @@ -11754,13 +11852,13 @@ export const ApplicationHealthReportExpiredEvent: msRest.CompositeMapper = { } }; -export const ApplicationUpgradeCompleteEvent: msRest.CompositeMapper = { - serializedName: "ApplicationUpgradeComplete", +export const ApplicationUpgradeCompletedEvent: msRest.CompositeMapper = { + serializedName: "ApplicationUpgradeCompleted", type: { name: "Composite", polymorphicDiscriminator: FabricEvent.type.polymorphicDiscriminator, uberParent: "FabricEvent", - className: "ApplicationUpgradeCompleteEvent", + className: "ApplicationUpgradeCompletedEvent", modelProperties: { ...ApplicationEvent.type.modelProperties, applicationTypeName: { @@ -11788,13 +11886,13 @@ export const ApplicationUpgradeCompleteEvent: msRest.CompositeMapper = { } }; -export const ApplicationUpgradeDomainCompleteEvent: msRest.CompositeMapper = { - serializedName: "ApplicationUpgradeDomainComplete", +export const ApplicationUpgradeDomainCompletedEvent: msRest.CompositeMapper = { + serializedName: "ApplicationUpgradeDomainCompleted", type: { name: "Composite", polymorphicDiscriminator: FabricEvent.type.polymorphicDiscriminator, uberParent: "FabricEvent", - className: "ApplicationUpgradeDomainCompleteEvent", + className: "ApplicationUpgradeDomainCompletedEvent", modelProperties: { ...ApplicationEvent.type.modelProperties, applicationTypeName: { @@ -11843,13 +11941,13 @@ export const ApplicationUpgradeDomainCompleteEvent: msRest.CompositeMapper = { } }; -export const ApplicationUpgradeRollbackCompleteEvent: msRest.CompositeMapper = { - serializedName: "ApplicationUpgradeRollbackComplete", +export const ApplicationUpgradeRollbackCompletedEvent: msRest.CompositeMapper = { + serializedName: "ApplicationUpgradeRollbackCompleted", type: { name: "Composite", polymorphicDiscriminator: FabricEvent.type.polymorphicDiscriminator, uberParent: "FabricEvent", - className: "ApplicationUpgradeRollbackCompleteEvent", + className: "ApplicationUpgradeRollbackCompletedEvent", modelProperties: { ...ApplicationEvent.type.modelProperties, applicationTypeName: { @@ -11884,13 +11982,13 @@ export const ApplicationUpgradeRollbackCompleteEvent: msRest.CompositeMapper = { } }; -export const ApplicationUpgradeRollbackStartEvent: msRest.CompositeMapper = { - serializedName: "ApplicationUpgradeRollbackStart", +export const ApplicationUpgradeRollbackStartedEvent: msRest.CompositeMapper = { + serializedName: "ApplicationUpgradeRollbackStarted", type: { name: "Composite", polymorphicDiscriminator: FabricEvent.type.polymorphicDiscriminator, uberParent: "FabricEvent", - className: "ApplicationUpgradeRollbackStartEvent", + className: "ApplicationUpgradeRollbackStartedEvent", modelProperties: { ...ApplicationEvent.type.modelProperties, applicationTypeName: { @@ -11932,13 +12030,13 @@ export const ApplicationUpgradeRollbackStartEvent: msRest.CompositeMapper = { } }; -export const ApplicationUpgradeStartEvent: msRest.CompositeMapper = { - serializedName: "ApplicationUpgradeStart", +export const ApplicationUpgradeStartedEvent: msRest.CompositeMapper = { + serializedName: "ApplicationUpgradeStarted", type: { name: "Composite", polymorphicDiscriminator: FabricEvent.type.polymorphicDiscriminator, uberParent: "FabricEvent", - className: "ApplicationUpgradeStartEvent", + className: "ApplicationUpgradeStartedEvent", modelProperties: { ...ApplicationEvent.type.modelProperties, applicationTypeName: { @@ -11987,13 +12085,13 @@ export const ApplicationUpgradeStartEvent: msRest.CompositeMapper = { } }; -export const DeployedApplicationHealthReportCreatedEvent: msRest.CompositeMapper = { - serializedName: "DeployedApplicationHealthReportCreated", +export const DeployedApplicationNewHealthReportEvent: msRest.CompositeMapper = { + serializedName: "DeployedApplicationNewHealthReport", type: { name: "Composite", polymorphicDiscriminator: FabricEvent.type.polymorphicDiscriminator, uberParent: "FabricEvent", - className: "DeployedApplicationHealthReportCreatedEvent", + className: "DeployedApplicationNewHealthReportEvent", modelProperties: { ...ApplicationEvent.type.modelProperties, applicationInstanceId: { @@ -12153,13 +12251,13 @@ export const DeployedApplicationHealthReportExpiredEvent: msRest.CompositeMapper } }; -export const ProcessDeactivatedEvent: msRest.CompositeMapper = { - serializedName: "ProcessDeactivated", +export const ApplicationProcessExitedEvent: msRest.CompositeMapper = { + serializedName: "ApplicationProcessExited", type: { name: "Composite", polymorphicDiscriminator: FabricEvent.type.polymorphicDiscriminator, uberParent: "FabricEvent", - className: "ProcessDeactivatedEvent", + className: "ApplicationProcessExitedEvent", modelProperties: { ...ApplicationEvent.type.modelProperties, serviceName: { @@ -12250,13 +12348,13 @@ export const ProcessDeactivatedEvent: msRest.CompositeMapper = { } }; -export const ContainerDeactivatedEvent: msRest.CompositeMapper = { - serializedName: "ContainerDeactivated", +export const ApplicationContainerInstanceExitedEvent: msRest.CompositeMapper = { + serializedName: "ApplicationContainerInstanceExited", type: { name: "Composite", polymorphicDiscriminator: FabricEvent.type.polymorphicDiscriminator, uberParent: "FabricEvent", - className: "ContainerDeactivatedEvent", + className: "ApplicationContainerInstanceExitedEvent", modelProperties: { ...ApplicationEvent.type.modelProperties, serviceName: { @@ -12416,22 +12514,15 @@ export const NodeAbortedEvent: msRest.CompositeMapper = { } }; -export const NodeAbortingEvent: msRest.CompositeMapper = { - serializedName: "NodeAborting", +export const NodeAddedToClusterEvent: msRest.CompositeMapper = { + serializedName: "NodeAddedToCluster", type: { name: "Composite", polymorphicDiscriminator: FabricEvent.type.polymorphicDiscriminator, uberParent: "FabricEvent", - className: "NodeAbortingEvent", + className: "NodeAddedToClusterEvent", modelProperties: { ...NodeEvent.type.modelProperties, - nodeInstance: { - required: true, - serializedName: "NodeInstance", - type: { - name: "Number" - } - }, nodeId: { required: true, serializedName: "NodeId", @@ -12439,44 +12530,37 @@ export const NodeAbortingEvent: msRest.CompositeMapper = { name: "String" } }, - upgradeDomain: { + nodeInstance: { required: true, - serializedName: "UpgradeDomain", + serializedName: "NodeInstance", type: { - name: "String" + name: "Number" } }, - faultDomain: { + nodeType: { required: true, - serializedName: "FaultDomain", + serializedName: "NodeType", type: { name: "String" } }, - ipAddressOrFQDN: { + fabricVersion: { required: true, - serializedName: "IpAddressOrFQDN", + serializedName: "FabricVersion", type: { name: "String" } }, - hostname: { + ipAddressOrFQDN: { required: true, - serializedName: "Hostname", + serializedName: "IpAddressOrFQDN", type: { name: "String" } }, - isSeedNode: { - required: true, - serializedName: "IsSeedNode", - type: { - name: "Boolean" - } - }, - nodeVersion: { + nodeCapacities: { required: true, - serializedName: "NodeVersion", + serializedName: "NodeCapacities", type: { name: "String" } @@ -12485,13 +12569,13 @@ export const NodeAbortingEvent: msRest.CompositeMapper = { } }; -export const NodeAddedEvent: msRest.CompositeMapper = { - serializedName: "NodeAdded", +export const NodeClosedEvent: msRest.CompositeMapper = { + serializedName: "NodeClosed", type: { name: "Composite", polymorphicDiscriminator: FabricEvent.type.polymorphicDiscriminator, uberParent: "FabricEvent", - className: "NodeAddedEvent", + className: "NodeClosedEvent", modelProperties: { ...NodeEvent.type.modelProperties, nodeId: { @@ -12508,133 +12592,9 @@ export const NodeAddedEvent: msRest.CompositeMapper = { name: "Number" } }, - nodeType: { + error: { required: true, - serializedName: "NodeType", - type: { - name: "String" - } - }, - fabricVersion: { - required: true, - serializedName: "FabricVersion", - type: { - name: "String" - } - }, - ipAddressOrFQDN: { - required: true, - serializedName: "IpAddressOrFQDN", - type: { - name: "String" - } - }, - nodeCapacities: { - required: true, - serializedName: "NodeCapacities", - type: { - name: "String" - } - } - } - } -}; - -export const NodeCloseEvent: msRest.CompositeMapper = { - serializedName: "NodeClose", - type: { - name: "Composite", - polymorphicDiscriminator: FabricEvent.type.polymorphicDiscriminator, - uberParent: "FabricEvent", - className: "NodeCloseEvent", - modelProperties: { - ...NodeEvent.type.modelProperties, - nodeId: { - required: true, - serializedName: "NodeId", - type: { - name: "String" - } - }, - nodeInstance: { - required: true, - serializedName: "NodeInstance", - type: { - name: "String" - } - }, - error: { - required: true, - serializedName: "Error", - type: { - name: "String" - } - } - } - } -}; - -export const NodeClosingEvent: msRest.CompositeMapper = { - serializedName: "NodeClosing", - type: { - name: "Composite", - polymorphicDiscriminator: FabricEvent.type.polymorphicDiscriminator, - uberParent: "FabricEvent", - className: "NodeClosingEvent", - modelProperties: { - ...NodeEvent.type.modelProperties, - nodeInstance: { - required: true, - serializedName: "NodeInstance", - type: { - name: "Number" - } - }, - nodeId: { - required: true, - serializedName: "NodeId", - type: { - name: "String" - } - }, - upgradeDomain: { - required: true, - serializedName: "UpgradeDomain", - type: { - name: "String" - } - }, - faultDomain: { - required: true, - serializedName: "FaultDomain", - type: { - name: "String" - } - }, - ipAddressOrFQDN: { - required: true, - serializedName: "IpAddressOrFQDN", - type: { - name: "String" - } - }, - hostname: { - required: true, - serializedName: "Hostname", - type: { - name: "String" - } - }, - isSeedNode: { - required: true, - serializedName: "IsSeedNode", - type: { - name: "Boolean" - } - }, - nodeVersion: { - required: true, - serializedName: "NodeVersion", + serializedName: "Error", type: { name: "String" } @@ -12643,13 +12603,13 @@ export const NodeClosingEvent: msRest.CompositeMapper = { } }; -export const NodeDeactivateCompleteEvent: msRest.CompositeMapper = { - serializedName: "NodeDeactivateComplete", +export const NodeDeactivateCompletedEvent: msRest.CompositeMapper = { + serializedName: "NodeDeactivateCompleted", type: { name: "Composite", polymorphicDiscriminator: FabricEvent.type.polymorphicDiscriminator, uberParent: "FabricEvent", - className: "NodeDeactivateCompleteEvent", + className: "NodeDeactivateCompletedEvent", modelProperties: { ...NodeEvent.type.modelProperties, nodeInstance: { @@ -12684,13 +12644,13 @@ export const NodeDeactivateCompleteEvent: msRest.CompositeMapper = { } }; -export const NodeDeactivateStartEvent: msRest.CompositeMapper = { - serializedName: "NodeDeactivateStart", +export const NodeDeactivateStartedEvent: msRest.CompositeMapper = { + serializedName: "NodeDeactivateStarted", type: { name: "Composite", polymorphicDiscriminator: FabricEvent.type.polymorphicDiscriminator, uberParent: "FabricEvent", - className: "NodeDeactivateStartEvent", + className: "NodeDeactivateStartedEvent", modelProperties: { ...NodeEvent.type.modelProperties, nodeInstance: { @@ -12745,13 +12705,13 @@ export const NodeDownEvent: msRest.CompositeMapper = { } }; -export const NodeHealthReportCreatedEvent: msRest.CompositeMapper = { - serializedName: "NodeHealthReportCreated", +export const NodeNewHealthReportEvent: msRest.CompositeMapper = { + serializedName: "NodeNewHealthReport", type: { name: "Composite", polymorphicDiscriminator: FabricEvent.type.polymorphicDiscriminator, uberParent: "FabricEvent", - className: "NodeHealthReportCreatedEvent", + className: "NodeNewHealthReportEvent", modelProperties: { ...NodeEvent.type.modelProperties, nodeInstanceId: { @@ -12897,13 +12857,13 @@ export const NodeHealthReportExpiredEvent: msRest.CompositeMapper = { } }; -export const NodeOpenedSuccessEvent: msRest.CompositeMapper = { - serializedName: "NodeOpenedSuccess", +export const NodeOpenSucceededEvent: msRest.CompositeMapper = { + serializedName: "NodeOpenSucceeded", type: { name: "Composite", polymorphicDiscriminator: FabricEvent.type.polymorphicDiscriminator, uberParent: "FabricEvent", - className: "NodeOpenedSuccessEvent", + className: "NodeOpenSucceededEvent", modelProperties: { ...NodeEvent.type.modelProperties, nodeInstance: { @@ -13042,82 +13002,13 @@ export const NodeOpenFailedEvent: msRest.CompositeMapper = { } }; -export const NodeOpeningEvent: msRest.CompositeMapper = { - serializedName: "NodeOpening", - type: { - name: "Composite", - polymorphicDiscriminator: FabricEvent.type.polymorphicDiscriminator, - uberParent: "FabricEvent", - className: "NodeOpeningEvent", - modelProperties: { - ...NodeEvent.type.modelProperties, - nodeInstance: { - required: true, - serializedName: "NodeInstance", - type: { - name: "Number" - } - }, - nodeId: { - required: true, - serializedName: "NodeId", - type: { - name: "String" - } - }, - upgradeDomain: { - required: true, - serializedName: "UpgradeDomain", - type: { - name: "String" - } - }, - faultDomain: { - required: true, - serializedName: "FaultDomain", - type: { - name: "String" - } - }, - ipAddressOrFQDN: { - required: true, - serializedName: "IpAddressOrFQDN", - type: { - name: "String" - } - }, - hostname: { - required: true, - serializedName: "Hostname", - type: { - name: "String" - } - }, - isSeedNode: { - required: true, - serializedName: "IsSeedNode", - type: { - name: "Boolean" - } - }, - nodeVersion: { - required: true, - serializedName: "NodeVersion", - type: { - name: "String" - } - } - } - } -}; - -export const NodeRemovedEvent: msRest.CompositeMapper = { - serializedName: "NodeRemoved", +export const NodeRemovedFromClusterEvent: msRest.CompositeMapper = { + serializedName: "NodeRemovedFromCluster", type: { name: "Composite", polymorphicDiscriminator: FabricEvent.type.polymorphicDiscriminator, uberParent: "FabricEvent", - className: "NodeRemovedEvent", + className: "NodeRemovedFromClusterEvent", modelProperties: { ...NodeEvent.type.modelProperties, nodeId: { @@ -13193,13 +13084,13 @@ export const NodeUpEvent: msRest.CompositeMapper = { } }; -export const PartitionHealthReportCreatedEvent: msRest.CompositeMapper = { - serializedName: "PartitionHealthReportCreated", +export const PartitionNewHealthReportEvent: msRest.CompositeMapper = { + serializedName: "PartitionNewHealthReport", type: { name: "Composite", polymorphicDiscriminator: FabricEvent.type.polymorphicDiscriminator, uberParent: "FabricEvent", - className: "PartitionHealthReportCreatedEvent", + className: "PartitionNewHealthReportEvent", modelProperties: { ...PartitionEvent.type.modelProperties, sourceId: { @@ -13331,13 +13222,13 @@ export const PartitionHealthReportExpiredEvent: msRest.CompositeMapper = { } }; -export const PartitionReconfigurationCompletedEvent: msRest.CompositeMapper = { - serializedName: "PartitionReconfigurationCompleted", +export const PartitionReconfiguredEvent: msRest.CompositeMapper = { + serializedName: "PartitionReconfigured", type: { name: "Composite", polymorphicDiscriminator: FabricEvent.type.polymorphicDiscriminator, uberParent: "FabricEvent", - className: "PartitionReconfigurationCompletedEvent", + className: "PartitionReconfiguredEvent", modelProperties: { ...PartitionEvent.type.modelProperties, nodeName: { @@ -13642,13 +13533,13 @@ export const ServiceDeletedEvent: msRest.CompositeMapper = { } }; -export const ServiceHealthReportCreatedEvent: msRest.CompositeMapper = { - serializedName: "ServiceHealthReportCreated", +export const ServiceNewHealthReportEvent: msRest.CompositeMapper = { + serializedName: "ServiceNewHealthReport", type: { name: "Composite", polymorphicDiscriminator: FabricEvent.type.polymorphicDiscriminator, uberParent: "FabricEvent", - className: "ServiceHealthReportCreatedEvent", + className: "ServiceNewHealthReportEvent", modelProperties: { ...ServiceEvent.type.modelProperties, instanceId: { @@ -13794,13 +13685,13 @@ export const ServiceHealthReportExpiredEvent: msRest.CompositeMapper = { } }; -export const DeployedServiceHealthReportCreatedEvent: msRest.CompositeMapper = { - serializedName: "DeployedServiceHealthReportCreated", +export const DeployedServicePackageNewHealthReportEvent: msRest.CompositeMapper = { + serializedName: "DeployedServicePackageNewHealthReport", type: { name: "Composite", polymorphicDiscriminator: FabricEvent.type.polymorphicDiscriminator, uberParent: "FabricEvent", - className: "DeployedServiceHealthReportCreatedEvent", + className: "DeployedServicePackageNewHealthReportEvent", modelProperties: { ...ApplicationEvent.type.modelProperties, serviceManifestName: { @@ -13852,9 +13743,9 @@ export const DeployedServiceHealthReportCreatedEvent: msRest.CompositeMapper = { name: "String" } }, - tTLTimespan: { + timeToLiveMs: { required: true, - serializedName: "TTLTimespan", + serializedName: "TimeToLiveMs", type: { name: "Number" } @@ -13891,13 +13782,13 @@ export const DeployedServiceHealthReportCreatedEvent: msRest.CompositeMapper = { } }; -export const DeployedServiceHealthReportExpiredEvent: msRest.CompositeMapper = { - serializedName: "DeployedServiceHealthReportExpired", +export const DeployedServicePackageHealthReportExpiredEvent: msRest.CompositeMapper = { + serializedName: "DeployedServicePackageHealthReportExpired", type: { name: "Composite", polymorphicDiscriminator: FabricEvent.type.polymorphicDiscriminator, uberParent: "FabricEvent", - className: "DeployedServiceHealthReportExpiredEvent", + className: "DeployedServicePackageHealthReportExpiredEvent", modelProperties: { ...ApplicationEvent.type.modelProperties, serviceManifest: { @@ -13949,9 +13840,9 @@ export const DeployedServiceHealthReportExpiredEvent: msRest.CompositeMapper = { name: "String" } }, - tTLTimespan: { + timeToLiveMs: { required: true, - serializedName: "TTLTimespan", + serializedName: "TimeToLiveMs", type: { name: "Number" } @@ -13988,13 +13879,13 @@ export const DeployedServiceHealthReportExpiredEvent: msRest.CompositeMapper = { } }; -export const StatefulReplicaHealthReportCreatedEvent: msRest.CompositeMapper = { - serializedName: "StatefulReplicaHealthReportCreated", +export const StatefulReplicaNewHealthReportEvent: msRest.CompositeMapper = { + serializedName: "StatefulReplicaNewHealthReport", type: { name: "Composite", polymorphicDiscriminator: FabricEvent.type.polymorphicDiscriminator, uberParent: "FabricEvent", - className: "StatefulReplicaHealthReportCreatedEvent", + className: "StatefulReplicaNewHealthReportEvent", modelProperties: { ...ReplicaEvent.type.modelProperties, replicaInstanceId: { @@ -14140,13 +14031,13 @@ export const StatefulReplicaHealthReportExpiredEvent: msRest.CompositeMapper = { } }; -export const StatelessReplicaHealthReportCreatedEvent: msRest.CompositeMapper = { - serializedName: "StatelessReplicaHealthReportCreated", +export const StatelessReplicaNewHealthReportEvent: msRest.CompositeMapper = { + serializedName: "StatelessReplicaNewHealthReport", type: { name: "Composite", polymorphicDiscriminator: FabricEvent.type.polymorphicDiscriminator, uberParent: "FabricEvent", - className: "StatelessReplicaHealthReportCreatedEvent", + className: "StatelessReplicaNewHealthReportEvent", modelProperties: { ...ReplicaEvent.type.modelProperties, sourceId: { @@ -14278,13 +14169,13 @@ export const StatelessReplicaHealthReportExpiredEvent: msRest.CompositeMapper = } }; -export const ClusterHealthReportCreatedEvent: msRest.CompositeMapper = { - serializedName: "ClusterHealthReportCreated", +export const ClusterNewHealthReportEvent: msRest.CompositeMapper = { + serializedName: "ClusterNewHealthReport", type: { name: "Composite", polymorphicDiscriminator: FabricEvent.type.polymorphicDiscriminator, uberParent: "FabricEvent", - className: "ClusterHealthReportCreatedEvent", + className: "ClusterNewHealthReportEvent", modelProperties: { ...ClusterEvent.type.modelProperties, sourceId: { @@ -14416,13 +14307,13 @@ export const ClusterHealthReportExpiredEvent: msRest.CompositeMapper = { } }; -export const ClusterUpgradeCompleteEvent: msRest.CompositeMapper = { - serializedName: "ClusterUpgradeComplete", +export const ClusterUpgradeCompletedEvent: msRest.CompositeMapper = { + serializedName: "ClusterUpgradeCompleted", type: { name: "Composite", polymorphicDiscriminator: FabricEvent.type.polymorphicDiscriminator, uberParent: "FabricEvent", - className: "ClusterUpgradeCompleteEvent", + className: "ClusterUpgradeCompletedEvent", modelProperties: { ...ClusterEvent.type.modelProperties, targetClusterVersion: { @@ -14443,13 +14334,13 @@ export const ClusterUpgradeCompleteEvent: msRest.CompositeMapper = { } }; -export const ClusterUpgradeDomainCompleteEvent: msRest.CompositeMapper = { - serializedName: "ClusterUpgradeDomainComplete", +export const ClusterUpgradeDomainCompletedEvent: msRest.CompositeMapper = { + serializedName: "ClusterUpgradeDomainCompleted", type: { name: "Composite", polymorphicDiscriminator: FabricEvent.type.polymorphicDiscriminator, uberParent: "FabricEvent", - className: "ClusterUpgradeDomainCompleteEvent", + className: "ClusterUpgradeDomainCompletedEvent", modelProperties: { ...ClusterEvent.type.modelProperties, targetClusterVersion: { @@ -14484,13 +14375,13 @@ export const ClusterUpgradeDomainCompleteEvent: msRest.CompositeMapper = { } }; -export const ClusterUpgradeRollbackCompleteEvent: msRest.CompositeMapper = { - serializedName: "ClusterUpgradeRollbackComplete", +export const ClusterUpgradeRollbackCompletedEvent: msRest.CompositeMapper = { + serializedName: "ClusterUpgradeRollbackCompleted", type: { name: "Composite", polymorphicDiscriminator: FabricEvent.type.polymorphicDiscriminator, uberParent: "FabricEvent", - className: "ClusterUpgradeRollbackCompleteEvent", + className: "ClusterUpgradeRollbackCompletedEvent", modelProperties: { ...ClusterEvent.type.modelProperties, targetClusterVersion: { @@ -14518,13 +14409,13 @@ export const ClusterUpgradeRollbackCompleteEvent: msRest.CompositeMapper = { } }; -export const ClusterUpgradeRollbackStartEvent: msRest.CompositeMapper = { - serializedName: "ClusterUpgradeRollbackStart", +export const ClusterUpgradeRollbackStartedEvent: msRest.CompositeMapper = { + serializedName: "ClusterUpgradeRollbackStarted", type: { name: "Composite", polymorphicDiscriminator: FabricEvent.type.polymorphicDiscriminator, uberParent: "FabricEvent", - className: "ClusterUpgradeRollbackStartEvent", + className: "ClusterUpgradeRollbackStartedEvent", modelProperties: { ...ClusterEvent.type.modelProperties, targetClusterVersion: { @@ -14552,13 +14443,13 @@ export const ClusterUpgradeRollbackStartEvent: msRest.CompositeMapper = { } }; -export const ClusterUpgradeStartEvent: msRest.CompositeMapper = { - serializedName: "ClusterUpgradeStart", +export const ClusterUpgradeStartedEvent: msRest.CompositeMapper = { + serializedName: "ClusterUpgradeStarted", type: { name: "Composite", polymorphicDiscriminator: FabricEvent.type.polymorphicDiscriminator, uberParent: "FabricEvent", - className: "ClusterUpgradeStartEvent", + className: "ClusterUpgradeStartedEvent", modelProperties: { ...ClusterEvent.type.modelProperties, currentClusterVersion: { @@ -14703,47 +14594,13 @@ export const ChaosStartedEvent: msRest.CompositeMapper = { } }; -export const ChaosRestartNodeFaultCompletedEvent: msRest.CompositeMapper = { - serializedName: "ChaosRestartNodeFaultCompleted", - type: { - name: "Composite", - polymorphicDiscriminator: FabricEvent.type.polymorphicDiscriminator, - uberParent: "FabricEvent", - className: "ChaosRestartNodeFaultCompletedEvent", - modelProperties: { - ...NodeEvent.type.modelProperties, - nodeInstanceId: { - required: true, - serializedName: "NodeInstanceId", - type: { - name: "Number" - } - }, - faultGroupId: { - required: true, - serializedName: "FaultGroupId", - type: { - name: "Uuid" - } - }, - faultId: { - required: true, - serializedName: "FaultId", - type: { - name: "Uuid" - } - } - } - } -}; - -export const ChaosRestartCodePackageFaultScheduledEvent: msRest.CompositeMapper = { - serializedName: "ChaosRestartCodePackageFaultScheduled", +export const ChaosCodePackageRestartScheduledEvent: msRest.CompositeMapper = { + serializedName: "ChaosCodePackageRestartScheduled", type: { name: "Composite", polymorphicDiscriminator: FabricEvent.type.polymorphicDiscriminator, uberParent: "FabricEvent", - className: "ChaosRestartCodePackageFaultScheduledEvent", + className: "ChaosCodePackageRestartScheduledEvent", modelProperties: { ...ApplicationEvent.type.modelProperties, faultGroupId: { @@ -14792,15 +14649,15 @@ export const ChaosRestartCodePackageFaultScheduledEvent: msRest.CompositeMapper } }; -export const ChaosRestartCodePackageFaultCompletedEvent: msRest.CompositeMapper = { - serializedName: "ChaosRestartCodePackageFaultCompleted", +export const ChaosReplicaRemovalScheduledEvent: msRest.CompositeMapper = { + serializedName: "ChaosReplicaRemovalScheduled", type: { name: "Composite", polymorphicDiscriminator: FabricEvent.type.polymorphicDiscriminator, uberParent: "FabricEvent", - className: "ChaosRestartCodePackageFaultCompletedEvent", + className: "ChaosReplicaRemovalScheduledEvent", modelProperties: { - ...ApplicationEvent.type.modelProperties, + ...ReplicaEvent.type.modelProperties, faultGroupId: { required: true, serializedName: "FaultGroupId", @@ -14815,30 +14672,9 @@ export const ChaosRestartCodePackageFaultCompletedEvent: msRest.CompositeMapper name: "Uuid" } }, - nodeName: { - required: true, - serializedName: "NodeName", - type: { - name: "String" - } - }, - serviceManifestName: { - required: true, - serializedName: "ServiceManifestName", - type: { - name: "String" - } - }, - codePackageName: { - required: true, - serializedName: "CodePackageName", - type: { - name: "String" - } - }, - servicePackageActivationId: { + serviceUri: { required: true, - serializedName: "ServicePackageActivationId", + serializedName: "ServiceUri", type: { name: "String" } @@ -14847,15 +14683,15 @@ export const ChaosRestartCodePackageFaultCompletedEvent: msRest.CompositeMapper } }; -export const ChaosRemoveReplicaFaultScheduledEvent: msRest.CompositeMapper = { - serializedName: "ChaosRemoveReplicaFaultScheduled", +export const ChaosPartitionSecondaryMoveScheduledEvent: msRest.CompositeMapper = { + serializedName: "ChaosPartitionSecondaryMoveScheduled", type: { name: "Composite", polymorphicDiscriminator: FabricEvent.type.polymorphicDiscriminator, uberParent: "FabricEvent", - className: "ChaosRemoveReplicaFaultScheduledEvent", + className: "ChaosPartitionSecondaryMoveScheduledEvent", modelProperties: { - ...ReplicaEvent.type.modelProperties, + ...PartitionEvent.type.modelProperties, faultGroupId: { required: true, serializedName: "FaultGroupId", @@ -14870,77 +14706,9 @@ export const ChaosRemoveReplicaFaultScheduledEvent: msRest.CompositeMapper = { name: "Uuid" } }, - serviceUri: { + serviceName: { required: true, - serializedName: "ServiceUri", - type: { - name: "String" - } - } - } - } -}; - -export const ChaosRemoveReplicaFaultCompletedEvent: msRest.CompositeMapper = { - serializedName: "ChaosRemoveReplicaFaultCompleted", - type: { - name: "Composite", - polymorphicDiscriminator: FabricEvent.type.polymorphicDiscriminator, - uberParent: "FabricEvent", - className: "ChaosRemoveReplicaFaultCompletedEvent", - modelProperties: { - ...ReplicaEvent.type.modelProperties, - faultGroupId: { - required: true, - serializedName: "FaultGroupId", - type: { - name: "Uuid" - } - }, - faultId: { - required: true, - serializedName: "FaultId", - type: { - name: "Uuid" - } - }, - serviceUri: { - required: true, - serializedName: "ServiceUri", - type: { - name: "String" - } - } - } - } -}; - -export const ChaosMoveSecondaryFaultScheduledEvent: msRest.CompositeMapper = { - serializedName: "ChaosMoveSecondaryFaultScheduled", - type: { - name: "Composite", - polymorphicDiscriminator: FabricEvent.type.polymorphicDiscriminator, - uberParent: "FabricEvent", - className: "ChaosMoveSecondaryFaultScheduledEvent", - modelProperties: { - ...PartitionEvent.type.modelProperties, - faultGroupId: { - required: true, - serializedName: "FaultGroupId", - type: { - name: "Uuid" - } - }, - faultId: { - required: true, - serializedName: "FaultId", - type: { - name: "Uuid" - } - }, - serviceName: { - required: true, - serializedName: "ServiceName", + serializedName: "ServiceName", type: { name: "String" } @@ -14970,13 +14738,13 @@ export const ChaosMoveSecondaryFaultScheduledEvent: msRest.CompositeMapper = { } }; -export const ChaosMovePrimaryFaultScheduledEvent: msRest.CompositeMapper = { - serializedName: "ChaosMovePrimaryFaultScheduled", +export const ChaosPartitionPrimaryMoveScheduledEvent: msRest.CompositeMapper = { + serializedName: "ChaosPartitionPrimaryMoveScheduled", type: { name: "Composite", polymorphicDiscriminator: FabricEvent.type.polymorphicDiscriminator, uberParent: "FabricEvent", - className: "ChaosMovePrimaryFaultScheduledEvent", + className: "ChaosPartitionPrimaryMoveScheduledEvent", modelProperties: { ...PartitionEvent.type.modelProperties, faultGroupId: { @@ -15018,13 +14786,13 @@ export const ChaosMovePrimaryFaultScheduledEvent: msRest.CompositeMapper = { } }; -export const ChaosRestartReplicaFaultScheduledEvent: msRest.CompositeMapper = { - serializedName: "ChaosRestartReplicaFaultScheduled", +export const ChaosReplicaRestartScheduledEvent: msRest.CompositeMapper = { + serializedName: "ChaosReplicaRestartScheduled", type: { name: "Composite", polymorphicDiscriminator: FabricEvent.type.polymorphicDiscriminator, uberParent: "FabricEvent", - className: "ChaosRestartReplicaFaultScheduledEvent", + className: "ChaosReplicaRestartScheduledEvent", modelProperties: { ...ReplicaEvent.type.modelProperties, faultGroupId: { @@ -15052,13 +14820,13 @@ export const ChaosRestartReplicaFaultScheduledEvent: msRest.CompositeMapper = { } }; -export const ChaosRestartNodeFaultScheduledEvent: msRest.CompositeMapper = { - serializedName: "ChaosRestartNodeFaultScheduled", +export const ChaosNodeRestartScheduledEvent: msRest.CompositeMapper = { + serializedName: "ChaosNodeRestartScheduled", type: { name: "Composite", polymorphicDiscriminator: FabricEvent.type.polymorphicDiscriminator, uberParent: "FabricEvent", - className: "ChaosRestartNodeFaultScheduledEvent", + className: "ChaosNodeRestartScheduledEvent", modelProperties: { ...NodeEvent.type.modelProperties, nodeInstanceId: { @@ -15086,75 +14854,95 @@ export const ChaosRestartNodeFaultScheduledEvent: msRest.CompositeMapper = { } }; -export const ServiceResourceDescription: msRest.CompositeMapper = { - serializedName: "ServiceResourceDescription", +export const SecretResourcePropertiesBase: msRest.CompositeMapper = { + serializedName: "SecretResourcePropertiesBase", type: { name: "Composite", - className: "ServiceResourceDescription", + polymorphicDiscriminator: { + serializedName: "kind", + clientName: "kind" + }, + uberParent: "SecretResourcePropertiesBase", + className: "SecretResourcePropertiesBase", modelProperties: { - osType: { + kind: { required: true, - serializedName: "properties.osType", + serializedName: "kind", type: { name: "String" } - }, - codePackages: { - required: true, - serializedName: "properties.codePackages", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ContainerCodePackageProperties" - } - } - } - }, - networkRefs: { - serializedName: "properties.networkRefs", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "NetworkRef" - } - } - } - }, - diagnostics: { - serializedName: "properties.diagnostics", - type: { - name: "Composite", - className: "DiagnosticsRef" - } - }, + } + } + } +}; + +export const SecretResourceProperties: msRest.CompositeMapper = { + serializedName: "SecretResourceProperties", + type: { + name: "Composite", + polymorphicDiscriminator: SecretResourcePropertiesBase.type.polymorphicDiscriminator, + uberParent: "SecretResourcePropertiesBase", + className: "SecretResourceProperties", + modelProperties: { + ...SecretResourcePropertiesBase.type.modelProperties, description: { - serializedName: "properties.description", + serializedName: "description", type: { name: "String" } }, - replicaCount: { - serializedName: "properties.replicaCount", + status: { + readOnly: true, + serializedName: "status", type: { - name: "Number" + name: "String" } }, - healthState: { - serializedName: "properties.healthState", + statusDetails: { + readOnly: true, + serializedName: "statusDetails", type: { name: "String" } }, - status: { - readOnly: true, - serializedName: "properties.status", + contentType: { + serializedName: "contentType", type: { name: "String" } + } + } + } +}; + +export const InlinedValueSecretResourceProperties: msRest.CompositeMapper = { + serializedName: "inlinedValue", + type: { + name: "Composite", + polymorphicDiscriminator: SecretResourcePropertiesBase.type.polymorphicDiscriminator, + uberParent: "SecretResourcePropertiesBase", + className: "InlinedValueSecretResourceProperties", + modelProperties: { + ...SecretResourceProperties.type.modelProperties + } + } +}; + +export const SecretResourceDescription: msRest.CompositeMapper = { + serializedName: "SecretResourceDescription", + type: { + name: "Composite", + className: "SecretResourceDescription", + modelProperties: { + properties: { + required: true, + serializedName: "properties", + type: { + name: "Composite", + polymorphicDiscriminator: SecretResourcePropertiesBase.type.polymorphicDiscriminator, + uberParent: "SecretResourcePropertiesBase", + className: "SecretResourceProperties" + } }, name: { required: true, @@ -15167,32 +14955,58 @@ export const ServiceResourceDescription: msRest.CompositeMapper = { } }; -export const DiagnosticsSinkProperties: msRest.CompositeMapper = { - serializedName: "DiagnosticsSinkProperties", +export const PagedSecretResourceDescriptionList: msRest.CompositeMapper = { + serializedName: "PagedSecretResourceDescriptionList", type: { name: "Composite", - polymorphicDiscriminator: { - serializedName: "kind", - clientName: "kind" - }, - uberParent: "DiagnosticsSinkProperties", - className: "DiagnosticsSinkProperties", + className: "PagedSecretResourceDescriptionList", modelProperties: { - name: { - serializedName: "name", + continuationToken: { + serializedName: "ContinuationToken", type: { name: "String" } }, - description: { - serializedName: "description", + items: { + serializedName: "Items", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SecretResourceDescription" + } + } + } + } + } + } +}; + +export const SecretValue: msRest.CompositeMapper = { + serializedName: "SecretValue", + type: { + name: "Composite", + className: "SecretValue", + modelProperties: { + value: { + serializedName: "value", type: { name: "String" } - }, - kind: { - required: true, - serializedName: "kind", + } + } + } +}; + +export const SecretValueProperties: msRest.CompositeMapper = { + serializedName: "SecretValueProperties", + type: { + name: "Composite", + className: "SecretValueProperties", + modelProperties: { + value: { + serializedName: "value", type: { name: "String" } @@ -15201,42 +15015,49 @@ export const DiagnosticsSinkProperties: msRest.CompositeMapper = { } }; -export const DiagnosticsDescription: msRest.CompositeMapper = { - serializedName: "DiagnosticsDescription", +export const SecretValueResourceDescription: msRest.CompositeMapper = { + serializedName: "SecretValueResourceDescription", type: { name: "Composite", - className: "DiagnosticsDescription", + className: "SecretValueResourceDescription", modelProperties: { - sinks: { - serializedName: "sinks", + name: { + required: true, + serializedName: "name", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - polymorphicDiscriminator: { - serializedName: "kind", - clientName: "kind" - }, - uberParent: "DiagnosticsSinkProperties", - className: "DiagnosticsSinkProperties" - } - } + name: "String" } }, - enabled: { - serializedName: "enabled", + value: { + serializedName: "properties.value", type: { - name: "Boolean" + name: "String" + } + } + } + } +}; + +export const PagedSecretValueResourceDescriptionList: msRest.CompositeMapper = { + serializedName: "PagedSecretValueResourceDescriptionList", + type: { + name: "Composite", + className: "PagedSecretValueResourceDescriptionList", + modelProperties: { + continuationToken: { + serializedName: "ContinuationToken", + type: { + name: "String" } }, - defaultSinkRefs: { - serializedName: "defaultSinkRefs", + items: { + serializedName: "Items", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "SecretValueResourceDescription" } } } @@ -15245,86 +15066,86 @@ export const DiagnosticsDescription: msRest.CompositeMapper = { } }; -export const ApplicationResourceDescription: msRest.CompositeMapper = { - serializedName: "ApplicationResourceDescription", +export const VolumeProviderParametersAzureFile: msRest.CompositeMapper = { + serializedName: "VolumeProviderParametersAzureFile", type: { name: "Composite", - className: "ApplicationResourceDescription", + className: "VolumeProviderParametersAzureFile", modelProperties: { - description: { - serializedName: "properties.description", + accountName: { + required: true, + serializedName: "accountName", type: { name: "String" } }, - debugParams: { - serializedName: "properties.debugParams", + accountKey: { + serializedName: "accountKey", type: { name: "String" } }, - services: { - serializedName: "properties.services", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServiceResourceDescription" - } - } - } - }, - healthState: { - readOnly: true, - serializedName: "properties.healthState", + shareName: { + required: true, + serializedName: "shareName", type: { name: "String" } - }, - unhealthyEvaluation: { - readOnly: true, - serializedName: "properties.unhealthyEvaluation", + } + } + } +}; + +export const VolumeReference: msRest.CompositeMapper = { + serializedName: "VolumeReference", + type: { + name: "Composite", + className: "VolumeReference", + modelProperties: { + name: { + required: true, + serializedName: "name", type: { name: "String" } }, - status: { - readOnly: true, - serializedName: "properties.status", + readOnly: { + serializedName: "readOnly", type: { - name: "String" + name: "Boolean" } }, - statusDetails: { - readOnly: true, - serializedName: "properties.statusDetails", + destinationPath: { + required: true, + serializedName: "destinationPath", type: { name: "String" } - }, - serviceNames: { - readOnly: true, - serializedName: "properties.serviceNames", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - diagnostics: { - serializedName: "properties.diagnostics", + } + } + } +}; + +export const ApplicationScopedVolumeCreationParameters: msRest.CompositeMapper = { + serializedName: "ApplicationScopedVolumeCreationParameters", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "kind", + clientName: "kind" + }, + uberParent: "ApplicationScopedVolumeCreationParameters", + className: "ApplicationScopedVolumeCreationParameters", + modelProperties: { + description: { + serializedName: "description", type: { - name: "Composite", - className: "DiagnosticsDescription" + name: "String" } }, - name: { + kind: { required: true, - serializedName: "name", + serializedName: "kind", type: { name: "String" } @@ -15333,106 +15154,108 @@ export const ApplicationResourceDescription: msRest.CompositeMapper = { } }; -export const PagedServiceResourceDescriptionList: msRest.CompositeMapper = { - serializedName: "PagedServiceResourceDescriptionList", +export const ApplicationScopedVolume: msRest.CompositeMapper = { + serializedName: "ApplicationScopedVolume", type: { name: "Composite", - className: "PagedServiceResourceDescriptionList", + className: "ApplicationScopedVolume", modelProperties: { - continuationToken: { - serializedName: "ContinuationToken", + ...VolumeReference.type.modelProperties, + creationParameters: { + required: true, + serializedName: "creationParameters", type: { - name: "String" + name: "Composite", + polymorphicDiscriminator: { + serializedName: "kind", + clientName: "kind" + }, + uberParent: "ApplicationScopedVolumeCreationParameters", + className: "ApplicationScopedVolumeCreationParameters" } - }, - items: { - serializedName: "Items", + } + } + } +}; + +export const ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk: msRest.CompositeMapper = { + serializedName: "ServiceFabricVolumeDisk", + type: { + name: "Composite", + polymorphicDiscriminator: ApplicationScopedVolumeCreationParameters.type.polymorphicDiscriminator, + uberParent: "ApplicationScopedVolumeCreationParameters", + className: "ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk", + modelProperties: { + ...ApplicationScopedVolumeCreationParameters.type.modelProperties, + sizeDisk: { + required: true, + serializedName: "sizeDisk", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServiceResourceDescription" - } - } + name: "String" } } } } }; -export const ServiceReplicaProperties: msRest.CompositeMapper = { - serializedName: "ServiceReplicaProperties", +export const VolumeResourceDescription: msRest.CompositeMapper = { + serializedName: "VolumeResourceDescription", type: { name: "Composite", - className: "ServiceReplicaProperties", + className: "VolumeResourceDescription", modelProperties: { - osType: { + name: { required: true, - serializedName: "osType", + serializedName: "name", type: { name: "String" } }, - codePackages: { - required: true, - serializedName: "codePackages", + description: { + serializedName: "properties.description", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ContainerCodePackageProperties" - } - } + name: "String" } }, - networkRefs: { - serializedName: "networkRefs", + status: { + readOnly: true, + serializedName: "properties.status", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "NetworkRef" - } - } + name: "String" } }, - diagnostics: { - serializedName: "diagnostics", + statusDetails: { + readOnly: true, + serializedName: "properties.statusDetails", type: { - name: "Composite", - className: "DiagnosticsRef" + name: "String" } - } - } - } -}; - -export const ServiceResourceReplicaDescription: msRest.CompositeMapper = { - serializedName: "ServiceResourceReplicaDescription", - type: { - name: "Composite", - className: "ServiceResourceReplicaDescription", - modelProperties: { - ...ServiceReplicaProperties.type.modelProperties, - replicaName: { + }, + provider: { required: true, - serializedName: "replicaName", + isConstant: true, + serializedName: "properties.provider", + defaultValue: 'SFAzureFile', type: { name: "String" } + }, + azureFileParameters: { + serializedName: "properties.azureFileParameters", + type: { + name: "Composite", + className: "VolumeProviderParametersAzureFile" + } } } } }; -export const PagedServiceResourceReplicaDescriptionList: msRest.CompositeMapper = { - serializedName: "PagedServiceResourceReplicaDescriptionList", +export const PagedVolumeResourceDescriptionList: msRest.CompositeMapper = { + serializedName: "PagedVolumeResourceDescriptionList", type: { name: "Composite", - className: "PagedServiceResourceReplicaDescriptionList", + className: "PagedVolumeResourceDescriptionList", modelProperties: { continuationToken: { serializedName: "ContinuationToken", @@ -15447,7 +15270,7 @@ export const PagedServiceResourceReplicaDescriptionList: msRest.CompositeMapper element: { type: { name: "Composite", - className: "ServiceResourceReplicaDescription" + className: "VolumeResourceDescription" } } } @@ -15456,28 +15279,20 @@ export const PagedServiceResourceReplicaDescriptionList: msRest.CompositeMapper } }; -export const VolumeProviderParametersAzureFile: msRest.CompositeMapper = { - serializedName: "VolumeProviderParametersAzureFile", +export const NetworkResourcePropertiesBase: msRest.CompositeMapper = { + serializedName: "NetworkResourcePropertiesBase", type: { name: "Composite", - className: "VolumeProviderParametersAzureFile", + polymorphicDiscriminator: { + serializedName: "kind", + clientName: "kind" + }, + uberParent: "NetworkResourcePropertiesBase", + className: "NetworkResourcePropertiesBase", modelProperties: { - accountName: { - required: true, - serializedName: "accountName", - type: { - name: "String" - } - }, - accountKey: { - serializedName: "accountKey", - type: { - name: "String" - } - }, - shareName: { + kind: { required: true, - serializedName: "shareName", + serializedName: "kind", type: { name: "String" } @@ -15486,37 +15301,31 @@ export const VolumeProviderParametersAzureFile: msRest.CompositeMapper = { } }; -export const VolumeResourceDescription: msRest.CompositeMapper = { - serializedName: "VolumeResourceDescription", +export const NetworkResourceProperties: msRest.CompositeMapper = { + serializedName: "NetworkResourceProperties", type: { name: "Composite", - className: "VolumeResourceDescription", + polymorphicDiscriminator: NetworkResourcePropertiesBase.type.polymorphicDiscriminator, + uberParent: "NetworkResourcePropertiesBase", + className: "NetworkResourceProperties", modelProperties: { + ...NetworkResourcePropertiesBase.type.modelProperties, description: { - serializedName: "properties.description", + serializedName: "description", type: { name: "String" } }, - provider: { - required: true, - isConstant: true, - serializedName: "properties.provider", - defaultValue: 'SFAzureFile', + status: { + readOnly: true, + serializedName: "status", type: { name: "String" } }, - azureFileParameters: { - serializedName: "properties.azureFileParameters", - type: { - name: "Composite", - className: "VolumeProviderParametersAzureFile" - } - }, - name: { - required: true, - serializedName: "name", + statusDetails: { + readOnly: true, + serializedName: "statusDetails", type: { name: "String" } @@ -15525,28 +15334,17 @@ export const VolumeResourceDescription: msRest.CompositeMapper = { } }; -export const ImageRegistryCredential: msRest.CompositeMapper = { - serializedName: "ImageRegistryCredential", +export const LocalNetworkResourceProperties: msRest.CompositeMapper = { + serializedName: "Local", type: { name: "Composite", - className: "ImageRegistryCredential", + polymorphicDiscriminator: NetworkResourcePropertiesBase.type.polymorphicDiscriminator, + uberParent: "NetworkResourcePropertiesBase", + className: "LocalNetworkResourceProperties", modelProperties: { - server: { - required: true, - serializedName: "server", - type: { - name: "String" - } - }, - username: { - required: true, - serializedName: "username", - type: { - name: "String" - } - }, - password: { - serializedName: "password", + ...NetworkResourceProperties.type.modelProperties, + networkAddressPrefix: { + serializedName: "networkAddressPrefix", type: { name: "String" } @@ -15555,33 +15353,27 @@ export const ImageRegistryCredential: msRest.CompositeMapper = { } }; -export const EnvironmentVariable: msRest.CompositeMapper = { - serializedName: "EnvironmentVariable", +export const EndpointRef: msRest.CompositeMapper = { + serializedName: "EndpointRef", type: { name: "Composite", - className: "EnvironmentVariable", + className: "EndpointRef", modelProperties: { name: { serializedName: "name", type: { name: "String" } - }, - value: { - serializedName: "value", - type: { - name: "String" - } } } } }; -export const Setting: msRest.CompositeMapper = { - serializedName: "Setting", +export const NetworkRef: msRest.CompositeMapper = { + serializedName: "NetworkRef", type: { name: "Composite", - className: "Setting", + className: "NetworkRef", modelProperties: { name: { serializedName: "name", @@ -15589,21 +15381,27 @@ export const Setting: msRest.CompositeMapper = { name: "String" } }, - value: { - serializedName: "value", + endpointRefs: { + serializedName: "endpointRefs", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EndpointRef" + } + } } } } } }; -export const ContainerLabel: msRest.CompositeMapper = { - serializedName: "ContainerLabel", +export const NetworkResourceDescription: msRest.CompositeMapper = { + serializedName: "NetworkResourceDescription", type: { name: "Composite", - className: "ContainerLabel", + className: "NetworkResourceDescription", modelProperties: { name: { required: true, @@ -15612,116 +15410,148 @@ export const ContainerLabel: msRest.CompositeMapper = { name: "String" } }, - value: { + properties: { required: true, - serializedName: "value", + serializedName: "properties", type: { - name: "String" + name: "Composite", + polymorphicDiscriminator: NetworkResourcePropertiesBase.type.polymorphicDiscriminator, + uberParent: "NetworkResourcePropertiesBase", + className: "NetworkResourceProperties" } } } } }; -export const EndpointProperties: msRest.CompositeMapper = { - serializedName: "EndpointProperties", +export const PagedNetworkResourceDescriptionList: msRest.CompositeMapper = { + serializedName: "PagedNetworkResourceDescriptionList", type: { name: "Composite", - className: "EndpointProperties", + className: "PagedNetworkResourceDescriptionList", modelProperties: { - name: { - required: true, - serializedName: "name", + continuationToken: { + serializedName: "ContinuationToken", type: { name: "String" } }, - port: { - serializedName: "port", + items: { + serializedName: "Items", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkResourceDescription" + } + } } } } } }; -export const ResourceRequests: msRest.CompositeMapper = { - serializedName: "ResourceRequests", +export const GatewayDestination: msRest.CompositeMapper = { + serializedName: "GatewayDestination", type: { name: "Composite", - className: "ResourceRequests", + className: "GatewayDestination", modelProperties: { - memoryInGB: { + applicationName: { required: true, - serializedName: "memoryInGB", + serializedName: "applicationName", type: { - name: "Number" + name: "String" } }, - cpu: { + serviceName: { required: true, - serializedName: "cpu", + serializedName: "serviceName", type: { - name: "Number" + name: "String" + } + }, + endpointName: { + required: true, + serializedName: "endpointName", + type: { + name: "String" } } } } }; -export const ResourceLimits: msRest.CompositeMapper = { - serializedName: "ResourceLimits", +export const TcpConfig: msRest.CompositeMapper = { + serializedName: "TcpConfig", type: { name: "Composite", - className: "ResourceLimits", + className: "TcpConfig", modelProperties: { - memoryInGB: { - serializedName: "memoryInGB", + name: { + required: true, + serializedName: "name", type: { - name: "Number" + name: "String" } }, - cpu: { - serializedName: "cpu", + port: { + required: true, + serializedName: "port", type: { name: "Number" } + }, + destination: { + required: true, + serializedName: "destination", + type: { + name: "Composite", + className: "GatewayDestination" + } } } } }; -export const ResourceRequirements: msRest.CompositeMapper = { - serializedName: "ResourceRequirements", +export const HttpRouteMatchPath: msRest.CompositeMapper = { + serializedName: "HttpRouteMatchPath", type: { name: "Composite", - className: "ResourceRequirements", + className: "HttpRouteMatchPath", modelProperties: { - requests: { + value: { required: true, - serializedName: "requests", + serializedName: "value", type: { - name: "Composite", - className: "ResourceRequests" + name: "String" } }, - limits: { - serializedName: "limits", + rewrite: { + serializedName: "rewrite", type: { - name: "Composite", - className: "ResourceLimits" + name: "String" + } + }, + type: { + required: true, + isConstant: true, + serializedName: "type", + defaultValue: 'prefix', + type: { + name: "String" } } } } }; -export const ContainerVolume: msRest.CompositeMapper = { - serializedName: "ContainerVolume", +export const HttpRouteMatchHeader: msRest.CompositeMapper = { + serializedName: "HttpRouteMatchHeader", type: { name: "Composite", - className: "ContainerVolume", + className: "HttpRouteMatchHeader", modelProperties: { name: { required: true, @@ -15730,15 +15560,14 @@ export const ContainerVolume: msRest.CompositeMapper = { name: "String" } }, - readOnly: { - serializedName: "readOnly", + value: { + serializedName: "value", type: { - name: "Boolean" + name: "String" } }, - destinationPath: { - required: true, - serializedName: "destinationPath", + type: { + serializedName: "type", type: { name: "String" } @@ -15747,126 +15576,93 @@ export const ContainerVolume: msRest.CompositeMapper = { } }; -export const ContainerState: msRest.CompositeMapper = { - serializedName: "ContainerState", +export const HttpRouteMatchRule: msRest.CompositeMapper = { + serializedName: "HttpRouteMatchRule", type: { name: "Composite", - className: "ContainerState", + className: "HttpRouteMatchRule", modelProperties: { - state: { - serializedName: "state", - type: { - name: "String" - } - }, - startTime: { - serializedName: "startTime", - type: { - name: "DateTime" - } - }, - exitCode: { - serializedName: "exitCode", - type: { - name: "String" - } - }, - finishTime: { - serializedName: "finishTime", + path: { + required: true, + serializedName: "path", + defaultValue: {}, type: { - name: "DateTime" + name: "Composite", + className: "HttpRouteMatchPath" } }, - detailStatus: { - serializedName: "detailStatus", + headers: { + serializedName: "headers", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HttpRouteMatchHeader" + } + } } } } } }; -export const ContainerEvent: msRest.CompositeMapper = { - serializedName: "ContainerEvent", +export const HttpRouteConfig: msRest.CompositeMapper = { + serializedName: "HttpRouteConfig", type: { name: "Composite", - className: "ContainerEvent", + className: "HttpRouteConfig", modelProperties: { name: { + required: true, serializedName: "name", type: { name: "String" } }, - count: { - serializedName: "count", - type: { - name: "Number" - } - }, - firstTimestamp: { - serializedName: "firstTimestamp", - type: { - name: "String" - } - }, - lastTimestamp: { - serializedName: "lastTimestamp", - type: { - name: "String" - } - }, - message: { - serializedName: "message", + match: { + required: true, + serializedName: "match", + defaultValue: {}, type: { - name: "String" + name: "Composite", + className: "HttpRouteMatchRule" } }, - type: { - serializedName: "type", + destination: { + required: true, + serializedName: "destination", type: { - name: "String" + name: "Composite", + className: "GatewayDestination" } } } } }; -export const ContainerInstanceView: msRest.CompositeMapper = { - serializedName: "ContainerInstanceView", +export const HttpHostConfig: msRest.CompositeMapper = { + serializedName: "HttpHostConfig", type: { name: "Composite", - className: "ContainerInstanceView", + className: "HttpHostConfig", modelProperties: { - restartCount: { - serializedName: "restartCount", - type: { - name: "Number" - } - }, - currentState: { - serializedName: "currentState", - type: { - name: "Composite", - className: "ContainerState" - } - }, - previousState: { - serializedName: "previousState", + name: { + required: true, + serializedName: "name", type: { - name: "Composite", - className: "ContainerState" + name: "String" } }, - events: { - serializedName: "events", + routes: { + required: true, + serializedName: "routes", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ContainerEvent" + className: "HttpRouteConfig" } } } @@ -15875,25 +15671,35 @@ export const ContainerInstanceView: msRest.CompositeMapper = { } }; -export const DiagnosticsRef: msRest.CompositeMapper = { - serializedName: "DiagnosticsRef", +export const HttpConfig: msRest.CompositeMapper = { + serializedName: "HttpConfig", type: { name: "Composite", - className: "DiagnosticsRef", + className: "HttpConfig", modelProperties: { - enabled: { - serializedName: "enabled", + name: { + required: true, + serializedName: "name", type: { - name: "Boolean" + name: "String" } }, - sinkRefs: { - serializedName: "sinkRefs", + port: { + required: true, + serializedName: "port", + type: { + name: "Number" + } + }, + hosts: { + required: true, + serializedName: "hosts", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "HttpHostConfig" } } } @@ -15902,11 +15708,11 @@ export const DiagnosticsRef: msRest.CompositeMapper = { } }; -export const ContainerCodePackageProperties: msRest.CompositeMapper = { - serializedName: "ContainerCodePackageProperties", +export const GatewayResourceDescription: msRest.CompositeMapper = { + serializedName: "GatewayResourceDescription", type: { name: "Composite", - className: "ContainerCodePackageProperties", + className: "GatewayResourceDescription", modelProperties: { name: { required: true, @@ -15915,135 +15721,1368 @@ export const ContainerCodePackageProperties: msRest.CompositeMapper = { name: "String" } }, - image: { - required: true, - serializedName: "image", + description: { + serializedName: "properties.description", type: { name: "String" } }, - imageRegistryCredential: { - serializedName: "imageRegistryCredential", + sourceNetwork: { + required: true, + serializedName: "properties.sourceNetwork", type: { name: "Composite", - className: "ImageRegistryCredential" + className: "NetworkRef" } }, - entrypoint: { - serializedName: "entrypoint", + destinationNetwork: { + required: true, + serializedName: "properties.destinationNetwork", type: { - name: "String" + name: "Composite", + className: "NetworkRef" } }, - commands: { - serializedName: "commands", + tcp: { + serializedName: "properties.tcp", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "TcpConfig" } } } }, - environmentVariables: { - serializedName: "environmentVariables", + http: { + serializedName: "properties.http", type: { name: "Sequence", element: { type: { name: "Composite", - className: "EnvironmentVariable" + className: "HttpConfig" } } } }, - settings: { - serializedName: "settings", - type: { - name: "Sequence", + status: { + readOnly: true, + serializedName: "properties.status", + type: { + name: "String" + } + }, + statusDetails: { + readOnly: true, + serializedName: "properties.statusDetails", + type: { + name: "String" + } + }, + ipAddress: { + readOnly: true, + serializedName: "properties.ipAddress", + type: { + name: "String" + } + } + } + } +}; + +export const PagedGatewayResourceDescriptionList: msRest.CompositeMapper = { + serializedName: "PagedGatewayResourceDescriptionList", + type: { + name: "Composite", + className: "PagedGatewayResourceDescriptionList", + modelProperties: { + continuationToken: { + serializedName: "ContinuationToken", + type: { + name: "String" + } + }, + items: { + serializedName: "Items", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GatewayResourceDescription" + } + } + } + } + } + } +}; + +export const ImageRegistryCredential: msRest.CompositeMapper = { + serializedName: "ImageRegistryCredential", + type: { + name: "Composite", + className: "ImageRegistryCredential", + modelProperties: { + server: { + required: true, + serializedName: "server", + type: { + name: "String" + } + }, + username: { + required: true, + serializedName: "username", + type: { + name: "String" + } + }, + password: { + serializedName: "password", + type: { + name: "String" + } + } + } + } +}; + +export const EnvironmentVariable: msRest.CompositeMapper = { + serializedName: "EnvironmentVariable", + type: { + name: "Composite", + className: "EnvironmentVariable", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + value: { + serializedName: "value", + type: { + name: "String" + } + } + } + } +}; + +export const Setting: msRest.CompositeMapper = { + serializedName: "Setting", + type: { + name: "Composite", + className: "Setting", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + value: { + serializedName: "value", + type: { + name: "String" + } + } + } + } +}; + +export const ContainerLabel: msRest.CompositeMapper = { + serializedName: "ContainerLabel", + type: { + name: "Composite", + className: "ContainerLabel", + modelProperties: { + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + }, + value: { + required: true, + serializedName: "value", + type: { + name: "String" + } + } + } + } +}; + +export const EndpointProperties: msRest.CompositeMapper = { + serializedName: "EndpointProperties", + type: { + name: "Composite", + className: "EndpointProperties", + modelProperties: { + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + }, + port: { + serializedName: "port", + type: { + name: "Number" + } + } + } + } +}; + +export const ResourceRequests: msRest.CompositeMapper = { + serializedName: "ResourceRequests", + type: { + name: "Composite", + className: "ResourceRequests", + modelProperties: { + memoryInGB: { + required: true, + serializedName: "memoryInGB", + type: { + name: "Number" + } + }, + cpu: { + required: true, + serializedName: "cpu", + type: { + name: "Number" + } + } + } + } +}; + +export const ResourceLimits: msRest.CompositeMapper = { + serializedName: "ResourceLimits", + type: { + name: "Composite", + className: "ResourceLimits", + modelProperties: { + memoryInGB: { + serializedName: "memoryInGB", + type: { + name: "Number" + } + }, + cpu: { + serializedName: "cpu", + type: { + name: "Number" + } + } + } + } +}; + +export const ResourceRequirements: msRest.CompositeMapper = { + serializedName: "ResourceRequirements", + type: { + name: "Composite", + className: "ResourceRequirements", + modelProperties: { + requests: { + required: true, + serializedName: "requests", + type: { + name: "Composite", + className: "ResourceRequests" + } + }, + limits: { + serializedName: "limits", + type: { + name: "Composite", + className: "ResourceLimits" + } + } + } + } +}; + +export const DiagnosticsRef: msRest.CompositeMapper = { + serializedName: "DiagnosticsRef", + type: { + name: "Composite", + className: "DiagnosticsRef", + modelProperties: { + enabled: { + serializedName: "enabled", + type: { + name: "Boolean" + } + }, + sinkRefs: { + serializedName: "sinkRefs", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const ReliableCollectionsRef: msRest.CompositeMapper = { + serializedName: "ReliableCollectionsRef", + type: { + name: "Composite", + className: "ReliableCollectionsRef", + modelProperties: { + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + }, + doNotPersistState: { + serializedName: "doNotPersistState", + type: { + name: "Boolean" + } + } + } + } +}; + +export const ContainerState: msRest.CompositeMapper = { + serializedName: "ContainerState", + type: { + name: "Composite", + className: "ContainerState", + modelProperties: { + state: { + serializedName: "state", + type: { + name: "String" + } + }, + startTime: { + serializedName: "startTime", + type: { + name: "DateTime" + } + }, + exitCode: { + serializedName: "exitCode", + type: { + name: "String" + } + }, + finishTime: { + serializedName: "finishTime", + type: { + name: "DateTime" + } + }, + detailStatus: { + serializedName: "detailStatus", + type: { + name: "String" + } + } + } + } +}; + +export const ContainerEvent: msRest.CompositeMapper = { + serializedName: "ContainerEvent", + type: { + name: "Composite", + className: "ContainerEvent", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + count: { + serializedName: "count", + type: { + name: "Number" + } + }, + firstTimestamp: { + serializedName: "firstTimestamp", + type: { + name: "String" + } + }, + lastTimestamp: { + serializedName: "lastTimestamp", + type: { + name: "String" + } + }, + message: { + serializedName: "message", + type: { + name: "String" + } + }, + type: { + serializedName: "type", + type: { + name: "String" + } + } + } + } +}; + +export const ContainerInstanceView: msRest.CompositeMapper = { + serializedName: "ContainerInstanceView", + type: { + name: "Composite", + className: "ContainerInstanceView", + modelProperties: { + restartCount: { + serializedName: "restartCount", + type: { + name: "Number" + } + }, + currentState: { + serializedName: "currentState", + type: { + name: "Composite", + className: "ContainerState" + } + }, + previousState: { + serializedName: "previousState", + type: { + name: "Composite", + className: "ContainerState" + } + }, + events: { + serializedName: "events", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ContainerEvent" + } + } + } + } + } + } +}; + +export const ContainerCodePackageProperties: msRest.CompositeMapper = { + serializedName: "ContainerCodePackageProperties", + type: { + name: "Composite", + className: "ContainerCodePackageProperties", + modelProperties: { + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + }, + image: { + required: true, + serializedName: "image", + type: { + name: "String" + } + }, + imageRegistryCredential: { + serializedName: "imageRegistryCredential", + type: { + name: "Composite", + className: "ImageRegistryCredential" + } + }, + entrypoint: { + serializedName: "entrypoint", + type: { + name: "String" + } + }, + commands: { + serializedName: "commands", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + environmentVariables: { + serializedName: "environmentVariables", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EnvironmentVariable" + } + } + } + }, + settings: { + serializedName: "settings", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Setting" + } + } + } + }, + labels: { + serializedName: "labels", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ContainerLabel" + } + } + } + }, + endpoints: { + serializedName: "endpoints", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EndpointProperties" + } + } + } + }, + resources: { + required: true, + serializedName: "resources", + type: { + name: "Composite", + className: "ResourceRequirements" + } + }, + volumeRefs: { + serializedName: "volumeRefs", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VolumeReference" + } + } + } + }, + volumes: { + serializedName: "volumes", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApplicationScopedVolume" + } + } + } + }, + diagnostics: { + serializedName: "diagnostics", + type: { + name: "Composite", + className: "DiagnosticsRef" + } + }, + reliableCollectionsRefs: { + serializedName: "reliableCollectionsRefs", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ReliableCollectionsRef" + } + } + } + }, + instanceView: { + readOnly: true, + serializedName: "instanceView", + type: { + name: "Composite", + className: "ContainerInstanceView" + } + } + } + } +}; + +export const AutoScalingTrigger: msRest.CompositeMapper = { + serializedName: "AutoScalingTrigger", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "kind", + clientName: "kind" + }, + uberParent: "AutoScalingTrigger", + className: "AutoScalingTrigger", + modelProperties: { + kind: { + required: true, + serializedName: "kind", + type: { + name: "String" + } + } + } + } +}; + +export const AutoScalingMechanism: msRest.CompositeMapper = { + serializedName: "AutoScalingMechanism", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "kind", + clientName: "kind" + }, + uberParent: "AutoScalingMechanism", + className: "AutoScalingMechanism", + modelProperties: { + kind: { + required: true, + serializedName: "kind", + type: { + name: "String" + } + } + } + } +}; + +export const AutoScalingPolicy: msRest.CompositeMapper = { + serializedName: "AutoScalingPolicy", + type: { + name: "Composite", + className: "AutoScalingPolicy", + modelProperties: { + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + }, + trigger: { + required: true, + serializedName: "trigger", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "kind", + clientName: "kind" + }, + uberParent: "AutoScalingTrigger", + className: "AutoScalingTrigger" + } + }, + mechanism: { + required: true, + serializedName: "mechanism", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "kind", + clientName: "kind" + }, + uberParent: "AutoScalingMechanism", + className: "AutoScalingMechanism" + } + } + } + } +}; + +export const ServiceResourceDescription: msRest.CompositeMapper = { + serializedName: "ServiceResourceDescription", + type: { + name: "Composite", + className: "ServiceResourceDescription", + modelProperties: { + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + }, + osType: { + required: true, + serializedName: "properties.osType", + type: { + name: "String" + } + }, + codePackages: { + required: true, + serializedName: "properties.codePackages", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ContainerCodePackageProperties" + } + } + } + }, + networkRefs: { + serializedName: "properties.networkRefs", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkRef" + } + } + } + }, + diagnostics: { + serializedName: "properties.diagnostics", + type: { + name: "Composite", + className: "DiagnosticsRef" + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + replicaCount: { + serializedName: "properties.replicaCount", + type: { + name: "Number" + } + }, + autoScalingPolicies: { + serializedName: "properties.autoScalingPolicies", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AutoScalingPolicy" + } + } + } + }, + status: { + readOnly: true, + serializedName: "properties.status", + type: { + name: "String" + } + }, + statusDetails: { + readOnly: true, + serializedName: "properties.statusDetails", + type: { + name: "String" + } + }, + healthState: { + readOnly: true, + serializedName: "properties.healthState", + type: { + name: "String" + } + }, + unhealthyEvaluation: { + readOnly: true, + serializedName: "properties.unhealthyEvaluation", + type: { + name: "String" + } + } + } + } +}; + +export const DiagnosticsSinkProperties: msRest.CompositeMapper = { + serializedName: "DiagnosticsSinkProperties", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "kind", + clientName: "kind" + }, + uberParent: "DiagnosticsSinkProperties", + className: "DiagnosticsSinkProperties", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + }, + kind: { + required: true, + serializedName: "kind", + type: { + name: "String" + } + } + } + } +}; + +export const DiagnosticsDescription: msRest.CompositeMapper = { + serializedName: "DiagnosticsDescription", + type: { + name: "Composite", + className: "DiagnosticsDescription", + modelProperties: { + sinks: { + serializedName: "sinks", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "kind", + clientName: "kind" + }, + uberParent: "DiagnosticsSinkProperties", + className: "DiagnosticsSinkProperties" + } + } + } + }, + enabled: { + serializedName: "enabled", + type: { + name: "Boolean" + } + }, + defaultSinkRefs: { + serializedName: "defaultSinkRefs", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const AzureInternalMonitoringPipelineSinkDescription: msRest.CompositeMapper = { + serializedName: "AzureInternalMonitoringPipeline", + type: { + name: "Composite", + polymorphicDiscriminator: DiagnosticsSinkProperties.type.polymorphicDiscriminator, + uberParent: "DiagnosticsSinkProperties", + className: "AzureInternalMonitoringPipelineSinkDescription", + modelProperties: { + ...DiagnosticsSinkProperties.type.modelProperties, + accountName: { + serializedName: "accountName", + type: { + name: "String" + } + }, + namespace: { + serializedName: "namespace", + type: { + name: "String" + } + }, + maConfigUrl: { + serializedName: "maConfigUrl", + type: { + name: "String" + } + }, + fluentdConfigUrl: { + serializedName: "fluentdConfigUrl", + type: { + name: "Object" + } + }, + autoKeyConfigUrl: { + serializedName: "autoKeyConfigUrl", + type: { + name: "String" + } + } + } + } +}; + +export const AddRemoveReplicaScalingMechanism: msRest.CompositeMapper = { + serializedName: "AddRemoveReplica", + type: { + name: "Composite", + polymorphicDiscriminator: AutoScalingMechanism.type.polymorphicDiscriminator, + uberParent: "AutoScalingMechanism", + className: "AddRemoveReplicaScalingMechanism", + modelProperties: { + ...AutoScalingMechanism.type.modelProperties, + minCount: { + required: true, + serializedName: "minCount", + type: { + name: "Number" + } + }, + maxCount: { + required: true, + serializedName: "maxCount", + type: { + name: "Number" + } + }, + scaleIncrement: { + required: true, + serializedName: "scaleIncrement", + type: { + name: "Number" + } + } + } + } +}; + +export const AutoScalingMetric: msRest.CompositeMapper = { + serializedName: "AutoScalingMetric", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "kind", + clientName: "kind" + }, + uberParent: "AutoScalingMetric", + className: "AutoScalingMetric", + modelProperties: { + kind: { + required: true, + serializedName: "kind", + type: { + name: "String" + } + } + } + } +}; + +export const AutoScalingResourceMetric: msRest.CompositeMapper = { + serializedName: "Resource", + type: { + name: "Composite", + polymorphicDiscriminator: AutoScalingMetric.type.polymorphicDiscriminator, + uberParent: "AutoScalingMetric", + className: "AutoScalingResourceMetric", + modelProperties: { + ...AutoScalingMetric.type.modelProperties, + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + } + } + } +}; + +export const ServiceProperties: msRest.CompositeMapper = { + serializedName: "ServiceProperties", + type: { + name: "Composite", + className: "ServiceProperties", + modelProperties: { + description: { + serializedName: "description", + type: { + name: "String" + } + }, + replicaCount: { + serializedName: "replicaCount", + type: { + name: "Number" + } + }, + autoScalingPolicies: { + serializedName: "autoScalingPolicies", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AutoScalingPolicy" + } + } + } + }, + status: { + readOnly: true, + serializedName: "status", + type: { + name: "String" + } + }, + statusDetails: { + readOnly: true, + serializedName: "statusDetails", + type: { + name: "String" + } + }, + healthState: { + readOnly: true, + serializedName: "healthState", + type: { + name: "String" + } + }, + unhealthyEvaluation: { + readOnly: true, + serializedName: "unhealthyEvaluation", + type: { + name: "String" + } + } + } + } +}; + +export const ServiceReplicaProperties: msRest.CompositeMapper = { + serializedName: "ServiceReplicaProperties", + type: { + name: "Composite", + className: "ServiceReplicaProperties", + modelProperties: { + osType: { + required: true, + serializedName: "osType", + type: { + name: "String" + } + }, + codePackages: { + required: true, + serializedName: "codePackages", + type: { + name: "Sequence", element: { type: { name: "Composite", - className: "Setting" + className: "ContainerCodePackageProperties" } } } }, - labels: { - serializedName: "labels", + networkRefs: { + serializedName: "networkRefs", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ContainerLabel" + className: "NetworkRef" } } } }, - endpoints: { - serializedName: "endpoints", + diagnostics: { + serializedName: "diagnostics", + type: { + name: "Composite", + className: "DiagnosticsRef" + } + } + } + } +}; + +export const ServiceReplicaDescription: msRest.CompositeMapper = { + serializedName: "ServiceReplicaDescription", + type: { + name: "Composite", + className: "ServiceReplicaDescription", + modelProperties: { + ...ServiceReplicaProperties.type.modelProperties, + replicaName: { + required: true, + serializedName: "replicaName", + type: { + name: "String" + } + } + } + } +}; + +export const AverageLoadScalingTrigger: msRest.CompositeMapper = { + serializedName: "AverageLoad", + type: { + name: "Composite", + polymorphicDiscriminator: AutoScalingTrigger.type.polymorphicDiscriminator, + uberParent: "AutoScalingTrigger", + className: "AverageLoadScalingTrigger", + modelProperties: { + ...AutoScalingTrigger.type.modelProperties, + metric: { + required: true, + serializedName: "metric", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "kind", + clientName: "kind" + }, + uberParent: "AutoScalingMetric", + className: "AutoScalingMetric" + } + }, + lowerLoadThreshold: { + required: true, + serializedName: "lowerLoadThreshold", + type: { + name: "Number" + } + }, + upperLoadThreshold: { + required: true, + serializedName: "upperLoadThreshold", + type: { + name: "Number" + } + }, + scaleIntervalInSeconds: { + required: true, + serializedName: "scaleIntervalInSeconds", + constraints: { + InclusiveMinimum: 60 + }, + type: { + name: "Number" + } + } + } + } +}; + +export const PagedServiceResourceDescriptionList: msRest.CompositeMapper = { + serializedName: "PagedServiceResourceDescriptionList", + type: { + name: "Composite", + className: "PagedServiceResourceDescriptionList", + modelProperties: { + continuationToken: { + serializedName: "ContinuationToken", + type: { + name: "String" + } + }, + items: { + serializedName: "Items", type: { name: "Sequence", element: { type: { name: "Composite", - className: "EndpointProperties" + className: "ServiceResourceDescription" } } } + } + } + } +}; + +export const PagedServiceReplicaDescriptionList: msRest.CompositeMapper = { + serializedName: "PagedServiceReplicaDescriptionList", + type: { + name: "Composite", + className: "PagedServiceReplicaDescriptionList", + modelProperties: { + continuationToken: { + serializedName: "ContinuationToken", + type: { + name: "String" + } }, - resources: { + items: { + serializedName: "Items", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServiceReplicaDescription" + } + } + } + } + } + } +}; + +export const ApplicationResourceDescription: msRest.CompositeMapper = { + serializedName: "ApplicationResourceDescription", + type: { + name: "Composite", + className: "ApplicationResourceDescription", + modelProperties: { + name: { required: true, - serializedName: "resources", + serializedName: "name", type: { - name: "Composite", - className: "ResourceRequirements" + name: "String" } }, - volumeRefs: { - serializedName: "volumeRefs", + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + services: { + serializedName: "properties.services", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ContainerVolume" + className: "ServiceResourceDescription" } } } }, - instanceView: { - readOnly: true, - serializedName: "instanceView", + diagnostics: { + serializedName: "properties.diagnostics", type: { name: "Composite", - className: "ContainerInstanceView" + className: "DiagnosticsDescription" } }, - diagnostics: { - serializedName: "diagnostics", + debugParams: { + serializedName: "properties.debugParams", type: { - name: "Composite", - className: "DiagnosticsRef" + name: "String" + } + }, + serviceNames: { + readOnly: true, + serializedName: "properties.serviceNames", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + status: { + readOnly: true, + serializedName: "properties.status", + type: { + name: "String" + } + }, + statusDetails: { + readOnly: true, + serializedName: "properties.statusDetails", + type: { + name: "String" + } + }, + healthState: { + readOnly: true, + serializedName: "properties.healthState", + type: { + name: "String" + } + }, + unhealthyEvaluation: { + readOnly: true, + serializedName: "properties.unhealthyEvaluation", + type: { + name: "String" } } } } }; -export const NetworkRef: msRest.CompositeMapper = { - serializedName: "NetworkRef", +export const PagedApplicationResourceDescriptionList: msRest.CompositeMapper = { + serializedName: "PagedApplicationResourceDescriptionList", type: { name: "Composite", - className: "NetworkRef", + className: "PagedApplicationResourceDescriptionList", modelProperties: { - name: { - serializedName: "name", + continuationToken: { + serializedName: "ContinuationToken", type: { name: "String" } + }, + items: { + serializedName: "Items", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApplicationResourceDescription" + } + } + } } } } @@ -16170,6 +17209,8 @@ export const discriminators = { 'PropertyBatchInfo.Failed' : FailedPropertyBatchInfo, 'BackupScheduleDescription' : BackupScheduleDescription, 'BackupStorageDescription' : BackupStorageDescription, + 'RetentionPolicyDescription' : RetentionPolicyDescription, + 'RetentionPolicyDescription.Basic' : BasicRetentionPolicyDescription, 'BackupConfigurationInfo.Application' : ApplicationBackupConfigurationInfo, 'BackupConfigurationInfo.Service' : ServiceBackupConfigurationInfo, 'BackupConfigurationInfo' : BackupConfigurationInfo, @@ -16192,63 +17233,72 @@ export const discriminators = { 'ScalingMechanismDescription.AddRemoveIncrementalNamedPartition' : AddRemoveIncrementalNamedPartitionScalingMechanism, 'FabricEvent.ApplicationCreated' : ApplicationCreatedEvent, 'FabricEvent.ApplicationDeleted' : ApplicationDeletedEvent, - 'FabricEvent.ApplicationHealthReportCreated' : ApplicationHealthReportCreatedEvent, + 'FabricEvent.ApplicationNewHealthReport' : ApplicationNewHealthReportEvent, 'FabricEvent.ApplicationHealthReportExpired' : ApplicationHealthReportExpiredEvent, - 'FabricEvent.ApplicationUpgradeComplete' : ApplicationUpgradeCompleteEvent, - 'FabricEvent.ApplicationUpgradeDomainComplete' : ApplicationUpgradeDomainCompleteEvent, - 'FabricEvent.ApplicationUpgradeRollbackComplete' : ApplicationUpgradeRollbackCompleteEvent, - 'FabricEvent.ApplicationUpgradeRollbackStart' : ApplicationUpgradeRollbackStartEvent, - 'FabricEvent.ApplicationUpgradeStart' : ApplicationUpgradeStartEvent, - 'FabricEvent.DeployedApplicationHealthReportCreated' : DeployedApplicationHealthReportCreatedEvent, + 'FabricEvent.ApplicationUpgradeCompleted' : ApplicationUpgradeCompletedEvent, + 'FabricEvent.ApplicationUpgradeDomainCompleted' : ApplicationUpgradeDomainCompletedEvent, + 'FabricEvent.ApplicationUpgradeRollbackCompleted' : ApplicationUpgradeRollbackCompletedEvent, + 'FabricEvent.ApplicationUpgradeRollbackStarted' : ApplicationUpgradeRollbackStartedEvent, + 'FabricEvent.ApplicationUpgradeStarted' : ApplicationUpgradeStartedEvent, + 'FabricEvent.DeployedApplicationNewHealthReport' : DeployedApplicationNewHealthReportEvent, 'FabricEvent.DeployedApplicationHealthReportExpired' : DeployedApplicationHealthReportExpiredEvent, - 'FabricEvent.ProcessDeactivated' : ProcessDeactivatedEvent, - 'FabricEvent.ContainerDeactivated' : ContainerDeactivatedEvent, + 'FabricEvent.ApplicationProcessExited' : ApplicationProcessExitedEvent, + 'FabricEvent.ApplicationContainerInstanceExited' : ApplicationContainerInstanceExitedEvent, 'FabricEvent.NodeAborted' : NodeAbortedEvent, - 'FabricEvent.NodeAborting' : NodeAbortingEvent, - 'FabricEvent.NodeAdded' : NodeAddedEvent, - 'FabricEvent.NodeClose' : NodeCloseEvent, - 'FabricEvent.NodeClosing' : NodeClosingEvent, - 'FabricEvent.NodeDeactivateComplete' : NodeDeactivateCompleteEvent, - 'FabricEvent.NodeDeactivateStart' : NodeDeactivateStartEvent, + 'FabricEvent.NodeAddedToCluster' : NodeAddedToClusterEvent, + 'FabricEvent.NodeClosed' : NodeClosedEvent, + 'FabricEvent.NodeDeactivateCompleted' : NodeDeactivateCompletedEvent, + 'FabricEvent.NodeDeactivateStarted' : NodeDeactivateStartedEvent, 'FabricEvent.NodeDown' : NodeDownEvent, - 'FabricEvent.NodeHealthReportCreated' : NodeHealthReportCreatedEvent, + 'FabricEvent.NodeNewHealthReport' : NodeNewHealthReportEvent, 'FabricEvent.NodeHealthReportExpired' : NodeHealthReportExpiredEvent, - 'FabricEvent.NodeOpenedSuccess' : NodeOpenedSuccessEvent, + 'FabricEvent.NodeOpenSucceeded' : NodeOpenSucceededEvent, 'FabricEvent.NodeOpenFailed' : NodeOpenFailedEvent, - 'FabricEvent.NodeOpening' : NodeOpeningEvent, - 'FabricEvent.NodeRemoved' : NodeRemovedEvent, + 'FabricEvent.NodeRemovedFromCluster' : NodeRemovedFromClusterEvent, 'FabricEvent.NodeUp' : NodeUpEvent, - 'FabricEvent.PartitionHealthReportCreated' : PartitionHealthReportCreatedEvent, + 'FabricEvent.PartitionNewHealthReport' : PartitionNewHealthReportEvent, 'FabricEvent.PartitionHealthReportExpired' : PartitionHealthReportExpiredEvent, - 'FabricEvent.PartitionReconfigurationCompleted' : PartitionReconfigurationCompletedEvent, + 'FabricEvent.PartitionReconfigured' : PartitionReconfiguredEvent, 'FabricEvent.PartitionPrimaryMoveAnalysis' : PartitionPrimaryMoveAnalysisEvent, 'FabricEvent.ServiceCreated' : ServiceCreatedEvent, 'FabricEvent.ServiceDeleted' : ServiceDeletedEvent, - 'FabricEvent.ServiceHealthReportCreated' : ServiceHealthReportCreatedEvent, + 'FabricEvent.ServiceNewHealthReport' : ServiceNewHealthReportEvent, 'FabricEvent.ServiceHealthReportExpired' : ServiceHealthReportExpiredEvent, - 'FabricEvent.DeployedServiceHealthReportCreated' : DeployedServiceHealthReportCreatedEvent, - 'FabricEvent.DeployedServiceHealthReportExpired' : DeployedServiceHealthReportExpiredEvent, - 'FabricEvent.StatefulReplicaHealthReportCreated' : StatefulReplicaHealthReportCreatedEvent, + 'FabricEvent.DeployedServicePackageNewHealthReport' : DeployedServicePackageNewHealthReportEvent, + 'FabricEvent.DeployedServicePackageHealthReportExpired' : DeployedServicePackageHealthReportExpiredEvent, + 'FabricEvent.StatefulReplicaNewHealthReport' : StatefulReplicaNewHealthReportEvent, 'FabricEvent.StatefulReplicaHealthReportExpired' : StatefulReplicaHealthReportExpiredEvent, - 'FabricEvent.StatelessReplicaHealthReportCreated' : StatelessReplicaHealthReportCreatedEvent, + 'FabricEvent.StatelessReplicaNewHealthReport' : StatelessReplicaNewHealthReportEvent, 'FabricEvent.StatelessReplicaHealthReportExpired' : StatelessReplicaHealthReportExpiredEvent, - 'FabricEvent.ClusterHealthReportCreated' : ClusterHealthReportCreatedEvent, + 'FabricEvent.ClusterNewHealthReport' : ClusterNewHealthReportEvent, 'FabricEvent.ClusterHealthReportExpired' : ClusterHealthReportExpiredEvent, - 'FabricEvent.ClusterUpgradeComplete' : ClusterUpgradeCompleteEvent, - 'FabricEvent.ClusterUpgradeDomainComplete' : ClusterUpgradeDomainCompleteEvent, - 'FabricEvent.ClusterUpgradeRollbackComplete' : ClusterUpgradeRollbackCompleteEvent, - 'FabricEvent.ClusterUpgradeRollbackStart' : ClusterUpgradeRollbackStartEvent, - 'FabricEvent.ClusterUpgradeStart' : ClusterUpgradeStartEvent, + 'FabricEvent.ClusterUpgradeCompleted' : ClusterUpgradeCompletedEvent, + 'FabricEvent.ClusterUpgradeDomainCompleted' : ClusterUpgradeDomainCompletedEvent, + 'FabricEvent.ClusterUpgradeRollbackCompleted' : ClusterUpgradeRollbackCompletedEvent, + 'FabricEvent.ClusterUpgradeRollbackStarted' : ClusterUpgradeRollbackStartedEvent, + 'FabricEvent.ClusterUpgradeStarted' : ClusterUpgradeStartedEvent, 'FabricEvent.ChaosStopped' : ChaosStoppedEvent, 'FabricEvent.ChaosStarted' : ChaosStartedEvent, - 'FabricEvent.ChaosRestartNodeFaultCompleted' : ChaosRestartNodeFaultCompletedEvent, - 'FabricEvent.ChaosRestartCodePackageFaultScheduled' : ChaosRestartCodePackageFaultScheduledEvent, - 'FabricEvent.ChaosRestartCodePackageFaultCompleted' : ChaosRestartCodePackageFaultCompletedEvent, - 'FabricEvent.ChaosRemoveReplicaFaultScheduled' : ChaosRemoveReplicaFaultScheduledEvent, - 'FabricEvent.ChaosRemoveReplicaFaultCompleted' : ChaosRemoveReplicaFaultCompletedEvent, - 'FabricEvent.ChaosMoveSecondaryFaultScheduled' : ChaosMoveSecondaryFaultScheduledEvent, - 'FabricEvent.ChaosMovePrimaryFaultScheduled' : ChaosMovePrimaryFaultScheduledEvent, - 'FabricEvent.ChaosRestartReplicaFaultScheduled' : ChaosRestartReplicaFaultScheduledEvent, - 'FabricEvent.ChaosRestartNodeFaultScheduled' : ChaosRestartNodeFaultScheduledEvent, - 'DiagnosticsSinkProperties' : DiagnosticsSinkProperties + 'FabricEvent.ChaosCodePackageRestartScheduled' : ChaosCodePackageRestartScheduledEvent, + 'FabricEvent.ChaosReplicaRemovalScheduled' : ChaosReplicaRemovalScheduledEvent, + 'FabricEvent.ChaosPartitionSecondaryMoveScheduled' : ChaosPartitionSecondaryMoveScheduledEvent, + 'FabricEvent.ChaosPartitionPrimaryMoveScheduled' : ChaosPartitionPrimaryMoveScheduledEvent, + 'FabricEvent.ChaosReplicaRestartScheduled' : ChaosReplicaRestartScheduledEvent, + 'FabricEvent.ChaosNodeRestartScheduled' : ChaosNodeRestartScheduledEvent, + 'SecretResourcePropertiesBase.SecretResourceProperties' : SecretResourceProperties, + 'SecretResourcePropertiesBase.inlinedValue' : InlinedValueSecretResourceProperties, + 'SecretResourcePropertiesBase' : SecretResourcePropertiesBase, + 'ApplicationScopedVolumeCreationParameters' : ApplicationScopedVolumeCreationParameters, + 'ApplicationScopedVolumeCreationParameters.ServiceFabricVolumeDisk' : ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk, + 'NetworkResourcePropertiesBase.NetworkResourceProperties' : NetworkResourceProperties, + 'NetworkResourcePropertiesBase.Local' : LocalNetworkResourceProperties, + 'NetworkResourcePropertiesBase' : NetworkResourcePropertiesBase, + 'AutoScalingTrigger' : AutoScalingTrigger, + 'AutoScalingMechanism' : AutoScalingMechanism, + 'DiagnosticsSinkProperties' : DiagnosticsSinkProperties, + 'DiagnosticsSinkProperties.AzureInternalMonitoringPipeline' : AzureInternalMonitoringPipelineSinkDescription, + 'AutoScalingMechanism.AddRemoveReplica' : AddRemoveReplicaScalingMechanism, + 'AutoScalingMetric' : AutoScalingMetric, + 'AutoScalingMetric.Resource' : AutoScalingResourceMetric, + 'AutoScalingTrigger.AverageLoad' : AverageLoadScalingTrigger }; diff --git a/packages/@azure/servicefabric/lib/models/meshApplicationMappers.ts b/packages/@azure/servicefabric/lib/models/meshApplicationMappers.ts new file mode 100644 index 000000000000..aee10d2ede2b --- /dev/null +++ b/packages/@azure/servicefabric/lib/models/meshApplicationMappers.ts @@ -0,0 +1,49 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + discriminators, + ApplicationResourceDescription, + ServiceResourceDescription, + ContainerCodePackageProperties, + ImageRegistryCredential, + EnvironmentVariable, + Setting, + ContainerLabel, + EndpointProperties, + ResourceRequirements, + ResourceRequests, + ResourceLimits, + VolumeReference, + ApplicationScopedVolume, + ApplicationScopedVolumeCreationParameters, + DiagnosticsRef, + ReliableCollectionsRef, + ContainerInstanceView, + ContainerState, + ContainerEvent, + NetworkRef, + EndpointRef, + AutoScalingPolicy, + AutoScalingTrigger, + AutoScalingMechanism, + DiagnosticsDescription, + DiagnosticsSinkProperties, + FabricError, + FabricErrorError, + PagedApplicationResourceDescriptionList, + ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk, + AzureInternalMonitoringPipelineSinkDescription, + AddRemoveReplicaScalingMechanism, + AverageLoadScalingTrigger, + AutoScalingMetric, + AutoScalingResourceMetric +} from "../models/mappers"; + diff --git a/packages/@azure/servicefabric/lib/models/meshCodePackageMappers.ts b/packages/@azure/servicefabric/lib/models/meshCodePackageMappers.ts new file mode 100644 index 000000000000..a3a8ab9ee180 --- /dev/null +++ b/packages/@azure/servicefabric/lib/models/meshCodePackageMappers.ts @@ -0,0 +1,17 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + discriminators, + ContainerLogs, + FabricError, + FabricErrorError +} from "../models/mappers"; + diff --git a/packages/@azure/servicefabric/lib/models/meshGatewayMappers.ts b/packages/@azure/servicefabric/lib/models/meshGatewayMappers.ts new file mode 100644 index 000000000000..db31e24b08b5 --- /dev/null +++ b/packages/@azure/servicefabric/lib/models/meshGatewayMappers.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + discriminators, + GatewayResourceDescription, + NetworkRef, + EndpointRef, + TcpConfig, + GatewayDestination, + HttpConfig, + HttpHostConfig, + HttpRouteConfig, + HttpRouteMatchRule, + HttpRouteMatchPath, + HttpRouteMatchHeader, + FabricError, + FabricErrorError, + PagedGatewayResourceDescriptionList +} from "../models/mappers"; + diff --git a/packages/@azure/servicefabric/lib/models/meshNetworkMappers.ts b/packages/@azure/servicefabric/lib/models/meshNetworkMappers.ts new file mode 100644 index 000000000000..20488597cdcf --- /dev/null +++ b/packages/@azure/servicefabric/lib/models/meshNetworkMappers.ts @@ -0,0 +1,21 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + discriminators, + NetworkResourceDescription, + NetworkResourceProperties, + NetworkResourcePropertiesBase, + FabricError, + FabricErrorError, + PagedNetworkResourceDescriptionList, + LocalNetworkResourceProperties +} from "../models/mappers"; + diff --git a/packages/@azure/servicefabric/lib/models/meshSecretMappers.ts b/packages/@azure/servicefabric/lib/models/meshSecretMappers.ts new file mode 100644 index 000000000000..d919d3aeaafe --- /dev/null +++ b/packages/@azure/servicefabric/lib/models/meshSecretMappers.ts @@ -0,0 +1,21 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + discriminators, + SecretResourceDescription, + SecretResourceProperties, + SecretResourcePropertiesBase, + FabricError, + FabricErrorError, + PagedSecretResourceDescriptionList, + InlinedValueSecretResourceProperties +} from "../models/mappers"; + diff --git a/packages/@azure/servicefabric/lib/models/meshSecretValueMappers.ts b/packages/@azure/servicefabric/lib/models/meshSecretValueMappers.ts new file mode 100644 index 000000000000..a70e71deb594 --- /dev/null +++ b/packages/@azure/servicefabric/lib/models/meshSecretValueMappers.ts @@ -0,0 +1,19 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + discriminators, + SecretValueResourceDescription, + FabricError, + FabricErrorError, + PagedSecretValueResourceDescriptionList, + SecretValue +} from "../models/mappers"; + diff --git a/packages/@azure/servicefabric/lib/models/meshServiceMappers.ts b/packages/@azure/servicefabric/lib/models/meshServiceMappers.ts new file mode 100644 index 000000000000..d6fcfeeaab4c --- /dev/null +++ b/packages/@azure/servicefabric/lib/models/meshServiceMappers.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + discriminators, + ServiceResourceDescription, + ContainerCodePackageProperties, + ImageRegistryCredential, + EnvironmentVariable, + Setting, + ContainerLabel, + EndpointProperties, + ResourceRequirements, + ResourceRequests, + ResourceLimits, + VolumeReference, + ApplicationScopedVolume, + ApplicationScopedVolumeCreationParameters, + DiagnosticsRef, + ReliableCollectionsRef, + ContainerInstanceView, + ContainerState, + ContainerEvent, + NetworkRef, + EndpointRef, + AutoScalingPolicy, + AutoScalingTrigger, + AutoScalingMechanism, + FabricError, + FabricErrorError, + PagedServiceResourceDescriptionList, + ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk, + AddRemoveReplicaScalingMechanism, + AverageLoadScalingTrigger, + AutoScalingMetric, + AutoScalingResourceMetric +} from "../models/mappers"; + diff --git a/packages/@azure/servicefabric/lib/models/meshServiceReplicaMappers.ts b/packages/@azure/servicefabric/lib/models/meshServiceReplicaMappers.ts new file mode 100644 index 000000000000..664b5052393f --- /dev/null +++ b/packages/@azure/servicefabric/lib/models/meshServiceReplicaMappers.ts @@ -0,0 +1,39 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + discriminators, + ServiceReplicaDescription, + ServiceReplicaProperties, + ContainerCodePackageProperties, + ImageRegistryCredential, + EnvironmentVariable, + Setting, + ContainerLabel, + EndpointProperties, + ResourceRequirements, + ResourceRequests, + ResourceLimits, + VolumeReference, + ApplicationScopedVolume, + ApplicationScopedVolumeCreationParameters, + DiagnosticsRef, + ReliableCollectionsRef, + ContainerInstanceView, + ContainerState, + ContainerEvent, + NetworkRef, + EndpointRef, + FabricError, + FabricErrorError, + PagedServiceReplicaDescriptionList, + ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk +} from "../models/mappers"; + diff --git a/packages/@azure/servicefabric/lib/models/meshVolumeMappers.ts b/packages/@azure/servicefabric/lib/models/meshVolumeMappers.ts new file mode 100644 index 000000000000..681096cf2761 --- /dev/null +++ b/packages/@azure/servicefabric/lib/models/meshVolumeMappers.ts @@ -0,0 +1,19 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + discriminators, + VolumeResourceDescription, + VolumeProviderParametersAzureFile, + FabricError, + FabricErrorError, + PagedVolumeResourceDescriptionList +} from "../models/mappers"; + diff --git a/packages/@azure/servicefabric/lib/models/parameters.ts b/packages/@azure/servicefabric/lib/models/parameters.ts index 1aa1044909f5..2c524a0bfede 100644 --- a/packages/@azure/servicefabric/lib/models/parameters.ts +++ b/packages/@azure/servicefabric/lib/models/parameters.ts @@ -28,7 +28,7 @@ export const apiVersion1: msRest.OperationQueryParameter = { required: true, isConstant: true, serializedName: "api-version", - defaultValue: '6.3', + defaultValue: '6.4', type: { name: "String" } @@ -40,7 +40,7 @@ export const apiVersion2: msRest.OperationQueryParameter = { required: true, isConstant: true, serializedName: "api-version", - defaultValue: '6.2', + defaultValue: '6.3', type: { name: "String" } @@ -52,7 +52,7 @@ export const apiVersion3: msRest.OperationQueryParameter = { required: true, isConstant: true, serializedName: "api-version", - defaultValue: '6.1', + defaultValue: '6.2', type: { name: "String" } @@ -64,7 +64,7 @@ export const apiVersion4: msRest.OperationQueryParameter = { required: true, isConstant: true, serializedName: "api-version", - defaultValue: '6.0-preview', + defaultValue: '6.1', type: { name: "String" } @@ -76,7 +76,7 @@ export const apiVersion5: msRest.OperationQueryParameter = { required: true, isConstant: true, serializedName: "api-version", - defaultValue: '6.2-preview', + defaultValue: '6.0-preview', type: { name: "String" } @@ -88,7 +88,19 @@ export const apiVersion6: msRest.OperationQueryParameter = { required: true, isConstant: true, serializedName: "api-version", - defaultValue: '6.3-preview', + defaultValue: '6.4-preview', + type: { + name: "String" + } + } +}; +export const apiVersion7: msRest.OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + required: true, + isConstant: true, + serializedName: "api-version", + defaultValue: '6.2-preview', type: { name: "String" } @@ -254,6 +266,16 @@ export const codePackageName1: msRest.OperationQueryParameter = { } } }; +export const codePackageName2: msRest.OperationURLParameter = { + parameterPath: "codePackageName", + mapper: { + required: true, + serializedName: "codePackageName", + type: { + name: "String" + } + } +}; export const codeVersion: msRest.OperationQueryParameter = { parameterPath: [ "options", @@ -520,6 +542,17 @@ export const forceRemove: msRest.OperationQueryParameter = { } } }; +export const gatewayResourceName: msRest.OperationURLParameter = { + parameterPath: "gatewayResourceName", + mapper: { + required: true, + serializedName: "gatewayResourceName", + type: { + name: "String" + } + }, + skipEncoding: true +}; export const immediate: msRest.OperationQueryParameter = { parameterPath: [ "options", @@ -612,6 +645,17 @@ export const nameId: msRest.OperationURLParameter = { }, skipEncoding: true }; +export const networkResourceName: msRest.OperationURLParameter = { + parameterPath: "networkResourceName", + mapper: { + required: true, + serializedName: "networkResourceName", + type: { + name: "String" + } + }, + skipEncoding: true +}; export const nodeInstanceId: msRest.OperationQueryParameter = { parameterPath: "nodeInstanceId", mapper: { @@ -877,6 +921,28 @@ export const restoreTimeout: msRest.OperationQueryParameter = { } } }; +export const secretResourceName: msRest.OperationURLParameter = { + parameterPath: "secretResourceName", + mapper: { + required: true, + serializedName: "secretResourceName", + type: { + name: "String" + } + }, + skipEncoding: true +}; +export const secretValueResourceName: msRest.OperationURLParameter = { + parameterPath: "secretValueResourceName", + mapper: { + required: true, + serializedName: "secretValueResourceName", + type: { + name: "String" + } + }, + skipEncoding: true +}; export const serviceId0: msRest.OperationURLParameter = { parameterPath: "serviceId", mapper: { diff --git a/packages/@azure/servicefabric/lib/operations/index.ts b/packages/@azure/servicefabric/lib/operations/index.ts new file mode 100644 index 000000000000..68b308155de3 --- /dev/null +++ b/packages/@azure/servicefabric/lib/operations/index.ts @@ -0,0 +1,19 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export * from "./meshSecret"; +export * from "./meshSecretValue"; +export * from "./meshVolume"; +export * from "./meshNetwork"; +export * from "./meshApplication"; +export * from "./meshService"; +export * from "./meshCodePackage"; +export * from "./meshServiceReplica"; +export * from "./meshGateway"; diff --git a/packages/@azure/servicefabric/lib/operations/meshApplication.ts b/packages/@azure/servicefabric/lib/operations/meshApplication.ts new file mode 100644 index 000000000000..0ff402499bdf --- /dev/null +++ b/packages/@azure/servicefabric/lib/operations/meshApplication.ts @@ -0,0 +1,238 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/meshApplicationMappers"; +import * as Parameters from "../models/parameters"; +import { ServiceFabricClientContext } from "../serviceFabricClientContext"; + +/** Class representing a MeshApplication. */ +export class MeshApplication { + private readonly client: ServiceFabricClientContext; + + /** + * Create a MeshApplication. + * @param {ServiceFabricClientContext} client Reference to the service client. + */ + constructor(client: ServiceFabricClientContext) { + this.client = client; + } + + /** + * Creates a Application resource with the specified name, description and properties. If + * Application resource with the same name exists, then it is updated with the specified + * description and properties. + * @summary Creates or updates a Application resource. + * @param applicationResourceName The identity of the application. + * @param applicationResourceDescription Description for creating a Application resource. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(applicationResourceName: string, applicationResourceDescription: Models.ApplicationResourceDescription, options?: msRest.RequestOptionsBase): Promise; + /** + * @param applicationResourceName The identity of the application. + * @param applicationResourceDescription Description for creating a Application resource. + * @param callback The callback + */ + createOrUpdate(applicationResourceName: string, applicationResourceDescription: Models.ApplicationResourceDescription, callback: msRest.ServiceCallback): void; + /** + * @param applicationResourceName The identity of the application. + * @param applicationResourceDescription Description for creating a Application resource. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(applicationResourceName: string, applicationResourceDescription: Models.ApplicationResourceDescription, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(applicationResourceName: string, applicationResourceDescription: Models.ApplicationResourceDescription, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + applicationResourceName, + applicationResourceDescription, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Gets the information about the Application resource with the given name. The information include + * the description and other properties of the Application. + * @summary Gets the Application resource with the given name. + * @param applicationResourceName The identity of the application. + * @param [options] The optional parameters + * @returns Promise + */ + get(applicationResourceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param applicationResourceName The identity of the application. + * @param callback The callback + */ + get(applicationResourceName: string, callback: msRest.ServiceCallback): void; + /** + * @param applicationResourceName The identity of the application. + * @param options The optional parameters + * @param callback The callback + */ + get(applicationResourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(applicationResourceName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + applicationResourceName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Deletes the Application resource identified by the name. + * @summary Deletes the Application resource. + * @param applicationResourceName The identity of the application. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(applicationResourceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param applicationResourceName The identity of the application. + * @param callback The callback + */ + deleteMethod(applicationResourceName: string, callback: msRest.ServiceCallback): void; + /** + * @param applicationResourceName The identity of the application. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(applicationResourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(applicationResourceName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + applicationResourceName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Gets the information about all application resources in a given resource group. The information + * include the description and other properties of the Application. + * @summary Lists all the application resources. + * @param [options] The optional parameters + * @returns Promise + */ + list(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + list(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "Resources/Applications/{applicationResourceName}", + urlParameters: [ + Parameters.applicationResourceName + ], + queryParameters: [ + Parameters.apiVersion6 + ], + requestBody: { + parameterPath: "applicationResourceDescription", + mapper: { + ...Mappers.ApplicationResourceDescription, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ApplicationResourceDescription + }, + 201: { + bodyMapper: Mappers.ApplicationResourceDescription + }, + 202: {}, + default: { + bodyMapper: Mappers.FabricError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "Resources/Applications/{applicationResourceName}", + urlParameters: [ + Parameters.applicationResourceName + ], + queryParameters: [ + Parameters.apiVersion6 + ], + responses: { + 200: { + bodyMapper: Mappers.ApplicationResourceDescription + }, + default: { + bodyMapper: Mappers.FabricError + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "Resources/Applications/{applicationResourceName}", + urlParameters: [ + Parameters.applicationResourceName + ], + queryParameters: [ + Parameters.apiVersion6 + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.FabricError + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "Resources/Applications", + queryParameters: [ + Parameters.apiVersion6 + ], + responses: { + 200: { + bodyMapper: Mappers.PagedApplicationResourceDescriptionList + }, + default: { + bodyMapper: Mappers.FabricError + } + }, + serializer +}; diff --git a/packages/@azure/servicefabric/lib/operations/meshCodePackage.ts b/packages/@azure/servicefabric/lib/operations/meshCodePackage.ts new file mode 100644 index 000000000000..504a1f7eab3c --- /dev/null +++ b/packages/@azure/servicefabric/lib/operations/meshCodePackage.ts @@ -0,0 +1,95 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/meshCodePackageMappers"; +import * as Parameters from "../models/parameters"; +import { ServiceFabricClientContext } from "../serviceFabricClientContext"; + +/** Class representing a MeshCodePackage. */ +export class MeshCodePackage { + private readonly client: ServiceFabricClientContext; + + /** + * Create a MeshCodePackage. + * @param {ServiceFabricClientContext} client Reference to the service client. + */ + constructor(client: ServiceFabricClientContext) { + this.client = client; + } + + /** + * Gets the logs for the container of the specified code package of the service replica. + * @summary Gets the logs from the container. + * @param applicationResourceName The identity of the application. + * @param serviceResourceName The identity of the service. + * @param replicaName Service Fabric replica name. + * @param codePackageName The name of code package of the service. + * @param [options] The optional parameters + * @returns Promise + */ + getContainerLogs(applicationResourceName: string, serviceResourceName: string, replicaName: string, codePackageName: string, options?: Models.MeshCodePackageGetContainerLogsOptionalParams): Promise; + /** + * @param applicationResourceName The identity of the application. + * @param serviceResourceName The identity of the service. + * @param replicaName Service Fabric replica name. + * @param codePackageName The name of code package of the service. + * @param callback The callback + */ + getContainerLogs(applicationResourceName: string, serviceResourceName: string, replicaName: string, codePackageName: string, callback: msRest.ServiceCallback): void; + /** + * @param applicationResourceName The identity of the application. + * @param serviceResourceName The identity of the service. + * @param replicaName Service Fabric replica name. + * @param codePackageName The name of code package of the service. + * @param options The optional parameters + * @param callback The callback + */ + getContainerLogs(applicationResourceName: string, serviceResourceName: string, replicaName: string, codePackageName: string, options: Models.MeshCodePackageGetContainerLogsOptionalParams, callback: msRest.ServiceCallback): void; + getContainerLogs(applicationResourceName: string, serviceResourceName: string, replicaName: string, codePackageName: string, options?: Models.MeshCodePackageGetContainerLogsOptionalParams, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + applicationResourceName, + serviceResourceName, + replicaName, + codePackageName, + options + }, + getContainerLogsOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getContainerLogsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "Resources/Applications/{applicationResourceName}/Services/{serviceResourceName}/Replicas/{replicaName}/CodePackages/{codePackageName}/Logs", + urlParameters: [ + Parameters.applicationResourceName, + Parameters.serviceResourceName, + Parameters.replicaName, + Parameters.codePackageName2 + ], + queryParameters: [ + Parameters.apiVersion6, + Parameters.tail + ], + responses: { + 200: { + bodyMapper: Mappers.ContainerLogs + }, + default: { + bodyMapper: Mappers.FabricError + } + }, + serializer +}; diff --git a/packages/@azure/servicefabric/lib/operations/meshGateway.ts b/packages/@azure/servicefabric/lib/operations/meshGateway.ts new file mode 100644 index 000000000000..bc3004b01972 --- /dev/null +++ b/packages/@azure/servicefabric/lib/operations/meshGateway.ts @@ -0,0 +1,238 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/meshGatewayMappers"; +import * as Parameters from "../models/parameters"; +import { ServiceFabricClientContext } from "../serviceFabricClientContext"; + +/** Class representing a MeshGateway. */ +export class MeshGateway { + private readonly client: ServiceFabricClientContext; + + /** + * Create a MeshGateway. + * @param {ServiceFabricClientContext} client Reference to the service client. + */ + constructor(client: ServiceFabricClientContext) { + this.client = client; + } + + /** + * Creates a Gateway resource with the specified name, description and properties. If Gateway + * resource with the same name exists, then it is updated with the specified description and + * properties. Use Gateway resource to provide public connectivity to application services. + * @summary Creates or updates a Gateway resource. + * @param gatewayResourceName The identity of the gateway. + * @param gatewayResourceDescription Description for creating a Gateway resource. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(gatewayResourceName: string, gatewayResourceDescription: Models.GatewayResourceDescription, options?: msRest.RequestOptionsBase): Promise; + /** + * @param gatewayResourceName The identity of the gateway. + * @param gatewayResourceDescription Description for creating a Gateway resource. + * @param callback The callback + */ + createOrUpdate(gatewayResourceName: string, gatewayResourceDescription: Models.GatewayResourceDescription, callback: msRest.ServiceCallback): void; + /** + * @param gatewayResourceName The identity of the gateway. + * @param gatewayResourceDescription Description for creating a Gateway resource. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(gatewayResourceName: string, gatewayResourceDescription: Models.GatewayResourceDescription, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(gatewayResourceName: string, gatewayResourceDescription: Models.GatewayResourceDescription, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + gatewayResourceName, + gatewayResourceDescription, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Gets the information about the Gateway resource with the given name. The information include the + * description and other properties of the Gateway. + * @summary Gets the Gateway resource with the given name. + * @param gatewayResourceName The identity of the gateway. + * @param [options] The optional parameters + * @returns Promise + */ + get(gatewayResourceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param gatewayResourceName The identity of the gateway. + * @param callback The callback + */ + get(gatewayResourceName: string, callback: msRest.ServiceCallback): void; + /** + * @param gatewayResourceName The identity of the gateway. + * @param options The optional parameters + * @param callback The callback + */ + get(gatewayResourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(gatewayResourceName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + gatewayResourceName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Deletes the Gateway resource identified by the name. + * @summary Deletes the Gateway resource. + * @param gatewayResourceName The identity of the gateway. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(gatewayResourceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param gatewayResourceName The identity of the gateway. + * @param callback The callback + */ + deleteMethod(gatewayResourceName: string, callback: msRest.ServiceCallback): void; + /** + * @param gatewayResourceName The identity of the gateway. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(gatewayResourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(gatewayResourceName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + gatewayResourceName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Gets the information about all gateway resources in a given resource group. The information + * include the description and other properties of the Gateway. + * @summary Lists all the gateway resources. + * @param [options] The optional parameters + * @returns Promise + */ + list(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + list(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "Resources/Gateways/{gatewayResourceName}", + urlParameters: [ + Parameters.gatewayResourceName + ], + queryParameters: [ + Parameters.apiVersion6 + ], + requestBody: { + parameterPath: "gatewayResourceDescription", + mapper: { + ...Mappers.GatewayResourceDescription, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.GatewayResourceDescription + }, + 201: { + bodyMapper: Mappers.GatewayResourceDescription + }, + 202: {}, + default: { + bodyMapper: Mappers.FabricError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "Resources/Gateways/{gatewayResourceName}", + urlParameters: [ + Parameters.gatewayResourceName + ], + queryParameters: [ + Parameters.apiVersion6 + ], + responses: { + 200: { + bodyMapper: Mappers.GatewayResourceDescription + }, + default: { + bodyMapper: Mappers.FabricError + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "Resources/Gateways/{gatewayResourceName}", + urlParameters: [ + Parameters.gatewayResourceName + ], + queryParameters: [ + Parameters.apiVersion6 + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.FabricError + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "Resources/Gateways", + queryParameters: [ + Parameters.apiVersion6 + ], + responses: { + 200: { + bodyMapper: Mappers.PagedGatewayResourceDescriptionList + }, + default: { + bodyMapper: Mappers.FabricError + } + }, + serializer +}; diff --git a/packages/@azure/servicefabric/lib/operations/meshNetwork.ts b/packages/@azure/servicefabric/lib/operations/meshNetwork.ts new file mode 100644 index 000000000000..4ec5e0b5220a --- /dev/null +++ b/packages/@azure/servicefabric/lib/operations/meshNetwork.ts @@ -0,0 +1,238 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/meshNetworkMappers"; +import * as Parameters from "../models/parameters"; +import { ServiceFabricClientContext } from "../serviceFabricClientContext"; + +/** Class representing a MeshNetwork. */ +export class MeshNetwork { + private readonly client: ServiceFabricClientContext; + + /** + * Create a MeshNetwork. + * @param {ServiceFabricClientContext} client Reference to the service client. + */ + constructor(client: ServiceFabricClientContext) { + this.client = client; + } + + /** + * Creates a Network resource with the specified name, description and properties. If Network + * resource with the same name exists, then it is updated with the specified description and + * properties. Network resource provides connectivity between application services. + * @summary Creates or updates a Network resource. + * @param networkResourceName The identity of the network. + * @param networkResourceDescription Description for creating a Network resource. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(networkResourceName: string, networkResourceDescription: Models.NetworkResourceDescription, options?: msRest.RequestOptionsBase): Promise; + /** + * @param networkResourceName The identity of the network. + * @param networkResourceDescription Description for creating a Network resource. + * @param callback The callback + */ + createOrUpdate(networkResourceName: string, networkResourceDescription: Models.NetworkResourceDescription, callback: msRest.ServiceCallback): void; + /** + * @param networkResourceName The identity of the network. + * @param networkResourceDescription Description for creating a Network resource. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(networkResourceName: string, networkResourceDescription: Models.NetworkResourceDescription, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(networkResourceName: string, networkResourceDescription: Models.NetworkResourceDescription, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + networkResourceName, + networkResourceDescription, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Gets the information about the Network resource with the given name. The information include the + * description and other properties of the Network. + * @summary Gets the Network resource with the given name. + * @param networkResourceName The identity of the network. + * @param [options] The optional parameters + * @returns Promise + */ + get(networkResourceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param networkResourceName The identity of the network. + * @param callback The callback + */ + get(networkResourceName: string, callback: msRest.ServiceCallback): void; + /** + * @param networkResourceName The identity of the network. + * @param options The optional parameters + * @param callback The callback + */ + get(networkResourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(networkResourceName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + networkResourceName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Deletes the Network resource identified by the name. + * @summary Deletes the Network resource. + * @param networkResourceName The identity of the network. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(networkResourceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param networkResourceName The identity of the network. + * @param callback The callback + */ + deleteMethod(networkResourceName: string, callback: msRest.ServiceCallback): void; + /** + * @param networkResourceName The identity of the network. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(networkResourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(networkResourceName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + networkResourceName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Gets the information about all network resources in a given resource group. The information + * include the description and other properties of the Network. + * @summary Lists all the network resources. + * @param [options] The optional parameters + * @returns Promise + */ + list(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + list(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "Resources/Networks/{networkResourceName}", + urlParameters: [ + Parameters.networkResourceName + ], + queryParameters: [ + Parameters.apiVersion6 + ], + requestBody: { + parameterPath: "networkResourceDescription", + mapper: { + ...Mappers.NetworkResourceDescription, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.NetworkResourceDescription + }, + 201: { + bodyMapper: Mappers.NetworkResourceDescription + }, + 202: {}, + default: { + bodyMapper: Mappers.FabricError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "Resources/Networks/{networkResourceName}", + urlParameters: [ + Parameters.networkResourceName + ], + queryParameters: [ + Parameters.apiVersion6 + ], + responses: { + 200: { + bodyMapper: Mappers.NetworkResourceDescription + }, + default: { + bodyMapper: Mappers.FabricError + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "Resources/Networks/{networkResourceName}", + urlParameters: [ + Parameters.networkResourceName + ], + queryParameters: [ + Parameters.apiVersion6 + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.FabricError + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "Resources/Networks", + queryParameters: [ + Parameters.apiVersion6 + ], + responses: { + 200: { + bodyMapper: Mappers.PagedNetworkResourceDescriptionList + }, + default: { + bodyMapper: Mappers.FabricError + } + }, + serializer +}; diff --git a/packages/@azure/servicefabric/lib/operations/meshSecret.ts b/packages/@azure/servicefabric/lib/operations/meshSecret.ts new file mode 100644 index 000000000000..326b717b0208 --- /dev/null +++ b/packages/@azure/servicefabric/lib/operations/meshSecret.ts @@ -0,0 +1,238 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/meshSecretMappers"; +import * as Parameters from "../models/parameters"; +import { ServiceFabricClientContext } from "../serviceFabricClientContext"; + +/** Class representing a MeshSecret. */ +export class MeshSecret { + private readonly client: ServiceFabricClientContext; + + /** + * Create a MeshSecret. + * @param {ServiceFabricClientContext} client Reference to the service client. + */ + constructor(client: ServiceFabricClientContext) { + this.client = client; + } + + /** + * Creates a Secret resource with the specified name, description and properties. If Secret + * resource with the same name exists, then it is updated with the specified description and + * properties. Once created, the kind and contentType of a secret resource cannot be updated. + * @summary Creates or updates a Secret resource. + * @param secretResourceName The name of the secret resource. + * @param secretResourceDescription Description for creating a secret resource. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(secretResourceName: string, secretResourceDescription: Models.SecretResourceDescription, options?: msRest.RequestOptionsBase): Promise; + /** + * @param secretResourceName The name of the secret resource. + * @param secretResourceDescription Description for creating a secret resource. + * @param callback The callback + */ + createOrUpdate(secretResourceName: string, secretResourceDescription: Models.SecretResourceDescription, callback: msRest.ServiceCallback): void; + /** + * @param secretResourceName The name of the secret resource. + * @param secretResourceDescription Description for creating a secret resource. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(secretResourceName: string, secretResourceDescription: Models.SecretResourceDescription, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(secretResourceName: string, secretResourceDescription: Models.SecretResourceDescription, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + secretResourceName, + secretResourceDescription, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Gets the information about the Secret resource with the given name. The information include the + * description and other properties of the Secret. + * @summary Gets the Secret resource with the given name. + * @param secretResourceName The name of the secret resource. + * @param [options] The optional parameters + * @returns Promise + */ + get(secretResourceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param secretResourceName The name of the secret resource. + * @param callback The callback + */ + get(secretResourceName: string, callback: msRest.ServiceCallback): void; + /** + * @param secretResourceName The name of the secret resource. + * @param options The optional parameters + * @param callback The callback + */ + get(secretResourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(secretResourceName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + secretResourceName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Deletes the specified Secret resource and all of its named values. + * @summary Deletes the Secret resource. + * @param secretResourceName The name of the secret resource. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(secretResourceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param secretResourceName The name of the secret resource. + * @param callback The callback + */ + deleteMethod(secretResourceName: string, callback: msRest.ServiceCallback): void; + /** + * @param secretResourceName The name of the secret resource. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(secretResourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(secretResourceName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + secretResourceName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Gets the information about all secret resources in a given resource group. The information + * include the description and other properties of the Secret. + * @summary Lists all the secret resources. + * @param [options] The optional parameters + * @returns Promise + */ + list(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + list(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "Resources/Secrets/{secretResourceName}", + urlParameters: [ + Parameters.secretResourceName + ], + queryParameters: [ + Parameters.apiVersion6 + ], + requestBody: { + parameterPath: "secretResourceDescription", + mapper: { + ...Mappers.SecretResourceDescription, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.SecretResourceDescription + }, + 201: { + bodyMapper: Mappers.SecretResourceDescription + }, + 202: {}, + default: { + bodyMapper: Mappers.FabricError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "Resources/Secrets/{secretResourceName}", + urlParameters: [ + Parameters.secretResourceName + ], + queryParameters: [ + Parameters.apiVersion6 + ], + responses: { + 200: { + bodyMapper: Mappers.SecretResourceDescription + }, + default: { + bodyMapper: Mappers.FabricError + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "Resources/Secrets/{secretResourceName}", + urlParameters: [ + Parameters.secretResourceName + ], + queryParameters: [ + Parameters.apiVersion6 + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.FabricError + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "Resources/Secrets", + queryParameters: [ + Parameters.apiVersion6 + ], + responses: { + 200: { + bodyMapper: Mappers.PagedSecretResourceDescriptionList + }, + default: { + bodyMapper: Mappers.FabricError + } + }, + serializer +}; diff --git a/packages/@azure/servicefabric/lib/operations/meshSecretValue.ts b/packages/@azure/servicefabric/lib/operations/meshSecretValue.ts new file mode 100644 index 000000000000..79b19a18f982 --- /dev/null +++ b/packages/@azure/servicefabric/lib/operations/meshSecretValue.ts @@ -0,0 +1,327 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/meshSecretValueMappers"; +import * as Parameters from "../models/parameters"; +import { ServiceFabricClientContext } from "../serviceFabricClientContext"; + +/** Class representing a MeshSecretValue. */ +export class MeshSecretValue { + private readonly client: ServiceFabricClientContext; + + /** + * Create a MeshSecretValue. + * @param {ServiceFabricClientContext} client Reference to the service client. + */ + constructor(client: ServiceFabricClientContext) { + this.client = client; + } + + /** + * Creates a new value of the specified secret resource. The name of the value is typically the + * version identifier. Once created the value cannot be changed. + * @summary Adds the specified value as a new version of the specified secret resource. + * @param secretResourceName The name of the secret resource. + * @param secretValueResourceName The name of the secret resource value which is typically the + * version identifier for the value. + * @param secretValueResourceDescription Description for creating a value of a secret resource. + * @param [options] The optional parameters + * @returns Promise + */ + addValue(secretResourceName: string, secretValueResourceName: string, secretValueResourceDescription: Models.SecretValueResourceDescription, options?: msRest.RequestOptionsBase): Promise; + /** + * @param secretResourceName The name of the secret resource. + * @param secretValueResourceName The name of the secret resource value which is typically the + * version identifier for the value. + * @param secretValueResourceDescription Description for creating a value of a secret resource. + * @param callback The callback + */ + addValue(secretResourceName: string, secretValueResourceName: string, secretValueResourceDescription: Models.SecretValueResourceDescription, callback: msRest.ServiceCallback): void; + /** + * @param secretResourceName The name of the secret resource. + * @param secretValueResourceName The name of the secret resource value which is typically the + * version identifier for the value. + * @param secretValueResourceDescription Description for creating a value of a secret resource. + * @param options The optional parameters + * @param callback The callback + */ + addValue(secretResourceName: string, secretValueResourceName: string, secretValueResourceDescription: Models.SecretValueResourceDescription, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + addValue(secretResourceName: string, secretValueResourceName: string, secretValueResourceDescription: Models.SecretValueResourceDescription, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + secretResourceName, + secretValueResourceName, + secretValueResourceDescription, + options + }, + addValueOperationSpec, + callback) as Promise; + } + + /** + * Get the information about the specified named secret value resources. The information does not + * include the actual value of the secret. + * @summary Gets the specified secret value resource. + * @param secretResourceName The name of the secret resource. + * @param secretValueResourceName The name of the secret resource value which is typically the + * version identifier for the value. + * @param [options] The optional parameters + * @returns Promise + */ + get(secretResourceName: string, secretValueResourceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param secretResourceName The name of the secret resource. + * @param secretValueResourceName The name of the secret resource value which is typically the + * version identifier for the value. + * @param callback The callback + */ + get(secretResourceName: string, secretValueResourceName: string, callback: msRest.ServiceCallback): void; + /** + * @param secretResourceName The name of the secret resource. + * @param secretValueResourceName The name of the secret resource value which is typically the + * version identifier for the value. + * @param options The optional parameters + * @param callback The callback + */ + get(secretResourceName: string, secretValueResourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(secretResourceName: string, secretValueResourceName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + secretResourceName, + secretValueResourceName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Deletes the secret value resource identified by the name. The name of the resource is typically + * the version associated with that value. Deletion will fail if the specified value is in use. + * @summary Deletes the specified value of the named secret resource. + * @param secretResourceName The name of the secret resource. + * @param secretValueResourceName The name of the secret resource value which is typically the + * version identifier for the value. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(secretResourceName: string, secretValueResourceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param secretResourceName The name of the secret resource. + * @param secretValueResourceName The name of the secret resource value which is typically the + * version identifier for the value. + * @param callback The callback + */ + deleteMethod(secretResourceName: string, secretValueResourceName: string, callback: msRest.ServiceCallback): void; + /** + * @param secretResourceName The name of the secret resource. + * @param secretValueResourceName The name of the secret resource value which is typically the + * version identifier for the value. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(secretResourceName: string, secretValueResourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(secretResourceName: string, secretValueResourceName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + secretResourceName, + secretValueResourceName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Gets information about all secret value resources of the specified secret resource. The + * information includes the names of the secret value resources, but not the actual values. + * @summary List names of all values of the the specified secret resource. + * @param secretResourceName The name of the secret resource. + * @param [options] The optional parameters + * @returns Promise + */ + list(secretResourceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param secretResourceName The name of the secret resource. + * @param callback The callback + */ + list(secretResourceName: string, callback: msRest.ServiceCallback): void; + /** + * @param secretResourceName The name of the secret resource. + * @param options The optional parameters + * @param callback The callback + */ + list(secretResourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(secretResourceName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + secretResourceName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Lists the decrypted value of the specified named value of the secret resource. This is a + * privileged operation. + * @summary Lists the specified value of the secret resource. + * @param secretResourceName The name of the secret resource. + * @param secretValueResourceName The name of the secret resource value which is typically the + * version identifier for the value. + * @param [options] The optional parameters + * @returns Promise + */ + show(secretResourceName: string, secretValueResourceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param secretResourceName The name of the secret resource. + * @param secretValueResourceName The name of the secret resource value which is typically the + * version identifier for the value. + * @param callback The callback + */ + show(secretResourceName: string, secretValueResourceName: string, callback: msRest.ServiceCallback): void; + /** + * @param secretResourceName The name of the secret resource. + * @param secretValueResourceName The name of the secret resource value which is typically the + * version identifier for the value. + * @param options The optional parameters + * @param callback The callback + */ + show(secretResourceName: string, secretValueResourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + show(secretResourceName: string, secretValueResourceName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + secretResourceName, + secretValueResourceName, + options + }, + showOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const addValueOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "Resources/Secrets/{secretResourceName}/values/{secretValueResourceName}", + urlParameters: [ + Parameters.secretResourceName, + Parameters.secretValueResourceName + ], + queryParameters: [ + Parameters.apiVersion6 + ], + requestBody: { + parameterPath: "secretValueResourceDescription", + mapper: { + ...Mappers.SecretValueResourceDescription, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.SecretValueResourceDescription + }, + 201: { + bodyMapper: Mappers.SecretValueResourceDescription + }, + 202: {}, + default: { + bodyMapper: Mappers.FabricError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "Resources/Secrets/{secretResourceName}/values/{secretValueResourceName}", + urlParameters: [ + Parameters.secretResourceName, + Parameters.secretValueResourceName + ], + queryParameters: [ + Parameters.apiVersion6 + ], + responses: { + 200: { + bodyMapper: Mappers.SecretValueResourceDescription + }, + default: { + bodyMapper: Mappers.FabricError + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "Resources/Secrets/{secretResourceName}/values/{secretValueResourceName}", + urlParameters: [ + Parameters.secretResourceName, + Parameters.secretValueResourceName + ], + queryParameters: [ + Parameters.apiVersion6 + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.FabricError + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "Resources/Secrets/{secretResourceName}/values", + urlParameters: [ + Parameters.secretResourceName + ], + queryParameters: [ + Parameters.apiVersion6 + ], + responses: { + 200: { + bodyMapper: Mappers.PagedSecretValueResourceDescriptionList + }, + default: { + bodyMapper: Mappers.FabricError + } + }, + serializer +}; + +const showOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "Resources/Secrets/{secretResourceName}/values/{secretValueResourceName}/list_value", + urlParameters: [ + Parameters.secretResourceName, + Parameters.secretValueResourceName + ], + queryParameters: [ + Parameters.apiVersion6 + ], + responses: { + 200: { + bodyMapper: Mappers.SecretValue + }, + default: { + bodyMapper: Mappers.FabricError + } + }, + serializer +}; diff --git a/packages/@azure/servicefabric/lib/operations/meshService.ts b/packages/@azure/servicefabric/lib/operations/meshService.ts new file mode 100644 index 000000000000..f09233458496 --- /dev/null +++ b/packages/@azure/servicefabric/lib/operations/meshService.ts @@ -0,0 +1,135 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/meshServiceMappers"; +import * as Parameters from "../models/parameters"; +import { ServiceFabricClientContext } from "../serviceFabricClientContext"; + +/** Class representing a MeshService. */ +export class MeshService { + private readonly client: ServiceFabricClientContext; + + /** + * Create a MeshService. + * @param {ServiceFabricClientContext} client Reference to the service client. + */ + constructor(client: ServiceFabricClientContext) { + this.client = client; + } + + /** + * Gets the information about the Service resource with the given name. The information include the + * description and other properties of the Service. + * @summary Gets the Service resource with the given name. + * @param applicationResourceName The identity of the application. + * @param serviceResourceName The identity of the service. + * @param [options] The optional parameters + * @returns Promise + */ + get(applicationResourceName: string, serviceResourceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param applicationResourceName The identity of the application. + * @param serviceResourceName The identity of the service. + * @param callback The callback + */ + get(applicationResourceName: string, serviceResourceName: string, callback: msRest.ServiceCallback): void; + /** + * @param applicationResourceName The identity of the application. + * @param serviceResourceName The identity of the service. + * @param options The optional parameters + * @param callback The callback + */ + get(applicationResourceName: string, serviceResourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(applicationResourceName: string, serviceResourceName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + applicationResourceName, + serviceResourceName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Gets the information about all services of an application resource. The information include the + * description and other properties of the Service. + * @summary Lists all the service resources. + * @param applicationResourceName The identity of the application. + * @param [options] The optional parameters + * @returns Promise + */ + list(applicationResourceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param applicationResourceName The identity of the application. + * @param callback The callback + */ + list(applicationResourceName: string, callback: msRest.ServiceCallback): void; + /** + * @param applicationResourceName The identity of the application. + * @param options The optional parameters + * @param callback The callback + */ + list(applicationResourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(applicationResourceName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + applicationResourceName, + options + }, + listOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "Resources/Applications/{applicationResourceName}/Services/{serviceResourceName}", + urlParameters: [ + Parameters.applicationResourceName, + Parameters.serviceResourceName + ], + queryParameters: [ + Parameters.apiVersion6 + ], + responses: { + 200: { + bodyMapper: Mappers.ServiceResourceDescription + }, + default: { + bodyMapper: Mappers.FabricError + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "Resources/Applications/{applicationResourceName}/Services", + urlParameters: [ + Parameters.applicationResourceName + ], + queryParameters: [ + Parameters.apiVersion6 + ], + responses: { + 200: { + bodyMapper: Mappers.PagedServiceResourceDescriptionList + }, + default: { + bodyMapper: Mappers.FabricError + } + }, + serializer +}; diff --git a/packages/@azure/servicefabric/lib/operations/meshServiceReplica.ts b/packages/@azure/servicefabric/lib/operations/meshServiceReplica.ts new file mode 100644 index 000000000000..88717a5aa49b --- /dev/null +++ b/packages/@azure/servicefabric/lib/operations/meshServiceReplica.ts @@ -0,0 +1,145 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/meshServiceReplicaMappers"; +import * as Parameters from "../models/parameters"; +import { ServiceFabricClientContext } from "../serviceFabricClientContext"; + +/** Class representing a MeshServiceReplica. */ +export class MeshServiceReplica { + private readonly client: ServiceFabricClientContext; + + /** + * Create a MeshServiceReplica. + * @param {ServiceFabricClientContext} client Reference to the service client. + */ + constructor(client: ServiceFabricClientContext) { + this.client = client; + } + + /** + * Gets the information about the service replica with the given name. The information include the + * description and other properties of the service replica. + * @summary Gets the given replica of the service of an application. + * @param applicationResourceName The identity of the application. + * @param serviceResourceName The identity of the service. + * @param replicaName Service Fabric replica name. + * @param [options] The optional parameters + * @returns Promise + */ + get(applicationResourceName: string, serviceResourceName: string, replicaName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param applicationResourceName The identity of the application. + * @param serviceResourceName The identity of the service. + * @param replicaName Service Fabric replica name. + * @param callback The callback + */ + get(applicationResourceName: string, serviceResourceName: string, replicaName: string, callback: msRest.ServiceCallback): void; + /** + * @param applicationResourceName The identity of the application. + * @param serviceResourceName The identity of the service. + * @param replicaName Service Fabric replica name. + * @param options The optional parameters + * @param callback The callback + */ + get(applicationResourceName: string, serviceResourceName: string, replicaName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(applicationResourceName: string, serviceResourceName: string, replicaName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + applicationResourceName, + serviceResourceName, + replicaName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Gets the information about all replicas of a service. The information include the description + * and other properties of the service replica. + * @summary Lists all the replicas of a service. + * @param applicationResourceName The identity of the application. + * @param serviceResourceName The identity of the service. + * @param [options] The optional parameters + * @returns Promise + */ + list(applicationResourceName: string, serviceResourceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param applicationResourceName The identity of the application. + * @param serviceResourceName The identity of the service. + * @param callback The callback + */ + list(applicationResourceName: string, serviceResourceName: string, callback: msRest.ServiceCallback): void; + /** + * @param applicationResourceName The identity of the application. + * @param serviceResourceName The identity of the service. + * @param options The optional parameters + * @param callback The callback + */ + list(applicationResourceName: string, serviceResourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(applicationResourceName: string, serviceResourceName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + applicationResourceName, + serviceResourceName, + options + }, + listOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "Resources/Applications/{applicationResourceName}/Services/{serviceResourceName}/Replicas/{replicaName}", + urlParameters: [ + Parameters.applicationResourceName, + Parameters.serviceResourceName, + Parameters.replicaName + ], + queryParameters: [ + Parameters.apiVersion6 + ], + responses: { + 200: { + bodyMapper: Mappers.ServiceReplicaDescription + }, + default: { + bodyMapper: Mappers.FabricError + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "Resources/Applications/{applicationResourceName}/Services/{serviceResourceName}/Replicas", + urlParameters: [ + Parameters.applicationResourceName, + Parameters.serviceResourceName + ], + queryParameters: [ + Parameters.apiVersion6 + ], + responses: { + 200: { + bodyMapper: Mappers.PagedServiceReplicaDescriptionList + }, + default: { + bodyMapper: Mappers.FabricError + } + }, + serializer +}; diff --git a/packages/@azure/servicefabric/lib/operations/meshVolume.ts b/packages/@azure/servicefabric/lib/operations/meshVolume.ts new file mode 100644 index 000000000000..10ac080642c5 --- /dev/null +++ b/packages/@azure/servicefabric/lib/operations/meshVolume.ts @@ -0,0 +1,238 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/meshVolumeMappers"; +import * as Parameters from "../models/parameters"; +import { ServiceFabricClientContext } from "../serviceFabricClientContext"; + +/** Class representing a MeshVolume. */ +export class MeshVolume { + private readonly client: ServiceFabricClientContext; + + /** + * Create a MeshVolume. + * @param {ServiceFabricClientContext} client Reference to the service client. + */ + constructor(client: ServiceFabricClientContext) { + this.client = client; + } + + /** + * Creates a Volume resource with the specified name, description and properties. If Volume + * resource with the same name exists, then it is updated with the specified description and + * properties. + * @summary Creates or updates a Volume resource. + * @param volumeResourceName The identity of the volume. + * @param volumeResourceDescription Description for creating a Volume resource. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(volumeResourceName: string, volumeResourceDescription: Models.VolumeResourceDescription, options?: msRest.RequestOptionsBase): Promise; + /** + * @param volumeResourceName The identity of the volume. + * @param volumeResourceDescription Description for creating a Volume resource. + * @param callback The callback + */ + createOrUpdate(volumeResourceName: string, volumeResourceDescription: Models.VolumeResourceDescription, callback: msRest.ServiceCallback): void; + /** + * @param volumeResourceName The identity of the volume. + * @param volumeResourceDescription Description for creating a Volume resource. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(volumeResourceName: string, volumeResourceDescription: Models.VolumeResourceDescription, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(volumeResourceName: string, volumeResourceDescription: Models.VolumeResourceDescription, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + volumeResourceName, + volumeResourceDescription, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Gets the information about the Volume resource with the given name. The information include the + * description and other properties of the Volume. + * @summary Gets the Volume resource with the given name. + * @param volumeResourceName The identity of the volume. + * @param [options] The optional parameters + * @returns Promise + */ + get(volumeResourceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param volumeResourceName The identity of the volume. + * @param callback The callback + */ + get(volumeResourceName: string, callback: msRest.ServiceCallback): void; + /** + * @param volumeResourceName The identity of the volume. + * @param options The optional parameters + * @param callback The callback + */ + get(volumeResourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(volumeResourceName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + volumeResourceName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Deletes the Volume resource identified by the name. + * @summary Deletes the Volume resource. + * @param volumeResourceName The identity of the volume. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(volumeResourceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param volumeResourceName The identity of the volume. + * @param callback The callback + */ + deleteMethod(volumeResourceName: string, callback: msRest.ServiceCallback): void; + /** + * @param volumeResourceName The identity of the volume. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(volumeResourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(volumeResourceName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + volumeResourceName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Gets the information about all volume resources in a given resource group. The information + * include the description and other properties of the Volume. + * @summary Lists all the volume resources. + * @param [options] The optional parameters + * @returns Promise + */ + list(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + list(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "Resources/Volumes/{volumeResourceName}", + urlParameters: [ + Parameters.volumeResourceName + ], + queryParameters: [ + Parameters.apiVersion6 + ], + requestBody: { + parameterPath: "volumeResourceDescription", + mapper: { + ...Mappers.VolumeResourceDescription, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.VolumeResourceDescription + }, + 201: { + bodyMapper: Mappers.VolumeResourceDescription + }, + 202: {}, + default: { + bodyMapper: Mappers.FabricError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "Resources/Volumes/{volumeResourceName}", + urlParameters: [ + Parameters.volumeResourceName + ], + queryParameters: [ + Parameters.apiVersion6 + ], + responses: { + 200: { + bodyMapper: Mappers.VolumeResourceDescription + }, + default: { + bodyMapper: Mappers.FabricError + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "Resources/Volumes/{volumeResourceName}", + urlParameters: [ + Parameters.volumeResourceName + ], + queryParameters: [ + Parameters.apiVersion6 + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.FabricError + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "Resources/Volumes", + queryParameters: [ + Parameters.apiVersion6 + ], + responses: { + 200: { + bodyMapper: Mappers.PagedVolumeResourceDescriptionList + }, + default: { + bodyMapper: Mappers.FabricError + } + }, + serializer +}; diff --git a/packages/@azure/servicefabric/lib/serviceFabricClient.ts b/packages/@azure/servicefabric/lib/serviceFabricClient.ts index ba8fadd61dec..fe1a01b8904e 100644 --- a/packages/@azure/servicefabric/lib/serviceFabricClient.ts +++ b/packages/@azure/servicefabric/lib/serviceFabricClient.ts @@ -12,15 +12,36 @@ import * as msRest from "ms-rest-js"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as Parameters from "./models/parameters"; +import * as operations from "./operations"; import { ServiceFabricClientContext } from "./serviceFabricClientContext"; class ServiceFabricClient extends ServiceFabricClientContext { + // Operation groups + meshSecret: operations.MeshSecret; + meshSecretValue: operations.MeshSecretValue; + meshVolume: operations.MeshVolume; + meshNetwork: operations.MeshNetwork; + meshApplication: operations.MeshApplication; + meshService: operations.MeshService; + meshCodePackage: operations.MeshCodePackage; + meshServiceReplica: operations.MeshServiceReplica; + meshGateway: operations.MeshGateway; + /** * Initializes a new instance of the ServiceFabricClient class. * @param [options] The parameter options */ constructor(options?: Models.ServiceFabricClientOptions) { super(options); + this.meshSecret = new operations.MeshSecret(this); + this.meshSecretValue = new operations.MeshSecretValue(this); + this.meshVolume = new operations.MeshVolume(this); + this.meshNetwork = new operations.MeshNetwork(this); + this.meshApplication = new operations.MeshApplication(this); + this.meshService = new operations.MeshService(this); + this.meshCodePackage = new operations.MeshCodePackage(this); + this.meshServiceReplica = new operations.MeshServiceReplica(this); + this.meshGateway = new operations.MeshGateway(this); } /** @@ -471,8 +492,8 @@ class ServiceFabricClient extends ServiceFabricClientContext { } /** - * Rollback the code or configuration upgrade of a Service Fabric cluster. - * @summary Rollback the upgrade of a Service Fabric cluster. + * Roll back the code or configuration upgrade of a Service Fabric cluster. + * @summary Roll back the upgrade of a Service Fabric cluster. * @param [options] The optional parameters * @returns Promise */ @@ -644,6 +665,32 @@ class ServiceFabricClient extends ServiceFabricClientContext { callback) as Promise; } + /** + * If a cluster upgrade is happening, then this API will return the lowest (older) version of the + * current and target cluster runtime versions. + * @summary Get the current Service Fabric cluster version. + * @param [options] The optional parameters + * @returns Promise + */ + getClusterVersion(options?: Models.ServiceFabricClientGetClusterVersionOptionalParams): Promise; + /** + * @param callback The callback + */ + getClusterVersion(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + getClusterVersion(options: Models.ServiceFabricClientGetClusterVersionOptionalParams, callback: msRest.ServiceCallback): void; + getClusterVersion(options?: Models.ServiceFabricClientGetClusterVersionOptionalParams, callback?: msRest.ServiceCallback): Promise { + return this.sendOperationRequest( + { + options + }, + getClusterVersionOperationSpec, + callback) as Promise; + } + /** * The response includes the name, status, ID, health, uptime, and other details about the nodes. * @summary Gets the list of nodes in the Service Fabric cluster. @@ -4536,6 +4583,35 @@ class ServiceFabricClient extends ServiceFabricClientContext { callback); } + /** + * Rollback a service fabric compose deployment upgrade. + * @summary Starts rolling back a compose deployment upgrade in the Service Fabric cluster. + * @param deploymentName The identity of the deployment. + * @param [options] The optional parameters + * @returns Promise + */ + startRollbackComposeDeploymentUpgrade(deploymentName: string, options?: Models.ServiceFabricClientStartRollbackComposeDeploymentUpgradeOptionalParams): Promise; + /** + * @param deploymentName The identity of the deployment. + * @param callback The callback + */ + startRollbackComposeDeploymentUpgrade(deploymentName: string, callback: msRest.ServiceCallback): void; + /** + * @param deploymentName The identity of the deployment. + * @param options The optional parameters + * @param callback The callback + */ + startRollbackComposeDeploymentUpgrade(deploymentName: string, options: Models.ServiceFabricClientStartRollbackComposeDeploymentUpgradeOptionalParams, callback: msRest.ServiceCallback): void; + startRollbackComposeDeploymentUpgrade(deploymentName: string, options?: Models.ServiceFabricClientStartRollbackComposeDeploymentUpgradeOptionalParams, callback?: msRest.ServiceCallback): Promise { + return this.sendOperationRequest( + { + deploymentName, + options + }, + startRollbackComposeDeploymentUpgradeOperationSpec, + callback); + } + /** * Get the status of Chaos indicating whether or not Chaos is running, the Chaos parameters used * for running Chaos and the status of the Chaos Schedule. @@ -4785,7 +4861,7 @@ class ServiceFabricClient extends ServiceFabricClientContext { /** * Deletes existing image store content being found within the given image store relative path. - * This can be used to delete uploaded application packages once they are provisioned. + * This command can be used to delete uploaded application packages once they are provisioned. * @summary Deletes existing image store content. * @param contentPath Relative path to file or folder in the image store from its root. * @param [options] The optional parameters @@ -5616,7 +5692,7 @@ class ServiceFabricClient extends ServiceFabricClientContext { } /** - * Gets the a list of user-induced fault operations filtered by provided input. + * Gets the list of user-induced fault operations filtered by provided input. * @summary Gets a list of user-induced fault operations filtered by provided input. * @param typeFilter Used to filter on OperationType for user-induced operations. * @@ -5711,7 +5787,7 @@ class ServiceFabricClient extends ServiceFabricClientContext { * @summary Cancels a user-induced fault operation. * @param operationId A GUID that identifies a call of this API. This is passed into the * corresponding GetProgress API - * @param force Indicates whether to gracefully rollback and clean up internal system state + * @param force Indicates whether to gracefully roll back and clean up internal system state * modified by executing the user-induced operation. * @param [options] The optional parameters * @returns Promise @@ -5720,7 +5796,7 @@ class ServiceFabricClient extends ServiceFabricClientContext { /** * @param operationId A GUID that identifies a call of this API. This is passed into the * corresponding GetProgress API - * @param force Indicates whether to gracefully rollback and clean up internal system state + * @param force Indicates whether to gracefully roll back and clean up internal system state * modified by executing the user-induced operation. * @param callback The callback */ @@ -5728,7 +5804,7 @@ class ServiceFabricClient extends ServiceFabricClientContext { /** * @param operationId A GUID that identifies a call of this API. This is passed into the * corresponding GetProgress API - * @param force Indicates whether to gracefully rollback and clean up internal system state + * @param force Indicates whether to gracefully roll back and clean up internal system state * modified by executing the user-induced operation. * @param options The optional parameters * @param callback The callback @@ -7571,326 +7647,6 @@ class ServiceFabricClient extends ServiceFabricClientContext { getCorrelatedEventListOperationSpec, callback) as Promise; } - - /** - * Creates an application with the specified name and description. If an application with the same - * name already exists, then its description are updated to the one indicated in this request. - * @summary Creates or updates an application resource. - * @param applicationResourceName Service Fabric application resource name. - * @param applicationResourceDescription Description for creating an application resource. - * @param [options] The optional parameters - * @returns Promise - */ - createApplicationResource(applicationResourceName: string, applicationResourceDescription: Models.ApplicationResourceDescription, options?: msRest.RequestOptionsBase): Promise; - /** - * @param applicationResourceName Service Fabric application resource name. - * @param applicationResourceDescription Description for creating an application resource. - * @param callback The callback - */ - createApplicationResource(applicationResourceName: string, applicationResourceDescription: Models.ApplicationResourceDescription, callback: msRest.ServiceCallback): void; - /** - * @param applicationResourceName Service Fabric application resource name. - * @param applicationResourceDescription Description for creating an application resource. - * @param options The optional parameters - * @param callback The callback - */ - createApplicationResource(applicationResourceName: string, applicationResourceDescription: Models.ApplicationResourceDescription, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createApplicationResource(applicationResourceName: string, applicationResourceDescription: Models.ApplicationResourceDescription, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { - return this.sendOperationRequest( - { - applicationResourceName, - applicationResourceDescription, - options - }, - createApplicationResourceOperationSpec, - callback); - } - - /** - * Gets the application with the given name. This includes the information about the application's - * services and other runtime information. - * @summary Gets the application with the given name. - * @param applicationResourceName Service Fabric application resource name. - * @param [options] The optional parameters - * @returns Promise - */ - getApplicationResource(applicationResourceName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param applicationResourceName Service Fabric application resource name. - * @param callback The callback - */ - getApplicationResource(applicationResourceName: string, callback: msRest.ServiceCallback): void; - /** - * @param applicationResourceName Service Fabric application resource name. - * @param options The optional parameters - * @param callback The callback - */ - getApplicationResource(applicationResourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getApplicationResource(applicationResourceName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { - return this.sendOperationRequest( - { - applicationResourceName, - options - }, - getApplicationResourceOperationSpec, - callback) as Promise; - } - - /** - * Deletes the application identified by the name. - * @summary Deletes the specified application. - * @param applicationResourceName Service Fabric application resource name. - * @param [options] The optional parameters - * @returns Promise - */ - deleteApplicationResource(applicationResourceName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param applicationResourceName Service Fabric application resource name. - * @param callback The callback - */ - deleteApplicationResource(applicationResourceName: string, callback: msRest.ServiceCallback): void; - /** - * @param applicationResourceName Service Fabric application resource name. - * @param options The optional parameters - * @param callback The callback - */ - deleteApplicationResource(applicationResourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteApplicationResource(applicationResourceName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { - return this.sendOperationRequest( - { - applicationResourceName, - options - }, - deleteApplicationResourceOperationSpec, - callback); - } - - /** - * The operation returns the service descriptions of all the services in the application resource. - * @summary Gets all the services in the application resource. - * @param applicationResourceName Service Fabric application resource name. - * @param [options] The optional parameters - * @returns Promise - */ - getServices(applicationResourceName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param applicationResourceName Service Fabric application resource name. - * @param callback The callback - */ - getServices(applicationResourceName: string, callback: msRest.ServiceCallback): void; - /** - * @param applicationResourceName Service Fabric application resource name. - * @param options The optional parameters - * @param callback The callback - */ - getServices(applicationResourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getServices(applicationResourceName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { - return this.sendOperationRequest( - { - applicationResourceName, - options - }, - getServicesOperationSpec, - callback) as Promise; - } - - /** - * Gets the description of the service resource. - * @summary Gets the description of the specified service in an application resource. - * @param applicationResourceName Service Fabric application resource name. - * @param serviceResourceName Service Fabric service resource name. - * @param [options] The optional parameters - * @returns Promise - */ - getService(applicationResourceName: string, serviceResourceName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param applicationResourceName Service Fabric application resource name. - * @param serviceResourceName Service Fabric service resource name. - * @param callback The callback - */ - getService(applicationResourceName: string, serviceResourceName: string, callback: msRest.ServiceCallback): void; - /** - * @param applicationResourceName Service Fabric application resource name. - * @param serviceResourceName Service Fabric service resource name. - * @param options The optional parameters - * @param callback The callback - */ - getService(applicationResourceName: string, serviceResourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getService(applicationResourceName: string, serviceResourceName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { - return this.sendOperationRequest( - { - applicationResourceName, - serviceResourceName, - options - }, - getServiceOperationSpec, - callback) as Promise; - } - - /** - * Gets the information about all replicas of a given service of an application. The information - * includes the runtime properties of the replica instance. - * @summary Gets replicas of a given service in an application resource. - * @param applicationResourceName Service Fabric application resource name. - * @param serviceResourceName Service Fabric service resource name. - * @param [options] The optional parameters - * @returns Promise - */ - getReplicas(applicationResourceName: string, serviceResourceName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param applicationResourceName Service Fabric application resource name. - * @param serviceResourceName Service Fabric service resource name. - * @param callback The callback - */ - getReplicas(applicationResourceName: string, serviceResourceName: string, callback: msRest.ServiceCallback): void; - /** - * @param applicationResourceName Service Fabric application resource name. - * @param serviceResourceName Service Fabric service resource name. - * @param options The optional parameters - * @param callback The callback - */ - getReplicas(applicationResourceName: string, serviceResourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getReplicas(applicationResourceName: string, serviceResourceName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { - return this.sendOperationRequest( - { - applicationResourceName, - serviceResourceName, - options - }, - getReplicasOperationSpec, - callback) as Promise; - } - - /** - * Gets the information about the specified replica of a given service of an application. The - * information includes the runtime properties of the replica instance. - * @summary Gets a specific replica of a given service in an application resource. - * @param applicationResourceName Service Fabric application resource name. - * @param serviceResourceName Service Fabric service resource name. - * @param replicaName Service Fabric replica name. - * @param [options] The optional parameters - * @returns Promise - */ - getReplica(applicationResourceName: string, serviceResourceName: string, replicaName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param applicationResourceName Service Fabric application resource name. - * @param serviceResourceName Service Fabric service resource name. - * @param replicaName Service Fabric replica name. - * @param callback The callback - */ - getReplica(applicationResourceName: string, serviceResourceName: string, replicaName: string, callback: msRest.ServiceCallback): void; - /** - * @param applicationResourceName Service Fabric application resource name. - * @param serviceResourceName Service Fabric service resource name. - * @param replicaName Service Fabric replica name. - * @param options The optional parameters - * @param callback The callback - */ - getReplica(applicationResourceName: string, serviceResourceName: string, replicaName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getReplica(applicationResourceName: string, serviceResourceName: string, replicaName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { - return this.sendOperationRequest( - { - applicationResourceName, - serviceResourceName, - replicaName, - options - }, - getReplicaOperationSpec, - callback) as Promise; - } - - /** - * Creates a volume resource with the specified name and description. If a volume with the same - * name already exists, then its description is updated to the one indicated in this request. - * @summary Creates or updates a volume resource. - * @param volumeResourceName Service Fabric volume resource name. - * @param volumeResourceDescription Description for creating a volume resource. - * @param [options] The optional parameters - * @returns Promise - */ - createVolumeResource(volumeResourceName: string, volumeResourceDescription: Models.VolumeResourceDescription, options?: msRest.RequestOptionsBase): Promise; - /** - * @param volumeResourceName Service Fabric volume resource name. - * @param volumeResourceDescription Description for creating a volume resource. - * @param callback The callback - */ - createVolumeResource(volumeResourceName: string, volumeResourceDescription: Models.VolumeResourceDescription, callback: msRest.ServiceCallback): void; - /** - * @param volumeResourceName Service Fabric volume resource name. - * @param volumeResourceDescription Description for creating a volume resource. - * @param options The optional parameters - * @param callback The callback - */ - createVolumeResource(volumeResourceName: string, volumeResourceDescription: Models.VolumeResourceDescription, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createVolumeResource(volumeResourceName: string, volumeResourceDescription: Models.VolumeResourceDescription, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { - return this.sendOperationRequest( - { - volumeResourceName, - volumeResourceDescription, - options - }, - createVolumeResourceOperationSpec, - callback); - } - - /** - * Gets the information about the volume resource with a given name. This information includes the - * volume description and other runtime information. - * @summary Gets the volume resource. - * @param volumeResourceName Service Fabric volume resource name. - * @param [options] The optional parameters - * @returns Promise - */ - getVolumeResource(volumeResourceName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param volumeResourceName Service Fabric volume resource name. - * @param callback The callback - */ - getVolumeResource(volumeResourceName: string, callback: msRest.ServiceCallback): void; - /** - * @param volumeResourceName Service Fabric volume resource name. - * @param options The optional parameters - * @param callback The callback - */ - getVolumeResource(volumeResourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getVolumeResource(volumeResourceName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { - return this.sendOperationRequest( - { - volumeResourceName, - options - }, - getVolumeResourceOperationSpec, - callback) as Promise; - } - - /** - * Deletes the volume identified by the name. - * @summary Deletes the volume resource. - * @param volumeResourceName Service Fabric volume resource name. - * @param [options] The optional parameters - * @returns Promise - */ - deleteVolumeResource(volumeResourceName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param volumeResourceName Service Fabric volume resource name. - * @param callback The callback - */ - deleteVolumeResource(volumeResourceName: string, callback: msRest.ServiceCallback): void; - /** - * @param volumeResourceName Service Fabric volume resource name. - * @param options The optional parameters - * @param callback The callback - */ - deleteVolumeResource(volumeResourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteVolumeResource(volumeResourceName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { - return this.sendOperationRequest( - { - volumeResourceName, - options - }, - deleteVolumeResourceOperationSpec, - callback); - } } // Operation Specifications @@ -8363,11 +8119,29 @@ const getAadMetadataOperationSpec: msRest.OperationSpec = { serializer }; +const getClusterVersionOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "$/GetClusterVersion", + queryParameters: [ + Parameters.apiVersion1, + Parameters.timeout + ], + responses: { + 200: { + bodyMapper: Mappers.ClusterVersion + }, + default: { + bodyMapper: Mappers.FabricError + } + }, + serializer +}; + const getNodeInfoListOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "Nodes", queryParameters: [ - Parameters.apiVersion1, + Parameters.apiVersion2, Parameters.continuationToken, Parameters.nodeStatusFilter, Parameters.maxResults, @@ -8646,7 +8420,7 @@ const provisionApplicationTypeOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "ApplicationTypes/$/Provision", queryParameters: [ - Parameters.apiVersion2, + Parameters.apiVersion3, Parameters.timeout ], requestBody: { @@ -8912,7 +8686,7 @@ const getApplicationInfoListOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "Applications", queryParameters: [ - Parameters.apiVersion3, + Parameters.apiVersion4, Parameters.applicationDefinitionKindFilter, Parameters.applicationTypeName1, Parameters.excludeApplicationParameters, @@ -9163,7 +8937,7 @@ const getDeployedApplicationInfoListOperationSpec: msRest.OperationSpec = { Parameters.nodeName ], queryParameters: [ - Parameters.apiVersion3, + Parameters.apiVersion4, Parameters.timeout, Parameters.includeHealthState, Parameters.continuationToken, @@ -9188,7 +8962,7 @@ const getDeployedApplicationInfoOperationSpec: msRest.OperationSpec = { Parameters.applicationId ], queryParameters: [ - Parameters.apiVersion3, + Parameters.apiVersion4, Parameters.timeout, Parameters.includeHealthState ], @@ -9610,7 +9384,7 @@ const getPartitionInfoListOperationSpec: msRest.OperationSpec = { Parameters.serviceId0 ], queryParameters: [ - Parameters.apiVersion0, + Parameters.apiVersion1, Parameters.continuationToken, Parameters.timeout ], @@ -10537,7 +10311,7 @@ const getContainerLogsDeployedOnNodeOperationSpec: msRest.OperationSpec = { Parameters.applicationId ], queryParameters: [ - Parameters.apiVersion2, + Parameters.apiVersion3, Parameters.serviceManifestName0, Parameters.codePackageName1, Parameters.tail, @@ -10563,7 +10337,7 @@ const invokeContainerApiOperationSpec: msRest.OperationSpec = { Parameters.applicationId ], queryParameters: [ - Parameters.apiVersion2, + Parameters.apiVersion3, Parameters.serviceManifestName0, Parameters.codePackageName1, Parameters.codePackageInstanceId, @@ -10591,7 +10365,7 @@ const createComposeDeploymentOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "ComposeDeployments/$/Create", queryParameters: [ - Parameters.apiVersion4, + Parameters.apiVersion5, Parameters.timeout ], requestBody: { @@ -10617,7 +10391,7 @@ const getComposeDeploymentStatusOperationSpec: msRest.OperationSpec = { Parameters.deploymentName ], queryParameters: [ - Parameters.apiVersion4, + Parameters.apiVersion5, Parameters.timeout ], responses: { @@ -10635,7 +10409,7 @@ const getComposeDeploymentStatusListOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "ComposeDeployments", queryParameters: [ - Parameters.apiVersion4, + Parameters.apiVersion5, Parameters.continuationToken, Parameters.maxResults, Parameters.timeout @@ -10658,7 +10432,7 @@ const getComposeDeploymentUpgradeProgressOperationSpec: msRest.OperationSpec = { Parameters.deploymentName ], queryParameters: [ - Parameters.apiVersion4, + Parameters.apiVersion5, Parameters.timeout ], responses: { @@ -10679,7 +10453,7 @@ const removeComposeDeploymentOperationSpec: msRest.OperationSpec = { Parameters.deploymentName ], queryParameters: [ - Parameters.apiVersion4, + Parameters.apiVersion5, Parameters.timeout ], responses: { @@ -10698,7 +10472,7 @@ const startComposeDeploymentUpgradeOperationSpec: msRest.OperationSpec = { Parameters.deploymentName ], queryParameters: [ - Parameters.apiVersion4, + Parameters.apiVersion5, Parameters.timeout ], requestBody: { @@ -10717,12 +10491,31 @@ const startComposeDeploymentUpgradeOperationSpec: msRest.OperationSpec = { serializer }; -const getChaosOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "Tools/Chaos", - queryParameters: [ - Parameters.apiVersion2, - Parameters.timeout +const startRollbackComposeDeploymentUpgradeOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "ComposeDeployments/{deploymentName}/$/RollbackUpgrade", + urlParameters: [ + Parameters.deploymentName + ], + queryParameters: [ + Parameters.apiVersion6, + Parameters.timeout + ], + responses: { + 200: {}, + default: { + bodyMapper: Mappers.FabricError + } + }, + serializer +}; + +const getChaosOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "Tools/Chaos", + queryParameters: [ + Parameters.apiVersion3, + Parameters.timeout ], responses: { 200: { @@ -10778,7 +10571,7 @@ const getChaosEventsOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "Tools/Chaos/Events", queryParameters: [ - Parameters.apiVersion2, + Parameters.apiVersion3, Parameters.continuationToken, Parameters.startTimeUtc0, Parameters.endTimeUtc0, @@ -10800,7 +10593,7 @@ const getChaosScheduleOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "Tools/Chaos/Schedule", queryParameters: [ - Parameters.apiVersion2, + Parameters.apiVersion3, Parameters.timeout ], responses: { @@ -10818,7 +10611,7 @@ const postChaosScheduleOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "Tools/Chaos/Schedule", queryParameters: [ - Parameters.apiVersion2, + Parameters.apiVersion3, Parameters.timeout ], requestBody: { @@ -10863,7 +10656,7 @@ const getImageStoreContentOperationSpec: msRest.OperationSpec = { Parameters.contentPath ], queryParameters: [ - Parameters.apiVersion2, + Parameters.apiVersion3, Parameters.timeout ], responses: { @@ -11318,7 +11111,7 @@ const createBackupPolicyOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "BackupRestore/BackupPolicies/$/Create", queryParameters: [ - Parameters.apiVersion5, + Parameters.apiVersion1, Parameters.timeout ], requestBody: { @@ -11344,7 +11137,7 @@ const deleteBackupPolicyOperationSpec: msRest.OperationSpec = { Parameters.backupPolicyName ], queryParameters: [ - Parameters.apiVersion5, + Parameters.apiVersion1, Parameters.timeout ], responses: { @@ -11360,7 +11153,7 @@ const getBackupPolicyListOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "BackupRestore/BackupPolicies", queryParameters: [ - Parameters.apiVersion5, + Parameters.apiVersion1, Parameters.continuationToken, Parameters.maxResults, Parameters.timeout @@ -11383,7 +11176,7 @@ const getBackupPolicyByNameOperationSpec: msRest.OperationSpec = { Parameters.backupPolicyName ], queryParameters: [ - Parameters.apiVersion5, + Parameters.apiVersion1, Parameters.timeout ], responses: { @@ -11404,7 +11197,7 @@ const getAllEntitiesBackedUpByPolicyOperationSpec: msRest.OperationSpec = { Parameters.backupPolicyName ], queryParameters: [ - Parameters.apiVersion5, + Parameters.apiVersion1, Parameters.continuationToken, Parameters.maxResults, Parameters.timeout @@ -11427,7 +11220,7 @@ const updateBackupPolicyOperationSpec: msRest.OperationSpec = { Parameters.backupPolicyName ], queryParameters: [ - Parameters.apiVersion5, + Parameters.apiVersion1, Parameters.timeout ], requestBody: { @@ -11453,7 +11246,7 @@ const enableApplicationBackupOperationSpec: msRest.OperationSpec = { Parameters.applicationId ], queryParameters: [ - Parameters.apiVersion5, + Parameters.apiVersion1, Parameters.timeout ], requestBody: { @@ -11479,9 +11272,16 @@ const disableApplicationBackupOperationSpec: msRest.OperationSpec = { Parameters.applicationId ], queryParameters: [ - Parameters.apiVersion5, + Parameters.apiVersion1, Parameters.timeout ], + requestBody: { + parameterPath: [ + "options", + "disableBackupDescription" + ], + mapper: Mappers.DisableBackupDescription + }, responses: { 202: {}, default: { @@ -11498,7 +11298,7 @@ const getApplicationBackupConfigurationInfoOperationSpec: msRest.OperationSpec = Parameters.applicationId ], queryParameters: [ - Parameters.apiVersion5, + Parameters.apiVersion1, Parameters.continuationToken, Parameters.maxResults, Parameters.timeout @@ -11521,7 +11321,7 @@ const getApplicationBackupListOperationSpec: msRest.OperationSpec = { Parameters.applicationId ], queryParameters: [ - Parameters.apiVersion5, + Parameters.apiVersion1, Parameters.timeout, Parameters.latest, Parameters.startDateTimeFilter, @@ -11547,7 +11347,7 @@ const suspendApplicationBackupOperationSpec: msRest.OperationSpec = { Parameters.applicationId ], queryParameters: [ - Parameters.apiVersion5, + Parameters.apiVersion1, Parameters.timeout ], responses: { @@ -11566,7 +11366,7 @@ const resumeApplicationBackupOperationSpec: msRest.OperationSpec = { Parameters.applicationId ], queryParameters: [ - Parameters.apiVersion5, + Parameters.apiVersion1, Parameters.timeout ], responses: { @@ -11585,7 +11385,7 @@ const enableServiceBackupOperationSpec: msRest.OperationSpec = { Parameters.serviceId0 ], queryParameters: [ - Parameters.apiVersion5, + Parameters.apiVersion1, Parameters.timeout ], requestBody: { @@ -11611,9 +11411,16 @@ const disableServiceBackupOperationSpec: msRest.OperationSpec = { Parameters.serviceId0 ], queryParameters: [ - Parameters.apiVersion5, + Parameters.apiVersion1, Parameters.timeout ], + requestBody: { + parameterPath: [ + "options", + "disableBackupDescription" + ], + mapper: Mappers.DisableBackupDescription + }, responses: { 202: {}, default: { @@ -11630,7 +11437,7 @@ const getServiceBackupConfigurationInfoOperationSpec: msRest.OperationSpec = { Parameters.serviceId0 ], queryParameters: [ - Parameters.apiVersion5, + Parameters.apiVersion1, Parameters.continuationToken, Parameters.maxResults, Parameters.timeout @@ -11653,7 +11460,7 @@ const getServiceBackupListOperationSpec: msRest.OperationSpec = { Parameters.serviceId0 ], queryParameters: [ - Parameters.apiVersion5, + Parameters.apiVersion1, Parameters.timeout, Parameters.latest, Parameters.startDateTimeFilter, @@ -11679,7 +11486,7 @@ const suspendServiceBackupOperationSpec: msRest.OperationSpec = { Parameters.serviceId0 ], queryParameters: [ - Parameters.apiVersion5, + Parameters.apiVersion1, Parameters.timeout ], responses: { @@ -11698,7 +11505,7 @@ const resumeServiceBackupOperationSpec: msRest.OperationSpec = { Parameters.serviceId0 ], queryParameters: [ - Parameters.apiVersion5, + Parameters.apiVersion1, Parameters.timeout ], responses: { @@ -11717,7 +11524,7 @@ const enablePartitionBackupOperationSpec: msRest.OperationSpec = { Parameters.partitionId0 ], queryParameters: [ - Parameters.apiVersion5, + Parameters.apiVersion1, Parameters.timeout ], requestBody: { @@ -11743,9 +11550,16 @@ const disablePartitionBackupOperationSpec: msRest.OperationSpec = { Parameters.partitionId0 ], queryParameters: [ - Parameters.apiVersion5, + Parameters.apiVersion1, Parameters.timeout ], + requestBody: { + parameterPath: [ + "options", + "disableBackupDescription" + ], + mapper: Mappers.DisableBackupDescription + }, responses: { 202: {}, default: { @@ -11762,7 +11576,7 @@ const getPartitionBackupConfigurationInfoOperationSpec: msRest.OperationSpec = { Parameters.partitionId0 ], queryParameters: [ - Parameters.apiVersion5, + Parameters.apiVersion1, Parameters.timeout ], responses: { @@ -11783,7 +11597,7 @@ const getPartitionBackupListOperationSpec: msRest.OperationSpec = { Parameters.partitionId0 ], queryParameters: [ - Parameters.apiVersion5, + Parameters.apiVersion1, Parameters.timeout, Parameters.latest, Parameters.startDateTimeFilter, @@ -11807,7 +11621,7 @@ const suspendPartitionBackupOperationSpec: msRest.OperationSpec = { Parameters.partitionId0 ], queryParameters: [ - Parameters.apiVersion5, + Parameters.apiVersion1, Parameters.timeout ], responses: { @@ -11826,7 +11640,7 @@ const resumePartitionBackupOperationSpec: msRest.OperationSpec = { Parameters.partitionId0 ], queryParameters: [ - Parameters.apiVersion5, + Parameters.apiVersion1, Parameters.timeout ], responses: { @@ -11846,7 +11660,7 @@ const backupPartitionOperationSpec: msRest.OperationSpec = { ], queryParameters: [ Parameters.backupTimeout, - Parameters.apiVersion5, + Parameters.apiVersion1, Parameters.timeout ], requestBody: { @@ -11872,7 +11686,7 @@ const getPartitionBackupProgressOperationSpec: msRest.OperationSpec = { Parameters.partitionId0 ], queryParameters: [ - Parameters.apiVersion5, + Parameters.apiVersion1, Parameters.timeout ], responses: { @@ -11894,7 +11708,7 @@ const restorePartitionOperationSpec: msRest.OperationSpec = { ], queryParameters: [ Parameters.restoreTimeout, - Parameters.apiVersion5, + Parameters.apiVersion1, Parameters.timeout ], requestBody: { @@ -11920,7 +11734,7 @@ const getPartitionRestoreProgressOperationSpec: msRest.OperationSpec = { Parameters.partitionId0 ], queryParameters: [ - Parameters.apiVersion5, + Parameters.apiVersion1, Parameters.timeout ], responses: { @@ -11938,7 +11752,7 @@ const getBackupsFromBackupLocationOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "BackupRestore/$/GetBackups", queryParameters: [ - Parameters.apiVersion5, + Parameters.apiVersion1, Parameters.timeout, Parameters.continuationToken, Parameters.maxResults @@ -12171,7 +11985,7 @@ const getClusterEventListOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "EventsStore/Cluster/Events", queryParameters: [ - Parameters.apiVersion5, + Parameters.apiVersion1, Parameters.timeout, Parameters.startTimeUtc1, Parameters.endTimeUtc1, @@ -12207,7 +12021,7 @@ const getContainersEventListOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "EventsStore/Containers/Events", queryParameters: [ - Parameters.apiVersion5, + Parameters.apiVersion7, Parameters.timeout, Parameters.startTimeUtc1, Parameters.endTimeUtc1, @@ -12246,7 +12060,7 @@ const getNodeEventListOperationSpec: msRest.OperationSpec = { Parameters.nodeName ], queryParameters: [ - Parameters.apiVersion5, + Parameters.apiVersion1, Parameters.timeout, Parameters.startTimeUtc1, Parameters.endTimeUtc1, @@ -12282,7 +12096,7 @@ const getNodesEventListOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "EventsStore/Nodes/Events", queryParameters: [ - Parameters.apiVersion5, + Parameters.apiVersion1, Parameters.timeout, Parameters.startTimeUtc1, Parameters.endTimeUtc1, @@ -12321,7 +12135,7 @@ const getApplicationEventListOperationSpec: msRest.OperationSpec = { Parameters.applicationId ], queryParameters: [ - Parameters.apiVersion5, + Parameters.apiVersion1, Parameters.timeout, Parameters.startTimeUtc1, Parameters.endTimeUtc1, @@ -12357,7 +12171,7 @@ const getApplicationsEventListOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "EventsStore/Applications/Events", queryParameters: [ - Parameters.apiVersion5, + Parameters.apiVersion1, Parameters.timeout, Parameters.startTimeUtc1, Parameters.endTimeUtc1, @@ -12396,7 +12210,7 @@ const getServiceEventListOperationSpec: msRest.OperationSpec = { Parameters.serviceId0 ], queryParameters: [ - Parameters.apiVersion5, + Parameters.apiVersion1, Parameters.timeout, Parameters.startTimeUtc1, Parameters.endTimeUtc1, @@ -12432,7 +12246,7 @@ const getServicesEventListOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "EventsStore/Services/Events", queryParameters: [ - Parameters.apiVersion5, + Parameters.apiVersion1, Parameters.timeout, Parameters.startTimeUtc1, Parameters.endTimeUtc1, @@ -12471,7 +12285,7 @@ const getPartitionEventListOperationSpec: msRest.OperationSpec = { Parameters.partitionId0 ], queryParameters: [ - Parameters.apiVersion5, + Parameters.apiVersion1, Parameters.timeout, Parameters.startTimeUtc1, Parameters.endTimeUtc1, @@ -12507,7 +12321,7 @@ const getPartitionsEventListOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "EventsStore/Partitions/Events", queryParameters: [ - Parameters.apiVersion5, + Parameters.apiVersion1, Parameters.timeout, Parameters.startTimeUtc1, Parameters.endTimeUtc1, @@ -12547,7 +12361,7 @@ const getPartitionReplicaEventListOperationSpec: msRest.OperationSpec = { Parameters.replicaId ], queryParameters: [ - Parameters.apiVersion5, + Parameters.apiVersion1, Parameters.timeout, Parameters.startTimeUtc1, Parameters.endTimeUtc1, @@ -12586,7 +12400,7 @@ const getPartitionReplicasEventListOperationSpec: msRest.OperationSpec = { Parameters.partitionId0 ], queryParameters: [ - Parameters.apiVersion5, + Parameters.apiVersion1, Parameters.timeout, Parameters.startTimeUtc1, Parameters.endTimeUtc1, @@ -12625,7 +12439,7 @@ const getCorrelatedEventListOperationSpec: msRest.OperationSpec = { Parameters.eventInstanceId ], queryParameters: [ - Parameters.apiVersion5, + Parameters.apiVersion1, Parameters.timeout ], responses: { @@ -12655,217 +12469,10 @@ const getCorrelatedEventListOperationSpec: msRest.OperationSpec = { serializer }; -const createApplicationResourceOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "Resources/Applications/{applicationResourceName}", - urlParameters: [ - Parameters.applicationResourceName - ], - queryParameters: [ - Parameters.apiVersion6 - ], - requestBody: { - parameterPath: "applicationResourceDescription", - mapper: { - ...Mappers.ApplicationResourceDescription, - required: true - } - }, - responses: { - 201: {}, - 202: {}, - default: { - bodyMapper: Mappers.FabricError - } - }, - serializer -}; - -const getApplicationResourceOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "Resources/Applications/{applicationResourceName}", - urlParameters: [ - Parameters.applicationResourceName - ], - queryParameters: [ - Parameters.apiVersion6 - ], - responses: { - 200: { - bodyMapper: Mappers.ApplicationResourceDescription - }, - default: { - bodyMapper: Mappers.FabricError - } - }, - serializer -}; - -const deleteApplicationResourceOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "Resources/Applications/{applicationResourceName}", - urlParameters: [ - Parameters.applicationResourceName - ], - queryParameters: [ - Parameters.apiVersion6 - ], - responses: { - 200: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.FabricError - } - }, - serializer -}; - -const getServicesOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "Resources/Applications/{applicationResourceName}/Services", - urlParameters: [ - Parameters.applicationResourceName - ], - queryParameters: [ - Parameters.apiVersion6 - ], - responses: { - 200: { - bodyMapper: Mappers.PagedServiceResourceDescriptionList - }, - default: {} - }, - serializer -}; - -const getServiceOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "Resources/Applications/{applicationResourceName}/Services/{serviceResourceName}", - urlParameters: [ - Parameters.applicationResourceName, - Parameters.serviceResourceName - ], - queryParameters: [ - Parameters.apiVersion6 - ], - responses: { - 200: { - bodyMapper: Mappers.ServiceResourceDescription - }, - default: {} - }, - serializer -}; - -const getReplicasOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "Resources/Applications/{applicationResourceName}/Services/{serviceResourceName}/replicas", - urlParameters: [ - Parameters.applicationResourceName, - Parameters.serviceResourceName - ], - queryParameters: [ - Parameters.apiVersion6 - ], - responses: { - 200: { - bodyMapper: Mappers.PagedServiceResourceReplicaDescriptionList - }, - default: {} - }, - serializer -}; - -const getReplicaOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "Resources/Applications/{applicationResourceName}/Services/{serviceResourceName}/Replicas/{replicaName}", - urlParameters: [ - Parameters.applicationResourceName, - Parameters.serviceResourceName, - Parameters.replicaName - ], - queryParameters: [ - Parameters.apiVersion6 - ], - responses: { - 200: { - bodyMapper: Mappers.ServiceResourceReplicaDescription - }, - default: {} - }, - serializer -}; - -const createVolumeResourceOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "Resources/Volumes/{volumeResourceName}", - urlParameters: [ - Parameters.volumeResourceName - ], - queryParameters: [ - Parameters.apiVersion6 - ], - requestBody: { - parameterPath: "volumeResourceDescription", - mapper: { - ...Mappers.VolumeResourceDescription, - required: true - } - }, - responses: { - 201: {}, - 202: {}, - default: { - bodyMapper: Mappers.FabricError - } - }, - serializer -}; - -const getVolumeResourceOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "Resources/Volumes/{volumeResourceName}", - urlParameters: [ - Parameters.volumeResourceName - ], - queryParameters: [ - Parameters.apiVersion6 - ], - responses: { - 200: { - bodyMapper: Mappers.VolumeResourceDescription - }, - default: { - bodyMapper: Mappers.FabricError - } - }, - serializer -}; - -const deleteVolumeResourceOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "Resources/Volumes/{volumeResourceName}", - urlParameters: [ - Parameters.volumeResourceName - ], - queryParameters: [ - Parameters.apiVersion6 - ], - responses: { - 200: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.FabricError - } - }, - serializer -}; - export { ServiceFabricClient, ServiceFabricClientContext, Models as ServiceFabricModels, Mappers as ServiceFabricMappers }; +export * from "./operations";