@azure/arm-cosmosdbforpostgresql 1.0.1-alpha.20240321.1 → 1.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 (112) hide show
  1. package/CHANGELOG.md +24 -10
  2. package/LICENSE +1 -1
  3. package/README.md +1 -1
  4. package/dist/index.js +1060 -948
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.min.js +1 -1
  7. package/dist/index.min.js.map +1 -1
  8. package/dist-esm/samples-dev/clustersCheckNameAvailabilitySample.js +3 -3
  9. package/dist-esm/samples-dev/clustersCheckNameAvailabilitySample.js.map +1 -1
  10. package/dist-esm/samples-dev/clustersCreateSample.js +13 -13
  11. package/dist-esm/samples-dev/clustersCreateSample.js.map +1 -1
  12. package/dist-esm/samples-dev/clustersDeleteSample.js +1 -1
  13. package/dist-esm/samples-dev/clustersGetSample.js +1 -1
  14. package/dist-esm/samples-dev/clustersListByResourceGroupSample.js +1 -1
  15. package/dist-esm/samples-dev/clustersListSample.js +1 -1
  16. package/dist-esm/samples-dev/clustersPromoteReadReplicaSample.js +1 -1
  17. package/dist-esm/samples-dev/clustersRestartSample.js +1 -1
  18. package/dist-esm/samples-dev/clustersStartSample.js +1 -1
  19. package/dist-esm/samples-dev/clustersStopSample.js +1 -1
  20. package/dist-esm/samples-dev/clustersUpdateSample.js +9 -9
  21. package/dist-esm/samples-dev/clustersUpdateSample.js.map +1 -1
  22. package/dist-esm/samples-dev/configurationsGetCoordinatorSample.js +1 -1
  23. package/dist-esm/samples-dev/configurationsGetNodeSample.js +1 -1
  24. package/dist-esm/samples-dev/configurationsGetSample.js +1 -1
  25. package/dist-esm/samples-dev/configurationsListByClusterSample.js +1 -1
  26. package/dist-esm/samples-dev/configurationsListByServerSample.js +1 -1
  27. package/dist-esm/samples-dev/configurationsUpdateOnCoordinatorSample.js +2 -2
  28. package/dist-esm/samples-dev/configurationsUpdateOnCoordinatorSample.js.map +1 -1
  29. package/dist-esm/samples-dev/configurationsUpdateOnNodeSample.js +2 -2
  30. package/dist-esm/samples-dev/configurationsUpdateOnNodeSample.js.map +1 -1
  31. package/dist-esm/samples-dev/firewallRulesCreateOrUpdateSample.js +3 -3
  32. package/dist-esm/samples-dev/firewallRulesCreateOrUpdateSample.js.map +1 -1
  33. package/dist-esm/samples-dev/firewallRulesDeleteSample.js +1 -1
  34. package/dist-esm/samples-dev/firewallRulesGetSample.js +1 -1
  35. package/dist-esm/samples-dev/firewallRulesListByClusterSample.js +1 -1
  36. package/dist-esm/samples-dev/operationsListSample.js +1 -1
  37. package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js +4 -4
  38. package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js.map +1 -1
  39. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +1 -1
  40. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +1 -1
  41. package/dist-esm/samples-dev/privateEndpointConnectionsListByClusterSample.js +1 -1
  42. package/dist-esm/samples-dev/privateLinkResourcesGetSample.js +1 -1
  43. package/dist-esm/samples-dev/privateLinkResourcesListByClusterSample.js +1 -1
  44. package/dist-esm/samples-dev/rolesCreateSample.js +1 -1
  45. package/dist-esm/samples-dev/rolesDeleteSample.js +1 -1
  46. package/dist-esm/samples-dev/rolesGetSample.js +1 -1
  47. package/dist-esm/samples-dev/rolesListByClusterSample.js +1 -1
  48. package/dist-esm/samples-dev/serversGetSample.js +1 -1
  49. package/dist-esm/samples-dev/serversListByClusterSample.js +1 -1
  50. package/dist-esm/src/cosmosDBForPostgreSQL.d.ts.map +1 -1
  51. package/dist-esm/src/cosmosDBForPostgreSQL.js +9 -9
  52. package/dist-esm/src/cosmosDBForPostgreSQL.js.map +1 -1
  53. package/dist-esm/src/lroImpl.js +1 -1
  54. package/dist-esm/src/models/index.d.ts +91 -2
  55. package/dist-esm/src/models/index.d.ts.map +1 -1
  56. package/dist-esm/src/models/index.js +34 -0
  57. package/dist-esm/src/models/index.js.map +1 -1
  58. package/dist-esm/src/models/mappers.d.ts +2 -0
  59. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  60. package/dist-esm/src/models/mappers.js +649 -579
  61. package/dist-esm/src/models/mappers.js.map +1 -1
  62. package/dist-esm/src/models/parameters.d.ts +1 -0
  63. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  64. package/dist-esm/src/models/parameters.js +63 -59
  65. package/dist-esm/src/models/parameters.js.map +1 -1
  66. package/dist-esm/src/operations/clusters.d.ts.map +1 -1
  67. package/dist-esm/src/operations/clusters.js +106 -104
  68. package/dist-esm/src/operations/clusters.js.map +1 -1
  69. package/dist-esm/src/operations/configurations.d.ts.map +1 -1
  70. package/dist-esm/src/operations/configurations.js +64 -64
  71. package/dist-esm/src/operations/configurations.js.map +1 -1
  72. package/dist-esm/src/operations/firewallRules.d.ts.map +1 -1
  73. package/dist-esm/src/operations/firewallRules.js +37 -37
  74. package/dist-esm/src/operations/firewallRules.js.map +1 -1
  75. package/dist-esm/src/operations/operations.js +5 -5
  76. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
  77. package/dist-esm/src/operations/privateEndpointConnections.js +39 -39
  78. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
  79. package/dist-esm/src/operations/privateLinkResources.js +11 -11
  80. package/dist-esm/src/operations/privateLinkResources.js.map +1 -1
  81. package/dist-esm/src/operations/roles.d.ts.map +1 -1
  82. package/dist-esm/src/operations/roles.js +36 -36
  83. package/dist-esm/src/operations/roles.js.map +1 -1
  84. package/dist-esm/src/operations/servers.js +11 -11
  85. package/dist-esm/src/operations/servers.js.map +1 -1
  86. package/dist-esm/test/cosmosdbforpostgresql_operations_test.spec.js +2 -2
  87. package/dist-esm/test/cosmosdbforpostgresql_operations_test.spec.js.map +1 -1
  88. package/package.json +9 -9
  89. package/review/arm-cosmosdbforpostgresql.api.md +63 -1
  90. package/src/cosmosDBForPostgreSQL.ts +18 -17
  91. package/src/lroImpl.ts +3 -3
  92. package/src/models/index.ts +124 -17
  93. package/src/models/mappers.ts +710 -628
  94. package/src/models/parameters.ts +66 -60
  95. package/src/operations/clusters.ts +208 -224
  96. package/src/operations/configurations.ts +122 -131
  97. package/src/operations/firewallRules.ts +72 -78
  98. package/src/operations/operations.ts +10 -10
  99. package/src/operations/privateEndpointConnections.ts +76 -81
  100. package/src/operations/privateLinkResources.ts +24 -26
  101. package/src/operations/roles.ts +71 -77
  102. package/src/operations/servers.ts +24 -26
  103. package/src/operationsInterfaces/clusters.ts +19 -19
  104. package/src/operationsInterfaces/configurations.ts +10 -10
  105. package/src/operationsInterfaces/firewallRules.ts +7 -7
  106. package/src/operationsInterfaces/operations.ts +1 -1
  107. package/src/operationsInterfaces/privateEndpointConnections.ts +7 -7
  108. package/src/operationsInterfaces/privateLinkResources.ts +3 -3
  109. package/src/operationsInterfaces/roles.ts +7 -7
  110. package/src/operationsInterfaces/servers.ts +3 -3
  111. package/src/pagingHelper.ts +1 -1
  112. package/types/arm-cosmosdbforpostgresql.d.ts +101 -2
