@azure/arm-recoveryservices 6.0.1-alpha.20250619.1 → 6.1.0

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.
Files changed (73) hide show
  1. package/CHANGELOG.md +12 -9
  2. package/LICENSE +1 -1
  3. package/README.md +2 -2
  4. package/dist/browser/lroImpl.d.ts.map +1 -1
  5. package/dist/browser/lroImpl.js +7 -0
  6. package/dist/browser/lroImpl.js.map +1 -1
  7. package/dist/browser/models/index.d.ts +50 -0
  8. package/dist/browser/models/index.d.ts.map +1 -1
  9. package/dist/browser/models/index.js +18 -0
  10. package/dist/browser/models/index.js.map +1 -1
  11. package/dist/browser/models/mappers.d.ts +2 -0
  12. package/dist/browser/models/mappers.d.ts.map +1 -1
  13. package/dist/browser/models/mappers.js +48 -0
  14. package/dist/browser/models/mappers.js.map +1 -1
  15. package/dist/browser/models/parameters.js +1 -1
  16. package/dist/browser/models/parameters.js.map +1 -1
  17. package/dist/browser/operationsInterfaces/usages.d.ts.map +1 -1
  18. package/dist/browser/operationsInterfaces/usages.js.map +1 -1
  19. package/dist/browser/recoveryServicesClient.js +2 -2
  20. package/dist/browser/recoveryServicesClient.js.map +1 -1
  21. package/dist/commonjs/lroImpl.d.ts.map +1 -1
  22. package/dist/commonjs/lroImpl.js +7 -0
  23. package/dist/commonjs/lroImpl.js.map +1 -1
  24. package/dist/commonjs/models/index.d.ts +50 -0
  25. package/dist/commonjs/models/index.d.ts.map +1 -1
  26. package/dist/commonjs/models/index.js +19 -1
  27. package/dist/commonjs/models/index.js.map +1 -1
  28. package/dist/commonjs/models/mappers.d.ts +2 -0
  29. package/dist/commonjs/models/mappers.d.ts.map +1 -1
  30. package/dist/commonjs/models/mappers.js +50 -2
  31. package/dist/commonjs/models/mappers.js.map +1 -1
  32. package/dist/commonjs/models/parameters.js +1 -1
  33. package/dist/commonjs/models/parameters.js.map +1 -1
  34. package/dist/commonjs/operationsInterfaces/usages.d.ts.map +1 -1
  35. package/dist/commonjs/operationsInterfaces/usages.js.map +1 -1
  36. package/dist/commonjs/recoveryServicesClient.js +2 -2
  37. package/dist/commonjs/recoveryServicesClient.js.map +1 -1
  38. package/dist/esm/lroImpl.d.ts.map +1 -1
  39. package/dist/esm/lroImpl.js +7 -0
  40. package/dist/esm/lroImpl.js.map +1 -1
  41. package/dist/esm/models/index.d.ts +50 -0
  42. package/dist/esm/models/index.d.ts.map +1 -1
  43. package/dist/esm/models/index.js +18 -0
  44. package/dist/esm/models/index.js.map +1 -1
  45. package/dist/esm/models/mappers.d.ts +2 -0
  46. package/dist/esm/models/mappers.d.ts.map +1 -1
  47. package/dist/esm/models/mappers.js +48 -0
  48. package/dist/esm/models/mappers.js.map +1 -1
  49. package/dist/esm/models/parameters.js +1 -1
  50. package/dist/esm/models/parameters.js.map +1 -1
  51. package/dist/esm/operationsInterfaces/usages.d.ts.map +1 -1
  52. package/dist/esm/operationsInterfaces/usages.js.map +1 -1
  53. package/dist/esm/recoveryServicesClient.js +2 -2
  54. package/dist/esm/recoveryServicesClient.js.map +1 -1
  55. package/dist/react-native/lroImpl.d.ts.map +1 -1
  56. package/dist/react-native/lroImpl.js +7 -0
  57. package/dist/react-native/lroImpl.js.map +1 -1
  58. package/dist/react-native/models/index.d.ts +50 -0
  59. package/dist/react-native/models/index.d.ts.map +1 -1
  60. package/dist/react-native/models/index.js +18 -0
  61. package/dist/react-native/models/index.js.map +1 -1
  62. package/dist/react-native/models/mappers.d.ts +2 -0
  63. package/dist/react-native/models/mappers.d.ts.map +1 -1
  64. package/dist/react-native/models/mappers.js +48 -0
  65. package/dist/react-native/models/mappers.js.map +1 -1
  66. package/dist/react-native/models/parameters.js +1 -1
  67. package/dist/react-native/models/parameters.js.map +1 -1
  68. package/dist/react-native/operationsInterfaces/usages.d.ts.map +1 -1
  69. package/dist/react-native/operationsInterfaces/usages.js.map +1 -1
  70. package/dist/react-native/recoveryServicesClient.js +2 -2
  71. package/dist/react-native/recoveryServicesClient.js.map +1 -1
  72. package/package.json +26 -28
  73. package/review/arm-recoveryservices.api.md +33 -0
