@azure/arm-rediscache 8.0.0 → 8.1.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 (144) hide show
  1. package/CHANGELOG.md +21 -10
  2. package/LICENSE +1 -1
  3. package/dist/index.js +1195 -1218
  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/accessPolicyAssignmentCreateUpdateSample.js +3 -3
  8. package/dist-esm/samples-dev/accessPolicyAssignmentCreateUpdateSample.js.map +1 -1
  9. package/dist-esm/samples-dev/accessPolicyAssignmentDeleteSample.js +1 -1
  10. package/dist-esm/samples-dev/accessPolicyAssignmentGetSample.js +1 -1
  11. package/dist-esm/samples-dev/accessPolicyAssignmentListSample.js +5 -10
  12. package/dist-esm/samples-dev/accessPolicyAssignmentListSample.js.map +1 -1
  13. package/dist-esm/samples-dev/accessPolicyCreateUpdateSample.js +2 -2
  14. package/dist-esm/samples-dev/accessPolicyCreateUpdateSample.js.map +1 -1
  15. package/dist-esm/samples-dev/accessPolicyDeleteSample.js +1 -1
  16. package/dist-esm/samples-dev/accessPolicyGetSample.js +1 -1
  17. package/dist-esm/samples-dev/accessPolicyListSample.js +5 -10
  18. package/dist-esm/samples-dev/accessPolicyListSample.js.map +1 -1
  19. package/dist-esm/samples-dev/asyncOperationStatusGetSample.js +1 -1
  20. package/dist-esm/samples-dev/firewallRulesCreateOrUpdateSample.js +3 -3
  21. package/dist-esm/samples-dev/firewallRulesCreateOrUpdateSample.js.map +1 -1
  22. package/dist-esm/samples-dev/firewallRulesDeleteSample.js +1 -1
  23. package/dist-esm/samples-dev/firewallRulesGetSample.js +1 -1
  24. package/dist-esm/samples-dev/firewallRulesListSample.js +5 -10
  25. package/dist-esm/samples-dev/firewallRulesListSample.js.map +1 -1
  26. package/dist-esm/samples-dev/linkedServerCreateSample.js +3 -3
  27. package/dist-esm/samples-dev/linkedServerCreateSample.js.map +1 -1
  28. package/dist-esm/samples-dev/linkedServerDeleteSample.js +1 -1
  29. package/dist-esm/samples-dev/linkedServerGetSample.js +1 -1
  30. package/dist-esm/samples-dev/linkedServerListSample.js +5 -10
  31. package/dist-esm/samples-dev/linkedServerListSample.js.map +1 -1
  32. package/dist-esm/samples-dev/operationsListSample.js +5 -10
  33. package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
  34. package/dist-esm/samples-dev/patchSchedulesCreateOrUpdateSample.js +4 -4
  35. package/dist-esm/samples-dev/patchSchedulesCreateOrUpdateSample.js.map +1 -1
  36. package/dist-esm/samples-dev/patchSchedulesDeleteSample.js +1 -1
  37. package/dist-esm/samples-dev/patchSchedulesGetSample.js +1 -1
  38. package/dist-esm/samples-dev/patchSchedulesListByRedisResourceSample.js +5 -10
  39. package/dist-esm/samples-dev/patchSchedulesListByRedisResourceSample.js.map +1 -1
  40. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +1 -1
  41. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +1 -1
  42. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +5 -10
  43. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js.map +1 -1
  44. package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.js +4 -4
  45. package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.js.map +1 -1
  46. package/dist-esm/samples-dev/privateLinkResourcesListByRedisCacheSample.js +5 -10
  47. package/dist-esm/samples-dev/privateLinkResourcesListByRedisCacheSample.js.map +1 -1
  48. package/dist-esm/samples-dev/redisCheckNameAvailabilitySample.js +3 -3
  49. package/dist-esm/samples-dev/redisCheckNameAvailabilitySample.js.map +1 -1
  50. package/dist-esm/samples-dev/redisCreateSample.js +7 -7
  51. package/dist-esm/samples-dev/redisCreateSample.js.map +1 -1
  52. package/dist-esm/samples-dev/redisDeleteSample.js +1 -1
  53. package/dist-esm/samples-dev/redisExportDataSample.js +3 -3
  54. package/dist-esm/samples-dev/redisExportDataSample.js.map +1 -1
  55. package/dist-esm/samples-dev/redisFlushCacheSample.js +1 -1
  56. package/dist-esm/samples-dev/redisForceRebootSample.js +3 -3
  57. package/dist-esm/samples-dev/redisForceRebootSample.js.map +1 -1
  58. package/dist-esm/samples-dev/redisGetSample.js +1 -1
  59. package/dist-esm/samples-dev/redisImportDataSample.js +3 -3
  60. package/dist-esm/samples-dev/redisImportDataSample.js.map +1 -1
  61. package/dist-esm/samples-dev/redisListByResourceGroupSample.js +5 -10
  62. package/dist-esm/samples-dev/redisListByResourceGroupSample.js.map +1 -1
  63. package/dist-esm/samples-dev/redisListBySubscriptionSample.js +5 -10
  64. package/dist-esm/samples-dev/redisListBySubscriptionSample.js.map +1 -1
  65. package/dist-esm/samples-dev/redisListKeysSample.js +1 -1
  66. package/dist-esm/samples-dev/redisListUpgradeNotificationsSample.js +5 -10
  67. package/dist-esm/samples-dev/redisListUpgradeNotificationsSample.js.map +1 -1
  68. package/dist-esm/samples-dev/redisRegenerateKeySample.js +2 -2
  69. package/dist-esm/samples-dev/redisRegenerateKeySample.js.map +1 -1
  70. package/dist-esm/samples-dev/redisUpdateSample.js +3 -3
  71. package/dist-esm/samples-dev/redisUpdateSample.js.map +1 -1
  72. package/dist-esm/src/lroImpl.js +1 -1
  73. package/dist-esm/src/models/index.d.ts +15 -5
  74. package/dist-esm/src/models/index.d.ts.map +1 -1
  75. package/dist-esm/src/models/index.js.map +1 -1
  76. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  77. package/dist-esm/src/models/mappers.js +700 -667
  78. package/dist-esm/src/models/mappers.js.map +1 -1
  79. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  80. package/dist-esm/src/models/parameters.js +75 -75
  81. package/dist-esm/src/models/parameters.js.map +1 -1
  82. package/dist-esm/src/operations/accessPolicy.d.ts.map +1 -1
  83. package/dist-esm/src/operations/accessPolicy.js +41 -46
  84. package/dist-esm/src/operations/accessPolicy.js.map +1 -1
  85. package/dist-esm/src/operations/accessPolicyAssignment.d.ts.map +1 -1
  86. package/dist-esm/src/operations/accessPolicyAssignment.js +42 -47
  87. package/dist-esm/src/operations/accessPolicyAssignment.js.map +1 -1
  88. package/dist-esm/src/operations/asyncOperationStatus.js +5 -5
  89. package/dist-esm/src/operations/asyncOperationStatus.js.map +1 -1
  90. package/dist-esm/src/operations/firewallRules.js +29 -34
  91. package/dist-esm/src/operations/firewallRules.js.map +1 -1
  92. package/dist-esm/src/operations/linkedServer.d.ts.map +1 -1
  93. package/dist-esm/src/operations/linkedServer.js +40 -45
  94. package/dist-esm/src/operations/linkedServer.js.map +1 -1
  95. package/dist-esm/src/operations/operations.js +12 -17
  96. package/dist-esm/src/operations/operations.js.map +1 -1
  97. package/dist-esm/src/operations/patchSchedules.js +29 -34
  98. package/dist-esm/src/operations/patchSchedules.js.map +1 -1
  99. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
  100. package/dist-esm/src/operations/privateEndpointConnections.js +32 -37
  101. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
  102. package/dist-esm/src/operations/privateLinkResources.js +9 -14
  103. package/dist-esm/src/operations/privateLinkResources.js.map +1 -1
  104. package/dist-esm/src/operations/redis.d.ts.map +1 -1
  105. package/dist-esm/src/operations/redis.js +125 -140
  106. package/dist-esm/src/operations/redis.js.map +1 -1
  107. package/dist-esm/src/pagingHelper.js.map +1 -1
  108. package/dist-esm/src/redisManagementClient.d.ts.map +1 -1
  109. package/dist-esm/src/redisManagementClient.js +9 -9
  110. package/dist-esm/src/redisManagementClient.js.map +1 -1
  111. package/dist-esm/test/redis_examples.d.ts.map +1 -1
  112. package/dist-esm/test/redis_examples.js +47 -51
  113. package/dist-esm/test/redis_examples.js.map +1 -1
  114. package/package.json +19 -25
  115. package/review/arm-rediscache.api.md +5 -0
  116. package/src/lroImpl.ts +3 -3
  117. package/src/models/index.ts +47 -28
  118. package/src/models/mappers.ts +819 -783
  119. package/src/models/parameters.ts +79 -77
  120. package/src/operations/accessPolicy.ts +75 -81
  121. package/src/operations/accessPolicyAssignment.ts +76 -82
  122. package/src/operations/asyncOperationStatus.ts +9 -10
  123. package/src/operations/firewallRules.ts +47 -51
  124. package/src/operations/linkedServer.ts +73 -79
  125. package/src/operations/operations.ts +16 -16
  126. package/src/operations/patchSchedules.ts +49 -53
  127. package/src/operations/privateEndpointConnections.ts +57 -61
  128. package/src/operations/privateLinkResources.ts +17 -18
  129. package/src/operations/redis.ts +228 -247
  130. package/src/operationsInterfaces/accessPolicy.ts +7 -7
  131. package/src/operationsInterfaces/accessPolicyAssignment.ts +7 -7
  132. package/src/operationsInterfaces/asyncOperationStatus.ts +2 -2
  133. package/src/operationsInterfaces/firewallRules.ts +5 -5
  134. package/src/operationsInterfaces/linkedServer.ts +7 -7
  135. package/src/operationsInterfaces/operations.ts +1 -1
  136. package/src/operationsInterfaces/patchSchedules.ts +5 -5
  137. package/src/operationsInterfaces/privateEndpointConnections.ts +6 -6
  138. package/src/operationsInterfaces/privateLinkResources.ts +2 -2
  139. package/src/operationsInterfaces/redis.ts +21 -21
  140. package/src/pagingHelper.ts +1 -1
  141. package/src/redisManagementClient.ts +18 -17
  142. package/types/arm-rediscache.d.ts +15 -5
  143. package/types/tsdoc-metadata.json +1 -1
  144. package/rollup.config.js +0 -122