@@ -28,7 +28,7 @@ import {
28
28
  ClustersPromoteReadReplicaResponse,
29
29
  NameAvailabilityRequest,
30
30
  ClustersCheckNameAvailabilityOptionalParams,
31
- ClustersCheckNameAvailabilityResponse
31
+ ClustersCheckNameAvailabilityResponse,
32
32
  } from "../models";
33
33
 
34
34
  /// <reference lib="esnext.asynciterable" />
@@ -39,7 +39,7 @@ export interface Clusters {
39
39
  * @param options The options parameters.
40
40
  */
41
41
  list(
42
- options?: ClustersListOptionalParams
42
+ options?: ClustersListOptionalParams,
43
43
  ): PagedAsyncIterableIterator<Cluster>;
44
44
  /**
45
45
  * Lists all clusters in a resource group.
@@ -48,7 +48,7 @@ export interface Clusters {
48
48
  */
49
49
  listByResourceGroup(
50
50
  resourceGroupName: string,
51
- options?: ClustersListByResourceGroupOptionalParams
51
+ options?: ClustersListByResourceGroupOptionalParams,
52
52
  ): PagedAsyncIterableIterator<Cluster>;
53
53
  /**
54
54
  * Creates a new cluster with servers.
@@ -61,7 +61,7 @@ export interface Clusters {
61
61
  resourceGroupName: string,
62
62
  clusterName: string,
63
63
  parameters: Cluster,
64
- options?: ClustersCreateOptionalParams
64
+ options?: ClustersCreateOptionalParams,
65
65
  ): Promise<
66
66
  SimplePollerLike<
67
67
  OperationState<ClustersCreateResponse>,
@@ -79,7 +79,7 @@ export interface Clusters {
79
79
  resourceGroupName: string,
80
80
  clusterName: string,
81
81
  parameters: Cluster,
82
- options?: ClustersCreateOptionalParams
82
+ options?: ClustersCreateOptionalParams,
83
83
  ): Promise<ClustersCreateResponse>;
84
84
  /**
85
85
  * Gets information about a cluster such as compute and storage configuration and cluster lifecycle
@@ -91,7 +91,7 @@ export interface Clusters {
91
91
  get(
92
92
  resourceGroupName: string,
93
93
  clusterName: string,
94
- options?: ClustersGetOptionalParams
94
+ options?: ClustersGetOptionalParams,
95
95
  ): Promise<ClustersGetResponse>;
96
96
  /**
97
97
  * Deletes a cluster together with servers in it.
@@ -102,7 +102,7 @@ export interface Clusters {
102
102
  beginDelete(
103
103
  resourceGroupName: string,
104
104
  clusterName: string,
105
- options?: ClustersDeleteOptionalParams
105
+ options?: ClustersDeleteOptionalParams,
106
106
  ): Promise<SimplePollerLike<OperationState<void>, void>>;
107
107
  /**
108
108
  * Deletes a cluster together with servers in it.
@@ -113,7 +113,7 @@ export interface Clusters {
113
113
  beginDeleteAndWait(
114
114
  resourceGroupName: string,
115
115
  clusterName: string,
116
- options?: ClustersDeleteOptionalParams
116
+ options?: ClustersDeleteOptionalParams,
117
117
  ): Promise<void>;
118
118
  /**
119
119
  * Updates an existing cluster. The request body can contain one or several properties from the cluster
@@ -127,7 +127,7 @@ export interface Clusters {
127
127
  resourceGroupName: string,
128
128
  clusterName: string,
129
129
  parameters: ClusterForUpdate,
130
- options?: ClustersUpdateOptionalParams
130
+ options?: ClustersUpdateOptionalParams,
131
131
  ): Promise<
132
132
  SimplePollerLike<
133
133
  OperationState<ClustersUpdateResponse>,
@@ -146,7 +146,7 @@ export interface Clusters {
146
146
  resourceGroupName: string,
147
147
  clusterName: string,
148
148
  parameters: ClusterForUpdate,
149
- options?: ClustersUpdateOptionalParams
149
+ options?: ClustersUpdateOptionalParams,
150
150
  ): Promise<ClustersUpdateResponse>;
151
151
  /**
152
152
  * Restarts all nodes in the cluster.
@@ -157,7 +157,7 @@ export interface Clusters {
157
157
  beginRestart(
158
158
  resourceGroupName: string,
159
159
  clusterName: string,
160
- options?: ClustersRestartOptionalParams
160
+ options?: ClustersRestartOptionalParams,
161
161
  ): Promise<
162
162
  SimplePollerLike<
163
163
  OperationState<ClustersRestartResponse>,
@@ -173,7 +173,7 @@ export interface Clusters {
173
173
  beginRestartAndWait(
174
174
  resourceGroupName: string,
175
175
  clusterName: string,
176
- options?: ClustersRestartOptionalParams
176
+ options?: ClustersRestartOptionalParams,
177
177
  ): Promise<ClustersRestartResponse>;
178
178
  /**
179
179
  * Starts stopped compute on all cluster nodes.
@@ -184,7 +184,7 @@ export interface Clusters {
184
184
  beginStart(
185
185
  resourceGroupName: string,
186
186
  clusterName: string,
187
- options?: ClustersStartOptionalParams
187
+ options?: ClustersStartOptionalParams,
188
188
  ): Promise<SimplePollerLike<OperationState<void>, void>>;
189
189
  /**
190
190
  * Starts stopped compute on all cluster nodes.
@@ -195,7 +195,7 @@ export interface Clusters {
195
195
  beginStartAndWait(
196
196
  resourceGroupName: string,
197
197
  clusterName: string,
198
- options?: ClustersStartOptionalParams
198
+ options?: ClustersStartOptionalParams,
199
199
  ): Promise<void>;
200
200
  /**
201
201
  * Stops compute on all cluster nodes.
@@ -206,7 +206,7 @@ export interface Clusters {
206
206
  beginStop(
207
207
  resourceGroupName: string,
208
208
  clusterName: string,
209
- options?: ClustersStopOptionalParams
209
+ options?: ClustersStopOptionalParams,
210
210
  ): Promise<SimplePollerLike<OperationState<void>, void>>;
211
211
  /**
212
212
  * Stops compute on all cluster nodes.
@@ -217,7 +217,7 @@ export interface Clusters {
217
217
  beginStopAndWait(
218
218
  resourceGroupName: string,
219
219
  clusterName: string,
220
- options?: ClustersStopOptionalParams
220
+ options?: ClustersStopOptionalParams,
221
221
  ): Promise<void>;
222
222
  /**
223
223
  * Promotes read replica cluster to an independent read-write cluster.
@@ -228,7 +228,7 @@ export interface Clusters {
228
228
  beginPromoteReadReplica(
229
229
  resourceGroupName: string,
230
230
  clusterName: string,
231
- options?: ClustersPromoteReadReplicaOptionalParams
231
+ options?: ClustersPromoteReadReplicaOptionalParams,
232
232
  ): Promise<
233
233
  SimplePollerLike<
234
234
  OperationState<ClustersPromoteReadReplicaResponse>,
@@ -244,7 +244,7 @@ export interface Clusters {
244
244
  beginPromoteReadReplicaAndWait(
245
245
  resourceGroupName: string,
246
246
  clusterName: string,
247
- options?: ClustersPromoteReadReplicaOptionalParams
247
+ options?: ClustersPromoteReadReplicaOptionalParams,
248
248
  ): Promise<ClustersPromoteReadReplicaResponse>;
249
249
  /**
250
250
  * Checks availability of a cluster name. Cluster names should be globally unique; at least 3
@@ -255,6 +255,6 @@ export interface Clusters {
255
255
  */
256
256
  checkNameAvailability(
257
257
  nameAvailabilityRequest: NameAvailabilityRequest,
258
- options?: ClustersCheckNameAvailabilityOptionalParams
258
+ options?: ClustersCheckNameAvailabilityOptionalParams,
259
259
  ): Promise<ClustersCheckNameAvailabilityResponse>;
260
260
  }
