@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
@@ -141,7 +141,6 @@ export const MonitoredResourceListResponse: coreClient.CompositeMapper = {
141
141
  modelProperties: {
142
142
  value: {
143
143
  serializedName: "value",
144
- required: true,
145
144
  type: {
146
145
  name: "Sequence",
147
146
  element: {
@@ -154,7 +153,6 @@ export const MonitoredResourceListResponse: coreClient.CompositeMapper = {
154
153
  },
155
154
  nextLink: {
156
155
  serializedName: "nextLink",
157
- required: true,
158
156
  type: {
159
157
  name: "String"
160
158
  }
@@ -364,18 +362,12 @@ export const UserInfo: coreClient.CompositeMapper = {
364
362
  className: "UserInfo",
365
363
  modelProperties: {
366
364
  firstName: {
367
- constraints: {
368
- MaxLength: 50
369
- },
370
365
  serializedName: "firstName",
371
366
  type: {
372
367
  name: "String"
373
368
  }
374
369
  },
375
370
  lastName: {
376
- constraints: {
377
- MaxLength: 50
378
- },
379
371
  serializedName: "lastName",
380
372
  type: {
381
373
  name: "String"
@@ -417,27 +409,18 @@ export const PlanData: coreClient.CompositeMapper = {
417
409
  className: "PlanData",
418
410
  modelProperties: {
419
411
  usageType: {
420
- constraints: {
421
- MaxLength: 50
422
- },
423
412
  serializedName: "usageType",
424
413
  type: {
425
414
  name: "String"
426
415
  }
427
416
  },
428
417
  billingCycle: {
429
- constraints: {
430
- MaxLength: 50
431
- },
432
418
  serializedName: "billingCycle",
433
419
  type: {
434
420
  name: "String"
435
421
  }
436
422
  },
437
423
  planDetails: {
438
- constraints: {
439
- MaxLength: 50
440
- },
441
424
  serializedName: "planDetails",
442
425
  type: {
443
426
  name: "String"
@@ -769,7 +752,6 @@ export const MonitorResourceListResult: coreClient.CompositeMapper = {
769
752
  },
770
753
  nextLink: {
771
754
  serializedName: "nextLink",
772
- required: true,
773
755
  type: {
774
756
  name: "String"
775
757
  }
@@ -908,7 +890,6 @@ export const TagRuleListResult: coreClient.CompositeMapper = {
908
890
  },
909
891
  nextLink: {
910
892
  serializedName: "nextLink",
911
- required: true,
912
893
  type: {
913
894
  name: "String"
914
895
  }
@@ -937,7 +918,6 @@ export const DynatraceSingleSignOnResourceListResult: coreClient.CompositeMapper
937
918
  },
938
919
  nextLink: {
939
920
  serializedName: "nextLink",
940
- required: true,
941
921
  type: {
942
922
  name: "String"
943
923
  }
@@ -953,7 +933,6 @@ export const VMHostsListResponse: coreClient.CompositeMapper = {
953
933
  modelProperties: {
954
934
  value: {
955
935
  serializedName: "value",
956
- required: true,
957
936
  type: {
958
937
  name: "Sequence",
959
938
  element: {
@@ -966,7 +945,6 @@ export const VMHostsListResponse: coreClient.CompositeMapper = {
966
945
  },
967
946
  nextLink: {
968
947
  serializedName: "nextLink",
969
- required: true,
970
948
  type: {
971
949
  name: "String"
972
950
  }
@@ -1045,7 +1023,6 @@ export const AppServiceListResponse: coreClient.CompositeMapper = {
1045
1023
  modelProperties: {
1046
1024
  value: {
1047
1025
  serializedName: "value",
1048
- required: true,
1049
1026
  type: {
1050
1027
  name: "Sequence",
1051
1028
  element: {
@@ -1058,7 +1035,6 @@ export const AppServiceListResponse: coreClient.CompositeMapper = {
1058
1035
  },
1059
1036
  nextLink: {
1060
1037
  serializedName: "nextLink",
1061
- required: true,
1062
1038
  type: {
1063
1039
  name: "String"
1064
1040
  }
@@ -48,7 +48,7 @@ export const $host: OperationURLParameter = {
48
48
  export const apiVersion: OperationQueryParameter = {
49
49
  parameterPath: "apiVersion",
50
50
  mapper: {
51
- defaultValue: "2021-09-01-preview",
51
+ defaultValue: "2021-09-01",
52
52
  isConstant: true,
53
53
  serializedName: "api-version",
54
54
  type: {
@@ -66,9 +66,9 @@ export declare interface AppServiceInfo {
66
66
  /** Response of a list App Services Operation. */
67
67
  export declare interface AppServiceListResponse {
68
68
  /** The items on this page */
69
- value: AppServiceInfo[];
69
+ value?: AppServiceInfo[];
70
70
  /** The link to the next page of items */
71
- nextLink: string;
71
+ nextLink?: string;
72
72
  }
73
73
 
74
74
  /**
@@ -194,7 +194,7 @@ export declare interface DynatraceSingleSignOnResourceListResult {
194
194
  /** The items on this page */
195
195
  value: DynatraceSingleSignOnResource[];
196
196
  /** The link to the next page of items */
197
- nextLink: string;
197
+ nextLink?: string;
198
198
  }
199
199
 
200
200
  /** Dynatrace Environment Information */
@@ -613,9 +613,9 @@ export declare interface MonitoredResource {
613
613
  /** List of all the resources being monitored by Dynatrace monitor resource */
614
614
  export declare interface MonitoredResourceListResponse {
615
615
  /** The items on this page */
616
- value: MonitoredResource[];
616
+ value?: MonitoredResource[];
617
617
  /** The link to the next page of items */
618
- nextLink: string;
618
+ nextLink?: string;
619
619
  }
620
620
 
621
621
  /**
@@ -679,7 +679,7 @@ export declare interface MonitorResourceListResult {
679
679
  /** The items on this page */
680
680
  value: MonitorResource[];
681
681
  /** The link to the next page of items */
682
- nextLink: string;
682
+ nextLink?: string;
683
683
  }
684
684
 
685
685
  /** The updatable properties of the MonitorResource. */
@@ -1311,7 +1311,7 @@ export declare interface TagRuleListResult {
1311
1311
  /** The items on this page */
1312
1312
  value: TagRule[];
1313
1313
  /** The link to the next page of items */
1314
- nextLink: string;
1314
+ nextLink?: string;
1315
1315
  }
1316
1316
 
1317
1317
  /** Interface representing a TagRules. */
@@ -1491,9 +1491,9 @@ export declare interface VMExtensionPayload {
1491
1491
  /** Response of a list VM Host Operation. */
1492
1492
  export declare interface VMHostsListResponse {
1493
1493
  /** The items on this page */
1494
- value: VMInfo[];
1494
+ value?: VMInfo[];
1495
1495
  /** The link to the next page of items */
1496
- nextLink: string;
1496
+ nextLink?: string;
1497
1497
  }
1498
1498
 
1499
1499
  /** Details of VM Resource having Dynatrace OneAgent installed */
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=sampleTest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sampleTest.d.ts","sourceRoot":"","sources":["../../test/sampleTest.ts"],"names":[],"mappings":""}
@@ -1,38 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
- import { __awaiter } from "tslib";
9
- import { Recorder } from "@azure-tools/test-recorder";
10
- const replaceableVariables = {
11
- AZURE_CLIENT_ID: "azure_client_id",
12
- AZURE_CLIENT_SECRET: "azure_client_secret",
13
- AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
14
- SUBSCRIPTION_ID: "azure_subscription_id"
15
- };
16
- const recorderOptions = {
17
- envSetupForPlayback: replaceableVariables
18
- };
19
- describe("My test", () => {
20
- let recorder;
21
- beforeEach(function () {
22
- return __awaiter(this, void 0, void 0, function* () {
23
- recorder = new Recorder(this.currentTest);
24
- yield recorder.start(recorderOptions);
25
- });
26
- });
27
- afterEach(function () {
28
- return __awaiter(this, void 0, void 0, function* () {
29
- yield recorder.stop();
30
- });
31
- });
32
- it("sample test", function () {
33
- return __awaiter(this, void 0, void 0, function* () {
34
- console.log("Hi, I'm a test!");
35
- });
36
- });
37
- });
38
- //# sourceMappingURL=sampleTest.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sampleTest.js","sourceRoot":"","sources":["../../test/sampleTest.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,EACL,QAAQ,EAGT,MAAM,4BAA4B,CAAC;AAIpC,MAAM,oBAAoB,GAA2B;IACnD,eAAe,EAAE,iBAAiB;IAClC,mBAAmB,EAAE,qBAAqB;IAC1C,eAAe,EAAE,sCAAsC;IACvD,eAAe,EAAE,uBAAuB;CACzC,CAAC;AAEF,MAAM,eAAe,GAAyB;IAC5C,mBAAmB,EAAE,oBAAoB;CAC1C,CAAC;AAEF,QAAQ,CAAC,SAAS,EAAE,GAAG,EAAE;IACvB,IAAI,QAAkB,CAAC;IAEvB,UAAU,CAAC;;YACT,QAAQ,GAAG,IAAI,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;YAC1C,MAAM,QAAQ,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;QACxC,CAAC;KAAA,CAAC,CAAC;IAEH,SAAS,CAAC;;YACR,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;QACxB,CAAC;KAAA,CAAC,CAAC;IAEH,EAAE,CAAC,aAAa,EAAE;;YAChB,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;QACjC,CAAC;KAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}