@@ -1 +1 @@
1
- {"version":3,"file":"recoveryServicesClient.js","sourceRoot":"","sources":["../../src/recoveryServicesClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,qBAAqB,EACrB,wBAAwB,EACxB,qBAAqB,EACrB,kCAAkC,EAClC,oBAAoB,EACpB,UAAU,EACV,cAAc,EACd,qBAAqB,EACrB,UAAU,GACX,MAAM,uBAAuB,CAAC;AAY/B,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,KAAK,OAAO,MAAM,qBAAqB,CAAC;AAS/C,MAAM,OAAO,sBAAuB,SAAQ,UAAU,CAAC,aAAa;IAKlE;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAA8C;;QAE9C,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QACD,IAAI,cAAc,KAAK,SAAS,EAAE,CAAC;YACjC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;QACrD,CAAC;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,GAAG,EAAE,CAAC;QACf,CAAC;QACD,MAAM,QAAQ,GAAyC;YACrD,kBAAkB,EAAE,iCAAiC;YACrD,UAAU,EAAE,WAAW;SACxB,CAAC;QAEF,MAAM,cAAc,GAAG,qCAAqC,CAAC;QAC7D,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;YAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,cAAc,EAAE;YACjE,CAAC,CAAC,GAAG,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T,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,iBAAiB;SACtC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,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,SAAS;QACpB,UAAU,CAAC,WAAW;KACvB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,+BAA+B,GAA6B;IAChE,IAAI,EAAE,2JAA2J;IACjK,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,KAAK;SAC1B;QACD,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,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,SAAS;QACpB,UAAU,CAAC,WAAW;KACvB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,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 * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest,\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n VaultCertificatesImpl,\n RegisteredIdentitiesImpl,\n ReplicationUsagesImpl,\n PrivateLinkResourcesOperationsImpl,\n RecoveryServicesImpl,\n VaultsImpl,\n OperationsImpl,\n VaultExtendedInfoImpl,\n UsagesImpl,\n} from \"./operations/index.js\";\nimport {\n VaultCertificates,\n RegisteredIdentities,\n ReplicationUsages,\n PrivateLinkResourcesOperations,\n RecoveryServices,\n Vaults,\n Operations,\n VaultExtendedInfo,\n Usages,\n} from \"./operationsInterfaces/index.js\";\nimport * as Parameters from \"./models/parameters.js\";\nimport * as Mappers from \"./models/mappers.js\";\nimport {\n RecoveryServicesClientOptionalParams,\n GetOperationStatusOptionalParams,\n GetOperationStatusResponse,\n GetOperationResultOptionalParams,\n GetOperationResultResponse,\n} from \"./models/index.js\";\n\nexport class RecoveryServicesClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId: string;\n apiVersion: string;\n\n /**\n * Initializes a new instance of the RecoveryServicesClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: RecoveryServicesClientOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: RecoveryServicesClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-recoveryservices/6.0.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2024-04-01\";\n this.vaultCertificates = new VaultCertificatesImpl(this);\n this.registeredIdentities = new RegisteredIdentitiesImpl(this);\n this.replicationUsages = new ReplicationUsagesImpl(this);\n this.privateLinkResourcesOperations =\n new PrivateLinkResourcesOperationsImpl(this);\n this.recoveryServices = new RecoveryServicesImpl(this);\n this.vaults = new VaultsImpl(this);\n this.operations = new OperationsImpl(this);\n this.vaultExtendedInfo = new VaultExtendedInfoImpl(this);\n this.usages = new UsagesImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest,\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n },\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n /**\n * Gets the operation status for a resource.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param vaultName The name of the recovery services vault.\n * @param operationId\n * @param options The options parameters.\n */\n getOperationStatus(\n resourceGroupName: string,\n vaultName: string,\n operationId: string,\n options?: GetOperationStatusOptionalParams,\n ): Promise<GetOperationStatusResponse> {\n return this.sendOperationRequest(\n { resourceGroupName, vaultName, operationId, options },\n getOperationStatusOperationSpec,\n );\n }\n\n /**\n * Gets the operation result for a resource.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param vaultName The name of the recovery services vault.\n * @param operationId\n * @param options The options parameters.\n */\n getOperationResult(\n resourceGroupName: string,\n vaultName: string,\n operationId: string,\n options?: GetOperationResultOptionalParams,\n ): Promise<GetOperationResultResponse> {\n return this.sendOperationRequest(\n { resourceGroupName, vaultName, operationId, options },\n getOperationResultOperationSpec,\n );\n }\n\n vaultCertificates: VaultCertificates;\n registeredIdentities: RegisteredIdentities;\n replicationUsages: ReplicationUsages;\n privateLinkResourcesOperations: PrivateLinkResourcesOperations;\n recoveryServices: RecoveryServices;\n vaults: Vaults;\n operations: Operations;\n vaultExtendedInfo: VaultExtendedInfo;\n usages: Usages;\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationStatusOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/operationStatus/{operationId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationResource,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.vaultName,\n Parameters.operationId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationResultOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/operationResults/{operationId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Vault,\n },\n 202: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.vaultName,\n Parameters.operationId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"recoveryServicesClient.js","sourceRoot":"","sources":["../../src/recoveryServicesClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,qBAAqB,EACrB,wBAAwB,EACxB,qBAAqB,EACrB,kCAAkC,EAClC,oBAAoB,EACpB,UAAU,EACV,cAAc,EACd,qBAAqB,EACrB,UAAU,GACX,MAAM,uBAAuB,CAAC;AAY/B,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,KAAK,OAAO,MAAM,qBAAqB,CAAC;AAS/C,MAAM,OAAO,sBAAuB,SAAQ,UAAU,CAAC,aAAa;IAKlE;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAA8C;;QAE9C,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QACD,IAAI,cAAc,KAAK,SAAS,EAAE,CAAC;YACjC,MAAM,IAAI,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SAAS;QACpB,UAAU,CAAC,WAAW;KACvB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,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 * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest,\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n VaultCertificatesImpl,\n RegisteredIdentitiesImpl,\n ReplicationUsagesImpl,\n PrivateLinkResourcesOperationsImpl,\n RecoveryServicesImpl,\n VaultsImpl,\n OperationsImpl,\n VaultExtendedInfoImpl,\n UsagesImpl,\n} from \"./operations/index.js\";\nimport {\n VaultCertificates,\n RegisteredIdentities,\n ReplicationUsages,\n PrivateLinkResourcesOperations,\n RecoveryServices,\n Vaults,\n Operations,\n VaultExtendedInfo,\n Usages,\n} from \"./operationsInterfaces/index.js\";\nimport * as Parameters from \"./models/parameters.js\";\nimport * as Mappers from \"./models/mappers.js\";\nimport {\n RecoveryServicesClientOptionalParams,\n GetOperationStatusOptionalParams,\n GetOperationStatusResponse,\n GetOperationResultOptionalParams,\n GetOperationResultResponse,\n} from \"./models/index.js\";\n\nexport class RecoveryServicesClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId: string;\n apiVersion: string;\n\n /**\n * Initializes a new instance of the RecoveryServicesClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: RecoveryServicesClientOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: RecoveryServicesClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-recoveryservices/6.1.0`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2025-02-01\";\n this.vaultCertificates = new VaultCertificatesImpl(this);\n this.registeredIdentities = new RegisteredIdentitiesImpl(this);\n this.replicationUsages = new ReplicationUsagesImpl(this);\n this.privateLinkResourcesOperations =\n new PrivateLinkResourcesOperationsImpl(this);\n this.recoveryServices = new RecoveryServicesImpl(this);\n this.vaults = new VaultsImpl(this);\n this.operations = new OperationsImpl(this);\n this.vaultExtendedInfo = new VaultExtendedInfoImpl(this);\n this.usages = new UsagesImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest,\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n },\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n /**\n * Gets the operation status for a resource.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param vaultName The name of the recovery services vault.\n * @param operationId\n * @param options The options parameters.\n */\n getOperationStatus(\n resourceGroupName: string,\n vaultName: string,\n operationId: string,\n options?: GetOperationStatusOptionalParams,\n ): Promise<GetOperationStatusResponse> {\n return this.sendOperationRequest(\n { resourceGroupName, vaultName, operationId, options },\n getOperationStatusOperationSpec,\n );\n }\n\n /**\n * Gets the operation result for a resource.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param vaultName The name of the recovery services vault.\n * @param operationId\n * @param options The options parameters.\n */\n getOperationResult(\n resourceGroupName: string,\n vaultName: string,\n operationId: string,\n options?: GetOperationResultOptionalParams,\n ): Promise<GetOperationResultResponse> {\n return this.sendOperationRequest(\n { resourceGroupName, vaultName, operationId, options },\n getOperationResultOperationSpec,\n );\n }\n\n vaultCertificates: VaultCertificates;\n registeredIdentities: RegisteredIdentities;\n replicationUsages: ReplicationUsages;\n privateLinkResourcesOperations: PrivateLinkResourcesOperations;\n recoveryServices: RecoveryServices;\n vaults: Vaults;\n operations: Operations;\n vaultExtendedInfo: VaultExtendedInfo;\n usages: Usages;\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationStatusOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/operationStatus/{operationId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationResource,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.vaultName,\n Parameters.operationId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationResultOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/operationResults/{operationId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Vault,\n },\n 202: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.vaultName,\n Parameters.operationId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
package/package.json CHANGED
@@ -3,16 +3,16 @@
3
3
  "sdk-type": "mgmt",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "A generated SDK for RecoveryServicesClient.",
6
- "version": "6.0.1-alpha.20250619.1",
6
+ "version": "6.1.0",
7
7
  "engines": {
8
8
  "node": ">=20.0.0"
9
9
  },
10
10
  "dependencies": {
11
- "@azure/abort-controller": "^2.1.2",
12
- "@azure/core-auth": "^1.9.0",
13
- "@azure/core-client": "^1.9.2",
14
11
  "@azure/core-lro": "^2.5.4",
12
+ "@azure/abort-controller": "^2.1.2",
15
13
  "@azure/core-paging": "^1.6.2",
14
+ "@azure/core-client": "^1.9.2",
15
+ "@azure/core-auth": "^1.9.0",
16
16
  "@azure/core-rest-pipeline": "^1.19.0",
17
17
  "tslib": "^2.8.1"
18
18
  },
@@ -21,31 +21,30 @@
21
21
  "azure",
22
22
  "typescript",
23
23
  "browser",
24
- "isomorphic"
24
+ "isomorphic",
25
+ "cloud"
25
26
  ],