@@ -22,7 +22,7 @@ import {
22
22
  ConfigurationsGetNodeOptionalParams,
23
23
  ConfigurationsGetNodeResponse,
24
24
  ConfigurationsUpdateOnNodeOptionalParams,
25
- ConfigurationsUpdateOnNodeResponse
25
+ ConfigurationsUpdateOnNodeResponse,
26
26
  } from "../models";
27
27
 
28
28
  /// <reference lib="esnext.asynciterable" />
@@ -39,7 +39,7 @@ export interface Configurations {
39
39
  resourceGroupName: string,
40
40
  clusterName: string,
41
41
  serverName: string,
42
- options?: ConfigurationsListByServerOptionalParams
42
+ options?: ConfigurationsListByServerOptionalParams,
43
43
  ): PagedAsyncIterableIterator<ServerConfiguration>;
44
44
  /**
45
45
  * List all the configurations of a cluster.
@@ -50,7 +50,7 @@ export interface Configurations {
50
50
  listByCluster(
51
51
  resourceGroupName: string,
52
52
  clusterName: string,
53
- options?: ConfigurationsListByClusterOptionalParams
53
+ options?: ConfigurationsListByClusterOptionalParams,
54
54
  ): PagedAsyncIterableIterator<Configuration>;
55
55
  /**
56
56
  * Gets information of a configuration for coordinator and nodes.
@@ -63,7 +63,7 @@ export interface Configurations {
63
63
  resourceGroupName: string,
64
64
  clusterName: string,
65
65
  configurationName: string,
66
- options?: ConfigurationsGetOptionalParams
66
+ options?: ConfigurationsGetOptionalParams,
67
67
  ): Promise<ConfigurationsGetResponse>;
68
68
  /**
69
69
  * Gets information of a configuration for coordinator.
@@ -76,7 +76,7 @@ export interface Configurations {
76
76
  resourceGroupName: string,
77
77
  clusterName: string,
78
78
  configurationName: string,
79
- options?: ConfigurationsGetCoordinatorOptionalParams
79
+ options?: ConfigurationsGetCoordinatorOptionalParams,
80
80
  ): Promise<ConfigurationsGetCoordinatorResponse>;
81
81
  /**
82
82
  * Updates configuration of coordinator in a cluster
@@ -91,7 +91,7 @@ export interface Configurations {
91
91
  clusterName: string,
92
92
  configurationName: string,
93
93
  parameters: ServerConfiguration,
94
- options?: ConfigurationsUpdateOnCoordinatorOptionalParams
94
+ options?: ConfigurationsUpdateOnCoordinatorOptionalParams,
95
95
  ): Promise<
96
96
  SimplePollerLike<
97
97
  OperationState<ConfigurationsUpdateOnCoordinatorResponse>,
@@ -111,7 +111,7 @@ export interface Configurations {
111
111
  clusterName: string,
112
112
  configurationName: string,
113
113
  parameters: ServerConfiguration,
114
- options?: ConfigurationsUpdateOnCoordinatorOptionalParams
114
+ options?: ConfigurationsUpdateOnCoordinatorOptionalParams,
115
115
  ): Promise<ConfigurationsUpdateOnCoordinatorResponse>;
116
116
  /**
117
117
  * Gets information of a configuration for worker nodes.
@@ -124,7 +124,7 @@ export interface Configurations {
124
124
  resourceGroupName: string,
125
125
  clusterName: string,
126
126
  configurationName: string,
127
- options?: ConfigurationsGetNodeOptionalParams
127
+ options?: ConfigurationsGetNodeOptionalParams,
128
128
  ): Promise<ConfigurationsGetNodeResponse>;
129
129
  /**
130
130
  * Updates configuration of worker nodes in a cluster
@@ -139,7 +139,7 @@ export interface Configurations {
139
139
  clusterName: string,
140
140
  configurationName: string,
141
141
  parameters: ServerConfiguration,
142
- options?: ConfigurationsUpdateOnNodeOptionalParams
142
+ options?: ConfigurationsUpdateOnNodeOptionalParams,
143
143
  ): Promise<
144
144
  SimplePollerLike<
145
145
  OperationState<ConfigurationsUpdateOnNodeResponse>,
@@ -159,6 +159,6 @@ export interface Configurations {
159
159
  clusterName: string,
160
160
  configurationName: string,
161
161
  parameters: ServerConfiguration,
162
- options?: ConfigurationsUpdateOnNodeOptionalParams
162
+ options?: ConfigurationsUpdateOnNodeOptionalParams,
163
163
  ): Promise<ConfigurationsUpdateOnNodeResponse>;
164
164
  }
@@ -16,7 +16,7 @@ import {
16
16
  FirewallRulesDeleteOptionalParams,
17
17
  FirewallRulesDeleteResponse,
18
18
  FirewallRulesGetOptionalParams,
19
- FirewallRulesGetResponse
19
+ FirewallRulesGetResponse,
20
20
  } from "../models";
21
21
 
22
22
  /// <reference lib="esnext.asynciterable" />
@@ -31,7 +31,7 @@ export interface FirewallRules {
31
31
  listByCluster(
32
32
  resourceGroupName: string,
33
33
  clusterName: string,
34
- options?: FirewallRulesListByClusterOptionalParams
34
+ options?: FirewallRulesListByClusterOptionalParams,
35
35
  ): PagedAsyncIterableIterator<FirewallRule>;
36
36
  /**
37
37
  * Creates a new cluster firewall rule or updates an existing cluster firewall rule.
@@ -46,7 +46,7 @@ export interface FirewallRules {
46
46
  clusterName: string,
47
47
  firewallRuleName: string,
48
48
  parameters: FirewallRule,
49
- options?: FirewallRulesCreateOrUpdateOptionalParams
49
+ options?: FirewallRulesCreateOrUpdateOptionalParams,
50
50
  ): Promise<
51
51
  SimplePollerLike<
52
52
  OperationState<FirewallRulesCreateOrUpdateResponse>,
@@ -66,7 +66,7 @@ export interface FirewallRules {
66
66
  clusterName: string,
67
67
  firewallRuleName: string,
68
68
  parameters: FirewallRule,
69
- options?: FirewallRulesCreateOrUpdateOptionalParams
69
+ options?: FirewallRulesCreateOrUpdateOptionalParams,
70
70
  ): Promise<FirewallRulesCreateOrUpdateResponse>;
71
71
  /**
72
72
  * Deletes a cluster firewall rule.
@@ -79,7 +79,7 @@ export interface FirewallRules {
79
79
  resourceGroupName: string,
80
80
  clusterName: string,
81
81
  firewallRuleName: string,
82
- options?: FirewallRulesDeleteOptionalParams
82
+ options?: FirewallRulesDeleteOptionalParams,
83
83
  ): Promise<
84
84
  SimplePollerLike<
85
85
  OperationState<FirewallRulesDeleteResponse>,
@@ -97,7 +97,7 @@ export interface FirewallRules {
97
97
  resourceGroupName: string,
98
98
  clusterName: string,
99
99
  firewallRuleName: string,
100
- options?: FirewallRulesDeleteOptionalParams
100
+ options?: FirewallRulesDeleteOptionalParams,
101
101
  ): Promise<FirewallRulesDeleteResponse>;
102
102
  /**
103
103
  * Gets information about a cluster firewall rule.
@@ -110,6 +110,6 @@ export interface FirewallRules {
110
110
  resourceGroupName: string,
111
111
  clusterName: string,
112
112
  firewallRuleName: string,
113
- options?: FirewallRulesGetOptionalParams
113
+ options?: FirewallRulesGetOptionalParams,
114
114
  ): Promise<FirewallRulesGetResponse>;
115
115
  }
@@ -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
  }
@@ -16,7 +16,7 @@ import {
16
16
  PrivateEndpointConnectionsCreateOrUpdateOptionalParams,
17
17
  PrivateEndpointConnectionsCreateOrUpdateResponse,
18
18
  PrivateEndpointConnectionsDeleteOptionalParams,
19
- PrivateEndpointConnectionsDeleteResponse
19
+ PrivateEndpointConnectionsDeleteResponse,
20
20
  } from "../models";
21
21
 
22
22
  /// <reference lib="esnext.asynciterable" />
@@ -31,7 +31,7 @@ export interface PrivateEndpointConnections {
31
31
  listByCluster(
32
32
  resourceGroupName: string,
33
33
  clusterName: string,
34
- options?: PrivateEndpointConnectionsListByClusterOptionalParams
34
+ options?: PrivateEndpointConnectionsListByClusterOptionalParams,
35
35
  ): PagedAsyncIterableIterator<PrivateEndpointConnection>;
36
36
  /**
37
37
  * Gets private endpoint connection.
@@ -45,7 +45,7 @@ export interface PrivateEndpointConnections {
45
45
  resourceGroupName: string,
46
46
  clusterName: string,
47
47
  privateEndpointConnectionName: string,
48
- options?: PrivateEndpointConnectionsGetOptionalParams
48
+ options?: PrivateEndpointConnectionsGetOptionalParams,
49
49
  ): Promise<PrivateEndpointConnectionsGetResponse>;
50
50
  /**
51
51
  * Approves or Rejects a private endpoint connection with a given name.
@@ -61,7 +61,7 @@ export interface PrivateEndpointConnections {
61
61
  clusterName: string,
62
62
  privateEndpointConnectionName: string,
63
63
  parameters: PrivateEndpointConnection,
64
- options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams
64
+ options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams,
65
65
  ): Promise<
66
66
  SimplePollerLike<
67
67
  OperationState<PrivateEndpointConnectionsCreateOrUpdateResponse>,
@@ -82,7 +82,7 @@ export interface PrivateEndpointConnections {
82
82
  clusterName: string,
83
83
  privateEndpointConnectionName: string,
84
84
  parameters: PrivateEndpointConnection,
85
- options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams
85
+ options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams,
86
86
  ): Promise<PrivateEndpointConnectionsCreateOrUpdateResponse>;
87
87
  /**
88
88
  * Deletes a private endpoint connection with a given name.
@@ -96,7 +96,7 @@ export interface PrivateEndpointConnections {
96
96
  resourceGroupName: string,
97
97
  clusterName: string,
98
98
  privateEndpointConnectionName: string,
99
- options?: PrivateEndpointConnectionsDeleteOptionalParams
99
+ options?: PrivateEndpointConnectionsDeleteOptionalParams,
100
100
  ): Promise<
101
101
  SimplePollerLike<
102
102
  OperationState<PrivateEndpointConnectionsDeleteResponse>,
@@ -115,6 +115,6 @@ export interface PrivateEndpointConnections {
115
115
  resourceGroupName: string,
116
116
  clusterName: string,
117
117
  privateEndpointConnectionName: string,
118
- options?: PrivateEndpointConnectionsDeleteOptionalParams
118
+ options?: PrivateEndpointConnectionsDeleteOptionalParams,
119
119
  ): Promise<PrivateEndpointConnectionsDeleteResponse>;
120
120
  }
@@ -11,7 +11,7 @@ import {
11
11
  PrivateLinkResource,
12
12
  PrivateLinkResourcesListByClusterOptionalParams,
13
13
  PrivateLinkResourcesGetOptionalParams,
14
- PrivateLinkResourcesGetResponse
14
+ PrivateLinkResourcesGetResponse,
15
15
  } from "../models";
16
16
 
17
17
  /// <reference lib="esnext.asynciterable" />
@@ -26,7 +26,7 @@ export interface PrivateLinkResources {
26
26
  listByCluster(
27
27
  resourceGroupName: string,
28
28
  clusterName: string,
29
- options?: PrivateLinkResourcesListByClusterOptionalParams
29
+ options?: PrivateLinkResourcesListByClusterOptionalParams,
30
30
  ): PagedAsyncIterableIterator<PrivateLinkResource>;
31
31
  /**
32
32
  * Gets a private link resource for cluster.
@@ -39,6 +39,6 @@ export interface PrivateLinkResources {
39
39
  resourceGroupName: string,
40
40
  clusterName: string,
41
41
  privateLinkResourceName: string,
42
- options?: PrivateLinkResourcesGetOptionalParams
42
+ options?: PrivateLinkResourcesGetOptionalParams,
43
43
  ): Promise<PrivateLinkResourcesGetResponse>;
44
44
  }
@@ -16,7 +16,7 @@ import {
16
16
  RolesCreateOptionalParams,
17
17
  RolesCreateResponse,
18
18
  RolesDeleteOptionalParams,
19
- RolesDeleteResponse
19
+ RolesDeleteResponse,
20
20
  } from "../models";
21
21
 
22
22
  /// <reference lib="esnext.asynciterable" />
@@ -31,7 +31,7 @@ export interface Roles {
31
31
  listByCluster(
32
32
  resourceGroupName: string,
33
33
  clusterName: string,
34
- options?: RolesListByClusterOptionalParams
34
+ options?: RolesListByClusterOptionalParams,
35
35
  ): PagedAsyncIterableIterator<Role>;
36
36
  /**
37
37
  * Gets information about a cluster role.
@@ -44,7 +44,7 @@ export interface Roles {
44
44
  resourceGroupName: string,
45
45
  clusterName: string,
46
46
  roleName: string,
47
- options?: RolesGetOptionalParams
47
+ options?: RolesGetOptionalParams,
48
48
  ): Promise<RolesGetResponse>;
49
49
  /**
50
50
  * Creates a new role or updates an existing role.
@@ -59,7 +59,7 @@ export interface Roles {
59
59
  clusterName: string,
60
60
  roleName: string,
61
61
  parameters: Role,
62
- options?: RolesCreateOptionalParams
62
+ options?: RolesCreateOptionalParams,
63
63
  ): Promise<
64
64
  SimplePollerLike<OperationState<RolesCreateResponse>, RolesCreateResponse>
65
65
  >;
@@ -76,7 +76,7 @@ export interface Roles {
76
76
  clusterName: string,
77
77
  roleName: string,
78
78
  parameters: Role,
79
- options?: RolesCreateOptionalParams
79
+ options?: RolesCreateOptionalParams,
80
80
  ): Promise<RolesCreateResponse>;
81
81
  /**
82
82
  * Deletes a cluster role.
@@ -89,7 +89,7 @@ export interface Roles {
89
89
  resourceGroupName: string,
90
90
  clusterName: string,
91
91
  roleName: string,
92
- options?: RolesDeleteOptionalParams
92
+ options?: RolesDeleteOptionalParams,
93
93
  ): Promise<
94
94
  SimplePollerLike<OperationState<RolesDeleteResponse>, RolesDeleteResponse>
95
95
  >;
@@ -104,6 +104,6 @@ export interface Roles {
104
104
  resourceGroupName: string,
105
105
  clusterName: string,
106
106
  roleName: string,
107
- options?: RolesDeleteOptionalParams
107
+ options?: RolesDeleteOptionalParams,
108
108
  ): Promise<RolesDeleteResponse>;
109
109
  }
@@ -11,7 +11,7 @@ import {
11
11
  ClusterServer,
12
12
  ServersListByClusterOptionalParams,
13
13
  ServersGetOptionalParams,
14
- ServersGetResponse
14
+ ServersGetResponse,
15
15
  } from "../models";
16
16
 
17
17
  /// <reference lib="esnext.asynciterable" />
@@ -26,7 +26,7 @@ export interface Servers {
26
26
  listByCluster(
27
27
  resourceGroupName: string,
28
28
  clusterName: string,
29
- options?: ServersListByClusterOptionalParams
29
+ options?: ServersListByClusterOptionalParams,
30
30
  ): PagedAsyncIterableIterator<ClusterServer>;
31
31
  /**
32
32
  * Gets information about a server in cluster.
@@ -39,6 +39,6 @@ export interface Servers {
39
39
  resourceGroupName: string,
40
40
  clusterName: string,
41
41
  serverName: string,
42
- options?: ServersGetOptionalParams
42
+ options?: ServersGetOptionalParams,
43
43
  ): Promise<ServersGetResponse>;
44
44
  }
@@ -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;
@@ -4,6 +4,22 @@ import { OperationState } from '@azure/core-lro';
4
4
  import { PagedAsyncIterableIterator } from '@azure/core-paging';
5
5
  import { SimplePollerLike } from '@azure/core-lro';
6
6
 
7
+ /**
8
+ * Defines values for ActiveDirectoryAuth. \
9
+ * {@link KnownActiveDirectoryAuth} can be used interchangeably with ActiveDirectoryAuth,
10
+ * this enum contains the known values that the service supports.
11
+ * ### Known values supported by the service
12
+ * **enabled** \
13
+ * **disabled**
14
+ */
15
+ export declare type ActiveDirectoryAuth = string;
16
+
17
+ /** Authentication configuration of a cluster. */
18
+ export declare interface AuthConfig {
19
+ activeDirectoryAuth?: ActiveDirectoryAuth;
20
+ passwordAuth?: PasswordAuth;
21
+ }
22
+
7
23
  /** Represents a cluster. */
