@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"outputModels.d.ts","sourceRoot":"","sources":["../../src/outputModels.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,MAAM,WAAW,aAAc,SAAQ,cAAc;IACnD,sCAAsC;IACtC,UAAU,CAAC,EAAE,uBAAuB,CAAC;CACtC;AAED,iDAAiD;AACjD,MAAM,WAAW,uBAAuB;IACtC,4DAA4D;IAC5D,aAAa,CAAC,EAAE,KAAK,CACnB,eAAe,GAAG,YAAY,GAAG,sBAAsB,GAAG,wBAAwB,CACnF,CAAC;IACF,sEAAsE;IACtE,QAAQ,CAAC,wBAAwB,CAAC,EAAE,KAAK,CAAC,2BAA2B,CAAC,CAAC;IACvE,sDAAsD;IACtD,oBAAoB,CAAC,EAAE,0BAA0B,CAAC;IAClD,qNAAqN;IACrN,WAAW,CAAC,EAAE,4BAA4B,CAAC;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C","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * The cluster resource\n *\n */\nexport interface ClusterOutput extends ResourceOutput {\n /** The cluster resource properties */\n properties?: ClusterPropertiesOutput;\n}\n\n/** Describes the cluster resource properties. */\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 readonly 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 readonly clusterEndpoint?: string;\n /** A service generated unique identifier for the cluster resource. */\n readonly 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 readonly 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 readonly 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\n/** The detail of the Service Fabric runtime version result */\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\n/** The settings to enable AAD authentication on the cluster. */\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\n/** Describes the certificate details. */\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\n/** Describes a list of server certificates referenced by common name that are used to secure the cluster. */\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\n/** Describes the server certificate details using common name. */\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\n/** Describes the client certificate details using common name. */\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\n/** Describes the client certificate details using thumbprint. */\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\n/** The storage account information for storing Service Fabric diagnostic logs. */\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\n/** Describes a section in the fabric settings of the cluster. */\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\n/** Describes a parameter in fabric settings of the cluster. */\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\n/** Describes a node type in the cluster, each node type represents sub set of nodes in the cluster. */\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\n/** Port range details */\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\n/** Describes the policy used when upgrading the cluster. */\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\n/**\n * Defines a health policy used to evaluate the health of the cluster or of a cluster node.\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\n/**\n * Defines a health policy used to evaluate the health of an application or one of its children entities.\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\n/**\n * Represents the health policy used to evaluate the health of services belonging to a service type.\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\n/** Describes the delta health policies for the cluster upgrade. */\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\n/**\n * Defines a delta health policy used to evaluate the health of an application or one of its child entities when upgrading the cluster.\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\n/**\n * Represents the delta health policy used to evaluate the health of services belonging to a service type when upgrading the cluster.\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\n/** Describes the notification channel for cluster events. */\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\n/** Describes the notification target properties. */\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\n/** The resource model definition. */\nexport interface ResourceOutput {\n /** Azure resource identifier. */\n readonly id?: string;\n /** Azure resource name. */\n readonly name?: string;\n /** Azure resource type. */\n readonly type?: string;\n /** Azure resource location. */\n location: string;\n /** Azure resource tags. */\n tags?: Record<string, string>;\n /** Azure resource etag. */\n readonly etag?: string;\n /** Metadata pertaining to creation and last modification of the resource. */\n readonly systemData?: SystemDataOutput;\n}\n\n/** Metadata pertaining to creation and last modification of the resource. */\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\n/** The structure of the error. */\nexport interface ErrorModelOutput {\n /** The error details. */\n error?: ErrorModelErrorOutput;\n}\n\n/** The error details. */\nexport interface ErrorModelErrorOutput {\n /** The error code. */\n code?: string;\n /** The error message. */\n message?: string;\n}\n\n/** Cluster list results */\nexport interface ClusterListResultOutput {\n value?: Array<ClusterOutput>;\n /** The URL to use for getting the next set of results. */\n nextLink?: string;\n}\n\n/** The list results of the Service Fabric runtime versions. */\nexport interface ClusterCodeVersionsListResultOutput {\n value?: Array<ClusterCodeVersionsResultOutput>;\n /** The URL to use for getting the next set of results. */\n nextLink?: string;\n}\n\n/** The result of the Service Fabric runtime versions */\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\n/** The list of intermediate cluster code versions for an upgrade or downgrade. Or minimum and maximum upgradable version if no target was given */\nexport interface UpgradableVersionPathResultOutput {\n supportedPath?: Array<string>;\n}\n\n/** Describes the result of the request to list Service Fabric resource provider operations. */\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 readonly nextLink?: string;\n}\n\n/** Available operation list result */\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\n/** Operation supported by the Service Fabric resource provider */\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\n/** The application type name resource */\nexport interface ApplicationTypeResourceOutput extends ProxyResourceOutput {\n /** The application type name properties */\n properties?: ApplicationTypeResourcePropertiesOutput;\n}\n\n/** The application type name properties */\nexport interface ApplicationTypeResourcePropertiesOutput {\n /** The current deployment or provisioning state, which only appears in the response. */\n readonly provisioningState?: string;\n}\n\n/** The resource model definition for proxy-only resource. */\nexport interface ProxyResourceOutput {\n /** Azure resource identifier. */\n readonly id?: string;\n /** Azure resource name. */\n readonly name?: string;\n /** Azure resource type. */\n readonly 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 readonly etag?: string;\n /** Metadata pertaining to creation and last modification of the resource. */\n readonly systemData?: SystemDataOutput;\n}\n\n/** The list of application type names. */\nexport interface ApplicationTypeResourceListOutput {\n value?: Array<ApplicationTypeResourceOutput>;\n /** URL to get the next set of application type list results if there are any. */\n readonly nextLink?: string;\n}\n\n/** An application type version resource for the specified application type name resource. */\nexport interface ApplicationTypeVersionResourceOutput extends ProxyResourceOutput {\n /** The properties of the application type version resource. */\n properties?: ApplicationTypeVersionResourcePropertiesOutput;\n}\n\n/** The properties of the application type version resource. */\nexport interface ApplicationTypeVersionResourcePropertiesOutput {\n /** The current deployment or provisioning state, which only appears in the response */\n readonly 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 readonly defaultParameterList?: Record<string, string>;\n}\n\n/** The list of application type version resources for the specified application type name resource. */\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 readonly nextLink?: string;\n}\n\n/** The application resource. */\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\n/** Describes the managed identities for an Azure resource. */\nexport interface ManagedIdentityOutput {\n /** The principal id of the managed identity. This property will only be provided for a system assigned identity. */\n readonly principalId?: string;\n /** The tenant id of the managed identity. This property will only be provided for a system assigned identity. */\n readonly 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 readonly principalId?: string;\n /** The client id of user assigned identity. */\n readonly clientId?: string;\n}\n\n/** The application resource properties. */\nexport interface ApplicationResourcePropertiesOutput\n extends ApplicationResourceUpdatePropertiesOutput {\n /** The current deployment or provisioning state, which only appears in the response */\n readonly provisioningState?: string;\n /** The application type name as defined in the application manifest. */\n typeName?: string;\n}\n\n/** The application resource properties for patch operations. */\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\n/** Describes the policy for a monitored application upgrade. */\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\n/** The policy used for monitoring the application upgrade */\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\n/**\n * Defines a health policy used to evaluate the health of an application or one of its children entities.\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\n/**\n * Represents the health policy used to evaluate the health of services belonging to a service type.\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\n/**\n * Describes capacity information for a custom resource balancing metric. This can be used to limit the total consumption of this metric by the services of this application.\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\n/** The application resource for patch operations. */\nexport interface ApplicationResourceUpdateOutput extends ProxyResourceOutput {\n /** The application resource properties for patch operations. */\n properties?: ApplicationResourceUpdatePropertiesOutput;\n}\n\n/** The list of application resources. */\nexport interface ApplicationResourceListOutput {\n value?: Array<ApplicationResourceOutput>;\n /** URL to get the next set of application list results if there are any. */\n readonly nextLink?: string;\n}\n\n/** The service resource. */\nexport interface ServiceResourceOutput extends ProxyResourceOutput {\n /** The service resource properties. */\n properties?: ServiceResourcePropertiesOutput;\n}\n\n/** The service resource properties. */\nexport interface ServiceResourcePropertiesOutputParent extends ServiceResourcePropertiesBaseOutput {\n /** The current deployment or provisioning state, which only appears in the response */\n readonly 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\n/** Describes how the service is partitioned. */\nexport interface PartitionSchemeDescriptionOutputParent {\n partitionScheme: \"PartitionSchemeDescription\" | \"Named\" | \"Singleton\" | \"UniformInt64Range\";\n}\n\n/** The common service resource properties. */\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\n/** Creates a particular correlation between services. */\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\n/** Specifies a metric to load balance a service during runtime. */\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\n/** Describes the policy to be used for placement of a Service Fabric service. */\nexport interface ServicePlacementPolicyDescriptionOutput {\n type: \"ServicePlacementPolicyDescription\";\n}\n\n/** The service resource for patch operations. */\nexport interface ServiceResourceUpdateOutput extends ProxyResourceOutput {\n /** The service resource properties for patch operations. */\n properties?: ServiceResourceUpdatePropertiesOutput;\n}\n\n/** The service resource properties for patch operations. */\nexport interface ServiceResourceUpdatePropertiesOutputParent\n extends ServiceResourcePropertiesBaseOutput {\n serviceKind: \"ServiceResourceUpdateProperties\" | \"Stateful\" | \"Stateless\";\n}\n\n/** The list of service resources. */\nexport interface ServiceResourceListOutput {\n value?: Array<ServiceResourceOutput>;\n /** URL to get the next set of service list results if there are any. */\n readonly nextLink?: string;\n}\n\n/** Describes the named partition scheme of the service. */\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\n/** SingletonPartitionSchemeDescription */\nexport interface SingletonPartitionSchemeDescriptionOutput\n extends PartitionSchemeDescriptionOutputParent {\n partitionScheme: \"Singleton\";\n}\n\n/** The properties of a stateful service resource. */\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\n/** The properties of a stateful service resource for patch operations. */\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\n/** The properties of a stateless service resource. */\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\n/** The properties of a stateless service resource for patch operations. */\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\n/** Describes a partitioning scheme where an integer range is allocated evenly across a number of partitions. */\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\n/** The service resource properties. */\nexport type ServiceResourcePropertiesOutput =\n | StatefulServicePropertiesOutput\n | StatelessServicePropertiesOutput;\n/** Describes how the service is partitioned. */\nexport type PartitionSchemeDescriptionOutput =\n | NamedPartitionSchemeDescriptionOutput\n | SingletonPartitionSchemeDescriptionOutput\n | UniformInt64RangePartitionSchemeDescriptionOutput;\n/** The service resource properties for patch operations. */\nexport type ServiceResourceUpdatePropertiesOutput =\n | StatefulServiceUpdatePropertiesOutput\n | StatelessServiceUpdatePropertiesOutput;\n"]}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import type { Client, PathUncheckedResponse } from "@azure-rest/core-client";
|
|
2
|
+
/**
|
|
3
|
+
* An interface that tracks the settings for paged iteration
|
|
4
|
+
*/
|
|
5
|
+
export interface PageSettings {
|
|
6
|
+
/**
|
|
7
|
+
* The token that keeps track of where to continue the iterator
|
|
8
|
+
*/
|
|
9
|
+
continuationToken?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* An interface that allows async iterable iteration both to completion and by page.
|
|
13
|
+
*/
|
|
14
|
+
export interface PagedAsyncIterableIterator<TElement, TPage = TElement[], TPageSettings = PageSettings> {
|
|
15
|
+
/**
|
|
16
|
+
* The next method, part of the iteration protocol
|
|
17
|
+
*/
|
|
18
|
+
next(): Promise<IteratorResult<TElement>>;
|
|
19
|
+
/**
|
|
20
|
+
* The connection to the async iterator, part of the iteration protocol
|
|
21
|
+
*/
|
|
22
|
+
[Symbol.asyncIterator](): PagedAsyncIterableIterator<TElement, TPage, TPageSettings>;
|
|
23
|
+
/**
|
|
24
|
+
* Return an AsyncIterableIterator that works a page at a time
|
|
25
|
+
*/
|
|
26
|
+
byPage: (settings?: TPageSettings) => AsyncIterableIterator<TPage>;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Helper type to extract the type of an array
|
|
30
|
+
*/
|
|
31
|
+
export type GetArrayType<T> = T extends Array<infer TData> ? TData : never;
|
|
32
|
+
/**
|
|
33
|
+
* The type of a custom function that defines how to get a page and a link to the next one if any.
|
|
34
|
+
*/
|
|
35
|
+
export type GetPage<TPage> = (pageLink: string) => Promise<{
|
|
36
|
+
page: TPage;
|
|
37
|
+
nextPageLink?: string;
|
|
38
|
+
}>;
|
|
39
|
+
/**
|
|
40
|
+
* Options for the paging helper
|
|
41
|
+
*/
|
|
42
|
+
export interface PagingOptions<TResponse> {
|
|
43
|
+
/**
|
|
44
|
+
* Custom function to extract pagination details for crating the PagedAsyncIterableIterator
|
|
45
|
+
*/
|
|
46
|
+
customGetPage?: GetPage<PaginateReturn<TResponse>[]>;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Helper type to infer the Type of the paged elements from the response type
|
|
50
|
+
* This type is generated based on the swagger information for x-ms-pageable
|
|
51
|
+
* specifically on the itemName property which indicates the property of the response
|
|
52
|
+
* where the page items are found. The default value is `value`.
|
|
53
|
+
* This type will allow us to provide strongly typed Iterator based on the response we get as second parameter
|
|
54
|
+
*/
|
|
55
|
+
export type PaginateReturn<TResult> = TResult extends {
|
|
56
|
+
body: {
|
|
57
|
+
value?: infer TPage;
|
|
58
|
+
};
|
|
59
|
+
} ? GetArrayType<TPage> : Array<unknown>;
|
|
60
|
+
/**
|
|
61
|
+
* Helper to paginate results from an initial response that follows the specification of Autorest `x-ms-pageable` extension
|
|
62
|
+
* @param client - Client to use for sending the next page requests
|
|
63
|
+
* @param initialResponse - Initial response containing the nextLink and current page of elements
|
|
64
|
+
* @param customGetPage - Optional - Function to define how to extract the page and next link to be used to paginate the results
|
|
65
|
+
* @returns - PagedAsyncIterableIterator to iterate the elements
|
|
66
|
+
*/
|
|
67
|
+
export declare function paginate<TResponse extends PathUncheckedResponse>(client: Client, initialResponse: TResponse, options?: PagingOptions<TResponse>): PagedAsyncIterableIterator<PaginateReturn<TResponse>>;
|
|
68
|
+
//# sourceMappingURL=paginateHelper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paginateHelper.d.ts","sourceRoot":"","sources":["../../src/paginateHelper.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAuF7E;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,WAAW,0BAA0B,CACzC,QAAQ,EACR,KAAK,GAAG,QAAQ,EAAE,EAClB,aAAa,GAAG,YAAY;IAE5B;;OAEG;IACH,IAAI,IAAI,OAAO,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC1C;;OAEG;IACH,CAAC,MAAM,CAAC,aAAa,CAAC,IAAI,0BAA0B,CAAC,QAAQ,EAAE,KAAK,EAAE,aAAa,CAAC,CAAC;IACrF;;OAEG;IACH,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,aAAa,KAAK,qBAAqB,CAAC,KAAK,CAAC,CAAC;CACpE;AAyBD;;GAEG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,CAAC,SAAS,KAAK,CAAC,MAAM,KAAK,CAAC,GAAG,KAAK,GAAG,KAAK,CAAC;AAE3E;;GAEG;AACH,MAAM,MAAM,OAAO,CAAC,KAAK,IAAI,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC;IACzD,IAAI,EAAE,KAAK,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,WAAW,aAAa,CAAC,SAAS;IACtC;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;CACtD;AAED;;;;;;GAMG;AACH,MAAM,MAAM,cAAc,CAAC,OAAO,IAAI,OAAO,SAAS;IACpD,IAAI,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,KAAK,CAAA;KAAE,CAAC;CAC/B,GACG,YAAY,CAAC,KAAK,CAAC,GACnB,KAAK,CAAC,OAAO,CAAC,CAAC;AAEnB;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAC,SAAS,SAAS,qBAAqB,EAC9D,MAAM,EAAE,MAAM,EACd,eAAe,EAAE,SAAS,EAC1B,OAAO,GAAE,aAAa,CAAC,SAAS,CAAM,GACrC,0BAA0B,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC,CA0BvD"}
|
|
@@ -1,7 +1,74 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
|
2
|
-
// Licensed under the MIT
|
|
3
|
-
import { getPagedAsyncIterator } from "@azure/core-paging";
|
|
2
|
+
// Licensed under the MIT License.
|
|
4
3
|
import { createRestError } from "@azure-rest/core-client";
|
|
4
|
+
/**
|
|
5
|
+
* returns an async iterator that iterates over results. It also has a `byPage`
|
|
6
|
+
* method that returns pages of items at once.
|
|
7
|
+
*
|
|
8
|
+
* @param pagedResult - an object that specifies how to get pages.
|
|
9
|
+
* @returns a paged async iterator that iterates over results.
|
|
10
|
+
*/
|
|
11
|
+
function getPagedAsyncIterator(pagedResult) {
|
|
12
|
+
const iter = getItemAsyncIterator(pagedResult);
|
|
13
|
+
return {
|
|
14
|
+
next() {
|
|
15
|
+
return iter.next();
|
|
16
|
+
},
|
|
17
|
+
[Symbol.asyncIterator]() {
|
|
18
|
+
return this;
|
|
19
|
+
},
|
|
20
|
+
byPage: pagedResult?.byPage ??
|
|
21
|
+
((settings) => {
|
|
22
|
+
const { continuationToken } = settings ?? {};
|
|
23
|
+
return getPageAsyncIterator(pagedResult, {
|
|
24
|
+
pageLink: continuationToken,
|
|
25
|
+
});
|
|
26
|
+
}),
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
async function* getItemAsyncIterator(pagedResult) {
|
|
30
|
+
const pages = getPageAsyncIterator(pagedResult);
|
|
31
|
+
const firstVal = await pages.next();
|
|
32
|
+
// if the result does not have an array shape, i.e. TPage = TElement, then we return it as is
|
|
33
|
+
if (!Array.isArray(firstVal.value)) {
|
|
34
|
+
// can extract elements from this page
|
|
35
|
+
const { toElements } = pagedResult;
|
|
36
|
+
if (toElements) {
|
|
37
|
+
yield* toElements(firstVal.value);
|
|
38
|
+
for await (const page of pages) {
|
|
39
|
+
yield* toElements(page);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
yield firstVal.value;
|
|
44
|
+
// `pages` is of type `AsyncIterableIterator<TPage>` but TPage = TElement in this case
|
|
45
|
+
yield* pages;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
else {
|
|
49
|
+
yield* firstVal.value;
|
|
50
|
+
for await (const page of pages) {
|
|
51
|
+
// pages is of type `AsyncIterableIterator<TPage>` so `page` is of type `TPage`. In this branch,
|
|
52
|
+
// it must be the case that `TPage = TElement[]`
|
|
53
|
+
yield* page;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
async function* getPageAsyncIterator(pagedResult, options = {}) {
|
|
58
|
+
const { pageLink } = options;
|
|
59
|
+
let response = await pagedResult.getPage(pageLink ?? pagedResult.firstPageLink);
|
|
60
|
+
if (!response) {
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
yield response.page;
|
|
64
|
+
while (response.nextPageLink) {
|
|
65
|
+
response = await pagedResult.getPage(response.nextPageLink);
|
|
66
|
+
if (!response) {
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
yield response.page;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
5
72
|
/**
|
|
6
73
|
* Helper to paginate results from an initial response that follows the specification of Autorest `x-ms-pageable` extension
|
|
7
74
|
* @param client - Client to use for sending the next page requests
|
|
@@ -56,7 +123,7 @@ function getElements(body, itemName) {
|
|
|
56
123
|
if (!Array.isArray(value)) {
|
|
57
124
|
throw new Error(`Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}`);
|
|
58
125
|
}
|
|
59
|
-
return value
|
|
126
|
+
return value ?? [];
|
|
60
127
|
}
|
|
61
128
|
/**
|
|
62
129
|
* Checks if a request failed
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paginateHelper.js","sourceRoot":"","sources":["../../src/paginateHelper.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D;;;;;;GAMG;AACH,SAAS,qBAAqB,CAM5B,WAAqD;IAErD,MAAM,IAAI,GAAG,oBAAoB,CAAwC,WAAW,CAAC,CAAC;IACtF,OAAO;QACL,IAAI;YACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;QACrB,CAAC;QACD,CAAC,MAAM,CAAC,aAAa,CAAC;YACpB,OAAO,IAAI,CAAC;QACd,CAAC;QACD,MAAM,EACJ,WAAW,EAAE,MAAM;YAClB,CAAC,CAAC,QAAuB,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,QAAQ,CACT,CAAC;IACJ,CAAC;AACH,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { Client, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError } from \"@azure-rest/core-client\";\n\n/**\n * returns an async iterator that iterates over results. It also has a `byPage`\n * method that returns pages of items at once.\n *\n * @param pagedResult - an object that specifies how to get pages.\n * @returns a paged async iterator that iterates over results.\n */\nfunction getPagedAsyncIterator<\n TElement,\n TPage = TElement[],\n TPageSettings = PageSettings,\n TLink = string,\n>(\n pagedResult: PagedResult<TPage, TPageSettings, TLink>,\n): PagedAsyncIterableIterator<TElement, TPage, TPageSettings> {\n const iter = getItemAsyncIterator<TElement, TPage, TLink, TPageSettings>(pagedResult);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage:\n pagedResult?.byPage ??\n (((settings?: PageSettings) => {\n const { continuationToken } = settings ?? {};\n return getPageAsyncIterator(pagedResult, {\n pageLink: continuationToken as unknown as TLink | undefined,\n });\n }) as unknown as (settings?: TPageSettings) => AsyncIterableIterator<TPage>),\n };\n}\n\nasync function* getItemAsyncIterator<TElement, TPage, TLink, TPageSettings>(\n pagedResult: PagedResult<TPage, TPageSettings, TLink>,\n): AsyncIterableIterator<TElement> {\n const pages = getPageAsyncIterator(pagedResult);\n const firstVal = await pages.next();\n // if the result does not have an array shape, i.e. TPage = TElement, then we return it as is\n if (!Array.isArray(firstVal.value)) {\n // can extract elements from this page\n const { toElements } = pagedResult;\n if (toElements) {\n yield* toElements(firstVal.value) as TElement[];\n for await (const page of pages) {\n yield* toElements(page) as TElement[];\n }\n } else {\n yield firstVal.value;\n // `pages` is of type `AsyncIterableIterator<TPage>` but TPage = TElement in this case\n yield* pages as unknown as AsyncIterableIterator<TElement>;\n }\n } else {\n yield* firstVal.value;\n for await (const page of pages) {\n // pages is of type `AsyncIterableIterator<TPage>` so `page` is of type `TPage`. In this branch,\n // it must be the case that `TPage = TElement[]`\n yield* page as unknown as TElement[];\n }\n }\n}\n\nasync function* getPageAsyncIterator<TPage, TLink, TPageSettings>(\n pagedResult: PagedResult<TPage, TPageSettings, TLink>,\n options: {\n pageLink?: TLink;\n } = {},\n): AsyncIterableIterator<TPage> {\n const { pageLink } = options;\n let response = await pagedResult.getPage(pageLink ?? pagedResult.firstPageLink);\n if (!response) {\n return;\n }\n yield response.page;\n while (response.nextPageLink) {\n response = await pagedResult.getPage(response.nextPageLink);\n if (!response) {\n return;\n }\n yield response.page;\n }\n}\n\n/**\n * An interface that tracks the settings for paged iteration\n */\nexport interface PageSettings {\n /**\n * The token that keeps track of where to continue the iterator\n */\n continuationToken?: string;\n}\n\n/**\n * An interface that allows async iterable iteration both to completion and by page.\n */\nexport interface PagedAsyncIterableIterator<\n TElement,\n TPage = TElement[],\n TPageSettings = PageSettings,\n> {\n /**\n * The next method, part of the iteration protocol\n */\n next(): Promise<IteratorResult<TElement>>;\n /**\n * The connection to the async iterator, part of the iteration protocol\n */\n [Symbol.asyncIterator](): PagedAsyncIterableIterator<TElement, TPage, TPageSettings>;\n /**\n * Return an AsyncIterableIterator that works a page at a time\n */\n byPage: (settings?: TPageSettings) => AsyncIterableIterator<TPage>;\n}\n\n/**\n * An interface that describes how to communicate with the service.\n */\ninterface PagedResult<TPage, TPageSettings = PageSettings, TLink = string> {\n /**\n * Link to the first page of results.\n */\n firstPageLink: TLink;\n /**\n * A method that returns a page of results.\n */\n getPage: (pageLink: TLink) => Promise<{ page: TPage; nextPageLink?: TLink } | undefined>;\n /**\n * a function to implement the `byPage` method on the paged async iterator.\n */\n byPage?: (settings?: TPageSettings) => AsyncIterableIterator<TPage>;\n\n /**\n * A function to extract elements from a page.\n */\n toElements?: (page: TPage) => unknown[];\n}\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> = (pageLink: string) => 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"]}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import type { RequestParameters } from "@azure-rest/core-client";
|
|
2
|
+
import type { Cluster, ClusterUpdateParameters, UpgradableVersionsDescription, ApplicationTypeResource, ApplicationTypeVersionResource, ApplicationResource, ApplicationResourceUpdate, ServiceResource, ServiceResourceUpdate } from "./models.js";
|
|
3
|
+
export type ClustersGetParameters = RequestParameters;
|
|
4
|
+
export interface ClustersCreateOrUpdateBodyParam {
|
|
5
|
+
/** The cluster resource. */
|
|
6
|
+
body: Cluster;
|
|
7
|
+
}
|
|
8
|
+
export interface ClustersCreateOrUpdateMediaTypesParam {
|
|
9
|
+
/** Request content type */
|
|
10
|
+
contentType?: "application/json";
|
|
11
|
+
}
|
|
12
|
+
export type ClustersCreateOrUpdateParameters = ClustersCreateOrUpdateMediaTypesParam & ClustersCreateOrUpdateBodyParam & RequestParameters;
|
|
13
|
+
export interface ClustersUpdateBodyParam {
|
|
14
|
+
/** The parameters which contains the property value and property name which used to update the cluster configuration. */
|
|
15
|
+
body: ClusterUpdateParameters;
|
|
16
|
+
}
|
|
17
|
+
export interface ClustersUpdateMediaTypesParam {
|
|
18
|
+
/** Request content type */
|
|
19
|
+
contentType?: "application/json";
|
|
20
|
+
}
|
|
21
|
+
export type ClustersUpdateParameters = ClustersUpdateMediaTypesParam & ClustersUpdateBodyParam & RequestParameters;
|
|
22
|
+
export type ClustersDeleteParameters = RequestParameters;
|
|
23
|
+
export type ClustersListByResourceGroupParameters = RequestParameters;
|
|
24
|
+
export type ClustersListParameters = RequestParameters;
|
|
25
|
+
export interface ClustersListUpgradableVersionsBodyParam {
|
|
26
|
+
/** The upgrade path description with target version. */
|
|
27
|
+
body?: UpgradableVersionsDescription;
|
|
28
|
+
}
|
|
29
|
+
export interface ClustersListUpgradableVersionsMediaTypesParam {
|
|
30
|
+
/** Request content type */
|
|
31
|
+
contentType?: "application/json";
|
|
32
|
+
}
|
|
33
|
+
export type ClustersListUpgradableVersionsParameters = ClustersListUpgradableVersionsMediaTypesParam & ClustersListUpgradableVersionsBodyParam & RequestParameters;
|
|
34
|
+
export type ClusterVersionsGetParameters = RequestParameters;
|
|
35
|
+
export type ClusterVersionsGetByEnvironmentParameters = RequestParameters;
|
|
36
|
+
export type ClusterVersionsListParameters = RequestParameters;
|
|
37
|
+
export type ClusterVersionsListByEnvironmentParameters = RequestParameters;
|
|
38
|
+
export type OperationsListParameters = RequestParameters;
|
|
39
|
+
export type ApplicationTypesGetParameters = RequestParameters;
|
|
40
|
+
export interface ApplicationTypesCreateOrUpdateBodyParam {
|
|
41
|
+
/** The application type name resource. */
|
|
42
|
+
body: ApplicationTypeResource;
|
|
43
|
+
}
|
|
44
|
+
export interface ApplicationTypesCreateOrUpdateMediaTypesParam {
|
|
45
|
+
/** Request content type */
|
|
46
|
+
contentType?: "application/json";
|
|
47
|
+
}
|
|
48
|
+
export type ApplicationTypesCreateOrUpdateParameters = ApplicationTypesCreateOrUpdateMediaTypesParam & ApplicationTypesCreateOrUpdateBodyParam & RequestParameters;
|
|
49
|
+
export type ApplicationTypesDeleteParameters = RequestParameters;
|
|
50
|
+
export type ApplicationTypesListParameters = RequestParameters;
|
|
51
|
+
export type ApplicationTypeVersionsGetParameters = RequestParameters;
|
|
52
|
+
export interface ApplicationTypeVersionsCreateOrUpdateBodyParam {
|
|
53
|
+
/** The application type version resource. */
|
|
54
|
+
body: ApplicationTypeVersionResource;
|
|
55
|
+
}
|
|
56
|
+
export interface ApplicationTypeVersionsCreateOrUpdateMediaTypesParam {
|
|
57
|
+
/** Request content type */
|
|
58
|
+
contentType?: "application/json";
|
|
59
|
+
}
|
|
60
|
+
export type ApplicationTypeVersionsCreateOrUpdateParameters = ApplicationTypeVersionsCreateOrUpdateMediaTypesParam & ApplicationTypeVersionsCreateOrUpdateBodyParam & RequestParameters;
|
|
61
|
+
export type ApplicationTypeVersionsDeleteParameters = RequestParameters;
|
|
62
|
+
export type ApplicationTypeVersionsListParameters = RequestParameters;
|
|
63
|
+
export type ApplicationsGetParameters = RequestParameters;
|
|
64
|
+
export interface ApplicationsCreateOrUpdateBodyParam {
|
|
65
|
+
/** The application resource. */
|
|
66
|
+
body: ApplicationResource;
|
|
67
|
+
}
|
|
68
|
+
export interface ApplicationsCreateOrUpdateMediaTypesParam {
|
|
69
|
+
/** Request content type */
|
|
70
|
+
contentType?: "application/json";
|
|
71
|
+
}
|
|
72
|
+
export type ApplicationsCreateOrUpdateParameters = ApplicationsCreateOrUpdateMediaTypesParam & ApplicationsCreateOrUpdateBodyParam & RequestParameters;
|
|
73
|
+
export interface ApplicationsUpdateBodyParam {
|
|
74
|
+
/** The application resource for patch operations. */
|
|
75
|
+
body: ApplicationResourceUpdate;
|
|
76
|
+
}
|
|
77
|
+
export interface ApplicationsUpdateMediaTypesParam {
|
|
78
|
+
/** Request content type */
|
|
79
|
+
contentType?: "application/json";
|
|
80
|
+
}
|
|
81
|
+
export type ApplicationsUpdateParameters = ApplicationsUpdateMediaTypesParam & ApplicationsUpdateBodyParam & RequestParameters;
|
|
82
|
+
export type ApplicationsDeleteParameters = RequestParameters;
|
|
83
|
+
export type ApplicationsListParameters = RequestParameters;
|
|
84
|
+
export type ServicesGetParameters = RequestParameters;
|
|
85
|
+
export interface ServicesCreateOrUpdateBodyParam {
|
|
86
|
+
/** The service resource. */
|
|
87
|
+
body: ServiceResource;
|
|
88
|
+
}
|
|
89
|
+
export interface ServicesCreateOrUpdateMediaTypesParam {
|
|
90
|
+
/** Request content type */
|
|
91
|
+
contentType?: "application/json";
|
|
92
|
+
}
|
|
93
|
+
export type ServicesCreateOrUpdateParameters = ServicesCreateOrUpdateMediaTypesParam & ServicesCreateOrUpdateBodyParam & RequestParameters;
|
|
94
|
+
export interface ServicesUpdateBodyParam {
|
|
95
|
+
/** The service resource for patch operations. */
|
|
96
|
+
body: ServiceResourceUpdate;
|
|
97
|
+
}
|
|
98
|
+
export interface ServicesUpdateMediaTypesParam {
|
|
99
|
+
/** Request content type */
|
|
100
|
+
contentType?: "application/json";
|
|
101
|
+
}
|
|
102
|
+
export type ServicesUpdateParameters = ServicesUpdateMediaTypesParam & ServicesUpdateBodyParam & RequestParameters;
|
|
103
|
+
export type ServicesDeleteParameters = RequestParameters;
|
|
104
|
+
export type ServicesListParameters = RequestParameters;
|
|
105
|
+
//# sourceMappingURL=parameters.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parameters.d.ts","sourceRoot":"","sources":["../../src/parameters.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,KAAK,EACV,OAAO,EACP,uBAAuB,EACvB,6BAA6B,EAC7B,uBAAuB,EACvB,8BAA8B,EAC9B,mBAAmB,EACnB,yBAAyB,EACzB,eAAe,EACf,qBAAqB,EACtB,MAAM,aAAa,CAAC;AAErB,MAAM,MAAM,qBAAqB,GAAG,iBAAiB,CAAC;AAEtD,MAAM,WAAW,+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0BAA0B,GAAG,iBAAiB,CAAC;AAC3D,MAAM,MAAM,qBAAqB,GAAG,iBAAiB,CAAC;AAEtD,MAAM,WAAW,+BAA+B;IAC9C,4BAA4B;IAC5B,IAAI,EAAE,eAAe,CAAC;CACvB;AAED,MAAM,WAAW,qCAAqC;IACpD,2BAA2B;IAC3B,WAAW,CAAC,EAAE,kBAAkB,CAAC;CAClC;AAED,MAAM,MAAM,gCAAgC,GAAG,qCAAqC,GAClF,+BAA+B,GAC/B,iBAAiB,CAAC;AAEpB,MAAM,WAAW,uBAAuB;IACtC,iDAAiD;IACjD,IAAI,EAAE,qBAAqB,CAAC;CAC7B;AAED,MAAM,WAAW,6BAA6B;IAC5C,2BAA2B;IAC3B,WAAW,CAAC,EAAE,kBAAkB,CAAC;CAClC;AAED,MAAM,MAAM,wBAAwB,GAAG,6BAA6B,GAClE,uBAAuB,GACvB,iBAAiB,CAAC;AACpB,MAAM,MAAM,wBAAwB,GAAG,iBAAiB,CAAC;AACzD,MAAM,MAAM,sBAAsB,GAAG,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
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 type { RequestParameters } from \"@azure-rest/core-client\";\nimport type {\n Cluster,\n ClusterUpdateParameters,\n UpgradableVersionsDescription,\n ApplicationTypeResource,\n ApplicationTypeVersionResource,\n ApplicationResource,\n ApplicationResourceUpdate,\n ServiceResource,\n ServiceResourceUpdate,\n} from \"./models.js\";\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 =\n 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 =\n 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 =\n 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"]}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import type { Client, HttpResponse } from "@azure-rest/core-client";
|
|
2
|
+
import type { AbortSignalLike } from "@azure/abort-controller";
|
|
3
|
+
import type { CancelOnProgress, CreateHttpPollerOptions, OperationState } from "@azure/core-lro";
|
|
4
|
+
/**
|
|
5
|
+
* A simple poller that can be used to poll a long running operation.
|
|
6
|
+
*/
|
|
7
|
+
export interface SimplePollerLike<TState extends OperationState<TResult>, TResult> {
|
|
8
|
+
/**
|
|
9
|
+
* Returns true if the poller has finished polling.
|
|
10
|
+
*/
|
|
11
|
+
isDone(): boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Returns the state of the operation.
|
|
14
|
+
*/
|
|
15
|
+
getOperationState(): TState;
|
|
16
|
+
/**
|
|
17
|
+
* Returns the result value of the operation,
|
|
18
|
+
* regardless of the state of the poller.
|
|
19
|
+
* It can return undefined or an incomplete form of the final TResult value
|
|
20
|
+
* depending on the implementation.
|
|
21
|
+
*/
|
|
22
|
+
getResult(): TResult | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Returns a promise that will resolve once a single polling request finishes.
|
|
25
|
+
* It does this by calling the update method of the Poller's operation.
|
|
26
|
+
*/
|
|
27
|
+
poll(options?: {
|
|
28
|
+
abortSignal?: AbortSignalLike;
|
|
29
|
+
}): Promise<TState>;
|
|
30
|
+
/**
|
|
31
|
+
* Returns a promise that will resolve once the underlying operation is completed.
|
|
32
|
+
*/
|
|
33
|
+
pollUntilDone(pollOptions?: {
|
|
34
|
+
abortSignal?: AbortSignalLike;
|
|
35
|
+
}): Promise<TResult>;
|
|
36
|
+
/**
|
|
37
|
+
* Invokes the provided callback after each polling is completed,
|
|
38
|
+
* sending the current state of the poller's operation.
|
|
39
|
+
*
|
|
40
|
+
* It returns a method that can be used to stop receiving updates on the given callback function.
|
|
41
|
+
*/
|
|
42
|
+
onProgress(callback: (state: TState) => void): CancelOnProgress;
|
|
43
|
+
/**
|
|
44
|
+
* Returns a promise that could be used for serialized version of the poller's operation
|
|
45
|
+
* by invoking the operation's serialize method.
|
|
46
|
+
*/
|
|
47
|
+
serialize(): Promise<string>;
|
|
48
|
+
/**
|
|
49
|
+
* Wait the poller to be submitted.
|
|
50
|
+
*/
|
|
51
|
+
submitted(): Promise<void>;
|
|
52
|
+
/**
|
|
53
|
+
* Returns a string representation of the poller's operation. Similar to serialize but returns a string.
|
|
54
|
+
* @deprecated Use serialize() instead.
|
|
55
|
+
*/
|
|
56
|
+
toString(): string;
|
|
57
|
+
/**
|
|
58
|
+
* Stops the poller from continuing to poll. Please note this will only stop the client-side polling
|
|
59
|
+
* @deprecated Use abortSignal to stop polling instead.
|
|
60
|
+
*/
|
|
61
|
+
stopPolling(): void;
|
|
62
|
+
/**
|
|
63
|
+
* Returns true if the poller is stopped.
|
|
64
|
+
* @deprecated Use abortSignal status to track this instead.
|
|
65
|
+
*/
|
|
66
|
+
isStopped(): boolean;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Helper function that builds a Poller object to help polling a long running operation.
|
|
70
|
+
* @param client - Client to use for sending the request to get additional pages.
|
|
71
|
+
* @param initialResponse - The initial response.
|
|
72
|
+
* @param options - Options to set a resume state or custom polling interval.
|
|
73
|
+
* @returns - A poller object to poll for operation state updates and eventually get the final response.
|
|
74
|
+
*/
|
|
75
|
+
export declare function getLongRunningPoller<TResult extends HttpResponse>(client: Client, initialResponse: TResult, options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>): Promise<SimplePollerLike<OperationState<TResult>, TResult>>;
|
|
76
|
+
//# sourceMappingURL=pollingHelper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pollingHelper.d.ts","sourceRoot":"","sources":["../../src/pollingHelper.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,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