@azure/arm-dynatrace 1.0.0-beta.2 → 1.0.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 (53) hide show
  1. package/CHANGELOG.md +1 -12
  2. package/README.md +2 -2
  3. package/dist/index.js +20 -39
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/samples-dev/monitorsCreateOrUpdateSample.js +2 -2
  8. package/dist-esm/samples-dev/monitorsDeleteSample.js +2 -2
  9. package/dist-esm/samples-dev/monitorsGetAccountCredentialsSample.js +2 -2
  10. package/dist-esm/samples-dev/monitorsGetSample.js +2 -2
  11. package/dist-esm/samples-dev/monitorsGetSsoDetailsSample.js +2 -2
  12. package/dist-esm/samples-dev/monitorsGetVMHostPayloadSample.js +2 -2
  13. package/dist-esm/samples-dev/monitorsListAppServicesSample.js +2 -2
  14. package/dist-esm/samples-dev/monitorsListByResourceGroupSample.js +2 -2
  15. package/dist-esm/samples-dev/monitorsListBySubscriptionIdSample.js +2 -2
  16. package/dist-esm/samples-dev/monitorsListHostsSample.js +2 -2
  17. package/dist-esm/samples-dev/monitorsListLinkableEnvironmentsSample.js +2 -2
  18. package/dist-esm/samples-dev/monitorsListMonitoredResourcesSample.js +2 -2
  19. package/dist-esm/samples-dev/monitorsUpdateSample.js +2 -2
  20. package/dist-esm/samples-dev/operationsListSample.js +2 -2
  21. package/dist-esm/samples-dev/singleSignOnCreateOrUpdateSample.js +2 -2
  22. package/dist-esm/samples-dev/singleSignOnGetSample.js +2 -2
  23. package/dist-esm/samples-dev/singleSignOnListSample.js +2 -2
  24. package/dist-esm/samples-dev/tagRulesCreateOrUpdateSample.js +2 -2
  25. package/dist-esm/samples-dev/tagRulesDeleteSample.js +2 -2
  26. package/dist-esm/samples-dev/tagRulesGetSample.js +2 -2
  27. package/dist-esm/samples-dev/tagRulesListSample.js +2 -2
  28. package/dist-esm/samples-dev/tagRulesUpdateSample.js +2 -2
  29. package/dist-esm/src/dynatraceObservability.d.ts.map +1 -1
  30. package/dist-esm/src/dynatraceObservability.js +19 -14
  31. package/dist-esm/src/dynatraceObservability.js.map +1 -1
  32. package/dist-esm/src/models/index.d.ts +9 -9
  33. package/dist-esm/src/models/index.d.ts.map +1 -1
  34. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  35. package/dist-esm/src/models/mappers.js +0 -24
  36. package/dist-esm/src/models/mappers.js.map +1 -1
  37. package/dist-esm/src/models/parameters.js +1 -1
  38. package/dist-esm/src/models/parameters.js.map +1 -1
  39. package/dist-esm/test/dynatrace_examples.spec.d.ts +4 -0
  40. package/dist-esm/test/dynatrace_examples.spec.d.ts.map +1 -0
  41. package/dist-esm/test/dynatrace_examples.spec.js +134 -0
  42. package/dist-esm/test/dynatrace_examples.spec.js.map +1 -0
  43. package/package.json +2 -2
  44. package/review/arm-dynatrace.api.md +9 -9
  45. package/src/dynatraceObservability.ts +24 -17
  46. package/src/models/index.ts +9 -9
  47. package/src/models/mappers.ts +0 -24
  48. package/src/models/parameters.ts +1 -1
  49. package/types/arm-dynatrace.d.ts +9 -9
  50. package/dist-esm/test/sampleTest.d.ts +0 -2
  51. package/dist-esm/test/sampleTest.d.ts.map +0 -1
  52. package/dist-esm/test/sampleTest.js +0 -38
  53. package/dist-esm/test/sampleTest.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,16 +1,5 @@
1
1
  # Release History
2
2
 
