@azure/arm-redisenterprisecache 3.0.1-alpha.20240709.1 → 3.1.0-beta.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.
Files changed (111) hide show
  1. package/CHANGELOG.md +28 -13
  2. package/README.md +1 -1
  3. package/dist/index.js +1028 -721
  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/databasesCreateSample.js +11 -10
  8. package/dist-esm/samples-dev/databasesCreateSample.js.map +1 -1
  9. package/dist-esm/samples-dev/databasesDeleteSample.js +1 -1
  10. package/dist-esm/samples-dev/databasesExportSample.js +3 -3
  11. package/dist-esm/samples-dev/databasesExportSample.js.map +1 -1
  12. package/dist-esm/samples-dev/databasesFlushSample.js +4 -4
  13. package/dist-esm/samples-dev/databasesFlushSample.js.map +1 -1
  14. package/dist-esm/samples-dev/databasesForceLinkToReplicationGroupSample.d.ts +2 -0
  15. package/dist-esm/samples-dev/databasesForceLinkToReplicationGroupSample.d.ts.map +1 -0
  16. package/dist-esm/samples-dev/databasesForceLinkToReplicationGroupSample.js +51 -0
  17. package/dist-esm/samples-dev/databasesForceLinkToReplicationGroupSample.js.map +1 -0
  18. package/dist-esm/samples-dev/databasesForceUnlinkSample.js +4 -4
  19. package/dist-esm/samples-dev/databasesForceUnlinkSample.js.map +1 -1
  20. package/dist-esm/samples-dev/databasesGetSample.js +1 -1
  21. package/dist-esm/samples-dev/databasesImportSample.js +4 -4
  22. package/dist-esm/samples-dev/databasesImportSample.js.map +1 -1
  23. package/dist-esm/samples-dev/databasesListByClusterSample.js +1 -1
  24. package/dist-esm/samples-dev/databasesListKeysSample.js +1 -1
  25. package/dist-esm/samples-dev/databasesRegenerateKeySample.js +2 -2
  26. package/dist-esm/samples-dev/databasesRegenerateKeySample.js.map +1 -1
  27. package/dist-esm/samples-dev/databasesUpdateSample.js +3 -3
  28. package/dist-esm/samples-dev/databasesUpdateSample.js.map +1 -1
  29. package/dist-esm/samples-dev/databasesUpgradeDbRedisVersionSample.d.ts +2 -0
  30. package/dist-esm/samples-dev/databasesUpgradeDbRedisVersionSample.d.ts.map +1 -0
  31. package/dist-esm/samples-dev/databasesUpgradeDbRedisVersionSample.js +39 -0
  32. package/dist-esm/samples-dev/databasesUpgradeDbRedisVersionSample.js.map +1 -0
  33. package/dist-esm/samples-dev/operationsListSample.js +1 -1
  34. package/dist-esm/samples-dev/operationsStatusGetSample.js +1 -1
  35. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +1 -1
  36. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +1 -1
  37. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +1 -1
  38. package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.js +4 -4
  39. package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.js.map +1 -1
  40. package/dist-esm/samples-dev/privateLinkResourcesListByClusterSample.js +1 -1
  41. package/dist-esm/samples-dev/redisEnterpriseCreateSample.js +8 -8
  42. package/dist-esm/samples-dev/redisEnterpriseCreateSample.js.map +1 -1
  43. package/dist-esm/samples-dev/redisEnterpriseDeleteSample.js +1 -1
  44. package/dist-esm/samples-dev/redisEnterpriseGetSample.js +1 -1
  45. package/dist-esm/samples-dev/redisEnterpriseListByResourceGroupSample.js +1 -1
  46. package/dist-esm/samples-dev/redisEnterpriseListSample.js +1 -1
  47. package/dist-esm/samples-dev/redisEnterpriseUpdateSample.js +3 -3
  48. package/dist-esm/samples-dev/redisEnterpriseUpdateSample.js.map +1 -1
  49. package/dist-esm/src/lroImpl.js +1 -1
  50. package/dist-esm/src/models/index.d.ts +72 -0
  51. package/dist-esm/src/models/index.d.ts.map +1 -1
  52. package/dist-esm/src/models/index.js +10 -0
  53. package/dist-esm/src/models/index.js.map +1 -1
  54. package/dist-esm/src/models/mappers.d.ts +3 -0
  55. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  56. package/dist-esm/src/models/mappers.js +481 -389
  57. package/dist-esm/src/models/mappers.js.map +1 -1
  58. package/dist-esm/src/models/parameters.d.ts +1 -0
  59. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  60. package/dist-esm/src/models/parameters.js +62 -52
  61. package/dist-esm/src/models/parameters.js.map +1 -1
  62. package/dist-esm/src/operations/databases.d.ts +78 -40
  63. package/dist-esm/src/operations/databases.d.ts.map +1 -1
  64. package/dist-esm/src/operations/databases.js +337 -145
  65. package/dist-esm/src/operations/databases.js.map +1 -1
  66. package/dist-esm/src/operations/operations.js +9 -9
  67. package/dist-esm/src/operations/operationsStatus.js +5 -5
  68. package/dist-esm/src/operations/operationsStatus.js.map +1 -1
  69. package/dist-esm/src/operations/privateEndpointConnections.d.ts +7 -7
  70. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
  71. package/dist-esm/src/operations/privateEndpointConnections.js +42 -42
  72. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
  73. package/dist-esm/src/operations/privateLinkResources.d.ts +2 -2
  74. package/dist-esm/src/operations/privateLinkResources.js +8 -8
  75. package/dist-esm/src/operations/privateLinkResources.js.map +1 -1
  76. package/dist-esm/src/operations/redisEnterprise.d.ts +7 -7
  77. package/dist-esm/src/operations/redisEnterprise.d.ts.map +1 -1
  78. package/dist-esm/src/operations/redisEnterprise.js +66 -66
  79. package/dist-esm/src/operations/redisEnterprise.js.map +1 -1
  80. package/dist-esm/src/operationsInterfaces/databases.d.ts +76 -38
  81. package/dist-esm/src/operationsInterfaces/databases.d.ts.map +1 -1
  82. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +6 -6
  83. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts +1 -1
  84. package/dist-esm/src/operationsInterfaces/redisEnterprise.d.ts +7 -7
  85. package/dist-esm/src/redisEnterpriseManagementClient.d.ts.map +1 -1
  86. package/dist-esm/src/redisEnterpriseManagementClient.js +9 -9
  87. package/dist-esm/src/redisEnterpriseManagementClient.js.map +1 -1
  88. package/dist-esm/test/redisenterprisecache_test.spec.d.ts.map +1 -1
  89. package/dist-esm/test/redisenterprisecache_test.spec.js +0 -3
  90. package/dist-esm/test/redisenterprisecache_test.spec.js.map +1 -1
  91. package/package.json +6 -6
  92. package/review/arm-redisenterprisecache.api.md +54 -0
  93. package/src/lroImpl.ts +3 -3
  94. package/src/models/index.ts +105 -18
  95. package/src/models/mappers.ts +539 -437
  96. package/src/models/parameters.ts +65 -53
  97. package/src/operations/databases.ts +527 -272
  98. package/src/operations/operations.ts +16 -16
  99. package/src/operations/operationsStatus.ts +9 -10
  100. package/src/operations/privateEndpointConnections.ts +78 -83
  101. package/src/operations/privateLinkResources.ts +18 -19
  102. package/src/operations/redisEnterprise.ts +121 -130
  103. package/src/operationsInterfaces/databases.ts +132 -57
  104. package/src/operationsInterfaces/operations.ts +1 -1
  105. package/src/operationsInterfaces/operationsStatus.ts +2 -2
  106. package/src/operationsInterfaces/privateEndpointConnections.ts +13 -13
  107. package/src/operationsInterfaces/privateLinkResources.ts +3 -3
  108. package/src/operationsInterfaces/redisEnterprise.ts +17 -17
  109. package/src/pagingHelper.ts +1 -1
  110. package/src/redisEnterpriseManagementClient.ts +18 -17
  111. package/types/arm-redisenterprisecache.d.ts +170 -51
