@azure/arm-rediscache 6.0.0-beta.1 → 6.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 (68) hide show
  1. package/CHANGELOG.md +6 -11
  2. package/README.md +4 -0
  3. package/dist/index.js +101 -114
  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/src/index.d.ts +0 -1
  8. package/dist-esm/src/index.d.ts.map +1 -1
  9. package/dist-esm/src/index.js +0 -1
  10. package/dist-esm/src/index.js.map +1 -1
  11. package/dist-esm/src/models/index.d.ts +69 -69
  12. package/dist-esm/src/models/index.d.ts.map +1 -1
  13. package/dist-esm/src/models/index.js +13 -13
  14. package/dist-esm/src/models/index.js.map +1 -1
  15. package/dist-esm/src/models/mappers.d.ts +3 -3
  16. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  17. package/dist-esm/src/models/mappers.js +85 -77
  18. package/dist-esm/src/models/mappers.js.map +1 -1
  19. package/dist-esm/src/operations/firewallRules.d.ts +2 -2
  20. package/dist-esm/src/operations/firewallRules.d.ts.map +1 -1
  21. package/dist-esm/src/operations/firewallRules.js.map +1 -1
  22. package/dist-esm/src/operations/linkedServer.d.ts +2 -2
  23. package/dist-esm/src/operations/linkedServer.d.ts.map +1 -1
  24. package/dist-esm/src/operations/linkedServer.js.map +1 -1
  25. package/dist-esm/src/operations/operations.d.ts +2 -2
  26. package/dist-esm/src/operations/operations.d.ts.map +1 -1
  27. package/dist-esm/src/operations/operations.js.map +1 -1
  28. package/dist-esm/src/operations/patchSchedules.d.ts +2 -2
  29. package/dist-esm/src/operations/patchSchedules.d.ts.map +1 -1
  30. package/dist-esm/src/operations/patchSchedules.js.map +1 -1
  31. package/dist-esm/src/operations/privateEndpointConnections.d.ts +2 -2
  32. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
  33. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
  34. package/dist-esm/src/operations/privateLinkResources.d.ts +2 -2
  35. package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -1
  36. package/dist-esm/src/operations/privateLinkResources.js.map +1 -1
  37. package/dist-esm/src/operations/redis.d.ts +2 -2
  38. package/dist-esm/src/operations/redis.d.ts.map +1 -1
  39. package/dist-esm/src/operations/redis.js.map +1 -1
  40. package/dist-esm/src/redisManagementClient.d.ts +5 -2
  41. package/dist-esm/src/redisManagementClient.d.ts.map +1 -1
  42. package/dist-esm/src/redisManagementClient.js +32 -3
  43. package/dist-esm/src/redisManagementClient.js.map +1 -1
  44. package/dist-esm/test/redis_examples.d.ts +3 -1
  45. package/dist-esm/test/redis_examples.d.ts.map +1 -1
  46. package/dist-esm/test/redis_examples.js +9 -6
  47. package/dist-esm/test/redis_examples.js.map +1 -1
  48. package/package.json +14 -24
  49. package/review/arm-rediscache.api.md +5 -11
  50. package/src/index.ts +0 -1
  51. package/src/models/index.ts +74 -74
  52. package/src/models/mappers.ts +92 -84
  53. package/src/operations/firewallRules.ts +3 -3
  54. package/src/operations/linkedServer.ts +3 -3
  55. package/src/operations/operations.ts +3 -3
  56. package/src/operations/patchSchedules.ts +3 -3
  57. package/src/operations/privateEndpointConnections.ts +3 -3
  58. package/src/operations/privateLinkResources.ts +3 -3
  59. package/src/operations/redis.ts +3 -3
  60. package/src/redisManagementClient.ts +46 -3
  61. package/types/arm-rediscache.d.ts +7 -18
  62. package/types/tsdoc-metadata.json +1 -1
  63. package/LICENSE.txt +0 -21
  64. package/dist-esm/src/redisManagementClientContext.d.ts +0 -17
  65. package/dist-esm/src/redisManagementClientContext.d.ts.map +0 -1
  66. package/dist-esm/src/redisManagementClientContext.js +0 -50
  67. package/dist-esm/src/redisManagementClientContext.js.map +0 -1
  68. package/src/redisManagementClientContext.ts +0 -71