@@ -15,7 +15,7 @@ import {
15
15
  AccessPolicyCreateUpdateResponse,
16
16
  AccessPolicyDeleteOptionalParams,
17
17
  AccessPolicyGetOptionalParams,
18
- AccessPolicyGetResponse
18
+ AccessPolicyGetResponse,
19
19
  } from "../models";
20
20
 
21
21
  /// <reference lib="esnext.asynciterable" />
@@ -30,7 +30,7 @@ export interface AccessPolicy {
30
30
  list(
31
31
  resourceGroupName: string,
32
32
  cacheName: string,
33
- options?: AccessPolicyListOptionalParams
33
+ options?: AccessPolicyListOptionalParams,
34
34
  ): PagedAsyncIterableIterator<RedisCacheAccessPolicy>;
35
35
  /**
36
36
  * Adds an access policy to the redis cache
@@ -45,7 +45,7 @@ export interface AccessPolicy {
45
45
  cacheName: string,
46
46
  accessPolicyName: string,
47
47
  parameters: RedisCacheAccessPolicy,
48
- options?: AccessPolicyCreateUpdateOptionalParams
48
+ options?: AccessPolicyCreateUpdateOptionalParams,
49
49
  ): Promise<
50
50
  SimplePollerLike<
51
51
  OperationState<AccessPolicyCreateUpdateResponse>,
@@ -65,7 +65,7 @@ export interface AccessPolicy {
65
65
  cacheName: string,
66
66
  accessPolicyName: string,
67
67
  parameters: RedisCacheAccessPolicy,
68
- options?: AccessPolicyCreateUpdateOptionalParams
68
+ options?: AccessPolicyCreateUpdateOptionalParams,
69
69
  ): Promise<AccessPolicyCreateUpdateResponse>;
70
70
  /**
71
71
  * Deletes the access policy from a redis cache
@@ -78,7 +78,7 @@ export interface AccessPolicy {
78
78
  resourceGroupName: string,
79
79
  cacheName: string,
80
80
  accessPolicyName: string,
81
- options?: AccessPolicyDeleteOptionalParams
81
+ options?: AccessPolicyDeleteOptionalParams,
82
82
  ): Promise<SimplePollerLike<OperationState<void>, void>>;
83
83
  /**
84
84
  * Deletes the access policy from a redis cache
@@ -91,7 +91,7 @@ export interface AccessPolicy {
91
91
  resourceGroupName: string,
92
92
  cacheName: string,
93
93
  accessPolicyName: string,
94
- options?: AccessPolicyDeleteOptionalParams
94
+ options?: AccessPolicyDeleteOptionalParams,
95
95
  ): Promise<void>;
96
96
  /**
97
97
  * Gets the detailed information about an access policy of a redis cache
@@ -104,6 +104,6 @@ export interface AccessPolicy {
104
104
  resourceGroupName: string,
105
105
  cacheName: string,
106
106
  accessPolicyName: string,
107
- options?: AccessPolicyGetOptionalParams
107
+ options?: AccessPolicyGetOptionalParams,
108
108
  ): Promise<AccessPolicyGetResponse>;
109
109
  }
@@ -15,7 +15,7 @@ import {
15
15
  AccessPolicyAssignmentCreateUpdateResponse,
16
16
  AccessPolicyAssignmentDeleteOptionalParams,
17
17
  AccessPolicyAssignmentGetOptionalParams,
18
- AccessPolicyAssignmentGetResponse
18
+ AccessPolicyAssignmentGetResponse,
19
19
  } from "../models";
20
20
 
21
21
  /// <reference lib="esnext.asynciterable" />
@@ -30,7 +30,7 @@ export interface AccessPolicyAssignment {
30
30
  list(
31
31
  resourceGroupName: string,
32
32
  cacheName: string,
33
- options?: AccessPolicyAssignmentListOptionalParams
33
+ options?: AccessPolicyAssignmentListOptionalParams,
34
34
  ): PagedAsyncIterableIterator<RedisCacheAccessPolicyAssignment>;
35
35
  /**
36
36
  * Adds the access policy assignment to the specified users
@@ -45,7 +45,7 @@ export interface AccessPolicyAssignment {
45
45
  cacheName: string,
46
46
  accessPolicyAssignmentName: string,
47
47
  parameters: RedisCacheAccessPolicyAssignment,
48
- options?: AccessPolicyAssignmentCreateUpdateOptionalParams
48
+ options?: AccessPolicyAssignmentCreateUpdateOptionalParams,
49
49
  ): Promise<
50
50
  SimplePollerLike<
51
51
  OperationState<AccessPolicyAssignmentCreateUpdateResponse>,
@@ -65,7 +65,7 @@ export interface AccessPolicyAssignment {
65
65
  cacheName: string,
66
66
  accessPolicyAssignmentName: string,
67
67
  parameters: RedisCacheAccessPolicyAssignment,
68
- options?: AccessPolicyAssignmentCreateUpdateOptionalParams
68
+ options?: AccessPolicyAssignmentCreateUpdateOptionalParams,
69
69
  ): Promise<AccessPolicyAssignmentCreateUpdateResponse>;
70
70
  /**
71
71
  * Deletes the access policy assignment from a redis cache
@@ -78,7 +78,7 @@ export interface AccessPolicyAssignment {
78
78
  resourceGroupName: string,
79
79
  cacheName: string,
80
80
  accessPolicyAssignmentName: string,
81
- options?: AccessPolicyAssignmentDeleteOptionalParams
81
+ options?: AccessPolicyAssignmentDeleteOptionalParams,
82
82
  ): Promise<SimplePollerLike<OperationState<void>, void>>;
83
83
  /**
84
84
  * Deletes the access policy assignment from a redis cache
@@ -91,7 +91,7 @@ export interface AccessPolicyAssignment {
91
91
  resourceGroupName: string,
92
92
  cacheName: string,
93
93
  accessPolicyAssignmentName: string,
94
- options?: AccessPolicyAssignmentDeleteOptionalParams
94
+ options?: AccessPolicyAssignmentDeleteOptionalParams,
95
95
  ): Promise<void>;
96
96
  /**
97
97
  * Gets the list of assignments for an access policy of a redis cache
@@ -104,6 +104,6 @@ export interface AccessPolicyAssignment {
104
104
  resourceGroupName: string,
105
105
  cacheName: string,
106
106
  accessPolicyAssignmentName: string,
107
- options?: AccessPolicyAssignmentGetOptionalParams
107
+ options?: AccessPolicyAssignmentGetOptionalParams,
108
108
  ): Promise<AccessPolicyAssignmentGetResponse>;
109
109
  }
@@ -8,7 +8,7 @@
8
8
 
9
9
  import {
10
10
  AsyncOperationStatusGetOptionalParams,
11
- AsyncOperationStatusGetResponse
11
+ AsyncOperationStatusGetResponse,
12
12
  } from "../models";
13
13
 
14
14
  /** Interface representing a AsyncOperationStatus. */
@@ -22,6 +22,6 @@ export interface AsyncOperationStatus {
22
22
  get(
23
23
  location: string,
24
24
  operationId: string,
25
- options?: AsyncOperationStatusGetOptionalParams
25
+ options?: AsyncOperationStatusGetOptionalParams,
26
26
  ): Promise<AsyncOperationStatusGetResponse>;
27
27
  }
@@ -14,7 +14,7 @@ import {
14
14
  FirewallRulesCreateOrUpdateResponse,
15
15
  FirewallRulesGetOptionalParams,
16
16
  FirewallRulesGetResponse,
17
- FirewallRulesDeleteOptionalParams
17
+ FirewallRulesDeleteOptionalParams,
18
18
  } from "../models";
19
19
 
20
20
  /// <reference lib="esnext.asynciterable" />
@@ -29,7 +29,7 @@ export interface FirewallRules {
29
29
  list(
30
30
  resourceGroupName: string,
31
31
  cacheName: string,
32
- options?: FirewallRulesListOptionalParams
32
+ options?: FirewallRulesListOptionalParams,
33
33
  ): PagedAsyncIterableIterator<RedisFirewallRule>;
34
34
  /**
35
35
  * Create or update a redis cache firewall rule
@@ -44,7 +44,7 @@ export interface FirewallRules {
44
44
  cacheName: string,
45
45
  ruleName: string,
46
46
  parameters: RedisFirewallRule,
47
- options?: FirewallRulesCreateOrUpdateOptionalParams
47
+ options?: FirewallRulesCreateOrUpdateOptionalParams,
48
48
  ): Promise<FirewallRulesCreateOrUpdateResponse>;
49
49
  /**
50
50
  * Gets a single firewall rule in a specified redis cache.
@@ -57,7 +57,7 @@ export interface FirewallRules {
57
57
  resourceGroupName: string,
58
58
  cacheName: string,
59
59
  ruleName: string,
60
- options?: FirewallRulesGetOptionalParams
60
+ options?: FirewallRulesGetOptionalParams,
61
61
  ): Promise<FirewallRulesGetResponse>;
62
62
  /**
63
63
  * Deletes a single firewall rule in a specified redis cache.
@@ -70,6 +70,6 @@ export interface FirewallRules {
70
70
  resourceGroupName: string,
71
71
  cacheName: string,
72
72
  ruleName: string,
73
- options?: FirewallRulesDeleteOptionalParams
73
+ options?: FirewallRulesDeleteOptionalParams,
74
74
  ): Promise<void>;
75
75
  }
@@ -16,7 +16,7 @@ import {
16
16
  LinkedServerCreateResponse,
17
17
  LinkedServerDeleteOptionalParams,
18
18
  LinkedServerGetOptionalParams,
19
- LinkedServerGetResponse
19
+ LinkedServerGetResponse,
20
20
  } from "../models";
21
21
 
22
22
  /// <reference lib="esnext.asynciterable" />
@@ -31,7 +31,7 @@ export interface LinkedServer {
31
31
  list(
32
32
  resourceGroupName: string,
33
33
  name: string,
34
- options?: LinkedServerListOptionalParams
34
+ options?: LinkedServerListOptionalParams,
35
35
  ): PagedAsyncIterableIterator<RedisLinkedServerWithProperties>;
36
36
  /**
37
37
  * Adds a linked server to the Redis cache (requires Premium SKU).
@@ -46,7 +46,7 @@ export interface LinkedServer {
46
46
  name: string,
47
47
  linkedServerName: string,
48
48
  parameters: RedisLinkedServerCreateParameters,
49
- options?: LinkedServerCreateOptionalParams
49
+ options?: LinkedServerCreateOptionalParams,
50
50
  ): Promise<
51
51
  SimplePollerLike<
52
52
  OperationState<LinkedServerCreateResponse>,
@@ -66,7 +66,7 @@ export interface LinkedServer {
66
66
  name: string,
67
67
  linkedServerName: string,
68
68
  parameters: RedisLinkedServerCreateParameters,
69
- options?: LinkedServerCreateOptionalParams
69
+ options?: LinkedServerCreateOptionalParams,
70
70
  ): Promise<LinkedServerCreateResponse>;
71
71
  /**
72
72
  * Deletes the linked server from a redis cache (requires Premium SKU).
@@ -79,7 +79,7 @@ export interface LinkedServer {
79
79
  resourceGroupName: string,
80
80
  name: string,
81
81
  linkedServerName: string,
82
- options?: LinkedServerDeleteOptionalParams
82
+ options?: LinkedServerDeleteOptionalParams,
83
83
  ): Promise<SimplePollerLike<OperationState<void>, void>>;
84
84
  /**
85
85
  * Deletes the linked server from a redis cache (requires Premium SKU).
@@ -92,7 +92,7 @@ export interface LinkedServer {
92
92
  resourceGroupName: string,
93
93
  name: string,
94
94
  linkedServerName: string,
95
- options?: LinkedServerDeleteOptionalParams
95
+ options?: LinkedServerDeleteOptionalParams,
96
96
  ): Promise<void>;
97
97
  /**
98
98
  * Gets the detailed information about a linked server of a redis cache (requires Premium SKU).
@@ -105,6 +105,6 @@ export interface LinkedServer {
105
105
  resourceGroupName: string,
106
106
  name: string,
107
107
  linkedServerName: string,
108
- options?: LinkedServerGetOptionalParams
108
+ options?: LinkedServerGetOptionalParams,
109
109
  ): Promise<LinkedServerGetResponse>;
110
110
  }
@@ -17,6 +17,6 @@ export interface Operations {
17
17
  * @param options The options parameters.
18
18
  */
19
19
  list(
20
- options?: OperationsListOptionalParams
20
+ options?: OperationsListOptionalParams,
21
21
  ): PagedAsyncIterableIterator<Operation>;
22
22
  }
@@ -15,7 +15,7 @@ import {
15
15
  PatchSchedulesCreateOrUpdateResponse,
16
16
  PatchSchedulesDeleteOptionalParams,
17
17
  PatchSchedulesGetOptionalParams,
18
- PatchSchedulesGetResponse
18
+ PatchSchedulesGetResponse,
19
19
  } from "../models";
20
20
 
21
21
  /// <reference lib="esnext.asynciterable" />
@@ -30,7 +30,7 @@ export interface PatchSchedules {
30
30
  listByRedisResource(
31
31
  resourceGroupName: string,
32
32
  cacheName: string,
33
- options?: PatchSchedulesListByRedisResourceOptionalParams
33
+ options?: PatchSchedulesListByRedisResourceOptionalParams,
34
34
  ): PagedAsyncIterableIterator<RedisPatchSchedule>;
35
35
  /**
36
36
  * Create or replace the patching schedule for Redis cache.
@@ -45,7 +45,7 @@ export interface PatchSchedules {
45
45
  name: string,
46
46
  defaultParam: DefaultName,
47
47
  parameters: RedisPatchSchedule,
48
- options?: PatchSchedulesCreateOrUpdateOptionalParams
48
+ options?: PatchSchedulesCreateOrUpdateOptionalParams,
49
49
  ): Promise<PatchSchedulesCreateOrUpdateResponse>;
50
50
  /**
51
51
  * Deletes the patching schedule of a redis cache.
@@ -58,7 +58,7 @@ export interface PatchSchedules {
58
58
  resourceGroupName: string,
59
59
  name: string,
60
60
  defaultParam: DefaultName,
61
- options?: PatchSchedulesDeleteOptionalParams
61
+ options?: PatchSchedulesDeleteOptionalParams,
62
62
  ): Promise<void>;
63
63
  /**
64
64
  * Gets the patching schedule of a redis cache.
@@ -71,6 +71,6 @@ export interface PatchSchedules {
71
71
  resourceGroupName: string,
72
72
  name: string,
73
73
  defaultParam: DefaultName,
74
- options?: PatchSchedulesGetOptionalParams
74
+ options?: PatchSchedulesGetOptionalParams,
75
75
  ): Promise<PatchSchedulesGetResponse>;
76
76
  }
@@ -15,7 +15,7 @@ import {
15
15
  PrivateEndpointConnectionsGetResponse,
16
16
  PrivateEndpointConnectionsPutOptionalParams,
17
17
  PrivateEndpointConnectionsPutResponse,
18
- PrivateEndpointConnectionsDeleteOptionalParams
18
+ PrivateEndpointConnectionsDeleteOptionalParams,
19
19
  } from "../models";
20
20
 
21
21
  /// <reference lib="esnext.asynciterable" />
@@ -30,7 +30,7 @@ export interface PrivateEndpointConnections {
30
30
  list(
31
31
  resourceGroupName: string,
32
32
  cacheName: string,
33
- options?: PrivateEndpointConnectionsListOptionalParams
33
+ options?: PrivateEndpointConnectionsListOptionalParams,
34
34
  ): PagedAsyncIterableIterator<PrivateEndpointConnection>;
35
35
  /**
36
36
  * Gets the specified private endpoint connection associated with the redis cache.
@@ -44,7 +44,7 @@ export interface PrivateEndpointConnections {
44
44
  resourceGroupName: string,
45
45
  cacheName: string,
46
46
  privateEndpointConnectionName: string,
47
- options?: PrivateEndpointConnectionsGetOptionalParams
47
+ options?: PrivateEndpointConnectionsGetOptionalParams,
48
48
  ): Promise<PrivateEndpointConnectionsGetResponse>;
49
49
  /**
50
50
  * Update the state of specified private endpoint connection associated with the redis cache.
@@ -60,7 +60,7 @@ export interface PrivateEndpointConnections {
60
60
  cacheName: string,
61
61
  privateEndpointConnectionName: string,
62
62
  properties: PrivateEndpointConnection,
63
- options?: PrivateEndpointConnectionsPutOptionalParams
63
+ options?: PrivateEndpointConnectionsPutOptionalParams,
64
64
  ): Promise<
65
65
  SimplePollerLike<
66
66
  OperationState<PrivateEndpointConnectionsPutResponse>,
@@ -81,7 +81,7 @@ export interface PrivateEndpointConnections {
81
81
  cacheName: string,
82
82
  privateEndpointConnectionName: string,
83
83
  properties: PrivateEndpointConnection,
84
- options?: PrivateEndpointConnectionsPutOptionalParams
84
+ options?: PrivateEndpointConnectionsPutOptionalParams,
85
85
  ): Promise<PrivateEndpointConnectionsPutResponse>;
86
86
  /**
87
87
  * Deletes the specified private endpoint connection associated with the redis cache.
@@ -95,6 +95,6 @@ export interface PrivateEndpointConnections {
95
95
  resourceGroupName: string,
96
96
  cacheName: string,
97
97
  privateEndpointConnectionName: string,
98
- options?: PrivateEndpointConnectionsDeleteOptionalParams
98
+ options?: PrivateEndpointConnectionsDeleteOptionalParams,
99
99
  ): Promise<void>;
100
100
  }
@@ -9,7 +9,7 @@
9
9
  import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
10
  import {
11
11
  PrivateLinkResource,
12
- PrivateLinkResourcesListByRedisCacheOptionalParams
12
+ PrivateLinkResourcesListByRedisCacheOptionalParams,
13
13
  } from "../models";
14
14
 
15
15
  /// <reference lib="esnext.asynciterable" />
@@ -24,6 +24,6 @@ export interface PrivateLinkResources {
24
24
  listByRedisCache(
25
25
  resourceGroupName: string,
26
26
  cacheName: string,
27
- options?: PrivateLinkResourcesListByRedisCacheOptionalParams
27
+ options?: PrivateLinkResourcesListByRedisCacheOptionalParams,
28
28
  ): PagedAsyncIterableIterator<PrivateLinkResource>;
29
29
  }
@@ -38,7 +38,7 @@ import {
38
38
  ExportRDBParameters,
39
39
  RedisExportDataOptionalParams,
40
40
  RedisFlushCacheOptionalParams,
41
- RedisFlushCacheResponse
41
+ RedisFlushCacheResponse,
42
42
  } from "../models";
43
43
 
44
44
  /// <reference lib="esnext.asynciterable" />
@@ -55,7 +55,7 @@ export interface Redis {
55
55
  resourceGroupName: string,
56
56
  name: string,
57
57
  history: number,
58
- options?: RedisListUpgradeNotificationsOptionalParams
58
+ options?: RedisListUpgradeNotificationsOptionalParams,
59
59
  ): PagedAsyncIterableIterator<UpgradeNotification>;
60
60
  /**
61
61
  * Lists all Redis caches in a resource group.
@@ -64,14 +64,14 @@ export interface Redis {
64
64
  */
65
65
  listByResourceGroup(
66
66
  resourceGroupName: string,
67
- options?: RedisListByResourceGroupOptionalParams
67
+ options?: RedisListByResourceGroupOptionalParams,
68
68
  ): PagedAsyncIterableIterator<RedisResource>;
69
69
  /**
70
70
  * Gets all Redis caches in the specified subscription.
71
71
  * @param options The options parameters.
72
72
  */
73
73
  listBySubscription(
74
- options?: RedisListBySubscriptionOptionalParams
74
+ options?: RedisListBySubscriptionOptionalParams,
75
75
  ): PagedAsyncIterableIterator<RedisResource>;
76
76
  /**
77
77
  * Checks that the redis cache name is valid and is not already in use.
@@ -81,7 +81,7 @@ export interface Redis {
81
81
  */
82
82
  checkNameAvailability(
83
83
  parameters: CheckNameAvailabilityParameters,
84
- options?: RedisCheckNameAvailabilityOptionalParams
84
+ options?: RedisCheckNameAvailabilityOptionalParams,
85
85
  ): Promise<void>;
86
86
  /**
87
87
  * Create or replace (overwrite/recreate, with potential downtime) an existing Redis cache.
@@ -94,7 +94,7 @@ export interface Redis {
94
94
  resourceGroupName: string,
95
95
  name: string,
96
96
  parameters: RedisCreateParameters,
97
- options?: RedisCreateOptionalParams
97
+ options?: RedisCreateOptionalParams,
98
98
  ): Promise<
99
99
  SimplePollerLike<OperationState<RedisCreateResponse>, RedisCreateResponse>
100
100
  >;
@@ -109,7 +109,7 @@ export interface Redis {
109
109
  resourceGroupName: string,
110
110
  name: string,
111
111
  parameters: RedisCreateParameters,
112
- options?: RedisCreateOptionalParams
112
+ options?: RedisCreateOptionalParams,
113
113
  ): Promise<RedisCreateResponse>;
114
114
  /**
115
115
  * Update an existing Redis cache.
@@ -122,7 +122,7 @@ export interface Redis {
122
122
  resourceGroupName: string,
123
123
  name: string,
124
124
  parameters: RedisUpdateParameters,
125
- options?: RedisUpdateOptionalParams
125
+ options?: RedisUpdateOptionalParams,
126
126
  ): Promise<
127
127
  SimplePollerLike<OperationState<RedisUpdateResponse>, RedisUpdateResponse>
128
128
  >;
@@ -137,7 +137,7 @@ export interface Redis {
137
137
  resourceGroupName: string,
138
138
  name: string,
139
139
  parameters: RedisUpdateParameters,
140
- options?: RedisUpdateOptionalParams
140
+ options?: RedisUpdateOptionalParams,
141
141
  ): Promise<RedisUpdateResponse>;
142
142
  /**
143
143
  * Deletes a Redis cache.
@@ -148,7 +148,7 @@ export interface Redis {
148
148
  beginDelete(
149
149
  resourceGroupName: string,
150
150
  name: string,
151
- options?: RedisDeleteOptionalParams
151
+ options?: RedisDeleteOptionalParams,
152
152
  ): Promise<SimplePollerLike<OperationState<void>, void>>;
153
153
  /**
154
154
  * Deletes a Redis cache.
@@ -159,7 +159,7 @@ export interface Redis {
159
159
  beginDeleteAndWait(
160
160
  resourceGroupName: string,
161
161
  name: string,
162
- options?: RedisDeleteOptionalParams
162
+ options?: RedisDeleteOptionalParams,
163
163
  ): Promise<void>;
164
164
  /**
165
165
  * Gets a Redis cache (resource description).
@@ -170,7 +170,7 @@ export interface Redis {
170
170
  get(
171
171
  resourceGroupName: string,
172
172
  name: string,
173
- options?: RedisGetOptionalParams
173
+ options?: RedisGetOptionalParams,
174
174
  ): Promise<RedisGetResponse>;
175
175
  /**
176
176
  * Retrieve a Redis cache's access keys. This operation requires write permission to the cache
@@ -182,7 +182,7 @@ export interface Redis {
182
182
  listKeys(
183
183
  resourceGroupName: string,
184
184
  name: string,
185
- options?: RedisListKeysOptionalParams
185
+ options?: RedisListKeysOptionalParams,
186
186
  ): Promise<RedisListKeysResponse>;
187
187
  /**
188
188
  * Regenerate Redis cache's access keys. This operation requires write permission to the cache
@@ -196,7 +196,7 @@ export interface Redis {
196
196
  resourceGroupName: string,
197
197
  name: string,
198
198
  parameters: RedisRegenerateKeyParameters,
199
- options?: RedisRegenerateKeyOptionalParams
199
+ options?: RedisRegenerateKeyOptionalParams,
200
200
  ): Promise<RedisRegenerateKeyResponse>;
201
201
  /**
202
202
  * Reboot specified Redis node(s). This operation requires write permission to the cache resource.
@@ -210,7 +210,7 @@ export interface Redis {
210
210
  resourceGroupName: string,
211
211
  name: string,
212
212
  parameters: RedisRebootParameters,
213
- options?: RedisForceRebootOptionalParams
213
+ options?: RedisForceRebootOptionalParams,
214
214
  ): Promise<RedisForceRebootOperationResponse>;
215
215
  /**
216
216
  * Import data into Redis cache.
@@ -223,7 +223,7 @@ export interface Redis {
223
223
  resourceGroupName: string,
224
224
  name: string,
225
225
  parameters: ImportRDBParameters,
226
- options?: RedisImportDataOptionalParams
226
+ options?: RedisImportDataOptionalParams,
227
227
  ): Promise<SimplePollerLike<OperationState<void>, void>>;
228
228
  /**
229
229
  * Import data into Redis cache.
@@ -236,7 +236,7 @@ export interface Redis {
236
236
  resourceGroupName: string,
237
237
  name: string,
238
238
  parameters: ImportRDBParameters,
239
- options?: RedisImportDataOptionalParams
239
+ options?: RedisImportDataOptionalParams,
240
240
  ): Promise<void>;
241
241
  /**
242
242
  * Export data from the redis cache to blobs in a container.
@@ -249,7 +249,7 @@ export interface Redis {
249
249
  resourceGroupName: string,
250
250
  name: string,
251
251
  parameters: ExportRDBParameters,
252
- options?: RedisExportDataOptionalParams
252
+ options?: RedisExportDataOptionalParams,
253
253
  ): Promise<SimplePollerLike<OperationState<void>, void>>;
254
254
  /**
255
255
  * Export data from the redis cache to blobs in a container.
@@ -262,7 +262,7 @@ export interface Redis {
262
262
  resourceGroupName: string,
263
263
  name: string,
264
264
  parameters: ExportRDBParameters,
265
- options?: RedisExportDataOptionalParams
265
+ options?: RedisExportDataOptionalParams,
266
266
  ): Promise<void>;
267
267
  /**
268
268
  * Deletes all of the keys in a cache.
@@ -273,7 +273,7 @@ export interface Redis {
273
273
  beginFlushCache(
274
274
  resourceGroupName: string,
275
275
  cacheName: string,
276
- options?: RedisFlushCacheOptionalParams
276
+ options?: RedisFlushCacheOptionalParams,
277
277
  ): Promise<
278
278
  SimplePollerLike<
279
279
  OperationState<RedisFlushCacheResponse>,
@@ -289,6 +289,6 @@ export interface Redis {
289
289
  beginFlushCacheAndWait(
290
290
  resourceGroupName: string,
291
291
  cacheName: string,
292
- options?: RedisFlushCacheOptionalParams
292
+ options?: RedisFlushCacheOptionalParams,
293
293
  ): Promise<RedisFlushCacheResponse>;
294
294
  }
@@ -28,7 +28,7 @@ export function getContinuationToken(page: unknown): string | undefined {
28
28
 
29
29
  export function setContinuationToken(
30
30
  page: unknown,
31
- continuationToken: string | undefined
31
+ continuationToken: string | undefined,
32
32
  ): void {
33
33
  if (typeof page !== "object" || page === null || !continuationToken) {
34
34
  return;
@@ -11,7 +11,7 @@ import * as coreRestPipeline from "@azure/core-rest-pipeline";
11
11
  import {
12
12
  PipelineRequest,
13
13
  PipelineResponse,
14
- SendRequest
14
+ SendRequest,
15
15
  } from "@azure/core-rest-pipeline";
16
16
  import * as coreAuth from "@azure/core-auth";
17
17
  import {
@@ -24,7 +24,7 @@ import {
24
24
  PrivateLinkResourcesImpl,
25
25
  AsyncOperationStatusImpl,
26
26
  AccessPolicyImpl,
27
- AccessPolicyAssignmentImpl
27
+ AccessPolicyAssignmentImpl,
28
28
  } from "./operations";
29
29
  import {
30
30
  Operations,
@@ -36,7 +36,7 @@ import {
36
36
  PrivateLinkResources,
37
37
  AsyncOperationStatus,
38
38
  AccessPolicy,
39
- AccessPolicyAssignment
39
+ AccessPolicyAssignment,
40
40
  } from "./operationsInterfaces";
41
41
  import { RedisManagementClientOptionalParams } from "./models";
42
42
 
@@ -54,7 +54,7 @@ export class RedisManagementClient extends coreClient.ServiceClient {
54
54
  constructor(
55
55
  credentials: coreAuth.TokenCredential,
56
56
  subscriptionId: string,
57
- options?: RedisManagementClientOptionalParams
57
+ options?: RedisManagementClientOptionalParams,
58
58
  ) {
59
59
  if (credentials === undefined) {
60
60
  throw new Error("'credentials' cannot be null");
@@ -69,10 +69,10 @@ export class RedisManagementClient extends coreClient.ServiceClient {
69
69
  }
70
70
  const defaults: RedisManagementClientOptionalParams = {
71
71
  requestContentType: "application/json; charset=utf-8",
72
- credential: credentials
72
+ credential: credentials,
73
73
  };
74
74
 
75
- const packageDetails = `azsdk-js-arm-rediscache/8.0.0`;
75
+ const packageDetails = `azsdk-js-arm-rediscache/8.1.0`;
76
76
  const userAgentPrefix =
77
77
  options.userAgentOptions && options.userAgentOptions.userAgentPrefix
78
78
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
@@ -82,20 +82,21 @@ export class RedisManagementClient extends coreClient.ServiceClient {
82
82
  ...defaults,
83
83
  ...options,
84
84
  userAgentOptions: {
85
- userAgentPrefix
85
+ userAgentPrefix,
86
86
  },
87
87
  endpoint:
88
- options.endpoint ?? options.baseUri ?? "https://management.azure.com"
88
+ options.endpoint ?? options.baseUri ?? "https://management.azure.com",
89
89
  };
90
90
  super(optionsWithDefaults);
91
91
 
92
92
  let bearerTokenAuthenticationPolicyFound: boolean = false;
93
93
  if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
94
- const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();
94
+ const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =
95
+ options.pipeline.getOrderedPolicies();
95
96
  bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
96
97
  (pipelinePolicy) =>
97
98
  pipelinePolicy.name ===
98
- coreRestPipeline.bearerTokenAuthenticationPolicyName
99
+ coreRestPipeline.bearerTokenAuthenticationPolicyName,
99
100
  );
100
101
  }
101
102
  if (
@@ -105,7 +106,7 @@ export class RedisManagementClient extends coreClient.ServiceClient {
105
106
  !bearerTokenAuthenticationPolicyFound
106
107
  ) {
107
108
  this.pipeline.removePolicy({
108
- name: coreRestPipeline.bearerTokenAuthenticationPolicyName
109
+ name: coreRestPipeline.bearerTokenAuthenticationPolicyName,
109
110
  });
110
111
  this.pipeline.addPolicy(
111
112
  coreRestPipeline.bearerTokenAuthenticationPolicy({
@@ -115,9 +116,9 @@ export class RedisManagementClient extends coreClient.ServiceClient {
115
116
  `${optionsWithDefaults.endpoint}/.default`,
116
117
  challengeCallbacks: {
117
118
  authorizeRequestOnChallenge:
118
- coreClient.authorizeRequestOnClaimChallenge
119
- }
120
- })
119
+ coreClient.authorizeRequestOnClaimChallenge,
120
+ },
121
+ }),
121
122
  );
122
123
  }
123
124
  // Parameter assignments
@@ -125,7 +126,7 @@ export class RedisManagementClient extends coreClient.ServiceClient {
125
126
 
126
127
  // Assigning values to Constant parameters
127
128
  this.$host = options.$host || "https://management.azure.com";
128
- this.apiVersion = options.apiVersion || "2023-08-01";
129
+ this.apiVersion = options.apiVersion || "2024-03-01";
129
130
  this.operations = new OperationsImpl(this);
130
131
  this.redis = new RedisImpl(this);
131
132
  this.firewallRules = new FirewallRulesImpl(this);
@@ -148,7 +149,7 @@ export class RedisManagementClient extends coreClient.ServiceClient {
148
149
  name: "CustomApiVersionPolicy",
149
150
  async sendRequest(
150
151
  request: PipelineRequest,
151
- next: SendRequest
152
+ next: SendRequest,
152
153
  ): Promise<PipelineResponse> {
153
154
  const param = request.url.split("?");
154
155
  if (param.length > 1) {
@@ -162,7 +163,7 @@ export class RedisManagementClient extends coreClient.ServiceClient {
162
163
  request.url = param[0] + "?" + newParams.join("&");
163
164
  }
164
165
  return next(request);
165
- }
166
+ },
166
167
  };
167
168
  this.pipeline.addPolicy(apiVersionPolicy);
168
169
  }