@azure/arm-elastic 1.0.1 → 1.0.2-alpha.20250929.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Release History
2
2
 
3
- ## 1.0.1 (Unreleased)
3
+ ## 1.0.2 (Unreleased)
4
4
 
5
5
  ### Features Added
6
6
 
@@ -10,6 +10,12 @@
10
10
 
11
11
  ### Other Changes
12
12
 
13
+ ## 1.0.1 (2025-08-22)
14
+
15
+ ### Other Changes
16
+
17
+ - Other fixes
18
+
13
19
  ## 1.0.0 (2024-10-17)
14
20
 
15
21
  ### Features Added
@@ -33,7 +33,7 @@ export class MicrosoftElastic extends coreClient.ServiceClient {
33
33
  requestContentType: "application/json; charset=utf-8",
34
34
  credential: credentials,
35
35
  };
36
- const packageDetails = `azsdk-js-arm-elastic/1.0.1`;
36
+ const packageDetails = `azsdk-js-arm-elastic/1.0.2`;
37
37
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
38
38
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
39
39
  : `${packageDetails}`;
@@ -1 +1 @@
1
- {"version":3,"file":"microsoftElastic.js","sourceRoot":"","sources":["../../src/microsoftElastic.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,cAAc,EACd,YAAY,EACZ,mBAAmB,EACnB,sBAAsB,EACtB,kBAAkB,EAClB,gBAAgB,EAChB,eAAe,EACf,6BAA6B,EAC7B,UAAU,EACV,YAAY,EACZ,UAAU,EACV,eAAe,EACf,gBAAgB,EAChB,sBAAsB,EACtB,WAAW,EACX,qBAAqB,EACrB,gCAAgC,EAChC,8BAA8B,EAC9B,8BAA8B,EAC9B,0BAA0B,EAC1B,gCAAgC,EAChC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,eAAe,CAAkB;IACjC,kBAAkB,CAAqB;IACvC,cAAc,CAAiB;IAC/B,YAAY,CAAe;IAC3B,WAAW,CAAc;IACzB,yBAAyB,CAA4B;IACrD,MAAM,CAAS;IACf,QAAQ,CAAW;IACnB,MAAM,CAAS;IACf,WAAW,CAAc;IACzB,YAAY,CAAe;IAC3B,kBAAkB,CAAqB;IACvC,OAAO,CAAU;IACjB,iBAAiB,CAAoB;IACrC,4BAA4B,CAA+B;IAC3D,0BAA0B,CAA6B;IACvD,0BAA0B,CAA6B;IACvD,sBAAsB,CAAyB;IAC/C,4BAA4B,CAA+B;IAC3D,mBAAmB,CAAsB;IACzC,cAAc,CAAiB;IAC/B,aAAa,CAAgB;CAC9B","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 OperationsImpl,\n MonitorsImpl,\n ElasticVersionsImpl,\n MonitoredResourcesImpl,\n DeploymentInfoImpl,\n ExternalUserImpl,\n BillingInfoImpl,\n ConnectedPartnerResourcesImpl,\n OpenAIImpl,\n TagRulesImpl,\n VMHostImpl,\n VMIngestionImpl,\n VMCollectionImpl,\n UpgradableVersionsImpl,\n MonitorImpl,\n AllTrafficFiltersImpl,\n ListAssociatedTrafficFiltersImpl,\n CreateAndAssociateIPFilterImpl,\n CreateAndAssociatePLFilterImpl,\n AssociateTrafficFilterImpl,\n DetachAndDeleteTrafficFilterImpl,\n DetachTrafficFilterImpl,\n TrafficFiltersImpl,\n OrganizationsImpl,\n} from \"./operations/index.js\";\nimport {\n Operations,\n Monitors,\n ElasticVersions,\n MonitoredResources,\n DeploymentInfo,\n ExternalUser,\n BillingInfo,\n ConnectedPartnerResources,\n OpenAI,\n TagRules,\n VMHost,\n VMIngestion,\n VMCollection,\n UpgradableVersions,\n Monitor,\n AllTrafficFilters,\n ListAssociatedTrafficFilters,\n CreateAndAssociateIPFilter,\n CreateAndAssociatePLFilter,\n AssociateTrafficFilter,\n DetachAndDeleteTrafficFilter,\n DetachTrafficFilter,\n TrafficFilters,\n Organizations,\n} from \"./operationsInterfaces/index.js\";\nimport { MicrosoftElasticOptionalParams } from \"./models/index.js\";\n\nexport class MicrosoftElastic extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the MicrosoftElastic class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription. The value must be an UUID.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: MicrosoftElasticOptionalParams,\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: MicrosoftElasticOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-elastic/1.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-03-01\";\n this.operations = new OperationsImpl(this);\n this.monitors = new MonitorsImpl(this);\n this.elasticVersions = new ElasticVersionsImpl(this);\n this.monitoredResources = new MonitoredResourcesImpl(this);\n this.deploymentInfo = new DeploymentInfoImpl(this);\n this.externalUser = new ExternalUserImpl(this);\n this.billingInfo = new BillingInfoImpl(this);\n this.connectedPartnerResources = new ConnectedPartnerResourcesImpl(this);\n this.openAI = new OpenAIImpl(this);\n this.tagRules = new TagRulesImpl(this);\n this.vMHost = new VMHostImpl(this);\n this.vMIngestion = new VMIngestionImpl(this);\n this.vMCollection = new VMCollectionImpl(this);\n this.upgradableVersions = new UpgradableVersionsImpl(this);\n this.monitor = new MonitorImpl(this);\n this.allTrafficFilters = new AllTrafficFiltersImpl(this);\n this.listAssociatedTrafficFilters = new ListAssociatedTrafficFiltersImpl(\n this,\n );\n this.createAndAssociateIPFilter = new CreateAndAssociateIPFilterImpl(this);\n this.createAndAssociatePLFilter = new CreateAndAssociatePLFilterImpl(this);\n this.associateTrafficFilter = new AssociateTrafficFilterImpl(this);\n this.detachAndDeleteTrafficFilter = new DetachAndDeleteTrafficFilterImpl(\n this,\n );\n this.detachTrafficFilter = new DetachTrafficFilterImpl(this);\n this.trafficFilters = new TrafficFiltersImpl(this);\n this.organizations = new OrganizationsImpl(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 operations: Operations;\n monitors: Monitors;\n elasticVersions: ElasticVersions;\n monitoredResources: MonitoredResources;\n deploymentInfo: DeploymentInfo;\n externalUser: ExternalUser;\n billingInfo: BillingInfo;\n connectedPartnerResources: ConnectedPartnerResources;\n openAI: OpenAI;\n tagRules: TagRules;\n vMHost: VMHost;\n vMIngestion: VMIngestion;\n vMCollection: VMCollection;\n upgradableVersions: UpgradableVersions;\n monitor: Monitor;\n allTrafficFilters: AllTrafficFilters;\n listAssociatedTrafficFilters: ListAssociatedTrafficFilters;\n createAndAssociateIPFilter: CreateAndAssociateIPFilter;\n createAndAssociatePLFilter: CreateAndAssociatePLFilter;\n associateTrafficFilter: AssociateTrafficFilter;\n detachAndDeleteTrafficFilter: DetachAndDeleteTrafficFilter;\n detachTrafficFilter: DetachTrafficFilter;\n trafficFilters: TrafficFilters;\n organizations: Organizations;\n}\n"]}
1
+ {"version":3,"file":"microsoftElastic.js","sourceRoot":"","sources":["../../src/microsoftElastic.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAA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AAM,CAAC;4BACN,OAAO,IAAI,CAAC;wBACd,CAAC;oBACH,CAAC,CAAC,CAAC;oBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;IAED,UAAU,CAAa;IACvB,QAAQ,CAAW;IACnB,eAAe,CAAkB;IACjC,kBAAkB,CAAqB;IACvC,cAAc,CAAiB;IAC/B,YAAY,CAAe;IAC3B,WAAW,CAAc;IACzB,yBAAyB,CAA4B;IACrD,MAAM,CAAS;IACf,QAAQ,CAAW;IACnB,MAAM,CAAS;IACf,WAAW,CAAc;IACzB,YAAY,CAAe;IAC3B,kBAAkB,CAAqB;IACvC,OAAO,CAAU;IACjB,iBAAiB,CAAoB;IACrC,4BAA4B,CAA+B;IAC3D,0BAA0B,CAA6B;IACvD,0BAA0B,CAA6B;IACvD,sBAAsB,CAAyB;IAC/C,4BAA4B,CAA+B;IAC3D,mBAAmB,CAAsB;IACzC,cAAc,CAAiB;IAC/B,aAAa,CAAgB;CAC9B","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 OperationsImpl,\n MonitorsImpl,\n ElasticVersionsImpl,\n MonitoredResourcesImpl,\n DeploymentInfoImpl,\n ExternalUserImpl,\n BillingInfoImpl,\n ConnectedPartnerResourcesImpl,\n OpenAIImpl,\n TagRulesImpl,\n VMHostImpl,\n VMIngestionImpl,\n VMCollectionImpl,\n UpgradableVersionsImpl,\n MonitorImpl,\n AllTrafficFiltersImpl,\n ListAssociatedTrafficFiltersImpl,\n CreateAndAssociateIPFilterImpl,\n CreateAndAssociatePLFilterImpl,\n AssociateTrafficFilterImpl,\n DetachAndDeleteTrafficFilterImpl,\n DetachTrafficFilterImpl,\n TrafficFiltersImpl,\n OrganizationsImpl,\n} from \"./operations/index.js\";\nimport {\n Operations,\n Monitors,\n ElasticVersions,\n MonitoredResources,\n DeploymentInfo,\n ExternalUser,\n BillingInfo,\n ConnectedPartnerResources,\n OpenAI,\n TagRules,\n VMHost,\n VMIngestion,\n VMCollection,\n UpgradableVersions,\n Monitor,\n AllTrafficFilters,\n ListAssociatedTrafficFilters,\n CreateAndAssociateIPFilter,\n CreateAndAssociatePLFilter,\n AssociateTrafficFilter,\n DetachAndDeleteTrafficFilter,\n DetachTrafficFilter,\n TrafficFilters,\n Organizations,\n} from \"./operationsInterfaces/index.js\";\nimport { MicrosoftElasticOptionalParams } from \"./models/index.js\";\n\nexport class MicrosoftElastic extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the MicrosoftElastic class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription. The value must be an UUID.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: MicrosoftElasticOptionalParams,\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: MicrosoftElasticOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-elastic/1.0.2`;\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-03-01\";\n this.operations = new OperationsImpl(this);\n this.monitors = new MonitorsImpl(this);\n this.elasticVersions = new ElasticVersionsImpl(this);\n this.monitoredResources = new MonitoredResourcesImpl(this);\n this.deploymentInfo = new DeploymentInfoImpl(this);\n this.externalUser = new ExternalUserImpl(this);\n this.billingInfo = new BillingInfoImpl(this);\n this.connectedPartnerResources = new ConnectedPartnerResourcesImpl(this);\n this.openAI = new OpenAIImpl(this);\n this.tagRules = new TagRulesImpl(this);\n this.vMHost = new VMHostImpl(this);\n this.vMIngestion = new VMIngestionImpl(this);\n this.vMCollection = new VMCollectionImpl(this);\n this.upgradableVersions = new UpgradableVersionsImpl(this);\n this.monitor = new MonitorImpl(this);\n this.allTrafficFilters = new AllTrafficFiltersImpl(this);\n this.listAssociatedTrafficFilters = new ListAssociatedTrafficFiltersImpl(\n this,\n );\n this.createAndAssociateIPFilter = new CreateAndAssociateIPFilterImpl(this);\n this.createAndAssociatePLFilter = new CreateAndAssociatePLFilterImpl(this);\n this.associateTrafficFilter = new AssociateTrafficFilterImpl(this);\n this.detachAndDeleteTrafficFilter = new DetachAndDeleteTrafficFilterImpl(\n this,\n );\n this.detachTrafficFilter = new DetachTrafficFilterImpl(this);\n this.trafficFilters = new TrafficFiltersImpl(this);\n this.organizations = new OrganizationsImpl(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 operations: Operations;\n monitors: Monitors;\n elasticVersions: ElasticVersions;\n monitoredResources: MonitoredResources;\n deploymentInfo: DeploymentInfo;\n externalUser: ExternalUser;\n billingInfo: BillingInfo;\n connectedPartnerResources: ConnectedPartnerResources;\n openAI: OpenAI;\n tagRules: TagRules;\n vMHost: VMHost;\n vMIngestion: VMIngestion;\n vMCollection: VMCollection;\n upgradableVersions: UpgradableVersions;\n monitor: Monitor;\n allTrafficFilters: AllTrafficFilters;\n listAssociatedTrafficFilters: ListAssociatedTrafficFilters;\n createAndAssociateIPFilter: CreateAndAssociateIPFilter;\n createAndAssociatePLFilter: CreateAndAssociatePLFilter;\n associateTrafficFilter: AssociateTrafficFilter;\n detachAndDeleteTrafficFilter: DetachAndDeleteTrafficFilter;\n detachTrafficFilter: DetachTrafficFilter;\n trafficFilters: TrafficFilters;\n organizations: Organizations;\n}\n"]}
@@ -37,7 +37,7 @@ class MicrosoftElastic extends coreClient.ServiceClient {
37
37
  requestContentType: "application/json; charset=utf-8",
38
38
  credential: credentials,
39
39
  };
