@azure/arm-storage 18.4.0 → 18.5.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 (58) hide show
  1. package/CHANGELOG.md +7 -1
  2. package/LICENSE +3 -3
  3. package/README.md +5 -10
  4. package/dist/browser/models/index.d.ts +12 -12
  5. package/dist/browser/models/index.d.ts.map +1 -1
  6. package/dist/browser/models/index.js.map +1 -1
  7. package/dist/browser/models/mappers.d.ts.map +1 -1
  8. package/dist/browser/models/mappers.js +3 -0
  9. package/dist/browser/models/mappers.js.map +1 -1
  10. package/dist/browser/operations/storageAccounts.d.ts +2 -2
  11. package/dist/browser/operations/storageAccounts.js +2 -2
  12. package/dist/browser/operations/storageAccounts.js.map +1 -1
  13. package/dist/browser/operationsInterfaces/storageAccounts.d.ts +2 -2
  14. package/dist/browser/operationsInterfaces/storageAccounts.js.map +1 -1
  15. package/dist/browser/storageManagementClient.js +1 -1
  16. package/dist/browser/storageManagementClient.js.map +1 -1
  17. package/dist/commonjs/models/index.d.ts +12 -12
  18. package/dist/commonjs/models/index.d.ts.map +1 -1
  19. package/dist/commonjs/models/index.js.map +1 -1
  20. package/dist/commonjs/models/mappers.d.ts.map +1 -1
  21. package/dist/commonjs/models/mappers.js +3 -0
  22. package/dist/commonjs/models/mappers.js.map +1 -1
  23. package/dist/commonjs/operations/storageAccounts.d.ts +2 -2
  24. package/dist/commonjs/operations/storageAccounts.js +2 -2
  25. package/dist/commonjs/operations/storageAccounts.js.map +1 -1
  26. package/dist/commonjs/operationsInterfaces/storageAccounts.d.ts +2 -2
  27. package/dist/commonjs/operationsInterfaces/storageAccounts.js.map +1 -1
  28. package/dist/commonjs/storageManagementClient.js +1 -1
  29. package/dist/commonjs/storageManagementClient.js.map +1 -1
  30. package/dist/commonjs/tsdoc-metadata.json +1 -1
  31. package/dist/esm/models/index.d.ts +12 -12
  32. package/dist/esm/models/index.d.ts.map +1 -1
  33. package/dist/esm/models/index.js.map +1 -1
  34. package/dist/esm/models/mappers.d.ts.map +1 -1
  35. package/dist/esm/models/mappers.js +3 -0
  36. package/dist/esm/models/mappers.js.map +1 -1
  37. package/dist/esm/operations/storageAccounts.d.ts +2 -2
  38. package/dist/esm/operations/storageAccounts.js +2 -2
  39. package/dist/esm/operations/storageAccounts.js.map +1 -1
  40. package/dist/esm/operationsInterfaces/storageAccounts.d.ts +2 -2
  41. package/dist/esm/operationsInterfaces/storageAccounts.js.map +1 -1
  42. package/dist/esm/storageManagementClient.js +1 -1
  43. package/dist/esm/storageManagementClient.js.map +1 -1
  44. package/dist/react-native/models/index.d.ts +12 -12
  45. package/dist/react-native/models/index.d.ts.map +1 -1
  46. package/dist/react-native/models/index.js.map +1 -1
  47. package/dist/react-native/models/mappers.d.ts.map +1 -1
  48. package/dist/react-native/models/mappers.js +3 -0
  49. package/dist/react-native/models/mappers.js.map +1 -1
  50. package/dist/react-native/operations/storageAccounts.d.ts +2 -2
  51. package/dist/react-native/operations/storageAccounts.js +2 -2
  52. package/dist/react-native/operations/storageAccounts.js.map +1 -1
  53. package/dist/react-native/operationsInterfaces/storageAccounts.d.ts +2 -2
  54. package/dist/react-native/operationsInterfaces/storageAccounts.js.map +1 -1
  55. package/dist/react-native/storageManagementClient.js +1 -1
  56. package/dist/react-native/storageManagementClient.js.map +1 -1
  57. package/package.json +10 -10
  58. package/review/arm-storage.api.md +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"storageManagementClient.js","sourceRoot":"","sources":["../../src/storageManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,EAChB,cAAc,EACd,iBAAiB,EACjB,SAAS,EACT,cAAc,EACd,QAAQ,EACR,mBAAmB,EACnB,mBAAmB,EACnB,UAAU,EACV,sBAAsB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AAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;CA0BF","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 BlobServicesImpl,\n BlobContainersImpl,\n FileServicesImpl,\n FileSharesImpl,\n QueueServicesImpl,\n QueueImpl,\n OperationsImpl,\n SkusImpl,\n StorageAccountsImpl,\n DeletedAccountsImpl,\n UsagesImpl,\n ManagementPoliciesImpl,\n BlobInventoryPoliciesImpl,\n PrivateEndpointConnectionsImpl,\n PrivateLinkResourcesImpl,\n ObjectReplicationPoliciesOperationsImpl,\n LocalUsersOperationsImpl,\n EncryptionScopesImpl,\n TableServicesImpl,\n TableOperationsImpl,\n NetworkSecurityPerimeterConfigurationsImpl,\n StorageTaskAssignmentsImpl,\n StorageTaskAssignmentsInstancesReportImpl,\n StorageTaskAssignmentInstancesReportImpl,\n} from \"./operations/index.js\";\nimport {\n BlobServices,\n BlobContainers,\n FileServices,\n FileShares,\n QueueServices,\n Queue,\n Operations,\n Skus,\n StorageAccounts,\n DeletedAccounts,\n Usages,\n ManagementPolicies,\n BlobInventoryPolicies,\n PrivateEndpointConnections,\n PrivateLinkResources,\n ObjectReplicationPoliciesOperations,\n LocalUsersOperations,\n EncryptionScopes,\n TableServices,\n TableOperations,\n NetworkSecurityPerimeterConfigurations,\n StorageTaskAssignments,\n StorageTaskAssignmentsInstancesReport,\n StorageTaskAssignmentInstancesReport,\n} from \"./operationsInterfaces/index.js\";\nimport { StorageManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class StorageManagementClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the StorageManagementClient 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?: StorageManagementClientOptionalParams,\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: StorageManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-storage/18.4.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 || \"2024-01-01\";\n this.blobServices = new BlobServicesImpl(this);\n this.blobContainers = new BlobContainersImpl(this);\n this.fileServices = new FileServicesImpl(this);\n this.fileShares = new FileSharesImpl(this);\n this.queueServices = new QueueServicesImpl(this);\n this.queue = new QueueImpl(this);\n this.operations = new OperationsImpl(this);\n this.skus = new SkusImpl(this);\n this.storageAccounts = new StorageAccountsImpl(this);\n this.deletedAccounts = new DeletedAccountsImpl(this);\n this.usages = new UsagesImpl(this);\n this.managementPolicies = new ManagementPoliciesImpl(this);\n this.blobInventoryPolicies = new BlobInventoryPoliciesImpl(this);\n this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);\n this.privateLinkResources = new PrivateLinkResourcesImpl(this);\n this.objectReplicationPoliciesOperations =\n new ObjectReplicationPoliciesOperationsImpl(this);\n this.localUsersOperations = new LocalUsersOperationsImpl(this);\n this.encryptionScopes = new EncryptionScopesImpl(this);\n this.tableServices = new TableServicesImpl(this);\n this.tableOperations = new TableOperationsImpl(this);\n this.networkSecurityPerimeterConfigurations =\n new NetworkSecurityPerimeterConfigurationsImpl(this);\n this.storageTaskAssignments = new StorageTaskAssignmentsImpl(this);\n this.storageTaskAssignmentsInstancesReport =\n new StorageTaskAssignmentsInstancesReportImpl(this);\n this.storageTaskAssignmentInstancesReport =\n new StorageTaskAssignmentInstancesReportImpl(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 blobServices: BlobServices;\n blobContainers: BlobContainers;\n fileServices: FileServices;\n fileShares: FileShares;\n queueServices: QueueServices;\n queue: Queue;\n operations: Operations;\n skus: Skus;\n storageAccounts: StorageAccounts;\n deletedAccounts: DeletedAccounts;\n usages: Usages;\n managementPolicies: ManagementPolicies;\n blobInventoryPolicies: BlobInventoryPolicies;\n privateEndpointConnections: PrivateEndpointConnections;\n privateLinkResources: PrivateLinkResources;\n objectReplicationPoliciesOperations: ObjectReplicationPoliciesOperations;\n localUsersOperations: LocalUsersOperations;\n encryptionScopes: EncryptionScopes;\n tableServices: TableServices;\n tableOperations: TableOperations;\n networkSecurityPerimeterConfigurations: NetworkSecurityPerimeterConfigurations;\n storageTaskAssignments: StorageTaskAssignments;\n storageTaskAssignmentsInstancesReport: StorageTaskAssignmentsInstancesReport;\n storageTaskAssignmentInstancesReport: StorageTaskAssignmentInstancesReport;\n}\n"]}
