@azure-rest/arm-servicefabric 1.0.0-beta.1 → 1.0.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/LICENSE +4 -4
- package/README.md +29 -21
- package/dist/browser/clientDefinitions.d.ts +137 -0
- package/dist/browser/clientDefinitions.d.ts.map +1 -0
- package/dist/browser/clientDefinitions.js +4 -0
- package/dist/browser/clientDefinitions.js.map +1 -0
- package/dist/browser/customizedApiVersionPolicy.d.ts +10 -0
- package/dist/browser/customizedApiVersionPolicy.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/customizedApiVersionPolicy.js +1 -1
- package/dist/browser/customizedApiVersionPolicy.js.map +1 -0
- package/dist/browser/index.d.ts +12 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/browser/index.js +14 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/isUnexpected.d.ts +32 -0
- package/dist/browser/isUnexpected.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/isUnexpected.js +64 -121
- package/dist/browser/isUnexpected.js.map +1 -0
- package/dist/browser/logger.d.ts +2 -0
- package/dist/browser/logger.d.ts.map +1 -0
- package/dist/browser/logger.js +5 -0
- package/dist/browser/logger.js.map +1 -0
- package/dist/browser/models.d.ts +772 -0
- package/dist/browser/models.d.ts.map +1 -0
- package/dist/browser/models.js +4 -0
- package/dist/browser/models.js.map +1 -0
- package/dist/browser/outputModels.d.ts +861 -0
- package/dist/browser/outputModels.d.ts.map +1 -0
- package/dist/browser/outputModels.js +4 -0
- package/dist/browser/outputModels.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/browser/paginateHelper.d.ts +68 -0
- package/dist/browser/paginateHelper.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/paginateHelper.js +70 -3
- package/dist/browser/paginateHelper.js.map +1 -0
- package/dist/browser/parameters.d.ts +105 -0
- package/dist/browser/parameters.d.ts.map +1 -0
- package/dist/browser/parameters.js +4 -0
- package/dist/browser/parameters.js.map +1 -0
- package/dist/browser/pollingHelper.d.ts +76 -0
- package/dist/browser/pollingHelper.d.ts.map +1 -0
- package/dist/browser/pollingHelper.js +107 -0
- package/dist/browser/pollingHelper.js.map +1 -0
- package/dist/browser/responses.d.ts +328 -0
- package/dist/browser/responses.d.ts.map +1 -0
- package/dist/browser/responses.js +4 -0
- package/dist/browser/responses.js.map +1 -0
- package/dist/browser/serviceFabricClient.d.ts +15 -0
- package/dist/browser/serviceFabricClient.d.ts.map +1 -0
- package/dist/browser/serviceFabricClient.js +44 -0
- package/dist/browser/serviceFabricClient.js.map +1 -0
- package/dist/commonjs/clientDefinitions.d.ts +137 -0
- package/dist/commonjs/clientDefinitions.d.ts.map +1 -0
- package/dist/commonjs/clientDefinitions.js +5 -0
- package/dist/commonjs/clientDefinitions.js.map +1 -0
- package/dist/commonjs/customizedApiVersionPolicy.d.ts +10 -0
- package/dist/commonjs/customizedApiVersionPolicy.d.ts.map +1 -0
- package/dist/commonjs/customizedApiVersionPolicy.js +27 -0
- package/dist/commonjs/customizedApiVersionPolicy.js.map +1 -0
- package/dist/commonjs/index.d.ts +12 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +17 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/isUnexpected.d.ts +32 -0
- package/dist/commonjs/isUnexpected.d.ts.map +1 -0
- package/dist/commonjs/isUnexpected.js +101 -0
- package/dist/commonjs/isUnexpected.js.map +1 -0
- package/dist/commonjs/logger.d.ts +2 -0
- package/dist/commonjs/logger.d.ts.map +1 -0
- package/dist/commonjs/logger.js +8 -0
- package/dist/commonjs/logger.js.map +1 -0
- package/dist/commonjs/models.d.ts +772 -0
- package/dist/commonjs/models.d.ts.map +1 -0
- package/dist/commonjs/models.js +5 -0
- package/dist/commonjs/models.js.map +1 -0
- package/dist/commonjs/outputModels.d.ts +861 -0
- package/dist/commonjs/outputModels.d.ts.map +1 -0
- package/dist/commonjs/outputModels.js +5 -0
- package/dist/commonjs/outputModels.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/paginateHelper.d.ts +68 -0
- package/dist/commonjs/paginateHelper.d.ts.map +1 -0
- package/dist/commonjs/paginateHelper.js +140 -0
- package/dist/commonjs/paginateHelper.js.map +1 -0
- package/dist/commonjs/parameters.d.ts +105 -0
- package/dist/commonjs/parameters.d.ts.map +1 -0
- package/dist/commonjs/parameters.js +5 -0
- package/dist/commonjs/parameters.js.map +1 -0
- package/dist/commonjs/pollingHelper.d.ts +76 -0
- package/dist/commonjs/pollingHelper.d.ts.map +1 -0
- package/dist/commonjs/pollingHelper.js +110 -0
- package/dist/commonjs/pollingHelper.js.map +1 -0
- package/dist/commonjs/responses.d.ts +328 -0
- package/dist/commonjs/responses.d.ts.map +1 -0
- package/dist/commonjs/responses.js +5 -0
- package/dist/commonjs/responses.js.map +1 -0
- package/dist/commonjs/serviceFabricClient.d.ts +15 -0
- package/dist/commonjs/serviceFabricClient.d.ts.map +1 -0
- package/dist/commonjs/serviceFabricClient.js +47 -0
- package/dist/commonjs/serviceFabricClient.js.map +1 -0
- package/dist/commonjs/tsdoc-metadata.json +11 -0
- package/dist/esm/clientDefinitions.d.ts +137 -0
- package/dist/esm/clientDefinitions.d.ts.map +1 -0
- package/dist/esm/clientDefinitions.js +4 -0
- package/dist/esm/clientDefinitions.js.map +1 -0
- package/dist/esm/customizedApiVersionPolicy.d.ts +10 -0
- package/dist/esm/customizedApiVersionPolicy.d.ts.map +1 -0
- package/dist/esm/customizedApiVersionPolicy.js +23 -0
- package/dist/esm/customizedApiVersionPolicy.js.map +1 -0
- package/dist/esm/index.d.ts +12 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +14 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/isUnexpected.d.ts +32 -0
- package/dist/esm/isUnexpected.d.ts.map +1 -0
- package/dist/esm/isUnexpected.js +98 -0
- package/dist/esm/isUnexpected.js.map +1 -0
- package/dist/esm/logger.d.ts +2 -0
- package/dist/esm/logger.d.ts.map +1 -0
- package/dist/esm/logger.js +5 -0
- package/dist/esm/logger.js.map +1 -0
- package/dist/esm/models.d.ts +772 -0
- package/dist/esm/models.d.ts.map +1 -0
- package/dist/esm/models.js +4 -0
- package/dist/esm/models.js.map +1 -0
- package/dist/esm/outputModels.d.ts +861 -0
- package/dist/esm/outputModels.d.ts.map +1 -0
- package/dist/esm/outputModels.js +4 -0
- package/dist/esm/outputModels.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/paginateHelper.d.ts +68 -0
- package/dist/esm/paginateHelper.d.ts.map +1 -0
- package/dist/esm/paginateHelper.js +137 -0
- package/dist/esm/paginateHelper.js.map +1 -0
- package/dist/esm/parameters.d.ts +105 -0
- package/dist/esm/parameters.d.ts.map +1 -0
- package/dist/esm/parameters.js +4 -0
- package/dist/esm/parameters.js.map +1 -0
- package/dist/esm/pollingHelper.d.ts +76 -0
- package/dist/esm/pollingHelper.d.ts.map +1 -0
- package/dist/esm/pollingHelper.js +107 -0
- package/dist/esm/pollingHelper.js.map +1 -0
- package/dist/esm/responses.d.ts +328 -0
- package/dist/esm/responses.d.ts.map +1 -0
- package/dist/esm/responses.js +4 -0
- package/dist/esm/responses.js.map +1 -0
- package/dist/esm/serviceFabricClient.d.ts +15 -0
- package/dist/esm/serviceFabricClient.d.ts.map +1 -0
- package/dist/esm/serviceFabricClient.js +44 -0
- package/dist/esm/serviceFabricClient.js.map +1 -0
- package/dist/react-native/clientDefinitions.d.ts +137 -0
- package/dist/react-native/clientDefinitions.d.ts.map +1 -0
- package/dist/react-native/clientDefinitions.js +4 -0
- package/dist/react-native/clientDefinitions.js.map +1 -0
- package/dist/react-native/customizedApiVersionPolicy.d.ts +10 -0
- package/dist/react-native/customizedApiVersionPolicy.d.ts.map +1 -0
- package/dist/react-native/customizedApiVersionPolicy.js +23 -0
- package/dist/react-native/customizedApiVersionPolicy.js.map +1 -0
- package/dist/react-native/index.d.ts +12 -0
- package/dist/react-native/index.d.ts.map +1 -0
- package/dist/react-native/index.js +14 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/isUnexpected.d.ts +32 -0
- package/dist/react-native/isUnexpected.d.ts.map +1 -0
- package/dist/react-native/isUnexpected.js +98 -0
- package/dist/react-native/isUnexpected.js.map +1 -0
- package/dist/react-native/logger.d.ts +2 -0
- package/dist/react-native/logger.d.ts.map +1 -0
- package/dist/react-native/logger.js +5 -0
- package/dist/react-native/logger.js.map +1 -0
- package/dist/react-native/models.d.ts +772 -0
- package/dist/react-native/models.d.ts.map +1 -0
- package/dist/react-native/models.js +4 -0
- package/dist/react-native/models.js.map +1 -0
- package/dist/react-native/outputModels.d.ts +861 -0
- package/dist/react-native/outputModels.d.ts.map +1 -0
- package/dist/react-native/outputModels.js +4 -0
- package/dist/react-native/outputModels.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/dist/react-native/paginateHelper.d.ts +68 -0
- package/dist/react-native/paginateHelper.d.ts.map +1 -0
- package/dist/react-native/paginateHelper.js +137 -0
- package/dist/react-native/paginateHelper.js.map +1 -0
- package/dist/react-native/parameters.d.ts +105 -0
- package/dist/react-native/parameters.d.ts.map +1 -0
- package/dist/react-native/parameters.js +4 -0
- package/dist/react-native/parameters.js.map +1 -0
- package/dist/react-native/pollingHelper.d.ts +76 -0
- package/dist/react-native/pollingHelper.d.ts.map +1 -0
- package/dist/react-native/pollingHelper.js +107 -0
- package/dist/react-native/pollingHelper.js.map +1 -0
- package/dist/react-native/responses.d.ts +328 -0
- package/dist/react-native/responses.d.ts.map +1 -0
- package/dist/react-native/responses.js +4 -0
- package/dist/react-native/responses.js.map +1 -0
- package/dist/react-native/serviceFabricClient.d.ts +15 -0
- package/dist/react-native/serviceFabricClient.d.ts.map +1 -0
- package/dist/react-native/serviceFabricClient.js +44 -0
- package/dist/react-native/serviceFabricClient.js.map +1 -0
- package/package.json +89 -80
- package/review/{arm-servicefabric.api.md → arm-servicefabric-node.api.md} +306 -311
- package/dist/index.js +0 -330
- package/dist/index.js.map +0 -1
- package/dist-esm/src/clientDefinitions.js +0 -4
- package/dist-esm/src/clientDefinitions.js.map +0 -1
- package/dist-esm/src/customizedApiVersionPolicy.js.map +0 -1
- package/dist-esm/src/index.js +0 -14
- package/dist-esm/src/index.js.map +0 -1
- package/dist-esm/src/isUnexpected.js.map +0 -1
- package/dist-esm/src/models.js +0 -4
- package/dist-esm/src/models.js.map +0 -1
- package/dist-esm/src/outputModels.js +0 -4
- package/dist-esm/src/outputModels.js.map +0 -1
- package/dist-esm/src/paginateHelper.js.map +0 -1
- package/dist-esm/src/parameters.js +0 -4
- package/dist-esm/src/parameters.js.map +0 -1
- package/dist-esm/src/pollingHelper.js +0 -48
- package/dist-esm/src/pollingHelper.js.map +0 -1
- package/dist-esm/src/responses.js +0 -4
- package/dist-esm/src/responses.js.map +0 -1
- package/dist-esm/src/serviceFabricClient.js +0 -27
- package/dist-esm/src/serviceFabricClient.js.map +0 -1
- package/types/arm-servicefabric.d.ts +0 -2480
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../src/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nexport interface Cluster extends Resource {\n /** The cluster resource properties */\n properties?: ClusterProperties;\n}\n\nexport interface ClusterProperties {\n /** The list of add-on features to enable in the cluster. */\n addOnFeatures?: Array<\n \"RepairManager\" | \"DnsService\" | \"BackupRestoreService\" | \"ResourceMonitorService\"\n >;\n /** The Service Fabric runtime versions available for this cluster. */\n availableClusterVersions?: Array<ClusterVersionDetails>;\n /** The AAD authentication settings of the cluster. */\n azureActiveDirectory?: AzureActiveDirectory;\n /** The certificate to use for securing the cluster. The certificate provided will be used for node to node security within the cluster, SSL certificate for cluster management endpoint and default admin client. */\n certificate?: CertificateDescription;\n /** Describes a list of server certificates referenced by common name that are used to secure the cluster. */\n certificateCommonNames?: ServerCertificateCommonNames;\n /** The list of client certificates referenced by common name that are allowed to manage the cluster. */\n clientCertificateCommonNames?: Array<ClientCertificateCommonName>;\n /** The list of client certificates referenced by thumbprint that are allowed to manage the cluster. */\n clientCertificateThumbprints?: Array<ClientCertificateThumbprint>;\n /** The Service Fabric runtime version of the cluster. This property can only by set the user when **upgradeMode** is set to 'Manual'. To get list of available Service Fabric versions for new clusters use [ClusterVersion API](./ClusterVersion.md). To get the list of available version for existing clusters use **availableClusterVersions**. */\n clusterCodeVersion?: string;\n /** The Azure Resource Provider endpoint. A system service in the cluster connects to this endpoint. */\n clusterEndpoint?: string;\n /** A service generated unique identifier for the cluster resource. */\n clusterId?: string;\n /**\n * The current state of the cluster.\n *\n * - WaitingForNodes - Indicates that the cluster resource is created and the resource provider is waiting for Service Fabric VM extension to boot up and report to it.\n * - Deploying - Indicates that the Service Fabric runtime is being installed on the VMs. Cluster resource will be in this state until the cluster boots up and system services are up.\n * - BaselineUpgrade - Indicates that the cluster is upgrading to establishes the cluster version. This upgrade is automatically initiated when the cluster boots up for the first time.\n * - UpdatingUserConfiguration - Indicates that the cluster is being upgraded with the user provided configuration.\n * - UpdatingUserCertificate - Indicates that the cluster is being upgraded with the user provided certificate.\n * - UpdatingInfrastructure - Indicates that the cluster is being upgraded with the latest Service Fabric runtime version. This happens only when the **upgradeMode** is set to 'Automatic'.\n * - EnforcingClusterVersion - Indicates that cluster is on a different version than expected and the cluster is being upgraded to the expected version.\n * - UpgradeServiceUnreachable - Indicates that the system service in the cluster is no longer polling the Resource Provider. Clusters in this state cannot be managed by the Resource Provider.\n * - AutoScale - Indicates that the ReliabilityLevel of the cluster is being adjusted.\n * - Ready - Indicates that the cluster is in a stable state.\n *\n */\n clusterState?:\n | \"WaitingForNodes\"\n | \"Deploying\"\n | \"BaselineUpgrade\"\n | \"UpdatingUserConfiguration\"\n | \"UpdatingUserCertificate\"\n | \"UpdatingInfrastructure\"\n | \"EnforcingClusterVersion\"\n | \"UpgradeServiceUnreachable\"\n | \"AutoScale\"\n | \"Ready\";\n /** The storage account information for storing Service Fabric diagnostic logs. */\n diagnosticsStorageAccountConfig?: DiagnosticsStorageAccountConfig;\n /** Indicates if the event store service is enabled. */\n eventStoreServiceEnabled?: boolean;\n /** The list of custom fabric settings to configure the cluster. */\n fabricSettings?: Array<SettingsSectionDescription>;\n /** The http management endpoint of the cluster. */\n managementEndpoint: string;\n /** The list of node types in the cluster. */\n nodeTypes: Array<NodeTypeDescription>;\n /** The provisioning state of the cluster resource. */\n provisioningState?: \"Updating\" | \"Succeeded\" | \"Failed\" | \"Canceled\";\n /**\n * The reliability level sets the replica set size of system services. Learn about [ReliabilityLevel](https://docs.microsoft.com/azure/service-fabric/service-fabric-cluster-capacity).\n *\n * - None - Run the System services with a target replica set count of 1. This should only be used for test clusters.\n * - Bronze - Run the System services with a target replica set count of 3. This should only be used for test clusters.\n * - Silver - Run the System services with a target replica set count of 5.\n * - Gold - Run the System services with a target replica set count of 7.\n * - Platinum - Run the System services with a target replica set count of 9.\n *\n */\n reliabilityLevel?: \"None\" | \"Bronze\" | \"Silver\" | \"Gold\" | \"Platinum\";\n /** The server certificate used by reverse proxy. */\n reverseProxyCertificate?: CertificateDescription;\n /** Describes a list of server certificates referenced by common name that are used to secure the cluster. */\n reverseProxyCertificateCommonNames?: ServerCertificateCommonNames;\n /** The policy to use when upgrading the cluster. */\n upgradeDescription?: ClusterUpgradePolicy;\n /** The upgrade mode of the cluster when new Service Fabric runtime version is available. */\n upgradeMode?: \"Automatic\" | \"Manual\";\n /** The policy used to clean up unused versions. */\n applicationTypeVersionsCleanupPolicy?: ApplicationTypeVersionsCleanupPolicy;\n /** The VM image VMSS has been configured with. Generic names such as Windows or Linux can be used. */\n vmImage?: string;\n /** This property controls the logical grouping of VMs in upgrade domains (UDs). This property can't be modified if a node type with multiple Availability Zones is already present in the cluster. */\n sfZonalUpgradeMode?: \"Parallel\" | \"Hierarchical\";\n /** This property defines the upgrade mode for the virtual machine scale set, it is mandatory if a node type with multiple Availability Zones is added. */\n vmssZonalUpgradeMode?: \"Parallel\" | \"Hierarchical\";\n /** Indicates if infrastructure service manager is enabled. */\n infrastructureServiceManager?: boolean;\n /** Indicates when new cluster runtime version upgrades will be applied after they are released. By default is Wave0. Only applies when **upgradeMode** is set to 'Automatic'. */\n upgradeWave?: \"Wave0\" | \"Wave1\" | \"Wave2\";\n /** Indicates the start date and time to pause automatic runtime version upgrades on the cluster for an specific period of time on the cluster (UTC). */\n upgradePauseStartTimestampUtc?: Date | string;\n /** Indicates the end date and time to pause automatic runtime version upgrades on the cluster for an specific period of time on the cluster (UTC). */\n upgradePauseEndTimestampUtc?: Date | string;\n /** Boolean to pause automatic runtime version upgrades to the cluster. */\n waveUpgradePaused?: boolean;\n /** Indicates a list of notification channels for cluster events. */\n notifications?: Array<Notification>;\n}\n\nexport interface ClusterVersionDetails {\n /** The Service Fabric runtime version of the cluster. */\n codeVersion?: string;\n /** The date of expiry of support of the version. */\n supportExpiryUtc?: string;\n /** Indicates if this version is for Windows or Linux operating system. */\n environment?: \"Windows\" | \"Linux\";\n}\n\nexport interface AzureActiveDirectory {\n /** Azure active directory tenant id. */\n tenantId?: string;\n /** Azure active directory cluster application id. */\n clusterApplication?: string;\n /** Azure active directory client application id. */\n clientApplication?: string;\n}\n\nexport interface CertificateDescription {\n /** Thumbprint of the primary certificate. */\n thumbprint: string;\n /** Thumbprint of the secondary certificate. */\n thumbprintSecondary?: string;\n /** The local certificate store location. */\n x509StoreName?:\n | \"AddressBook\"\n | \"AuthRoot\"\n | \"CertificateAuthority\"\n | \"Disallowed\"\n | \"My\"\n | \"Root\"\n | \"TrustedPeople\"\n | \"TrustedPublisher\";\n}\n\nexport interface ServerCertificateCommonNames {\n /** The list of server certificates referenced by common name that are used to secure the cluster. */\n commonNames?: Array<ServerCertificateCommonName>;\n /** The local certificate store location. */\n x509StoreName?:\n | \"AddressBook\"\n | \"AuthRoot\"\n | \"CertificateAuthority\"\n | \"Disallowed\"\n | \"My\"\n | \"Root\"\n | \"TrustedPeople\"\n | \"TrustedPublisher\";\n}\n\nexport interface ServerCertificateCommonName {\n /** The common name of the server certificate. */\n certificateCommonName: string;\n /** The issuer thumbprint of the server certificate. */\n certificateIssuerThumbprint: string;\n}\n\nexport interface ClientCertificateCommonName {\n /** Indicates if the client certificate has admin access to the cluster. Non admin clients can perform only read only operations on the cluster. */\n isAdmin: boolean;\n /** The common name of the client certificate. */\n certificateCommonName: string;\n /** The issuer thumbprint of the client certificate. */\n certificateIssuerThumbprint: string;\n}\n\nexport interface ClientCertificateThumbprint {\n /** Indicates if the client certificate has admin access to the cluster. Non admin clients can perform only read only operations on the cluster. */\n isAdmin: boolean;\n /** The thumbprint of the client certificate. */\n certificateThumbprint: string;\n}\n\nexport interface DiagnosticsStorageAccountConfig {\n /** The Azure storage account name. */\n storageAccountName: string;\n /** The protected diagnostics storage key name. */\n protectedAccountKeyName: string;\n /** The secondary protected diagnostics storage key name. If one of the storage account keys is rotated the cluster will fallback to using the other. */\n protectedAccountKeyName2?: string;\n /** The blob endpoint of the azure storage account. */\n blobEndpoint: string;\n /** The queue endpoint of the azure storage account. */\n queueEndpoint: string;\n /** The table endpoint of the azure storage account. */\n tableEndpoint: string;\n}\n\nexport interface SettingsSectionDescription {\n /** The section name of the fabric settings. */\n name: string;\n /** The collection of parameters in the section. */\n parameters: Array<SettingsParameterDescription>;\n}\n\nexport interface SettingsParameterDescription {\n /** The parameter name of fabric setting. */\n name: string;\n /** The parameter value of fabric setting. */\n value: string;\n}\n\nexport interface NodeTypeDescription {\n /** The name of the node type. */\n name: string;\n /** The placement tags applied to nodes in the node type, which can be used to indicate where certain services (workload) should run. */\n placementProperties?: Record<string, string>;\n /** The capacity tags applied to the nodes in the node type, the cluster resource manager uses these tags to understand how much resource a node has. */\n capacities?: Record<string, string>;\n /** The TCP cluster management endpoint port. */\n clientConnectionEndpointPort: number;\n /** The HTTP cluster management endpoint port. */\n httpGatewayEndpointPort: number;\n /**\n * The durability level of the node type. Learn about [DurabilityLevel](https://docs.microsoft.com/azure/service-fabric/service-fabric-cluster-capacity).\n *\n * - Bronze - No privileges. This is the default.\n * - Silver - The infrastructure jobs can be paused for a duration of 10 minutes per UD.\n * - Gold - The infrastructure jobs can be paused for a duration of 2 hours per UD. Gold durability can be enabled only on full node VM skus like D15_V2, G5 etc.\n *\n */\n durabilityLevel?: \"Bronze\" | \"Silver\" | \"Gold\";\n /** The range of ports from which cluster assigned port to Service Fabric applications. */\n applicationPorts?: EndpointRangeDescription;\n /** The range of ephemeral ports that nodes in this node type should be configured with. */\n ephemeralPorts?: EndpointRangeDescription;\n /** The node type on which system services will run. Only one node type should be marked as primary. Primary node type cannot be deleted or changed for existing clusters. */\n isPrimary: boolean;\n /** VMInstanceCount should be 1 to n, where n indicates the number of VM instances corresponding to this nodeType. VMInstanceCount = 0 can be done only in these scenarios: NodeType is a secondary nodeType. Durability = Bronze or Durability >= Bronze and InfrastructureServiceManager = true. If VMInstanceCount = 0, implies the VMs for this nodeType will not be used for the initial cluster size computation. */\n vmInstanceCount: number;\n /** The endpoint used by reverse proxy. */\n reverseProxyEndpointPort?: number;\n /** Indicates if the node type can only host Stateless workloads. */\n isStateless?: boolean;\n /** Indicates if the node type is enabled to support multiple zones. */\n multipleAvailabilityZones?: boolean;\n}\n\nexport interface EndpointRangeDescription {\n /** Starting port of a range of ports */\n startPort: number;\n /** End port of a range of ports */\n endPort: number;\n}\n\nexport interface ClusterUpgradePolicy {\n /** If true, then processes are forcefully restarted during upgrade even when the code version has not changed (the upgrade only changes configuration or data). */\n forceRestart?: boolean;\n /** The maximum amount of time to block processing of an upgrade domain and prevent loss of availability when there are unexpected issues. When this timeout expires, processing of the upgrade domain will proceed regardless of availability loss issues. The timeout is reset at the start of each upgrade domain. The timeout can be in either hh:mm:ss or in d.hh:mm:ss.ms format. */\n upgradeReplicaSetCheckTimeout: string;\n /** The length of time to wait after completing an upgrade domain before performing health checks. The duration can be in either hh:mm:ss or in d.hh:mm:ss.ms format. */\n healthCheckWaitDuration: string;\n /** The amount of time that the application or cluster must remain healthy before the upgrade proceeds to the next upgrade domain. The duration can be in either hh:mm:ss or in d.hh:mm:ss.ms format. */\n healthCheckStableDuration: string;\n /** The amount of time to retry health evaluation when the application or cluster is unhealthy before the upgrade rolls back. The timeout can be in either hh:mm:ss or in d.hh:mm:ss.ms format. */\n healthCheckRetryTimeout: string;\n /** The amount of time the overall upgrade has to complete before the upgrade rolls back. The timeout can be in either hh:mm:ss or in d.hh:mm:ss.ms format. */\n upgradeTimeout: string;\n /** The amount of time each upgrade domain has to complete before the upgrade rolls back. The timeout can be in either hh:mm:ss or in d.hh:mm:ss.ms format. */\n upgradeDomainTimeout: string;\n /** The cluster health policy used when upgrading the cluster. */\n healthPolicy: ClusterHealthPolicy;\n /** The cluster delta health policy used when upgrading the cluster. */\n deltaHealthPolicy?: ClusterUpgradeDeltaHealthPolicy;\n}\n\nexport interface ClusterHealthPolicy {\n /**\n * The maximum allowed percentage of unhealthy nodes before reporting an error. For example, to allow 10% of nodes to be unhealthy, this value would be 10.\n *\n * The percentage represents the maximum tolerated percentage of nodes that can be unhealthy before the cluster is considered in error.\n * If the percentage is respected but there is at least one unhealthy node, the health is evaluated as Warning.\n * The percentage is calculated by dividing the number of unhealthy nodes over the total number of nodes in the cluster.\n * The computation rounds up to tolerate one failure on small numbers of nodes. Default percentage is zero.\n *\n * In large clusters, some nodes will always be down or out for repairs, so this percentage should be configured to tolerate that.\n *\n */\n maxPercentUnhealthyNodes?: number;\n /**\n * The maximum allowed percentage of unhealthy applications before reporting an error. For example, to allow 10% of applications to be unhealthy, this value would be 10.\n *\n * The percentage represents the maximum tolerated percentage of applications that can be unhealthy before the cluster is considered in error.\n * If the percentage is respected but there is at least one unhealthy application, the health is evaluated as Warning.\n * This is calculated by dividing the number of unhealthy applications over the total number of application instances in the cluster, excluding applications of application types that are included in the ApplicationTypeHealthPolicyMap.\n * The computation rounds up to tolerate one failure on small numbers of applications. Default percentage is zero.\n *\n */\n maxPercentUnhealthyApplications?: number;\n /** Defines the application health policy map used to evaluate the health of an application or one of its children entities. */\n applicationHealthPolicies?: Record<string, ApplicationHealthPolicy>;\n}\n\nexport interface ApplicationHealthPolicy {\n /** The health policy used by default to evaluate the health of a service type. */\n defaultServiceTypeHealthPolicy?: ServiceTypeHealthPolicy;\n /** The map with service type health policy per service type name. The map is empty by default. */\n serviceTypeHealthPolicies?: Record<string, ServiceTypeHealthPolicy>;\n}\n\nexport interface ServiceTypeHealthPolicy {\n /**\n * The maximum percentage of services allowed to be unhealthy before your application is considered in error.\n *\n */\n maxPercentUnhealthyServices?: number;\n}\n\nexport interface ClusterUpgradeDeltaHealthPolicy {\n /**\n * The maximum allowed percentage of nodes health degradation allowed during cluster upgrades.\n * The delta is measured between the state of the nodes at the beginning of upgrade and the state of the nodes at the time of the health evaluation.\n * The check is performed after every upgrade domain upgrade completion to make sure the global state of the cluster is within tolerated limits.\n *\n */\n maxPercentDeltaUnhealthyNodes: number;\n /**\n * The maximum allowed percentage of upgrade domain nodes health degradation allowed during cluster upgrades.\n * The delta is measured between the state of the upgrade domain nodes at the beginning of upgrade and the state of the upgrade domain nodes at the time of the health evaluation.\n * The check is performed after every upgrade domain upgrade completion for all completed upgrade domains to make sure the state of the upgrade domains is within tolerated limits.\n *\n */\n maxPercentUpgradeDomainDeltaUnhealthyNodes: number;\n /**\n * The maximum allowed percentage of applications health degradation allowed during cluster upgrades.\n * The delta is measured between the state of the applications at the beginning of upgrade and the state of the applications at the time of the health evaluation.\n * The check is performed after every upgrade domain upgrade completion to make sure the global state of the cluster is within tolerated limits. System services are not included in this.\n *\n */\n maxPercentDeltaUnhealthyApplications: number;\n /** Defines the application delta health policy map used to evaluate the health of an application or one of its child entities when upgrading the cluster. */\n applicationDeltaHealthPolicies?: Record<string, ApplicationDeltaHealthPolicy>;\n}\n\nexport interface ApplicationDeltaHealthPolicy {\n /** The delta health policy used by default to evaluate the health of a service type when upgrading the cluster. */\n defaultServiceTypeDeltaHealthPolicy?: ServiceTypeDeltaHealthPolicy;\n /** The map with service type delta health policy per service type name. The map is empty by default. */\n serviceTypeDeltaHealthPolicies?: Record<string, ServiceTypeDeltaHealthPolicy>;\n}\n\nexport interface ServiceTypeDeltaHealthPolicy {\n /**\n * The maximum allowed percentage of services health degradation allowed during cluster upgrades.\n * The delta is measured between the state of the services at the beginning of upgrade and the state of the services at the time of the health evaluation.\n * The check is performed after every upgrade domain upgrade completion to make sure the global state of the cluster is within tolerated limits.\n *\n */\n maxPercentDeltaUnhealthyServices?: number;\n}\n\nexport interface ApplicationTypeVersionsCleanupPolicy {\n /** Number of unused versions per application type to keep. */\n maxUnusedVersionsToKeep: number;\n}\n\nexport interface Notification {\n /** Indicates if the notification is enabled. */\n isEnabled: boolean;\n /** The category of notification. */\n notificationCategory: \"WaveProgress\";\n /** The level of notification. */\n notificationLevel: \"Critical\" | \"All\";\n /** List of targets that subscribe to the notification. */\n notificationTargets: Array<NotificationTarget>;\n}\n\nexport interface NotificationTarget {\n /** The notification channel indicates the type of receivers subscribed to the notification, either user or subscription. */\n notificationChannel: \"EmailUser\" | \"EmailSubscription\";\n /** List of targets that subscribe to the notification. */\n receivers: Array<string>;\n}\n\nexport interface Resource {\n /** Azure resource identifier. */\n id?: string;\n /** Azure resource name. */\n name?: string;\n /** Azure resource type. */\n type?: string;\n /** Azure resource location. */\n location: string;\n /** Azure resource tags. */\n tags?: Record<string, string>;\n /** Azure resource etag. */\n etag?: string;\n /** Metadata pertaining to creation and last modification of the resource. */\n systemData?: SystemData;\n}\n\nexport interface SystemData {\n /** The identity that created the resource. */\n createdBy?: string;\n /** The type of identity that created the resource. */\n createdByType?: string;\n /** The timestamp of resource creation (UTC). */\n createdAt?: Date | string;\n /** The identity that last modified the resource. */\n lastModifiedBy?: string;\n /** The type of identity that last modified the resource. */\n lastModifiedByType?: string;\n /** The timestamp of resource last modification (UTC). */\n lastModifiedAt?: Date | string;\n}\n\nexport interface ClusterUpdateParameters {\n /** Describes the cluster resource properties that can be updated during PATCH operation. */\n properties?: ClusterPropertiesUpdateParameters;\n /** Cluster update parameters */\n tags?: Record<string, string>;\n}\n\nexport interface ClusterPropertiesUpdateParameters {\n /** The list of add-on features to enable in the cluster. */\n addOnFeatures?: Array<\n \"RepairManager\" | \"DnsService\" | \"BackupRestoreService\" | \"ResourceMonitorService\"\n >;\n /** The certificate to use for securing the cluster. The certificate provided will be used for node to node security within the cluster, SSL certificate for cluster management endpoint and default admin client. */\n certificate?: CertificateDescription;\n /** Describes a list of server certificates referenced by common name that are used to secure the cluster. */\n certificateCommonNames?: ServerCertificateCommonNames;\n /** The list of client certificates referenced by common name that are allowed to manage the cluster. This will overwrite the existing list. */\n clientCertificateCommonNames?: Array<ClientCertificateCommonName>;\n /** The list of client certificates referenced by thumbprint that are allowed to manage the cluster. This will overwrite the existing list. */\n clientCertificateThumbprints?: Array<ClientCertificateThumbprint>;\n /** The Service Fabric runtime version of the cluster. This property can only by set the user when **upgradeMode** is set to 'Manual'. To get list of available Service Fabric versions for new clusters use [ClusterVersion API](./ClusterVersion.md). To get the list of available version for existing clusters use **availableClusterVersions**. */\n clusterCodeVersion?: string;\n /** Indicates if the event store service is enabled. */\n eventStoreServiceEnabled?: boolean;\n /** The list of custom fabric settings to configure the cluster. This will overwrite the existing list. */\n fabricSettings?: Array<SettingsSectionDescription>;\n /** The list of node types in the cluster. This will overwrite the existing list. */\n nodeTypes?: Array<NodeTypeDescription>;\n /**\n * The reliability level sets the replica set size of system services. Learn about [ReliabilityLevel](https://docs.microsoft.com/azure/service-fabric/service-fabric-cluster-capacity).\n *\n * - None - Run the System services with a target replica set count of 1. This should only be used for test clusters.\n * - Bronze - Run the System services with a target replica set count of 3. This should only be used for test clusters.\n * - Silver - Run the System services with a target replica set count of 5.\n * - Gold - Run the System services with a target replica set count of 7.\n * - Platinum - Run the System services with a target replica set count of 9.\n *\n */\n reliabilityLevel?: \"None\" | \"Bronze\" | \"Silver\" | \"Gold\" | \"Platinum\";\n /** The server certificate used by reverse proxy. */\n reverseProxyCertificate?: CertificateDescription;\n /** The policy to use when upgrading the cluster. */\n upgradeDescription?: ClusterUpgradePolicy;\n /** The policy used to clean up unused versions. */\n applicationTypeVersionsCleanupPolicy?: ApplicationTypeVersionsCleanupPolicy;\n /** The upgrade mode of the cluster when new Service Fabric runtime version is available. */\n upgradeMode?: \"Automatic\" | \"Manual\";\n /** This property controls the logical grouping of VMs in upgrade domains (UDs). This property can't be modified if a node type with multiple Availability Zones is already present in the cluster. */\n sfZonalUpgradeMode?: \"Parallel\" | \"Hierarchical\";\n /** This property defines the upgrade mode for the virtual machine scale set, it is mandatory if a node type with multiple Availability Zones is added. */\n vmssZonalUpgradeMode?: \"Parallel\" | \"Hierarchical\";\n /** Indicates if infrastructure service manager is enabled. */\n infrastructureServiceManager?: boolean;\n /** Indicates when new cluster runtime version upgrades will be applied after they are released. By default is Wave0. Only applies when **upgradeMode** is set to 'Automatic'. */\n upgradeWave?: \"Wave0\" | \"Wave1\" | \"Wave2\";\n /** The start timestamp to pause runtime version upgrades on the cluster (UTC). */\n upgradePauseStartTimestampUtc?: Date | string;\n /** The end timestamp of pause runtime version upgrades on the cluster (UTC). */\n upgradePauseEndTimestampUtc?: Date | string;\n /** Boolean to pause automatic runtime version upgrades to the cluster. */\n waveUpgradePaused?: boolean;\n /** Indicates a list of notification channels for cluster events. */\n notifications?: Array<Notification>;\n}\n\nexport interface UpgradableVersionsDescription {\n /** The target code version. */\n targetVersion: string;\n}\n\nexport interface ApplicationTypeResource extends ProxyResource {\n /** The application type name properties */\n properties?: ApplicationTypeResourceProperties;\n}\n\nexport interface ApplicationTypeResourceProperties {\n /** The current deployment or provisioning state, which only appears in the response. */\n provisioningState?: string;\n}\n\nexport interface ProxyResource {\n /** Azure resource identifier. */\n id?: string;\n /** Azure resource name. */\n name?: string;\n /** Azure resource type. */\n type?: string;\n /** It will be deprecated in New API, resource location depends on the parent resource. */\n location?: string;\n /** Azure resource tags. */\n tags?: Record<string, string>;\n /** Azure resource etag. */\n etag?: string;\n /** Metadata pertaining to creation and last modification of the resource. */\n systemData?: SystemData;\n}\n\nexport interface ApplicationTypeVersionResource extends ProxyResource {\n /** The properties of the application type version resource. */\n properties?: ApplicationTypeVersionResourceProperties;\n}\n\nexport interface ApplicationTypeVersionResourceProperties {\n /** The current deployment or provisioning state, which only appears in the response */\n provisioningState?: string;\n /** The URL to the application package */\n appPackageUrl: string;\n /** List of application type parameters that can be overridden when creating or updating the application. */\n defaultParameterList?: Record<string, string>;\n}\n\nexport interface ApplicationResource extends ProxyResource {\n /** Describes the managed identities for an Azure resource. */\n identity?: ManagedIdentity;\n /** The application resource properties. */\n properties?: ApplicationResourceProperties;\n}\n\nexport interface ManagedIdentity {\n /** The principal id of the managed identity. This property will only be provided for a system assigned identity. */\n principalId?: string;\n /** The tenant id of the managed identity. This property will only be provided for a system assigned identity. */\n tenantId?: string;\n /** The type of managed identity for the resource. */\n type?: \"SystemAssigned\" | \"UserAssigned\" | \"SystemAssigned, UserAssigned\" | \"None\";\n /**\n * The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form:\n * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.\n *\n */\n userAssignedIdentities?: Record<string, UserAssignedIdentity>;\n}\n\nexport interface UserAssignedIdentity {\n /** The principal id of user assigned identity. */\n principalId?: string;\n /** The client id of user assigned identity. */\n clientId?: string;\n}\n\nexport interface ApplicationResourceProperties extends ApplicationResourceUpdateProperties {\n /** The current deployment or provisioning state, which only appears in the response */\n provisioningState?: string;\n /** The application type name as defined in the application manifest. */\n typeName?: string;\n}\n\nexport interface ApplicationResourceUpdateProperties {\n /** The version of the application type as defined in the application manifest. */\n typeVersion?: string;\n /** List of application parameters with overridden values from their default values specified in the application manifest. */\n parameters?: Record<string, string>;\n /** Describes the policy for a monitored application upgrade. */\n upgradePolicy?: ApplicationUpgradePolicy;\n /** The minimum number of nodes where Service Fabric will reserve capacity for this application. Note that this does not mean that the services of this application will be placed on all of those nodes. If this property is set to zero, no capacity will be reserved. The value of this property cannot be more than the value of the MaximumNodes property. */\n minimumNodes?: number;\n /** The maximum number of nodes where Service Fabric will reserve capacity for this application. Note that this does not mean that the services of this application will be placed on all of those nodes. By default, the value of this property is zero and it means that the services can be placed on any node. */\n maximumNodes?: number;\n /** Remove the current application capacity settings. */\n removeApplicationCapacity?: boolean;\n /** List of application capacity metric description. */\n metrics?: Array<ApplicationMetricDescription>;\n /** List of user assigned identities for the application, each mapped to a friendly name. */\n managedIdentities?: Array<ApplicationUserAssignedIdentity>;\n}\n\nexport interface ApplicationUpgradePolicy {\n /** The maximum amount of time to block processing of an upgrade domain and prevent loss of availability when there are unexpected issues. When this timeout expires, processing of the upgrade domain will proceed regardless of availability loss issues. The timeout is reset at the start of each upgrade domain. Valid values are between 0 and 42949672925 inclusive. (unsigned 32-bit integer). */\n upgradeReplicaSetCheckTimeout?: string;\n /** If true, then processes are forcefully restarted during upgrade even when the code version has not changed (the upgrade only changes configuration or data). */\n forceRestart?: boolean;\n /** The policy used for monitoring the application upgrade */\n rollingUpgradeMonitoringPolicy?: ArmRollingUpgradeMonitoringPolicy;\n /**\n * Defines a health policy used to evaluate the health of an application or one of its children entities.\n *\n */\n applicationHealthPolicy?: ArmApplicationHealthPolicy;\n /** The mode used to monitor health during a rolling upgrade. The values are UnmonitoredAuto, UnmonitoredManual, and Monitored. */\n upgradeMode?: \"Invalid\" | \"UnmonitoredAuto\" | \"UnmonitoredManual\" | \"Monitored\";\n /** Determines whether the application should be recreated on update. If value=true, the rest of the upgrade policy parameters are not allowed and it will result in availability loss. */\n recreateApplication?: boolean;\n}\n\nexport interface ArmRollingUpgradeMonitoringPolicy {\n /** The activation Mode of the service package */\n failureAction?: \"Rollback\" | \"Manual\";\n /** The amount of time to wait after completing an upgrade domain before applying health policies. It is first interpreted as a string representing an ISO 8601 duration. If that fails, then it is interpreted as a number representing the total number of milliseconds. */\n healthCheckWaitDuration?: string;\n /** The amount of time that the application or cluster must remain healthy before the upgrade proceeds to the next upgrade domain. It is first interpreted as a string representing an ISO 8601 duration. If that fails, then it is interpreted as a number representing the total number of milliseconds. */\n healthCheckStableDuration?: string;\n /** The amount of time to retry health evaluation when the application or cluster is unhealthy before FailureAction is executed. It is first interpreted as a string representing an ISO 8601 duration. If that fails, then it is interpreted as a number representing the total number of milliseconds. */\n healthCheckRetryTimeout?: string;\n /** The amount of time the overall upgrade has to complete before FailureAction is executed. It is first interpreted as a string representing an ISO 8601 duration. If that fails, then it is interpreted as a number representing the total number of milliseconds. */\n upgradeTimeout?: string;\n /** The amount of time each upgrade domain has to complete before FailureAction is executed. It is first interpreted as a string representing an ISO 8601 duration. If that fails, then it is interpreted as a number representing the total number of milliseconds. */\n upgradeDomainTimeout?: string;\n}\n\nexport interface ArmApplicationHealthPolicy {\n /** Indicates whether warnings are treated with the same severity as errors. */\n considerWarningAsError?: boolean;\n /**\n * The maximum allowed percentage of unhealthy deployed applications. Allowed values are Byte values from zero to 100.\n * The percentage represents the maximum tolerated percentage of deployed applications that can be unhealthy before the application is considered in error.\n * This is calculated by dividing the number of unhealthy deployed applications over the number of nodes where the application is currently deployed on in the cluster.\n * The computation rounds up to tolerate one failure on small numbers of nodes. Default percentage is zero.\n *\n */\n maxPercentUnhealthyDeployedApplications?: number;\n /** The health policy used by default to evaluate the health of a service type. */\n defaultServiceTypeHealthPolicy?: ArmServiceTypeHealthPolicy;\n /** The map with service type health policy per service type name. The map is empty by default. */\n serviceTypeHealthPolicyMap?: Record<string, ArmServiceTypeHealthPolicy>;\n}\n\nexport interface ArmServiceTypeHealthPolicy {\n /**\n * The maximum percentage of services allowed to be unhealthy before your application is considered in error.\n *\n */\n maxPercentUnhealthyServices?: number;\n /**\n * The maximum percentage of partitions per service allowed to be unhealthy before your application is considered in error.\n *\n */\n maxPercentUnhealthyPartitionsPerService?: number;\n /**\n * The maximum percentage of replicas per partition allowed to be unhealthy before your application is considered in error.\n *\n */\n maxPercentUnhealthyReplicasPerPartition?: number;\n}\n\nexport interface ApplicationMetricDescription {\n /** The name of the metric. */\n name?: string;\n /**\n * The maximum node capacity for Service Fabric application.\n * This is the maximum Load for an instance of this application on a single node. Even if the capacity of node is greater than this value, Service Fabric will limit the total load of services within the application on each node to this value.\n * If set to zero, capacity for this metric is unlimited on each node.\n * When creating a new application with application capacity defined, the product of MaximumNodes and this value must always be smaller than or equal to TotalApplicationCapacity.\n * When updating existing application with application capacity, the product of MaximumNodes and this value must always be smaller than or equal to TotalApplicationCapacity.\n *\n */\n maximumCapacity?: number;\n /**\n * The node reservation capacity for Service Fabric application.\n * This is the amount of load which is reserved on nodes which have instances of this application.\n * If MinimumNodes is specified, then the product of these values will be the capacity reserved in the cluster for the application.\n * If set to zero, no capacity is reserved for this metric.\n * When setting application capacity or when updating application capacity; this value must be smaller than or equal to MaximumCapacity for each metric.\n *\n */\n reservationCapacity?: number;\n /**\n * The total metric capacity for Service Fabric application.\n * This is the total metric capacity for this application in the cluster. Service Fabric will try to limit the sum of loads of services within the application to this value.\n * When creating a new application with application capacity defined, the product of MaximumNodes and MaximumCapacity must always be smaller than or equal to this value.\n *\n */\n totalApplicationCapacity?: number;\n}\n\nexport interface ApplicationUserAssignedIdentity {\n /** The friendly name of user assigned identity. */\n name: string;\n /** The principal id of user assigned identity. */\n principalId: string;\n}\n\nexport interface ApplicationResourceUpdate extends ProxyResource {\n /** The application resource properties for patch operations. */\n properties?: ApplicationResourceUpdateProperties;\n}\n\nexport interface ServiceResource extends ProxyResource {\n /** The service resource properties. */\n properties?: ServiceResourceProperties;\n}\n\nexport interface ServiceResourcePropertiesParent extends ServiceResourcePropertiesBase {\n /** The current deployment or provisioning state, which only appears in the response */\n provisioningState?: string;\n /** The name of the service type */\n serviceTypeName?: string;\n /** Describes how the service is partitioned. */\n partitionDescription?: PartitionSchemeDescription;\n /** The activation Mode of the service package */\n servicePackageActivationMode?: \"SharedProcess\" | \"ExclusiveProcess\";\n /** Dns name used for the service. If this is specified, then the service can be accessed via its DNS name instead of service name. */\n serviceDnsName?: string;\n serviceKind: \"ServiceResourceProperties\" | \"Stateful\" | \"Stateless\";\n}\n\nexport interface PartitionSchemeDescriptionParent {\n partitionScheme: \"PartitionSchemeDescription\" | \"Named\" | \"Singleton\" | \"UniformInt64Range\";\n}\n\nexport interface ServiceResourcePropertiesBase {\n /** The placement constraints as a string. Placement constraints are boolean expressions on node properties and allow for restricting a service to particular nodes based on the service requirements. For example, to place a service on nodes where NodeType is blue specify the following: \"NodeColor == blue)\". */\n placementConstraints?: string;\n /** A list that describes the correlation of the service with other services. */\n correlationScheme?: Array<ServiceCorrelationDescription>;\n /** The service load metrics is given as an array of ServiceLoadMetricDescription objects. */\n serviceLoadMetrics?: Array<ServiceLoadMetricDescription>;\n /** A list that describes the correlation of the service with other services. */\n servicePlacementPolicies?: Array<ServicePlacementPolicyDescription>;\n /** Specifies the move cost for the service. */\n defaultMoveCost?: \"Zero\" | \"Low\" | \"Medium\" | \"High\";\n}\n\nexport interface ServiceCorrelationDescription {\n /** The ServiceCorrelationScheme which describes the relationship between this service and the service specified via ServiceName. */\n scheme: \"Invalid\" | \"Affinity\" | \"AlignedAffinity\" | \"NonAlignedAffinity\";\n /** The name of the service that the correlation relationship is established with. */\n serviceName: string;\n}\n\nexport interface ServiceLoadMetricDescription {\n /** The name of the metric. If the service chooses to report load during runtime, the load metric name should match the name that is specified in Name exactly. Note that metric names are case sensitive. */\n name: string;\n /** The service load metric relative weight, compared to other metrics configured for this service, as a number. */\n weight?: \"Zero\" | \"Low\" | \"Medium\" | \"High\";\n /** Used only for Stateful services. The default amount of load, as a number, that this service creates for this metric when it is a Primary replica. */\n primaryDefaultLoad?: number;\n /** Used only for Stateful services. The default amount of load, as a number, that this service creates for this metric when it is a Secondary replica. */\n secondaryDefaultLoad?: number;\n /** Used only for Stateless services. The default amount of load, as a number, that this service creates for this metric. */\n defaultLoad?: number;\n}\n\nexport interface ServicePlacementPolicyDescription {\n type: \"ServicePlacementPolicyDescription\";\n}\n\nexport interface ServiceResourceUpdate extends ProxyResource {\n /** The service resource properties for patch operations. */\n properties?: ServiceResourceUpdateProperties;\n}\n\nexport interface ServiceResourceUpdatePropertiesParent extends ServiceResourcePropertiesBase {\n serviceKind: \"ServiceResourceUpdateProperties\" | \"Stateful\" | \"Stateless\";\n}\n\nexport interface NamedPartitionSchemeDescription extends PartitionSchemeDescriptionParent {\n /** The number of partitions. */\n count: number;\n /** Array of size specified by the ‘count’ parameter, for the names of the partitions. */\n names: Array<string>;\n partitionScheme: \"Named\";\n}\n\nexport interface SingletonPartitionSchemeDescription extends PartitionSchemeDescriptionParent {\n partitionScheme: \"Singleton\";\n}\n\nexport interface StatefulServiceProperties extends ServiceResourcePropertiesParent {\n /** A flag indicating whether this is a persistent service which stores states on the local disk. If it is then the value of this property is true, if not it is false. */\n hasPersistedState?: boolean;\n /** The target replica set size as a number. */\n targetReplicaSetSize?: number;\n /** The minimum replica set size as a number. */\n minReplicaSetSize?: number;\n /** The duration between when a replica goes down and when a new replica is created, represented in ISO 8601 format (hh:mm:ss.s). */\n replicaRestartWaitDuration?: Date | string;\n /** The maximum duration for which a partition is allowed to be in a state of quorum loss, represented in ISO 8601 format (hh:mm:ss.s). */\n quorumLossWaitDuration?: Date | string;\n /** The definition on how long StandBy replicas should be maintained before being removed, represented in ISO 8601 format (hh:mm:ss.s). */\n standByReplicaKeepDuration?: Date | string;\n serviceKind: \"Stateful\";\n}\n\nexport interface StatefulServiceUpdateProperties extends ServiceResourceUpdatePropertiesParent {\n /** The target replica set size as a number. */\n targetReplicaSetSize?: number;\n /** The minimum replica set size as a number. */\n minReplicaSetSize?: number;\n /** The duration between when a replica goes down and when a new replica is created, represented in ISO 8601 format (hh:mm:ss.s). */\n replicaRestartWaitDuration?: Date | string;\n /** The maximum duration for which a partition is allowed to be in a state of quorum loss, represented in ISO 8601 format (hh:mm:ss.s). */\n quorumLossWaitDuration?: Date | string;\n /** The definition on how long StandBy replicas should be maintained before being removed, represented in ISO 8601 format (hh:mm:ss.s). */\n standByReplicaKeepDuration?: Date | string;\n serviceKind: \"Stateful\";\n}\n\nexport interface StatelessServiceProperties extends ServiceResourcePropertiesParent {\n /** The instance count. */\n instanceCount?: number;\n /** Delay duration for RequestDrain feature to ensures that the endpoint advertised by the stateless instance is removed before the delay starts prior to closing the instance. This delay enables existing requests to drain gracefully before the instance actually goes down (https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-application-upgrade-advanced#avoid-connection-drops-during-stateless-service-planned-downtime-preview). It is represented in ISO 8601 format (hh:mm:ss.s). */\n instanceCloseDelayDuration?: string;\n serviceKind: \"Stateless\";\n}\n\nexport interface StatelessServiceUpdateProperties extends ServiceResourceUpdatePropertiesParent {\n /** The instance count. */\n instanceCount?: number;\n /** Delay duration for RequestDrain feature to ensures that the endpoint advertised by the stateless instance is removed before the delay starts prior to closing the instance. This delay enables existing requests to drain gracefully before the instance actually goes down (https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-application-upgrade-advanced#avoid-connection-drops-during-stateless-service-planned-downtime-preview). It is first interpreted as a string representing an ISO 8601 duration. It is represented in ISO 8601 format (hh:mm:ss.s). */\n instanceCloseDelayDuration?: string;\n serviceKind: \"Stateless\";\n}\n\nexport interface UniformInt64RangePartitionSchemeDescription\n extends PartitionSchemeDescriptionParent {\n /** The number of partitions. */\n count: number;\n /**\n * String indicating the lower bound of the partition key range that\n * should be split between the partition ‘count’\n *\n */\n lowKey: string;\n /**\n * String indicating the upper bound of the partition key range that\n * should be split between the partition ‘count’\n *\n */\n highKey: string;\n partitionScheme: \"UniformInt64Range\";\n}\n\nexport type ServiceResourceProperties = StatefulServiceProperties | StatelessServiceProperties;\nexport type PartitionSchemeDescription =\n | NamedPartitionSchemeDescription\n | SingletonPartitionSchemeDescription\n | UniformInt64RangePartitionSchemeDescription;\nexport type ServiceResourceUpdateProperties =\n | StatefulServiceUpdateProperties\n | StatelessServiceUpdateProperties;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"outputModels.js","sourceRoot":"","sources":["../../src/outputModels.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nexport interface ClusterOutput extends ResourceOutput {\n /** The cluster resource properties */\n properties?: ClusterPropertiesOutput;\n}\n\nexport interface ClusterPropertiesOutput {\n /** The list of add-on features to enable in the cluster. */\n addOnFeatures?: Array<\n \"RepairManager\" | \"DnsService\" | \"BackupRestoreService\" | \"ResourceMonitorService\"\n >;\n /** The Service Fabric runtime versions available for this cluster. */\n availableClusterVersions?: Array<ClusterVersionDetailsOutput>;\n /** The AAD authentication settings of the cluster. */\n azureActiveDirectory?: AzureActiveDirectoryOutput;\n /** The certificate to use for securing the cluster. The certificate provided will be used for node to node security within the cluster, SSL certificate for cluster management endpoint and default admin client. */\n certificate?: CertificateDescriptionOutput;\n /** Describes a list of server certificates referenced by common name that are used to secure the cluster. */\n certificateCommonNames?: ServerCertificateCommonNamesOutput;\n /** The list of client certificates referenced by common name that are allowed to manage the cluster. */\n clientCertificateCommonNames?: Array<ClientCertificateCommonNameOutput>;\n /** The list of client certificates referenced by thumbprint that are allowed to manage the cluster. */\n clientCertificateThumbprints?: Array<ClientCertificateThumbprintOutput>;\n /** The Service Fabric runtime version of the cluster. This property can only by set the user when **upgradeMode** is set to 'Manual'. To get list of available Service Fabric versions for new clusters use [ClusterVersion API](./ClusterVersion.md). To get the list of available version for existing clusters use **availableClusterVersions**. */\n clusterCodeVersion?: string;\n /** The Azure Resource Provider endpoint. A system service in the cluster connects to this endpoint. */\n clusterEndpoint?: string;\n /** A service generated unique identifier for the cluster resource. */\n clusterId?: string;\n /**\n * The current state of the cluster.\n *\n * - WaitingForNodes - Indicates that the cluster resource is created and the resource provider is waiting for Service Fabric VM extension to boot up and report to it.\n * - Deploying - Indicates that the Service Fabric runtime is being installed on the VMs. Cluster resource will be in this state until the cluster boots up and system services are up.\n * - BaselineUpgrade - Indicates that the cluster is upgrading to establishes the cluster version. This upgrade is automatically initiated when the cluster boots up for the first time.\n * - UpdatingUserConfiguration - Indicates that the cluster is being upgraded with the user provided configuration.\n * - UpdatingUserCertificate - Indicates that the cluster is being upgraded with the user provided certificate.\n * - UpdatingInfrastructure - Indicates that the cluster is being upgraded with the latest Service Fabric runtime version. This happens only when the **upgradeMode** is set to 'Automatic'.\n * - EnforcingClusterVersion - Indicates that cluster is on a different version than expected and the cluster is being upgraded to the expected version.\n * - UpgradeServiceUnreachable - Indicates that the system service in the cluster is no longer polling the Resource Provider. Clusters in this state cannot be managed by the Resource Provider.\n * - AutoScale - Indicates that the ReliabilityLevel of the cluster is being adjusted.\n * - Ready - Indicates that the cluster is in a stable state.\n *\n */\n clusterState?:\n | \"WaitingForNodes\"\n | \"Deploying\"\n | \"BaselineUpgrade\"\n | \"UpdatingUserConfiguration\"\n | \"UpdatingUserCertificate\"\n | \"UpdatingInfrastructure\"\n | \"EnforcingClusterVersion\"\n | \"UpgradeServiceUnreachable\"\n | \"AutoScale\"\n | \"Ready\";\n /** The storage account information for storing Service Fabric diagnostic logs. */\n diagnosticsStorageAccountConfig?: DiagnosticsStorageAccountConfigOutput;\n /** Indicates if the event store service is enabled. */\n eventStoreServiceEnabled?: boolean;\n /** The list of custom fabric settings to configure the cluster. */\n fabricSettings?: Array<SettingsSectionDescriptionOutput>;\n /** The http management endpoint of the cluster. */\n managementEndpoint: string;\n /** The list of node types in the cluster. */\n nodeTypes: Array<NodeTypeDescriptionOutput>;\n /** The provisioning state of the cluster resource. */\n provisioningState?: \"Updating\" | \"Succeeded\" | \"Failed\" | \"Canceled\";\n /**\n * The reliability level sets the replica set size of system services. Learn about [ReliabilityLevel](https://docs.microsoft.com/azure/service-fabric/service-fabric-cluster-capacity).\n *\n * - None - Run the System services with a target replica set count of 1. This should only be used for test clusters.\n * - Bronze - Run the System services with a target replica set count of 3. This should only be used for test clusters.\n * - Silver - Run the System services with a target replica set count of 5.\n * - Gold - Run the System services with a target replica set count of 7.\n * - Platinum - Run the System services with a target replica set count of 9.\n *\n */\n reliabilityLevel?: \"None\" | \"Bronze\" | \"Silver\" | \"Gold\" | \"Platinum\";\n /** The server certificate used by reverse proxy. */\n reverseProxyCertificate?: CertificateDescriptionOutput;\n /** Describes a list of server certificates referenced by common name that are used to secure the cluster. */\n reverseProxyCertificateCommonNames?: ServerCertificateCommonNamesOutput;\n /** The policy to use when upgrading the cluster. */\n upgradeDescription?: ClusterUpgradePolicyOutput;\n /** The upgrade mode of the cluster when new Service Fabric runtime version is available. */\n upgradeMode?: \"Automatic\" | \"Manual\";\n /** The policy used to clean up unused versions. */\n applicationTypeVersionsCleanupPolicy?: ApplicationTypeVersionsCleanupPolicyOutput;\n /** The VM image VMSS has been configured with. Generic names such as Windows or Linux can be used. */\n vmImage?: string;\n /** This property controls the logical grouping of VMs in upgrade domains (UDs). This property can't be modified if a node type with multiple Availability Zones is already present in the cluster. */\n sfZonalUpgradeMode?: \"Parallel\" | \"Hierarchical\";\n /** This property defines the upgrade mode for the virtual machine scale set, it is mandatory if a node type with multiple Availability Zones is added. */\n vmssZonalUpgradeMode?: \"Parallel\" | \"Hierarchical\";\n /** Indicates if infrastructure service manager is enabled. */\n infrastructureServiceManager?: boolean;\n /** Indicates when new cluster runtime version upgrades will be applied after they are released. By default is Wave0. Only applies when **upgradeMode** is set to 'Automatic'. */\n upgradeWave?: \"Wave0\" | \"Wave1\" | \"Wave2\";\n /** Indicates the start date and time to pause automatic runtime version upgrades on the cluster for an specific period of time on the cluster (UTC). */\n upgradePauseStartTimestampUtc?: string;\n /** Indicates the end date and time to pause automatic runtime version upgrades on the cluster for an specific period of time on the cluster (UTC). */\n upgradePauseEndTimestampUtc?: string;\n /** Boolean to pause automatic runtime version upgrades to the cluster. */\n waveUpgradePaused?: boolean;\n /** Indicates a list of notification channels for cluster events. */\n notifications?: Array<NotificationOutput>;\n}\n\nexport interface ClusterVersionDetailsOutput {\n /** The Service Fabric runtime version of the cluster. */\n codeVersion?: string;\n /** The date of expiry of support of the version. */\n supportExpiryUtc?: string;\n /** Indicates if this version is for Windows or Linux operating system. */\n environment?: \"Windows\" | \"Linux\";\n}\n\nexport interface AzureActiveDirectoryOutput {\n /** Azure active directory tenant id. */\n tenantId?: string;\n /** Azure active directory cluster application id. */\n clusterApplication?: string;\n /** Azure active directory client application id. */\n clientApplication?: string;\n}\n\nexport interface CertificateDescriptionOutput {\n /** Thumbprint of the primary certificate. */\n thumbprint: string;\n /** Thumbprint of the secondary certificate. */\n thumbprintSecondary?: string;\n /** The local certificate store location. */\n x509StoreName?:\n | \"AddressBook\"\n | \"AuthRoot\"\n | \"CertificateAuthority\"\n | \"Disallowed\"\n | \"My\"\n | \"Root\"\n | \"TrustedPeople\"\n | \"TrustedPublisher\";\n}\n\nexport interface ServerCertificateCommonNamesOutput {\n /** The list of server certificates referenced by common name that are used to secure the cluster. */\n commonNames?: Array<ServerCertificateCommonNameOutput>;\n /** The local certificate store location. */\n x509StoreName?:\n | \"AddressBook\"\n | \"AuthRoot\"\n | \"CertificateAuthority\"\n | \"Disallowed\"\n | \"My\"\n | \"Root\"\n | \"TrustedPeople\"\n | \"TrustedPublisher\";\n}\n\nexport interface ServerCertificateCommonNameOutput {\n /** The common name of the server certificate. */\n certificateCommonName: string;\n /** The issuer thumbprint of the server certificate. */\n certificateIssuerThumbprint: string;\n}\n\nexport interface ClientCertificateCommonNameOutput {\n /** Indicates if the client certificate has admin access to the cluster. Non admin clients can perform only read only operations on the cluster. */\n isAdmin: boolean;\n /** The common name of the client certificate. */\n certificateCommonName: string;\n /** The issuer thumbprint of the client certificate. */\n certificateIssuerThumbprint: string;\n}\n\nexport interface ClientCertificateThumbprintOutput {\n /** Indicates if the client certificate has admin access to the cluster. Non admin clients can perform only read only operations on the cluster. */\n isAdmin: boolean;\n /** The thumbprint of the client certificate. */\n certificateThumbprint: string;\n}\n\nexport interface DiagnosticsStorageAccountConfigOutput {\n /** The Azure storage account name. */\n storageAccountName: string;\n /** The protected diagnostics storage key name. */\n protectedAccountKeyName: string;\n /** The secondary protected diagnostics storage key name. If one of the storage account keys is rotated the cluster will fallback to using the other. */\n protectedAccountKeyName2?: string;\n /** The blob endpoint of the azure storage account. */\n blobEndpoint: string;\n /** The queue endpoint of the azure storage account. */\n queueEndpoint: string;\n /** The table endpoint of the azure storage account. */\n tableEndpoint: string;\n}\n\nexport interface SettingsSectionDescriptionOutput {\n /** The section name of the fabric settings. */\n name: string;\n /** The collection of parameters in the section. */\n parameters: Array<SettingsParameterDescriptionOutput>;\n}\n\nexport interface SettingsParameterDescriptionOutput {\n /** The parameter name of fabric setting. */\n name: string;\n /** The parameter value of fabric setting. */\n value: string;\n}\n\nexport interface NodeTypeDescriptionOutput {\n /** The name of the node type. */\n name: string;\n /** The placement tags applied to nodes in the node type, which can be used to indicate where certain services (workload) should run. */\n placementProperties?: Record<string, string>;\n /** The capacity tags applied to the nodes in the node type, the cluster resource manager uses these tags to understand how much resource a node has. */\n capacities?: Record<string, string>;\n /** The TCP cluster management endpoint port. */\n clientConnectionEndpointPort: number;\n /** The HTTP cluster management endpoint port. */\n httpGatewayEndpointPort: number;\n /**\n * The durability level of the node type. Learn about [DurabilityLevel](https://docs.microsoft.com/azure/service-fabric/service-fabric-cluster-capacity).\n *\n * - Bronze - No privileges. This is the default.\n * - Silver - The infrastructure jobs can be paused for a duration of 10 minutes per UD.\n * - Gold - The infrastructure jobs can be paused for a duration of 2 hours per UD. Gold durability can be enabled only on full node VM skus like D15_V2, G5 etc.\n *\n */\n durabilityLevel?: \"Bronze\" | \"Silver\" | \"Gold\";\n /** The range of ports from which cluster assigned port to Service Fabric applications. */\n applicationPorts?: EndpointRangeDescriptionOutput;\n /** The range of ephemeral ports that nodes in this node type should be configured with. */\n ephemeralPorts?: EndpointRangeDescriptionOutput;\n /** The node type on which system services will run. Only one node type should be marked as primary. Primary node type cannot be deleted or changed for existing clusters. */\n isPrimary: boolean;\n /** VMInstanceCount should be 1 to n, where n indicates the number of VM instances corresponding to this nodeType. VMInstanceCount = 0 can be done only in these scenarios: NodeType is a secondary nodeType. Durability = Bronze or Durability >= Bronze and InfrastructureServiceManager = true. If VMInstanceCount = 0, implies the VMs for this nodeType will not be used for the initial cluster size computation. */\n vmInstanceCount: number;\n /** The endpoint used by reverse proxy. */\n reverseProxyEndpointPort?: number;\n /** Indicates if the node type can only host Stateless workloads. */\n isStateless?: boolean;\n /** Indicates if the node type is enabled to support multiple zones. */\n multipleAvailabilityZones?: boolean;\n}\n\nexport interface EndpointRangeDescriptionOutput {\n /** Starting port of a range of ports */\n startPort: number;\n /** End port of a range of ports */\n endPort: number;\n}\n\nexport interface ClusterUpgradePolicyOutput {\n /** If true, then processes are forcefully restarted during upgrade even when the code version has not changed (the upgrade only changes configuration or data). */\n forceRestart?: boolean;\n /** The maximum amount of time to block processing of an upgrade domain and prevent loss of availability when there are unexpected issues. When this timeout expires, processing of the upgrade domain will proceed regardless of availability loss issues. The timeout is reset at the start of each upgrade domain. The timeout can be in either hh:mm:ss or in d.hh:mm:ss.ms format. */\n upgradeReplicaSetCheckTimeout: string;\n /** The length of time to wait after completing an upgrade domain before performing health checks. The duration can be in either hh:mm:ss or in d.hh:mm:ss.ms format. */\n healthCheckWaitDuration: string;\n /** The amount of time that the application or cluster must remain healthy before the upgrade proceeds to the next upgrade domain. The duration can be in either hh:mm:ss or in d.hh:mm:ss.ms format. */\n healthCheckStableDuration: string;\n /** The amount of time to retry health evaluation when the application or cluster is unhealthy before the upgrade rolls back. The timeout can be in either hh:mm:ss or in d.hh:mm:ss.ms format. */\n healthCheckRetryTimeout: string;\n /** The amount of time the overall upgrade has to complete before the upgrade rolls back. The timeout can be in either hh:mm:ss or in d.hh:mm:ss.ms format. */\n upgradeTimeout: string;\n /** The amount of time each upgrade domain has to complete before the upgrade rolls back. The timeout can be in either hh:mm:ss or in d.hh:mm:ss.ms format. */\n upgradeDomainTimeout: string;\n /** The cluster health policy used when upgrading the cluster. */\n healthPolicy: ClusterHealthPolicyOutput;\n /** The cluster delta health policy used when upgrading the cluster. */\n deltaHealthPolicy?: ClusterUpgradeDeltaHealthPolicyOutput;\n}\n\nexport interface ClusterHealthPolicyOutput {\n /**\n * The maximum allowed percentage of unhealthy nodes before reporting an error. For example, to allow 10% of nodes to be unhealthy, this value would be 10.\n *\n * The percentage represents the maximum tolerated percentage of nodes that can be unhealthy before the cluster is considered in error.\n * If the percentage is respected but there is at least one unhealthy node, the health is evaluated as Warning.\n * The percentage is calculated by dividing the number of unhealthy nodes over the total number of nodes in the cluster.\n * The computation rounds up to tolerate one failure on small numbers of nodes. Default percentage is zero.\n *\n * In large clusters, some nodes will always be down or out for repairs, so this percentage should be configured to tolerate that.\n *\n */\n maxPercentUnhealthyNodes?: number;\n /**\n * The maximum allowed percentage of unhealthy applications before reporting an error. For example, to allow 10% of applications to be unhealthy, this value would be 10.\n *\n * The percentage represents the maximum tolerated percentage of applications that can be unhealthy before the cluster is considered in error.\n * If the percentage is respected but there is at least one unhealthy application, the health is evaluated as Warning.\n * This is calculated by dividing the number of unhealthy applications over the total number of application instances in the cluster, excluding applications of application types that are included in the ApplicationTypeHealthPolicyMap.\n * The computation rounds up to tolerate one failure on small numbers of applications. Default percentage is zero.\n *\n */\n maxPercentUnhealthyApplications?: number;\n /** Defines the application health policy map used to evaluate the health of an application or one of its children entities. */\n applicationHealthPolicies?: Record<string, ApplicationHealthPolicyOutput>;\n}\n\nexport interface ApplicationHealthPolicyOutput {\n /** The health policy used by default to evaluate the health of a service type. */\n defaultServiceTypeHealthPolicy?: ServiceTypeHealthPolicyOutput;\n /** The map with service type health policy per service type name. The map is empty by default. */\n serviceTypeHealthPolicies?: Record<string, ServiceTypeHealthPolicyOutput>;\n}\n\nexport interface ServiceTypeHealthPolicyOutput {\n /**\n * The maximum percentage of services allowed to be unhealthy before your application is considered in error.\n *\n */\n maxPercentUnhealthyServices?: number;\n}\n\nexport interface ClusterUpgradeDeltaHealthPolicyOutput {\n /**\n * The maximum allowed percentage of nodes health degradation allowed during cluster upgrades.\n * The delta is measured between the state of the nodes at the beginning of upgrade and the state of the nodes at the time of the health evaluation.\n * The check is performed after every upgrade domain upgrade completion to make sure the global state of the cluster is within tolerated limits.\n *\n */\n maxPercentDeltaUnhealthyNodes: number;\n /**\n * The maximum allowed percentage of upgrade domain nodes health degradation allowed during cluster upgrades.\n * The delta is measured between the state of the upgrade domain nodes at the beginning of upgrade and the state of the upgrade domain nodes at the time of the health evaluation.\n * The check is performed after every upgrade domain upgrade completion for all completed upgrade domains to make sure the state of the upgrade domains is within tolerated limits.\n *\n */\n maxPercentUpgradeDomainDeltaUnhealthyNodes: number;\n /**\n * The maximum allowed percentage of applications health degradation allowed during cluster upgrades.\n * The delta is measured between the state of the applications at the beginning of upgrade and the state of the applications at the time of the health evaluation.\n * The check is performed after every upgrade domain upgrade completion to make sure the global state of the cluster is within tolerated limits. System services are not included in this.\n *\n */\n maxPercentDeltaUnhealthyApplications: number;\n /** Defines the application delta health policy map used to evaluate the health of an application or one of its child entities when upgrading the cluster. */\n applicationDeltaHealthPolicies?: Record<string, ApplicationDeltaHealthPolicyOutput>;\n}\n\nexport interface ApplicationDeltaHealthPolicyOutput {\n /** The delta health policy used by default to evaluate the health of a service type when upgrading the cluster. */\n defaultServiceTypeDeltaHealthPolicy?: ServiceTypeDeltaHealthPolicyOutput;\n /** The map with service type delta health policy per service type name. The map is empty by default. */\n serviceTypeDeltaHealthPolicies?: Record<string, ServiceTypeDeltaHealthPolicyOutput>;\n}\n\nexport interface ServiceTypeDeltaHealthPolicyOutput {\n /**\n * The maximum allowed percentage of services health degradation allowed during cluster upgrades.\n * The delta is measured between the state of the services at the beginning of upgrade and the state of the services at the time of the health evaluation.\n * The check is performed after every upgrade domain upgrade completion to make sure the global state of the cluster is within tolerated limits.\n *\n */\n maxPercentDeltaUnhealthyServices?: number;\n}\n\nexport interface ApplicationTypeVersionsCleanupPolicyOutput {\n /** Number of unused versions per application type to keep. */\n maxUnusedVersionsToKeep: number;\n}\n\nexport interface NotificationOutput {\n /** Indicates if the notification is enabled. */\n isEnabled: boolean;\n /** The category of notification. */\n notificationCategory: \"WaveProgress\";\n /** The level of notification. */\n notificationLevel: \"Critical\" | \"All\";\n /** List of targets that subscribe to the notification. */\n notificationTargets: Array<NotificationTargetOutput>;\n}\n\nexport interface NotificationTargetOutput {\n /** The notification channel indicates the type of receivers subscribed to the notification, either user or subscription. */\n notificationChannel: \"EmailUser\" | \"EmailSubscription\";\n /** List of targets that subscribe to the notification. */\n receivers: Array<string>;\n}\n\nexport interface ResourceOutput {\n /** Azure resource identifier. */\n id?: string;\n /** Azure resource name. */\n name?: string;\n /** Azure resource type. */\n type?: string;\n /** Azure resource location. */\n location: string;\n /** Azure resource tags. */\n tags?: Record<string, string>;\n /** Azure resource etag. */\n etag?: string;\n /** Metadata pertaining to creation and last modification of the resource. */\n systemData?: SystemDataOutput;\n}\n\nexport interface SystemDataOutput {\n /** The identity that created the resource. */\n createdBy?: string;\n /** The type of identity that created the resource. */\n createdByType?: string;\n /** The timestamp of resource creation (UTC). */\n createdAt?: string;\n /** The identity that last modified the resource. */\n lastModifiedBy?: string;\n /** The type of identity that last modified the resource. */\n lastModifiedByType?: string;\n /** The timestamp of resource last modification (UTC). */\n lastModifiedAt?: string;\n}\n\nexport interface ErrorModelOutput {\n /** The error details. */\n error?: ErrorModelErrorOutput;\n}\n\nexport interface ErrorModelErrorOutput {\n /** The error code. */\n code?: string;\n /** The error message. */\n message?: string;\n}\n\nexport interface ClusterListResultOutput {\n value?: Array<ClusterOutput>;\n /** The URL to use for getting the next set of results. */\n nextLink?: string;\n}\n\nexport interface ClusterCodeVersionsListResultOutput {\n value?: Array<ClusterCodeVersionsResultOutput>;\n /** The URL to use for getting the next set of results. */\n nextLink?: string;\n}\n\nexport interface ClusterCodeVersionsResultOutput {\n /** The identification of the result */\n id?: string;\n /** The name of the result */\n name?: string;\n /** The result resource type */\n type?: string;\n /** The detail of the Service Fabric runtime version result */\n properties?: ClusterVersionDetailsOutput;\n}\n\nexport interface UpgradableVersionPathResultOutput {\n supportedPath?: Array<string>;\n}\n\nexport interface OperationListResultOutput {\n /** List of operations supported by the Service Fabric resource provider. */\n value?: Array<OperationResultOutput>;\n /** URL to get the next set of operation list results if there are any. */\n nextLink?: string;\n}\n\nexport interface OperationResultOutput {\n /** The name of the operation. */\n name?: string;\n /** Indicates whether the operation is a data action */\n isDataAction?: boolean;\n /** The object that represents the operation. */\n display?: AvailableOperationDisplayOutput;\n /** Origin result */\n origin?: string;\n /** The URL to use for getting the next set of results. */\n nextLink?: string;\n}\n\nexport interface AvailableOperationDisplayOutput {\n /** The name of the provider. */\n provider?: string;\n /** The resource on which the operation is performed */\n resource?: string;\n /** The operation that can be performed. */\n operation?: string;\n /** Operation description */\n description?: string;\n}\n\nexport interface ApplicationTypeResourceOutput extends ProxyResourceOutput {\n /** The application type name properties */\n properties?: ApplicationTypeResourcePropertiesOutput;\n}\n\nexport interface ApplicationTypeResourcePropertiesOutput {\n /** The current deployment or provisioning state, which only appears in the response. */\n provisioningState?: string;\n}\n\nexport interface ProxyResourceOutput {\n /** Azure resource identifier. */\n id?: string;\n /** Azure resource name. */\n name?: string;\n /** Azure resource type. */\n type?: string;\n /** It will be deprecated in New API, resource location depends on the parent resource. */\n location?: string;\n /** Azure resource tags. */\n tags?: Record<string, string>;\n /** Azure resource etag. */\n etag?: string;\n /** Metadata pertaining to creation and last modification of the resource. */\n systemData?: SystemDataOutput;\n}\n\nexport interface ApplicationTypeResourceListOutput {\n value?: Array<ApplicationTypeResourceOutput>;\n /** URL to get the next set of application type list results if there are any. */\n nextLink?: string;\n}\n\nexport interface ApplicationTypeVersionResourceOutput extends ProxyResourceOutput {\n /** The properties of the application type version resource. */\n properties?: ApplicationTypeVersionResourcePropertiesOutput;\n}\n\nexport interface ApplicationTypeVersionResourcePropertiesOutput {\n /** The current deployment or provisioning state, which only appears in the response */\n provisioningState?: string;\n /** The URL to the application package */\n appPackageUrl: string;\n /** List of application type parameters that can be overridden when creating or updating the application. */\n defaultParameterList?: Record<string, string>;\n}\n\nexport interface ApplicationTypeVersionResourceListOutput {\n value?: Array<ApplicationTypeVersionResourceOutput>;\n /** URL to get the next set of application type version list results if there are any. */\n nextLink?: string;\n}\n\nexport interface ApplicationResourceOutput extends ProxyResourceOutput {\n /** Describes the managed identities for an Azure resource. */\n identity?: ManagedIdentityOutput;\n /** The application resource properties. */\n properties?: ApplicationResourcePropertiesOutput;\n}\n\nexport interface ManagedIdentityOutput {\n /** The principal id of the managed identity. This property will only be provided for a system assigned identity. */\n principalId?: string;\n /** The tenant id of the managed identity. This property will only be provided for a system assigned identity. */\n tenantId?: string;\n /** The type of managed identity for the resource. */\n type?: \"SystemAssigned\" | \"UserAssigned\" | \"SystemAssigned, UserAssigned\" | \"None\";\n /**\n * The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form:\n * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.\n *\n */\n userAssignedIdentities?: Record<string, UserAssignedIdentityOutput>;\n}\n\nexport interface UserAssignedIdentityOutput {\n /** The principal id of user assigned identity. */\n principalId?: string;\n /** The client id of user assigned identity. */\n clientId?: string;\n}\n\nexport interface ApplicationResourcePropertiesOutput\n extends ApplicationResourceUpdatePropertiesOutput {\n /** The current deployment or provisioning state, which only appears in the response */\n provisioningState?: string;\n /** The application type name as defined in the application manifest. */\n typeName?: string;\n}\n\nexport interface ApplicationResourceUpdatePropertiesOutput {\n /** The version of the application type as defined in the application manifest. */\n typeVersion?: string;\n /** List of application parameters with overridden values from their default values specified in the application manifest. */\n parameters?: Record<string, string>;\n /** Describes the policy for a monitored application upgrade. */\n upgradePolicy?: ApplicationUpgradePolicyOutput;\n /** The minimum number of nodes where Service Fabric will reserve capacity for this application. Note that this does not mean that the services of this application will be placed on all of those nodes. If this property is set to zero, no capacity will be reserved. The value of this property cannot be more than the value of the MaximumNodes property. */\n minimumNodes?: number;\n /** The maximum number of nodes where Service Fabric will reserve capacity for this application. Note that this does not mean that the services of this application will be placed on all of those nodes. By default, the value of this property is zero and it means that the services can be placed on any node. */\n maximumNodes?: number;\n /** Remove the current application capacity settings. */\n removeApplicationCapacity?: boolean;\n /** List of application capacity metric description. */\n metrics?: Array<ApplicationMetricDescriptionOutput>;\n /** List of user assigned identities for the application, each mapped to a friendly name. */\n managedIdentities?: Array<ApplicationUserAssignedIdentityOutput>;\n}\n\nexport interface ApplicationUpgradePolicyOutput {\n /** The maximum amount of time to block processing of an upgrade domain and prevent loss of availability when there are unexpected issues. When this timeout expires, processing of the upgrade domain will proceed regardless of availability loss issues. The timeout is reset at the start of each upgrade domain. Valid values are between 0 and 42949672925 inclusive. (unsigned 32-bit integer). */\n upgradeReplicaSetCheckTimeout?: string;\n /** If true, then processes are forcefully restarted during upgrade even when the code version has not changed (the upgrade only changes configuration or data). */\n forceRestart?: boolean;\n /** The policy used for monitoring the application upgrade */\n rollingUpgradeMonitoringPolicy?: ArmRollingUpgradeMonitoringPolicyOutput;\n /**\n * Defines a health policy used to evaluate the health of an application or one of its children entities.\n *\n */\n applicationHealthPolicy?: ArmApplicationHealthPolicyOutput;\n /** The mode used to monitor health during a rolling upgrade. The values are UnmonitoredAuto, UnmonitoredManual, and Monitored. */\n upgradeMode?: \"Invalid\" | \"UnmonitoredAuto\" | \"UnmonitoredManual\" | \"Monitored\";\n /** Determines whether the application should be recreated on update. If value=true, the rest of the upgrade policy parameters are not allowed and it will result in availability loss. */\n recreateApplication?: boolean;\n}\n\nexport interface ArmRollingUpgradeMonitoringPolicyOutput {\n /** The activation Mode of the service package */\n failureAction?: \"Rollback\" | \"Manual\";\n /** The amount of time to wait after completing an upgrade domain before applying health policies. It is first interpreted as a string representing an ISO 8601 duration. If that fails, then it is interpreted as a number representing the total number of milliseconds. */\n healthCheckWaitDuration?: string;\n /** The amount of time that the application or cluster must remain healthy before the upgrade proceeds to the next upgrade domain. It is first interpreted as a string representing an ISO 8601 duration. If that fails, then it is interpreted as a number representing the total number of milliseconds. */\n healthCheckStableDuration?: string;\n /** The amount of time to retry health evaluation when the application or cluster is unhealthy before FailureAction is executed. It is first interpreted as a string representing an ISO 8601 duration. If that fails, then it is interpreted as a number representing the total number of milliseconds. */\n healthCheckRetryTimeout?: string;\n /** The amount of time the overall upgrade has to complete before FailureAction is executed. It is first interpreted as a string representing an ISO 8601 duration. If that fails, then it is interpreted as a number representing the total number of milliseconds. */\n upgradeTimeout?: string;\n /** The amount of time each upgrade domain has to complete before FailureAction is executed. It is first interpreted as a string representing an ISO 8601 duration. If that fails, then it is interpreted as a number representing the total number of milliseconds. */\n upgradeDomainTimeout?: string;\n}\n\nexport interface ArmApplicationHealthPolicyOutput {\n /** Indicates whether warnings are treated with the same severity as errors. */\n considerWarningAsError?: boolean;\n /**\n * The maximum allowed percentage of unhealthy deployed applications. Allowed values are Byte values from zero to 100.\n * The percentage represents the maximum tolerated percentage of deployed applications that can be unhealthy before the application is considered in error.\n * This is calculated by dividing the number of unhealthy deployed applications over the number of nodes where the application is currently deployed on in the cluster.\n * The computation rounds up to tolerate one failure on small numbers of nodes. Default percentage is zero.\n *\n */\n maxPercentUnhealthyDeployedApplications?: number;\n /** The health policy used by default to evaluate the health of a service type. */\n defaultServiceTypeHealthPolicy?: ArmServiceTypeHealthPolicyOutput;\n /** The map with service type health policy per service type name. The map is empty by default. */\n serviceTypeHealthPolicyMap?: Record<string, ArmServiceTypeHealthPolicyOutput>;\n}\n\nexport interface ArmServiceTypeHealthPolicyOutput {\n /**\n * The maximum percentage of services allowed to be unhealthy before your application is considered in error.\n *\n */\n maxPercentUnhealthyServices?: number;\n /**\n * The maximum percentage of partitions per service allowed to be unhealthy before your application is considered in error.\n *\n */\n maxPercentUnhealthyPartitionsPerService?: number;\n /**\n * The maximum percentage of replicas per partition allowed to be unhealthy before your application is considered in error.\n *\n */\n maxPercentUnhealthyReplicasPerPartition?: number;\n}\n\nexport interface ApplicationMetricDescriptionOutput {\n /** The name of the metric. */\n name?: string;\n /**\n * The maximum node capacity for Service Fabric application.\n * This is the maximum Load for an instance of this application on a single node. Even if the capacity of node is greater than this value, Service Fabric will limit the total load of services within the application on each node to this value.\n * If set to zero, capacity for this metric is unlimited on each node.\n * When creating a new application with application capacity defined, the product of MaximumNodes and this value must always be smaller than or equal to TotalApplicationCapacity.\n * When updating existing application with application capacity, the product of MaximumNodes and this value must always be smaller than or equal to TotalApplicationCapacity.\n *\n */\n maximumCapacity?: number;\n /**\n * The node reservation capacity for Service Fabric application.\n * This is the amount of load which is reserved on nodes which have instances of this application.\n * If MinimumNodes is specified, then the product of these values will be the capacity reserved in the cluster for the application.\n * If set to zero, no capacity is reserved for this metric.\n * When setting application capacity or when updating application capacity; this value must be smaller than or equal to MaximumCapacity for each metric.\n *\n */\n reservationCapacity?: number;\n /**\n * The total metric capacity for Service Fabric application.\n * This is the total metric capacity for this application in the cluster. Service Fabric will try to limit the sum of loads of services within the application to this value.\n * When creating a new application with application capacity defined, the product of MaximumNodes and MaximumCapacity must always be smaller than or equal to this value.\n *\n */\n totalApplicationCapacity?: number;\n}\n\nexport interface ApplicationUserAssignedIdentityOutput {\n /** The friendly name of user assigned identity. */\n name: string;\n /** The principal id of user assigned identity. */\n principalId: string;\n}\n\nexport interface ApplicationResourceUpdateOutput extends ProxyResourceOutput {\n /** The application resource properties for patch operations. */\n properties?: ApplicationResourceUpdatePropertiesOutput;\n}\n\nexport interface ApplicationResourceListOutput {\n value?: Array<ApplicationResourceOutput>;\n /** URL to get the next set of application list results if there are any. */\n nextLink?: string;\n}\n\nexport interface ServiceResourceOutput extends ProxyResourceOutput {\n /** The service resource properties. */\n properties?: ServiceResourcePropertiesOutput;\n}\n\nexport interface ServiceResourcePropertiesOutputParent extends ServiceResourcePropertiesBaseOutput {\n /** The current deployment or provisioning state, which only appears in the response */\n provisioningState?: string;\n /** The name of the service type */\n serviceTypeName?: string;\n /** Describes how the service is partitioned. */\n partitionDescription?: PartitionSchemeDescriptionOutput;\n /** The activation Mode of the service package */\n servicePackageActivationMode?: \"SharedProcess\" | \"ExclusiveProcess\";\n /** Dns name used for the service. If this is specified, then the service can be accessed via its DNS name instead of service name. */\n serviceDnsName?: string;\n serviceKind: \"ServiceResourceProperties\" | \"Stateful\" | \"Stateless\";\n}\n\nexport interface PartitionSchemeDescriptionOutputParent {\n partitionScheme: \"PartitionSchemeDescription\" | \"Named\" | \"Singleton\" | \"UniformInt64Range\";\n}\n\nexport interface ServiceResourcePropertiesBaseOutput {\n /** The placement constraints as a string. Placement constraints are boolean expressions on node properties and allow for restricting a service to particular nodes based on the service requirements. For example, to place a service on nodes where NodeType is blue specify the following: \"NodeColor == blue)\". */\n placementConstraints?: string;\n /** A list that describes the correlation of the service with other services. */\n correlationScheme?: Array<ServiceCorrelationDescriptionOutput>;\n /** The service load metrics is given as an array of ServiceLoadMetricDescription objects. */\n serviceLoadMetrics?: Array<ServiceLoadMetricDescriptionOutput>;\n /** A list that describes the correlation of the service with other services. */\n servicePlacementPolicies?: Array<ServicePlacementPolicyDescriptionOutput>;\n /** Specifies the move cost for the service. */\n defaultMoveCost?: \"Zero\" | \"Low\" | \"Medium\" | \"High\";\n}\n\nexport interface ServiceCorrelationDescriptionOutput {\n /** The ServiceCorrelationScheme which describes the relationship between this service and the service specified via ServiceName. */\n scheme: \"Invalid\" | \"Affinity\" | \"AlignedAffinity\" | \"NonAlignedAffinity\";\n /** The name of the service that the correlation relationship is established with. */\n serviceName: string;\n}\n\nexport interface ServiceLoadMetricDescriptionOutput {\n /** The name of the metric. If the service chooses to report load during runtime, the load metric name should match the name that is specified in Name exactly. Note that metric names are case sensitive. */\n name: string;\n /** The service load metric relative weight, compared to other metrics configured for this service, as a number. */\n weight?: \"Zero\" | \"Low\" | \"Medium\" | \"High\";\n /** Used only for Stateful services. The default amount of load, as a number, that this service creates for this metric when it is a Primary replica. */\n primaryDefaultLoad?: number;\n /** Used only for Stateful services. The default amount of load, as a number, that this service creates for this metric when it is a Secondary replica. */\n secondaryDefaultLoad?: number;\n /** Used only for Stateless services. The default amount of load, as a number, that this service creates for this metric. */\n defaultLoad?: number;\n}\n\nexport interface ServicePlacementPolicyDescriptionOutput {\n type: \"ServicePlacementPolicyDescription\";\n}\n\nexport interface ServiceResourceUpdateOutput extends ProxyResourceOutput {\n /** The service resource properties for patch operations. */\n properties?: ServiceResourceUpdatePropertiesOutput;\n}\n\nexport interface ServiceResourceUpdatePropertiesOutputParent\n extends ServiceResourcePropertiesBaseOutput {\n serviceKind: \"ServiceResourceUpdateProperties\" | \"Stateful\" | \"Stateless\";\n}\n\nexport interface ServiceResourceListOutput {\n value?: Array<ServiceResourceOutput>;\n /** URL to get the next set of service list results if there are any. */\n nextLink?: string;\n}\n\nexport interface NamedPartitionSchemeDescriptionOutput\n extends PartitionSchemeDescriptionOutputParent {\n /** The number of partitions. */\n count: number;\n /** Array of size specified by the ‘count’ parameter, for the names of the partitions. */\n names: Array<string>;\n partitionScheme: \"Named\";\n}\n\nexport interface SingletonPartitionSchemeDescriptionOutput\n extends PartitionSchemeDescriptionOutputParent {\n partitionScheme: \"Singleton\";\n}\n\nexport interface StatefulServicePropertiesOutput extends ServiceResourcePropertiesOutputParent {\n /** A flag indicating whether this is a persistent service which stores states on the local disk. If it is then the value of this property is true, if not it is false. */\n hasPersistedState?: boolean;\n /** The target replica set size as a number. */\n targetReplicaSetSize?: number;\n /** The minimum replica set size as a number. */\n minReplicaSetSize?: number;\n /** The duration between when a replica goes down and when a new replica is created, represented in ISO 8601 format (hh:mm:ss.s). */\n replicaRestartWaitDuration?: string;\n /** The maximum duration for which a partition is allowed to be in a state of quorum loss, represented in ISO 8601 format (hh:mm:ss.s). */\n quorumLossWaitDuration?: string;\n /** The definition on how long StandBy replicas should be maintained before being removed, represented in ISO 8601 format (hh:mm:ss.s). */\n standByReplicaKeepDuration?: string;\n serviceKind: \"Stateful\";\n}\n\nexport interface StatefulServiceUpdatePropertiesOutput\n extends ServiceResourceUpdatePropertiesOutputParent {\n /** The target replica set size as a number. */\n targetReplicaSetSize?: number;\n /** The minimum replica set size as a number. */\n minReplicaSetSize?: number;\n /** The duration between when a replica goes down and when a new replica is created, represented in ISO 8601 format (hh:mm:ss.s). */\n replicaRestartWaitDuration?: string;\n /** The maximum duration for which a partition is allowed to be in a state of quorum loss, represented in ISO 8601 format (hh:mm:ss.s). */\n quorumLossWaitDuration?: string;\n /** The definition on how long StandBy replicas should be maintained before being removed, represented in ISO 8601 format (hh:mm:ss.s). */\n standByReplicaKeepDuration?: string;\n serviceKind: \"Stateful\";\n}\n\nexport interface StatelessServicePropertiesOutput extends ServiceResourcePropertiesOutputParent {\n /** The instance count. */\n instanceCount?: number;\n /** Delay duration for RequestDrain feature to ensures that the endpoint advertised by the stateless instance is removed before the delay starts prior to closing the instance. This delay enables existing requests to drain gracefully before the instance actually goes down (https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-application-upgrade-advanced#avoid-connection-drops-during-stateless-service-planned-downtime-preview). It is represented in ISO 8601 format (hh:mm:ss.s). */\n instanceCloseDelayDuration?: string;\n serviceKind: \"Stateless\";\n}\n\nexport interface StatelessServiceUpdatePropertiesOutput\n extends ServiceResourceUpdatePropertiesOutputParent {\n /** The instance count. */\n instanceCount?: number;\n /** Delay duration for RequestDrain feature to ensures that the endpoint advertised by the stateless instance is removed before the delay starts prior to closing the instance. This delay enables existing requests to drain gracefully before the instance actually goes down (https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-application-upgrade-advanced#avoid-connection-drops-during-stateless-service-planned-downtime-preview). It is first interpreted as a string representing an ISO 8601 duration. It is represented in ISO 8601 format (hh:mm:ss.s). */\n instanceCloseDelayDuration?: string;\n serviceKind: \"Stateless\";\n}\n\nexport interface UniformInt64RangePartitionSchemeDescriptionOutput\n extends PartitionSchemeDescriptionOutputParent {\n /** The number of partitions. */\n count: number;\n /**\n * String indicating the lower bound of the partition key range that\n * should be split between the partition ‘count’\n *\n */\n lowKey: string;\n /**\n * String indicating the upper bound of the partition key range that\n * should be split between the partition ‘count’\n *\n */\n highKey: string;\n partitionScheme: \"UniformInt64Range\";\n}\n\nexport type ServiceResourcePropertiesOutput =\n | StatefulServicePropertiesOutput\n | StatelessServicePropertiesOutput;\nexport type PartitionSchemeDescriptionOutput =\n | NamedPartitionSchemeDescriptionOutput\n | SingletonPartitionSchemeDescriptionOutput\n | UniformInt64RangePartitionSchemeDescriptionOutput;\nexport type ServiceResourceUpdatePropertiesOutput =\n | StatefulServiceUpdatePropertiesOutput\n | StatelessServiceUpdatePropertiesOutput;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"paginateHelper.js","sourceRoot":"","sources":["../../src/paginateHelper.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAA2C,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AACpG,OAAO,EAAiC,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAyCzF;;;;;;GAMG;AACH,MAAM,UAAU,QAAQ,CACtB,MAAc,EACd,eAA0B,EAC1B,UAAoC,EAAE;IAItC,IAAI,QAAQ,GAAG,IAAI,CAAC;IACpB,MAAM,QAAQ,GAAG,OAAO,CAAC;IACzB,MAAM,YAAY,GAAG,UAAU,CAAC;IAChC,MAAM,EAAE,aAAa,EAAE,GAAG,OAAO,CAAC;IAClC,MAAM,WAAW,GAA4B;QAC3C,aAAa,EAAE,EAAE;QACjB,OAAO,EACL,OAAO,aAAa,KAAK,UAAU;YACjC,CAAC,CAAC,aAAa;YACf,CAAC,CAAC,KAAK,EAAE,QAAgB,EAAE,EAAE;gBACzB,MAAM,MAAM,GAAG,QAAQ,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,MAAM,MAAM,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,GAAG,EAAE,CAAC;gBACvF,QAAQ,GAAG,KAAK,CAAC;gBACjB,kBAAkB,CAAC,MAAM,CAAC,CAAC;gBAC3B,MAAM,QAAQ,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;gBACxD,MAAM,MAAM,GAAG,WAAW,CAAW,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;gBAC5D,OAAO;oBACL,IAAI,EAAE,MAAM;oBACZ,YAAY,EAAE,QAAQ;iBACvB,CAAC;YACJ,CAAC;KACR,CAAC;IAEF,OAAO,qBAAqB,CAAC,WAAW,CAAC,CAAC;AAC5C,CAAC;AAED;;GAEG;AACH,SAAS,WAAW,CAAC,IAAa,EAAE,YAAqB;IACvD,IAAI,CAAC,YAAY,EAAE;QACjB,OAAO,SAAS,CAAC;KAClB;IAED,MAAM,QAAQ,GAAI,IAAgC,CAAC,YAAY,CAAC,CAAC;IAEjE,IAAI,OAAO,QAAQ,KAAK,QAAQ,IAAI,OAAO,QAAQ,KAAK,WAAW,EAAE;QACnE,MAAM,IAAI,KAAK,CAAC,iBAAiB,YAAY,kCAAkC,CAAC,CAAC;KAClF;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED;;GAEG;AACH,SAAS,WAAW,CAAc,IAAa,EAAE,QAAgB;IAC/D,MAAM,KAAK,GAAI,IAAgC,CAAC,QAAQ,CAAQ,CAAC;IAEjE,qEAAqE;IACrE,qEAAqE;IACrE,iDAAiD;IACjD,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;QACzB,MAAM,IAAI,KAAK,CACb,kFAAkF,QAAQ,EAAE,CAC7F,CAAC;KACH;IAED,OAAO,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,EAAE,CAAC;AACrB,CAAC;AAED;;GAEG;AACH,SAAS,kBAAkB,CAAC,QAA+B;IACzD,MAAM,kBAAkB,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IAClG,IAAI,CAAC,kBAAkB,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE;QACjD,MAAM,eAAe,CACnB,gDAAgD,QAAQ,CAAC,MAAM,EAAE,EACjE,QAAQ,CACT,CAAC;KACH;AACH,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { PagedAsyncIterableIterator, PagedResult, getPagedAsyncIterator } from \"@azure/core-paging\";\nimport { Client, PathUncheckedResponse, createRestError } from \"@azure-rest/core-client\";\n\n/**\n * Helper type to extract the type of an array\n */\nexport type GetArrayType<T> = T extends Array<infer TData> ? TData : never;\n\n/**\n * The type of a custom function that defines how to get a page and a link to the next one if any.\n */\nexport type GetPage<TPage> = (\n pageLink: string,\n maxPageSize?: number\n) => Promise<{\n page: TPage;\n nextPageLink?: string;\n}>;\n\n/**\n * Options for the paging helper\n */\nexport interface PagingOptions<TResponse> {\n /**\n * Custom function to extract pagination details for crating the PagedAsyncIterableIterator\n */\n customGetPage?: GetPage<PaginateReturn<TResponse>[]>;\n}\n\n/**\n * Helper type to infer the Type of the paged elements from the response type\n * This type is generated based on the swagger information for x-ms-pageable\n * specifically on the itemName property which indicates the property of the response\n * where the page items are found. The default value is `value`.\n * This type will allow us to provide strongly typed Iterator based on the response we get as second parameter\n */\nexport type PaginateReturn<TResult> = TResult extends {\n body: { value?: infer TPage };\n}\n ? GetArrayType<TPage>\n : Array<unknown>;\n\n/**\n * Helper to paginate results from an initial response that follows the specification of Autorest `x-ms-pageable` extension\n * @param client - Client to use for sending the next page requests\n * @param initialResponse - Initial response containing the nextLink and current page of elements\n * @param customGetPage - Optional - Function to define how to extract the page and next link to be used to paginate the results\n * @returns - PagedAsyncIterableIterator to iterate the elements\n */\nexport function paginate<TResponse extends PathUncheckedResponse>(\n client: Client,\n initialResponse: TResponse,\n options: PagingOptions<TResponse> = {}\n): PagedAsyncIterableIterator<PaginateReturn<TResponse>> {\n // Extract element type from initial response\n type TElement = PaginateReturn<TResponse>;\n let firstRun = true;\n const itemName = \"value\";\n const nextLinkName = \"nextLink\";\n const { customGetPage } = options;\n const pagedResult: PagedResult<TElement[]> = {\n firstPageLink: \"\",\n getPage:\n typeof customGetPage === \"function\"\n ? customGetPage\n : async (pageLink: string) => {\n const result = firstRun ? initialResponse : await client.pathUnchecked(pageLink).get();\n firstRun = false;\n checkPagingRequest(result);\n const nextLink = getNextLink(result.body, nextLinkName);\n const values = getElements<TElement>(result.body, itemName);\n return {\n page: values,\n nextPageLink: nextLink,\n };\n },\n };\n\n return getPagedAsyncIterator(pagedResult);\n}\n\n/**\n * Gets for the value of nextLink in the body\n */\nfunction getNextLink(body: unknown, nextLinkName?: string): string | undefined {\n if (!nextLinkName) {\n return undefined;\n }\n\n const nextLink = (body as Record<string, unknown>)[nextLinkName];\n\n if (typeof nextLink !== \"string\" && typeof nextLink !== \"undefined\") {\n throw new Error(`Body Property ${nextLinkName} should be a string or undefined`);\n }\n\n return nextLink;\n}\n\n/**\n * Gets the elements of the current request in the body.\n */\nfunction getElements<T = unknown>(body: unknown, itemName: string): T[] {\n const value = (body as Record<string, unknown>)[itemName] as T[];\n\n // value has to be an array according to the x-ms-pageable extension.\n // The fact that this must be an array is used above to calculate the\n // type of elements in the page in PaginateReturn\n if (!Array.isArray(value)) {\n throw new Error(\n `Couldn't paginate response\\n Body doesn't contain an array property with name: ${itemName}`\n );\n }\n\n return value ?? [];\n}\n\n/**\n * Checks if a request failed\n */\nfunction checkPagingRequest(response: PathUncheckedResponse): void {\n const Http2xxStatusCodes = [\"200\", \"201\", \"202\", \"203\", \"204\", \"205\", \"206\", \"207\", \"208\", \"226\"];\n if (!Http2xxStatusCodes.includes(response.status)) {\n throw createRestError(\n `Pagination failed with unexpected statusCode ${response.status}`,\n response\n );\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../src/parameters.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { RequestParameters } from \"@azure-rest/core-client\";\nimport {\n ApplicationResource,\n ApplicationResourceUpdate,\n ApplicationTypeResource,\n ApplicationTypeVersionResource,\n Cluster,\n ClusterUpdateParameters,\n ServiceResource,\n ServiceResourceUpdate,\n UpgradableVersionsDescription,\n} from \"./models\";\n\nexport type ClustersGetParameters = RequestParameters;\n\nexport interface ClustersCreateOrUpdateBodyParam {\n /** The cluster resource. */\n body: Cluster;\n}\n\nexport interface ClustersCreateOrUpdateMediaTypesParam {\n /** Request content type */\n contentType?: \"application/json\";\n}\n\nexport type ClustersCreateOrUpdateParameters = ClustersCreateOrUpdateMediaTypesParam &\n ClustersCreateOrUpdateBodyParam &\n RequestParameters;\n\nexport interface ClustersUpdateBodyParam {\n /** The parameters which contains the property value and property name which used to update the cluster configuration. */\n body: ClusterUpdateParameters;\n}\n\nexport interface ClustersUpdateMediaTypesParam {\n /** Request content type */\n contentType?: \"application/json\";\n}\n\nexport type ClustersUpdateParameters = ClustersUpdateMediaTypesParam &\n ClustersUpdateBodyParam &\n RequestParameters;\nexport type ClustersDeleteParameters = RequestParameters;\nexport type ClustersListByResourceGroupParameters = RequestParameters;\nexport type ClustersListParameters = RequestParameters;\n\nexport interface ClustersListUpgradableVersionsBodyParam {\n /** The upgrade path description with target version. */\n body?: UpgradableVersionsDescription;\n}\n\nexport interface ClustersListUpgradableVersionsMediaTypesParam {\n /** Request content type */\n contentType?: \"application/json\";\n}\n\nexport type ClustersListUpgradableVersionsParameters = ClustersListUpgradableVersionsMediaTypesParam &\n ClustersListUpgradableVersionsBodyParam &\n RequestParameters;\nexport type ClusterVersionsGetParameters = RequestParameters;\nexport type ClusterVersionsGetByEnvironmentParameters = RequestParameters;\nexport type ClusterVersionsListParameters = RequestParameters;\nexport type ClusterVersionsListByEnvironmentParameters = RequestParameters;\nexport type OperationsListParameters = RequestParameters;\nexport type ApplicationTypesGetParameters = RequestParameters;\n\nexport interface ApplicationTypesCreateOrUpdateBodyParam {\n /** The application type name resource. */\n body: ApplicationTypeResource;\n}\n\nexport interface ApplicationTypesCreateOrUpdateMediaTypesParam {\n /** Request content type */\n contentType?: \"application/json\";\n}\n\nexport type ApplicationTypesCreateOrUpdateParameters = ApplicationTypesCreateOrUpdateMediaTypesParam &\n ApplicationTypesCreateOrUpdateBodyParam &\n RequestParameters;\nexport type ApplicationTypesDeleteParameters = RequestParameters;\nexport type ApplicationTypesListParameters = RequestParameters;\nexport type ApplicationTypeVersionsGetParameters = RequestParameters;\n\nexport interface ApplicationTypeVersionsCreateOrUpdateBodyParam {\n /** The application type version resource. */\n body: ApplicationTypeVersionResource;\n}\n\nexport interface ApplicationTypeVersionsCreateOrUpdateMediaTypesParam {\n /** Request content type */\n contentType?: \"application/json\";\n}\n\nexport type ApplicationTypeVersionsCreateOrUpdateParameters = ApplicationTypeVersionsCreateOrUpdateMediaTypesParam &\n ApplicationTypeVersionsCreateOrUpdateBodyParam &\n RequestParameters;\nexport type ApplicationTypeVersionsDeleteParameters = RequestParameters;\nexport type ApplicationTypeVersionsListParameters = RequestParameters;\nexport type ApplicationsGetParameters = RequestParameters;\n\nexport interface ApplicationsCreateOrUpdateBodyParam {\n /** The application resource. */\n body: ApplicationResource;\n}\n\nexport interface ApplicationsCreateOrUpdateMediaTypesParam {\n /** Request content type */\n contentType?: \"application/json\";\n}\n\nexport type ApplicationsCreateOrUpdateParameters = ApplicationsCreateOrUpdateMediaTypesParam &\n ApplicationsCreateOrUpdateBodyParam &\n RequestParameters;\n\nexport interface ApplicationsUpdateBodyParam {\n /** The application resource for patch operations. */\n body: ApplicationResourceUpdate;\n}\n\nexport interface ApplicationsUpdateMediaTypesParam {\n /** Request content type */\n contentType?: \"application/json\";\n}\n\nexport type ApplicationsUpdateParameters = ApplicationsUpdateMediaTypesParam &\n ApplicationsUpdateBodyParam &\n RequestParameters;\nexport type ApplicationsDeleteParameters = RequestParameters;\nexport type ApplicationsListParameters = RequestParameters;\nexport type ServicesGetParameters = RequestParameters;\n\nexport interface ServicesCreateOrUpdateBodyParam {\n /** The service resource. */\n body: ServiceResource;\n}\n\nexport interface ServicesCreateOrUpdateMediaTypesParam {\n /** Request content type */\n contentType?: \"application/json\";\n}\n\nexport type ServicesCreateOrUpdateParameters = ServicesCreateOrUpdateMediaTypesParam &\n ServicesCreateOrUpdateBodyParam &\n RequestParameters;\n\nexport interface ServicesUpdateBodyParam {\n /** The service resource for patch operations. */\n body: ServiceResourceUpdate;\n}\n\nexport interface ServicesUpdateMediaTypesParam {\n /** Request content type */\n contentType?: \"application/json\";\n}\n\nexport type ServicesUpdateParameters = ServicesUpdateMediaTypesParam &\n ServicesUpdateBodyParam &\n RequestParameters;\nexport type ServicesDeleteParameters = RequestParameters;\nexport type ServicesListParameters = RequestParameters;\n"]}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation.
|
|
2
|
-
// Licensed under the MIT license.
|
|
3
|
-
import { LroEngine, } from "@azure/core-lro";
|
|
4
|
-
/**
|
|
5
|
-
* Helper function that builds a Poller object to help polling a long running operation.
|
|
6
|
-
* @param client - Client to use for sending the request to get additional pages.
|
|
7
|
-
* @param initialResponse - The initial response.
|
|
8
|
-
* @param options - Options to set a resume state or custom polling interval.
|
|
9
|
-
* @returns - A poller object to poll for operation state updates and eventually get the final response.
|
|
10
|
-
*/
|
|
11
|
-
export function getLongRunningPoller(client, initialResponse, options = {}) {
|
|
12
|
-
const poller = {
|
|
13
|
-
requestMethod: initialResponse.request.method,
|
|
14
|
-
requestPath: initialResponse.request.url,
|
|
15
|
-
sendInitialRequest: async () => {
|
|
16
|
-
// In the case of Rest Clients we are building the LRO poller object from a response that's the reason
|
|
17
|
-
// we are not triggering the initial request here, just extracting the information from the
|
|
18
|
-
// response we were provided.
|
|
19
|
-
return getLroResponse(initialResponse);
|
|
20
|
-
},
|
|
21
|
-
sendPollRequest: async (path) => {
|
|
22
|
-
// This is the callback that is going to be called to poll the service
|
|
23
|
-
// to get the latest status. We use the client provided and the polling path
|
|
24
|
-
// which is an opaque URL provided by caller, the service sends this in one of the following headers: operation-location, azure-asyncoperation or location
|
|
25
|
-
// depending on the lro pattern that the service implements. If non is provided we default to the initial path.
|
|
26
|
-
const response = await client.pathUnchecked(path !== null && path !== void 0 ? path : initialResponse.request.url).get();
|
|
27
|
-
const lroResponse = getLroResponse(response);
|
|
28
|
-
lroResponse.rawResponse.headers["x-ms-original-url"] = initialResponse.request.url;
|
|
29
|
-
return lroResponse;
|
|
30
|
-
},
|
|
31
|
-
};
|
|
32
|
-
return new LroEngine(poller, options);
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Converts a Rest Client response to a response that the LRO engine knows about
|
|
36
|
-
* @param response - a rest client http response
|
|
37
|
-
* @returns - An LRO response that the LRO engine can work with
|
|
38
|
-
*/
|
|
39
|
-
function getLroResponse(response) {
|
|
40
|
-
if (Number.isNaN(response.status)) {
|
|
41
|
-
throw new TypeError(`Status code of the response is not a number. Value: ${response.status}`);
|
|
42
|
-
}
|
|
43
|
-
return {
|
|
44
|
-
flatResponse: response,
|
|
45
|
-
rawResponse: Object.assign(Object.assign({}, response), { statusCode: Number.parseInt(response.status), body: response.body }),
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
//# sourceMappingURL=pollingHelper.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pollingHelper.js","sourceRoot":"","sources":["../../src/pollingHelper.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAEL,SAAS,GAKV,MAAM,iBAAiB,CAAC;AAEzB;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAClC,MAAc,EACd,eAAwB,EACxB,UAAkE,EAAE;IAEpE,MAAM,MAAM,GAAkC;QAC5C,aAAa,EAAE,eAAe,CAAC,OAAO,CAAC,MAAM;QAC7C,WAAW,EAAE,eAAe,CAAC,OAAO,CAAC,GAAG;QACxC,kBAAkB,EAAE,KAAK,IAAI,EAAE;YAC7B,sGAAsG;YACtG,2FAA2F;YAC3F,6BAA6B;YAC7B,OAAO,cAAc,CAAC,eAAe,CAAC,CAAC;QACzC,CAAC;QACD,eAAe,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;YAC9B,sEAAsE;YACtE,4EAA4E;YAC5E,0JAA0J;YAC1J,+GAA+G;YAC/G,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,aAAa,CAAC,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,eAAe,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC;YACvF,MAAM,WAAW,GAAG,cAAc,CAAC,QAAmB,CAAC,CAAC;YACxD,WAAW,CAAC,WAAW,CAAC,OAAO,CAAC,mBAAmB,CAAC,GAAG,eAAe,CAAC,OAAO,CAAC,GAAG,CAAC;YACnF,OAAO,WAAW,CAAC;QACrB,CAAC;KACF,CAAC;IAEF,OAAO,IAAI,SAAS,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AACxC,CAAC;AAED;;;;GAIG;AACH,SAAS,cAAc,CAA+B,QAAiB;IACrE,IAAI,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE;QACjC,MAAM,IAAI,SAAS,CAAC,uDAAuD,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC;KAC/F;IAED,OAAO;QACL,YAAY,EAAE,QAAQ;QACtB,WAAW,kCACN,QAAQ,KACX,UAAU,EAAE,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,EAC5C,IAAI,EAAE,QAAQ,CAAC,IAAI,GACpB;KACF,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { Client, HttpResponse } from \"@azure-rest/core-client\";\nimport {\n LongRunningOperation,\n LroEngine,\n LroEngineOptions,\n LroResponse,\n PollOperationState,\n PollerLike,\n} from \"@azure/core-lro\";\n\n/**\n * Helper function that builds a Poller object to help polling a long running operation.\n * @param client - Client to use for sending the request to get additional pages.\n * @param initialResponse - The initial response.\n * @param options - Options to set a resume state or custom polling interval.\n * @returns - A poller object to poll for operation state updates and eventually get the final response.\n */\nexport function getLongRunningPoller<TResult extends HttpResponse>(\n client: Client,\n initialResponse: TResult,\n options: LroEngineOptions<TResult, PollOperationState<TResult>> = {}\n): PollerLike<PollOperationState<TResult>, TResult> {\n const poller: LongRunningOperation<TResult> = {\n requestMethod: initialResponse.request.method,\n requestPath: initialResponse.request.url,\n sendInitialRequest: async () => {\n // In the case of Rest Clients we are building the LRO poller object from a response that's the reason\n // we are not triggering the initial request here, just extracting the information from the\n // response we were provided.\n return getLroResponse(initialResponse);\n },\n sendPollRequest: async (path) => {\n // This is the callback that is going to be called to poll the service\n // to get the latest status. We use the client provided and the polling path\n // which is an opaque URL provided by caller, the service sends this in one of the following headers: operation-location, azure-asyncoperation or location\n // depending on the lro pattern that the service implements. If non is provided we default to the initial path.\n const response = await client.pathUnchecked(path ?? initialResponse.request.url).get();\n const lroResponse = getLroResponse(response as TResult);\n lroResponse.rawResponse.headers[\"x-ms-original-url\"] = initialResponse.request.url;\n return lroResponse;\n },\n };\n\n return new LroEngine(poller, options);\n}\n\n/**\n * Converts a Rest Client response to a response that the LRO engine knows about\n * @param response - a rest client http response\n * @returns - An LRO response that the LRO engine can work with\n */\nfunction getLroResponse<TResult extends HttpResponse>(response: TResult): LroResponse<TResult> {\n if (Number.isNaN(response.status)) {\n throw new TypeError(`Status code of the response is not a number. Value: ${response.status}`);\n }\n\n return {\n flatResponse: response,\n rawResponse: {\n ...response,\n statusCode: Number.parseInt(response.status),\n body: response.body,\n },\n };\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"responses.js","sourceRoot":"","sources":["../../src/responses.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { HttpResponse } from \"@azure-rest/core-client\";\nimport {\n ApplicationResourceListOutput,\n ApplicationResourceOutput,\n ApplicationTypeResourceListOutput,\n ApplicationTypeResourceOutput,\n ApplicationTypeVersionResourceListOutput,\n ApplicationTypeVersionResourceOutput,\n ClusterCodeVersionsListResultOutput,\n ClusterListResultOutput,\n ClusterOutput,\n ErrorModelOutput,\n OperationListResultOutput,\n ServiceResourceListOutput,\n ServiceResourceOutput,\n UpgradableVersionPathResultOutput,\n} from \"./outputModels\";\n\n/** Get a Service Fabric cluster resource created or in the process of being created in the specified resource group. */\nexport interface ClustersGet200Response extends HttpResponse {\n status: \"200\";\n body: ClusterOutput;\n}\n\n/** Get a Service Fabric cluster resource created or in the process of being created in the specified resource group. */\nexport interface ClustersGetdefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Create or update a Service Fabric cluster resource with the specified name. */\nexport interface ClustersCreateOrUpdate200Response extends HttpResponse {\n status: \"200\";\n body: ClusterOutput;\n}\n\n/** Create or update a Service Fabric cluster resource with the specified name. */\nexport interface ClustersCreateOrUpdate202Response extends HttpResponse {\n status: \"202\";\n body: ClusterOutput;\n}\n\n/** Create or update a Service Fabric cluster resource with the specified name. */\nexport interface ClustersCreateOrUpdatedefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Update the configuration of a Service Fabric cluster resource with the specified name. */\nexport interface ClustersUpdate200Response extends HttpResponse {\n status: \"200\";\n body: ClusterOutput;\n}\n\n/** Update the configuration of a Service Fabric cluster resource with the specified name. */\nexport interface ClustersUpdate202Response extends HttpResponse {\n status: \"202\";\n body: ClusterOutput;\n}\n\n/** Update the configuration of a Service Fabric cluster resource with the specified name. */\nexport interface ClustersUpdatedefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Delete a Service Fabric cluster resource with the specified name. */\nexport interface ClustersDelete200Response extends HttpResponse {\n status: \"200\";\n body: Record<string, unknown>;\n}\n\n/** Delete a Service Fabric cluster resource with the specified name. */\nexport interface ClustersDelete204Response extends HttpResponse {\n status: \"204\";\n body: Record<string, unknown>;\n}\n\n/** Delete a Service Fabric cluster resource with the specified name. */\nexport interface ClustersDeletedefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Gets all Service Fabric cluster resources created or in the process of being created in the resource group. */\nexport interface ClustersListByResourceGroup200Response extends HttpResponse {\n status: \"200\";\n body: ClusterListResultOutput;\n}\n\n/** Gets all Service Fabric cluster resources created or in the process of being created in the resource group. */\nexport interface ClustersListByResourceGroupdefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Gets all Service Fabric cluster resources created or in the process of being created in the subscription. */\nexport interface ClustersList200Response extends HttpResponse {\n status: \"200\";\n body: ClusterListResultOutput;\n}\n\n/** Gets all Service Fabric cluster resources created or in the process of being created in the subscription. */\nexport interface ClustersListdefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** If a target is not provided, it will get the minimum and maximum versions available from the current cluster version. If a target is given, it will provide the required path to get from the current cluster version to the target version. */\nexport interface ClustersListUpgradableVersions200Response extends HttpResponse {\n status: \"200\";\n body: UpgradableVersionPathResultOutput;\n}\n\n/** If a target is not provided, it will get the minimum and maximum versions available from the current cluster version. If a target is given, it will provide the required path to get from the current cluster version to the target version. */\nexport interface ClustersListUpgradableVersionsdefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Gets information about an available Service Fabric cluster code version. */\nexport interface ClusterVersionsGet200Response extends HttpResponse {\n status: \"200\";\n body: ClusterCodeVersionsListResultOutput;\n}\n\n/** Gets information about an available Service Fabric cluster code version. */\nexport interface ClusterVersionsGetdefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Gets information about an available Service Fabric cluster code version by environment. */\nexport interface ClusterVersionsGetByEnvironment200Response extends HttpResponse {\n status: \"200\";\n body: ClusterCodeVersionsListResultOutput;\n}\n\n/** Gets information about an available Service Fabric cluster code version by environment. */\nexport interface ClusterVersionsGetByEnvironmentdefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Gets all available code versions for Service Fabric cluster resources by location. */\nexport interface ClusterVersionsList200Response extends HttpResponse {\n status: \"200\";\n body: ClusterCodeVersionsListResultOutput;\n}\n\n/** Gets all available code versions for Service Fabric cluster resources by location. */\nexport interface ClusterVersionsListdefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Gets all available code versions for Service Fabric cluster resources by environment. */\nexport interface ClusterVersionsListByEnvironment200Response extends HttpResponse {\n status: \"200\";\n body: ClusterCodeVersionsListResultOutput;\n}\n\n/** Gets all available code versions for Service Fabric cluster resources by environment. */\nexport interface ClusterVersionsListByEnvironmentdefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Get the list of available Service Fabric resource provider API operations. */\nexport interface OperationsList200Response extends HttpResponse {\n status: \"200\";\n body: OperationListResultOutput;\n}\n\n/** Get the list of available Service Fabric resource provider API operations. */\nexport interface OperationsListdefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Get a Service Fabric application type name resource created or in the process of being created in the Service Fabric cluster resource. */\nexport interface ApplicationTypesGet200Response extends HttpResponse {\n status: \"200\";\n body: ApplicationTypeResourceOutput;\n}\n\n/** Get a Service Fabric application type name resource created or in the process of being created in the Service Fabric cluster resource. */\nexport interface ApplicationTypesGetdefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Create or update a Service Fabric application type name resource with the specified name. */\nexport interface ApplicationTypesCreateOrUpdate200Response extends HttpResponse {\n status: \"200\";\n body: ApplicationTypeResourceOutput;\n}\n\n/** Create or update a Service Fabric application type name resource with the specified name. */\nexport interface ApplicationTypesCreateOrUpdatedefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Delete a Service Fabric application type name resource with the specified name. */\nexport interface ApplicationTypesDelete202Response extends HttpResponse {\n status: \"202\";\n body: Record<string, unknown>;\n}\n\n/** Delete a Service Fabric application type name resource with the specified name. */\nexport interface ApplicationTypesDelete204Response extends HttpResponse {\n status: \"204\";\n body: Record<string, unknown>;\n}\n\n/** Delete a Service Fabric application type name resource with the specified name. */\nexport interface ApplicationTypesDeletedefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Gets all application type name resources created or in the process of being created in the Service Fabric cluster resource. */\nexport interface ApplicationTypesList200Response extends HttpResponse {\n status: \"200\";\n body: ApplicationTypeResourceListOutput;\n}\n\n/** Gets all application type name resources created or in the process of being created in the Service Fabric cluster resource. */\nexport interface ApplicationTypesListdefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Get a Service Fabric application type version resource created or in the process of being created in the Service Fabric application type name resource. */\nexport interface ApplicationTypeVersionsGet200Response extends HttpResponse {\n status: \"200\";\n body: ApplicationTypeVersionResourceOutput;\n}\n\n/** Get a Service Fabric application type version resource created or in the process of being created in the Service Fabric application type name resource. */\nexport interface ApplicationTypeVersionsGetdefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Create or update a Service Fabric application type version resource with the specified name. */\nexport interface ApplicationTypeVersionsCreateOrUpdate202Response extends HttpResponse {\n status: \"202\";\n body: ApplicationTypeVersionResourceOutput;\n}\n\n/** Create or update a Service Fabric application type version resource with the specified name. */\nexport interface ApplicationTypeVersionsCreateOrUpdatedefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Delete a Service Fabric application type version resource with the specified name. */\nexport interface ApplicationTypeVersionsDelete202Response extends HttpResponse {\n status: \"202\";\n body: Record<string, unknown>;\n}\n\n/** Delete a Service Fabric application type version resource with the specified name. */\nexport interface ApplicationTypeVersionsDelete204Response extends HttpResponse {\n status: \"204\";\n body: Record<string, unknown>;\n}\n\n/** Delete a Service Fabric application type version resource with the specified name. */\nexport interface ApplicationTypeVersionsDeletedefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Gets all application type version resources created or in the process of being created in the Service Fabric application type name resource. */\nexport interface ApplicationTypeVersionsList200Response extends HttpResponse {\n status: \"200\";\n body: ApplicationTypeVersionResourceListOutput;\n}\n\n/** Gets all application type version resources created or in the process of being created in the Service Fabric application type name resource. */\nexport interface ApplicationTypeVersionsListdefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Get a Service Fabric application resource created or in the process of being created in the Service Fabric cluster resource. */\nexport interface ApplicationsGet200Response extends HttpResponse {\n status: \"200\";\n body: ApplicationResourceOutput;\n}\n\n/** Get a Service Fabric application resource created or in the process of being created in the Service Fabric cluster resource. */\nexport interface ApplicationsGetdefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Create or update a Service Fabric application resource with the specified name. */\nexport interface ApplicationsCreateOrUpdate202Response extends HttpResponse {\n status: \"202\";\n body: ApplicationResourceOutput;\n}\n\n/** Create or update a Service Fabric application resource with the specified name. */\nexport interface ApplicationsCreateOrUpdatedefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Update a Service Fabric application resource with the specified name. */\nexport interface ApplicationsUpdate202Response extends HttpResponse {\n status: \"202\";\n body: ApplicationResourceOutput;\n}\n\n/** Update a Service Fabric application resource with the specified name. */\nexport interface ApplicationsUpdatedefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Delete a Service Fabric application resource with the specified name. */\nexport interface ApplicationsDelete202Response extends HttpResponse {\n status: \"202\";\n body: Record<string, unknown>;\n}\n\n/** Delete a Service Fabric application resource with the specified name. */\nexport interface ApplicationsDelete204Response extends HttpResponse {\n status: \"204\";\n body: Record<string, unknown>;\n}\n\n/** Delete a Service Fabric application resource with the specified name. */\nexport interface ApplicationsDeletedefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Gets all application resources created or in the process of being created in the Service Fabric cluster resource. */\nexport interface ApplicationsList200Response extends HttpResponse {\n status: \"200\";\n body: ApplicationResourceListOutput;\n}\n\n/** Gets all application resources created or in the process of being created in the Service Fabric cluster resource. */\nexport interface ApplicationsListdefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Get a Service Fabric service resource created or in the process of being created in the Service Fabric application resource. */\nexport interface ServicesGet200Response extends HttpResponse {\n status: \"200\";\n body: ServiceResourceOutput;\n}\n\n/** Get a Service Fabric service resource created or in the process of being created in the Service Fabric application resource. */\nexport interface ServicesGetdefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Create or update a Service Fabric service resource with the specified name. */\nexport interface ServicesCreateOrUpdate202Response extends HttpResponse {\n status: \"202\";\n body: ServiceResourceOutput;\n}\n\n/** Create or update a Service Fabric service resource with the specified name. */\nexport interface ServicesCreateOrUpdatedefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Update a Service Fabric service resource with the specified name. */\nexport interface ServicesUpdate202Response extends HttpResponse {\n status: \"202\";\n body: ServiceResourceOutput;\n}\n\n/** Update a Service Fabric service resource with the specified name. */\nexport interface ServicesUpdatedefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Delete a Service Fabric service resource with the specified name. */\nexport interface ServicesDelete202Response extends HttpResponse {\n status: \"202\";\n body: Record<string, unknown>;\n}\n\n/** Delete a Service Fabric service resource with the specified name. */\nexport interface ServicesDelete204Response extends HttpResponse {\n status: \"204\";\n body: Record<string, unknown>;\n}\n\n/** Delete a Service Fabric service resource with the specified name. */\nexport interface ServicesDeletedefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Gets all service resources created or in the process of being created in the Service Fabric application resource. */\nexport interface ServicesList200Response extends HttpResponse {\n status: \"200\";\n body: ServiceResourceListOutput;\n}\n\n/** Gets all service resources created or in the process of being created in the Service Fabric application resource. */\nexport interface ServicesListdefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n"]}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation.
|
|
2
|
-
// Licensed under the MIT license.
|
|
3
|
-
import { getClient } from "@azure-rest/core-client";
|
|
4
|
-
import { customizedApiVersionPolicy } from "./customizedApiVersionPolicy";
|
|
5
|
-
export default function createClient(credentials, options = {}) {
|
|
6
|
-
var _a, _b;
|
|
7
|
-
const baseUrl = (_a = options.baseUrl) !== null && _a !== void 0 ? _a : "https://management.azure.com";
|
|
8
|
-
options.apiVersion = (_b = options.apiVersion) !== null && _b !== void 0 ? _b : "2021-06-01";
|
|
9
|
-
options = Object.assign(Object.assign({}, options), { credentials: {
|
|
10
|
-
scopes: ["https://management.azure.com/.default"],
|
|
11
|
-
} });
|
|
12
|
-
const userAgentInfo = `azsdk-js-arm-servicefabric-rest/1.0.0-beta.1`;
|
|
13
|
-
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
14
|
-
? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}`
|
|
15
|
-
: `${userAgentInfo}`;
|
|
16
|
-
options = Object.assign(Object.assign({}, options), { userAgentOptions: {
|
|
17
|
-
userAgentPrefix,
|
|
18
|
-
} });
|
|
19
|
-
const client = getClient(baseUrl, credentials, options);
|
|
20
|
-
// Considering ApiVersionPolicy in core has bugs so we replace with our customized one
|
|
21
|
-
client.pipeline.removePolicy({
|
|
22
|
-
name: "ApiVersionPolicy",
|
|
23
|
-
});
|
|
24
|
-
client.pipeline.addPolicy(customizedApiVersionPolicy(options));
|
|
25
|
-
return client;
|
|
26
|
-
}
|
|
27
|
-
//# sourceMappingURL=serviceFabricClient.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"serviceFabricClient.js","sourceRoot":"","sources":["../../src/serviceFabricClient.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAiB,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAGnE,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAE1E,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,WAA4B,EAC5B,UAAyB,EAAE;;IAE3B,MAAM,OAAO,GAAG,MAAA,OAAO,CAAC,OAAO,mCAAI,8BAA8B,CAAC;IAClE,OAAO,CAAC,UAAU,GAAG,MAAA,OAAO,CAAC,UAAU,mCAAI,YAAY,CAAC;IACxD,OAAO,mCACF,OAAO,KACV,WAAW,EAAE;YACX,MAAM,EAAE,CAAC,uCAAuC,CAAC;SAClD,GACF,CAAC;IAEF,MAAM,aAAa,GAAG,8CAA8C,CAAC;IACrE,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;QAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,aAAa,EAAE;QAChE,CAAC,CAAC,GAAG,aAAa,EAAE,CAAC;IACzB,OAAO,mCACF,OAAO,KACV,gBAAgB,EAAE;YAChB,eAAe;SAChB,GACF,CAAC;IAEF,MAAM,MAAM,GAAG,SAAS,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,CAAwB,CAAC;IAC/E,sFAAsF;IACtF,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC;QAC3B,IAAI,EAAE,kBAAkB;KACzB,CAAC,CAAC;IACH,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,0BAA0B,CAAC,OAAO,CAAC,CAAC,CAAC;IAE/D,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { ClientOptions, getClient } from \"@azure-rest/core-client\";\nimport { TokenCredential } from \"@azure/core-auth\";\nimport { ServiceFabricClient } from \"./clientDefinitions\";\nimport { customizedApiVersionPolicy } from \"./customizedApiVersionPolicy\";\n\nexport default function createClient(\n credentials: TokenCredential,\n options: ClientOptions = {}\n): ServiceFabricClient {\n const baseUrl = options.baseUrl ?? \"https://management.azure.com\";\n options.apiVersion = options.apiVersion ?? \"2021-06-01\";\n options = {\n ...options,\n credentials: {\n scopes: [\"https://management.azure.com/.default\"],\n },\n };\n\n const userAgentInfo = `azsdk-js-arm-servicefabric-rest/1.0.0-beta.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}`\n : `${userAgentInfo}`;\n options = {\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n };\n\n const client = getClient(baseUrl, credentials, options) as ServiceFabricClient;\n // Considering ApiVersionPolicy in core has bugs so we replace with our customized one\n client.pipeline.removePolicy({\n name: \"ApiVersionPolicy\",\n });\n client.pipeline.addPolicy(customizedApiVersionPolicy(options));\n\n return client;\n}\n"]}
|