26
27
  "license": "MIT",
27
28
  "main": "./dist/commonjs/index.js",
28
29
  "module": "./dist/esm/index.js",
29
30
  "types": "./dist/commonjs/index.d.ts",
31
+ "type": "module",
30
32
  "devDependencies": {
31
- "@azure-tools/test-credential": "^2.0.0",
32
- "@azure-tools/test-recorder": ">=4.1.0-alpha <4.1.0-alphb",
33
- "@azure-tools/test-utils-vitest": ">=1.0.0-alpha <1.0.0-alphb",
34
- "@azure/dev-tool": ">=1.0.0-alpha <1.0.0-alphb",
33
+ "typescript": "~5.8.2",
34
+ "dotenv": "^16.0.0",
35
+ "@azure/dev-tool": "^1.0.0",
35
36
  "@azure/identity": "^4.6.0",
36
37
  "@azure/logger": "^1.1.4",
38
+ "@azure-tools/test-recorder": "^4.1.0",
39
+ "@azure-tools/test-credential": "^2.0.0",
40
+ "@azure-tools/test-utils-vitest": "^1.0.0",
37
41
  "@types/node": "^20.0.0",
38
42
  "@vitest/browser": "^3.0.9",
39
43
  "@vitest/coverage-istanbul": "^3.0.9",
40
- "dotenv": "^16.0.0",
41
44
  "playwright": "^1.50.1",
42
- "typescript": "~5.8.2",
43
45
  "vitest": "^3.0.9"
44
46
  },