1
+ {"version":3,"file":"storageManagementClient.js","sourceRoot":"","sources":["../../src/storageManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,EAChB,cAAc,EACd,iBAAiB,EACjB,SAAS,EACT,cAAc,EACd,QAAQ,EACR,mBAAmB,EACnB,mBAAmB,EACnB,UAAU,EACV,sBAAsB,EACtB,yBAAyB,EACzB,8BAA8B,EAC9B,wBAAwB,EACxB,u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AAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;CA0BF","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 BlobServicesImpl,\n BlobContainersImpl,\n FileServicesImpl,\n FileSharesImpl,\n QueueServicesImpl,\n QueueImpl,\n OperationsImpl,\n SkusImpl,\n StorageAccountsImpl,\n DeletedAccountsImpl,\n UsagesImpl,\n ManagementPoliciesImpl,\n BlobInventoryPoliciesImpl,\n PrivateEndpointConnectionsImpl,\n PrivateLinkResourcesImpl,\n ObjectReplicationPoliciesOperationsImpl,\n LocalUsersOperationsImpl,\n EncryptionScopesImpl,\n TableServicesImpl,\n TableOperationsImpl,\n NetworkSecurityPerimeterConfigurationsImpl,\n StorageTaskAssignmentsImpl,\n StorageTaskAssignmentsInstancesReportImpl,\n StorageTaskAssignmentInstancesReportImpl,\n} from \"./operations/index.js\";\nimport {\n BlobServices,\n BlobContainers,\n FileServices,\n FileShares,\n QueueServices,\n Queue,\n Operations,\n Skus,\n StorageAccounts,\n DeletedAccounts,\n Usages,\n ManagementPolicies,\n BlobInventoryPolicies,\n PrivateEndpointConnections,\n PrivateLinkResources,\n ObjectReplicationPoliciesOperations,\n LocalUsersOperations,\n EncryptionScopes,\n TableServices,\n TableOperations,\n NetworkSecurityPerimeterConfigurations,\n StorageTaskAssignments,\n StorageTaskAssignmentsInstancesReport,\n StorageTaskAssignmentInstancesReport,\n} from \"./operationsInterfaces/index.js\";\nimport { StorageManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class StorageManagementClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the StorageManagementClient 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?: StorageManagementClientOptionalParams,\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: StorageManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-storage/18.5.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 || \"2024-01-01\";\n this.blobServices = new BlobServicesImpl(this);\n this.blobContainers = new BlobContainersImpl(this);\n this.fileServices = new FileServicesImpl(this);\n this.fileShares = new FileSharesImpl(this);\n this.queueServices = new QueueServicesImpl(this);\n this.queue = new QueueImpl(this);\n this.operations = new OperationsImpl(this);\n this.skus = new SkusImpl(this);\n this.storageAccounts = new StorageAccountsImpl(this);\n this.deletedAccounts = new DeletedAccountsImpl(this);\n this.usages = new UsagesImpl(this);\n this.managementPolicies = new ManagementPoliciesImpl(this);\n this.blobInventoryPolicies = new BlobInventoryPoliciesImpl(this);\n this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);\n this.privateLinkResources = new PrivateLinkResourcesImpl(this);\n this.objectReplicationPoliciesOperations =\n new ObjectReplicationPoliciesOperationsImpl(this);\n this.localUsersOperations = new LocalUsersOperationsImpl(this);\n this.encryptionScopes = new EncryptionScopesImpl(this);\n this.tableServices = new TableServicesImpl(this);\n this.tableOperations = new TableOperationsImpl(this);\n this.networkSecurityPerimeterConfigurations =\n new NetworkSecurityPerimeterConfigurationsImpl(this);\n this.storageTaskAssignments = new StorageTaskAssignmentsImpl(this);\n this.storageTaskAssignmentsInstancesReport =\n new StorageTaskAssignmentsInstancesReportImpl(this);\n this.storageTaskAssignmentInstancesReport =\n new StorageTaskAssignmentInstancesReportImpl(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 blobServices: BlobServices;\n blobContainers: BlobContainers;\n fileServices: FileServices;\n fileShares: FileShares;\n queueServices: QueueServices;\n queue: Queue;\n operations: Operations;\n skus: Skus;\n storageAccounts: StorageAccounts;\n deletedAccounts: DeletedAccounts;\n usages: Usages;\n managementPolicies: ManagementPolicies;\n blobInventoryPolicies: BlobInventoryPolicies;\n privateEndpointConnections: PrivateEndpointConnections;\n privateLinkResources: PrivateLinkResources;\n objectReplicationPoliciesOperations: ObjectReplicationPoliciesOperations;\n localUsersOperations: LocalUsersOperations;\n encryptionScopes: EncryptionScopes;\n tableServices: TableServices;\n tableOperations: TableOperations;\n networkSecurityPerimeterConfigurations: NetworkSecurityPerimeterConfigurations;\n storageTaskAssignments: StorageTaskAssignments;\n storageTaskAssignmentsInstancesReport: StorageTaskAssignmentsInstancesReport;\n storageTaskAssignmentInstancesReport: StorageTaskAssignmentInstancesReport;\n}\n"]}
package/package.json CHANGED
@@ -3,17 +3,17 @@
3
3
  "sdk-type": "mgmt",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "A generated SDK for StorageManagementClient.",