40
- const packageDetails = `azsdk-js-arm-elastic/1.0.1`;
40
+ const packageDetails = `azsdk-js-arm-elastic/1.0.2`;
41
41
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
42
42
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
43
43
  : `${packageDetails}`;
@@ -1 +1 @@
1
- {"version":3,"file":"microsoftElastic.js","sourceRoot":"","sources":["../../src/microsoftElastic.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,uEAAiD;AACjD,oFAA8D;AAO9D,oDAyB+B;AA6B/B,MAAa,gBAAiB,SAAQ,UAAU,CAAC,aAAa;IAC5D,KAAK,CAAS;IACd,UAAU,CAAS;IACnB,cAAc,CAAS;IAEvB;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAAwC;QAExC,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,GAAmC;YAC/C,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AAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;oBACrB,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;wBACjD,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;4BACrC,OAAO,cAAc,GAAG,UAAU,CAAC;wBACrC,CAAC;6BAAM,CAAC;4BACN,OAAO,IAAI,CAAC;wBACd,CAAC;oBACH,CAAC,CAAC,CAAC;oBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;IAED,UAAU,CAAa;IACvB,QAAQ,CAAW;IACnB,eAAe,CAAkB;IACjC,kBAAkB,CAAqB;IACvC,cAAc,CAAiB;IAC/B,YAAY,CAAe;IAC3B,WAAW,CAAc;IACzB,yBAAyB,CAA4B;IACrD,MAAM,CAAS;IACf,QAAQ,CAAW;IACnB,MAAM,CAAS;IACf,WAAW,CAAc;IACzB,YAAY,CAAe;IAC3B,kBAAkB,CAAqB;IACvC,OAAO,CAAU;IACjB,iBAAiB,CAAoB;IACrC,4BAA4B,CAA+B;IAC3D,0BAA0B,CAA6B;IACvD,0BAA0B,CAA6B;IACvD,sBAAsB,CAAyB;IAC/C,4BAA4B,CAA+B;IAC3D,mBAAmB,CAAsB;IACzC,cAAc,CAAiB;IAC/B,aAAa,CAAgB;CAC9B;AA1KD,4CA0KC","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 OperationsImpl,\n MonitorsImpl,\n ElasticVersionsImpl,\n MonitoredResourcesImpl,\n DeploymentInfoImpl,\n ExternalUserImpl,\n BillingInfoImpl,\n ConnectedPartnerResourcesImpl,\n OpenAIImpl,\n TagRulesImpl,\n VMHostImpl,\n VMIngestionImpl,\n VMCollectionImpl,\n UpgradableVersionsImpl,\n MonitorImpl,\n AllTrafficFiltersImpl,\n ListAssociatedTrafficFiltersImpl,\n CreateAndAssociateIPFilterImpl,\n CreateAndAssociatePLFilterImpl,\n AssociateTrafficFilterImpl,\n DetachAndDeleteTrafficFilterImpl,\n DetachTrafficFilterImpl,\n TrafficFiltersImpl,\n OrganizationsImpl,\n} from \"./operations/index.js\";\nimport {\n Operations,\n Monitors,\n ElasticVersions,\n MonitoredResources,\n DeploymentInfo,\n ExternalUser,\n BillingInfo,\n ConnectedPartnerResources,\n OpenAI,\n TagRules,\n VMHost,\n VMIngestion,\n VMCollection,\n UpgradableVersions,\n Monitor,\n AllTrafficFilters,\n ListAssociatedTrafficFilters,\n CreateAndAssociateIPFilter,\n CreateAndAssociatePLFilter,\n AssociateTrafficFilter,\n DetachAndDeleteTrafficFilter,\n DetachTrafficFilter,\n TrafficFilters,\n Organizations,\n} from \"./operationsInterfaces/index.js\";\nimport { MicrosoftElasticOptionalParams } from \"./models/index.js\";\n\nexport class MicrosoftElastic extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the MicrosoftElastic class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription. The value must be an UUID.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: MicrosoftElasticOptionalParams,\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: MicrosoftElasticOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-elastic/1.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-03-01\";\n this.operations = new OperationsImpl(this);\n this.monitors = new MonitorsImpl(this);\n this.elasticVersions = new ElasticVersionsImpl(this);\n this.monitoredResources = new MonitoredResourcesImpl(this);\n this.deploymentInfo = new DeploymentInfoImpl(this);\n this.externalUser = new ExternalUserImpl(this);\n this.billingInfo = new BillingInfoImpl(this);\n this.connectedPartnerResources = new ConnectedPartnerResourcesImpl(this);\n this.openAI = new OpenAIImpl(this);\n this.tagRules = new TagRulesImpl(this);\n this.vMHost = new VMHostImpl(this);\n this.vMIngestion = new VMIngestionImpl(this);\n this.vMCollection = new VMCollectionImpl(this);\n this.upgradableVersions = new UpgradableVersionsImpl(this);\n this.monitor = new MonitorImpl(this);\n this.allTrafficFilters = new AllTrafficFiltersImpl(this);\n this.listAssociatedTrafficFilters = new ListAssociatedTrafficFiltersImpl(\n this,\n );\n this.createAndAssociateIPFilter = new CreateAndAssociateIPFilterImpl(this);\n this.createAndAssociatePLFilter = new CreateAndAssociatePLFilterImpl(this);\n this.associateTrafficFilter = new AssociateTrafficFilterImpl(this);\n this.detachAndDeleteTrafficFilter = new DetachAndDeleteTrafficFilterImpl(\n this,\n );\n this.detachTrafficFilter = new DetachTrafficFilterImpl(this);\n this.trafficFilters = new TrafficFiltersImpl(this);\n this.organizations = new OrganizationsImpl(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 operations: Operations;\n monitors: Monitors;\n elasticVersions: ElasticVersions;\n monitoredResources: MonitoredResources;\n deploymentInfo: DeploymentInfo;\n externalUser: ExternalUser;\n billingInfo: BillingInfo;\n connectedPartnerResources: ConnectedPartnerResources;\n openAI: OpenAI;\n tagRules: TagRules;\n vMHost: VMHost;\n vMIngestion: VMIngestion;\n vMCollection: VMCollection;\n upgradableVersions: UpgradableVersions;\n monitor: Monitor;\n allTrafficFilters: AllTrafficFilters;\n listAssociatedTrafficFilters: ListAssociatedTrafficFilters;\n createAndAssociateIPFilter: CreateAndAssociateIPFilter;\n createAndAssociatePLFilter: CreateAndAssociatePLFilter;\n associateTrafficFilter: AssociateTrafficFilter;\n detachAndDeleteTrafficFilter: DetachAndDeleteTrafficFilter;\n detachTrafficFilter: DetachTrafficFilter;\n trafficFilters: TrafficFilters;\n organizations: Organizations;\n}\n"]}
1
+ {"version":3,"file":"microsoftElastic.js","sourceRoot":"","sources":["../../src/microsoftElastic.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,uEAAiD;AACjD,oFAA8D;AAO9D,oDAyB+B;AA6B/B,MAAa,gBAAiB,SAAQ,UAAU,CAAC,aAAa;IAC5D,KAAK,CAAS;IACd,UAAU,CAAS;IACnB,cAAc,CAAS;IAEvB;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAAwC;QAExC,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,GAAmC;YAC/C,kBAAk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AAC,MAAM,GAAG,CAAC,EAAE,CAAC;oBACrB,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;wBACjD,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;4BACrC,OAAO,cAAc,GAAG,UAAU,CAAC;wBACrC,CAAC;6BAAM,CAAC;4BACN,OAAO,IAAI,CAAC;wBACd,CAAC;oBACH,CAAC,CAAC,CAAC;oBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;IAED,UAAU,CAAa;IACvB,QAAQ,CAAW;IACnB,eAAe,CAAkB;IACjC,kBAAkB,CAAqB;IACvC,cAAc,CAAiB;IAC/B,YAAY,CAAe;IAC3B,WAAW,CAAc;IACzB,yBAAyB,CAA4B;IACrD,MAAM,CAAS;IACf,QAAQ,CAAW;IACnB,MAAM,CAAS;IACf,WAAW,CAAc;IACzB,YAAY,CAAe;IAC3B,kBAAkB,CAAqB;IACvC,OAAO,CAAU;IACjB,iBAAiB,CAAoB;IACrC,4BAA4B,CAA+B;IAC3D,0BAA0B,CAA6B;IACvD,0BAA0B,CAA6B;IACvD,sBAAsB,CAAyB;IAC/C,4BAA4B,CAA+B;IAC3D,mBAAmB,CAAsB;IACzC,cAAc,CAAiB;IAC/B,aAAa,CAAgB;CAC9B;AA1KD,4CA0KC","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 OperationsImpl,\n MonitorsImpl,\n ElasticVersionsImpl,\n MonitoredResourcesImpl,\n DeploymentInfoImpl,\n ExternalUserImpl,\n BillingInfoImpl,\n ConnectedPartnerResourcesImpl,\n OpenAIImpl,\n TagRulesImpl,\n VMHostImpl,\n VMIngestionImpl,\n VMCollectionImpl,\n UpgradableVersionsImpl,\n MonitorImpl,\n AllTrafficFiltersImpl,\n ListAssociatedTrafficFiltersImpl,\n CreateAndAssociateIPFilterImpl,\n CreateAndAssociatePLFilterImpl,\n AssociateTrafficFilterImpl,\n DetachAndDeleteTrafficFilterImpl,\n DetachTrafficFilterImpl,\n TrafficFiltersImpl,\n OrganizationsImpl,\n} from \"./operations/index.js\";\nimport {\n Operations,\n Monitors,\n ElasticVersions,\n MonitoredResources,\n DeploymentInfo,\n ExternalUser,\n BillingInfo,\n ConnectedPartnerResources,\n OpenAI,\n TagRules,\n VMHost,\n VMIngestion,\n VMCollection,\n UpgradableVersions,\n Monitor,\n AllTrafficFilters,\n ListAssociatedTrafficFilters,\n CreateAndAssociateIPFilter,\n CreateAndAssociatePLFilter,\n AssociateTrafficFilter,\n DetachAndDeleteTrafficFilter,\n DetachTrafficFilter,\n TrafficFilters,\n Organizations,\n} from \"./operationsInterfaces/index.js\";\nimport { MicrosoftElasticOptionalParams } from \"./models/index.js\";\n\nexport class MicrosoftElastic extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the MicrosoftElastic class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription. The value must be an UUID.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: MicrosoftElasticOptionalParams,\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: MicrosoftElasticOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-elastic/1.0.2`;\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-03-01\";\n this.operations = new OperationsImpl(this);\n this.monitors = new MonitorsImpl(this);\n this.elasticVersions = new ElasticVersionsImpl(this);\n this.monitoredResources = new MonitoredResourcesImpl(this);\n this.deploymentInfo = new DeploymentInfoImpl(this);\n this.externalUser = new ExternalUserImpl(this);\n this.billingInfo = new BillingInfoImpl(this);\n this.connectedPartnerResources = new ConnectedPartnerResourcesImpl(this);\n this.openAI = new OpenAIImpl(this);\n this.tagRules = new TagRulesImpl(this);\n this.vMHost = new VMHostImpl(this);\n this.vMIngestion = new VMIngestionImpl(this);\n this.vMCollection = new VMCollectionImpl(this);\n this.upgradableVersions = new UpgradableVersionsImpl(this);\n this.monitor = new MonitorImpl(this);\n this.allTrafficFilters = new AllTrafficFiltersImpl(this);\n this.listAssociatedTrafficFilters = new ListAssociatedTrafficFiltersImpl(\n this,\n );\n this.createAndAssociateIPFilter = new CreateAndAssociateIPFilterImpl(this);\n this.createAndAssociatePLFilter = new CreateAndAssociatePLFilterImpl(this);\n this.associateTrafficFilter = new AssociateTrafficFilterImpl(this);\n this.detachAndDeleteTrafficFilter = new DetachAndDeleteTrafficFilterImpl(\n this,\n );\n this.detachTrafficFilter = new DetachTrafficFilterImpl(this);\n this.trafficFilters = new TrafficFiltersImpl(this);\n this.organizations = new OrganizationsImpl(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 operations: Operations;\n monitors: Monitors;\n elasticVersions: ElasticVersions;\n monitoredResources: MonitoredResources;\n deploymentInfo: DeploymentInfo;\n externalUser: ExternalUser;\n billingInfo: BillingInfo;\n connectedPartnerResources: ConnectedPartnerResources;\n openAI: OpenAI;\n tagRules: TagRules;\n vMHost: VMHost;\n vMIngestion: VMIngestion;\n vMCollection: VMCollection;\n upgradableVersions: UpgradableVersions;\n monitor: Monitor;\n allTrafficFilters: AllTrafficFilters;\n listAssociatedTrafficFilters: ListAssociatedTrafficFilters;\n createAndAssociateIPFilter: CreateAndAssociateIPFilter;\n createAndAssociatePLFilter: CreateAndAssociatePLFilter;\n associateTrafficFilter: AssociateTrafficFilter;\n detachAndDeleteTrafficFilter: DetachAndDeleteTrafficFilter;\n detachTrafficFilter: DetachTrafficFilter;\n trafficFilters: TrafficFilters;\n organizations: Organizations;\n}\n"]}
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.52.10"
8
+ "packageVersion": "7.52.13"
9
9
  }