8
24
  export declare interface Cluster extends TrackedResource {
9
25
  /**
@@ -82,6 +98,12 @@ export declare interface Cluster extends TrackedResource {
82
98
  * NOTE: This property will not be serialized. It can only be populated by the server.
83
99
  */
84
100
  readonly privateEndpointConnections?: SimplePrivateEndpointConnection[];
101
+ /** The database name of the cluster. Only one database per cluster is supported. */
102
+ databaseName?: string;
103
+ /** If cluster backup is stored in another Azure region in addition to the copy of the backup stored in the cluster's region. Enabled only at the time of cluster creation. */
104
+ enableGeoBackup?: boolean;
105
+ /** Authentication configuration of a cluster. */
106
+ authConfig?: AuthConfig;
85
107
  }
86
108
 
87
109
  /** A list of cluster configurations. */
@@ -451,6 +473,8 @@ export declare interface ClustersPromoteReadReplicaHeaders {
451
473
 
452
474
  /** Optional parameters. */
453
475
  export declare interface ClustersPromoteReadReplicaOptionalParams extends coreClient.OperationOptions {
476
+ /** The parameter for enabling geo-redundant backup while promoting read replica. */
477
+ promoteRequest?: PromoteRequest;
454
478
  /** Delay to wait until next poll, in milliseconds. */
455
479
  updateIntervalInMs?: number;
456
480
  /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
@@ -947,6 +971,14 @@ export declare type FirewallRulesListByClusterResponse = FirewallRuleListResult;
947
971
  */
948
972
  export declare function getContinuationToken(page: unknown): string | undefined;
949
973
 
974
+ /** Known values of {@link ActiveDirectoryAuth} that the service accepts. */
975
+ export declare enum KnownActiveDirectoryAuth {
976
+ /** Enabled */
977
+ Enabled = "enabled",
978
+ /** Disabled */
979
+ Disabled = "disabled"
980
+ }
981
+
950
982
  /** Known values of {@link ConfigurationDataType} that the service accepts. */
951
983
  export declare enum KnownConfigurationDataType {
952
984
  /** Boolean */
@@ -981,6 +1013,24 @@ export declare enum KnownOperationOrigin {
981
1013
  System = "system"
982
1014
  }
983
1015
 
1016
+ /** Known values of {@link PasswordAuth} that the service accepts. */
1017
+ export declare enum KnownPasswordAuth {
1018
+ /** Enabled */
1019
+ Enabled = "enabled",
1020
+ /** Disabled */
1021
+ Disabled = "disabled"
1022
+ }
1023
+
1024
+ /** Known values of {@link PrincipalType} that the service accepts. */
1025
+ export declare enum KnownPrincipalType {
1026
+ /** User */
1027
+ User = "user",
1028
+ /** ServicePrincipal */
1029
+ ServicePrincipal = "servicePrincipal",
1030
+ /** Group */
1031
+ Group = "group"
1032
+ }
1033
+
984
1034
  /** Known values of {@link PrivateEndpointConnectionProvisioningState} that the service accepts. */
985
1035
  export declare enum KnownPrivateEndpointConnectionProvisioningState {
986
1036
  /** Succeeded */
@@ -1015,6 +1065,14 @@ export declare enum KnownProvisioningState {
1015
1065
  Failed = "Failed"
1016
1066
  }
1017
1067
 
1068
+ /** Known values of {@link RoleType} that the service accepts. */
1069
+ export declare enum KnownRoleType {
1070
+ /** User */
1071
+ User = "user",
1072
+ /** Admin */
1073
+ Admin = "admin"
1074
+ }
1075
+
1018
1076
  /** Known values of {@link ServerRole} that the service accepts. */
1019
1077
  export declare enum KnownServerRole {
1020
1078
  /** Coordinator */
@@ -1146,6 +1204,27 @@ export declare interface OperationsListOptionalParams extends coreClient.Operati
1146
1204
  /** Contains response data for the list operation. */
1147
1205
  export declare type OperationsListResponse = OperationListResult;
1148
1206
 
1207
+ /**
1208
+ * Defines values for PasswordAuth. \
1209
+ * {@link KnownPasswordAuth} can be used interchangeably with PasswordAuth,
1210
+ * this enum contains the known values that the service supports.
1211
+ * ### Known values supported by the service
1212
+ * **enabled** \
1213
+ * **disabled**
1214
+ */
1215
+ export declare type PasswordAuth = string;
1216
+
1217
+ /**
1218
+ * Defines values for PrincipalType. \
1219
+ * {@link KnownPrincipalType} can be used interchangeably with PrincipalType,
1220
+ * this enum contains the known values that the service supports.
1221
+ * ### Known values supported by the service
1222
+ * **user** \
1223
+ * **servicePrincipal** \
1224
+ * **group**
1225
+ */
1226
+ export declare type PrincipalType = string;
1227
+
1149
1228
  /** The private endpoint resource. */
1150
1229
  export declare interface PrivateEndpoint {
1151
1230
  /**
@@ -1379,6 +1458,12 @@ export declare interface PrivateLinkServiceConnectionState {
1379
1458
  actionsRequired?: string;
1380
1459
  }
1381
1460
 
1461
+ /** Request from client to promote geo-redundant replica */
1462
+ export declare interface PromoteRequest {
1463
+ /** Cluster name to verify. */
1464
+ enableGeoBackup?: boolean;
1465
+ }
1466
+
1382
1467
  /**
1383
1468
  * Defines values for ProvisioningState. \
1384
1469
  * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState,
@@ -1421,16 +1506,20 @@ export declare interface Resource {
1421
1506
 
1422
1507
  /** Represents a cluster role. */
1423
1508
  export declare interface Role extends ProxyResource {
1509
+ roleType?: RoleType;
1424
1510
  /**
1425
- * The password of the cluster role.
1511
+ * The password of the cluster role. If an identity is used, password will not be required.
1426
1512
  * This value contains a credential. Consider obscuring before showing to users
1427
1513
  */
1428
- password: string;
1514
+ password?: string;
1429
1515
  /**
1430
1516
  * Provisioning state of the role
1431
1517
  * NOTE: This property will not be serialized. It can only be populated by the server.
1432
1518
  */
1433
1519
  readonly provisioningState?: ProvisioningState;
1520
+ objectId?: string;
1521
+ principalType?: PrincipalType;
1522
+ tenantId?: string;
1434
1523
  }
1435
1524
 
1436
1525
  /** A list of roles. */
@@ -1540,6 +1629,16 @@ export declare interface RolesListByClusterOptionalParams extends coreClient.Ope
1540
1629
  /** Contains response data for the listByCluster operation. */
1541
1630
  export declare type RolesListByClusterResponse = RoleListResult;
1542
1631
 
1632
+ /**
1633
+ * Defines values for RoleType. \
1634
+ * {@link KnownRoleType} can be used interchangeably with RoleType,
1635
+ * this enum contains the known values that the service supports.
1636
+ * ### Known values supported by the service
1637
+ * **user** \
1638
+ * **admin**
1639
+ */
1640
+ export declare type RoleType = string;
1641
+
1543
1642
  /** Represents a configuration. */
1544
1643
  export declare interface ServerConfiguration extends ProxyResource {
1545
1644
  /** Value of the configuration. */