@@ -19,7 +19,7 @@ import {
19
19
  RedisEnterpriseUpdateResponse,
20
20
  RedisEnterpriseDeleteOptionalParams,
21
21
  RedisEnterpriseGetOptionalParams,
22
- RedisEnterpriseGetResponse
22
+ RedisEnterpriseGetResponse,
23
23
  } from "../models";
24
24
 
25
25
  /// <reference lib="esnext.asynciterable" />
@@ -32,19 +32,19 @@ export interface RedisEnterprise {
32
32
  */
33
33
  listByResourceGroup(
34
34
  resourceGroupName: string,
35
- options?: RedisEnterpriseListByResourceGroupOptionalParams
35
+ options?: RedisEnterpriseListByResourceGroupOptionalParams,
36
36
  ): PagedAsyncIterableIterator<Cluster>;
37
37
  /**
38
38
  * Gets all RedisEnterprise clusters in the specified subscription.
39
39
  * @param options The options parameters.
40
40
  */
41
41
  list(
42
- options?: RedisEnterpriseListOptionalParams
42
+ options?: RedisEnterpriseListOptionalParams,
43
43
  ): PagedAsyncIterableIterator<Cluster>;
44
44
  /**
45
45
  * Creates or updates an existing (overwrite/recreate, with potential downtime) cache cluster
46
46
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
47
- * @param clusterName The name of the RedisEnterprise cluster.
47
+ * @param clusterName The name of the Redis Enterprise cluster.
48
48
  * @param parameters Parameters supplied to the Create RedisEnterprise operation.
49
49
  * @param options The options parameters.
50
50
  */
@@ -52,7 +52,7 @@ export interface RedisEnterprise {
52
52
  resourceGroupName: string,
53
53
  clusterName: string,
54
54
  parameters: Cluster,
55
- options?: RedisEnterpriseCreateOptionalParams
55
+ options?: RedisEnterpriseCreateOptionalParams,
56
56
  ): Promise<
57
57
  SimplePollerLike<
58
58
  OperationState<RedisEnterpriseCreateResponse>,
@@ -62,7 +62,7 @@ export interface RedisEnterprise {
62
62
  /**
63
63
  * Creates or updates an existing (overwrite/recreate, with potential downtime) cache cluster
64
64
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
65
- * @param clusterName The name of the RedisEnterprise cluster.
65
+ * @param clusterName The name of the Redis Enterprise cluster.
66
66
  * @param parameters Parameters supplied to the Create RedisEnterprise operation.
67
67
  * @param options The options parameters.
68
68
  */
@@ -70,12 +70,12 @@ export interface RedisEnterprise {
70
70
  resourceGroupName: string,
71
71
  clusterName: string,
72
72
  parameters: Cluster,
73
- options?: RedisEnterpriseCreateOptionalParams
73
+ options?: RedisEnterpriseCreateOptionalParams,
74
74
  ): Promise<RedisEnterpriseCreateResponse>;
75
75
  /**
76
76
  * Updates an existing RedisEnterprise cluster
77
77
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
78
- * @param clusterName The name of the RedisEnterprise cluster.
78
+ * @param clusterName The name of the Redis Enterprise cluster.
79
79
  * @param parameters Parameters supplied to the Update RedisEnterprise operation.
80
80
  * @param options The options parameters.
81
81
  */
@@ -83,7 +83,7 @@ export interface RedisEnterprise {
83
83
  resourceGroupName: string,
84
84
  clusterName: string,
85
85
  parameters: ClusterUpdate,
86
- options?: RedisEnterpriseUpdateOptionalParams
86
+ options?: RedisEnterpriseUpdateOptionalParams,
87
87
  ): Promise<
88
88
  SimplePollerLike<
89
89
  OperationState<RedisEnterpriseUpdateResponse>,
@@ -93,7 +93,7 @@ export interface RedisEnterprise {
93
93
  /**
94
94
  * Updates an existing RedisEnterprise cluster
95
95
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
96
- * @param clusterName The name of the RedisEnterprise cluster.
96
+ * @param clusterName The name of the Redis Enterprise cluster.
97
97
  * @param parameters Parameters supplied to the Update RedisEnterprise operation.
98
98
  * @param options The options parameters.
99
99
  */
@@ -101,39 +101,39 @@ export interface RedisEnterprise {
101
101
  resourceGroupName: string,
102
102
  clusterName: string,
103
103
  parameters: ClusterUpdate,
104
- options?: RedisEnterpriseUpdateOptionalParams
104
+ options?: RedisEnterpriseUpdateOptionalParams,
105
105
  ): Promise<RedisEnterpriseUpdateResponse>;
106
106
  /**
107
107
  * Deletes a RedisEnterprise cache cluster.
108
108
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
109
- * @param clusterName The name of the RedisEnterprise cluster.
109
+ * @param clusterName The name of the Redis Enterprise cluster.
110
110
  * @param options The options parameters.
111
111
  */
112
112
  beginDelete(
113
113
  resourceGroupName: string,
114
114
  clusterName: string,
115
- options?: RedisEnterpriseDeleteOptionalParams
115
+ options?: RedisEnterpriseDeleteOptionalParams,
116
116
  ): Promise<SimplePollerLike<OperationState<void>, void>>;
117
117
  /**
118
118
  * Deletes a RedisEnterprise cache cluster.
119
119
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
120
- * @param clusterName The name of the RedisEnterprise cluster.
120
+ * @param clusterName The name of the Redis Enterprise cluster.
121
121
  * @param options The options parameters.
122
122
  */
123
123
  beginDeleteAndWait(
124
124
  resourceGroupName: string,
125
125
  clusterName: string,
126
- options?: RedisEnterpriseDeleteOptionalParams
126
+ options?: RedisEnterpriseDeleteOptionalParams,
127
127
  ): Promise<void>;
128
128
  /**
129
129
  * Gets information about a RedisEnterprise cluster
130
130
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
131
- * @param clusterName The name of the RedisEnterprise cluster.
131
+ * @param clusterName The name of the Redis Enterprise cluster.
132
132
  * @param options The options parameters.
133
133
  */
134
134
  get(
135
135
  resourceGroupName: string,
136
136
  clusterName: string,
137
- options?: RedisEnterpriseGetOptionalParams
137
+ options?: RedisEnterpriseGetOptionalParams,
138
138
  ): Promise<RedisEnterpriseGetResponse>;
139
139
  }
@@ -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 {
@@ -20,7 +20,7 @@ import {
20
20
  RedisEnterpriseImpl,
21
21
  DatabasesImpl,
22
22
  PrivateEndpointConnectionsImpl,
23
- PrivateLinkResourcesImpl
23
+ PrivateLinkResourcesImpl,
24
24
  } from "./operations";
25
25
  import {
26
26
  Operations,
@@ -28,7 +28,7 @@ import {
28
28
  RedisEnterprise,
29
29
  Databases,
30
30
  PrivateEndpointConnections,
31
- PrivateLinkResources
31
+ PrivateLinkResources,
32
32
  } from "./operationsInterfaces";
33
33
  import { RedisEnterpriseManagementClientOptionalParams } from "./models";
34
34
 
@@ -46,7 +46,7 @@ export class RedisEnterpriseManagementClient extends coreClient.ServiceClient {
46
46
  constructor(
47
47
  credentials: coreAuth.TokenCredential,
48
48
  subscriptionId: string,
49
- options?: RedisEnterpriseManagementClientOptionalParams
49
+ options?: RedisEnterpriseManagementClientOptionalParams,
50
50
  ) {
51
51
  if (credentials === undefined) {
52
52
  throw new Error("'credentials' cannot be null");
@@ -61,10 +61,10 @@ export class RedisEnterpriseManagementClient extends coreClient.ServiceClient {
61
61
  }
62
62
  const defaults: RedisEnterpriseManagementClientOptionalParams = {
63
63
  requestContentType: "application/json; charset=utf-8",
64
- credential: credentials
64
+ credential: credentials,
65
65
  };
66
66
 
67
- const packageDetails = `azsdk-js-arm-redisenterprisecache/3.0.1`;
67
+ const packageDetails = `azsdk-js-arm-redisenterprisecache/3.1.0-beta.1`;
68
68
  const userAgentPrefix =
69
69
  options.userAgentOptions && options.userAgentOptions.userAgentPrefix
70
70
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
@@ -74,20 +74,21 @@ export class RedisEnterpriseManagementClient extends coreClient.ServiceClient {
74
74
  ...defaults,
75
75
  ...options,
76
76
  userAgentOptions: {
77
- userAgentPrefix
77
+ userAgentPrefix,
78
78
  },
79
79
  endpoint:
80
- options.endpoint ?? options.baseUri ?? "https://management.azure.com"
80
+ options.endpoint ?? options.baseUri ?? "https://management.azure.com",
81
81
  };
82
82
  super(optionsWithDefaults);
83
83
 
84
84
  let bearerTokenAuthenticationPolicyFound: boolean = false;
85
85
  if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
86
- const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();
86
+ const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =
87
+ options.pipeline.getOrderedPolicies();
87
88
  bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
88
89
  (pipelinePolicy) =>
89
90
  pipelinePolicy.name ===
90
- coreRestPipeline.bearerTokenAuthenticationPolicyName
91
+ coreRestPipeline.bearerTokenAuthenticationPolicyName,
91
92
  );
92
93
  }
93
94
  if (
@@ -97,7 +98,7 @@ export class RedisEnterpriseManagementClient extends coreClient.ServiceClient {
97
98
  !bearerTokenAuthenticationPolicyFound
98
99
  ) {
99
100
  this.pipeline.removePolicy({
100
- name: coreRestPipeline.bearerTokenAuthenticationPolicyName
101
+ name: coreRestPipeline.bearerTokenAuthenticationPolicyName,
101
102
  });
102
103
  this.pipeline.addPolicy(
103
104
  coreRestPipeline.bearerTokenAuthenticationPolicy({
@@ -107,9 +108,9 @@ export class RedisEnterpriseManagementClient extends coreClient.ServiceClient {
107
108
  `${optionsWithDefaults.endpoint}/.default`,
108
109
  challengeCallbacks: {
109
110
  authorizeRequestOnChallenge:
110
- coreClient.authorizeRequestOnClaimChallenge
111
- }
112
- })
111
+ coreClient.authorizeRequestOnClaimChallenge,
112
+ },
113
+ }),
113
114
  );
114
115
  }
115
116
  // Parameter assignments
@@ -117,7 +118,7 @@ export class RedisEnterpriseManagementClient extends coreClient.ServiceClient {
117
118
 
118
119
  // Assigning values to Constant parameters
119
120
  this.$host = options.$host || "https://management.azure.com";
120
- this.apiVersion = options.apiVersion || "2023-11-01";
121
+ this.apiVersion = options.apiVersion || "2024-03-01-preview";
121
122
  this.operations = new OperationsImpl(this);
122
123
  this.operationsStatus = new OperationsStatusImpl(this);
123
124
  this.redisEnterprise = new RedisEnterpriseImpl(this);
@@ -136,7 +137,7 @@ export class RedisEnterpriseManagementClient extends coreClient.ServiceClient {
136
137
  name: "CustomApiVersionPolicy",
137
138
  async sendRequest(
138
139
  request: PipelineRequest,
139
- next: SendRequest
140
+ next: SendRequest,
140
141
  ): Promise<PipelineResponse> {
141
142
  const param = request.url.split("?");
142
143
  if (param.length > 1) {
@@ -150,7 +151,7 @@ export class RedisEnterpriseManagementClient extends coreClient.ServiceClient {
150
151
  request.url = param[0] + "?" + newParams.join("&");
151
152
  }
152
153
  return next(request);
153
- }
154
+ },
154
155
  };
155
156
  this.pipeline.addPolicy(apiVersionPolicy);
156
157
  }