@azure/arm-managedapplications 30.0.0-alpha.20210806.1 → 30.0.0-alpha.20210930.1
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 +18 -0
- package/README.md +2 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/esm/applicationClientContext.js +1 -1
- package/package.json +2 -2
- package/src/applicationClientContext.ts +1 -1
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/models/index.ts","../src/models/mappers.ts","../src/models/parameters.ts","../src/lro/requestUtils.ts","../src/lro/models.ts","../src/lro/azureAsyncPolling.ts","../src/lro/bodyPolling.ts","../src/lro/locationPolling.ts","../src/lro/passthrough.ts","../src/lro/stateMachine.ts","../src/lro/operation.ts","../src/lro/lroEngine.ts","../src/coreClientLro.ts","../src/operations/applications.ts","../src/operations/applicationDefinitions.ts","../src/applicationClientContext.ts","../src/applicationClient.ts"],"sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\n\n/** Result of the request to list Microsoft.Solutions operations. It contains a list of operations and a URL link to get the next set of results. */\nexport interface OperationListResult {\n /** List of Microsoft.Solutions operations. */\n value?: Operation[];\n /** URL to get the next set of operation list results if there are any. */\n nextLink?: string;\n}\n\n/** Microsoft.Solutions operation */\nexport interface Operation {\n /** Operation name: {provider}/{resource}/{operation} */\n name?: string;\n /** The object that represents the operation. */\n display?: OperationDisplay;\n}\n\n/** The object that represents the operation. */\nexport interface OperationDisplay {\n /** Service provider: Microsoft.Solutions */\n provider?: string;\n /** Resource on which the operation is performed: Application, JitRequest, etc. */\n resource?: string;\n /** Operation type: Read, write, delete, etc. */\n operation?: string;\n}\n\n/** Resource information. */\nexport interface Resource {\n /**\n * Resource ID\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly id?: string;\n /**\n * Resource name\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly name?: string;\n /**\n * Resource type\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly type?: string;\n /** Resource location */\n location?: string;\n /** Resource tags */\n tags?: { [propertyName: string]: string };\n}\n\n/** SKU for the resource. */\nexport interface Sku {\n /** The SKU name. */\n name: string;\n /** The SKU tier. */\n tier?: string;\n /** The SKU size. */\n size?: string;\n /** The SKU family. */\n family?: string;\n /** The SKU model. */\n model?: string;\n /** The SKU capacity. */\n capacity?: number;\n}\n\n/** Identity for the resource. */\nexport interface Identity {\n /**\n * The principal ID of resource identity.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly principalId?: string;\n /**\n * The tenant ID of resource.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly tenantId?: string;\n /** The identity type. */\n type?: \"SystemAssigned\";\n}\n\n/** Plan for the managed application. */\nexport interface Plan {\n /** The plan name. */\n name: string;\n /** The publisher ID. */\n publisher: string;\n /** The product code. */\n product: string;\n /** The promotion code. */\n promotionCode?: string;\n /** The plan's version. */\n version: string;\n}\n\n/** Error response indicates managed application is not able to process the incoming request. The reason is provided in the error message. */\nexport interface ErrorResponse {\n /** Http status code. */\n httpStatus?: string;\n /** Error code. */\n errorCode?: string;\n /** Error message indicating why the operation failed. */\n errorMessage?: string;\n}\n\n/** Plan for the managed application. */\nexport interface PlanPatchable {\n /** The plan name. */\n name?: string;\n /** The publisher ID. */\n publisher?: string;\n /** The product code. */\n product?: string;\n /** The promotion code. */\n promotionCode?: string;\n /** The plan's version. */\n version?: string;\n}\n\n/** The managed application provider authorization. */\nexport interface ApplicationProviderAuthorization {\n /** The provider's principal identifier. This is the identity that the provider will use to call ARM to manage the managed application resources. */\n principalId: string;\n /** The provider's role definition identifier. This role will define all the permissions that the provider must have on the managed application's container resource group. This role definition cannot have permission to delete the resource group. */\n roleDefinitionId: string;\n}\n\n/** Managed application artifact. */\nexport interface ApplicationArtifact {\n /** The managed application artifact name. */\n name?: string;\n /** The managed application artifact blob uri. */\n uri?: string;\n /** The managed application artifact type. */\n type?: ApplicationArtifactType;\n}\n\n/** List of managed application definitions. */\nexport interface ApplicationDefinitionListResult {\n /** The array of managed application definitions. */\n value?: ApplicationDefinition[];\n /** The URL to use for getting the next set of results. */\n nextLink?: string;\n}\n\n/** List of managed applications. */\nexport interface ApplicationListResult {\n /** The array of managed applications. */\n value?: Application[];\n /** The URL to use for getting the next set of results. */\n nextLink?: string;\n}\n\n/** Resource information. */\nexport type GenericResource = Resource & {\n /** ID of the resource that manages this resource. */\n managedBy?: string;\n /** The SKU of the resource. */\n sku?: Sku;\n /** The identity of the resource. */\n identity?: Identity;\n};\n\n/** Information about managed application. */\nexport type Application = GenericResource & {\n /** The plan information. */\n plan?: Plan;\n /** The kind of the managed application. Allowed values are MarketPlace and ServiceCatalog. */\n kind: string;\n /** The managed resource group Id. */\n managedResourceGroupId: string;\n /** The fully qualified path of managed application definition Id. */\n applicationDefinitionId?: string;\n /** Name and value pairs that define the managed application parameters. It can be a JObject or a well formed JSON string. */\n parameters?: Record<string, unknown>;\n /**\n * Name and value pairs that define the managed application outputs.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly outputs?: Record<string, unknown>;\n /**\n * The managed application provisioning state.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly provisioningState?: ProvisioningState;\n};\n\n/** Information about managed application. */\nexport type ApplicationPatchable = GenericResource & {\n /** The plan information. */\n plan?: PlanPatchable;\n /** The kind of the managed application. Allowed values are MarketPlace and ServiceCatalog. */\n kind?: string;\n /** The managed resource group Id. */\n managedResourceGroupId?: string;\n /** The fully qualified path of managed application definition Id. */\n applicationDefinitionId?: string;\n /** Name and value pairs that define the managed application parameters. It can be a JObject or a well formed JSON string. */\n parameters?: Record<string, unknown>;\n /**\n * Name and value pairs that define the managed application outputs.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly outputs?: Record<string, unknown>;\n /**\n * The managed application provisioning state.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly provisioningState?: ProvisioningState;\n};\n\n/** Information about managed application definition. */\nexport type ApplicationDefinition = GenericResource & {\n /** The managed application lock level. */\n lockLevel: ApplicationLockLevel;\n /** The managed application definition display name. */\n displayName?: string;\n /** A value indicating whether the package is enabled or not. */\n isEnabled?: string;\n /** The managed application provider authorizations. */\n authorizations: ApplicationProviderAuthorization[];\n /** The collection of managed application artifacts. The portal will use the files specified as artifacts to construct the user experience of creating a managed application from a managed application definition. */\n artifacts?: ApplicationArtifact[];\n /** The managed application definition description. */\n description?: string;\n /** The managed application definition package file Uri. Use this element */\n packageFileUri?: string;\n /** The inline main template json which has resources to be provisioned. It can be a JObject or well-formed JSON string. */\n mainTemplate?: Record<string, unknown>;\n /** The createUiDefinition json for the backing template with Microsoft.Solutions/applications resource. It can be a JObject or well-formed JSON string. */\n createUiDefinition?: Record<string, unknown>;\n};\n\n/** Known values of {@link ProvisioningState} that the service accepts. */\nexport enum KnownProvisioningState {\n Accepted = \"Accepted\",\n Running = \"Running\",\n Ready = \"Ready\",\n Creating = \"Creating\",\n Created = \"Created\",\n Deleting = \"Deleting\",\n Deleted = \"Deleted\",\n Canceled = \"Canceled\",\n Failed = \"Failed\",\n Succeeded = \"Succeeded\",\n Updating = \"Updating\"\n}\n\n/**\n * Defines values for ProvisioningState. \\\n * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Accepted** \\\n * **Running** \\\n * **Ready** \\\n * **Creating** \\\n * **Created** \\\n * **Deleting** \\\n * **Deleted** \\\n * **Canceled** \\\n * **Failed** \\\n * **Succeeded** \\\n * **Updating**\n */\nexport type ProvisioningState = string;\n/** Defines values for ApplicationLockLevel. */\nexport type ApplicationLockLevel = \"CanNotDelete\" | \"ReadOnly\" | \"None\";\n/** Defines values for ApplicationArtifactType. */\nexport type ApplicationArtifactType = \"Template\" | \"Custom\";\n\n/** Optional parameters. */\nexport interface ApplicationClientListOperationsOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listOperations operation. */\nexport type ApplicationClientListOperationsResponse = OperationListResult;\n\n/** Optional parameters. */\nexport interface ApplicationClientListOperationsNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listOperationsNext operation. */\nexport type ApplicationClientListOperationsNextResponse = OperationListResult;\n\n/** Optional parameters. */\nexport interface ApplicationClientListOperationsNextNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listOperationsNextNext operation. */\nexport type ApplicationClientListOperationsNextNextResponse = OperationListResult;\n\n/** Optional parameters. */\nexport interface ApplicationsGetOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the get operation. */\nexport type ApplicationsGetResponse = Application;\n\n/** Optional parameters. */\nexport interface ApplicationsDeleteOptionalParams\n extends coreClient.OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */\n resumeFrom?: string;\n}\n\n/** Optional parameters. */\nexport interface ApplicationsCreateOrUpdateOptionalParams\n extends coreClient.OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */\n resumeFrom?: string;\n}\n\n/** Contains response data for the createOrUpdate operation. */\nexport type ApplicationsCreateOrUpdateResponse = Application;\n\n/** Optional parameters. */\nexport interface ApplicationsUpdateOptionalParams\n extends coreClient.OperationOptions {\n /** Parameters supplied to update an existing managed application. */\n parameters?: ApplicationPatchable;\n}\n\n/** Contains response data for the update operation. */\nexport type ApplicationsUpdateResponse = Application;\n\n/** Optional parameters. */\nexport interface ApplicationsListByResourceGroupOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listByResourceGroup operation. */\nexport type ApplicationsListByResourceGroupResponse = ApplicationListResult;\n\n/** Optional parameters. */\nexport interface ApplicationsListBySubscriptionOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listBySubscription operation. */\nexport type ApplicationsListBySubscriptionResponse = ApplicationListResult;\n\n/** Optional parameters. */\nexport interface ApplicationsGetByIdOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the getById operation. */\nexport type ApplicationsGetByIdResponse = Application;\n\n/** Optional parameters. */\nexport interface ApplicationsDeleteByIdOptionalParams\n extends coreClient.OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */\n resumeFrom?: string;\n}\n\n/** Optional parameters. */\nexport interface ApplicationsCreateOrUpdateByIdOptionalParams\n extends coreClient.OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */\n resumeFrom?: string;\n}\n\n/** Contains response data for the createOrUpdateById operation. */\nexport type ApplicationsCreateOrUpdateByIdResponse = Application;\n\n/** Optional parameters. */\nexport interface ApplicationsUpdateByIdOptionalParams\n extends coreClient.OperationOptions {\n /** Parameters supplied to update an existing managed application. */\n parameters?: Application;\n}\n\n/** Contains response data for the updateById operation. */\nexport type ApplicationsUpdateByIdResponse = Application;\n\n/** Optional parameters. */\nexport interface ApplicationsListByResourceGroupNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listByResourceGroupNext operation. */\nexport type ApplicationsListByResourceGroupNextResponse = ApplicationListResult;\n\n/** Optional parameters. */\nexport interface ApplicationsListBySubscriptionNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listBySubscriptionNext operation. */\nexport type ApplicationsListBySubscriptionNextResponse = ApplicationListResult;\n\n/** Optional parameters. */\nexport interface ApplicationsListByResourceGroupNextNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listByResourceGroupNextNext operation. */\nexport type ApplicationsListByResourceGroupNextNextResponse = ApplicationListResult;\n\n/** Optional parameters. */\nexport interface ApplicationsListBySubscriptionNextNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listBySubscriptionNextNext operation. */\nexport type ApplicationsListBySubscriptionNextNextResponse = ApplicationListResult;\n\n/** Optional parameters. */\nexport interface ApplicationDefinitionsGetOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the get operation. */\nexport type ApplicationDefinitionsGetResponse = ApplicationDefinition;\n\n/** Optional parameters. */\nexport interface ApplicationDefinitionsDeleteOptionalParams\n extends coreClient.OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */\n resumeFrom?: string;\n}\n\n/** Optional parameters. */\nexport interface ApplicationDefinitionsCreateOrUpdateOptionalParams\n extends coreClient.OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */\n resumeFrom?: string;\n}\n\n/** Contains response data for the createOrUpdate operation. */\nexport type ApplicationDefinitionsCreateOrUpdateResponse = ApplicationDefinition;\n\n/** Optional parameters. */\nexport interface ApplicationDefinitionsListByResourceGroupOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listByResourceGroup operation. */\nexport type ApplicationDefinitionsListByResourceGroupResponse = ApplicationDefinitionListResult;\n\n/** Optional parameters. */\nexport interface ApplicationDefinitionsGetByIdOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the getById operation. */\nexport type ApplicationDefinitionsGetByIdResponse = ApplicationDefinition;\n\n/** Optional parameters. */\nexport interface ApplicationDefinitionsDeleteByIdOptionalParams\n extends coreClient.OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */\n resumeFrom?: string;\n}\n\n/** Optional parameters. */\nexport interface ApplicationDefinitionsCreateOrUpdateByIdOptionalParams\n extends coreClient.OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */\n resumeFrom?: string;\n}\n\n/** Contains response data for the createOrUpdateById operation. */\nexport type ApplicationDefinitionsCreateOrUpdateByIdResponse = ApplicationDefinition;\n\n/** Optional parameters. */\nexport interface ApplicationDefinitionsListByResourceGroupNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listByResourceGroupNext operation. */\nexport type ApplicationDefinitionsListByResourceGroupNextResponse = ApplicationDefinitionListResult;\n\n/** Optional parameters. */\nexport interface ApplicationDefinitionsListByResourceGroupNextNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listByResourceGroupNextNext operation. */\nexport type ApplicationDefinitionsListByResourceGroupNextNextResponse = ApplicationDefinitionListResult;\n\n/** Optional parameters. */\nexport interface ApplicationClientOptionalParams\n extends coreClient.ServiceClientOptions {\n /** server parameter */\n $host?: string;\n /** Api Version */\n apiVersion?: string;\n /** Overrides client endpoint. */\n endpoint?: string;\n}\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\n\nexport const OperationListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationListResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"Operation\"\n }\n }\n }\n },\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const Operation: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Operation\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n type: {\n name: \"String\"\n }\n },\n display: {\n serializedName: \"display\",\n type: {\n name: \"Composite\",\n className: \"OperationDisplay\"\n }\n }\n }\n }\n};\n\nexport const OperationDisplay: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationDisplay\",\n modelProperties: {\n provider: {\n serializedName: \"provider\",\n type: {\n name: \"String\"\n }\n },\n resource: {\n serializedName: \"resource\",\n type: {\n name: \"String\"\n }\n },\n operation: {\n serializedName: \"operation\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const Resource: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Resource\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n name: {\n serializedName: \"name\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n type: {\n serializedName: \"type\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n location: {\n serializedName: \"location\",\n type: {\n name: \"String\"\n }\n },\n tags: {\n serializedName: \"tags\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n }\n }\n }\n};\n\nexport const Sku: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Sku\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n tier: {\n serializedName: \"tier\",\n type: {\n name: \"String\"\n }\n },\n size: {\n serializedName: \"size\",\n type: {\n name: \"String\"\n }\n },\n family: {\n serializedName: \"family\",\n type: {\n name: \"String\"\n }\n },\n model: {\n serializedName: \"model\",\n type: {\n name: \"String\"\n }\n },\n capacity: {\n serializedName: \"capacity\",\n type: {\n name: \"Number\"\n }\n }\n }\n }\n};\n\nexport const Identity: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Identity\",\n modelProperties: {\n principalId: {\n serializedName: \"principalId\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n tenantId: {\n serializedName: \"tenantId\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n type: {\n defaultValue: \"SystemAssigned\",\n isConstant: true,\n serializedName: \"type\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const Plan: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Plan\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n publisher: {\n serializedName: \"publisher\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n product: {\n serializedName: \"product\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n promotionCode: {\n serializedName: \"promotionCode\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"version\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ErrorResponse: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ErrorResponse\",\n modelProperties: {\n httpStatus: {\n serializedName: \"httpStatus\",\n type: {\n name: \"String\"\n }\n },\n errorCode: {\n serializedName: \"errorCode\",\n type: {\n name: \"String\"\n }\n },\n errorMessage: {\n serializedName: \"errorMessage\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const PlanPatchable: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"PlanPatchable\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n type: {\n name: \"String\"\n }\n },\n publisher: {\n serializedName: \"publisher\",\n type: {\n name: \"String\"\n }\n },\n product: {\n serializedName: \"product\",\n type: {\n name: \"String\"\n }\n },\n promotionCode: {\n serializedName: \"promotionCode\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"version\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ApplicationProviderAuthorization: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ApplicationProviderAuthorization\",\n modelProperties: {\n principalId: {\n serializedName: \"principalId\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n roleDefinitionId: {\n serializedName: \"roleDefinitionId\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ApplicationArtifact: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ApplicationArtifact\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n type: {\n name: \"String\"\n }\n },\n uri: {\n serializedName: \"uri\",\n type: {\n name: \"String\"\n }\n },\n type: {\n serializedName: \"type\",\n type: {\n name: \"Enum\",\n allowedValues: [\"Template\", \"Custom\"]\n }\n }\n }\n }\n};\n\nexport const ApplicationDefinitionListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ApplicationDefinitionListResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ApplicationDefinition\"\n }\n }\n }\n },\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ApplicationListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ApplicationListResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"Application\"\n }\n }\n }\n },\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const GenericResource: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"GenericResource\",\n modelProperties: {\n ...Resource.type.modelProperties,\n managedBy: {\n serializedName: \"managedBy\",\n type: {\n name: \"String\"\n }\n },\n sku: {\n serializedName: \"sku\",\n type: {\n name: \"Composite\",\n className: \"Sku\"\n }\n },\n identity: {\n serializedName: \"identity\",\n type: {\n name: \"Composite\",\n className: \"Identity\"\n }\n }\n }\n }\n};\n\nexport const Application: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Application\",\n modelProperties: {\n ...GenericResource.type.modelProperties,\n plan: {\n serializedName: \"plan\",\n type: {\n name: \"Composite\",\n className: \"Plan\"\n }\n },\n kind: {\n constraints: {\n Pattern: new RegExp(\"^[-\\\\w\\\\._,\\\\(\\\\)]+$\")\n },\n serializedName: \"kind\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n managedResourceGroupId: {\n serializedName: \"properties.managedResourceGroupId\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n applicationDefinitionId: {\n serializedName: \"properties.applicationDefinitionId\",\n type: {\n name: \"String\"\n }\n },\n parameters: {\n serializedName: \"properties.parameters\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"any\" } }\n }\n },\n outputs: {\n serializedName: \"properties.outputs\",\n readOnly: true,\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"any\" } }\n }\n },\n provisioningState: {\n serializedName: \"properties.provisioningState\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ApplicationPatchable: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ApplicationPatchable\",\n modelProperties: {\n ...GenericResource.type.modelProperties,\n plan: {\n serializedName: \"plan\",\n type: {\n name: \"Composite\",\n className: \"PlanPatchable\"\n }\n },\n kind: {\n constraints: {\n Pattern: new RegExp(\"^[-\\\\w\\\\._,\\\\(\\\\)]+$\")\n },\n serializedName: \"kind\",\n type: {\n name: \"String\"\n }\n },\n managedResourceGroupId: {\n serializedName: \"properties.managedResourceGroupId\",\n type: {\n name: \"String\"\n }\n },\n applicationDefinitionId: {\n serializedName: \"properties.applicationDefinitionId\",\n type: {\n name: \"String\"\n }\n },\n parameters: {\n serializedName: \"properties.parameters\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"any\" } }\n }\n },\n outputs: {\n serializedName: \"properties.outputs\",\n readOnly: true,\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"any\" } }\n }\n },\n provisioningState: {\n serializedName: \"properties.provisioningState\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ApplicationDefinition: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ApplicationDefinition\",\n modelProperties: {\n ...GenericResource.type.modelProperties,\n lockLevel: {\n serializedName: \"properties.lockLevel\",\n required: true,\n type: {\n name: \"Enum\",\n allowedValues: [\"CanNotDelete\", \"ReadOnly\", \"None\"]\n }\n },\n displayName: {\n serializedName: \"properties.displayName\",\n type: {\n name: \"String\"\n }\n },\n isEnabled: {\n serializedName: \"properties.isEnabled\",\n type: {\n name: \"String\"\n }\n },\n authorizations: {\n serializedName: \"properties.authorizations\",\n required: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ApplicationProviderAuthorization\"\n }\n }\n }\n },\n artifacts: {\n serializedName: \"properties.artifacts\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ApplicationArtifact\"\n }\n }\n }\n },\n description: {\n serializedName: \"properties.description\",\n type: {\n name: \"String\"\n }\n },\n packageFileUri: {\n serializedName: \"properties.packageFileUri\",\n type: {\n name: \"String\"\n }\n },\n mainTemplate: {\n serializedName: \"properties.mainTemplate\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"any\" } }\n }\n },\n createUiDefinition: {\n serializedName: \"properties.createUiDefinition\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"any\" } }\n }\n }\n }\n }\n};\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport {\n OperationParameter,\n OperationURLParameter,\n OperationQueryParameter\n} from \"@azure/core-client\";\nimport {\n Application as ApplicationMapper,\n ApplicationPatchable as ApplicationPatchableMapper,\n ApplicationDefinition as ApplicationDefinitionMapper\n} from \"../models/mappers\";\n\nexport const accept: OperationParameter = {\n parameterPath: \"accept\",\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Accept\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const $host: OperationURLParameter = {\n parameterPath: \"$host\",\n mapper: {\n serializedName: \"$host\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n\nexport const apiVersion: OperationQueryParameter = {\n parameterPath: \"apiVersion\",\n mapper: {\n defaultValue: \"2018-06-01\",\n isConstant: true,\n serializedName: \"api-version\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const nextLink: OperationURLParameter = {\n parameterPath: \"nextLink\",\n mapper: {\n serializedName: \"nextLink\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n\nexport const resourceGroupName: OperationURLParameter = {\n parameterPath: \"resourceGroupName\",\n mapper: {\n constraints: {\n Pattern: new RegExp(\"^[-\\\\w\\\\._\\\\(\\\\)]+$\"),\n MaxLength: 90,\n MinLength: 1\n },\n serializedName: \"resourceGroupName\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const applicationName: OperationURLParameter = {\n parameterPath: \"applicationName\",\n mapper: {\n constraints: {\n MaxLength: 64,\n MinLength: 3\n },\n serializedName: \"applicationName\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const subscriptionId: OperationURLParameter = {\n parameterPath: \"subscriptionId\",\n mapper: {\n serializedName: \"subscriptionId\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const contentType: OperationParameter = {\n parameterPath: [\"options\", \"contentType\"],\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Content-Type\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const parameters: OperationParameter = {\n parameterPath: \"parameters\",\n mapper: ApplicationMapper\n};\n\nexport const parameters1: OperationParameter = {\n parameterPath: [\"options\", \"parameters\"],\n mapper: ApplicationPatchableMapper\n};\n\nexport const applicationId: OperationURLParameter = {\n parameterPath: \"applicationId\",\n mapper: {\n serializedName: \"applicationId\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n\nexport const parameters2: OperationParameter = {\n parameterPath: [\"options\", \"parameters\"],\n mapper: ApplicationMapper\n};\n\nexport const applicationDefinitionName: OperationURLParameter = {\n parameterPath: \"applicationDefinitionName\",\n mapper: {\n constraints: {\n MaxLength: 64,\n MinLength: 3\n },\n serializedName: \"applicationDefinitionName\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const parameters3: OperationParameter = {\n parameterPath: \"parameters\",\n mapper: ApplicationDefinitionMapper\n};\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { LroConfig, RawResponse } from \"./models\";\n\n/**\n * Detects where the continuation token is and returns it. Notice that azure-asyncoperation\n * must be checked first before the other location headers because there are scenarios\n * where both azure-asyncoperation and location could be present in the same response but\n * azure-asyncoperation should be the one to use for polling.\n */\nexport function getPollingUrl(\n rawResponse: RawResponse,\n defaultPath: string\n): string {\n return (\n getAzureAsyncOperation(rawResponse) ??\n getLocation(rawResponse) ??\n getOperationLocation(rawResponse) ??\n defaultPath\n );\n}\n\nfunction getLocation(rawResponse: RawResponse): string | undefined {\n return rawResponse.headers[\"location\"];\n}\n\nfunction getOperationLocation(rawResponse: RawResponse): string | undefined {\n return rawResponse.headers[\"operation-location\"];\n}\n\nfunction getAzureAsyncOperation(rawResponse: RawResponse): string | undefined {\n return rawResponse.headers[\"azure-asyncoperation\"];\n}\n\nexport function inferLroMode(\n requestPath: string,\n requestMethod: string,\n rawResponse: RawResponse\n): LroConfig {\n if (getAzureAsyncOperation(rawResponse) !== undefined) {\n return {\n mode: \"AzureAsync\",\n resourceLocation:\n requestMethod === \"PUT\"\n ? requestPath\n : requestMethod === \"POST\"\n ? getLocation(rawResponse)\n : undefined\n };\n } else if (\n getLocation(rawResponse) !== undefined ||\n getOperationLocation(rawResponse) !== undefined\n ) {\n return {\n mode: \"Location\"\n };\n } else if ([\"PUT\", \"PATCH\"].includes(requestMethod)) {\n return {\n mode: \"Body\"\n };\n }\n return {};\n}\n\nexport class RestError extends Error {\n public statusCode?: number;\n constructor(message: string, statusCode: number) {\n super(message);\n this.name = \"RestError\";\n this.statusCode = statusCode;\n\n Object.setPrototypeOf(this, RestError.prototype);\n }\n}\n\nexport function isUnexpectedInitialResponse(rawResponse: RawResponse): boolean {\n const code = rawResponse.statusCode;\n if (![203, 204, 202, 201, 200, 500].includes(code)) {\n throw new RestError(\n `Received unexpected HTTP status code ${code} in the initial response. This may indicate a server issue.`,\n code\n );\n }\n return false;\n}\n\nexport function isUnexpectedPollingResponse(rawResponse: RawResponse): boolean {\n const code = rawResponse.statusCode;\n if (![202, 201, 200, 500].includes(code)) {\n throw new RestError(\n `Received unexpected HTTP status code ${code} while polling. This may indicate a server issue.`,\n code\n );\n }\n return false;\n}\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { PollOperationState } from \"@azure/core-lro\";\n\n/**\n * Options for the LRO poller.\n */\nexport interface LroEngineOptions {\n /**\n * Defines how much time the poller is going to wait before making a new request to the service.\n */\n intervalInMs?: number;\n /**\n * A serialized poller which can be used to resume an existing paused Long-Running-Operation.\n */\n resumeFrom?: string;\n}\n\nexport const successStates = [\"succeeded\"];\nexport const failureStates = [\"failed\", \"canceled\", \"cancelled\"];\n/**\n * The LRO states that signal that the LRO has completed.\n */\nexport const terminalStates = successStates.concat(failureStates);\n\n/**\n * The potential location of the result of the LRO if specified by the LRO extension in the swagger.\n */\nexport type LroResourceLocationConfig =\n | \"azure-async-operation\"\n | \"location\"\n | \"original-uri\";\n\n/**\n * The type of a LRO response body. This is just a convenience type for checking the status of the operation.\n */\n\nexport interface LroBody extends Record<string, unknown> {\n /** The status of the operation. */\n status?: string;\n /** The state of the provisioning process */\n provisioningState?: string;\n /** The properties of the provisioning process */\n properties?: { provisioningState?: string } & Record<string, unknown>;\n}\n\n/**\n * Simple type of the raw response.\n */\nexport interface RawResponse {\n /** The HTTP status code */\n statusCode: number;\n /** A HttpHeaders collection in the response represented as a simple JSON object where all header names have been normalized to be lower-case. */\n headers: {\n [headerName: string]: string;\n };\n /** The parsed response body */\n body?: unknown;\n}\n\n/**\n * The type of the response of a LRO.\n */\nexport interface LroResponse<T> {\n /** The flattened response */\n flatResponse: T;\n /** The raw response */\n rawResponse: RawResponse;\n}\n\n/** The type of which LRO implementation being followed by a specific API. */\nexport type LroMode = \"AzureAsync\" | \"Location\" | \"Body\";\n\n/**\n * The configuration of a LRO to determine how to perform polling and checking whether the operation has completed.\n */\nexport interface LroConfig {\n /** The LRO mode */\n mode?: LroMode;\n /** The path of a provisioned resource */\n resourceLocation?: string;\n}\n\n/**\n * Type of a polling operation state that can actually be resumed.\n */\nexport type ResumablePollOperationState<T> = PollOperationState<T> & {\n initialRawResponse?: RawResponse;\n config?: LroConfig;\n pollingURL?: string;\n};\n\nexport interface PollerConfig {\n intervalInMs: number;\n}\n\n/**\n * The type of a terminal state of an LRO.\n */\nexport interface LroTerminalState<T> extends LroResponse<T> {\n /**\n * Whether the operation has finished.\n */\n done: true;\n}\n\n/**\n * The type of an in-progress state of an LRO.\n */\nexport interface LroInProgressState<T> extends LroResponse<T> {\n /**\n * Whether the operation has finished.\n */\n done: false;\n /**\n * The request to be sent next if it is different from the standard polling one.\n * Notice that it will disregard any polling URLs provided to it.\n */\n next?: () => Promise<LroStatus<T>>;\n}\n\n/**\n * The type of an LRO state which is a tagged union of terminal and in-progress states.\n */\nexport type LroStatus<T> = LroTerminalState<T> | LroInProgressState<T>;\n\n/**\n * The type of the getLROStatusFromResponse method. It takes the response as input and returns along the response whether the operation has finished.\n */\nexport type GetLroStatusFromResponse<T> = (\n rawResponse: RawResponse,\n flatResponse: T\n) => LroStatus<T>;\n\n/**\n * Description of a long running operation.\n */\nexport interface LongRunningOperation<T> {\n /**\n * The request path.\n */\n requestPath: string;\n /**\n * The HTTP request method.\n */\n requestMethod: string;\n /**\n * A function that can be used to send initial request to the service.\n */\n sendInitialRequest: (\n initializeState: (\n rawResponse: RawResponse,\n flatResponse: unknown\n ) => boolean\n ) => Promise<LroResponse<T>>;\n /**\n * A function that can be used to poll for the current status of a long running operation.\n */\n sendPollRequest: (config: LroConfig, path: string) => Promise<LroStatus<T>>;\n /**\n * A function that can be used to retrieve the provisioned azure resource.\n */\n retrieveAzureAsyncResource: (path?: string) => Promise<LroResponse<T>>;\n}\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport {\n failureStates,\n LroResourceLocationConfig,\n LongRunningOperation,\n LroBody,\n LroResponse,\n LroStatus,\n RawResponse,\n successStates\n} from \"./models\";\nimport { isUnexpectedPollingResponse } from \"./requestUtils\";\n\nfunction getResponseStatus(rawResponse: RawResponse): string {\n const { status } = (rawResponse.body as LroBody) ?? {};\n return status?.toLowerCase() ?? \"succeeded\";\n}\n\nfunction isAzureAsyncPollingDone(rawResponse: RawResponse): boolean {\n const state = getResponseStatus(rawResponse);\n if (\n isUnexpectedPollingResponse(rawResponse) ||\n failureStates.includes(state)\n ) {\n throw new Error(`Operation status: ${state}`);\n }\n return successStates.includes(state);\n}\n\nasync function sendFinalRequest<TResult>(\n lro: LongRunningOperation<TResult>,\n lroResourceLocationConfig?: LroResourceLocationConfig,\n resourceLocation?: string\n): Promise<LroResponse<TResult> | undefined> {\n switch (lroResourceLocationConfig) {\n case \"original-uri\":\n return lro.retrieveAzureAsyncResource();\n case \"azure-async-operation\":\n return Promise.resolve(undefined);\n case \"location\":\n default:\n return lro.retrieveAzureAsyncResource(resourceLocation);\n }\n}\n\nexport function processAzureAsyncOperationResult<TResult>(\n lro: LongRunningOperation<TResult>,\n resourceLocation?: string,\n lroResourceLocationConfig?: LroResourceLocationConfig\n): (rawResponse: RawResponse, flatResponse: TResult) => LroStatus<TResult> {\n return (\n rawResponse: RawResponse,\n flatResponse: TResult\n ): LroStatus<TResult> => {\n if (isAzureAsyncPollingDone(rawResponse)) {\n if (resourceLocation === undefined) {\n return { rawResponse, flatResponse, done: true };\n } else {\n return {\n rawResponse,\n flatResponse,\n done: false,\n next: async () => {\n const finalResponse = await sendFinalRequest(\n lro,\n lroResourceLocationConfig,\n resourceLocation\n );\n return {\n ...(finalResponse ?? {\n rawResponse,\n flatResponse\n }),\n done: true\n };\n }\n };\n }\n }\n return {\n rawResponse,\n flatResponse,\n done: false\n };\n };\n}\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport {\n failureStates,\n LroBody,\n LroStatus,\n RawResponse,\n successStates\n} from \"./models\";\nimport { isUnexpectedPollingResponse } from \"./requestUtils\";\n\nfunction getProvisioningState(rawResponse: RawResponse): string {\n const { properties, provisioningState } = (rawResponse.body as LroBody) ?? {};\n const state: string | undefined =\n properties?.provisioningState ?? provisioningState;\n return state?.toLowerCase() ?? \"succeeded\";\n}\n\nexport function isBodyPollingDone(rawResponse: RawResponse): boolean {\n const state = getProvisioningState(rawResponse);\n if (\n isUnexpectedPollingResponse(rawResponse) ||\n failureStates.includes(state)\n ) {\n throw new Error(\n `The long running operation has failed. The provisioning state: ${state}.`\n );\n }\n return successStates.includes(state);\n}\n\n/**\n * Creates a polling strategy based on BodyPolling which uses the provisioning state\n * from the result to determine the current operation state\n */\nexport function processBodyPollingOperationResult<TResult>(\n rawResponse: RawResponse,\n flatResponse: TResult\n): LroStatus<TResult> {\n return {\n rawResponse,\n flatResponse,\n done: isBodyPollingDone(rawResponse)\n };\n}\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { LroStatus, RawResponse } from \"./models\";\nimport { isUnexpectedPollingResponse } from \"./requestUtils\";\n\nfunction isLocationPollingDone(rawResponse: RawResponse): boolean {\n return (\n !isUnexpectedPollingResponse(rawResponse) && rawResponse.statusCode !== 202\n );\n}\n\nexport function processLocationPollingOperationResult<TResult>(\n rawResponse: RawResponse,\n flatResponse: TResult\n): LroStatus<TResult> {\n return {\n rawResponse,\n flatResponse,\n done: isLocationPollingDone(rawResponse)\n };\n}\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { LroStatus, RawResponse } from \"./models\";\n\nexport function processPassthroughOperationResult<TResult>(\n rawResponse: RawResponse,\n flatResponse: TResult\n): LroStatus<TResult> {\n return {\n rawResponse,\n flatResponse,\n done: true\n };\n}\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { processAzureAsyncOperationResult } from \"./azureAsyncPolling\";\nimport {\n isBodyPollingDone,\n processBodyPollingOperationResult\n} from \"./bodyPolling\";\nimport { processLocationPollingOperationResult } from \"./locationPolling\";\nimport {\n LroResourceLocationConfig,\n GetLroStatusFromResponse,\n LongRunningOperation,\n LroConfig,\n LroStatus,\n PollerConfig,\n RawResponse,\n ResumablePollOperationState\n} from \"./models\";\nimport { processPassthroughOperationResult } from \"./passthrough\";\nimport {\n getPollingUrl,\n inferLroMode,\n isUnexpectedInitialResponse\n} from \"./requestUtils\";\n\n/**\n * creates a stepping function that maps an LRO state to another.\n */\nexport function createGetLroStatusFromResponse<TResult>(\n lroPrimitives: LongRunningOperation<TResult>,\n config: LroConfig,\n lroResourceLocationConfig?: LroResourceLocationConfig\n): GetLroStatusFromResponse<TResult> {\n switch (config.mode) {\n case \"AzureAsync\": {\n return processAzureAsyncOperationResult(\n lroPrimitives,\n config.resourceLocation,\n lroResourceLocationConfig\n );\n }\n case \"Location\": {\n return processLocationPollingOperationResult;\n }\n case \"Body\": {\n return processBodyPollingOperationResult;\n }\n default: {\n return processPassthroughOperationResult;\n }\n }\n}\n\n/**\n * Creates a polling operation that returns a LRO state.\n */\nexport function createPollForLROStatus<TResult>(\n lroPrimitives: LongRunningOperation<TResult>,\n config: LroConfig\n): (\n pollingURL: string,\n pollerConfig: PollerConfig\n) => Promise<LroStatus<TResult>> {\n return async (\n path: string,\n pollerConfig: PollerConfig\n ): Promise<LroStatus<TResult>> => {\n const response = await lroPrimitives.sendPollRequest(config, path);\n const retryAfter: string | undefined =\n response.rawResponse.headers[\"retry-after\"];\n if (retryAfter !== undefined) {\n const retryAfterInMs = parseInt(retryAfter);\n pollerConfig.intervalInMs = isNaN(retryAfterInMs)\n ? calculatePollingIntervalFromDate(\n new Date(retryAfter),\n pollerConfig.intervalInMs\n )\n : retryAfterInMs;\n }\n return response;\n };\n}\n\nfunction calculatePollingIntervalFromDate(\n retryAfterDate: Date,\n defaultIntervalInMs: number\n): number {\n const timeNow = Math.floor(new Date().getTime());\n const retryAfterTime = retryAfterDate.getTime();\n if (timeNow < retryAfterTime) {\n return retryAfterTime - timeNow;\n }\n return defaultIntervalInMs;\n}\n\n/**\n * Creates a callback to be used to initialize the polling operation state.\n * @param state - of the polling operation\n * @param operationSpec - of the LRO\n * @param callback - callback to be called when the operation is done\n * @returns callback that initializes the state of the polling operation\n */\nexport function createInitializeState<TResult>(\n state: ResumablePollOperationState<TResult>,\n requestPath: string,\n requestMethod: string\n): (rawResponse: RawResponse, flatResponse: unknown) => boolean {\n return (rawResponse: RawResponse, flatResponse: unknown) => {\n if (isUnexpectedInitialResponse(rawResponse)) return true;\n state.initialRawResponse = rawResponse;\n state.isStarted = true;\n state.pollingURL = getPollingUrl(state.initialRawResponse, requestPath);\n state.config = inferLroMode(\n requestPath,\n requestMethod,\n state.initialRawResponse\n );\n /** short circuit polling if body polling is done in the initial request */\n if (\n state.config.mode === undefined ||\n (state.config.mode === \"Body\" &&\n isBodyPollingDone(state.initialRawResponse))\n ) {\n state.result = flatResponse as TResult;\n state.isCompleted = true;\n }\n return Boolean(state.isCompleted);\n };\n}\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport { PollOperationState, PollOperation } from \"@azure/core-lro\";\nimport {\n PollerConfig,\n ResumablePollOperationState,\n LongRunningOperation,\n LroStatus\n} from \"./models\";\nimport { getPollingUrl } from \"./requestUtils\";\nimport { createInitializeState, createPollForLROStatus } from \"./stateMachine\";\n\nexport class GenericPollOperation<\n TResult,\n TState extends PollOperationState<TResult>\n> implements PollOperation<TState, TResult> {\n private getLROStatusFromResponse?: (\n pollingURL: string,\n pollerConfig: PollerConfig\n ) => Promise<LroStatus<TResult>>;\n private pollerConfig?: PollerConfig;\n constructor(\n public state: TState & ResumablePollOperationState<TResult>,\n private lro: LongRunningOperation<TResult>\n ) {}\n\n public setPollerConfig(pollerConfig: PollerConfig): void {\n this.pollerConfig = pollerConfig;\n }\n\n /**\n * General update function for LROPoller, the general process is as follows\n * 1. Check initial operation result to determine the strategy to use\n * - Strategies: Location, Azure-AsyncOperation, Original Uri\n * 2. Check if the operation result has a terminal state\n * - Terminal state will be determined by each strategy\n * 2.1 If it is terminal state Check if a final GET request is required, if so\n * send final GET request and return result from operation. If no final GET\n * is required, just return the result from operation.\n * - Determining what to call for final request is responsibility of each strategy\n * 2.2 If it is not terminal state, call the polling operation and go to step 1\n * - Determining what to call for polling is responsibility of each strategy\n * - Strategies will always use the latest URI for polling if provided otherwise\n * the last known one\n */\n async update(options?: {\n abortSignal?: AbortSignalLike | undefined;\n fireProgress?: ((state: TState) => void) | undefined;\n }): Promise<PollOperation<TState, TResult>> {\n const state = this.state;\n if (!state.isStarted) {\n const initializeState = createInitializeState(\n state,\n this.lro.requestPath,\n this.lro.requestMethod\n );\n await this.lro.sendInitialRequest(initializeState);\n }\n\n if (!state.isCompleted) {\n if (this.getLROStatusFromResponse === undefined) {\n if (state.config === undefined) {\n throw new Error(\n \"Bad state: LRO mode is undefined. Please check if the serialized state is well-formed.\"\n );\n }\n this.getLROStatusFromResponse = createPollForLROStatus(\n this.lro,\n state.config\n );\n }\n if (state.pollingURL === undefined) {\n throw new Error(\n \"Bad state: polling URL is undefined. Please check if the serialized state is well-formed.\"\n );\n }\n const currentState = await this.getLROStatusFromResponse(\n state.pollingURL,\n this.pollerConfig!\n );\n if (currentState.done) {\n state.result = currentState.flatResponse;\n state.isCompleted = true;\n } else {\n this.getLROStatusFromResponse =\n currentState.next ?? this.getLROStatusFromResponse;\n state.pollingURL = getPollingUrl(\n currentState.rawResponse,\n state.pollingURL\n );\n }\n }\n options?.fireProgress?.(state);\n return this;\n }\n\n async cancel(): Promise<PollOperation<TState, TResult>> {\n this.state.isCancelled = true;\n return this;\n }\n\n /**\n * Serializes the Poller operation.\n */\n public toString(): string {\n return JSON.stringify({\n state: this.state\n });\n }\n}\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { Poller, PollOperationState } from \"@azure/core-lro\";\nimport {\n LongRunningOperation,\n LroEngineOptions,\n ResumablePollOperationState\n} from \"./models\";\nimport { GenericPollOperation } from \"./operation\";\n\n/**\n * The LRO Engine, a class that performs polling.\n */\nexport class LroEngine<\n TResult,\n TState extends PollOperationState<TResult>\n> extends Poller<TState, TResult> {\n private intervalInMs: number;\n\n constructor(lro: LongRunningOperation<TResult>, options?: LroEngineOptions) {\n const { intervalInMs = 2000, resumeFrom } = options || {};\n function deserializeState(\n resumeFrom: string\n ): TState & ResumablePollOperationState<TResult> {\n try {\n return JSON.parse(resumeFrom).state;\n } catch (e) {\n throw new Error(\n `LroEngine: Unable to deserialize state: ${resumeFrom}`\n );\n }\n }\n const state: TState & ResumablePollOperationState<TResult> = resumeFrom\n ? deserializeState(resumeFrom)\n : ({} as any);\n\n const operation = new GenericPollOperation(state, lro);\n super(operation);\n\n this.intervalInMs = intervalInMs;\n operation.setPollerConfig(this as any);\n }\n\n /**\n * The method used by the poller to wait before attempting to update its operation.\n */\n delay(): Promise<void> {\n return new Promise((resolve) =>\n setTimeout(() => resolve(), this.intervalInMs)\n );\n }\n}\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n OperationArguments,\n OperationSpec,\n OperationResponseMap,\n FullOperationResponse\n} from \"@azure/core-client\";\nimport {\n LroResourceLocationConfig,\n GetLroStatusFromResponse,\n LongRunningOperation,\n LroConfig,\n LroMode,\n LroResponse,\n LroStatus,\n createGetLroStatusFromResponse,\n RawResponse\n} from \"./lro\";\n\nexport const successStates = [\"succeeded\"];\nexport const failureStates = [\"failed\", \"canceled\", \"cancelled\"];\nexport const terminalStates = successStates.concat(failureStates);\n\nexport type SendOperationFn<T> = (\n args: OperationArguments,\n spec: OperationSpec\n) => Promise<LroResponse<T>>;\n\nexport function createPollingMethod<TResult>(\n sendOperationFn: SendOperationFn<TResult>,\n GetLroStatusFromResponse: GetLroStatusFromResponse<TResult>,\n args: OperationArguments,\n spec: OperationSpec,\n mode?: LroMode\n): (path?: string) => Promise<LroStatus<TResult>> {\n /**\n * Polling calls will always return a status object i.e. {\"status\": \"success\"}\n * these intermediate responses are not described in the swagger so we need to\n * pass custom mappers at runtime.\n * This function replaces all the existing mappers to be able to deserialize a status object\n * @param responses Original set of responses defined in the operation\n */\n function getCompositeMappers(responses: {\n [responseCode: string]: OperationResponseMap;\n }): {\n [responseCode: string]: OperationResponseMap;\n } {\n return Object.keys(responses).reduce((acc, statusCode) => {\n return {\n ...acc,\n [statusCode]: {\n ...responses[statusCode],\n bodyMapper: {\n type: {\n name: \"Composite\",\n modelProperties: {\n status: {\n serializedName: \"status\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n }\n }\n };\n }, {} as { [responseCode: string]: OperationResponseMap });\n }\n let response: LroStatus<TResult> | undefined = undefined;\n const customerCallback = args?.options?.onResponse;\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: (\n rawResponse: FullOperationResponse,\n flatResponse: unknown\n ): void => {\n response = GetLroStatusFromResponse(\n {\n statusCode: rawResponse.status,\n body: rawResponse.parsedBody,\n headers: rawResponse.headers.toJSON()\n },\n flatResponse as TResult\n );\n if (response.done) {\n customerCallback?.(rawResponse, flatResponse);\n }\n }\n }\n };\n // Make sure we don't send any body to the get request\n const { requestBody, responses, ...restSpec } = spec;\n if (mode === \"AzureAsync\") {\n return async (path?: string) => {\n await sendOperationFn(updatedArgs, {\n ...restSpec,\n responses: getCompositeMappers(responses),\n httpMethod: \"GET\",\n ...(path && { path })\n });\n return response!;\n };\n }\n return async (path?: string) => {\n await sendOperationFn(updatedArgs, {\n ...restSpec,\n responses: responses,\n httpMethod: \"GET\",\n ...(path && { path })\n });\n return response!;\n };\n}\n\n/**\n * We need to selectively deserialize our responses, only deserializing if we\n * are in a final Lro response, not deserializing any polling non-terminal responses\n */\nexport function shouldDeserializeLro(lroResourceLocationConfig?: string) {\n let initialOperationInfo: LroResponseInfo | undefined;\n let isInitialRequest = true;\n\n return (response: FullOperationResponse) => {\n if (response.status < 200 || response.status >= 300) {\n return true;\n }\n\n if (!initialOperationInfo) {\n initialOperationInfo = getLroData(response);\n } else {\n isInitialRequest = false;\n }\n\n if (\n initialOperationInfo.azureAsyncOperation ||\n initialOperationInfo.operationLocation\n ) {\n return (\n !isInitialRequest &&\n isAsyncOperationFinalResponse(\n response,\n initialOperationInfo,\n lroResourceLocationConfig\n )\n );\n }\n\n if (initialOperationInfo.location) {\n return isLocationFinalResponse(response);\n }\n\n if (initialOperationInfo.requestMethod === \"PUT\") {\n return isBodyPollingFinalResponse(response);\n }\n\n return true;\n };\n}\n\nfunction isAsyncOperationFinalResponse(\n response: FullOperationResponse,\n initialOperationInfo: LroResponseInfo,\n lroResourceLocationConfig?: string\n): boolean {\n const status: string = response.parsedBody?.status || \"Succeeded\";\n if (!terminalStates.includes(status.toLowerCase())) {\n return false;\n }\n\n if (initialOperationInfo.requestMethod === \"DELETE\") {\n return true;\n }\n\n if (\n initialOperationInfo.requestMethod === \"PUT\" &&\n lroResourceLocationConfig &&\n lroResourceLocationConfig.toLowerCase() === \"azure-asyncoperation\"\n ) {\n return true;\n }\n\n if (\n initialOperationInfo.requestMethod !== \"PUT\" &&\n !initialOperationInfo.location\n ) {\n return true;\n }\n\n return false;\n}\n\nfunction isLocationFinalResponse(response: FullOperationResponse): boolean {\n return response.status !== 202;\n}\n\nfunction isBodyPollingFinalResponse(response: FullOperationResponse): boolean {\n const provisioningState: string =\n response.parsedBody?.properties?.provisioningState || \"Succeeded\";\n\n if (terminalStates.includes(provisioningState.toLowerCase())) {\n return true;\n }\n\n return false;\n}\n\ninterface LroResponseInfo {\n requestMethod: string;\n azureAsyncOperation?: string;\n operationLocation?: string;\n location?: string;\n}\n\nfunction getLroData(result: FullOperationResponse): LroResponseInfo {\n return {\n azureAsyncOperation: result.headers.get(\"azure-asyncoperation\"),\n operationLocation: result.headers.get(\"operation-location\"),\n location: result.headers.get(\"location\"),\n requestMethod: result.request.method\n };\n}\n\nexport function getSpecPath(spec: OperationSpec): string {\n if (spec.path) {\n return spec.path;\n } else {\n throw Error(\"Bad spec: request path is not found!\");\n }\n}\n\nexport class CoreClientLro<T> implements LongRunningOperation<T> {\n constructor(\n private sendOperationFn: SendOperationFn<T>,\n private args: OperationArguments,\n private spec: OperationSpec,\n private lroResourceLocationConfig?: LroResourceLocationConfig,\n public requestPath: string = spec.path!,\n public requestMethod: string = spec.httpMethod\n ) {}\n public async sendInitialRequest(\n initializeState: (\n rawResponse: RawResponse,\n flatResponse: unknown\n ) => boolean\n ): Promise<LroResponse<T>> {\n const { onResponse, ...restOptions } = this.args.options || {};\n return this.sendOperationFn(\n {\n ...this.args,\n options: {\n ...restOptions,\n onResponse: (\n rawResponse: FullOperationResponse,\n flatResponse: unknown\n ) => {\n const isCompleted = initializeState(\n {\n statusCode: rawResponse.status,\n body: rawResponse.parsedBody,\n headers: rawResponse.headers.toJSON()\n },\n flatResponse\n );\n if (isCompleted) {\n onResponse?.(rawResponse, flatResponse);\n }\n }\n }\n },\n this.spec\n );\n }\n\n public async sendPollRequest(\n config: LroConfig,\n path: string\n ): Promise<LroStatus<T>> {\n const getLroStatusFromResponse = createGetLroStatusFromResponse(\n this,\n config,\n this.lroResourceLocationConfig\n );\n return createPollingMethod(\n this.sendOperationFn,\n getLroStatusFromResponse,\n this.args,\n this.spec,\n config.mode\n )(path);\n }\n\n public async retrieveAzureAsyncResource(\n path?: string\n ): Promise<LroResponse<T>> {\n const updatedArgs = { ...this.args };\n if (updatedArgs.options) {\n (updatedArgs.options as any).shouldDeserialize = true;\n }\n return createPollingMethod(\n this.sendOperationFn,\n (rawResponse, flatResponse) => ({\n rawResponse,\n flatResponse,\n done: true\n }),\n updatedArgs,\n this.spec\n )(path);\n }\n}\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport \"@azure/core-paging\";\nimport { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { Applications } from \"../operationsInterfaces\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { ApplicationClientContext } from \"../applicationClientContext\";\nimport { PollerLike, PollOperationState } from \"@azure/core-lro\";\nimport { LroEngine } from \"../lro\";\nimport { CoreClientLro, shouldDeserializeLro } from \"../coreClientLro\";\nimport {\n Application,\n ApplicationsListByResourceGroupNextOptionalParams,\n ApplicationsListByResourceGroupOptionalParams,\n ApplicationsListBySubscriptionNextOptionalParams,\n ApplicationsListBySubscriptionOptionalParams,\n ApplicationsListByResourceGroupNextNextOptionalParams,\n ApplicationsListBySubscriptionNextNextOptionalParams,\n ApplicationsGetOptionalParams,\n ApplicationsGetResponse,\n ApplicationsDeleteOptionalParams,\n ApplicationsCreateOrUpdateOptionalParams,\n ApplicationsCreateOrUpdateResponse,\n ApplicationsUpdateOptionalParams,\n ApplicationsUpdateResponse,\n ApplicationsListByResourceGroupResponse,\n ApplicationsListBySubscriptionResponse,\n ApplicationsGetByIdOptionalParams,\n ApplicationsGetByIdResponse,\n ApplicationsDeleteByIdOptionalParams,\n ApplicationsCreateOrUpdateByIdOptionalParams,\n ApplicationsCreateOrUpdateByIdResponse,\n ApplicationsUpdateByIdOptionalParams,\n ApplicationsUpdateByIdResponse,\n ApplicationsListByResourceGroupNextResponse,\n ApplicationsListBySubscriptionNextResponse,\n ApplicationsListByResourceGroupNextNextResponse,\n ApplicationsListBySubscriptionNextNextResponse\n} from \"../models\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class representing a Applications. */\nexport class ApplicationsImpl implements Applications {\n private readonly client: ApplicationClientContext;\n\n /**\n * Initialize a new instance of the class Applications class.\n * @param client Reference to the service client\n */\n constructor(client: ApplicationClientContext) {\n this.client = client;\n }\n\n /**\n * Gets all the applications within a resource group.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: ApplicationsListByResourceGroupOptionalParams\n ): PagedAsyncIterableIterator<Application> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.listByResourceGroupPagingPage(resourceGroupName, options);\n }\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: ApplicationsListByResourceGroupOptionalParams\n ): AsyncIterableIterator<Application[]> {\n let result = await this._listByResourceGroup(resourceGroupName, options);\n yield result.value || [];\n let continuationToken = result.nextLink;\n while (continuationToken) {\n result = await this._listByResourceGroupNext(\n resourceGroupName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n yield result.value || [];\n }\n }\n\n private async *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: ApplicationsListByResourceGroupOptionalParams\n ): AsyncIterableIterator<Application> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets all the applications within a subscription.\n * @param options The options parameters.\n */\n public listBySubscription(\n options?: ApplicationsListBySubscriptionOptionalParams\n ): PagedAsyncIterableIterator<Application> {\n const iter = this.listBySubscriptionPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.listBySubscriptionPagingPage(options);\n }\n };\n }\n\n private async *listBySubscriptionPagingPage(\n options?: ApplicationsListBySubscriptionOptionalParams\n ): AsyncIterableIterator<Application[]> {\n let result = await this._listBySubscription(options);\n yield result.value || [];\n let continuationToken = result.nextLink;\n while (continuationToken) {\n result = await this._listBySubscriptionNext(continuationToken, options);\n continuationToken = result.nextLink;\n yield result.value || [];\n }\n }\n\n private async *listBySubscriptionPagingAll(\n options?: ApplicationsListBySubscriptionOptionalParams\n ): AsyncIterableIterator<Application> {\n for await (const page of this.listBySubscriptionPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n public listByResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: ApplicationsListByResourceGroupNextOptionalParams\n ): PagedAsyncIterableIterator<Application> {\n const iter = this.listByResourceGroupNextPagingAll(\n resourceGroupName,\n nextLink,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.listByResourceGroupNextPagingPage(\n resourceGroupName,\n nextLink,\n options\n );\n }\n };\n }\n\n private async *listByResourceGroupNextPagingPage(\n resourceGroupName: string,\n nextLink: string,\n options?: ApplicationsListByResourceGroupNextOptionalParams\n ): AsyncIterableIterator<Application[]> {\n let result = await this._listByResourceGroupNext(\n resourceGroupName,\n nextLink,\n options\n );\n yield result.value || [];\n let continuationToken = result.nextLink;\n while (continuationToken) {\n result = await this._listByResourceGroupNextNext(\n resourceGroupName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n yield result.value || [];\n }\n }\n\n private async *listByResourceGroupNextPagingAll(\n resourceGroupName: string,\n nextLink: string,\n options?: ApplicationsListByResourceGroupNextOptionalParams\n ): AsyncIterableIterator<Application> {\n for await (const page of this.listByResourceGroupNextPagingPage(\n resourceGroupName,\n nextLink,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * ListBySubscriptionNext\n * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.\n * @param options The options parameters.\n */\n public listBySubscriptionNext(\n nextLink: string,\n options?: ApplicationsListBySubscriptionNextOptionalParams\n ): PagedAsyncIterableIterator<Application> {\n const iter = this.listBySubscriptionNextPagingAll(nextLink, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.listBySubscriptionNextPagingPage(nextLink, options);\n }\n };\n }\n\n private async *listBySubscriptionNextPagingPage(\n nextLink: string,\n options?: ApplicationsListBySubscriptionNextOptionalParams\n ): AsyncIterableIterator<Application[]> {\n let result = await this._listBySubscriptionNext(nextLink, options);\n yield result.value || [];\n let continuationToken = result.nextLink;\n while (continuationToken) {\n result = await this._listBySubscriptionNextNext(\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n yield result.value || [];\n }\n }\n\n private async *listBySubscriptionNextPagingAll(\n nextLink: string,\n options?: ApplicationsListBySubscriptionNextOptionalParams\n ): AsyncIterableIterator<Application> {\n for await (const page of this.listBySubscriptionNextPagingPage(\n nextLink,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets the managed application.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param applicationName The name of the managed application.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n applicationName: string,\n options?: ApplicationsGetOptionalParams\n ): Promise<ApplicationsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, applicationName, options },\n getOperationSpec\n );\n }\n\n /**\n * Deletes the managed application.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param applicationName The name of the managed application.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n applicationName: string,\n options?: ApplicationsDeleteOptionalParams\n ): Promise<PollerLike<PollOperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new CoreClientLro(\n sendOperation,\n { resourceGroupName, applicationName, options },\n deleteOperationSpec\n );\n return new LroEngine(lro, { intervalInMs: options?.updateIntervalInMs });\n }\n\n /**\n * Deletes the managed application.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param applicationName The name of the managed application.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n applicationName: string,\n options?: ApplicationsDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n applicationName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Creates a new managed application.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param applicationName The name of the managed application.\n * @param parameters Parameters supplied to the create or update a managed application.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n applicationName: string,\n parameters: Application,\n options?: ApplicationsCreateOrUpdateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<ApplicationsCreateOrUpdateResponse>,\n ApplicationsCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<ApplicationsCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new CoreClientLro(\n sendOperation,\n { resourceGroupName, applicationName, parameters, options },\n createOrUpdateOperationSpec\n );\n return new LroEngine(lro, { intervalInMs: options?.updateIntervalInMs });\n }\n\n /**\n * Creates a new managed application.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param applicationName The name of the managed application.\n * @param parameters Parameters supplied to the create or update a managed application.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n applicationName: string,\n parameters: Application,\n options?: ApplicationsCreateOrUpdateOptionalParams\n ): Promise<ApplicationsCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n applicationName,\n parameters,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Updates an existing managed application. The only value that can be updated via PATCH currently is\n * the tags.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param applicationName The name of the managed application.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n applicationName: string,\n options?: ApplicationsUpdateOptionalParams\n ): Promise<ApplicationsUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, applicationName, options },\n updateOperationSpec\n );\n }\n\n /**\n * Gets all the applications within a resource group.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: ApplicationsListByResourceGroupOptionalParams\n ): Promise<ApplicationsListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec\n );\n }\n\n /**\n * Gets all the applications within a subscription.\n * @param options The options parameters.\n */\n private _listBySubscription(\n options?: ApplicationsListBySubscriptionOptionalParams\n ): Promise<ApplicationsListBySubscriptionResponse> {\n return this.client.sendOperationRequest(\n { options },\n listBySubscriptionOperationSpec\n );\n }\n\n /**\n * Gets the managed application.\n * @param applicationId The fully qualified ID of the managed application, including the managed\n * application name and the managed application resource type. Use the format,\n * /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}\n * @param options The options parameters.\n */\n getById(\n applicationId: string,\n options?: ApplicationsGetByIdOptionalParams\n ): Promise<ApplicationsGetByIdResponse> {\n return this.client.sendOperationRequest(\n { applicationId, options },\n getByIdOperationSpec\n );\n }\n\n /**\n * Deletes the managed application.\n * @param applicationId The fully qualified ID of the managed application, including the managed\n * application name and the managed application resource type. Use the format,\n * /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}\n * @param options The options parameters.\n */\n async beginDeleteById(\n applicationId: string,\n options?: ApplicationsDeleteByIdOptionalParams\n ): Promise<PollerLike<PollOperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new CoreClientLro(\n sendOperation,\n { applicationId, options },\n deleteByIdOperationSpec\n );\n return new LroEngine(lro, { intervalInMs: options?.updateIntervalInMs });\n }\n\n /**\n * Deletes the managed application.\n * @param applicationId The fully qualified ID of the managed application, including the managed\n * application name and the managed application resource type. Use the format,\n * /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}\n * @param options The options parameters.\n */\n async beginDeleteByIdAndWait(\n applicationId: string,\n options?: ApplicationsDeleteByIdOptionalParams\n ): Promise<void> {\n const poller = await this.beginDeleteById(applicationId, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Creates a new managed application.\n * @param applicationId The fully qualified ID of the managed application, including the managed\n * application name and the managed application resource type. Use the format,\n * /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}\n * @param parameters Parameters supplied to the create or update a managed application.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateById(\n applicationId: string,\n parameters: Application,\n options?: ApplicationsCreateOrUpdateByIdOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<ApplicationsCreateOrUpdateByIdResponse>,\n ApplicationsCreateOrUpdateByIdResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<ApplicationsCreateOrUpdateByIdResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new CoreClientLro(\n sendOperation,\n { applicationId, parameters, options },\n createOrUpdateByIdOperationSpec\n );\n return new LroEngine(lro, { intervalInMs: options?.updateIntervalInMs });\n }\n\n /**\n * Creates a new managed application.\n * @param applicationId The fully qualified ID of the managed application, including the managed\n * application name and the managed application resource type. Use the format,\n * /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}\n * @param parameters Parameters supplied to the create or update a managed application.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateByIdAndWait(\n applicationId: string,\n parameters: Application,\n options?: ApplicationsCreateOrUpdateByIdOptionalParams\n ): Promise<ApplicationsCreateOrUpdateByIdResponse> {\n const poller = await this.beginCreateOrUpdateById(\n applicationId,\n parameters,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Updates an existing managed application. The only value that can be updated via PATCH currently is\n * the tags.\n * @param applicationId The fully qualified ID of the managed application, including the managed\n * application name and the managed application resource type. Use the format,\n * /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}\n * @param options The options parameters.\n */\n updateById(\n applicationId: string,\n options?: ApplicationsUpdateByIdOptionalParams\n ): Promise<ApplicationsUpdateByIdResponse> {\n return this.client.sendOperationRequest(\n { applicationId, options },\n updateByIdOperationSpec\n );\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: ApplicationsListByResourceGroupNextOptionalParams\n ): Promise<ApplicationsListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextOperationSpec\n );\n }\n\n /**\n * ListBySubscriptionNext\n * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.\n * @param options The options parameters.\n */\n private _listBySubscriptionNext(\n nextLink: string,\n options?: ApplicationsListBySubscriptionNextOptionalParams\n ): Promise<ApplicationsListBySubscriptionNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listBySubscriptionNextOperationSpec\n );\n }\n\n /**\n * ListByResourceGroupNextNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroupNext\n * method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNextNext(\n resourceGroupName: string,\n nextLink: string,\n options?: ApplicationsListByResourceGroupNextNextOptionalParams\n ): Promise<ApplicationsListByResourceGroupNextNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextNextOperationSpec\n );\n }\n\n /**\n * ListBySubscriptionNextNext\n * @param nextLink The nextLink from the previous successful call to the ListBySubscriptionNext method.\n * @param options The options parameters.\n */\n private _listBySubscriptionNextNext(\n nextLink: string,\n options?: ApplicationsListBySubscriptionNextNextOptionalParams\n ): Promise<ApplicationsListBySubscriptionNextNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listBySubscriptionNextNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Application\n },\n 404: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.applicationName,\n Parameters.subscriptionId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.applicationName,\n Parameters.subscriptionId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Application\n },\n 201: {\n bodyMapper: Mappers.Application\n },\n 202: {\n bodyMapper: Mappers.Application\n },\n 204: {\n bodyMapper: Mappers.Application\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.applicationName,\n Parameters.subscriptionId\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Application\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.applicationName,\n Parameters.subscriptionId\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listBySubscriptionOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Solutions/applications\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getByIdOperationSpec: coreClient.OperationSpec = {\n path: \"/{applicationId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Application\n },\n 404: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.applicationId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteByIdOperationSpec: coreClient.OperationSpec = {\n path: \"/{applicationId}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.applicationId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateByIdOperationSpec: coreClient.OperationSpec = {\n path: \"/{applicationId}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Application\n },\n 201: {\n bodyMapper: Mappers.Application\n },\n 202: {\n bodyMapper: Mappers.Application\n },\n 204: {\n bodyMapper: Mappers.Application\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.applicationId],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst updateByIdOperationSpec: coreClient.OperationSpec = {\n path: \"/{applicationId}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Application\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters2,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.applicationId],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.resourceGroupName,\n Parameters.subscriptionId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByResourceGroupNextNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.resourceGroupName,\n Parameters.subscriptionId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listBySubscriptionNextNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport \"@azure/core-paging\";\nimport { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { ApplicationDefinitions } from \"../operationsInterfaces\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { ApplicationClientContext } from \"../applicationClientContext\";\nimport { PollerLike, PollOperationState } from \"@azure/core-lro\";\nimport { LroEngine } from \"../lro\";\nimport { CoreClientLro, shouldDeserializeLro } from \"../coreClientLro\";\nimport {\n ApplicationDefinition,\n ApplicationDefinitionsListByResourceGroupNextOptionalParams,\n ApplicationDefinitionsListByResourceGroupOptionalParams,\n ApplicationDefinitionsListByResourceGroupNextNextOptionalParams,\n ApplicationDefinitionsGetOptionalParams,\n ApplicationDefinitionsGetResponse,\n ApplicationDefinitionsDeleteOptionalParams,\n ApplicationDefinitionsCreateOrUpdateOptionalParams,\n ApplicationDefinitionsCreateOrUpdateResponse,\n ApplicationDefinitionsListByResourceGroupResponse,\n ApplicationDefinitionsGetByIdOptionalParams,\n ApplicationDefinitionsGetByIdResponse,\n ApplicationDefinitionsDeleteByIdOptionalParams,\n ApplicationDefinitionsCreateOrUpdateByIdOptionalParams,\n ApplicationDefinitionsCreateOrUpdateByIdResponse,\n ApplicationDefinitionsListByResourceGroupNextResponse,\n ApplicationDefinitionsListByResourceGroupNextNextResponse\n} from \"../models\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class representing a ApplicationDefinitions. */\nexport class ApplicationDefinitionsImpl implements ApplicationDefinitions {\n private readonly client: ApplicationClientContext;\n\n /**\n * Initialize a new instance of the class ApplicationDefinitions class.\n * @param client Reference to the service client\n */\n constructor(client: ApplicationClientContext) {\n this.client = client;\n }\n\n /**\n * Lists the managed application definitions in a resource group.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: ApplicationDefinitionsListByResourceGroupOptionalParams\n ): PagedAsyncIterableIterator<ApplicationDefinition> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.listByResourceGroupPagingPage(resourceGroupName, options);\n }\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: ApplicationDefinitionsListByResourceGroupOptionalParams\n ): AsyncIterableIterator<ApplicationDefinition[]> {\n let result = await this._listByResourceGroup(resourceGroupName, options);\n yield result.value || [];\n let continuationToken = result.nextLink;\n while (continuationToken) {\n result = await this._listByResourceGroupNext(\n resourceGroupName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n yield result.value || [];\n }\n }\n\n private async *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: ApplicationDefinitionsListByResourceGroupOptionalParams\n ): AsyncIterableIterator<ApplicationDefinition> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n public listByResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: ApplicationDefinitionsListByResourceGroupNextOptionalParams\n ): PagedAsyncIterableIterator<ApplicationDefinition> {\n const iter = this.listByResourceGroupNextPagingAll(\n resourceGroupName,\n nextLink,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.listByResourceGroupNextPagingPage(\n resourceGroupName,\n nextLink,\n options\n );\n }\n };\n }\n\n private async *listByResourceGroupNextPagingPage(\n resourceGroupName: string,\n nextLink: string,\n options?: ApplicationDefinitionsListByResourceGroupNextOptionalParams\n ): AsyncIterableIterator<ApplicationDefinition[]> {\n let result = await this._listByResourceGroupNext(\n resourceGroupName,\n nextLink,\n options\n );\n yield result.value || [];\n let continuationToken = result.nextLink;\n while (continuationToken) {\n result = await this._listByResourceGroupNextNext(\n resourceGroupName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n yield result.value || [];\n }\n }\n\n private async *listByResourceGroupNextPagingAll(\n resourceGroupName: string,\n nextLink: string,\n options?: ApplicationDefinitionsListByResourceGroupNextOptionalParams\n ): AsyncIterableIterator<ApplicationDefinition> {\n for await (const page of this.listByResourceGroupNextPagingPage(\n resourceGroupName,\n nextLink,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets the managed application definition.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param applicationDefinitionName The name of the managed application definition.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n applicationDefinitionName: string,\n options?: ApplicationDefinitionsGetOptionalParams\n ): Promise<ApplicationDefinitionsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, applicationDefinitionName, options },\n getOperationSpec\n );\n }\n\n /**\n * Deletes the managed application definition.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param applicationDefinitionName The name of the managed application definition to delete.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n applicationDefinitionName: string,\n options?: ApplicationDefinitionsDeleteOptionalParams\n ): Promise<PollerLike<PollOperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new CoreClientLro(\n sendOperation,\n { resourceGroupName, applicationDefinitionName, options },\n deleteOperationSpec\n );\n return new LroEngine(lro, { intervalInMs: options?.updateIntervalInMs });\n }\n\n /**\n * Deletes the managed application definition.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param applicationDefinitionName The name of the managed application definition to delete.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n applicationDefinitionName: string,\n options?: ApplicationDefinitionsDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n applicationDefinitionName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Creates a new managed application definition.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param applicationDefinitionName The name of the managed application definition.\n * @param parameters Parameters supplied to the create or update an managed application definition.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n applicationDefinitionName: string,\n parameters: ApplicationDefinition,\n options?: ApplicationDefinitionsCreateOrUpdateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<ApplicationDefinitionsCreateOrUpdateResponse>,\n ApplicationDefinitionsCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<ApplicationDefinitionsCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new CoreClientLro(\n sendOperation,\n { resourceGroupName, applicationDefinitionName, parameters, options },\n createOrUpdateOperationSpec\n );\n return new LroEngine(lro, { intervalInMs: options?.updateIntervalInMs });\n }\n\n /**\n * Creates a new managed application definition.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param applicationDefinitionName The name of the managed application definition.\n * @param parameters Parameters supplied to the create or update an managed application definition.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n applicationDefinitionName: string,\n parameters: ApplicationDefinition,\n options?: ApplicationDefinitionsCreateOrUpdateOptionalParams\n ): Promise<ApplicationDefinitionsCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n applicationDefinitionName,\n parameters,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Lists the managed application definitions in a resource group.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: ApplicationDefinitionsListByResourceGroupOptionalParams\n ): Promise<ApplicationDefinitionsListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec\n );\n }\n\n /**\n * Gets the managed application definition.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param applicationDefinitionName The name of the managed application definition.\n * @param options The options parameters.\n */\n getById(\n resourceGroupName: string,\n applicationDefinitionName: string,\n options?: ApplicationDefinitionsGetByIdOptionalParams\n ): Promise<ApplicationDefinitionsGetByIdResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, applicationDefinitionName, options },\n getByIdOperationSpec\n );\n }\n\n /**\n * Deletes the managed application definition.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param applicationDefinitionName The name of the managed application definition.\n * @param options The options parameters.\n */\n async beginDeleteById(\n resourceGroupName: string,\n applicationDefinitionName: string,\n options?: ApplicationDefinitionsDeleteByIdOptionalParams\n ): Promise<PollerLike<PollOperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new CoreClientLro(\n sendOperation,\n { resourceGroupName, applicationDefinitionName, options },\n deleteByIdOperationSpec\n );\n return new LroEngine(lro, { intervalInMs: options?.updateIntervalInMs });\n }\n\n /**\n * Deletes the managed application definition.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param applicationDefinitionName The name of the managed application definition.\n * @param options The options parameters.\n */\n async beginDeleteByIdAndWait(\n resourceGroupName: string,\n applicationDefinitionName: string,\n options?: ApplicationDefinitionsDeleteByIdOptionalParams\n ): Promise<void> {\n const poller = await this.beginDeleteById(\n resourceGroupName,\n applicationDefinitionName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Creates a new managed application definition.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param applicationDefinitionName The name of the managed application definition.\n * @param parameters Parameters supplied to the create or update a managed application definition.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateById(\n resourceGroupName: string,\n applicationDefinitionName: string,\n parameters: ApplicationDefinition,\n options?: ApplicationDefinitionsCreateOrUpdateByIdOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<ApplicationDefinitionsCreateOrUpdateByIdResponse>,\n ApplicationDefinitionsCreateOrUpdateByIdResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<ApplicationDefinitionsCreateOrUpdateByIdResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new CoreClientLro(\n sendOperation,\n { resourceGroupName, applicationDefinitionName, parameters, options },\n createOrUpdateByIdOperationSpec\n );\n return new LroEngine(lro, { intervalInMs: options?.updateIntervalInMs });\n }\n\n /**\n * Creates a new managed application definition.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param applicationDefinitionName The name of the managed application definition.\n * @param parameters Parameters supplied to the create or update a managed application definition.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateByIdAndWait(\n resourceGroupName: string,\n applicationDefinitionName: string,\n parameters: ApplicationDefinition,\n options?: ApplicationDefinitionsCreateOrUpdateByIdOptionalParams\n ): Promise<ApplicationDefinitionsCreateOrUpdateByIdResponse> {\n const poller = await this.beginCreateOrUpdateById(\n resourceGroupName,\n applicationDefinitionName,\n parameters,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: ApplicationDefinitionsListByResourceGroupNextOptionalParams\n ): Promise<ApplicationDefinitionsListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextOperationSpec\n );\n }\n\n /**\n * ListByResourceGroupNextNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroupNext\n * method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNextNext(\n resourceGroupName: string,\n nextLink: string,\n options?: ApplicationDefinitionsListByResourceGroupNextNextOptionalParams\n ): Promise<ApplicationDefinitionsListByResourceGroupNextNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationDefinition\n },\n 404: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.applicationDefinitionName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.applicationDefinitionName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationDefinition\n },\n 201: {\n bodyMapper: Mappers.ApplicationDefinition\n },\n 202: {\n bodyMapper: Mappers.ApplicationDefinition\n },\n 204: {\n bodyMapper: Mappers.ApplicationDefinition\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters3,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.applicationDefinitionName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationDefinitionListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getByIdOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationDefinition\n },\n 404: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.applicationDefinitionName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteByIdOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.applicationDefinitionName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateByIdOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationDefinition\n },\n 201: {\n bodyMapper: Mappers.ApplicationDefinition\n },\n 202: {\n bodyMapper: Mappers.ApplicationDefinition\n },\n 204: {\n bodyMapper: Mappers.ApplicationDefinition\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters3,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.applicationDefinitionName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationDefinitionListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.resourceGroupName,\n Parameters.subscriptionId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByResourceGroupNextNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationDefinitionListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.resourceGroupName,\n Parameters.subscriptionId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport { ApplicationClientOptionalParams } from \"./models\";\n\nexport class ApplicationClientContext extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the ApplicationClientContext class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: ApplicationClientOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: ApplicationClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-managedapplications/30.0.0-beta.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n if (!options.credentialScopes) {\n options.credentialScopes = [\"https://management.azure.com/.default\"];\n }\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n baseUri: options.endpoint || \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2018-06-01\";\n }\n}\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport \"@azure/core-paging\";\nimport { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { ApplicationsImpl, ApplicationDefinitionsImpl } from \"./operations\";\nimport { Applications, ApplicationDefinitions } from \"./operationsInterfaces\";\nimport * as Parameters from \"./models/parameters\";\nimport * as Mappers from \"./models/mappers\";\nimport { ApplicationClientContext } from \"./applicationClientContext\";\nimport {\n ApplicationClientOptionalParams,\n Operation,\n ApplicationClientListOperationsNextOptionalParams,\n ApplicationClientListOperationsOptionalParams,\n ApplicationClientListOperationsNextNextOptionalParams,\n ApplicationClientListOperationsResponse,\n ApplicationClientListOperationsNextResponse,\n ApplicationClientListOperationsNextNextResponse\n} from \"./models\";\n\n/// <reference lib=\"esnext.asynciterable\" />\nexport class ApplicationClient extends ApplicationClientContext {\n /**\n * Initializes a new instance of the ApplicationClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: ApplicationClientOptionalParams\n ) {\n super(credentials, subscriptionId, options);\n this.applications = new ApplicationsImpl(this);\n this.applicationDefinitions = new ApplicationDefinitionsImpl(this);\n }\n\n /**\n * Lists all of the available Microsoft.Solutions REST API operations.\n * @param options The options parameters.\n */\n public listOperations(\n options?: ApplicationClientListOperationsOptionalParams\n ): PagedAsyncIterableIterator<Operation> {\n const iter = this.listOperationsPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.listOperationsPagingPage(options);\n }\n };\n }\n\n private async *listOperationsPagingPage(\n options?: ApplicationClientListOperationsOptionalParams\n ): AsyncIterableIterator<Operation[]> {\n let result = await this._listOperations(options);\n yield result.value || [];\n let continuationToken = result.nextLink;\n while (continuationToken) {\n result = await this._listOperationsNext(continuationToken, options);\n continuationToken = result.nextLink;\n yield result.value || [];\n }\n }\n\n private async *listOperationsPagingAll(\n options?: ApplicationClientListOperationsOptionalParams\n ): AsyncIterableIterator<Operation> {\n for await (const page of this.listOperationsPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * ListOperationsNext\n * @param nextLink The nextLink from the previous successful call to the ListOperations method.\n * @param options The options parameters.\n */\n public listOperationsNext(\n nextLink: string,\n options?: ApplicationClientListOperationsNextOptionalParams\n ): PagedAsyncIterableIterator<Operation> {\n const iter = this.listOperationsNextPagingAll(nextLink, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.listOperationsNextPagingPage(nextLink, options);\n }\n };\n }\n\n private async *listOperationsNextPagingPage(\n nextLink: string,\n options?: ApplicationClientListOperationsNextOptionalParams\n ): AsyncIterableIterator<Operation[]> {\n let result = await this._listOperationsNext(nextLink, options);\n yield result.value || [];\n let continuationToken = result.nextLink;\n while (continuationToken) {\n result = await this._listOperationsNextNext(continuationToken, options);\n continuationToken = result.nextLink;\n yield result.value || [];\n }\n }\n\n private async *listOperationsNextPagingAll(\n nextLink: string,\n options?: ApplicationClientListOperationsNextOptionalParams\n ): AsyncIterableIterator<Operation> {\n for await (const page of this.listOperationsNextPagingPage(\n nextLink,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists all of the available Microsoft.Solutions REST API operations.\n * @param options The options parameters.\n */\n private _listOperations(\n options?: ApplicationClientListOperationsOptionalParams\n ): Promise<ApplicationClientListOperationsResponse> {\n return this.sendOperationRequest({ options }, listOperationsOperationSpec);\n }\n\n /**\n * ListOperationsNext\n * @param nextLink The nextLink from the previous successful call to the ListOperations method.\n * @param options The options parameters.\n */\n private _listOperationsNext(\n nextLink: string,\n options?: ApplicationClientListOperationsNextOptionalParams\n ): Promise<ApplicationClientListOperationsNextResponse> {\n return this.sendOperationRequest(\n { nextLink, options },\n listOperationsNextOperationSpec\n );\n }\n\n /**\n * ListOperationsNextNext\n * @param nextLink The nextLink from the previous successful call to the ListOperationsNext method.\n * @param options The options parameters.\n */\n private _listOperationsNextNext(\n nextLink: string,\n options?: ApplicationClientListOperationsNextNextOptionalParams\n ): Promise<ApplicationClientListOperationsNextNextResponse> {\n return this.sendOperationRequest(\n { nextLink, options },\n listOperationsNextNextOperationSpec\n );\n }\n\n applications: Applications;\n applicationDefinitions: ApplicationDefinitions;\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationsOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Solutions/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listOperationsNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listOperationsNextNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\n"],"names":["KnownProvisioningState","ApplicationMapper","ApplicationPatchableMapper","ApplicationDefinitionMapper","Poller","__asyncValues","__asyncDelegator","coreClient.createSerializer","Mappers.Application","Mappers.ErrorResponse","Parameters.apiVersion","Parameters.$host","Parameters.resourceGroupName","Parameters.applicationName","Parameters.subscriptionId","Parameters.accept","Parameters.parameters","Parameters.contentType","Parameters.parameters1","Mappers.ApplicationListResult","Parameters.applicationId","Parameters.parameters2","Parameters.nextLink","getOperationSpec","deleteOperationSpec","createOrUpdateOperationSpec","listByResourceGroupOperationSpec","getByIdOperationSpec","deleteByIdOperationSpec","createOrUpdateByIdOperationSpec","listByResourceGroupNextOperationSpec","listByResourceGroupNextNextOperationSpec","serializer","Mappers.ApplicationDefinition","Parameters.applicationDefinitionName","Parameters.parameters3","Mappers.ApplicationDefinitionListResult","coreClient.ServiceClient","Mappers.OperationListResult"],"mappings":";;;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AU;CACX,CAAC;;;;;"}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/models/index.ts","../src/models/mappers.ts","../src/models/parameters.ts","../src/lro/requestUtils.ts","../src/lro/models.ts","../src/lro/azureAsyncPolling.ts","../src/lro/bodyPolling.ts","../src/lro/locationPolling.ts","../src/lro/passthrough.ts","../src/lro/stateMachine.ts","../src/lro/operation.ts","../src/lro/lroEngine.ts","../src/coreClientLro.ts","../src/operations/applications.ts","../src/operations/applicationDefinitions.ts","../src/applicationClientContext.ts","../src/applicationClient.ts"],"sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\n\n/** Result of the request to list Microsoft.Solutions operations. It contains a list of operations and a URL link to get the next set of results. */\nexport interface OperationListResult {\n /** List of Microsoft.Solutions operations. */\n value?: Operation[];\n /** URL to get the next set of operation list results if there are any. */\n nextLink?: string;\n}\n\n/** Microsoft.Solutions operation */\nexport interface Operation {\n /** Operation name: {provider}/{resource}/{operation} */\n name?: string;\n /** The object that represents the operation. */\n display?: OperationDisplay;\n}\n\n/** The object that represents the operation. */\nexport interface OperationDisplay {\n /** Service provider: Microsoft.Solutions */\n provider?: string;\n /** Resource on which the operation is performed: Application, JitRequest, etc. */\n resource?: string;\n /** Operation type: Read, write, delete, etc. */\n operation?: string;\n}\n\n/** Resource information. */\nexport interface Resource {\n /**\n * Resource ID\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly id?: string;\n /**\n * Resource name\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly name?: string;\n /**\n * Resource type\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly type?: string;\n /** Resource location */\n location?: string;\n /** Resource tags */\n tags?: { [propertyName: string]: string };\n}\n\n/** SKU for the resource. */\nexport interface Sku {\n /** The SKU name. */\n name: string;\n /** The SKU tier. */\n tier?: string;\n /** The SKU size. */\n size?: string;\n /** The SKU family. */\n family?: string;\n /** The SKU model. */\n model?: string;\n /** The SKU capacity. */\n capacity?: number;\n}\n\n/** Identity for the resource. */\nexport interface Identity {\n /**\n * The principal ID of resource identity.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly principalId?: string;\n /**\n * The tenant ID of resource.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly tenantId?: string;\n /** The identity type. */\n type?: \"SystemAssigned\";\n}\n\n/** Plan for the managed application. */\nexport interface Plan {\n /** The plan name. */\n name: string;\n /** The publisher ID. */\n publisher: string;\n /** The product code. */\n product: string;\n /** The promotion code. */\n promotionCode?: string;\n /** The plan's version. */\n version: string;\n}\n\n/** Error response indicates managed application is not able to process the incoming request. The reason is provided in the error message. */\nexport interface ErrorResponse {\n /** Http status code. */\n httpStatus?: string;\n /** Error code. */\n errorCode?: string;\n /** Error message indicating why the operation failed. */\n errorMessage?: string;\n}\n\n/** Plan for the managed application. */\nexport interface PlanPatchable {\n /** The plan name. */\n name?: string;\n /** The publisher ID. */\n publisher?: string;\n /** The product code. */\n product?: string;\n /** The promotion code. */\n promotionCode?: string;\n /** The plan's version. */\n version?: string;\n}\n\n/** The managed application provider authorization. */\nexport interface ApplicationProviderAuthorization {\n /** The provider's principal identifier. This is the identity that the provider will use to call ARM to manage the managed application resources. */\n principalId: string;\n /** The provider's role definition identifier. This role will define all the permissions that the provider must have on the managed application's container resource group. This role definition cannot have permission to delete the resource group. */\n roleDefinitionId: string;\n}\n\n/** Managed application artifact. */\nexport interface ApplicationArtifact {\n /** The managed application artifact name. */\n name?: string;\n /** The managed application artifact blob uri. */\n uri?: string;\n /** The managed application artifact type. */\n type?: ApplicationArtifactType;\n}\n\n/** List of managed application definitions. */\nexport interface ApplicationDefinitionListResult {\n /** The array of managed application definitions. */\n value?: ApplicationDefinition[];\n /** The URL to use for getting the next set of results. */\n nextLink?: string;\n}\n\n/** List of managed applications. */\nexport interface ApplicationListResult {\n /** The array of managed applications. */\n value?: Application[];\n /** The URL to use for getting the next set of results. */\n nextLink?: string;\n}\n\n/** Resource information. */\nexport type GenericResource = Resource & {\n /** ID of the resource that manages this resource. */\n managedBy?: string;\n /** The SKU of the resource. */\n sku?: Sku;\n /** The identity of the resource. */\n identity?: Identity;\n};\n\n/** Information about managed application. */\nexport type Application = GenericResource & {\n /** The plan information. */\n plan?: Plan;\n /** The kind of the managed application. Allowed values are MarketPlace and ServiceCatalog. */\n kind: string;\n /** The managed resource group Id. */\n managedResourceGroupId: string;\n /** The fully qualified path of managed application definition Id. */\n applicationDefinitionId?: string;\n /** Name and value pairs that define the managed application parameters. It can be a JObject or a well formed JSON string. */\n parameters?: Record<string, unknown>;\n /**\n * Name and value pairs that define the managed application outputs.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly outputs?: Record<string, unknown>;\n /**\n * The managed application provisioning state.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly provisioningState?: ProvisioningState;\n};\n\n/** Information about managed application. */\nexport type ApplicationPatchable = GenericResource & {\n /** The plan information. */\n plan?: PlanPatchable;\n /** The kind of the managed application. Allowed values are MarketPlace and ServiceCatalog. */\n kind?: string;\n /** The managed resource group Id. */\n managedResourceGroupId?: string;\n /** The fully qualified path of managed application definition Id. */\n applicationDefinitionId?: string;\n /** Name and value pairs that define the managed application parameters. It can be a JObject or a well formed JSON string. */\n parameters?: Record<string, unknown>;\n /**\n * Name and value pairs that define the managed application outputs.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly outputs?: Record<string, unknown>;\n /**\n * The managed application provisioning state.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly provisioningState?: ProvisioningState;\n};\n\n/** Information about managed application definition. */\nexport type ApplicationDefinition = GenericResource & {\n /** The managed application lock level. */\n lockLevel: ApplicationLockLevel;\n /** The managed application definition display name. */\n displayName?: string;\n /** A value indicating whether the package is enabled or not. */\n isEnabled?: string;\n /** The managed application provider authorizations. */\n authorizations: ApplicationProviderAuthorization[];\n /** The collection of managed application artifacts. The portal will use the files specified as artifacts to construct the user experience of creating a managed application from a managed application definition. */\n artifacts?: ApplicationArtifact[];\n /** The managed application definition description. */\n description?: string;\n /** The managed application definition package file Uri. Use this element */\n packageFileUri?: string;\n /** The inline main template json which has resources to be provisioned. It can be a JObject or well-formed JSON string. */\n mainTemplate?: Record<string, unknown>;\n /** The createUiDefinition json for the backing template with Microsoft.Solutions/applications resource. It can be a JObject or well-formed JSON string. */\n createUiDefinition?: Record<string, unknown>;\n};\n\n/** Known values of {@link ProvisioningState} that the service accepts. */\nexport enum KnownProvisioningState {\n Accepted = \"Accepted\",\n Running = \"Running\",\n Ready = \"Ready\",\n Creating = \"Creating\",\n Created = \"Created\",\n Deleting = \"Deleting\",\n Deleted = \"Deleted\",\n Canceled = \"Canceled\",\n Failed = \"Failed\",\n Succeeded = \"Succeeded\",\n Updating = \"Updating\"\n}\n\n/**\n * Defines values for ProvisioningState. \\\n * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Accepted** \\\n * **Running** \\\n * **Ready** \\\n * **Creating** \\\n * **Created** \\\n * **Deleting** \\\n * **Deleted** \\\n * **Canceled** \\\n * **Failed** \\\n * **Succeeded** \\\n * **Updating**\n */\nexport type ProvisioningState = string;\n/** Defines values for ApplicationLockLevel. */\nexport type ApplicationLockLevel = \"CanNotDelete\" | \"ReadOnly\" | \"None\";\n/** Defines values for ApplicationArtifactType. */\nexport type ApplicationArtifactType = \"Template\" | \"Custom\";\n\n/** Optional parameters. */\nexport interface ApplicationClientListOperationsOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listOperations operation. */\nexport type ApplicationClientListOperationsResponse = OperationListResult;\n\n/** Optional parameters. */\nexport interface ApplicationClientListOperationsNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listOperationsNext operation. */\nexport type ApplicationClientListOperationsNextResponse = OperationListResult;\n\n/** Optional parameters. */\nexport interface ApplicationClientListOperationsNextNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listOperationsNextNext operation. */\nexport type ApplicationClientListOperationsNextNextResponse = OperationListResult;\n\n/** Optional parameters. */\nexport interface ApplicationsGetOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the get operation. */\nexport type ApplicationsGetResponse = Application;\n\n/** Optional parameters. */\nexport interface ApplicationsDeleteOptionalParams\n extends coreClient.OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */\n resumeFrom?: string;\n}\n\n/** Optional parameters. */\nexport interface ApplicationsCreateOrUpdateOptionalParams\n extends coreClient.OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */\n resumeFrom?: string;\n}\n\n/** Contains response data for the createOrUpdate operation. */\nexport type ApplicationsCreateOrUpdateResponse = Application;\n\n/** Optional parameters. */\nexport interface ApplicationsUpdateOptionalParams\n extends coreClient.OperationOptions {\n /** Parameters supplied to update an existing managed application. */\n parameters?: ApplicationPatchable;\n}\n\n/** Contains response data for the update operation. */\nexport type ApplicationsUpdateResponse = Application;\n\n/** Optional parameters. */\nexport interface ApplicationsListByResourceGroupOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listByResourceGroup operation. */\nexport type ApplicationsListByResourceGroupResponse = ApplicationListResult;\n\n/** Optional parameters. */\nexport interface ApplicationsListBySubscriptionOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listBySubscription operation. */\nexport type ApplicationsListBySubscriptionResponse = ApplicationListResult;\n\n/** Optional parameters. */\nexport interface ApplicationsGetByIdOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the getById operation. */\nexport type ApplicationsGetByIdResponse = Application;\n\n/** Optional parameters. */\nexport interface ApplicationsDeleteByIdOptionalParams\n extends coreClient.OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */\n resumeFrom?: string;\n}\n\n/** Optional parameters. */\nexport interface ApplicationsCreateOrUpdateByIdOptionalParams\n extends coreClient.OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */\n resumeFrom?: string;\n}\n\n/** Contains response data for the createOrUpdateById operation. */\nexport type ApplicationsCreateOrUpdateByIdResponse = Application;\n\n/** Optional parameters. */\nexport interface ApplicationsUpdateByIdOptionalParams\n extends coreClient.OperationOptions {\n /** Parameters supplied to update an existing managed application. */\n parameters?: Application;\n}\n\n/** Contains response data for the updateById operation. */\nexport type ApplicationsUpdateByIdResponse = Application;\n\n/** Optional parameters. */\nexport interface ApplicationsListByResourceGroupNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listByResourceGroupNext operation. */\nexport type ApplicationsListByResourceGroupNextResponse = ApplicationListResult;\n\n/** Optional parameters. */\nexport interface ApplicationsListBySubscriptionNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listBySubscriptionNext operation. */\nexport type ApplicationsListBySubscriptionNextResponse = ApplicationListResult;\n\n/** Optional parameters. */\nexport interface ApplicationsListByResourceGroupNextNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listByResourceGroupNextNext operation. */\nexport type ApplicationsListByResourceGroupNextNextResponse = ApplicationListResult;\n\n/** Optional parameters. */\nexport interface ApplicationsListBySubscriptionNextNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listBySubscriptionNextNext operation. */\nexport type ApplicationsListBySubscriptionNextNextResponse = ApplicationListResult;\n\n/** Optional parameters. */\nexport interface ApplicationDefinitionsGetOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the get operation. */\nexport type ApplicationDefinitionsGetResponse = ApplicationDefinition;\n\n/** Optional parameters. */\nexport interface ApplicationDefinitionsDeleteOptionalParams\n extends coreClient.OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */\n resumeFrom?: string;\n}\n\n/** Optional parameters. */\nexport interface ApplicationDefinitionsCreateOrUpdateOptionalParams\n extends coreClient.OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */\n resumeFrom?: string;\n}\n\n/** Contains response data for the createOrUpdate operation. */\nexport type ApplicationDefinitionsCreateOrUpdateResponse = ApplicationDefinition;\n\n/** Optional parameters. */\nexport interface ApplicationDefinitionsListByResourceGroupOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listByResourceGroup operation. */\nexport type ApplicationDefinitionsListByResourceGroupResponse = ApplicationDefinitionListResult;\n\n/** Optional parameters. */\nexport interface ApplicationDefinitionsGetByIdOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the getById operation. */\nexport type ApplicationDefinitionsGetByIdResponse = ApplicationDefinition;\n\n/** Optional parameters. */\nexport interface ApplicationDefinitionsDeleteByIdOptionalParams\n extends coreClient.OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */\n resumeFrom?: string;\n}\n\n/** Optional parameters. */\nexport interface ApplicationDefinitionsCreateOrUpdateByIdOptionalParams\n extends coreClient.OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */\n resumeFrom?: string;\n}\n\n/** Contains response data for the createOrUpdateById operation. */\nexport type ApplicationDefinitionsCreateOrUpdateByIdResponse = ApplicationDefinition;\n\n/** Optional parameters. */\nexport interface ApplicationDefinitionsListByResourceGroupNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listByResourceGroupNext operation. */\nexport type ApplicationDefinitionsListByResourceGroupNextResponse = ApplicationDefinitionListResult;\n\n/** Optional parameters. */\nexport interface ApplicationDefinitionsListByResourceGroupNextNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listByResourceGroupNextNext operation. */\nexport type ApplicationDefinitionsListByResourceGroupNextNextResponse = ApplicationDefinitionListResult;\n\n/** Optional parameters. */\nexport interface ApplicationClientOptionalParams\n extends coreClient.ServiceClientOptions {\n /** server parameter */\n $host?: string;\n /** Api Version */\n apiVersion?: string;\n /** Overrides client endpoint. */\n endpoint?: string;\n}\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\n\nexport const OperationListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationListResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"Operation\"\n }\n }\n }\n },\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const Operation: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Operation\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n type: {\n name: \"String\"\n }\n },\n display: {\n serializedName: \"display\",\n type: {\n name: \"Composite\",\n className: \"OperationDisplay\"\n }\n }\n }\n }\n};\n\nexport const OperationDisplay: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationDisplay\",\n modelProperties: {\n provider: {\n serializedName: \"provider\",\n type: {\n name: \"String\"\n }\n },\n resource: {\n serializedName: \"resource\",\n type: {\n name: \"String\"\n }\n },\n operation: {\n serializedName: \"operation\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const Resource: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Resource\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n name: {\n serializedName: \"name\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n type: {\n serializedName: \"type\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n location: {\n serializedName: \"location\",\n type: {\n name: \"String\"\n }\n },\n tags: {\n serializedName: \"tags\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n }\n }\n }\n};\n\nexport const Sku: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Sku\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n tier: {\n serializedName: \"tier\",\n type: {\n name: \"String\"\n }\n },\n size: {\n serializedName: \"size\",\n type: {\n name: \"String\"\n }\n },\n family: {\n serializedName: \"family\",\n type: {\n name: \"String\"\n }\n },\n model: {\n serializedName: \"model\",\n type: {\n name: \"String\"\n }\n },\n capacity: {\n serializedName: \"capacity\",\n type: {\n name: \"Number\"\n }\n }\n }\n }\n};\n\nexport const Identity: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Identity\",\n modelProperties: {\n principalId: {\n serializedName: \"principalId\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n tenantId: {\n serializedName: \"tenantId\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n type: {\n defaultValue: \"SystemAssigned\",\n isConstant: true,\n serializedName: \"type\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const Plan: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Plan\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n publisher: {\n serializedName: \"publisher\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n product: {\n serializedName: \"product\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n promotionCode: {\n serializedName: \"promotionCode\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"version\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ErrorResponse: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ErrorResponse\",\n modelProperties: {\n httpStatus: {\n serializedName: \"httpStatus\",\n type: {\n name: \"String\"\n }\n },\n errorCode: {\n serializedName: \"errorCode\",\n type: {\n name: \"String\"\n }\n },\n errorMessage: {\n serializedName: \"errorMessage\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const PlanPatchable: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"PlanPatchable\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n type: {\n name: \"String\"\n }\n },\n publisher: {\n serializedName: \"publisher\",\n type: {\n name: \"String\"\n }\n },\n product: {\n serializedName: \"product\",\n type: {\n name: \"String\"\n }\n },\n promotionCode: {\n serializedName: \"promotionCode\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"version\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ApplicationProviderAuthorization: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ApplicationProviderAuthorization\",\n modelProperties: {\n principalId: {\n serializedName: \"principalId\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n roleDefinitionId: {\n serializedName: \"roleDefinitionId\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ApplicationArtifact: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ApplicationArtifact\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n type: {\n name: \"String\"\n }\n },\n uri: {\n serializedName: \"uri\",\n type: {\n name: \"String\"\n }\n },\n type: {\n serializedName: \"type\",\n type: {\n name: \"Enum\",\n allowedValues: [\"Template\", \"Custom\"]\n }\n }\n }\n }\n};\n\nexport const ApplicationDefinitionListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ApplicationDefinitionListResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ApplicationDefinition\"\n }\n }\n }\n },\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ApplicationListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ApplicationListResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"Application\"\n }\n }\n }\n },\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const GenericResource: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"GenericResource\",\n modelProperties: {\n ...Resource.type.modelProperties,\n managedBy: {\n serializedName: \"managedBy\",\n type: {\n name: \"String\"\n }\n },\n sku: {\n serializedName: \"sku\",\n type: {\n name: \"Composite\",\n className: \"Sku\"\n }\n },\n identity: {\n serializedName: \"identity\",\n type: {\n name: \"Composite\",\n className: \"Identity\"\n }\n }\n }\n }\n};\n\nexport const Application: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Application\",\n modelProperties: {\n ...GenericResource.type.modelProperties,\n plan: {\n serializedName: \"plan\",\n type: {\n name: \"Composite\",\n className: \"Plan\"\n }\n },\n kind: {\n constraints: {\n Pattern: new RegExp(\"^[-\\\\w\\\\._,\\\\(\\\\)]+$\")\n },\n serializedName: \"kind\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n managedResourceGroupId: {\n serializedName: \"properties.managedResourceGroupId\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n applicationDefinitionId: {\n serializedName: \"properties.applicationDefinitionId\",\n type: {\n name: \"String\"\n }\n },\n parameters: {\n serializedName: \"properties.parameters\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"any\" } }\n }\n },\n outputs: {\n serializedName: \"properties.outputs\",\n readOnly: true,\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"any\" } }\n }\n },\n provisioningState: {\n serializedName: \"properties.provisioningState\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ApplicationPatchable: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ApplicationPatchable\",\n modelProperties: {\n ...GenericResource.type.modelProperties,\n plan: {\n serializedName: \"plan\",\n type: {\n name: \"Composite\",\n className: \"PlanPatchable\"\n }\n },\n kind: {\n constraints: {\n Pattern: new RegExp(\"^[-\\\\w\\\\._,\\\\(\\\\)]+$\")\n },\n serializedName: \"kind\",\n type: {\n name: \"String\"\n }\n },\n managedResourceGroupId: {\n serializedName: \"properties.managedResourceGroupId\",\n type: {\n name: \"String\"\n }\n },\n applicationDefinitionId: {\n serializedName: \"properties.applicationDefinitionId\",\n type: {\n name: \"String\"\n }\n },\n parameters: {\n serializedName: \"properties.parameters\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"any\" } }\n }\n },\n outputs: {\n serializedName: \"properties.outputs\",\n readOnly: true,\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"any\" } }\n }\n },\n provisioningState: {\n serializedName: \"properties.provisioningState\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ApplicationDefinition: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ApplicationDefinition\",\n modelProperties: {\n ...GenericResource.type.modelProperties,\n lockLevel: {\n serializedName: \"properties.lockLevel\",\n required: true,\n type: {\n name: \"Enum\",\n allowedValues: [\"CanNotDelete\", \"ReadOnly\", \"None\"]\n }\n },\n displayName: {\n serializedName: \"properties.displayName\",\n type: {\n name: \"String\"\n }\n },\n isEnabled: {\n serializedName: \"properties.isEnabled\",\n type: {\n name: \"String\"\n }\n },\n authorizations: {\n serializedName: \"properties.authorizations\",\n required: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ApplicationProviderAuthorization\"\n }\n }\n }\n },\n artifacts: {\n serializedName: \"properties.artifacts\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ApplicationArtifact\"\n }\n }\n }\n },\n description: {\n serializedName: \"properties.description\",\n type: {\n name: \"String\"\n }\n },\n packageFileUri: {\n serializedName: \"properties.packageFileUri\",\n type: {\n name: \"String\"\n }\n },\n mainTemplate: {\n serializedName: \"properties.mainTemplate\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"any\" } }\n }\n },\n createUiDefinition: {\n serializedName: \"properties.createUiDefinition\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"any\" } }\n }\n }\n }\n }\n};\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport {\n OperationParameter,\n OperationURLParameter,\n OperationQueryParameter\n} from \"@azure/core-client\";\nimport {\n Application as ApplicationMapper,\n ApplicationPatchable as ApplicationPatchableMapper,\n ApplicationDefinition as ApplicationDefinitionMapper\n} from \"../models/mappers\";\n\nexport const accept: OperationParameter = {\n parameterPath: \"accept\",\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Accept\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const $host: OperationURLParameter = {\n parameterPath: \"$host\",\n mapper: {\n serializedName: \"$host\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n\nexport const apiVersion: OperationQueryParameter = {\n parameterPath: \"apiVersion\",\n mapper: {\n defaultValue: \"2018-06-01\",\n isConstant: true,\n serializedName: \"api-version\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const nextLink: OperationURLParameter = {\n parameterPath: \"nextLink\",\n mapper: {\n serializedName: \"nextLink\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n\nexport const resourceGroupName: OperationURLParameter = {\n parameterPath: \"resourceGroupName\",\n mapper: {\n constraints: {\n Pattern: new RegExp(\"^[-\\\\w\\\\._\\\\(\\\\)]+$\"),\n MaxLength: 90,\n MinLength: 1\n },\n serializedName: \"resourceGroupName\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const applicationName: OperationURLParameter = {\n parameterPath: \"applicationName\",\n mapper: {\n constraints: {\n MaxLength: 64,\n MinLength: 3\n },\n serializedName: \"applicationName\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const subscriptionId: OperationURLParameter = {\n parameterPath: \"subscriptionId\",\n mapper: {\n serializedName: \"subscriptionId\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const contentType: OperationParameter = {\n parameterPath: [\"options\", \"contentType\"],\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Content-Type\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const parameters: OperationParameter = {\n parameterPath: \"parameters\",\n mapper: ApplicationMapper\n};\n\nexport const parameters1: OperationParameter = {\n parameterPath: [\"options\", \"parameters\"],\n mapper: ApplicationPatchableMapper\n};\n\nexport const applicationId: OperationURLParameter = {\n parameterPath: \"applicationId\",\n mapper: {\n serializedName: \"applicationId\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n\nexport const parameters2: OperationParameter = {\n parameterPath: [\"options\", \"parameters\"],\n mapper: ApplicationMapper\n};\n\nexport const applicationDefinitionName: OperationURLParameter = {\n parameterPath: \"applicationDefinitionName\",\n mapper: {\n constraints: {\n MaxLength: 64,\n MinLength: 3\n },\n serializedName: \"applicationDefinitionName\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const parameters3: OperationParameter = {\n parameterPath: \"parameters\",\n mapper: ApplicationDefinitionMapper\n};\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { LroConfig, RawResponse } from \"./models\";\n\n/**\n * Detects where the continuation token is and returns it. Notice that azure-asyncoperation\n * must be checked first before the other location headers because there are scenarios\n * where both azure-asyncoperation and location could be present in the same response but\n * azure-asyncoperation should be the one to use for polling.\n */\nexport function getPollingUrl(\n rawResponse: RawResponse,\n defaultPath: string\n): string {\n return (\n getAzureAsyncOperation(rawResponse) ??\n getLocation(rawResponse) ??\n getOperationLocation(rawResponse) ??\n defaultPath\n );\n}\n\nfunction getLocation(rawResponse: RawResponse): string | undefined {\n return rawResponse.headers[\"location\"];\n}\n\nfunction getOperationLocation(rawResponse: RawResponse): string | undefined {\n return rawResponse.headers[\"operation-location\"];\n}\n\nfunction getAzureAsyncOperation(rawResponse: RawResponse): string | undefined {\n return rawResponse.headers[\"azure-asyncoperation\"];\n}\n\nexport function inferLroMode(\n requestPath: string,\n requestMethod: string,\n rawResponse: RawResponse\n): LroConfig {\n if (getAzureAsyncOperation(rawResponse) !== undefined) {\n return {\n mode: \"AzureAsync\",\n resourceLocation:\n requestMethod === \"PUT\"\n ? requestPath\n : requestMethod === \"POST\"\n ? getLocation(rawResponse)\n : undefined\n };\n } else if (\n getLocation(rawResponse) !== undefined ||\n getOperationLocation(rawResponse) !== undefined\n ) {\n return {\n mode: \"Location\"\n };\n } else if ([\"PUT\", \"PATCH\"].includes(requestMethod)) {\n return {\n mode: \"Body\"\n };\n }\n return {};\n}\n\nexport class RestError extends Error {\n public statusCode?: number;\n constructor(message: string, statusCode: number) {\n super(message);\n this.name = \"RestError\";\n this.statusCode = statusCode;\n\n Object.setPrototypeOf(this, RestError.prototype);\n }\n}\n\nexport function isUnexpectedInitialResponse(rawResponse: RawResponse): boolean {\n const code = rawResponse.statusCode;\n if (![203, 204, 202, 201, 200, 500].includes(code)) {\n throw new RestError(\n `Received unexpected HTTP status code ${code} in the initial response. This may indicate a server issue.`,\n code\n );\n }\n return false;\n}\n\nexport function isUnexpectedPollingResponse(rawResponse: RawResponse): boolean {\n const code = rawResponse.statusCode;\n if (![202, 201, 200, 500].includes(code)) {\n throw new RestError(\n `Received unexpected HTTP status code ${code} while polling. This may indicate a server issue.`,\n code\n );\n }\n return false;\n}\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { PollOperationState } from \"@azure/core-lro\";\n\n/**\n * Options for the LRO poller.\n */\nexport interface LroEngineOptions {\n /**\n * Defines how much time the poller is going to wait before making a new request to the service.\n */\n intervalInMs?: number;\n /**\n * A serialized poller which can be used to resume an existing paused Long-Running-Operation.\n */\n resumeFrom?: string;\n}\n\nexport const successStates = [\"succeeded\"];\nexport const failureStates = [\"failed\", \"canceled\", \"cancelled\"];\n/**\n * The LRO states that signal that the LRO has completed.\n */\nexport const terminalStates = successStates.concat(failureStates);\n\n/**\n * The potential location of the result of the LRO if specified by the LRO extension in the swagger.\n */\nexport type LroResourceLocationConfig =\n | \"azure-async-operation\"\n | \"location\"\n | \"original-uri\";\n\n/**\n * The type of a LRO response body. This is just a convenience type for checking the status of the operation.\n */\n\nexport interface LroBody extends Record<string, unknown> {\n /** The status of the operation. */\n status?: string;\n /** The state of the provisioning process */\n provisioningState?: string;\n /** The properties of the provisioning process */\n properties?: { provisioningState?: string } & Record<string, unknown>;\n}\n\n/**\n * Simple type of the raw response.\n */\nexport interface RawResponse {\n /** The HTTP status code */\n statusCode: number;\n /** A HttpHeaders collection in the response represented as a simple JSON object where all header names have been normalized to be lower-case. */\n headers: {\n [headerName: string]: string;\n };\n /** The parsed response body */\n body?: unknown;\n}\n\n/**\n * The type of the response of a LRO.\n */\nexport interface LroResponse<T> {\n /** The flattened response */\n flatResponse: T;\n /** The raw response */\n rawResponse: RawResponse;\n}\n\n/** The type of which LRO implementation being followed by a specific API. */\nexport type LroMode = \"AzureAsync\" | \"Location\" | \"Body\";\n\n/**\n * The configuration of a LRO to determine how to perform polling and checking whether the operation has completed.\n */\nexport interface LroConfig {\n /** The LRO mode */\n mode?: LroMode;\n /** The path of a provisioned resource */\n resourceLocation?: string;\n}\n\n/**\n * Type of a polling operation state that can actually be resumed.\n */\nexport type ResumablePollOperationState<T> = PollOperationState<T> & {\n initialRawResponse?: RawResponse;\n config?: LroConfig;\n pollingURL?: string;\n};\n\nexport interface PollerConfig {\n intervalInMs: number;\n}\n\n/**\n * The type of a terminal state of an LRO.\n */\nexport interface LroTerminalState<T> extends LroResponse<T> {\n /**\n * Whether the operation has finished.\n */\n done: true;\n}\n\n/**\n * The type of an in-progress state of an LRO.\n */\nexport interface LroInProgressState<T> extends LroResponse<T> {\n /**\n * Whether the operation has finished.\n */\n done: false;\n /**\n * The request to be sent next if it is different from the standard polling one.\n * Notice that it will disregard any polling URLs provided to it.\n */\n next?: () => Promise<LroStatus<T>>;\n}\n\n/**\n * The type of an LRO state which is a tagged union of terminal and in-progress states.\n */\nexport type LroStatus<T> = LroTerminalState<T> | LroInProgressState<T>;\n\n/**\n * The type of the getLROStatusFromResponse method. It takes the response as input and returns along the response whether the operation has finished.\n */\nexport type GetLroStatusFromResponse<T> = (\n rawResponse: RawResponse,\n flatResponse: T\n) => LroStatus<T>;\n\n/**\n * Description of a long running operation.\n */\nexport interface LongRunningOperation<T> {\n /**\n * The request path.\n */\n requestPath: string;\n /**\n * The HTTP request method.\n */\n requestMethod: string;\n /**\n * A function that can be used to send initial request to the service.\n */\n sendInitialRequest: (\n initializeState: (\n rawResponse: RawResponse,\n flatResponse: unknown\n ) => boolean\n ) => Promise<LroResponse<T>>;\n /**\n * A function that can be used to poll for the current status of a long running operation.\n */\n sendPollRequest: (config: LroConfig, path: string) => Promise<LroStatus<T>>;\n /**\n * A function that can be used to retrieve the provisioned azure resource.\n */\n retrieveAzureAsyncResource: (path?: string) => Promise<LroResponse<T>>;\n}\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport {\n failureStates,\n LroResourceLocationConfig,\n LongRunningOperation,\n LroBody,\n LroResponse,\n LroStatus,\n RawResponse,\n successStates\n} from \"./models\";\nimport { isUnexpectedPollingResponse } from \"./requestUtils\";\n\nfunction getResponseStatus(rawResponse: RawResponse): string {\n const { status } = (rawResponse.body as LroBody) ?? {};\n return status?.toLowerCase() ?? \"succeeded\";\n}\n\nfunction isAzureAsyncPollingDone(rawResponse: RawResponse): boolean {\n const state = getResponseStatus(rawResponse);\n if (\n isUnexpectedPollingResponse(rawResponse) ||\n failureStates.includes(state)\n ) {\n throw new Error(`Operation status: ${state}`);\n }\n return successStates.includes(state);\n}\n\nasync function sendFinalRequest<TResult>(\n lro: LongRunningOperation<TResult>,\n lroResourceLocationConfig?: LroResourceLocationConfig,\n resourceLocation?: string\n): Promise<LroResponse<TResult> | undefined> {\n switch (lroResourceLocationConfig) {\n case \"original-uri\":\n return lro.retrieveAzureAsyncResource();\n case \"azure-async-operation\":\n return Promise.resolve(undefined);\n case \"location\":\n default:\n return lro.retrieveAzureAsyncResource(resourceLocation);\n }\n}\n\nexport function processAzureAsyncOperationResult<TResult>(\n lro: LongRunningOperation<TResult>,\n resourceLocation?: string,\n lroResourceLocationConfig?: LroResourceLocationConfig\n): (rawResponse: RawResponse, flatResponse: TResult) => LroStatus<TResult> {\n return (\n rawResponse: RawResponse,\n flatResponse: TResult\n ): LroStatus<TResult> => {\n if (isAzureAsyncPollingDone(rawResponse)) {\n if (resourceLocation === undefined) {\n return { rawResponse, flatResponse, done: true };\n } else {\n return {\n rawResponse,\n flatResponse,\n done: false,\n next: async () => {\n const finalResponse = await sendFinalRequest(\n lro,\n lroResourceLocationConfig,\n resourceLocation\n );\n return {\n ...(finalResponse ?? {\n rawResponse,\n flatResponse\n }),\n done: true\n };\n }\n };\n }\n }\n return {\n rawResponse,\n flatResponse,\n done: false\n };\n };\n}\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport {\n failureStates,\n LroBody,\n LroStatus,\n RawResponse,\n successStates\n} from \"./models\";\nimport { isUnexpectedPollingResponse } from \"./requestUtils\";\n\nfunction getProvisioningState(rawResponse: RawResponse): string {\n const { properties, provisioningState } = (rawResponse.body as LroBody) ?? {};\n const state: string | undefined =\n properties?.provisioningState ?? provisioningState;\n return state?.toLowerCase() ?? \"succeeded\";\n}\n\nexport function isBodyPollingDone(rawResponse: RawResponse): boolean {\n const state = getProvisioningState(rawResponse);\n if (\n isUnexpectedPollingResponse(rawResponse) ||\n failureStates.includes(state)\n ) {\n throw new Error(\n `The long running operation has failed. The provisioning state: ${state}.`\n );\n }\n return successStates.includes(state);\n}\n\n/**\n * Creates a polling strategy based on BodyPolling which uses the provisioning state\n * from the result to determine the current operation state\n */\nexport function processBodyPollingOperationResult<TResult>(\n rawResponse: RawResponse,\n flatResponse: TResult\n): LroStatus<TResult> {\n return {\n rawResponse,\n flatResponse,\n done: isBodyPollingDone(rawResponse)\n };\n}\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { LroStatus, RawResponse } from \"./models\";\nimport { isUnexpectedPollingResponse } from \"./requestUtils\";\n\nfunction isLocationPollingDone(rawResponse: RawResponse): boolean {\n return (\n !isUnexpectedPollingResponse(rawResponse) && rawResponse.statusCode !== 202\n );\n}\n\nexport function processLocationPollingOperationResult<TResult>(\n rawResponse: RawResponse,\n flatResponse: TResult\n): LroStatus<TResult> {\n return {\n rawResponse,\n flatResponse,\n done: isLocationPollingDone(rawResponse)\n };\n}\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { LroStatus, RawResponse } from \"./models\";\n\nexport function processPassthroughOperationResult<TResult>(\n rawResponse: RawResponse,\n flatResponse: TResult\n): LroStatus<TResult> {\n return {\n rawResponse,\n flatResponse,\n done: true\n };\n}\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { processAzureAsyncOperationResult } from \"./azureAsyncPolling\";\nimport {\n isBodyPollingDone,\n processBodyPollingOperationResult\n} from \"./bodyPolling\";\nimport { processLocationPollingOperationResult } from \"./locationPolling\";\nimport {\n LroResourceLocationConfig,\n GetLroStatusFromResponse,\n LongRunningOperation,\n LroConfig,\n LroStatus,\n PollerConfig,\n RawResponse,\n ResumablePollOperationState\n} from \"./models\";\nimport { processPassthroughOperationResult } from \"./passthrough\";\nimport {\n getPollingUrl,\n inferLroMode,\n isUnexpectedInitialResponse\n} from \"./requestUtils\";\n\n/**\n * creates a stepping function that maps an LRO state to another.\n */\nexport function createGetLroStatusFromResponse<TResult>(\n lroPrimitives: LongRunningOperation<TResult>,\n config: LroConfig,\n lroResourceLocationConfig?: LroResourceLocationConfig\n): GetLroStatusFromResponse<TResult> {\n switch (config.mode) {\n case \"AzureAsync\": {\n return processAzureAsyncOperationResult(\n lroPrimitives,\n config.resourceLocation,\n lroResourceLocationConfig\n );\n }\n case \"Location\": {\n return processLocationPollingOperationResult;\n }\n case \"Body\": {\n return processBodyPollingOperationResult;\n }\n default: {\n return processPassthroughOperationResult;\n }\n }\n}\n\n/**\n * Creates a polling operation that returns a LRO state.\n */\nexport function createPollForLROStatus<TResult>(\n lroPrimitives: LongRunningOperation<TResult>,\n config: LroConfig\n): (\n pollingURL: string,\n pollerConfig: PollerConfig\n) => Promise<LroStatus<TResult>> {\n return async (\n path: string,\n pollerConfig: PollerConfig\n ): Promise<LroStatus<TResult>> => {\n const response = await lroPrimitives.sendPollRequest(config, path);\n const retryAfter: string | undefined =\n response.rawResponse.headers[\"retry-after\"];\n if (retryAfter !== undefined) {\n const retryAfterInMs = parseInt(retryAfter);\n pollerConfig.intervalInMs = isNaN(retryAfterInMs)\n ? calculatePollingIntervalFromDate(\n new Date(retryAfter),\n pollerConfig.intervalInMs\n )\n : retryAfterInMs;\n }\n return response;\n };\n}\n\nfunction calculatePollingIntervalFromDate(\n retryAfterDate: Date,\n defaultIntervalInMs: number\n): number {\n const timeNow = Math.floor(new Date().getTime());\n const retryAfterTime = retryAfterDate.getTime();\n if (timeNow < retryAfterTime) {\n return retryAfterTime - timeNow;\n }\n return defaultIntervalInMs;\n}\n\n/**\n * Creates a callback to be used to initialize the polling operation state.\n * @param state - of the polling operation\n * @param operationSpec - of the LRO\n * @param callback - callback to be called when the operation is done\n * @returns callback that initializes the state of the polling operation\n */\nexport function createInitializeState<TResult>(\n state: ResumablePollOperationState<TResult>,\n requestPath: string,\n requestMethod: string\n): (rawResponse: RawResponse, flatResponse: unknown) => boolean {\n return (rawResponse: RawResponse, flatResponse: unknown) => {\n if (isUnexpectedInitialResponse(rawResponse)) return true;\n state.initialRawResponse = rawResponse;\n state.isStarted = true;\n state.pollingURL = getPollingUrl(state.initialRawResponse, requestPath);\n state.config = inferLroMode(\n requestPath,\n requestMethod,\n state.initialRawResponse\n );\n /** short circuit polling if body polling is done in the initial request */\n if (\n state.config.mode === undefined ||\n (state.config.mode === \"Body\" &&\n isBodyPollingDone(state.initialRawResponse))\n ) {\n state.result = flatResponse as TResult;\n state.isCompleted = true;\n }\n return Boolean(state.isCompleted);\n };\n}\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport { PollOperationState, PollOperation } from \"@azure/core-lro\";\nimport {\n PollerConfig,\n ResumablePollOperationState,\n LongRunningOperation,\n LroStatus\n} from \"./models\";\nimport { getPollingUrl } from \"./requestUtils\";\nimport { createInitializeState, createPollForLROStatus } from \"./stateMachine\";\n\nexport class GenericPollOperation<\n TResult,\n TState extends PollOperationState<TResult>\n> implements PollOperation<TState, TResult> {\n private getLROStatusFromResponse?: (\n pollingURL: string,\n pollerConfig: PollerConfig\n ) => Promise<LroStatus<TResult>>;\n private pollerConfig?: PollerConfig;\n constructor(\n public state: TState & ResumablePollOperationState<TResult>,\n private lro: LongRunningOperation<TResult>\n ) {}\n\n public setPollerConfig(pollerConfig: PollerConfig): void {\n this.pollerConfig = pollerConfig;\n }\n\n /**\n * General update function for LROPoller, the general process is as follows\n * 1. Check initial operation result to determine the strategy to use\n * - Strategies: Location, Azure-AsyncOperation, Original Uri\n * 2. Check if the operation result has a terminal state\n * - Terminal state will be determined by each strategy\n * 2.1 If it is terminal state Check if a final GET request is required, if so\n * send final GET request and return result from operation. If no final GET\n * is required, just return the result from operation.\n * - Determining what to call for final request is responsibility of each strategy\n * 2.2 If it is not terminal state, call the polling operation and go to step 1\n * - Determining what to call for polling is responsibility of each strategy\n * - Strategies will always use the latest URI for polling if provided otherwise\n * the last known one\n */\n async update(options?: {\n abortSignal?: AbortSignalLike | undefined;\n fireProgress?: ((state: TState) => void) | undefined;\n }): Promise<PollOperation<TState, TResult>> {\n const state = this.state;\n if (!state.isStarted) {\n const initializeState = createInitializeState(\n state,\n this.lro.requestPath,\n this.lro.requestMethod\n );\n await this.lro.sendInitialRequest(initializeState);\n }\n\n if (!state.isCompleted) {\n if (this.getLROStatusFromResponse === undefined) {\n if (state.config === undefined) {\n throw new Error(\n \"Bad state: LRO mode is undefined. Please check if the serialized state is well-formed.\"\n );\n }\n this.getLROStatusFromResponse = createPollForLROStatus(\n this.lro,\n state.config\n );\n }\n if (state.pollingURL === undefined) {\n throw new Error(\n \"Bad state: polling URL is undefined. Please check if the serialized state is well-formed.\"\n );\n }\n const currentState = await this.getLROStatusFromResponse(\n state.pollingURL,\n this.pollerConfig!\n );\n if (currentState.done) {\n state.result = currentState.flatResponse;\n state.isCompleted = true;\n } else {\n this.getLROStatusFromResponse =\n currentState.next ?? this.getLROStatusFromResponse;\n state.pollingURL = getPollingUrl(\n currentState.rawResponse,\n state.pollingURL\n );\n }\n }\n options?.fireProgress?.(state);\n return this;\n }\n\n async cancel(): Promise<PollOperation<TState, TResult>> {\n this.state.isCancelled = true;\n return this;\n }\n\n /**\n * Serializes the Poller operation.\n */\n public toString(): string {\n return JSON.stringify({\n state: this.state\n });\n }\n}\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { Poller, PollOperationState } from \"@azure/core-lro\";\nimport {\n LongRunningOperation,\n LroEngineOptions,\n ResumablePollOperationState\n} from \"./models\";\nimport { GenericPollOperation } from \"./operation\";\n\n/**\n * The LRO Engine, a class that performs polling.\n */\nexport class LroEngine<\n TResult,\n TState extends PollOperationState<TResult>\n> extends Poller<TState, TResult> {\n private intervalInMs: number;\n\n constructor(lro: LongRunningOperation<TResult>, options?: LroEngineOptions) {\n const { intervalInMs = 2000, resumeFrom } = options || {};\n function deserializeState(\n resumeFrom: string\n ): TState & ResumablePollOperationState<TResult> {\n try {\n return JSON.parse(resumeFrom).state;\n } catch (e) {\n throw new Error(\n `LroEngine: Unable to deserialize state: ${resumeFrom}`\n );\n }\n }\n const state: TState & ResumablePollOperationState<TResult> = resumeFrom\n ? deserializeState(resumeFrom)\n : ({} as any);\n\n const operation = new GenericPollOperation(state, lro);\n super(operation);\n\n this.intervalInMs = intervalInMs;\n operation.setPollerConfig(this as any);\n }\n\n /**\n * The method used by the poller to wait before attempting to update its operation.\n */\n delay(): Promise<void> {\n return new Promise((resolve) =>\n setTimeout(() => resolve(), this.intervalInMs)\n );\n }\n}\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n OperationArguments,\n OperationSpec,\n OperationResponseMap,\n FullOperationResponse\n} from \"@azure/core-client\";\nimport {\n LroResourceLocationConfig,\n GetLroStatusFromResponse,\n LongRunningOperation,\n LroConfig,\n LroMode,\n LroResponse,\n LroStatus,\n createGetLroStatusFromResponse,\n RawResponse\n} from \"./lro\";\n\nexport const successStates = [\"succeeded\"];\nexport const failureStates = [\"failed\", \"canceled\", \"cancelled\"];\nexport const terminalStates = successStates.concat(failureStates);\n\nexport type SendOperationFn<T> = (\n args: OperationArguments,\n spec: OperationSpec\n) => Promise<LroResponse<T>>;\n\nexport function createPollingMethod<TResult>(\n sendOperationFn: SendOperationFn<TResult>,\n GetLroStatusFromResponse: GetLroStatusFromResponse<TResult>,\n args: OperationArguments,\n spec: OperationSpec,\n mode?: LroMode\n): (path?: string) => Promise<LroStatus<TResult>> {\n /**\n * Polling calls will always return a status object i.e. {\"status\": \"success\"}\n * these intermediate responses are not described in the swagger so we need to\n * pass custom mappers at runtime.\n * This function replaces all the existing mappers to be able to deserialize a status object\n * @param responses Original set of responses defined in the operation\n */\n function getCompositeMappers(responses: {\n [responseCode: string]: OperationResponseMap;\n }): {\n [responseCode: string]: OperationResponseMap;\n } {\n return Object.keys(responses).reduce((acc, statusCode) => {\n return {\n ...acc,\n [statusCode]: {\n ...responses[statusCode],\n bodyMapper: {\n type: {\n name: \"Composite\",\n modelProperties: {\n status: {\n serializedName: \"status\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n }\n }\n };\n }, {} as { [responseCode: string]: OperationResponseMap });\n }\n let response: LroStatus<TResult> | undefined = undefined;\n const customerCallback = args?.options?.onResponse;\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: (\n rawResponse: FullOperationResponse,\n flatResponse: unknown\n ): void => {\n response = GetLroStatusFromResponse(\n {\n statusCode: rawResponse.status,\n body: rawResponse.parsedBody,\n headers: rawResponse.headers.toJSON()\n },\n flatResponse as TResult\n );\n if (response.done) {\n customerCallback?.(rawResponse, flatResponse);\n }\n }\n }\n };\n // Make sure we don't send any body to the get request\n const { requestBody, responses, ...restSpec } = spec;\n if (mode === \"AzureAsync\") {\n return async (path?: string) => {\n await sendOperationFn(updatedArgs, {\n ...restSpec,\n responses: getCompositeMappers(responses),\n httpMethod: \"GET\",\n ...(path && { path })\n });\n return response!;\n };\n }\n return async (path?: string) => {\n await sendOperationFn(updatedArgs, {\n ...restSpec,\n responses: responses,\n httpMethod: \"GET\",\n ...(path && { path })\n });\n return response!;\n };\n}\n\n/**\n * We need to selectively deserialize our responses, only deserializing if we\n * are in a final Lro response, not deserializing any polling non-terminal responses\n */\nexport function shouldDeserializeLro(lroResourceLocationConfig?: string) {\n let initialOperationInfo: LroResponseInfo | undefined;\n let isInitialRequest = true;\n\n return (response: FullOperationResponse) => {\n if (response.status < 200 || response.status >= 300) {\n return true;\n }\n\n if (!initialOperationInfo) {\n initialOperationInfo = getLroData(response);\n } else {\n isInitialRequest = false;\n }\n\n if (\n initialOperationInfo.azureAsyncOperation ||\n initialOperationInfo.operationLocation\n ) {\n return (\n !isInitialRequest &&\n isAsyncOperationFinalResponse(\n response,\n initialOperationInfo,\n lroResourceLocationConfig\n )\n );\n }\n\n if (initialOperationInfo.location) {\n return isLocationFinalResponse(response);\n }\n\n if (initialOperationInfo.requestMethod === \"PUT\") {\n return isBodyPollingFinalResponse(response);\n }\n\n return true;\n };\n}\n\nfunction isAsyncOperationFinalResponse(\n response: FullOperationResponse,\n initialOperationInfo: LroResponseInfo,\n lroResourceLocationConfig?: string\n): boolean {\n const status: string = response.parsedBody?.status || \"Succeeded\";\n if (!terminalStates.includes(status.toLowerCase())) {\n return false;\n }\n\n if (initialOperationInfo.requestMethod === \"DELETE\") {\n return true;\n }\n\n if (\n initialOperationInfo.requestMethod === \"PUT\" &&\n lroResourceLocationConfig &&\n lroResourceLocationConfig.toLowerCase() === \"azure-asyncoperation\"\n ) {\n return true;\n }\n\n if (\n initialOperationInfo.requestMethod !== \"PUT\" &&\n !initialOperationInfo.location\n ) {\n return true;\n }\n\n return false;\n}\n\nfunction isLocationFinalResponse(response: FullOperationResponse): boolean {\n return response.status !== 202;\n}\n\nfunction isBodyPollingFinalResponse(response: FullOperationResponse): boolean {\n const provisioningState: string =\n response.parsedBody?.properties?.provisioningState || \"Succeeded\";\n\n if (terminalStates.includes(provisioningState.toLowerCase())) {\n return true;\n }\n\n return false;\n}\n\ninterface LroResponseInfo {\n requestMethod: string;\n azureAsyncOperation?: string;\n operationLocation?: string;\n location?: string;\n}\n\nfunction getLroData(result: FullOperationResponse): LroResponseInfo {\n return {\n azureAsyncOperation: result.headers.get(\"azure-asyncoperation\"),\n operationLocation: result.headers.get(\"operation-location\"),\n location: result.headers.get(\"location\"),\n requestMethod: result.request.method\n };\n}\n\nexport function getSpecPath(spec: OperationSpec): string {\n if (spec.path) {\n return spec.path;\n } else {\n throw Error(\"Bad spec: request path is not found!\");\n }\n}\n\nexport class CoreClientLro<T> implements LongRunningOperation<T> {\n constructor(\n private sendOperationFn: SendOperationFn<T>,\n private args: OperationArguments,\n private spec: OperationSpec,\n private lroResourceLocationConfig?: LroResourceLocationConfig,\n public requestPath: string = spec.path!,\n public requestMethod: string = spec.httpMethod\n ) {}\n public async sendInitialRequest(\n initializeState: (\n rawResponse: RawResponse,\n flatResponse: unknown\n ) => boolean\n ): Promise<LroResponse<T>> {\n const { onResponse, ...restOptions } = this.args.options || {};\n return this.sendOperationFn(\n {\n ...this.args,\n options: {\n ...restOptions,\n onResponse: (\n rawResponse: FullOperationResponse,\n flatResponse: unknown\n ) => {\n const isCompleted = initializeState(\n {\n statusCode: rawResponse.status,\n body: rawResponse.parsedBody,\n headers: rawResponse.headers.toJSON()\n },\n flatResponse\n );\n if (isCompleted) {\n onResponse?.(rawResponse, flatResponse);\n }\n }\n }\n },\n this.spec\n );\n }\n\n public async sendPollRequest(\n config: LroConfig,\n path: string\n ): Promise<LroStatus<T>> {\n const getLroStatusFromResponse = createGetLroStatusFromResponse(\n this,\n config,\n this.lroResourceLocationConfig\n );\n return createPollingMethod(\n this.sendOperationFn,\n getLroStatusFromResponse,\n this.args,\n this.spec,\n config.mode\n )(path);\n }\n\n public async retrieveAzureAsyncResource(\n path?: string\n ): Promise<LroResponse<T>> {\n const updatedArgs = { ...this.args };\n if (updatedArgs.options) {\n (updatedArgs.options as any).shouldDeserialize = true;\n }\n return createPollingMethod(\n this.sendOperationFn,\n (rawResponse, flatResponse) => ({\n rawResponse,\n flatResponse,\n done: true\n }),\n updatedArgs,\n this.spec\n )(path);\n }\n}\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport \"@azure/core-paging\";\nimport { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { Applications } from \"../operationsInterfaces\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { ApplicationClientContext } from \"../applicationClientContext\";\nimport { PollerLike, PollOperationState } from \"@azure/core-lro\";\nimport { LroEngine } from \"../lro\";\nimport { CoreClientLro, shouldDeserializeLro } from \"../coreClientLro\";\nimport {\n Application,\n ApplicationsListByResourceGroupNextOptionalParams,\n ApplicationsListByResourceGroupOptionalParams,\n ApplicationsListBySubscriptionNextOptionalParams,\n ApplicationsListBySubscriptionOptionalParams,\n ApplicationsListByResourceGroupNextNextOptionalParams,\n ApplicationsListBySubscriptionNextNextOptionalParams,\n ApplicationsGetOptionalParams,\n ApplicationsGetResponse,\n ApplicationsDeleteOptionalParams,\n ApplicationsCreateOrUpdateOptionalParams,\n ApplicationsCreateOrUpdateResponse,\n ApplicationsUpdateOptionalParams,\n ApplicationsUpdateResponse,\n ApplicationsListByResourceGroupResponse,\n ApplicationsListBySubscriptionResponse,\n ApplicationsGetByIdOptionalParams,\n ApplicationsGetByIdResponse,\n ApplicationsDeleteByIdOptionalParams,\n ApplicationsCreateOrUpdateByIdOptionalParams,\n ApplicationsCreateOrUpdateByIdResponse,\n ApplicationsUpdateByIdOptionalParams,\n ApplicationsUpdateByIdResponse,\n ApplicationsListByResourceGroupNextResponse,\n ApplicationsListBySubscriptionNextResponse,\n ApplicationsListByResourceGroupNextNextResponse,\n ApplicationsListBySubscriptionNextNextResponse\n} from \"../models\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class representing a Applications. */\nexport class ApplicationsImpl implements Applications {\n private readonly client: ApplicationClientContext;\n\n /**\n * Initialize a new instance of the class Applications class.\n * @param client Reference to the service client\n */\n constructor(client: ApplicationClientContext) {\n this.client = client;\n }\n\n /**\n * Gets all the applications within a resource group.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: ApplicationsListByResourceGroupOptionalParams\n ): PagedAsyncIterableIterator<Application> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.listByResourceGroupPagingPage(resourceGroupName, options);\n }\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: ApplicationsListByResourceGroupOptionalParams\n ): AsyncIterableIterator<Application[]> {\n let result = await this._listByResourceGroup(resourceGroupName, options);\n yield result.value || [];\n let continuationToken = result.nextLink;\n while (continuationToken) {\n result = await this._listByResourceGroupNext(\n resourceGroupName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n yield result.value || [];\n }\n }\n\n private async *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: ApplicationsListByResourceGroupOptionalParams\n ): AsyncIterableIterator<Application> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets all the applications within a subscription.\n * @param options The options parameters.\n */\n public listBySubscription(\n options?: ApplicationsListBySubscriptionOptionalParams\n ): PagedAsyncIterableIterator<Application> {\n const iter = this.listBySubscriptionPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.listBySubscriptionPagingPage(options);\n }\n };\n }\n\n private async *listBySubscriptionPagingPage(\n options?: ApplicationsListBySubscriptionOptionalParams\n ): AsyncIterableIterator<Application[]> {\n let result = await this._listBySubscription(options);\n yield result.value || [];\n let continuationToken = result.nextLink;\n while (continuationToken) {\n result = await this._listBySubscriptionNext(continuationToken, options);\n continuationToken = result.nextLink;\n yield result.value || [];\n }\n }\n\n private async *listBySubscriptionPagingAll(\n options?: ApplicationsListBySubscriptionOptionalParams\n ): AsyncIterableIterator<Application> {\n for await (const page of this.listBySubscriptionPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n public listByResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: ApplicationsListByResourceGroupNextOptionalParams\n ): PagedAsyncIterableIterator<Application> {\n const iter = this.listByResourceGroupNextPagingAll(\n resourceGroupName,\n nextLink,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.listByResourceGroupNextPagingPage(\n resourceGroupName,\n nextLink,\n options\n );\n }\n };\n }\n\n private async *listByResourceGroupNextPagingPage(\n resourceGroupName: string,\n nextLink: string,\n options?: ApplicationsListByResourceGroupNextOptionalParams\n ): AsyncIterableIterator<Application[]> {\n let result = await this._listByResourceGroupNext(\n resourceGroupName,\n nextLink,\n options\n );\n yield result.value || [];\n let continuationToken = result.nextLink;\n while (continuationToken) {\n result = await this._listByResourceGroupNextNext(\n resourceGroupName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n yield result.value || [];\n }\n }\n\n private async *listByResourceGroupNextPagingAll(\n resourceGroupName: string,\n nextLink: string,\n options?: ApplicationsListByResourceGroupNextOptionalParams\n ): AsyncIterableIterator<Application> {\n for await (const page of this.listByResourceGroupNextPagingPage(\n resourceGroupName,\n nextLink,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * ListBySubscriptionNext\n * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.\n * @param options The options parameters.\n */\n public listBySubscriptionNext(\n nextLink: string,\n options?: ApplicationsListBySubscriptionNextOptionalParams\n ): PagedAsyncIterableIterator<Application> {\n const iter = this.listBySubscriptionNextPagingAll(nextLink, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.listBySubscriptionNextPagingPage(nextLink, options);\n }\n };\n }\n\n private async *listBySubscriptionNextPagingPage(\n nextLink: string,\n options?: ApplicationsListBySubscriptionNextOptionalParams\n ): AsyncIterableIterator<Application[]> {\n let result = await this._listBySubscriptionNext(nextLink, options);\n yield result.value || [];\n let continuationToken = result.nextLink;\n while (continuationToken) {\n result = await this._listBySubscriptionNextNext(\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n yield result.value || [];\n }\n }\n\n private async *listBySubscriptionNextPagingAll(\n nextLink: string,\n options?: ApplicationsListBySubscriptionNextOptionalParams\n ): AsyncIterableIterator<Application> {\n for await (const page of this.listBySubscriptionNextPagingPage(\n nextLink,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets the managed application.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param applicationName The name of the managed application.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n applicationName: string,\n options?: ApplicationsGetOptionalParams\n ): Promise<ApplicationsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, applicationName, options },\n getOperationSpec\n );\n }\n\n /**\n * Deletes the managed application.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param applicationName The name of the managed application.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n applicationName: string,\n options?: ApplicationsDeleteOptionalParams\n ): Promise<PollerLike<PollOperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new CoreClientLro(\n sendOperation,\n { resourceGroupName, applicationName, options },\n deleteOperationSpec\n );\n return new LroEngine(lro, { intervalInMs: options?.updateIntervalInMs });\n }\n\n /**\n * Deletes the managed application.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param applicationName The name of the managed application.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n applicationName: string,\n options?: ApplicationsDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n applicationName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Creates a new managed application.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param applicationName The name of the managed application.\n * @param parameters Parameters supplied to the create or update a managed application.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n applicationName: string,\n parameters: Application,\n options?: ApplicationsCreateOrUpdateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<ApplicationsCreateOrUpdateResponse>,\n ApplicationsCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<ApplicationsCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new CoreClientLro(\n sendOperation,\n { resourceGroupName, applicationName, parameters, options },\n createOrUpdateOperationSpec\n );\n return new LroEngine(lro, { intervalInMs: options?.updateIntervalInMs });\n }\n\n /**\n * Creates a new managed application.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param applicationName The name of the managed application.\n * @param parameters Parameters supplied to the create or update a managed application.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n applicationName: string,\n parameters: Application,\n options?: ApplicationsCreateOrUpdateOptionalParams\n ): Promise<ApplicationsCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n applicationName,\n parameters,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Updates an existing managed application. The only value that can be updated via PATCH currently is\n * the tags.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param applicationName The name of the managed application.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n applicationName: string,\n options?: ApplicationsUpdateOptionalParams\n ): Promise<ApplicationsUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, applicationName, options },\n updateOperationSpec\n );\n }\n\n /**\n * Gets all the applications within a resource group.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: ApplicationsListByResourceGroupOptionalParams\n ): Promise<ApplicationsListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec\n );\n }\n\n /**\n * Gets all the applications within a subscription.\n * @param options The options parameters.\n */\n private _listBySubscription(\n options?: ApplicationsListBySubscriptionOptionalParams\n ): Promise<ApplicationsListBySubscriptionResponse> {\n return this.client.sendOperationRequest(\n { options },\n listBySubscriptionOperationSpec\n );\n }\n\n /**\n * Gets the managed application.\n * @param applicationId The fully qualified ID of the managed application, including the managed\n * application name and the managed application resource type. Use the format,\n * /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}\n * @param options The options parameters.\n */\n getById(\n applicationId: string,\n options?: ApplicationsGetByIdOptionalParams\n ): Promise<ApplicationsGetByIdResponse> {\n return this.client.sendOperationRequest(\n { applicationId, options },\n getByIdOperationSpec\n );\n }\n\n /**\n * Deletes the managed application.\n * @param applicationId The fully qualified ID of the managed application, including the managed\n * application name and the managed application resource type. Use the format,\n * /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}\n * @param options The options parameters.\n */\n async beginDeleteById(\n applicationId: string,\n options?: ApplicationsDeleteByIdOptionalParams\n ): Promise<PollerLike<PollOperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new CoreClientLro(\n sendOperation,\n { applicationId, options },\n deleteByIdOperationSpec\n );\n return new LroEngine(lro, { intervalInMs: options?.updateIntervalInMs });\n }\n\n /**\n * Deletes the managed application.\n * @param applicationId The fully qualified ID of the managed application, including the managed\n * application name and the managed application resource type. Use the format,\n * /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}\n * @param options The options parameters.\n */\n async beginDeleteByIdAndWait(\n applicationId: string,\n options?: ApplicationsDeleteByIdOptionalParams\n ): Promise<void> {\n const poller = await this.beginDeleteById(applicationId, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Creates a new managed application.\n * @param applicationId The fully qualified ID of the managed application, including the managed\n * application name and the managed application resource type. Use the format,\n * /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}\n * @param parameters Parameters supplied to the create or update a managed application.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateById(\n applicationId: string,\n parameters: Application,\n options?: ApplicationsCreateOrUpdateByIdOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<ApplicationsCreateOrUpdateByIdResponse>,\n ApplicationsCreateOrUpdateByIdResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<ApplicationsCreateOrUpdateByIdResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new CoreClientLro(\n sendOperation,\n { applicationId, parameters, options },\n createOrUpdateByIdOperationSpec\n );\n return new LroEngine(lro, { intervalInMs: options?.updateIntervalInMs });\n }\n\n /**\n * Creates a new managed application.\n * @param applicationId The fully qualified ID of the managed application, including the managed\n * application name and the managed application resource type. Use the format,\n * /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}\n * @param parameters Parameters supplied to the create or update a managed application.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateByIdAndWait(\n applicationId: string,\n parameters: Application,\n options?: ApplicationsCreateOrUpdateByIdOptionalParams\n ): Promise<ApplicationsCreateOrUpdateByIdResponse> {\n const poller = await this.beginCreateOrUpdateById(\n applicationId,\n parameters,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Updates an existing managed application. The only value that can be updated via PATCH currently is\n * the tags.\n * @param applicationId The fully qualified ID of the managed application, including the managed\n * application name and the managed application resource type. Use the format,\n * /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}\n * @param options The options parameters.\n */\n updateById(\n applicationId: string,\n options?: ApplicationsUpdateByIdOptionalParams\n ): Promise<ApplicationsUpdateByIdResponse> {\n return this.client.sendOperationRequest(\n { applicationId, options },\n updateByIdOperationSpec\n );\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: ApplicationsListByResourceGroupNextOptionalParams\n ): Promise<ApplicationsListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextOperationSpec\n );\n }\n\n /**\n * ListBySubscriptionNext\n * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.\n * @param options The options parameters.\n */\n private _listBySubscriptionNext(\n nextLink: string,\n options?: ApplicationsListBySubscriptionNextOptionalParams\n ): Promise<ApplicationsListBySubscriptionNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listBySubscriptionNextOperationSpec\n );\n }\n\n /**\n * ListByResourceGroupNextNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroupNext\n * method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNextNext(\n resourceGroupName: string,\n nextLink: string,\n options?: ApplicationsListByResourceGroupNextNextOptionalParams\n ): Promise<ApplicationsListByResourceGroupNextNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextNextOperationSpec\n );\n }\n\n /**\n * ListBySubscriptionNextNext\n * @param nextLink The nextLink from the previous successful call to the ListBySubscriptionNext method.\n * @param options The options parameters.\n */\n private _listBySubscriptionNextNext(\n nextLink: string,\n options?: ApplicationsListBySubscriptionNextNextOptionalParams\n ): Promise<ApplicationsListBySubscriptionNextNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listBySubscriptionNextNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Application\n },\n 404: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.applicationName,\n Parameters.subscriptionId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.applicationName,\n Parameters.subscriptionId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Application\n },\n 201: {\n bodyMapper: Mappers.Application\n },\n 202: {\n bodyMapper: Mappers.Application\n },\n 204: {\n bodyMapper: Mappers.Application\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.applicationName,\n Parameters.subscriptionId\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Application\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.applicationName,\n Parameters.subscriptionId\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listBySubscriptionOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Solutions/applications\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getByIdOperationSpec: coreClient.OperationSpec = {\n path: \"/{applicationId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Application\n },\n 404: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.applicationId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteByIdOperationSpec: coreClient.OperationSpec = {\n path: \"/{applicationId}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.applicationId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateByIdOperationSpec: coreClient.OperationSpec = {\n path: \"/{applicationId}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Application\n },\n 201: {\n bodyMapper: Mappers.Application\n },\n 202: {\n bodyMapper: Mappers.Application\n },\n 204: {\n bodyMapper: Mappers.Application\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.applicationId],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst updateByIdOperationSpec: coreClient.OperationSpec = {\n path: \"/{applicationId}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Application\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters2,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.applicationId],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.resourceGroupName,\n Parameters.subscriptionId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByResourceGroupNextNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.resourceGroupName,\n Parameters.subscriptionId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listBySubscriptionNextNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport \"@azure/core-paging\";\nimport { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { ApplicationDefinitions } from \"../operationsInterfaces\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { ApplicationClientContext } from \"../applicationClientContext\";\nimport { PollerLike, PollOperationState } from \"@azure/core-lro\";\nimport { LroEngine } from \"../lro\";\nimport { CoreClientLro, shouldDeserializeLro } from \"../coreClientLro\";\nimport {\n ApplicationDefinition,\n ApplicationDefinitionsListByResourceGroupNextOptionalParams,\n ApplicationDefinitionsListByResourceGroupOptionalParams,\n ApplicationDefinitionsListByResourceGroupNextNextOptionalParams,\n ApplicationDefinitionsGetOptionalParams,\n ApplicationDefinitionsGetResponse,\n ApplicationDefinitionsDeleteOptionalParams,\n ApplicationDefinitionsCreateOrUpdateOptionalParams,\n ApplicationDefinitionsCreateOrUpdateResponse,\n ApplicationDefinitionsListByResourceGroupResponse,\n ApplicationDefinitionsGetByIdOptionalParams,\n ApplicationDefinitionsGetByIdResponse,\n ApplicationDefinitionsDeleteByIdOptionalParams,\n ApplicationDefinitionsCreateOrUpdateByIdOptionalParams,\n ApplicationDefinitionsCreateOrUpdateByIdResponse,\n ApplicationDefinitionsListByResourceGroupNextResponse,\n ApplicationDefinitionsListByResourceGroupNextNextResponse\n} from \"../models\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class representing a ApplicationDefinitions. */\nexport class ApplicationDefinitionsImpl implements ApplicationDefinitions {\n private readonly client: ApplicationClientContext;\n\n /**\n * Initialize a new instance of the class ApplicationDefinitions class.\n * @param client Reference to the service client\n */\n constructor(client: ApplicationClientContext) {\n this.client = client;\n }\n\n /**\n * Lists the managed application definitions in a resource group.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: ApplicationDefinitionsListByResourceGroupOptionalParams\n ): PagedAsyncIterableIterator<ApplicationDefinition> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.listByResourceGroupPagingPage(resourceGroupName, options);\n }\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: ApplicationDefinitionsListByResourceGroupOptionalParams\n ): AsyncIterableIterator<ApplicationDefinition[]> {\n let result = await this._listByResourceGroup(resourceGroupName, options);\n yield result.value || [];\n let continuationToken = result.nextLink;\n while (continuationToken) {\n result = await this._listByResourceGroupNext(\n resourceGroupName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n yield result.value || [];\n }\n }\n\n private async *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: ApplicationDefinitionsListByResourceGroupOptionalParams\n ): AsyncIterableIterator<ApplicationDefinition> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n public listByResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: ApplicationDefinitionsListByResourceGroupNextOptionalParams\n ): PagedAsyncIterableIterator<ApplicationDefinition> {\n const iter = this.listByResourceGroupNextPagingAll(\n resourceGroupName,\n nextLink,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.listByResourceGroupNextPagingPage(\n resourceGroupName,\n nextLink,\n options\n );\n }\n };\n }\n\n private async *listByResourceGroupNextPagingPage(\n resourceGroupName: string,\n nextLink: string,\n options?: ApplicationDefinitionsListByResourceGroupNextOptionalParams\n ): AsyncIterableIterator<ApplicationDefinition[]> {\n let result = await this._listByResourceGroupNext(\n resourceGroupName,\n nextLink,\n options\n );\n yield result.value || [];\n let continuationToken = result.nextLink;\n while (continuationToken) {\n result = await this._listByResourceGroupNextNext(\n resourceGroupName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n yield result.value || [];\n }\n }\n\n private async *listByResourceGroupNextPagingAll(\n resourceGroupName: string,\n nextLink: string,\n options?: ApplicationDefinitionsListByResourceGroupNextOptionalParams\n ): AsyncIterableIterator<ApplicationDefinition> {\n for await (const page of this.listByResourceGroupNextPagingPage(\n resourceGroupName,\n nextLink,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets the managed application definition.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param applicationDefinitionName The name of the managed application definition.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n applicationDefinitionName: string,\n options?: ApplicationDefinitionsGetOptionalParams\n ): Promise<ApplicationDefinitionsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, applicationDefinitionName, options },\n getOperationSpec\n );\n }\n\n /**\n * Deletes the managed application definition.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param applicationDefinitionName The name of the managed application definition to delete.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n applicationDefinitionName: string,\n options?: ApplicationDefinitionsDeleteOptionalParams\n ): Promise<PollerLike<PollOperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new CoreClientLro(\n sendOperation,\n { resourceGroupName, applicationDefinitionName, options },\n deleteOperationSpec\n );\n return new LroEngine(lro, { intervalInMs: options?.updateIntervalInMs });\n }\n\n /**\n * Deletes the managed application definition.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param applicationDefinitionName The name of the managed application definition to delete.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n applicationDefinitionName: string,\n options?: ApplicationDefinitionsDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n applicationDefinitionName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Creates a new managed application definition.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param applicationDefinitionName The name of the managed application definition.\n * @param parameters Parameters supplied to the create or update an managed application definition.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n applicationDefinitionName: string,\n parameters: ApplicationDefinition,\n options?: ApplicationDefinitionsCreateOrUpdateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<ApplicationDefinitionsCreateOrUpdateResponse>,\n ApplicationDefinitionsCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<ApplicationDefinitionsCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new CoreClientLro(\n sendOperation,\n { resourceGroupName, applicationDefinitionName, parameters, options },\n createOrUpdateOperationSpec\n );\n return new LroEngine(lro, { intervalInMs: options?.updateIntervalInMs });\n }\n\n /**\n * Creates a new managed application definition.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param applicationDefinitionName The name of the managed application definition.\n * @param parameters Parameters supplied to the create or update an managed application definition.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n applicationDefinitionName: string,\n parameters: ApplicationDefinition,\n options?: ApplicationDefinitionsCreateOrUpdateOptionalParams\n ): Promise<ApplicationDefinitionsCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n applicationDefinitionName,\n parameters,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Lists the managed application definitions in a resource group.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: ApplicationDefinitionsListByResourceGroupOptionalParams\n ): Promise<ApplicationDefinitionsListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec\n );\n }\n\n /**\n * Gets the managed application definition.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param applicationDefinitionName The name of the managed application definition.\n * @param options The options parameters.\n */\n getById(\n resourceGroupName: string,\n applicationDefinitionName: string,\n options?: ApplicationDefinitionsGetByIdOptionalParams\n ): Promise<ApplicationDefinitionsGetByIdResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, applicationDefinitionName, options },\n getByIdOperationSpec\n );\n }\n\n /**\n * Deletes the managed application definition.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param applicationDefinitionName The name of the managed application definition.\n * @param options The options parameters.\n */\n async beginDeleteById(\n resourceGroupName: string,\n applicationDefinitionName: string,\n options?: ApplicationDefinitionsDeleteByIdOptionalParams\n ): Promise<PollerLike<PollOperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new CoreClientLro(\n sendOperation,\n { resourceGroupName, applicationDefinitionName, options },\n deleteByIdOperationSpec\n );\n return new LroEngine(lro, { intervalInMs: options?.updateIntervalInMs });\n }\n\n /**\n * Deletes the managed application definition.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param applicationDefinitionName The name of the managed application definition.\n * @param options The options parameters.\n */\n async beginDeleteByIdAndWait(\n resourceGroupName: string,\n applicationDefinitionName: string,\n options?: ApplicationDefinitionsDeleteByIdOptionalParams\n ): Promise<void> {\n const poller = await this.beginDeleteById(\n resourceGroupName,\n applicationDefinitionName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Creates a new managed application definition.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param applicationDefinitionName The name of the managed application definition.\n * @param parameters Parameters supplied to the create or update a managed application definition.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateById(\n resourceGroupName: string,\n applicationDefinitionName: string,\n parameters: ApplicationDefinition,\n options?: ApplicationDefinitionsCreateOrUpdateByIdOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<ApplicationDefinitionsCreateOrUpdateByIdResponse>,\n ApplicationDefinitionsCreateOrUpdateByIdResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<ApplicationDefinitionsCreateOrUpdateByIdResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new CoreClientLro(\n sendOperation,\n { resourceGroupName, applicationDefinitionName, parameters, options },\n createOrUpdateByIdOperationSpec\n );\n return new LroEngine(lro, { intervalInMs: options?.updateIntervalInMs });\n }\n\n /**\n * Creates a new managed application definition.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param applicationDefinitionName The name of the managed application definition.\n * @param parameters Parameters supplied to the create or update a managed application definition.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateByIdAndWait(\n resourceGroupName: string,\n applicationDefinitionName: string,\n parameters: ApplicationDefinition,\n options?: ApplicationDefinitionsCreateOrUpdateByIdOptionalParams\n ): Promise<ApplicationDefinitionsCreateOrUpdateByIdResponse> {\n const poller = await this.beginCreateOrUpdateById(\n resourceGroupName,\n applicationDefinitionName,\n parameters,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: ApplicationDefinitionsListByResourceGroupNextOptionalParams\n ): Promise<ApplicationDefinitionsListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextOperationSpec\n );\n }\n\n /**\n * ListByResourceGroupNextNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroupNext\n * method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNextNext(\n resourceGroupName: string,\n nextLink: string,\n options?: ApplicationDefinitionsListByResourceGroupNextNextOptionalParams\n ): Promise<ApplicationDefinitionsListByResourceGroupNextNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationDefinition\n },\n 404: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.applicationDefinitionName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.applicationDefinitionName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationDefinition\n },\n 201: {\n bodyMapper: Mappers.ApplicationDefinition\n },\n 202: {\n bodyMapper: Mappers.ApplicationDefinition\n },\n 204: {\n bodyMapper: Mappers.ApplicationDefinition\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters3,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.applicationDefinitionName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationDefinitionListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getByIdOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationDefinition\n },\n 404: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.applicationDefinitionName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteByIdOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.applicationDefinitionName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateByIdOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationDefinition\n },\n 201: {\n bodyMapper: Mappers.ApplicationDefinition\n },\n 202: {\n bodyMapper: Mappers.ApplicationDefinition\n },\n 204: {\n bodyMapper: Mappers.ApplicationDefinition\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters3,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.applicationDefinitionName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationDefinitionListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.resourceGroupName,\n Parameters.subscriptionId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByResourceGroupNextNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationDefinitionListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.resourceGroupName,\n Parameters.subscriptionId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport { ApplicationClientOptionalParams } from \"./models\";\n\nexport class ApplicationClientContext extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the ApplicationClientContext class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: ApplicationClientOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: ApplicationClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-managedapplications/30.0.0-beta.2`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n if (!options.credentialScopes) {\n options.credentialScopes = [\"https://management.azure.com/.default\"];\n }\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n baseUri: options.endpoint || \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2018-06-01\";\n }\n}\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport \"@azure/core-paging\";\nimport { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { ApplicationsImpl, ApplicationDefinitionsImpl } from \"./operations\";\nimport { Applications, ApplicationDefinitions } from \"./operationsInterfaces\";\nimport * as Parameters from \"./models/parameters\";\nimport * as Mappers from \"./models/mappers\";\nimport { ApplicationClientContext } from \"./applicationClientContext\";\nimport {\n ApplicationClientOptionalParams,\n Operation,\n ApplicationClientListOperationsNextOptionalParams,\n ApplicationClientListOperationsOptionalParams,\n ApplicationClientListOperationsNextNextOptionalParams,\n ApplicationClientListOperationsResponse,\n ApplicationClientListOperationsNextResponse,\n ApplicationClientListOperationsNextNextResponse\n} from \"./models\";\n\n/// <reference lib=\"esnext.asynciterable\" />\nexport class ApplicationClient extends ApplicationClientContext {\n /**\n * Initializes a new instance of the ApplicationClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: ApplicationClientOptionalParams\n ) {\n super(credentials, subscriptionId, options);\n this.applications = new ApplicationsImpl(this);\n this.applicationDefinitions = new ApplicationDefinitionsImpl(this);\n }\n\n /**\n * Lists all of the available Microsoft.Solutions REST API operations.\n * @param options The options parameters.\n */\n public listOperations(\n options?: ApplicationClientListOperationsOptionalParams\n ): PagedAsyncIterableIterator<Operation> {\n const iter = this.listOperationsPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.listOperationsPagingPage(options);\n }\n };\n }\n\n private async *listOperationsPagingPage(\n options?: ApplicationClientListOperationsOptionalParams\n ): AsyncIterableIterator<Operation[]> {\n let result = await this._listOperations(options);\n yield result.value || [];\n let continuationToken = result.nextLink;\n while (continuationToken) {\n result = await this._listOperationsNext(continuationToken, options);\n continuationToken = result.nextLink;\n yield result.value || [];\n }\n }\n\n private async *listOperationsPagingAll(\n options?: ApplicationClientListOperationsOptionalParams\n ): AsyncIterableIterator<Operation> {\n for await (const page of this.listOperationsPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * ListOperationsNext\n * @param nextLink The nextLink from the previous successful call to the ListOperations method.\n * @param options The options parameters.\n */\n public listOperationsNext(\n nextLink: string,\n options?: ApplicationClientListOperationsNextOptionalParams\n ): PagedAsyncIterableIterator<Operation> {\n const iter = this.listOperationsNextPagingAll(nextLink, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.listOperationsNextPagingPage(nextLink, options);\n }\n };\n }\n\n private async *listOperationsNextPagingPage(\n nextLink: string,\n options?: ApplicationClientListOperationsNextOptionalParams\n ): AsyncIterableIterator<Operation[]> {\n let result = await this._listOperationsNext(nextLink, options);\n yield result.value || [];\n let continuationToken = result.nextLink;\n while (continuationToken) {\n result = await this._listOperationsNextNext(continuationToken, options);\n continuationToken = result.nextLink;\n yield result.value || [];\n }\n }\n\n private async *listOperationsNextPagingAll(\n nextLink: string,\n options?: ApplicationClientListOperationsNextOptionalParams\n ): AsyncIterableIterator<Operation> {\n for await (const page of this.listOperationsNextPagingPage(\n nextLink,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists all of the available Microsoft.Solutions REST API operations.\n * @param options The options parameters.\n */\n private _listOperations(\n options?: ApplicationClientListOperationsOptionalParams\n ): Promise<ApplicationClientListOperationsResponse> {\n return this.sendOperationRequest({ options }, listOperationsOperationSpec);\n }\n\n /**\n * ListOperationsNext\n * @param nextLink The nextLink from the previous successful call to the ListOperations method.\n * @param options The options parameters.\n */\n private _listOperationsNext(\n nextLink: string,\n options?: ApplicationClientListOperationsNextOptionalParams\n ): Promise<ApplicationClientListOperationsNextResponse> {\n return this.sendOperationRequest(\n { nextLink, options },\n listOperationsNextOperationSpec\n );\n }\n\n /**\n * ListOperationsNextNext\n * @param nextLink The nextLink from the previous successful call to the ListOperationsNext method.\n * @param options The options parameters.\n */\n private _listOperationsNextNext(\n nextLink: string,\n options?: ApplicationClientListOperationsNextNextOptionalParams\n ): Promise<ApplicationClientListOperationsNextNextResponse> {\n return this.sendOperationRequest(\n { nextLink, options },\n listOperationsNextNextOperationSpec\n );\n }\n\n applications: Applications;\n applicationDefinitions: ApplicationDefinitions;\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationsOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Solutions/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listOperationsNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listOperationsNextNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\n"],"names":["KnownProvisioningState","ApplicationMapper","ApplicationPatchableMapper","ApplicationDefinitionMapper","Poller","__asyncValues","__asyncDelegator","coreClient.createSerializer","Mappers.Application","Mappers.ErrorResponse","Parameters.apiVersion","Parameters.$host","Parameters.resourceGroupName","Parameters.applicationName","Parameters.subscriptionId","Parameters.accept","Parameters.parameters","Parameters.contentType","Parameters.parameters1","Mappers.ApplicationListResult","Parameters.applicationId","Parameters.parameters2","Parameters.nextLink","getOperationSpec","deleteOperationSpec","createOrUpdateOperationSpec","listByResourceGroupOperationSpec","getByIdOperationSpec","deleteByIdOperationSpec","createOrUpdateByIdOperationSpec","listByResourceGroupNextOperationSpec","listByResourceGroupNextNextOperationSpec","serializer","Mappers.ApplicationDefinition","Parameters.applicationDefinitionName","Parameters.parameters3","Mappers.ApplicationDefinitionListResult","coreClient.ServiceClient","Mappers.OperationListResult"],"mappings":";;;;;;;;;AAAA;;;;;;;AAoPA,WAAY,sBAAsB;IAChC,+CAAqB,CAAA;IACrB,6CAAmB,CAAA;IACnB,yCAAe,CAAA;IACf,+CAAqB,CAAA;IACrB,6CAAmB,CAAA;IACnB,+CAAqB,CAAA;IACrB,6CAAmB,CAAA;IACnB,+CAAqB,CAAA;IACrB,2CAAiB,CAAA;IACjB,iDAAuB,CAAA;IACvB,+CAAqB,CAAA;AACvB,CAAC,EAZWA,8BAAsB,KAAtBA,8BAAsB;;ACpPlC;;;;;;;AAUA,AAAO,M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