45
- "repository": {
46
- "type": "git",
47
- "url": "https://github.com/Azure/azure-sdk-for-js.git"
48
- },
47
+ "repository": "github:Azure/azure-sdk-for-js",
49
48
  "bugs": {
50
49
  "url": "https://github.com/Azure/azure-sdk-for-js/issues"
51
50
  },
@@ -53,7 +52,7 @@
53
52
  "dist/",
54
53
  "README.md",
55
54
  "LICENSE",
56
- "review/",
55
+ "review/*",
57
56
  "CHANGELOG.md"
58
57
  ],
59
58
  "scripts": {
@@ -83,16 +82,8 @@
83
82
  ]
84
83
  },
85
84
  "autoPublish": true,
86
- "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/recoveryservices/arm-recoveryservices",
87
- "//sampleConfiguration": {
88
- "productName": "",
89
- "productSlugs": [
90
- "azure"
91
- ],
92
- "disableDocsMs": true,
93
- "apiRefLink": "https://learn.microsoft.com/javascript/api/@azure/arm-recoveryservices?view=azure-node-preview"
94
- },
95
- "type": "module",
85
+ "browser": "./dist/browser/index.js",
86
+ "react-native": "./dist/react-native/index.js",
96
87
  "tshy": {
97
88
  "project": "./tsconfig.src.json",
98
89
  "exports": {
@@ -109,8 +100,15 @@
109
100
  ],
110
101
  "selfLink": false
111
102
  },