10
10
  ]
11
11
  }
@@ -33,7 +33,7 @@ export class MicrosoftElastic extends coreClient.ServiceClient {
33
33
  requestContentType: "application/json; charset=utf-8",
34
34
  credential: credentials,
35
35
  };
36
- const packageDetails = `azsdk-js-arm-elastic/1.0.1`;
36
+ const packageDetails = `azsdk-js-arm-elastic/1.0.2`;
37
37
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
38
38
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
39
39
  : `${packageDetails}`;
@@ -1 +1 @@
1
- {"version":3,"file":"microsoftElastic.js","sourceRoot":"","sources":["../../src/microsoftElastic.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO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AC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;IAED,UAAU,CAAa;IACvB,QAAQ,CAAW;IACnB,eAAe,CAAkB;IACjC,kBAAkB,CAAqB;IACvC,cAAc,CAAiB;IAC/B,YAAY,CAAe;IAC3B,WAAW,CAAc;IACzB,yBAAyB,CAA4B;IACrD,MAAM,CAAS;IACf,QAAQ,CAAW;IACnB,MAAM,CAAS;IACf,WAAW,CAAc;IACzB,YAAY,CAAe;IAC3B,kBAAkB,CAAqB;IACvC,OAAO,CAAU;IACjB,iBAAiB,CAAoB;IACrC,4BAA4B,CAA+B;IAC3D,0BAA0B,CAA6B;IACvD,0BAA0B,CAA6B;IACvD,sBAAsB,CAAyB;IAC/C,4BAA4B,CAA+B;IAC3D,mBAAmB,CAAsB;IACzC,cAAc,CAAiB;IAC/B,aAAa,CAAgB;CAC9B","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 OperationsImpl,\n MonitorsImpl,\n ElasticVersionsImpl,\n MonitoredResourcesImpl,\n DeploymentInfoImpl,\n ExternalUserImpl,\n BillingInfoImpl,\n ConnectedPartnerResourcesImpl,\n OpenAIImpl,\n TagRulesImpl,\n VMHostImpl,\n VMIngestionImpl,\n VMCollectionImpl,\n UpgradableVersionsImpl,\n MonitorImpl,\n AllTrafficFiltersImpl,\n ListAssociatedTrafficFiltersImpl,\n CreateAndAssociateIPFilterImpl,\n CreateAndAssociatePLFilterImpl,\n AssociateTrafficFilterImpl,\n DetachAndDeleteTrafficFilterImpl,\n DetachTrafficFilterImpl,\n TrafficFiltersImpl,\n OrganizationsImpl,\n} from \"./operations/index.js\";\nimport {\n Operations,\n Monitors,\n ElasticVersions,\n MonitoredResources,\n DeploymentInfo,\n ExternalUser,\n BillingInfo,\n ConnectedPartnerResources,\n OpenAI,\n TagRules,\n VMHost,\n VMIngestion,\n VMCollection,\n UpgradableVersions,\n Monitor,\n AllTrafficFilters,\n ListAssociatedTrafficFilters,\n CreateAndAssociateIPFilter,\n CreateAndAssociatePLFilter,\n AssociateTrafficFilter,\n DetachAndDeleteTrafficFilter,\n DetachTrafficFilter,\n TrafficFilters,\n Organizations,\n} from \"./operationsInterfaces/index.js\";\nimport { MicrosoftElasticOptionalParams } from \"./models/index.js\";\n\nexport class MicrosoftElastic extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the MicrosoftElastic class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription. The value must be an UUID.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: MicrosoftElasticOptionalParams,\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: MicrosoftElasticOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-elastic/1.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-03-01\";\n this.operations = new OperationsImpl(this);\n this.monitors = new MonitorsImpl(this);\n this.elasticVersions = new ElasticVersionsImpl(this);\n this.monitoredResources = new MonitoredResourcesImpl(this);\n this.deploymentInfo = new DeploymentInfoImpl(this);\n this.externalUser = new ExternalUserImpl(this);\n this.billingInfo = new BillingInfoImpl(this);\n this.connectedPartnerResources = new ConnectedPartnerResourcesImpl(this);\n this.openAI = new OpenAIImpl(this);\n this.tagRules = new TagRulesImpl(this);\n this.vMHost = new VMHostImpl(this);\n this.vMIngestion = new VMIngestionImpl(this);\n this.vMCollection = new VMCollectionImpl(this);\n this.upgradableVersions = new UpgradableVersionsImpl(this);\n this.monitor = new MonitorImpl(this);\n this.allTrafficFilters = new AllTrafficFiltersImpl(this);\n this.listAssociatedTrafficFilters = new ListAssociatedTrafficFiltersImpl(\n this,\n );\n this.createAndAssociateIPFilter = new CreateAndAssociateIPFilterImpl(this);\n this.createAndAssociatePLFilter = new CreateAndAssociatePLFilterImpl(this);\n this.associateTrafficFilter = new AssociateTrafficFilterImpl(this);\n this.detachAndDeleteTrafficFilter = new DetachAndDeleteTrafficFilterImpl(\n this,\n );\n this.detachTrafficFilter = new DetachTrafficFilterImpl(this);\n this.trafficFilters = new TrafficFiltersImpl(this);\n this.organizations = new OrganizationsImpl(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 operations: Operations;\n monitors: Monitors;\n elasticVersions: ElasticVersions;\n monitoredResources: MonitoredResources;\n deploymentInfo: DeploymentInfo;\n externalUser: ExternalUser;\n billingInfo: BillingInfo;\n connectedPartnerResources: ConnectedPartnerResources;\n openAI: OpenAI;\n tagRules: TagRules;\n vMHost: VMHost;\n vMIngestion: VMIngestion;\n vMCollection: VMCollection;\n upgradableVersions: UpgradableVersions;\n monitor: Monitor;\n allTrafficFilters: AllTrafficFilters;\n listAssociatedTrafficFilters: ListAssociatedTrafficFilters;\n createAndAssociateIPFilter: CreateAndAssociateIPFilter;\n createAndAssociatePLFilter: CreateAndAssociatePLFilter;\n associateTrafficFilter: AssociateTrafficFilter;\n detachAndDeleteTrafficFilter: DetachAndDeleteTrafficFilter;\n detachTrafficFilter: DetachTrafficFilter;\n trafficFilters: TrafficFilters;\n organizations: Organizations;\n}\n"]}
1
+ {"version":3,"file":"microsoftElastic.js","sourceRoot":"","sources":["../../src/microsoftElastic.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,cAAc,EACd,YAAY,EACZ,mBAAmB,EACnB,sBAAsB,EACtB,kBAAkB,EAClB,gBAAgB,EAChB,eAAe,EACf,6BAA6B,EAC7B,UAAU,EACV,YAAY,EACZ,UAAU,EACV,eAAe,EACf,gBAAgB,EAChB,sBAAsB,EACtB,WAAW,EACX,qBAAqB,EACrB,gCAAgC,EAChC,8BAA8B,EAC9B,8BAA8B,EAC9B,0BAA0B,EAC1B,gCAAgC,EAChC,uBAAuB,EACvB,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,uBAAuB,CAAC;AA6B/B,MAAM,OAAO,gBAAiB,SAAQ,UAAU,CAAC,aAAa;IAC5D,KAAK,CAAS;IACd,UAAU,CAAS;IACnB,cAAc,CAAS;IAEvB;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAAwC;QAExC,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,GAAm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AAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;oBACrB,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;wBACjD,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;4BACrC,OAAO,cAAc,GAAG,UAAU,CAAC;wBACrC,CAAC;6BAAM,CAAC;4BACN,OAAO,IAAI,CAAC;wBACd,CAAC;oBACH,CAAC,CAAC,CAAC;oBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;IAED,UAAU,CAAa;IACvB,QAAQ,CAAW;IACnB,eAAe,CAAkB;IACjC,kBAAkB,CAAqB;IACvC,cAAc,CAAiB;IAC/B,YAAY,CAAe;IAC3B,WAAW,CAAc;IACzB,yBAAyB,CAA4B;IACrD,MAAM,CAAS;IACf,QAAQ,CAAW;IACnB,MAAM,CAAS;IACf,WAAW,CAAc;IACzB,YAAY,CAAe;IAC3B,kBAAkB,CAAqB;IACvC,OAAO,CAAU;IACjB,iBAAiB,CAAoB;IACrC,4BAA4B,CAA+B;IAC3D,0BAA0B,CAA6B;IACvD,0BAA0B,CAA6B;IACvD,sBAAsB,CAAyB;IAC/C,4BAA4B,CAA+B;IAC3D,mBAAmB,CAAsB;IACzC,cAAc,CAAiB;IAC/B,aAAa,CAAgB;CAC9B","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 OperationsImpl,\n MonitorsImpl,\n ElasticVersionsImpl,\n MonitoredResourcesImpl,\n DeploymentInfoImpl,\n ExternalUserImpl,\n BillingInfoImpl,\n ConnectedPartnerResourcesImpl,\n OpenAIImpl,\n TagRulesImpl,\n VMHostImpl,\n VMIngestionImpl,\n VMCollectionImpl,\n UpgradableVersionsImpl,\n MonitorImpl,\n AllTrafficFiltersImpl,\n ListAssociatedTrafficFiltersImpl,\n CreateAndAssociateIPFilterImpl,\n CreateAndAssociatePLFilterImpl,\n AssociateTrafficFilterImpl,\n DetachAndDeleteTrafficFilterImpl,\n DetachTrafficFilterImpl,\n TrafficFiltersImpl,\n OrganizationsImpl,\n} from \"./operations/index.js\";\nimport {\n Operations,\n Monitors,\n ElasticVersions,\n MonitoredResources,\n DeploymentInfo,\n ExternalUser,\n BillingInfo,\n ConnectedPartnerResources,\n OpenAI,\n TagRules,\n VMHost,\n VMIngestion,\n VMCollection,\n UpgradableVersions,\n Monitor,\n AllTrafficFilters,\n ListAssociatedTrafficFilters,\n CreateAndAssociateIPFilter,\n CreateAndAssociatePLFilter,\n AssociateTrafficFilter,\n DetachAndDeleteTrafficFilter,\n DetachTrafficFilter,\n TrafficFilters,\n Organizations,\n} from \"./operationsInterfaces/index.js\";\nimport { MicrosoftElasticOptionalParams } from \"./models/index.js\";\n\nexport class MicrosoftElastic extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the MicrosoftElastic class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription. The value must be an UUID.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: MicrosoftElasticOptionalParams,\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: MicrosoftElasticOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-elastic/1.0.2`;\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-03-01\";\n this.operations = new OperationsImpl(this);\n this.monitors = new MonitorsImpl(this);\n this.elasticVersions = new ElasticVersionsImpl(this);\n this.monitoredResources = new MonitoredResourcesImpl(this);\n this.deploymentInfo = new DeploymentInfoImpl(this);\n this.externalUser = new ExternalUserImpl(this);\n this.billingInfo = new BillingInfoImpl(this);\n this.connectedPartnerResources = new ConnectedPartnerResourcesImpl(this);\n this.openAI = new OpenAIImpl(this);\n this.tagRules = new TagRulesImpl(this);\n this.vMHost = new VMHostImpl(this);\n this.vMIngestion = new VMIngestionImpl(this);\n this.vMCollection = new VMCollectionImpl(this);\n this.upgradableVersions = new UpgradableVersionsImpl(this);\n this.monitor = new MonitorImpl(this);\n this.allTrafficFilters = new AllTrafficFiltersImpl(this);\n this.listAssociatedTrafficFilters = new ListAssociatedTrafficFiltersImpl(\n this,\n );\n this.createAndAssociateIPFilter = new CreateAndAssociateIPFilterImpl(this);\n this.createAndAssociatePLFilter = new CreateAndAssociatePLFilterImpl(this);\n this.associateTrafficFilter = new AssociateTrafficFilterImpl(this);\n this.detachAndDeleteTrafficFilter = new DetachAndDeleteTrafficFilterImpl(\n this,\n );\n this.detachTrafficFilter = new DetachTrafficFilterImpl(this);\n this.trafficFilters = new TrafficFiltersImpl(this);\n this.organizations = new OrganizationsImpl(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 operations: Operations;\n monitors: Monitors;\n elasticVersions: ElasticVersions;\n monitoredResources: MonitoredResources;\n deploymentInfo: DeploymentInfo;\n externalUser: ExternalUser;\n billingInfo: BillingInfo;\n connectedPartnerResources: ConnectedPartnerResources;\n openAI: OpenAI;\n tagRules: TagRules;\n vMHost: VMHost;\n vMIngestion: VMIngestion;\n vMCollection: VMCollection;\n upgradableVersions: UpgradableVersions;\n monitor: Monitor;\n allTrafficFilters: AllTrafficFilters;\n listAssociatedTrafficFilters: ListAssociatedTrafficFilters;\n createAndAssociateIPFilter: CreateAndAssociateIPFilter;\n createAndAssociatePLFilter: CreateAndAssociatePLFilter;\n associateTrafficFilter: AssociateTrafficFilter;\n detachAndDeleteTrafficFilter: DetachAndDeleteTrafficFilter;\n detachTrafficFilter: DetachTrafficFilter;\n trafficFilters: TrafficFilters;\n organizations: Organizations;\n}\n"]}
@@ -33,7 +33,7 @@ export class MicrosoftElastic extends coreClient.ServiceClient {
33
33
  requestContentType: "application/json; charset=utf-8",
34
34
  credential: credentials,
35
35
  };