3
- ## 1.0.0-beta.2 (2022-07-12)
4
-
5
- **Features**
6
-
7
- - Added Interface DynatraceSingleSignOnResource
8
- - Added Interface MonitorResource
9
- - Added Interface ProxyResource
10
- - Added Interface TagRule
11
- - Added Interface TrackedResource
12
-
13
-
14
- ## 1.0.0-beta.1 (2022-05-11)
3
+ ## 1.0.0 (2022-09-19)
15
4
 
16
5
  The package of @azure/arm-dynatrace is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart).
package/README.md CHANGED
@@ -6,14 +6,14 @@ This package contains an isomorphic SDK (runs both in Node.js and in browsers) f
6
6
 
7
7
  [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/dynatrace/arm-dynatrace) |
8
8
  [Package (NPM)](https://www.npmjs.com/package/@azure/arm-dynatrace) |
9
- [API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-dynatrace?view=azure-node-preview) |
9
+ [API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-dynatrace) |
10
10
  [Samples](https://github.com/Azure-Samples/azure-samples-js-management)
11
11
 
12
12
  ## Getting started
13
13
 
14
14
  ### Currently supported environments
15
15
 
16
- - [LTS versions of Node.js](https://nodejs.org/about/releases/)
16
+ - [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule)
17
17
  - Latest versions of Safari, Chrome, Edge and Firefox.
18
18
 
19
19
  See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.
package/dist/index.js CHANGED
@@ -390,7 +390,6 @@ const MonitoredResourceListResponse = {
390
390
  modelProperties: {
391
391
  value: {
392
392
  serializedName: "value",
393
- required: true,
394
393
  type: {
395
394
  name: "Sequence",
396
395
  element: {
@@ -403,7 +402,6 @@ const MonitoredResourceListResponse = {
403
402
  },
404
403
  nextLink: {
405
404
  serializedName: "nextLink",
406
- required: true,
407
405
  type: {
408
406
  name: "String"
409
407
  }
@@ -606,18 +604,12 @@ const UserInfo = {
606
604
  className: "UserInfo",
607
605
  modelProperties: {
608
606
  firstName: {
609
- constraints: {
610
- MaxLength: 50
611
- },
612
607
  serializedName: "firstName",
613
608
  type: {
614
609
  name: "String"
615
610
  }
616
611
  },
617
612
  lastName: {
618
- constraints: {
619
- MaxLength: 50
620
- },
621
613
  serializedName: "lastName",
622
614
  type: {
623
615
  name: "String"
@@ -656,27 +648,18 @@ const PlanData = {
656
648
  className: "PlanData",
657
649
  modelProperties: {
658
650
  usageType: {
659
- constraints: {
660
- MaxLength: 50
661
- },
662
651
  serializedName: "usageType",
663
652
  type: {
664
653
  name: "String"
665
654
  }
666
655
  },
667
656
  billingCycle: {
668
- constraints: {
669
- MaxLength: 50
670
- },
671
657
  serializedName: "billingCycle",
672
658
  type: {
673
659
  name: "String"
674
660
  }
675
661
  },
676
662
  planDetails: {
677
- constraints: {
678
- MaxLength: 50
679
- },
680
663
  serializedName: "planDetails",
681
664
  type: {
682
665
  name: "String"
@@ -999,7 +982,6 @@ const MonitorResourceListResult = {
999
982
  },
1000
983
  nextLink: {
1001
984
  serializedName: "nextLink",
1002
- required: true,
1003
985
  type: {
1004
986
  name: "String"
1005
987
  }
@@ -1133,7 +1115,6 @@ const TagRuleListResult = {
1133
1115
  },
1134
1116
  nextLink: {
1135
1117
  serializedName: "nextLink",
1136
- required: true,
1137
1118
  type: {
1138
1119
  name: "String"
1139
1120
  }
@@ -1161,7 +1142,6 @@ const DynatraceSingleSignOnResourceListResult = {
1161
1142
  },
1162
1143
  nextLink: {
1163
1144
  serializedName: "nextLink",
1164
- required: true,
1165
1145
  type: {
1166
1146
  name: "String"
1167
1147
  }
@@ -1176,7 +1156,6 @@ const VMHostsListResponse = {
1176
1156
  modelProperties: {
1177
1157
  value: {
1178
1158
  serializedName: "value",
1179
- required: true,
1180
1159
  type: {
1181
1160
  name: "Sequence",
1182
1161
  element: {
@@ -1189,7 +1168,6 @@ const VMHostsListResponse = {
1189
1168
  },
1190
1169
  nextLink: {
1191
1170
  serializedName: "nextLink",
1192
- required: true,
1193
1171
  type: {
1194
1172
  name: "String"
1195
1173
  }
@@ -1266,7 +1244,6 @@ const AppServiceListResponse = {
1266
1244
  modelProperties: {
1267
1245
  value: {
1268
1246
  serializedName: "value",
1269
- required: true,
1270
1247
  type: {
1271
1248
  name: "Sequence",
1272
1249
  element: {
@@ -1279,7 +1256,6 @@ const AppServiceListResponse = {
1279
1256
  },
1280
1257
  nextLink: {
1281
1258
  serializedName: "nextLink",
1282
- required: true,
1283
1259
  type: {
1284
1260
  name: "String"
1285
1261
  }
@@ -1735,7 +1711,7 @@ const $host = {
1735
1711
  const apiVersion = {
1736
1712
  parameterPath: "apiVersion",
1737
1713
  mapper: {
1738
- defaultValue: "2021-09-01-preview",
1714
+ defaultValue: "2021-09-01",
1739
1715
  isConstant: true,
1740
1716
  serializedName: "api-version",
1741
1717
  type: {
@@ -3646,7 +3622,7 @@ class DynatraceObservability extends coreClient__namespace.ServiceClient {
3646
3622
  requestContentType: "application/json; charset=utf-8",
3647
3623
  credential: credentials
3648
3624
  };
3649
- const packageDetails = `azsdk-js-arm-dynatrace/1.0.0-beta.2`;
3625
+ const packageDetails = `azsdk-js-arm-dynatrace/1.0.0`;
3650
3626
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
3651
3627
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
3652
3628
  : `${packageDetails}`;
@@ -3657,27 +3633,32 @@ class DynatraceObservability extends coreClient__namespace.ServiceClient {
3657
3633
  userAgentPrefix
3658
3634
  }, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
3659
3635
  super(optionsWithDefaults);
3636
+ let bearerTokenAuthenticationPolicyFound = false;
3660
3637
  if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
3661
3638
  const pipelinePolicies = options.pipeline.getOrderedPolicies();
3662
- const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
3639
+ bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
3663
3640
  coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
3664
- if (!bearerTokenAuthenticationPolicyFound) {
3665
- this.pipeline.removePolicy({
3666
- name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
3667
- });
3668
- this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
3669
- scopes: `${optionsWithDefaults.baseUri}/.default`,
3670
- challengeCallbacks: {
3671
- authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
3672
- }
3673
- }));
3674
- }
3641
+ }
3642
+ if (!options ||
3643
+ !options.pipeline ||
3644
+ options.pipeline.getOrderedPolicies().length == 0 ||
3645
+ !bearerTokenAuthenticationPolicyFound) {
3646
+ this.pipeline.removePolicy({
3647
+ name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
3648
+ });
3649
+ this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
3650
+ credential: credentials,
3651
+ scopes: `${optionsWithDefaults.credentialScopes}`,
3652
+ challengeCallbacks: {
3653
+ authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
3654
+ }
3655
+ }));
3675
3656
  }
3676
3657
  // Parameter assignments
3677
3658
  this.subscriptionId = subscriptionId;
3678
3659
  // Assigning values to Constant parameters
3679
3660
  this.$host = options.$host || "https://management.azure.com";
3680
- this.apiVersion = options.apiVersion || "2021-09-01-preview";
3661
+ this.apiVersion = options.apiVersion || "2021-09-01";
3681
3662
  this.monitors = new MonitorsImpl(this);
3682
3663
  this.operations = new OperationsImpl(this);
3683
3664
  this.tagRules = new TagRulesImpl(this);