@azure/arm-storagesync 9.1.1-alpha.20250619.1 → 9.1.1-alpha.20250718.2
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/dist/browser/lroImpl.js +11 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/microsoftStorageSync.js +23 -5
- package/dist/browser/microsoftStorageSync.js.map +1 -1
- package/dist/browser/models/mappers.js +248 -117
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/cloudEndpoints.js +87 -69
- package/dist/browser/operations/cloudEndpoints.js.map +1 -1
- package/dist/browser/operations/operationStatusOperations.js +1 -0
- package/dist/browser/operations/operationStatusOperations.js.map +1 -1
- package/dist/browser/operations/operations.js +23 -40
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/privateEndpointConnections.js +32 -39
- package/dist/browser/operations/privateEndpointConnections.js.map +1 -1
- package/dist/browser/operations/privateLinkResources.js +1 -0
- package/dist/browser/operations/privateLinkResources.js.map +1 -1
- package/dist/browser/operations/registeredServers.js +43 -45
- package/dist/browser/operations/registeredServers.js.map +1 -1
- package/dist/browser/operations/serverEndpoints.js +54 -51
- package/dist/browser/operations/serverEndpoints.js.map +1 -1
- package/dist/browser/operations/storageSyncServices.js +52 -71
- package/dist/browser/operations/storageSyncServices.js.map +1 -1
- package/dist/browser/operations/syncGroups.js +10 -27
- package/dist/browser/operations/syncGroups.js.map +1 -1
- package/dist/browser/operations/workflows.js +10 -27
- package/dist/browser/operations/workflows.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/lroImpl.js +11 -3
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/microsoftStorageSync.js +23 -5
- package/dist/commonjs/microsoftStorageSync.js.map +1 -1
- package/dist/commonjs/models/mappers.js +248 -117
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/cloudEndpoints.js +87 -68
- package/dist/commonjs/operations/cloudEndpoints.js.map +1 -1
- package/dist/commonjs/operations/operationStatusOperations.js +1 -0
- package/dist/commonjs/operations/operationStatusOperations.js.map +1 -1
- package/dist/commonjs/operations/operations.js +23 -39
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/privateEndpointConnections.js +32 -38
- package/dist/commonjs/operations/privateEndpointConnections.js.map +1 -1
- package/dist/commonjs/operations/privateLinkResources.js +1 -0
- package/dist/commonjs/operations/privateLinkResources.js.map +1 -1
- package/dist/commonjs/operations/registeredServers.js +43 -44
- package/dist/commonjs/operations/registeredServers.js.map +1 -1
- package/dist/commonjs/operations/serverEndpoints.js +54 -50
- package/dist/commonjs/operations/serverEndpoints.js.map +1 -1
- package/dist/commonjs/operations/storageSyncServices.js +52 -70
- package/dist/commonjs/operations/storageSyncServices.js.map +1 -1
- package/dist/commonjs/operations/syncGroups.js +10 -26
- package/dist/commonjs/operations/syncGroups.js.map +1 -1
- package/dist/commonjs/operations/workflows.js +10 -26
- package/dist/commonjs/operations/workflows.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/lroImpl.js +11 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/microsoftStorageSync.js +23 -5
- package/dist/esm/microsoftStorageSync.js.map +1 -1
- package/dist/esm/models/mappers.js +248 -117
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/cloudEndpoints.js +87 -69
- package/dist/esm/operations/cloudEndpoints.js.map +1 -1
- package/dist/esm/operations/operationStatusOperations.js +1 -0
- package/dist/esm/operations/operationStatusOperations.js.map +1 -1
- package/dist/esm/operations/operations.js +23 -40
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/privateEndpointConnections.js +32 -39
- package/dist/esm/operations/privateEndpointConnections.js.map +1 -1
- package/dist/esm/operations/privateLinkResources.js +1 -0
- package/dist/esm/operations/privateLinkResources.js.map +1 -1
- package/dist/esm/operations/registeredServers.js +43 -45
- package/dist/esm/operations/registeredServers.js.map +1 -1
- package/dist/esm/operations/serverEndpoints.js +54 -51
- package/dist/esm/operations/serverEndpoints.js.map +1 -1
- package/dist/esm/operations/storageSyncServices.js +52 -71
- package/dist/esm/operations/storageSyncServices.js.map +1 -1
- package/dist/esm/operations/syncGroups.js +10 -27
- package/dist/esm/operations/syncGroups.js.map +1 -1
- package/dist/esm/operations/workflows.js +10 -27
- package/dist/esm/operations/workflows.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/lroImpl.js +11 -3
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/microsoftStorageSync.js +23 -5
- package/dist/react-native/microsoftStorageSync.js.map +1 -1
- package/dist/react-native/models/mappers.js +248 -117
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/cloudEndpoints.js +87 -69
- package/dist/react-native/operations/cloudEndpoints.js.map +1 -1
- package/dist/react-native/operations/operationStatusOperations.js +1 -0
- package/dist/react-native/operations/operationStatusOperations.js.map +1 -1
- package/dist/react-native/operations/operations.js +23 -40
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/privateEndpointConnections.js +32 -39
- package/dist/react-native/operations/privateEndpointConnections.js.map +1 -1
- package/dist/react-native/operations/privateLinkResources.js +1 -0
- package/dist/react-native/operations/privateLinkResources.js.map +1 -1
- package/dist/react-native/operations/registeredServers.js +43 -45
- package/dist/react-native/operations/registeredServers.js.map +1 -1
- package/dist/react-native/operations/serverEndpoints.js +54 -51
- package/dist/react-native/operations/serverEndpoints.js.map +1 -1
- package/dist/react-native/operations/storageSyncServices.js +52 -71
- package/dist/react-native/operations/storageSyncServices.js.map +1 -1
- package/dist/react-native/operations/syncGroups.js +10 -27
- package/dist/react-native/operations/syncGroups.js.map +1 -1
- package/dist/react-native/operations/workflows.js +10 -27
- package/dist/react-native/operations/workflows.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/package.json +2 -2
- /package/review/{arm-storagesync.api.md → arm-storagesync-node.api.md} +0 -0
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"registeredServers.js","sourceRoot":"","sources":["../../../src/operations/registeredServers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAAkC,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAiBxC,4CAA4C;AAC5C,qDAAqD;AACrD,MAAM,OAAO,qBAAqB;IAGhC;;;OAGG;IACH,YAAY,MAA4B;QACtC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,wBAAwB,CAC7B,iBAAyB,EACzB,sBAA8B,EAC9B,OAAiE;QAEjE,MAAM,IAAI,GAAG,IAAI,CAAC,iCAAiC,CACjD,iBAAiB,EACjB,sBAAsB,EACtB,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,kCAAkC,CAC5C,iBAAiB,EACjB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AC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC","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 { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { RegisteredServers } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { MicrosoftStorageSync } from \"../microsoftStorageSync.js\";\nimport { PollerLike, PollOperationState, LroEngine } from \"@azure/core-lro\";\nimport { LroImpl } from \"../lroImpl.js\";\nimport {\n RegisteredServer,\n RegisteredServersListByStorageSyncServiceOptionalParams,\n RegisteredServersListByStorageSyncServiceResponse,\n RegisteredServersGetOptionalParams,\n RegisteredServersGetResponse,\n RegisteredServerCreateParameters,\n RegisteredServersCreateOptionalParams,\n RegisteredServersCreateResponse,\n RegisteredServersDeleteOptionalParams,\n RegisteredServersDeleteResponse,\n TriggerRolloverRequest,\n RegisteredServersTriggerRolloverOptionalParams,\n RegisteredServersTriggerRolloverResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing RegisteredServers operations. */\nexport class RegisteredServersImpl implements RegisteredServers {\n private readonly client: MicrosoftStorageSync;\n\n /**\n * Initialize a new instance of the class RegisteredServers class.\n * @param client Reference to the service client\n */\n constructor(client: MicrosoftStorageSync) {\n this.client = client;\n }\n\n /**\n * Get a given registered server list.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param options The options parameters.\n */\n public listByStorageSyncService(\n resourceGroupName: string,\n storageSyncServiceName: string,\n options?: RegisteredServersListByStorageSyncServiceOptionalParams\n ): PagedAsyncIterableIterator<RegisteredServer> {\n const iter = this.listByStorageSyncServicePagingAll(\n resourceGroupName,\n storageSyncServiceName,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByStorageSyncServicePagingPage(\n resourceGroupName,\n storageSyncServiceName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByStorageSyncServicePagingPage(\n resourceGroupName: string,\n storageSyncServiceName: string,\n options?: RegisteredServersListByStorageSyncServiceOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<RegisteredServer[]> {\n let result: RegisteredServersListByStorageSyncServiceResponse;\n result = await this._listByStorageSyncService(\n resourceGroupName,\n storageSyncServiceName,\n options\n );\n yield result.value || [];\n }\n\n private async *listByStorageSyncServicePagingAll(\n resourceGroupName: string,\n storageSyncServiceName: string,\n options?: RegisteredServersListByStorageSyncServiceOptionalParams\n ): AsyncIterableIterator<RegisteredServer> {\n for await (const page of this.listByStorageSyncServicePagingPage(\n resourceGroupName,\n storageSyncServiceName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Get a given registered server list.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param options The options parameters.\n */\n private _listByStorageSyncService(\n resourceGroupName: string,\n storageSyncServiceName: string,\n options?: RegisteredServersListByStorageSyncServiceOptionalParams\n ): Promise<RegisteredServersListByStorageSyncServiceResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, storageSyncServiceName, options },\n listByStorageSyncServiceOperationSpec\n );\n }\n\n /**\n * Get a given registered server.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param serverId GUID identifying the on-premises server.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n storageSyncServiceName: string,\n serverId: string,\n options?: RegisteredServersGetOptionalParams\n ): Promise<RegisteredServersGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, storageSyncServiceName, serverId, options },\n getOperationSpec\n );\n }\n\n /**\n * Add a new registered server.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param serverId GUID identifying the on-premises server.\n * @param parameters Body of Registered Server object.\n * @param options The options parameters.\n */\n async beginCreate(\n resourceGroupName: string,\n storageSyncServiceName: string,\n serverId: string,\n parameters: RegisteredServerCreateParameters,\n options?: RegisteredServersCreateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<RegisteredServersCreateResponse>,\n RegisteredServersCreateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<RegisteredServersCreateResponse> => {\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 LroImpl(\n sendOperation,\n {\n resourceGroupName,\n storageSyncServiceName,\n serverId,\n parameters,\n options\n },\n createOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Add a new registered server.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param serverId GUID identifying the on-premises server.\n * @param parameters Body of Registered Server object.\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n resourceGroupName: string,\n storageSyncServiceName: string,\n serverId: string,\n parameters: RegisteredServerCreateParameters,\n options?: RegisteredServersCreateOptionalParams\n ): Promise<RegisteredServersCreateResponse> {\n const poller = await this.beginCreate(\n resourceGroupName,\n storageSyncServiceName,\n serverId,\n parameters,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Delete the given registered server.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param serverId GUID identifying the on-premises server.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n storageSyncServiceName: string,\n serverId: string,\n options?: RegisteredServersDeleteOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<RegisteredServersDeleteResponse>,\n RegisteredServersDeleteResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<RegisteredServersDeleteResponse> => {\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 LroImpl(\n sendOperation,\n { resourceGroupName, storageSyncServiceName, serverId, options },\n deleteOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Delete the given registered server.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param serverId GUID identifying the on-premises server.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n storageSyncServiceName: string,\n serverId: string,\n options?: RegisteredServersDeleteOptionalParams\n ): Promise<RegisteredServersDeleteResponse> {\n const poller = await this.beginDelete(\n resourceGroupName,\n storageSyncServiceName,\n serverId,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Triggers Server certificate rollover.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param serverId Server Id\n * @param parameters Body of Trigger Rollover request.\n * @param options The options parameters.\n */\n async beginTriggerRollover(\n resourceGroupName: string,\n storageSyncServiceName: string,\n serverId: string,\n parameters: TriggerRolloverRequest,\n options?: RegisteredServersTriggerRolloverOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<RegisteredServersTriggerRolloverResponse>,\n RegisteredServersTriggerRolloverResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<RegisteredServersTriggerRolloverResponse> => {\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 LroImpl(\n sendOperation,\n {\n resourceGroupName,\n storageSyncServiceName,\n serverId,\n parameters,\n options\n },\n triggerRolloverOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Triggers Server certificate rollover.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param serverId Server Id\n * @param parameters Body of Trigger Rollover request.\n * @param options The options parameters.\n */\n async beginTriggerRolloverAndWait(\n resourceGroupName: string,\n storageSyncServiceName: string,\n serverId: string,\n parameters: TriggerRolloverRequest,\n options?: RegisteredServersTriggerRolloverOptionalParams\n ): Promise<RegisteredServersTriggerRolloverResponse> {\n const poller = await this.beginTriggerRollover(\n resourceGroupName,\n storageSyncServiceName,\n serverId,\n parameters,\n options\n );\n return poller.pollUntilDone();\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByStorageSyncServiceOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/registeredServers\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RegisteredServerArray,\n headersMapper: Mappers.RegisteredServersListByStorageSyncServiceHeaders\n },\n default: {\n bodyMapper: Mappers.StorageSyncError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.storageSyncServiceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/registeredServers/{serverId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RegisteredServer,\n headersMapper: Mappers.RegisteredServersGetHeaders\n },\n default: {\n bodyMapper: Mappers.StorageSyncError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.storageSyncServiceName,\n Parameters.serverId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/registeredServers/{serverId}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.RegisteredServer,\n headersMapper: Mappers.RegisteredServersCreateHeaders\n },\n 201: {\n bodyMapper: Mappers.RegisteredServer,\n headersMapper: Mappers.RegisteredServersCreateHeaders\n },\n 202: {\n bodyMapper: Mappers.RegisteredServer,\n headersMapper: Mappers.RegisteredServersCreateHeaders\n },\n 204: {\n bodyMapper: Mappers.RegisteredServer,\n headersMapper: Mappers.RegisteredServersCreateHeaders\n },\n default: {\n bodyMapper: Mappers.StorageSyncError\n }\n },\n requestBody: Parameters.parameters12,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.storageSyncServiceName,\n Parameters.serverId\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/registeredServers/{serverId}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n headersMapper: Mappers.RegisteredServersDeleteHeaders\n },\n 201: {\n headersMapper: Mappers.RegisteredServersDeleteHeaders\n },\n 202: {\n headersMapper: Mappers.RegisteredServersDeleteHeaders\n },\n 204: {\n headersMapper: Mappers.RegisteredServersDeleteHeaders\n },\n default: {\n bodyMapper: Mappers.StorageSyncError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.storageSyncServiceName,\n Parameters.serverId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst triggerRolloverOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/registeredServers/{serverId}/triggerRollover\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n headersMapper: Mappers.RegisteredServersTriggerRolloverHeaders\n },\n 201: {\n headersMapper: Mappers.RegisteredServersTriggerRolloverHeaders\n },\n 202: {\n headersMapper: Mappers.RegisteredServersTriggerRolloverHeaders\n },\n 204: {\n headersMapper: Mappers.RegisteredServersTriggerRolloverHeaders\n },\n default: {\n bodyMapper: Mappers.StorageSyncError\n }\n },\n requestBody: Parameters.parameters13,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.storageSyncServiceName,\n Parameters.serverId\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\n"]}
|
1
|
+
{"version":3,"file":"registeredServers.js","sourceRoot":"","sources":["../../../src/operations/registeredServers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAAkC,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC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E;YACH,aAAa,EAAE,OAAO,CAAC,uCAAuC;SAC/D;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;KACF;IACD,WAAW,EAAE,UAAU,CAAC,YAAY;IACpC,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,sBAAsB;QACjC,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC","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 { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { RegisteredServers } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { MicrosoftStorageSync } from \"../microsoftStorageSync.js\";\nimport { PollerLike, PollOperationState, LroEngine } from \"@azure/core-lro\";\nimport { LroImpl } from \"../lroImpl.js\";\nimport {\n RegisteredServer,\n RegisteredServersListByStorageSyncServiceOptionalParams,\n RegisteredServersListByStorageSyncServiceResponse,\n RegisteredServersGetOptionalParams,\n RegisteredServersGetResponse,\n RegisteredServerCreateParameters,\n RegisteredServersCreateOptionalParams,\n RegisteredServersCreateResponse,\n RegisteredServersDeleteOptionalParams,\n RegisteredServersDeleteResponse,\n TriggerRolloverRequest,\n RegisteredServersTriggerRolloverOptionalParams,\n RegisteredServersTriggerRolloverResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing RegisteredServers operations. */\nexport class RegisteredServersImpl implements RegisteredServers {\n private readonly client: MicrosoftStorageSync;\n\n /**\n * Initialize a new instance of the class RegisteredServers class.\n * @param client Reference to the service client\n */\n constructor(client: MicrosoftStorageSync) {\n this.client = client;\n }\n\n /**\n * Get a given registered server list.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param options The options parameters.\n */\n public listByStorageSyncService(\n resourceGroupName: string,\n storageSyncServiceName: string,\n options?: RegisteredServersListByStorageSyncServiceOptionalParams\n ): PagedAsyncIterableIterator<RegisteredServer> {\n const iter = this.listByStorageSyncServicePagingAll(\n resourceGroupName,\n storageSyncServiceName,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByStorageSyncServicePagingPage(\n resourceGroupName,\n storageSyncServiceName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByStorageSyncServicePagingPage(\n resourceGroupName: string,\n storageSyncServiceName: string,\n options?: RegisteredServersListByStorageSyncServiceOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<RegisteredServer[]> {\n let result: RegisteredServersListByStorageSyncServiceResponse;\n result = await this._listByStorageSyncService(\n resourceGroupName,\n storageSyncServiceName,\n options\n );\n yield result.value || [];\n }\n\n private async *listByStorageSyncServicePagingAll(\n resourceGroupName: string,\n storageSyncServiceName: string,\n options?: RegisteredServersListByStorageSyncServiceOptionalParams\n ): AsyncIterableIterator<RegisteredServer> {\n for await (const page of this.listByStorageSyncServicePagingPage(\n resourceGroupName,\n storageSyncServiceName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Get a given registered server list.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param options The options parameters.\n */\n private _listByStorageSyncService(\n resourceGroupName: string,\n storageSyncServiceName: string,\n options?: RegisteredServersListByStorageSyncServiceOptionalParams\n ): Promise<RegisteredServersListByStorageSyncServiceResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, storageSyncServiceName, options },\n listByStorageSyncServiceOperationSpec\n );\n }\n\n /**\n * Get a given registered server.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param serverId GUID identifying the on-premises server.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n storageSyncServiceName: string,\n serverId: string,\n options?: RegisteredServersGetOptionalParams\n ): Promise<RegisteredServersGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, storageSyncServiceName, serverId, options },\n getOperationSpec\n );\n }\n\n /**\n * Add a new registered server.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param serverId GUID identifying the on-premises server.\n * @param parameters Body of Registered Server object.\n * @param options The options parameters.\n */\n async beginCreate(\n resourceGroupName: string,\n storageSyncServiceName: string,\n serverId: string,\n parameters: RegisteredServerCreateParameters,\n options?: RegisteredServersCreateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<RegisteredServersCreateResponse>,\n RegisteredServersCreateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<RegisteredServersCreateResponse> => {\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 LroImpl(\n sendOperation,\n {\n resourceGroupName,\n storageSyncServiceName,\n serverId,\n parameters,\n options\n },\n createOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Add a new registered server.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param serverId GUID identifying the on-premises server.\n * @param parameters Body of Registered Server object.\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n resourceGroupName: string,\n storageSyncServiceName: string,\n serverId: string,\n parameters: RegisteredServerCreateParameters,\n options?: RegisteredServersCreateOptionalParams\n ): Promise<RegisteredServersCreateResponse> {\n const poller = await this.beginCreate(\n resourceGroupName,\n storageSyncServiceName,\n serverId,\n parameters,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Delete the given registered server.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param serverId GUID identifying the on-premises server.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n storageSyncServiceName: string,\n serverId: string,\n options?: RegisteredServersDeleteOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<RegisteredServersDeleteResponse>,\n RegisteredServersDeleteResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<RegisteredServersDeleteResponse> => {\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 LroImpl(\n sendOperation,\n { resourceGroupName, storageSyncServiceName, serverId, options },\n deleteOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Delete the given registered server.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param serverId GUID identifying the on-premises server.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n storageSyncServiceName: string,\n serverId: string,\n options?: RegisteredServersDeleteOptionalParams\n ): Promise<RegisteredServersDeleteResponse> {\n const poller = await this.beginDelete(\n resourceGroupName,\n storageSyncServiceName,\n serverId,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Triggers Server certificate rollover.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param serverId Server Id\n * @param parameters Body of Trigger Rollover request.\n * @param options The options parameters.\n */\n async beginTriggerRollover(\n resourceGroupName: string,\n storageSyncServiceName: string,\n serverId: string,\n parameters: TriggerRolloverRequest,\n options?: RegisteredServersTriggerRolloverOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<RegisteredServersTriggerRolloverResponse>,\n RegisteredServersTriggerRolloverResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<RegisteredServersTriggerRolloverResponse> => {\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 LroImpl(\n sendOperation,\n {\n resourceGroupName,\n storageSyncServiceName,\n serverId,\n parameters,\n options\n },\n triggerRolloverOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Triggers Server certificate rollover.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param serverId Server Id\n * @param parameters Body of Trigger Rollover request.\n * @param options The options parameters.\n */\n async beginTriggerRolloverAndWait(\n resourceGroupName: string,\n storageSyncServiceName: string,\n serverId: string,\n parameters: TriggerRolloverRequest,\n options?: RegisteredServersTriggerRolloverOptionalParams\n ): Promise<RegisteredServersTriggerRolloverResponse> {\n const poller = await this.beginTriggerRollover(\n resourceGroupName,\n storageSyncServiceName,\n serverId,\n parameters,\n options\n );\n return poller.pollUntilDone();\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByStorageSyncServiceOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/registeredServers\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RegisteredServerArray,\n headersMapper: Mappers.RegisteredServersListByStorageSyncServiceHeaders\n },\n default: {\n bodyMapper: Mappers.StorageSyncError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.storageSyncServiceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/registeredServers/{serverId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RegisteredServer,\n headersMapper: Mappers.RegisteredServersGetHeaders\n },\n default: {\n bodyMapper: Mappers.StorageSyncError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.storageSyncServiceName,\n Parameters.serverId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/registeredServers/{serverId}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.RegisteredServer,\n headersMapper: Mappers.RegisteredServersCreateHeaders\n },\n 201: {\n bodyMapper: Mappers.RegisteredServer,\n headersMapper: Mappers.RegisteredServersCreateHeaders\n },\n 202: {\n bodyMapper: Mappers.RegisteredServer,\n headersMapper: Mappers.RegisteredServersCreateHeaders\n },\n 204: {\n bodyMapper: Mappers.RegisteredServer,\n headersMapper: Mappers.RegisteredServersCreateHeaders\n },\n default: {\n bodyMapper: Mappers.StorageSyncError\n }\n },\n requestBody: Parameters.parameters12,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.storageSyncServiceName,\n Parameters.serverId\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/registeredServers/{serverId}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n headersMapper: Mappers.RegisteredServersDeleteHeaders\n },\n 201: {\n headersMapper: Mappers.RegisteredServersDeleteHeaders\n },\n 202: {\n headersMapper: Mappers.RegisteredServersDeleteHeaders\n },\n 204: {\n headersMapper: Mappers.RegisteredServersDeleteHeaders\n },\n default: {\n bodyMapper: Mappers.StorageSyncError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.storageSyncServiceName,\n Parameters.serverId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst triggerRolloverOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/registeredServers/{serverId}/triggerRollover\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n headersMapper: Mappers.RegisteredServersTriggerRolloverHeaders\n },\n 201: {\n headersMapper: Mappers.RegisteredServersTriggerRolloverHeaders\n },\n 202: {\n headersMapper: Mappers.RegisteredServersTriggerRolloverHeaders\n },\n 204: {\n headersMapper: Mappers.RegisteredServersTriggerRolloverHeaders\n },\n default: {\n bodyMapper: Mappers.StorageSyncError\n }\n },\n requestBody: Parameters.parameters13,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.storageSyncServiceName,\n Parameters.serverId\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\n"]}
|
@@ -5,7 +5,6 @@
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
7
|
*/
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
9
8
|
import * as coreClient from "@azure/core-client";
|
10
9
|
import * as Mappers from "../models/mappers.js";
|
11
10
|
import * as Parameters from "../models/parameters.js";
|
@@ -14,6 +13,7 @@ import { LroImpl } from "../lroImpl.js";
|
|
14
13
|
/// <reference lib="esnext.asynciterable" />
|
15
14
|
/** Class containing ServerEndpoints operations. */
|
16
15
|
export class ServerEndpointsImpl {
|
16
|
+
client;
|
17
17
|
/**
|
18
18
|
* Initialize a new instance of the class ServerEndpoints class.
|
19
19
|
* @param client Reference to the service client
|
@@ -38,39 +38,22 @@ export class ServerEndpointsImpl {
|
|
38
38
|
return this;
|
39
39
|
},
|
40
40
|
byPage: (settings) => {
|
41
|
-
if (settings
|
41
|
+
if (settings?.maxPageSize) {
|
42
42
|
throw new Error("maxPageSize is not supported by this operation.");
|
43
43
|
}
|
44
44
|
return this.listBySyncGroupPagingPage(resourceGroupName, storageSyncServiceName, syncGroupName, options, settings);
|
45
45
|
}
|
46
46
|
};
|
47
47
|
}
|
48
|
-
listBySyncGroupPagingPage(resourceGroupName, storageSyncServiceName, syncGroupName, options, _settings) {
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
yield yield __await(result.value || []);
|
53
|
-
});
|
48
|
+
async *listBySyncGroupPagingPage(resourceGroupName, storageSyncServiceName, syncGroupName, options, _settings) {
|
49
|
+
let result;
|
50
|
+
result = await this._listBySyncGroup(resourceGroupName, storageSyncServiceName, syncGroupName, options);
|
51
|
+
yield result.value || [];
|
54
52
|
}
|
55
|
-
listBySyncGroupPagingAll(resourceGroupName, storageSyncServiceName, syncGroupName, options) {
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
for (var _d = true, _e = __asyncValues(this.listBySyncGroupPagingPage(resourceGroupName, storageSyncServiceName, syncGroupName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
60
|
-
_c = _f.value;
|
61
|
-
_d = false;
|
62
|
-
const page = _c;
|
63
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
64
|
-
}
|
65
|
-
}
|
66
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
67
|
-
finally {
|
68
|
-
try {
|
69
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
70
|
-
}
|
71
|
-
finally { if (e_1) throw e_1.error; }
|
72
|
-
}
|
73
|
-
});
|
53
|
+
async *listBySyncGroupPagingAll(resourceGroupName, storageSyncServiceName, syncGroupName, options) {
|
54
|
+
for await (const page of this.listBySyncGroupPagingPage(resourceGroupName, storageSyncServiceName, syncGroupName, options)) {
|
55
|
+
yield* page;
|
56
|
+
}
|
74
57
|
}
|
75
58
|
/**
|
76
59
|
* Create a new ServerEndpoint.
|
@@ -86,14 +69,19 @@ export class ServerEndpointsImpl {
|
|
86
69
|
return this.client.sendOperationRequest(args, spec);
|
87
70
|
};
|
88
71
|
const sendOperation = async (args, spec) => {
|
89
|
-
var _a;
|
90
72
|
let currentRawResponse = undefined;
|
91
|
-
const providedCallback =
|
73
|
+
const providedCallback = args.options?.onResponse;
|
92
74
|
const callback = (rawResponse, flatResponse) => {
|
93
75
|
currentRawResponse = rawResponse;
|
94
|
-
providedCallback
|
76
|
+
providedCallback?.(rawResponse, flatResponse);
|
77
|
+
};
|
78
|
+
const updatedArgs = {
|
79
|
+
...args,
|
80
|
+
options: {
|
81
|
+
...args.options,
|
82
|
+
onResponse: callback
|
83
|
+
}
|
95
84
|
};
|
96
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
97
85
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
98
86
|
return {
|
99
87
|
flatResponse,
|
@@ -113,8 +101,8 @@ export class ServerEndpointsImpl {
|
|
113
101
|
options
|
114
102
|
}, createOperationSpec);
|
115
103
|
const poller = new LroEngine(lro, {
|
116
|
-
resumeFrom: options
|
117
|
-
intervalInMs: options
|
104
|
+
resumeFrom: options?.resumeFrom,
|
105
|
+
intervalInMs: options?.updateIntervalInMs
|
118
106
|
});
|
119
107
|
await poller.poll();
|
120
108
|
return poller;
|
@@ -145,14 +133,19 @@ export class ServerEndpointsImpl {
|
|
145
133
|
return this.client.sendOperationRequest(args, spec);
|
146
134
|
};
|
147
135
|
const sendOperation = async (args, spec) => {
|
148
|
-
var _a;
|
149
136
|
let currentRawResponse = undefined;
|
150
|
-
const providedCallback =
|
137
|
+
const providedCallback = args.options?.onResponse;
|
151
138
|
const callback = (rawResponse, flatResponse) => {
|
152
139
|
currentRawResponse = rawResponse;
|
153
|
-
providedCallback
|
140
|
+
providedCallback?.(rawResponse, flatResponse);
|
141
|
+
};
|
142
|
+
const updatedArgs = {
|
143
|
+
...args,
|
144
|
+
options: {
|
145
|
+
...args.options,
|
146
|
+
onResponse: callback
|
147
|
+
}
|
154
148
|
};
|
155
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
156
149
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
157
150
|
return {
|
158
151
|
flatResponse,
|
@@ -171,8 +164,8 @@ export class ServerEndpointsImpl {
|
|
171
164
|
options
|
172
165
|
}, updateOperationSpec);
|
173
166
|
const poller = new LroEngine(lro, {
|
174
|
-
resumeFrom: options
|
175
|
-
intervalInMs: options
|
167
|
+
resumeFrom: options?.resumeFrom,
|
168
|
+
intervalInMs: options?.updateIntervalInMs
|
176
169
|
});
|
177
170
|
await poller.poll();
|
178
171
|
return poller;
|
@@ -219,14 +212,19 @@ export class ServerEndpointsImpl {
|
|
219
212
|
return this.client.sendOperationRequest(args, spec);
|
220
213
|
};
|
221
214
|
const sendOperation = async (args, spec) => {
|
222
|
-
var _a;
|
223
215
|
let currentRawResponse = undefined;
|
224
|
-
const providedCallback =
|
216
|
+
const providedCallback = args.options?.onResponse;
|
225
217
|
const callback = (rawResponse, flatResponse) => {
|
226
218
|
currentRawResponse = rawResponse;
|
227
|
-
providedCallback
|
219
|
+
providedCallback?.(rawResponse, flatResponse);
|
220
|
+
};
|
221
|
+
const updatedArgs = {
|
222
|
+
...args,
|
223
|
+
options: {
|
224
|
+
...args.options,
|
225
|
+
onResponse: callback
|
226
|
+
}
|
228
227
|
};
|
229
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
230
228
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
231
229
|
return {
|
232
230
|
flatResponse,
|
@@ -245,8 +243,8 @@ export class ServerEndpointsImpl {
|
|
245
243
|
options
|
246
244
|
}, deleteOperationSpec);
|
247
245
|
const poller = new LroEngine(lro, {
|
248
|
-
resumeFrom: options
|
249
|
-
intervalInMs: options
|
246
|
+
resumeFrom: options?.resumeFrom,
|
247
|
+
intervalInMs: options?.updateIntervalInMs
|
250
248
|
});
|
251
249
|
await poller.poll();
|
252
250
|
return poller;
|
@@ -287,14 +285,19 @@ export class ServerEndpointsImpl {
|
|
287
285
|
return this.client.sendOperationRequest(args, spec);
|
288
286
|
};
|
289
287
|
const sendOperation = async (args, spec) => {
|
290
|
-
var _a;
|
291
288
|
let currentRawResponse = undefined;
|
292
|
-
const providedCallback =
|
289
|
+
const providedCallback = args.options?.onResponse;
|
293
290
|
const callback = (rawResponse, flatResponse) => {
|
294
291
|
currentRawResponse = rawResponse;
|
295
|
-
providedCallback
|
292
|
+
providedCallback?.(rawResponse, flatResponse);
|
293
|
+
};
|
294
|
+
const updatedArgs = {
|
295
|
+
...args,
|
296
|
+
options: {
|
297
|
+
...args.options,
|
298
|
+
onResponse: callback
|
299
|
+
}
|
296
300
|
};
|
297
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
298
301
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
299
302
|
return {
|
300
303
|
flatResponse,
|
@@ -314,8 +317,8 @@ export class ServerEndpointsImpl {
|
|
314
317
|
options
|
315
318
|
}, recallActionOperationSpec);
|
316
319
|
const poller = new LroEngine(lro, {
|
317
|
-
resumeFrom: options
|
318
|
-
intervalInMs: options
|
320
|
+
resumeFrom: options?.resumeFrom,
|
321
|
+
intervalInMs: options?.updateIntervalInMs
|
319
322
|
});
|
320
323
|
await poller.poll();
|
321
324
|
return poller;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"serverEndpoints.js","sourceRoot":"","sources":["../../../src/operations/serverEndpoints.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAAkC,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAmBxC,4CAA4C;AAC5C,mDAAmD;AACnD,MAAM,OAAO,mBAAmB;IAG9B;;;OAGG;IACH,YAAY,MAA4B;QACtC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,eAAe,CACpB,iBAAyB,EACzB,sBAA8B,EAC9B,aAAqB,EACrB,OAAsD;QAEtD,MAAM,IAAI,GAAG,IAAI,CAAC,wBAAwB,CACxC,iBAAiB,EACjB,sBAAsB,EACtB,aAAa,EACb,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAA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,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,sBAAsB;QACjC,UAAU,CAAC,aAAa;KACzB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,yBAAyB,GAA6B;IAC1D,IAAI,EACF,8NAA8N;IAChO,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,aAAa,EAAE,OAAO,CAAC,kCAAkC;SAC1D;QACD,GAAG,EAAE;YACH,aAAa,EAAE,OAAO,CAAC,kCAAkC;SAC1D;QACD,GAAG,EAAE;YACH,aAAa,EAAE,OAAO,CAAC,kCAAkC;SAC1D;QACD,GAAG,EAAE;YACH,aAAa,EAAE,OAAO,CAAC,kCAAkC;SAC1D;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;KACF;IACD,WAAW,EAAE,UAAU,CAAC,YAAY;IACpC,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,sBAAsB;QACjC,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,kBAAkB;KAC9B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC","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 { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { ServerEndpoints } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { MicrosoftStorageSync } from \"../microsoftStorageSync.js\";\nimport { PollerLike, PollOperationState, LroEngine } from \"@azure/core-lro\";\nimport { LroImpl } from \"../lroImpl.js\";\nimport {\n ServerEndpoint,\n ServerEndpointsListBySyncGroupOptionalParams,\n ServerEndpointsListBySyncGroupResponse,\n ServerEndpointCreateParameters,\n ServerEndpointsCreateOptionalParams,\n ServerEndpointsCreateResponse,\n ServerEndpointsUpdateOptionalParams,\n ServerEndpointsUpdateResponse,\n ServerEndpointsGetOptionalParams,\n ServerEndpointsGetResponse,\n ServerEndpointsDeleteOptionalParams,\n ServerEndpointsDeleteResponse,\n RecallActionParameters,\n ServerEndpointsRecallActionOptionalParams,\n ServerEndpointsRecallActionResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ServerEndpoints operations. */\nexport class ServerEndpointsImpl implements ServerEndpoints {\n private readonly client: MicrosoftStorageSync;\n\n /**\n * Initialize a new instance of the class ServerEndpoints class.\n * @param client Reference to the service client\n */\n constructor(client: MicrosoftStorageSync) {\n this.client = client;\n }\n\n /**\n * Get a ServerEndpoint list.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param syncGroupName Name of Sync Group resource.\n * @param options The options parameters.\n */\n public listBySyncGroup(\n resourceGroupName: string,\n storageSyncServiceName: string,\n syncGroupName: string,\n options?: ServerEndpointsListBySyncGroupOptionalParams\n ): PagedAsyncIterableIterator<ServerEndpoint> {\n const iter = this.listBySyncGroupPagingAll(\n resourceGroupName,\n storageSyncServiceName,\n syncGroupName,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listBySyncGroupPagingPage(\n resourceGroupName,\n storageSyncServiceName,\n syncGroupName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listBySyncGroupPagingPage(\n resourceGroupName: string,\n storageSyncServiceName: string,\n syncGroupName: string,\n options?: ServerEndpointsListBySyncGroupOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<ServerEndpoint[]> {\n let result: ServerEndpointsListBySyncGroupResponse;\n result = await this._listBySyncGroup(\n resourceGroupName,\n storageSyncServiceName,\n syncGroupName,\n options\n );\n yield result.value || [];\n }\n\n private async *listBySyncGroupPagingAll(\n resourceGroupName: string,\n storageSyncServiceName: string,\n syncGroupName: string,\n options?: ServerEndpointsListBySyncGroupOptionalParams\n ): AsyncIterableIterator<ServerEndpoint> {\n for await (const page of this.listBySyncGroupPagingPage(\n resourceGroupName,\n storageSyncServiceName,\n syncGroupName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Create a new ServerEndpoint.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param syncGroupName Name of Sync Group resource.\n * @param serverEndpointName Name of Server Endpoint object.\n * @param parameters Body of Server Endpoint object.\n * @param options The options parameters.\n */\n async beginCreate(\n resourceGroupName: string,\n storageSyncServiceName: string,\n syncGroupName: string,\n serverEndpointName: string,\n parameters: ServerEndpointCreateParameters,\n options?: ServerEndpointsCreateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<ServerEndpointsCreateResponse>,\n ServerEndpointsCreateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<ServerEndpointsCreateResponse> => {\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 LroImpl(\n sendOperation,\n {\n resourceGroupName,\n storageSyncServiceName,\n syncGroupName,\n serverEndpointName,\n parameters,\n options\n },\n createOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Create a new ServerEndpoint.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param syncGroupName Name of Sync Group resource.\n * @param serverEndpointName Name of Server Endpoint object.\n * @param parameters Body of Server Endpoint object.\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n resourceGroupName: string,\n storageSyncServiceName: string,\n syncGroupName: string,\n serverEndpointName: string,\n parameters: ServerEndpointCreateParameters,\n options?: ServerEndpointsCreateOptionalParams\n ): Promise<ServerEndpointsCreateResponse> {\n const poller = await this.beginCreate(\n resourceGroupName,\n storageSyncServiceName,\n syncGroupName,\n serverEndpointName,\n parameters,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Patch a given ServerEndpoint.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param syncGroupName Name of Sync Group resource.\n * @param serverEndpointName Name of Server Endpoint object.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n storageSyncServiceName: string,\n syncGroupName: string,\n serverEndpointName: string,\n options?: ServerEndpointsUpdateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<ServerEndpointsUpdateResponse>,\n ServerEndpointsUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<ServerEndpointsUpdateResponse> => {\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 LroImpl(\n sendOperation,\n {\n resourceGroupName,\n storageSyncServiceName,\n syncGroupName,\n serverEndpointName,\n options\n },\n updateOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Patch a given ServerEndpoint.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param syncGroupName Name of Sync Group resource.\n * @param serverEndpointName Name of Server Endpoint object.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n storageSyncServiceName: string,\n syncGroupName: string,\n serverEndpointName: string,\n options?: ServerEndpointsUpdateOptionalParams\n ): Promise<ServerEndpointsUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n storageSyncServiceName,\n syncGroupName,\n serverEndpointName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Get a ServerEndpoint.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param syncGroupName Name of Sync Group resource.\n * @param serverEndpointName Name of Server Endpoint object.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n storageSyncServiceName: string,\n syncGroupName: string,\n serverEndpointName: string,\n options?: ServerEndpointsGetOptionalParams\n ): Promise<ServerEndpointsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n storageSyncServiceName,\n syncGroupName,\n serverEndpointName,\n options\n },\n getOperationSpec\n );\n }\n\n /**\n * Delete a given ServerEndpoint.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param syncGroupName Name of Sync Group resource.\n * @param serverEndpointName Name of Server Endpoint object.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n storageSyncServiceName: string,\n syncGroupName: string,\n serverEndpointName: string,\n options?: ServerEndpointsDeleteOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<ServerEndpointsDeleteResponse>,\n ServerEndpointsDeleteResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<ServerEndpointsDeleteResponse> => {\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 LroImpl(\n sendOperation,\n {\n resourceGroupName,\n storageSyncServiceName,\n syncGroupName,\n serverEndpointName,\n options\n },\n deleteOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Delete a given ServerEndpoint.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param syncGroupName Name of Sync Group resource.\n * @param serverEndpointName Name of Server Endpoint object.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n storageSyncServiceName: string,\n syncGroupName: string,\n serverEndpointName: string,\n options?: ServerEndpointsDeleteOptionalParams\n ): Promise<ServerEndpointsDeleteResponse> {\n const poller = await this.beginDelete(\n resourceGroupName,\n storageSyncServiceName,\n syncGroupName,\n serverEndpointName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Get a ServerEndpoint list.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param syncGroupName Name of Sync Group resource.\n * @param options The options parameters.\n */\n private _listBySyncGroup(\n resourceGroupName: string,\n storageSyncServiceName: string,\n syncGroupName: string,\n options?: ServerEndpointsListBySyncGroupOptionalParams\n ): Promise<ServerEndpointsListBySyncGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, storageSyncServiceName, syncGroupName, options },\n listBySyncGroupOperationSpec\n );\n }\n\n /**\n * Recall a server endpoint.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param syncGroupName Name of Sync Group resource.\n * @param serverEndpointName Name of Server Endpoint object.\n * @param parameters Body of Recall Action object.\n * @param options The options parameters.\n */\n async beginRecallAction(\n resourceGroupName: string,\n storageSyncServiceName: string,\n syncGroupName: string,\n serverEndpointName: string,\n parameters: RecallActionParameters,\n options?: ServerEndpointsRecallActionOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<ServerEndpointsRecallActionResponse>,\n ServerEndpointsRecallActionResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<ServerEndpointsRecallActionResponse> => {\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 LroImpl(\n sendOperation,\n {\n resourceGroupName,\n storageSyncServiceName,\n syncGroupName,\n serverEndpointName,\n parameters,\n options\n },\n recallActionOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Recall a server endpoint.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param syncGroupName Name of Sync Group resource.\n * @param serverEndpointName Name of Server Endpoint object.\n * @param parameters Body of Recall Action object.\n * @param options The options parameters.\n */\n async beginRecallActionAndWait(\n resourceGroupName: string,\n storageSyncServiceName: string,\n syncGroupName: string,\n serverEndpointName: string,\n parameters: RecallActionParameters,\n options?: ServerEndpointsRecallActionOptionalParams\n ): Promise<ServerEndpointsRecallActionResponse> {\n const poller = await this.beginRecallAction(\n resourceGroupName,\n storageSyncServiceName,\n syncGroupName,\n serverEndpointName,\n parameters,\n options\n );\n return poller.pollUntilDone();\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/serverEndpoints/{serverEndpointName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ServerEndpoint,\n headersMapper: Mappers.ServerEndpointsCreateHeaders\n },\n 201: {\n bodyMapper: Mappers.ServerEndpoint,\n headersMapper: Mappers.ServerEndpointsCreateHeaders\n },\n 202: {\n bodyMapper: Mappers.ServerEndpoint,\n headersMapper: Mappers.ServerEndpointsCreateHeaders\n },\n 204: {\n bodyMapper: Mappers.ServerEndpoint,\n headersMapper: Mappers.ServerEndpointsCreateHeaders\n },\n default: {\n bodyMapper: Mappers.StorageSyncError\n }\n },\n requestBody: Parameters.parameters9,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.storageSyncServiceName,\n Parameters.syncGroupName,\n Parameters.serverEndpointName\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.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/serverEndpoints/{serverEndpointName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.ServerEndpoint,\n headersMapper: Mappers.ServerEndpointsUpdateHeaders\n },\n 201: {\n bodyMapper: Mappers.ServerEndpoint,\n headersMapper: Mappers.ServerEndpointsUpdateHeaders\n },\n 202: {\n bodyMapper: Mappers.ServerEndpoint,\n headersMapper: Mappers.ServerEndpointsUpdateHeaders\n },\n 204: {\n bodyMapper: Mappers.ServerEndpoint,\n headersMapper: Mappers.ServerEndpointsUpdateHeaders\n },\n default: {\n bodyMapper: Mappers.StorageSyncError\n }\n },\n requestBody: Parameters.parameters10,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.storageSyncServiceName,\n Parameters.syncGroupName,\n Parameters.serverEndpointName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/serverEndpoints/{serverEndpointName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ServerEndpoint,\n headersMapper: Mappers.ServerEndpointsGetHeaders\n },\n default: {\n bodyMapper: Mappers.StorageSyncError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.storageSyncServiceName,\n Parameters.syncGroupName,\n Parameters.serverEndpointName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/serverEndpoints/{serverEndpointName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n headersMapper: Mappers.ServerEndpointsDeleteHeaders\n },\n 201: {\n headersMapper: Mappers.ServerEndpointsDeleteHeaders\n },\n 202: {\n headersMapper: Mappers.ServerEndpointsDeleteHeaders\n },\n 204: {\n headersMapper: Mappers.ServerEndpointsDeleteHeaders\n },\n default: {\n bodyMapper: Mappers.StorageSyncError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.storageSyncServiceName,\n Parameters.syncGroupName,\n Parameters.serverEndpointName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listBySyncGroupOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/serverEndpoints\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ServerEndpointArray,\n headersMapper: Mappers.ServerEndpointsListBySyncGroupHeaders\n },\n default: {\n bodyMapper: Mappers.StorageSyncError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.storageSyncServiceName,\n Parameters.syncGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst recallActionOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/serverEndpoints/{serverEndpointName}/recallAction\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n headersMapper: Mappers.ServerEndpointsRecallActionHeaders\n },\n 201: {\n headersMapper: Mappers.ServerEndpointsRecallActionHeaders\n },\n 202: {\n headersMapper: Mappers.ServerEndpointsRecallActionHeaders\n },\n 204: {\n headersMapper: Mappers.ServerEndpointsRecallActionHeaders\n },\n default: {\n bodyMapper: Mappers.StorageSyncError\n }\n },\n requestBody: Parameters.parameters11,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.storageSyncServiceName,\n Parameters.syncGroupName,\n Parameters.serverEndpointName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\n"]}
|
1
|
+
{"version":3,"file":"serverEndpoints.js","sourceRoot":"","sources":["../../../src/operations/serverEndpoints.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAAkC,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAmBxC,4CAA4C;AAC5C,mDAAmD;AACnD,MAAM,OAAO,mBAAmB;IACb,MAAM,CAAuB;IAE9C;;;OAGG;IACH,YAAY,MAA4B;QACtC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,eAAe,CACpB,iBAAyB,EACzB,sBAA8B,EAC9B,aAAqB,EACrB,OAAsD;QAEtD,MAAM,IAAI,GAAG,IAAI,CAAC,wBAAwB,CACxC,iBAAiB,EACjB,sBAAsB,EACtB,aAAa,EACb,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,yBAAyB,CACnC,iBAAiB,EACjB,sBAAsB,EACtB,aAAa,EACb,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,CAAC,yBAAyB,CACtC,iBAAyB,EACzB,sBAA8B,EAC9B,aAAq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AU,CAAC,sBAAsB;QACjC,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,kBAAkB;KAC9B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC","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 { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { ServerEndpoints } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { MicrosoftStorageSync } from \"../microsoftStorageSync.js\";\nimport { PollerLike, PollOperationState, LroEngine } from \"@azure/core-lro\";\nimport { LroImpl } from \"../lroImpl.js\";\nimport {\n ServerEndpoint,\n ServerEndpointsListBySyncGroupOptionalParams,\n ServerEndpointsListBySyncGroupResponse,\n ServerEndpointCreateParameters,\n ServerEndpointsCreateOptionalParams,\n ServerEndpointsCreateResponse,\n ServerEndpointsUpdateOptionalParams,\n ServerEndpointsUpdateResponse,\n ServerEndpointsGetOptionalParams,\n ServerEndpointsGetResponse,\n ServerEndpointsDeleteOptionalParams,\n ServerEndpointsDeleteResponse,\n RecallActionParameters,\n ServerEndpointsRecallActionOptionalParams,\n ServerEndpointsRecallActionResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ServerEndpoints operations. */\nexport class ServerEndpointsImpl implements ServerEndpoints {\n private readonly client: MicrosoftStorageSync;\n\n /**\n * Initialize a new instance of the class ServerEndpoints class.\n * @param client Reference to the service client\n */\n constructor(client: MicrosoftStorageSync) {\n this.client = client;\n }\n\n /**\n * Get a ServerEndpoint list.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param syncGroupName Name of Sync Group resource.\n * @param options The options parameters.\n */\n public listBySyncGroup(\n resourceGroupName: string,\n storageSyncServiceName: string,\n syncGroupName: string,\n options?: ServerEndpointsListBySyncGroupOptionalParams\n ): PagedAsyncIterableIterator<ServerEndpoint> {\n const iter = this.listBySyncGroupPagingAll(\n resourceGroupName,\n storageSyncServiceName,\n syncGroupName,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listBySyncGroupPagingPage(\n resourceGroupName,\n storageSyncServiceName,\n syncGroupName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listBySyncGroupPagingPage(\n resourceGroupName: string,\n storageSyncServiceName: string,\n syncGroupName: string,\n options?: ServerEndpointsListBySyncGroupOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<ServerEndpoint[]> {\n let result: ServerEndpointsListBySyncGroupResponse;\n result = await this._listBySyncGroup(\n resourceGroupName,\n storageSyncServiceName,\n syncGroupName,\n options\n );\n yield result.value || [];\n }\n\n private async *listBySyncGroupPagingAll(\n resourceGroupName: string,\n storageSyncServiceName: string,\n syncGroupName: string,\n options?: ServerEndpointsListBySyncGroupOptionalParams\n ): AsyncIterableIterator<ServerEndpoint> {\n for await (const page of this.listBySyncGroupPagingPage(\n resourceGroupName,\n storageSyncServiceName,\n syncGroupName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Create a new ServerEndpoint.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param syncGroupName Name of Sync Group resource.\n * @param serverEndpointName Name of Server Endpoint object.\n * @param parameters Body of Server Endpoint object.\n * @param options The options parameters.\n */\n async beginCreate(\n resourceGroupName: string,\n storageSyncServiceName: string,\n syncGroupName: string,\n serverEndpointName: string,\n parameters: ServerEndpointCreateParameters,\n options?: ServerEndpointsCreateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<ServerEndpointsCreateResponse>,\n ServerEndpointsCreateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<ServerEndpointsCreateResponse> => {\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 LroImpl(\n sendOperation,\n {\n resourceGroupName,\n storageSyncServiceName,\n syncGroupName,\n serverEndpointName,\n parameters,\n options\n },\n createOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Create a new ServerEndpoint.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param syncGroupName Name of Sync Group resource.\n * @param serverEndpointName Name of Server Endpoint object.\n * @param parameters Body of Server Endpoint object.\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n resourceGroupName: string,\n storageSyncServiceName: string,\n syncGroupName: string,\n serverEndpointName: string,\n parameters: ServerEndpointCreateParameters,\n options?: ServerEndpointsCreateOptionalParams\n ): Promise<ServerEndpointsCreateResponse> {\n const poller = await this.beginCreate(\n resourceGroupName,\n storageSyncServiceName,\n syncGroupName,\n serverEndpointName,\n parameters,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Patch a given ServerEndpoint.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param syncGroupName Name of Sync Group resource.\n * @param serverEndpointName Name of Server Endpoint object.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n storageSyncServiceName: string,\n syncGroupName: string,\n serverEndpointName: string,\n options?: ServerEndpointsUpdateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<ServerEndpointsUpdateResponse>,\n ServerEndpointsUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<ServerEndpointsUpdateResponse> => {\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 LroImpl(\n sendOperation,\n {\n resourceGroupName,\n storageSyncServiceName,\n syncGroupName,\n serverEndpointName,\n options\n },\n updateOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Patch a given ServerEndpoint.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param syncGroupName Name of Sync Group resource.\n * @param serverEndpointName Name of Server Endpoint object.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n storageSyncServiceName: string,\n syncGroupName: string,\n serverEndpointName: string,\n options?: ServerEndpointsUpdateOptionalParams\n ): Promise<ServerEndpointsUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n storageSyncServiceName,\n syncGroupName,\n serverEndpointName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Get a ServerEndpoint.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param syncGroupName Name of Sync Group resource.\n * @param serverEndpointName Name of Server Endpoint object.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n storageSyncServiceName: string,\n syncGroupName: string,\n serverEndpointName: string,\n options?: ServerEndpointsGetOptionalParams\n ): Promise<ServerEndpointsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n storageSyncServiceName,\n syncGroupName,\n serverEndpointName,\n options\n },\n getOperationSpec\n );\n }\n\n /**\n * Delete a given ServerEndpoint.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param syncGroupName Name of Sync Group resource.\n * @param serverEndpointName Name of Server Endpoint object.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n storageSyncServiceName: string,\n syncGroupName: string,\n serverEndpointName: string,\n options?: ServerEndpointsDeleteOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<ServerEndpointsDeleteResponse>,\n ServerEndpointsDeleteResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<ServerEndpointsDeleteResponse> => {\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 LroImpl(\n sendOperation,\n {\n resourceGroupName,\n storageSyncServiceName,\n syncGroupName,\n serverEndpointName,\n options\n },\n deleteOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Delete a given ServerEndpoint.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param syncGroupName Name of Sync Group resource.\n * @param serverEndpointName Name of Server Endpoint object.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n storageSyncServiceName: string,\n syncGroupName: string,\n serverEndpointName: string,\n options?: ServerEndpointsDeleteOptionalParams\n ): Promise<ServerEndpointsDeleteResponse> {\n const poller = await this.beginDelete(\n resourceGroupName,\n storageSyncServiceName,\n syncGroupName,\n serverEndpointName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Get a ServerEndpoint list.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param syncGroupName Name of Sync Group resource.\n * @param options The options parameters.\n */\n private _listBySyncGroup(\n resourceGroupName: string,\n storageSyncServiceName: string,\n syncGroupName: string,\n options?: ServerEndpointsListBySyncGroupOptionalParams\n ): Promise<ServerEndpointsListBySyncGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, storageSyncServiceName, syncGroupName, options },\n listBySyncGroupOperationSpec\n );\n }\n\n /**\n * Recall a server endpoint.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param syncGroupName Name of Sync Group resource.\n * @param serverEndpointName Name of Server Endpoint object.\n * @param parameters Body of Recall Action object.\n * @param options The options parameters.\n */\n async beginRecallAction(\n resourceGroupName: string,\n storageSyncServiceName: string,\n syncGroupName: string,\n serverEndpointName: string,\n parameters: RecallActionParameters,\n options?: ServerEndpointsRecallActionOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<ServerEndpointsRecallActionResponse>,\n ServerEndpointsRecallActionResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<ServerEndpointsRecallActionResponse> => {\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 LroImpl(\n sendOperation,\n {\n resourceGroupName,\n storageSyncServiceName,\n syncGroupName,\n serverEndpointName,\n parameters,\n options\n },\n recallActionOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Recall a server endpoint.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param syncGroupName Name of Sync Group resource.\n * @param serverEndpointName Name of Server Endpoint object.\n * @param parameters Body of Recall Action object.\n * @param options The options parameters.\n */\n async beginRecallActionAndWait(\n resourceGroupName: string,\n storageSyncServiceName: string,\n syncGroupName: string,\n serverEndpointName: string,\n parameters: RecallActionParameters,\n options?: ServerEndpointsRecallActionOptionalParams\n ): Promise<ServerEndpointsRecallActionResponse> {\n const poller = await this.beginRecallAction(\n resourceGroupName,\n storageSyncServiceName,\n syncGroupName,\n serverEndpointName,\n parameters,\n options\n );\n return poller.pollUntilDone();\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/serverEndpoints/{serverEndpointName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ServerEndpoint,\n headersMapper: Mappers.ServerEndpointsCreateHeaders\n },\n 201: {\n bodyMapper: Mappers.ServerEndpoint,\n headersMapper: Mappers.ServerEndpointsCreateHeaders\n },\n 202: {\n bodyMapper: Mappers.ServerEndpoint,\n headersMapper: Mappers.ServerEndpointsCreateHeaders\n },\n 204: {\n bodyMapper: Mappers.ServerEndpoint,\n headersMapper: Mappers.ServerEndpointsCreateHeaders\n },\n default: {\n bodyMapper: Mappers.StorageSyncError\n }\n },\n requestBody: Parameters.parameters9,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.storageSyncServiceName,\n Parameters.syncGroupName,\n Parameters.serverEndpointName\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.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/serverEndpoints/{serverEndpointName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.ServerEndpoint,\n headersMapper: Mappers.ServerEndpointsUpdateHeaders\n },\n 201: {\n bodyMapper: Mappers.ServerEndpoint,\n headersMapper: Mappers.ServerEndpointsUpdateHeaders\n },\n 202: {\n bodyMapper: Mappers.ServerEndpoint,\n headersMapper: Mappers.ServerEndpointsUpdateHeaders\n },\n 204: {\n bodyMapper: Mappers.ServerEndpoint,\n headersMapper: Mappers.ServerEndpointsUpdateHeaders\n },\n default: {\n bodyMapper: Mappers.StorageSyncError\n }\n },\n requestBody: Parameters.parameters10,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.storageSyncServiceName,\n Parameters.syncGroupName,\n Parameters.serverEndpointName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/serverEndpoints/{serverEndpointName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ServerEndpoint,\n headersMapper: Mappers.ServerEndpointsGetHeaders\n },\n default: {\n bodyMapper: Mappers.StorageSyncError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.storageSyncServiceName,\n Parameters.syncGroupName,\n Parameters.serverEndpointName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/serverEndpoints/{serverEndpointName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n headersMapper: Mappers.ServerEndpointsDeleteHeaders\n },\n 201: {\n headersMapper: Mappers.ServerEndpointsDeleteHeaders\n },\n 202: {\n headersMapper: Mappers.ServerEndpointsDeleteHeaders\n },\n 204: {\n headersMapper: Mappers.ServerEndpointsDeleteHeaders\n },\n default: {\n bodyMapper: Mappers.StorageSyncError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.storageSyncServiceName,\n Parameters.syncGroupName,\n Parameters.serverEndpointName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listBySyncGroupOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/serverEndpoints\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ServerEndpointArray,\n headersMapper: Mappers.ServerEndpointsListBySyncGroupHeaders\n },\n default: {\n bodyMapper: Mappers.StorageSyncError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.storageSyncServiceName,\n Parameters.syncGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst recallActionOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/serverEndpoints/{serverEndpointName}/recallAction\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n headersMapper: Mappers.ServerEndpointsRecallActionHeaders\n },\n 201: {\n headersMapper: Mappers.ServerEndpointsRecallActionHeaders\n },\n 202: {\n headersMapper: Mappers.ServerEndpointsRecallActionHeaders\n },\n 204: {\n headersMapper: Mappers.ServerEndpointsRecallActionHeaders\n },\n default: {\n bodyMapper: Mappers.StorageSyncError\n }\n },\n requestBody: Parameters.parameters11,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.storageSyncServiceName,\n Parameters.syncGroupName,\n Parameters.serverEndpointName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\n"]}
|