6
- "version": "18.4.0",
6
+ "version": "18.5.0",
7
7
  "engines": {
8
8
  "node": ">=18.0.0"
9
9
  },
10
10
  "dependencies": {
11
11
  "@azure/abort-controller": "^2.1.2",
12
12
  "@azure/core-auth": "^1.9.0",
13
- "@azure/core-client": "^1.9.2",
13
+ "@azure/core-client": "^1.9.3",
14
14
  "@azure/core-lro": "^2.5.4",
15
15
  "@azure/core-paging": "^1.6.2",
16
- "@azure/core-rest-pipeline": "^1.19.0",
16
+ "@azure/core-rest-pipeline": "^1.19.1",
17
17
  "tslib": "^2.8.1"
18
18
  },
19
19
  "keywords": [
@@ -32,15 +32,15 @@
32
32
  "@azure-tools/test-recorder": "^4.1.0",
33
33
  "@azure-tools/test-utils-vitest": "^1.0.0",
34
34
  "@azure/dev-tool": "^1.0.0",
35
- "@azure/identity": "^4.7.0",
35
+ "@azure/identity": "^4.9.0",
36
36
  "@azure/logger": "^1.1.4",
37
37
  "@types/node": "^18.0.0",
38
- "@vitest/browser": "^3.0.6",
39
- "@vitest/coverage-istanbul": "^3.0.6",
38
+ "@vitest/browser": "^3.0.9",
39
+ "@vitest/coverage-istanbul": "^3.0.9",
40
40
  "dotenv": "^16.0.0",
41
- "playwright": "^1.50.1",
42
- "typescript": "~5.6.2",
43
- "vitest": "^3.0.6"
41
+ "playwright": "^1.52.0",
42
+ "typescript": "~5.8.2",
43
+ "vitest": "^3.0.9"
44
44
  },
45
45
  "repository": {
46
46
  "type": "git",
@@ -80,7 +80,7 @@
80
80
  "unit-test": "npm run unit-test:node && npm run unit-test:browser",
81
81
  "unit-test:browser": "echo skipped",
82
82
  "unit-test:node": "dev-tool run test:vitest",
83
- "update-snippets": "echo skipped"
83
+ "update-snippets": "dev-tool run update-snippets"
84
84
  },
85
85
  "sideEffects": false,
86
86
  "//metadata": {
@@ -2330,7 +2330,7 @@ export interface ProvisioningIssueProperties {
2330
2330
  }
2331
2331
 
2332
2332
  // @public
2333
- export type ProvisioningState = "Creating" | "ResolvingDNS" | "Succeeded" | "ValidateSubscriptionQuotaBegin" | "ValidateSubscriptionQuotaEnd" | "Deleting" | "Canceled" | "Failed";
2333
+ export type ProvisioningState = "Creating" | "ResolvingDNS" | "Succeeded" | "ValidateSubscriptionQuotaBegin" | "ValidateSubscriptionQuotaEnd" | "Accepted" | "Deleting" | "Canceled" | "Failed";
2334
2334
 
2335
2335
  // @public
2336
2336
  export interface ProxyResource extends Resource {