36
- const packageDetails = `azsdk-js-arm-elastic/1.0.1`;
36
+ const packageDetails = `azsdk-js-arm-elastic/1.0.2`;
37
37
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
38
38
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
39
39
  : `${packageDetails}`;
@@ -1 +1 @@
1
- {"version":3,"file":"microsoftElastic.js","sourceRoot":"","sources":["../../src/microsoftElastic.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,cAAc,EACd,YAAY,EACZ,mBAAmB,EACnB,sBAAsB,EACtB,kBAAkB,EAClB,gBAAgB,EAChB,eAAe,EACf,6BAA6B,EAC7B,UAAU,EACV,YAAY,EACZ,UAAU,EACV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;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;IAED,UAAU,CAAa;IACvB,QAAQ,CAAW;IACnB,eAAe,CAAkB;IACjC,kBAAkB,CAAqB;IACvC,cAAc,CAAiB;IAC/B,YAAY,CAAe;IAC3B,WAAW,CAAc;IACzB,yBAAyB,CAA4B;IACrD,MAAM,CAAS;IACf,QAAQ,CAAW;IACnB,MAAM,CAAS;IACf,WAAW,CAAc;IACzB,YAAY,CAAe;IAC3B,kBAAkB,CAAqB;IACvC,OAAO,CAAU;IACjB,iBAAiB,CAAoB;IACrC,4BAA4B,CAA+B;IAC3D,0BAA0B,CAA6B;IACvD,0BAA0B,CAA6B;IACvD,sBAAsB,CAAyB;IAC/C,4BAA4B,CAA+B;IAC3D,mBAAmB,CAAsB;IACzC,cAAc,CAAiB;IAC/B,aAAa,CAAgB;CAC9B","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 OperationsImpl,\n MonitorsImpl,\n ElasticVersionsImpl,\n MonitoredResourcesImpl,\n DeploymentInfoImpl,\n ExternalUserImpl,\n BillingInfoImpl,\n ConnectedPartnerResourcesImpl,\n OpenAIImpl,\n TagRulesImpl,\n VMHostImpl,\n VMIngestionImpl,\n VMCollectionImpl,\n UpgradableVersionsImpl,\n MonitorImpl,\n AllTrafficFiltersImpl,\n ListAssociatedTrafficFiltersImpl,\n CreateAndAssociateIPFilterImpl,\n CreateAndAssociatePLFilterImpl,\n AssociateTrafficFilterImpl,\n DetachAndDeleteTrafficFilterImpl,\n DetachTrafficFilterImpl,\n TrafficFiltersImpl,\n OrganizationsImpl,\n} from \"./operations/index.js\";\nimport {\n Operations,\n Monitors,\n ElasticVersions,\n MonitoredResources,\n DeploymentInfo,\n ExternalUser,\n BillingInfo,\n ConnectedPartnerResources,\n OpenAI,\n TagRules,\n VMHost,\n VMIngestion,\n VMCollection,\n UpgradableVersions,\n Monitor,\n AllTrafficFilters,\n ListAssociatedTrafficFilters,\n CreateAndAssociateIPFilter,\n CreateAndAssociatePLFilter,\n AssociateTrafficFilter,\n DetachAndDeleteTrafficFilter,\n DetachTrafficFilter,\n TrafficFilters,\n Organizations,\n} from \"./operationsInterfaces/index.js\";\nimport { MicrosoftElasticOptionalParams } from \"./models/index.js\";\n\nexport class MicrosoftElastic extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the MicrosoftElastic class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription. The value must be an UUID.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: MicrosoftElasticOptionalParams,\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: MicrosoftElasticOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-elastic/1.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-03-01\";\n this.operations = new OperationsImpl(this);\n this.monitors = new MonitorsImpl(this);\n this.elasticVersions = new ElasticVersionsImpl(this);\n this.monitoredResources = new MonitoredResourcesImpl(this);\n this.deploymentInfo = new DeploymentInfoImpl(this);\n this.externalUser = new ExternalUserImpl(this);\n this.billingInfo = new BillingInfoImpl(this);\n this.connectedPartnerResources = new ConnectedPartnerResourcesImpl(this);\n this.openAI = new OpenAIImpl(this);\n this.tagRules = new TagRulesImpl(this);\n this.vMHost = new VMHostImpl(this);\n this.vMIngestion = new VMIngestionImpl(this);\n this.vMCollection = new VMCollectionImpl(this);\n this.upgradableVersions = new UpgradableVersionsImpl(this);\n this.monitor = new MonitorImpl(this);\n this.allTrafficFilters = new AllTrafficFiltersImpl(this);\n this.listAssociatedTrafficFilters = new ListAssociatedTrafficFiltersImpl(\n this,\n );\n this.createAndAssociateIPFilter = new CreateAndAssociateIPFilterImpl(this);\n this.createAndAssociatePLFilter = new CreateAndAssociatePLFilterImpl(this);\n this.associateTrafficFilter = new AssociateTrafficFilterImpl(this);\n this.detachAndDeleteTrafficFilter = new DetachAndDeleteTrafficFilterImpl(\n this,\n );\n this.detachTrafficFilter = new DetachTrafficFilterImpl(this);\n this.trafficFilters = new TrafficFiltersImpl(this);\n this.organizations = new OrganizationsImpl(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 operations: Operations;\n monitors: Monitors;\n elasticVersions: ElasticVersions;\n monitoredResources: MonitoredResources;\n deploymentInfo: DeploymentInfo;\n externalUser: ExternalUser;\n billingInfo: BillingInfo;\n connectedPartnerResources: ConnectedPartnerResources;\n openAI: OpenAI;\n tagRules: TagRules;\n vMHost: VMHost;\n vMIngestion: VMIngestion;\n vMCollection: VMCollection;\n upgradableVersions: UpgradableVersions;\n monitor: Monitor;\n allTrafficFilters: AllTrafficFilters;\n listAssociatedTrafficFilters: ListAssociatedTrafficFilters;\n createAndAssociateIPFilter: CreateAndAssociateIPFilter;\n createAndAssociatePLFilter: CreateAndAssociatePLFilter;\n associateTrafficFilter: AssociateTrafficFilter;\n detachAndDeleteTrafficFilter: DetachAndDeleteTrafficFilter;\n detachTrafficFilter: DetachTrafficFilter;\n trafficFilters: TrafficFilters;\n organizations: Organizations;\n}\n"]}
1
+ {"version":3,"file":"microsoftElastic.js","sourceRoot":"","sources":["../../src/microsoftElastic.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,cAAc,EACd,YAAY,EACZ,mBAAmB,EACnB,sBAAsB,EACtB,kBAAkB,EAClB,gBAAgB,EAChB,eAAe,EACf,6BAA6B,EAC7B,UAAU,EACV,YAAY,EACZ,UAAU,EACV,eAAe,EACf,gBAAgB,EAChB,sBAAsB,EACtB,WAAW,EACX,qBAAqB,EACrB,gCAAgC,EAChC,8BAA8B,EAC9B,8BAA8B,EAC9B,0BAA0B,EAC1B,gCAAgC,EAChC,uBAAuB,EACvB,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,uBAAuB,CAAC;AA6B/B,MAAM,OAAO,gBAAiB,SAAQ,UAAU,CAAC,aAAa;IAC5D,KAAK,CAAS;IACd,UAAU,CAAS;IACnB,cAAc,CAAS;IAEvB;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAAwC;QAExC,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,GAAmC;YAC/C,kBAAkB,EAAE,iCAAiC;YACrD,UAAU,EAAE,WAAW;SACxB,CAAC;QAEF,MAAM,cAAc,GAAG,4BAA4B,CAAC;QACpD,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IA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E,EAAE;wBACjD,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;4BACrC,OAAO,cAAc,GAAG,UAAU,CAAC;wBACrC,CAAC;6BAAM,CAAC;4BACN,OAAO,IAAI,CAAC;wBACd,CAAC;oBACH,CAAC,CAAC,CAAC;oBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;IAED,UAAU,CAAa;IACvB,QAAQ,CAAW;IACnB,eAAe,CAAkB;IACjC,kBAAkB,CAAqB;IACvC,cAAc,CAAiB;IAC/B,YAAY,CAAe;IAC3B,WAAW,CAAc;IACzB,yBAAyB,CAA4B;IACrD,MAAM,CAAS;IACf,QAAQ,CAAW;IACnB,MAAM,CAAS;IACf,WAAW,CAAc;IACzB,YAAY,CAAe;IAC3B,kBAAkB,CAAqB;IACvC,OAAO,CAAU;IACjB,iBAAiB,CAAoB;IACrC,4BAA4B,CAA+B;IAC3D,0BAA0B,CAA6B;IACvD,0BAA0B,CAA6B;IACvD,sBAAsB,CAAyB;IAC/C,4BAA4B,CAA+B;IAC3D,mBAAmB,CAAsB;IACzC,cAAc,CAAiB;IAC/B,aAAa,CAAgB;CAC9B","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 OperationsImpl,\n MonitorsImpl,\n ElasticVersionsImpl,\n MonitoredResourcesImpl,\n DeploymentInfoImpl,\n ExternalUserImpl,\n BillingInfoImpl,\n ConnectedPartnerResourcesImpl,\n OpenAIImpl,\n TagRulesImpl,\n VMHostImpl,\n VMIngestionImpl,\n VMCollectionImpl,\n UpgradableVersionsImpl,\n MonitorImpl,\n AllTrafficFiltersImpl,\n ListAssociatedTrafficFiltersImpl,\n CreateAndAssociateIPFilterImpl,\n CreateAndAssociatePLFilterImpl,\n AssociateTrafficFilterImpl,\n DetachAndDeleteTrafficFilterImpl,\n DetachTrafficFilterImpl,\n TrafficFiltersImpl,\n OrganizationsImpl,\n} from \"./operations/index.js\";\nimport {\n Operations,\n Monitors,\n ElasticVersions,\n MonitoredResources,\n DeploymentInfo,\n ExternalUser,\n BillingInfo,\n ConnectedPartnerResources,\n OpenAI,\n TagRules,\n VMHost,\n VMIngestion,\n VMCollection,\n UpgradableVersions,\n Monitor,\n AllTrafficFilters,\n ListAssociatedTrafficFilters,\n CreateAndAssociateIPFilter,\n CreateAndAssociatePLFilter,\n AssociateTrafficFilter,\n DetachAndDeleteTrafficFilter,\n DetachTrafficFilter,\n TrafficFilters,\n Organizations,\n} from \"./operationsInterfaces/index.js\";\nimport { MicrosoftElasticOptionalParams } from \"./models/index.js\";\n\nexport class MicrosoftElastic extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the MicrosoftElastic class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription. The value must be an UUID.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: MicrosoftElasticOptionalParams,\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: MicrosoftElasticOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-elastic/1.0.2`;\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-03-01\";\n this.operations = new OperationsImpl(this);\n this.monitors = new MonitorsImpl(this);\n this.elasticVersions = new ElasticVersionsImpl(this);\n this.monitoredResources = new MonitoredResourcesImpl(this);\n this.deploymentInfo = new DeploymentInfoImpl(this);\n this.externalUser = new ExternalUserImpl(this);\n this.billingInfo = new BillingInfoImpl(this);\n this.connectedPartnerResources = new ConnectedPartnerResourcesImpl(this);\n this.openAI = new OpenAIImpl(this);\n this.tagRules = new TagRulesImpl(this);\n this.vMHost = new VMHostImpl(this);\n this.vMIngestion = new VMIngestionImpl(this);\n this.vMCollection = new VMCollectionImpl(this);\n this.upgradableVersions = new UpgradableVersionsImpl(this);\n this.monitor = new MonitorImpl(this);\n this.allTrafficFilters = new AllTrafficFiltersImpl(this);\n this.listAssociatedTrafficFilters = new ListAssociatedTrafficFiltersImpl(\n this,\n );\n this.createAndAssociateIPFilter = new CreateAndAssociateIPFilterImpl(this);\n this.createAndAssociatePLFilter = new CreateAndAssociatePLFilterImpl(this);\n this.associateTrafficFilter = new AssociateTrafficFilterImpl(this);\n this.detachAndDeleteTrafficFilter = new DetachAndDeleteTrafficFilterImpl(\n this,\n );\n this.detachTrafficFilter = new DetachTrafficFilterImpl(this);\n this.trafficFilters = new TrafficFiltersImpl(this);\n this.organizations = new OrganizationsImpl(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 operations: Operations;\n monitors: Monitors;\n elasticVersions: ElasticVersions;\n monitoredResources: MonitoredResources;\n deploymentInfo: DeploymentInfo;\n externalUser: ExternalUser;\n billingInfo: BillingInfo;\n connectedPartnerResources: ConnectedPartnerResources;\n openAI: OpenAI;\n tagRules: TagRules;\n vMHost: VMHost;\n vMIngestion: VMIngestion;\n vMCollection: VMCollection;\n upgradableVersions: UpgradableVersions;\n monitor: Monitor;\n allTrafficFilters: AllTrafficFilters;\n listAssociatedTrafficFilters: ListAssociatedTrafficFilters;\n createAndAssociateIPFilter: CreateAndAssociateIPFilter;\n createAndAssociatePLFilter: CreateAndAssociatePLFilter;\n associateTrafficFilter: AssociateTrafficFilter;\n detachAndDeleteTrafficFilter: DetachAndDeleteTrafficFilter;\n detachTrafficFilter: DetachTrafficFilter;\n trafficFilters: TrafficFilters;\n organizations: Organizations;\n}\n"]}
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "sdk-type": "mgmt",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "A generated SDK for MicrosoftElastic.",
6
- "version": "1.0.1",
6
+ "version": "1.0.2-alpha.20250929.1",
7
7
  "engines": {
8
8
  "node": ">=20.0.0"
9
9
  },