112
- "browser": "./dist/browser/index.js",
113
- "react-native": "./dist/react-native/index.js",
103
+ "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/recoveryservices/arm-recoveryservices",
104
+ "//sampleConfiguration": {
105
+ "productName": "",
106
+ "productSlugs": [
107
+ "azure"
108
+ ],
109
+ "disableDocsMs": true,
110
+ "apiRefLink": "https://learn.microsoft.com/javascript/api/@azure/arm-recoveryservices?view=azure-node-preview"
111
+ },
114
112
  "exports": {
115
113
  "./package.json": "./package.json",
116
114
  ".": {
@@ -13,6 +13,12 @@ import { SimplePollerLike } from '@azure/core-lro';
13
13
  // @public
14
14
  export type AlertsState = string;
15
15
 
16
+ // @public
17
+ export interface AssociatedIdentity {
18
+ operationIdentityType?: IdentityType;
19
+ userAssignedIdentity?: string;
20
+ }
21
+
16
22
  // @public
17
23
  export type AuthType = string;
18
24
 
@@ -217,6 +223,9 @@ export interface IdentityData {
217
223
  };
218
224
  }
219
225
 
226
+ // @public
227
+ export type IdentityType = string;
228
+
220
229
  // @public
221
230
  export interface ImmutabilitySettings {
222
231
  // (undocumented)
@@ -295,6 +304,12 @@ export enum KnownEnhancedSecurityState {
295
304
  Invalid = "Invalid"
296
305
  }
297
306
 
307
+ // @public
308
+ export enum KnownIdentityType {
309
+ SystemAssigned = "SystemAssigned",
310
+ UserAssigned = "UserAssigned"
311
+ }
312
+
298
313
  // @public
299
314
  export enum KnownImmutabilityState {
300
315
  Disabled = "Disabled",
@@ -389,6 +404,13 @@ export enum KnownStandardTierStorageRedundancy {
389
404
  ZoneRedundant = "ZoneRedundant"
390
405
  }
391
406
 
407
+ // @public
408
+ export enum KnownState {
409
+ Disabled = "Disabled",
410
+ Enabled = "Enabled",
411
+ Invalid = "Invalid"
412
+ }
413
+
392
414
  // @public
393
415
  export enum KnownTriggerType {
394
416
  ForcedUpgrade = "ForcedUpgrade",
@@ -749,6 +771,7 @@ export interface SecuritySettings {
749
771
  immutabilitySettings?: ImmutabilitySettings;
750
772
  readonly multiUserAuthorization?: MultiUserAuthorization;
751
773
  softDeleteSettings?: SoftDeleteSettings;
774
+ sourceScanConfiguration?: SourceScanConfiguration;
752
775
  }
753
776
 
754
777
  // @public
@@ -775,9 +798,19 @@ export interface SoftDeleteSettings {
775
798
  // @public
776
799
  export type SoftDeleteState = string;
777
800
 
801
+ // @public
802
+ export interface SourceScanConfiguration {
803
+ sourceScanIdentity?: AssociatedIdentity;
804
+ // (undocumented)
805
+ state?: State;
806
+ }
807
+
778
808
  // @public
779
809
  export type StandardTierStorageRedundancy = string;
780
810
 
811
+ // @public
812
+ export type State = string;
813
+
781
814
  // @public
782
815
  export interface SystemData {
783
816
  createdAt?: Date;