package/CHANGELOG.md CHANGED
@@ -1,16 +1,11 @@
1
1
  # Release History
2
+
3
+ ## 6.0.0 (2021-12-10)
2
4
 
3
- ## 6.0.0-beta.1 (2021-10-09)
5
+ The package of @azure/arm-rediscache is using our next generation design principles since version 6.0.0, which contains breaking changes.
4
6
 
5
- This is the first preview for the new version of the `@azure/arm-rediscache` package that follows the new [guidelines for TypeScript SDKs](https://azure.github.io/azure-sdk/typescript_introduction.html) for Azure services.
7
+ To understand the detail of the change, please refer to [Changelog](https://aka.ms/js-track2-changelog).
6
8
 
7
- While this package remains auto generated, the SDK generator itself has undergone changes to comply with the above guidelines in order to generate packages that are idiomatic to the JavaScript/TypeScript ecosystem and consistent with other packages for Azure services. For more on this, please see [State of the Azure SDK 2021](https://devblogs.microsoft.com/azure-sdk/state-of-the-azure-sdk-2021/).
9
+ To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide).
8
10
 
9
- Please note that this version has breaking changes, all of which were made after careful consideration during the authoring of the guidelines and user studies.
10
-
11
- **Noteworthy changes and features**
12
- - Authentication: The packages `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` are no longer supported. Use package [@azure/identity](https://www.npmjs.com/package/@azure/identity) instead. Select a credential from Azure Identity examples based on the authentication method of your choice.
13
- - Callbacks: Method overloads that used callbacks have been removed and the use of promises is encouraged instead.
14
- - List operations now return an iterable result that follows the `PagedAsyncIterableIterator` interface as opposed to the previous model where you had to make a new request using the link to the next page.
15
- - Long running operations i.e. the Lro related object returned by methods whose names started with `begin`, now uses `pollUntilDone` to check whether the request is finished, instead of `pollUntilFinished`. To get the final result, use the corresponding method that will have the suffix `AndWait`.
16
- - The SDK only supports ECMAScript 2015 (ES6) and beyond, all projects that referenced this SDK should be upgraded to use ES6.
11
+ To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart).
package/README.md CHANGED
@@ -53,6 +53,10 @@ const subscriptionId = "00000000-0000-0000-0000-000000000000";
53
53
  const client = new RedisManagementClient(new DefaultAzureCredential(), subscriptionId);
54
54
  ```
55
55
 
56
+
57
+ ### JavaScript Bundle
58
+ To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling).
59
+
56
60
  ## Key concepts
57
61
 
58
62
  ### RedisManagementClient
package/dist/index.js CHANGED
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var tslib = require('tslib');
6
5
  var coreClient = require('@azure/core-client');
6
+ var tslib = require('tslib');
7
7
  var coreLro = require('@azure/core-lro');
8
8
 
9
9
  /*
@@ -13,15 +13,6 @@ var coreLro = require('@azure/core-lro');
13
13
  * Code generated by Microsoft (R) AutoRest Code Generator.
14
14
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
15
15
  */
16
- (function (KnownTlsVersion) {
17
- KnownTlsVersion["One0"] = "1.0";
18
- KnownTlsVersion["One1"] = "1.1";
19
- KnownTlsVersion["One2"] = "1.2";
20
- })(exports.KnownTlsVersion || (exports.KnownTlsVersion = {}));
21
- (function (KnownPublicNetworkAccess) {
22
- KnownPublicNetworkAccess["Enabled"] = "Enabled";
23
- KnownPublicNetworkAccess["Disabled"] = "Disabled";
24
- })(exports.KnownPublicNetworkAccess || (exports.KnownPublicNetworkAccess = {}));
25
16
  (function (KnownSkuName) {
26
17
  KnownSkuName["Basic"] = "Basic";
27
18
  KnownSkuName["Standard"] = "Standard";
@@ -31,6 +22,15 @@ var coreLro = require('@azure/core-lro');
31
22
  KnownSkuFamily["C"] = "C";
32
23
  KnownSkuFamily["P"] = "P";
33
24
  })(exports.KnownSkuFamily || (exports.KnownSkuFamily = {}));
25
+ (function (KnownTlsVersion) {
26
+ KnownTlsVersion["One0"] = "1.0";
27
+ KnownTlsVersion["One1"] = "1.1";
28
+ KnownTlsVersion["One2"] = "1.2";
29
+ })(exports.KnownTlsVersion || (exports.KnownTlsVersion = {}));
30
+ (function (KnownPublicNetworkAccess) {
31
+ KnownPublicNetworkAccess["Enabled"] = "Enabled";
32
+ KnownPublicNetworkAccess["Disabled"] = "Disabled";
33
+ })(exports.KnownPublicNetworkAccess || (exports.KnownPublicNetworkAccess = {}));
34
34
  (function (KnownProvisioningState) {
35
35
  KnownProvisioningState["Creating"] = "Creating";
36
36
  KnownProvisioningState["Deleting"] = "Deleting";
@@ -368,6 +368,7 @@ const RedisCreateParameters = {
368
368
  }
369
369
  },
370
370
  enableNonSslPort: {
371
+ defaultValue: false,
371
372
  serializedName: "properties.enableNonSslPort",
372
373
  type: {
373
374
  name: "Boolean"
@@ -405,6 +406,7 @@ const RedisCreateParameters = {
405
406
  }
406
407
  },
407
408
  publicNetworkAccess: {
409
+ defaultValue: "Enabled",
408
410
  serializedName: "properties.publicNetworkAccess",
409
411
  type: {
410
412
  name: "String"
@@ -438,6 +440,35 @@ const RedisCreateParameters = {
438
440
  }
439
441
  }
440
442
  };
443
+ const Sku = {
444
+ type: {
445
+ name: "Composite",
446
+ className: "Sku",
447
+ modelProperties: {
448
+ name: {
449
+ serializedName: "name",
450
+ required: true,
451
+ type: {
452
+ name: "String"
453
+ }
454
+ },
455
+ family: {
456
+ serializedName: "family",
457
+ required: true,
458
+ type: {
459
+ name: "String"
460
+ }
461
+ },
462
+ capacity: {
463
+ serializedName: "capacity",
464
+ required: true,
465
+ type: {
466
+ name: "Number"
467
+ }
468
+ }
469
+ }
470
+ }
471
+ };
441
472
  const RedisCommonProperties = {
442
473
  type: {
443
474
  name: "Composite",
@@ -457,6 +488,7 @@ const RedisCommonProperties = {
457
488
  }
458
489
  },
459
490
  enableNonSslPort: {
491
+ defaultValue: false,
460
492
  serializedName: "enableNonSslPort",
461
493
  type: {
462
494
  name: "Boolean"
@@ -494,6 +526,7 @@ const RedisCommonProperties = {
494
526
  }
495
527
  },
496
528
  publicNetworkAccess: {
529
+ defaultValue: "Enabled",
497
530
  serializedName: "publicNetworkAccess",
498
531
  type: {
499
532
  name: "String"
@@ -578,64 +611,6 @@ const RedisCommonPropertiesRedisConfiguration = {
578
611
  }
579
612
  }
580
613
  };
581
- const Sku = {
582
- type: {
583
- name: "Composite",
584
- className: "Sku",
585
- modelProperties: {
586
- name: {
587
- serializedName: "name",
588
- required: true,
589
- type: {
590
- name: "String"
591
- }
592
- },
593
- family: {
594
- serializedName: "family",
595
- required: true,
596
- type: {
597
- name: "String"
598
- }
599
- },
600
- capacity: {
601
- serializedName: "capacity",
602
- required: true,
603
- type: {
604
- name: "Number"
605
- }
606
- }
607
- }
608
- }
609
- };
610
- const Resource = {
611
- type: {
612
- name: "Composite",
613
- className: "Resource",
614
- modelProperties: {
615
- id: {
616
- serializedName: "id",
617
- readOnly: true,
618
- type: {
619
- name: "String"
620
- }
621
- },
622
- name: {
623
- serializedName: "name",
624
- readOnly: true,
625
- type: {
626
- name: "String"
627
- }
628
- },
629
- type: {
630
- serializedName: "type",
631
- readOnly: true,
632
- type: {
633
- name: "String"
634
- }
635
- }
636
- }
637
- }
638
- };
639
614
  const RedisAccessKeys = {
640
615
  type: {
641
616
  name: "Composite",
@@ -764,6 +739,35 @@ const PrivateLinkServiceConnectionState = {
764
739
  }
765
740
  }
766
741
  };
742
+ const Resource = {
743
+ type: {
744
+ name: "Composite",
745
+ className: "Resource",
746
+ modelProperties: {
747
+ id: {
748
+ serializedName: "id",
749
+ readOnly: true,
750
+ type: {
751
+ name: "String"
752
+ }
753
+ },
754
+ name: {
755
+ serializedName: "name",
756
+ readOnly: true,
757
+ type: {
758
+ name: "String"
759
+ }
760
+ },
761
+ type: {
762
+ serializedName: "type",
763
+ readOnly: true,
764
+ type: {
765
+ name: "String"
766
+ }
767
+ }
768
+ }
769
+ }
770
+ };
767
771
  const RedisUpdateParameters = {
768
772
  type: {
769
773
  name: "Composite",
@@ -790,6 +794,7 @@ const RedisUpdateParameters = {
790
794
  }
791
795
  },
792
796
  enableNonSslPort: {
797
+ defaultValue: false,
793
798
  serializedName: "properties.enableNonSslPort",
794
799
  type: {
795
800
  name: "Boolean"
@@ -827,6 +832,7 @@ const RedisUpdateParameters = {
827
832
  }
828
833
  },
829
834
  publicNetworkAccess: {
835
+ defaultValue: "Enabled",
830
836
  serializedName: "properties.publicNetworkAccess",
831
837
  type: {
832
838
  name: "String"
@@ -1247,25 +1253,6 @@ const RedisUpdateProperties = {
1247
1253
  } })
1248
1254
  }
1249
1255
  };
1250
- const TrackedResource = {
1251
- type: {
1252
- name: "Composite",
1253
- className: "TrackedResource",
1254
- modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { tags: {
1255
- serializedName: "tags",
1256
- type: {
1257
- name: "Dictionary",
1258
- value: { type: { name: "String" } }
1259
- }
1260
- }, location: {
1261
- serializedName: "location",
1262
- required: true,
1263
- type: {
1264
- name: "String"
1265
- }
1266
- } })
1267
- }
1268
- };
1269
1256
  const PrivateEndpointConnection = {
1270
1257
  type: {
1271
1258
  name: "Composite",
@@ -1291,6 +1278,25 @@ const PrivateEndpointConnection = {
1291
1278
  } })
1292
1279
  }
1293
1280
  };
1281
+ const TrackedResource = {
1282
+ type: {
1283
+ name: "Composite",
1284
+ className: "TrackedResource",
1285
+ modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { tags: {
1286
+ serializedName: "tags",
1287
+ type: {
1288
+ name: "Dictionary",
1289
+ value: { type: { name: "String" } }
1290
+ }
1291
+ }, location: {
1292
+ serializedName: "location",
1293
+ required: true,
1294
+ type: {
1295
+ name: "String"
1296
+ }
1297
+ } })
1298
+ }
1299
+ };
1294
1300
  const ProxyResource = {
1295
1301
  type: {
1296
1302
  name: "Composite",
@@ -1444,6 +1450,7 @@ const RedisResource = {
1444
1450
  name: "String"
1445
1451
  }
1446
1452
  }, enableNonSslPort: {
1453
+ defaultValue: false,
1447
1454
  serializedName: "properties.enableNonSslPort",
1448
1455
  type: {
1449
1456
  name: "Boolean"
@@ -1475,6 +1482,7 @@ const RedisResource = {
1475
1482
  name: "String"
1476
1483
  }
1477
1484
  }, publicNetworkAccess: {
1485
+ defaultValue: "Enabled",
1478
1486
  serializedName: "properties.publicNetworkAccess",
1479
1487
  type: {
1480
1488
  name: "String"
@@ -1657,15 +1665,15 @@ var Mappers = /*#__PURE__*/Object.freeze({
1657
1665
  NotificationListResponse: NotificationListResponse,
1658
1666
  UpgradeNotification: UpgradeNotification,
1659
1667
  RedisCreateParameters: RedisCreateParameters,
1668
+ Sku: Sku,
1660
1669
  RedisCommonProperties: RedisCommonProperties,
1661
1670
  RedisCommonPropertiesRedisConfiguration: RedisCommonPropertiesRedisConfiguration,
1662
- Sku: Sku,
1663
- Resource: Resource,
1664
1671
  RedisAccessKeys: RedisAccessKeys,
1665
1672
  RedisLinkedServer: RedisLinkedServer,
1666
1673
  RedisInstanceDetails: RedisInstanceDetails,
1667
1674
  PrivateEndpoint: PrivateEndpoint,
1668
1675
  PrivateLinkServiceConnectionState: PrivateLinkServiceConnectionState,
1676
+ Resource: Resource,
1669
1677
  RedisUpdateParameters: RedisUpdateParameters,
1670
1678
  RedisListResult: RedisListResult,
1671
1679
  RedisRegenerateKeyParameters: RedisRegenerateKeyParameters,
@@ -1683,8 +1691,8 @@ var Mappers = /*#__PURE__*/Object.freeze({
1683
1691
  PrivateLinkResourceListResult: PrivateLinkResourceListResult,
1684
1692
  RedisCreateProperties: RedisCreateProperties,
1685
1693
  RedisUpdateProperties: RedisUpdateProperties,
1686
- TrackedResource: TrackedResource,
1687
1694
  PrivateEndpointConnection: PrivateEndpointConnection,
1695
+ TrackedResource: TrackedResource,
1688
1696
  ProxyResource: ProxyResource,
1689
1697
  PrivateLinkResource: PrivateLinkResource,
1690
1698
  RedisLinkedServerProperties: RedisLinkedServerProperties,
@@ -3977,9 +3985,9 @@ const listByRedisCacheOperationSpec = {
3977
3985
  * Code generated by Microsoft (R) AutoRest Code Generator.
3978
3986
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3979
3987
  */
3980
- class RedisManagementClientContext extends coreClient.ServiceClient {
3988
+ class RedisManagementClient extends coreClient.ServiceClient {
3981
3989
  /**
3982
- * Initializes a new instance of the RedisManagementClientContext class.
3990
+ * Initializes a new instance of the RedisManagementClient class.
3983
3991
  * @param credentials Subscription credentials which uniquely identify client subscription.
3984
3992
  * @param subscriptionId Gets subscription credentials which uniquely identify the Microsoft Azure
3985
3993
  * subscription. The subscription ID forms part of the URI for every service call.
@@ -4000,7 +4008,7 @@ class RedisManagementClientContext extends coreClient.ServiceClient {
4000
4008
  requestContentType: "application/json; charset=utf-8",
4001
4009
  credential: credentials
4002
4010
  };
4003
- const packageDetails = `azsdk-js-arm-rediscache/6.0.0-beta.1`;
4011
+ const packageDetails = `azsdk-js-arm-rediscache/6.0.0`;
4004
4012
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
4005
4013
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
4006
4014
  : `${packageDetails}`;
@@ -4016,26 +4024,6 @@ class RedisManagementClientContext extends coreClient.ServiceClient {
4016
4024
  // Assigning values to Constant parameters
4017
4025
  this.$host = options.$host || "https://management.azure.com";
4018
4026
  this.apiVersion = options.apiVersion || "2020-12-01";
4019
- }
4020
- }
4021
-
4022
- /*
4023
- * Copyright (c) Microsoft Corporation.
4024
- * Licensed under the MIT License.
4025
- *
4026
- * Code generated by Microsoft (R) AutoRest Code Generator.
4027
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
4028
- */
4029
- class RedisManagementClient extends RedisManagementClientContext {
4030
- /**
4031
- * Initializes a new instance of the RedisManagementClient class.
4032
- * @param credentials Subscription credentials which uniquely identify client subscription.
4033
- * @param subscriptionId Gets subscription credentials which uniquely identify the Microsoft Azure
4034
- * subscription. The subscription ID forms part of the URI for every service call.
4035
- * @param options The parameter options
4036
- */
4037
- constructor(credentials, subscriptionId, options) {
4038
- super(credentials, subscriptionId, options);
4039
4027
  this.operations = new OperationsImpl(this);
4040
4028
  this.redis = new RedisImpl(this);
4041
4029
  this.firewallRules = new FirewallRulesImpl(this);
@@ -4047,5 +4035,4 @@ class RedisManagementClient extends RedisManagementClientContext {
4047
4035
  }
4048
4036
 
4049
4037
  exports.RedisManagementClient = RedisManagementClient;
4050
- exports.RedisManagementClientContext = RedisManagementClientContext;
4051
4038
  //# sourceMappingURL=index.js.map