@@ -38,10 +38,10 @@
38
38
  "playwright": "^1.50.1",
39
39
  "typescript": "~5.8.3",
40
40
  "vitest": "^3.2.3",
41
- "@azure-tools/test-credential": "^2.1.1",
42
- "@azure-tools/test-recorder": "^4.1.0",
43
- "@azure-tools/test-utils-vitest": "^2.0.0",
44
- "@azure/dev-tool": "^1.0.0"
41
+ "@azure-tools/test-credential": "^2.1.2",
42
+ "@azure-tools/test-utils-vitest": "^2.0.1",
43
+ "@azure/dev-tool": "^1.0.0",
44
+ "@azure-tools/test-recorder": "^4.1.1"
45
45
  },
46
46
  "repository": "github:Azure/azure-sdk-for-js",
47
47
  "bugs": {
@@ -125,8 +125,7 @@
125
125
  "pack": "pnpm pack 2>&1",
126
126
  "test": "npm run test:node && npm run test:browser",
127
127
  "test:browser": "echo skipped",
128
- "test:node": "dev-tool run test:vitest",
129
- "test:node:esm": "dev-tool run test:vitest --esm",
128
+ "test:node": "dev-tool run build-test --no-browser-test && dev-tool run test:vitest",
130
129
  "update-snippets": "dev-tool run update-snippets"
131
130
  }
132
131
  }