@azure/arm-postgresql-flexible 6.0.1-alpha.20221214.1 → 6.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.
- package/CHANGELOG.md +13 -10
- package/dist/index.js +238 -67
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/checkNameAvailabilityExecuteSample.js +10 -2
- package/dist-esm/samples-dev/checkNameAvailabilityExecuteSample.js.map +1 -1
- package/dist-esm/samples-dev/configurationsGetSample.js +11 -3
- package/dist-esm/samples-dev/configurationsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/configurationsListByServerSample.js +11 -3
- package/dist-esm/samples-dev/configurationsListByServerSample.js.map +1 -1
- package/dist-esm/samples-dev/configurationsPutSample.js +11 -3
- package/dist-esm/samples-dev/configurationsPutSample.js.map +1 -1
- package/dist-esm/samples-dev/configurationsUpdateSample.js +11 -3
- package/dist-esm/samples-dev/configurationsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/databasesCreateSample.js +11 -3
- package/dist-esm/samples-dev/databasesCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/databasesDeleteSample.js +11 -3
- package/dist-esm/samples-dev/databasesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/databasesGetSample.js +11 -3
- package/dist-esm/samples-dev/databasesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/databasesListByServerSample.js +11 -3
- package/dist-esm/samples-dev/databasesListByServerSample.js.map +1 -1
- package/dist-esm/samples-dev/firewallRulesCreateOrUpdateSample.js +11 -3
- package/dist-esm/samples-dev/firewallRulesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/firewallRulesDeleteSample.js +11 -3
- package/dist-esm/samples-dev/firewallRulesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/firewallRulesGetSample.js +11 -3
- package/dist-esm/samples-dev/firewallRulesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/firewallRulesListByServerSample.js +11 -3
- package/dist-esm/samples-dev/firewallRulesListByServerSample.js.map +1 -1
- package/dist-esm/samples-dev/getPrivateDnsZoneSuffixExecuteSample.js +10 -2
- package/dist-esm/samples-dev/getPrivateDnsZoneSuffixExecuteSample.js.map +1 -1
- package/dist-esm/samples-dev/locationBasedCapabilitiesExecuteSample.js +10 -2
- package/dist-esm/samples-dev/locationBasedCapabilitiesExecuteSample.js.map +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +10 -2
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
- package/dist-esm/samples-dev/serversCreateSample.js +15 -6
- package/dist-esm/samples-dev/serversCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/serversDeleteSample.js +11 -3
- package/dist-esm/samples-dev/serversDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/serversGetSample.js +15 -6
- package/dist-esm/samples-dev/serversGetSample.js.map +1 -1
- package/dist-esm/samples-dev/serversListByResourceGroupSample.js +11 -3
- package/dist-esm/samples-dev/serversListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/serversListSample.js +10 -2
- package/dist-esm/samples-dev/serversListSample.js.map +1 -1
- package/dist-esm/samples-dev/serversRestartSample.js +15 -6
- package/dist-esm/samples-dev/serversRestartSample.js.map +1 -1
- package/dist-esm/samples-dev/serversStartSample.js +11 -3
- package/dist-esm/samples-dev/serversStartSample.js.map +1 -1
- package/dist-esm/samples-dev/serversStopSample.js +11 -3
- package/dist-esm/samples-dev/serversStopSample.js.map +1 -1
- package/dist-esm/samples-dev/serversUpdateSample.js +15 -6
- package/dist-esm/samples-dev/serversUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualNetworkSubnetUsageExecuteSample.js +10 -2
- package/dist-esm/samples-dev/virtualNetworkSubnetUsageExecuteSample.js.map +1 -1
- package/dist-esm/src/index.d.ts +1 -0
- package/dist-esm/src/index.d.ts.map +1 -1
- package/dist-esm/src/index.js +1 -0
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +60 -11
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +48 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/operations/configurations.d.ts.map +1 -1
- package/dist-esm/src/operations/configurations.js +19 -8
- package/dist-esm/src/operations/configurations.js.map +1 -1
- package/dist-esm/src/operations/databases.d.ts.map +1 -1
- package/dist-esm/src/operations/databases.js +19 -8
- package/dist-esm/src/operations/databases.js.map +1 -1
- package/dist-esm/src/operations/firewallRules.d.ts.map +1 -1
- package/dist-esm/src/operations/firewallRules.js +19 -8
- package/dist-esm/src/operations/firewallRules.js.map +1 -1
- package/dist-esm/src/operations/locationBasedCapabilities.d.ts.map +1 -1
- package/dist-esm/src/operations/locationBasedCapabilities.js +19 -8
- package/dist-esm/src/operations/locationBasedCapabilities.js.map +1 -1
- package/dist-esm/src/operations/servers.d.ts.map +1 -1
- package/dist-esm/src/operations/servers.js +37 -16
- package/dist-esm/src/operations/servers.js.map +1 -1
- package/dist-esm/src/pagingHelper.d.ts +13 -0
- package/dist-esm/src/pagingHelper.d.ts.map +1 -0
- package/dist-esm/src/pagingHelper.js +32 -0
- package/dist-esm/src/pagingHelper.js.map +1 -0
- package/dist-esm/src/postgreSQLManagementFlexibleServerClient.d.ts +2 -0
- package/dist-esm/src/postgreSQLManagementFlexibleServerClient.d.ts.map +1 -1
- package/dist-esm/src/postgreSQLManagementFlexibleServerClient.js +49 -18
- package/dist-esm/src/postgreSQLManagementFlexibleServerClient.js.map +1 -1
- package/dist-esm/test/sampleTest.js +11 -13
- package/dist-esm/test/sampleTest.js.map +1 -1
- package/package.json +15 -10
- package/review/arm-postgresql-flexible.api.md +38 -82
- package/src/index.ts +1 -0
- package/src/models/index.ts +59 -11
- package/src/operations/configurations.ts +22 -13
- package/src/operations/databases.ts +23 -14
- package/src/operations/firewallRules.ts +23 -14
- package/src/operations/locationBasedCapabilities.ts +21 -9
- package/src/operations/servers.ts +46 -19
- package/src/pagingHelper.ts +39 -0
- package/src/postgreSQLManagementFlexibleServerClient.ts +60 -20
- package/types/arm-postgresql-flexible.d.ts +71 -11
- package/types/tsdoc-metadata.json +1 -1
|
@@ -52,20 +52,20 @@ export interface CloudError {
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
// @public
|
|
55
|
-
export
|
|
56
|
-
readonly systemData?: SystemData;
|
|
57
|
-
value?: string;
|
|
58
|
-
readonly description?: string;
|
|
59
|
-
readonly defaultValue?: string;
|
|
60
|
-
readonly dataType?: ConfigurationDataType;
|
|
55
|
+
export interface Configuration extends ProxyResource {
|
|
61
56
|
readonly allowedValues?: string;
|
|
62
|
-
|
|
57
|
+
readonly dataType?: ConfigurationDataType;
|
|
58
|
+
readonly defaultValue?: string;
|
|
59
|
+
readonly description?: string;
|
|
60
|
+
readonly documentationLink?: string;
|
|
61
|
+
readonly isConfigPendingRestart?: boolean;
|
|
63
62
|
readonly isDynamicConfig?: boolean;
|
|
64
63
|
readonly isReadOnly?: boolean;
|
|
65
|
-
|
|
64
|
+
source?: string;
|
|
65
|
+
readonly systemData?: SystemData;
|
|
66
66
|
readonly unit?: string;
|
|
67
|
-
|
|
68
|
-
}
|
|
67
|
+
value?: string;
|
|
68
|
+
}
|
|
69
69
|
|
|
70
70
|
// @public
|
|
71
71
|
export type ConfigurationDataType = string;
|
|
@@ -135,11 +135,11 @@ export type CreateMode = string;
|
|
|
135
135
|
export type CreateModeForUpdate = string;
|
|
136
136
|
|
|
137
137
|
// @public
|
|
138
|
-
export
|
|
139
|
-
readonly systemData?: SystemData;
|
|
138
|
+
export interface Database extends ProxyResource {
|
|
140
139
|
charset?: string;
|
|
141
140
|
collation?: string;
|
|
142
|
-
|
|
141
|
+
readonly systemData?: SystemData;
|
|
142
|
+
}
|
|
143
143
|
|
|
144
144
|
// @public
|
|
145
145
|
export interface DatabaseListResult {
|
|
@@ -218,11 +218,11 @@ export interface ErrorResponse {
|
|
|
218
218
|
export type FailoverMode = string;
|
|
219
219
|
|
|
220
220
|
// @public
|
|
221
|
-
export
|
|
222
|
-
readonly systemData?: SystemData;
|
|
223
|
-
startIpAddress: string;
|
|
221
|
+
export interface FirewallRule extends ProxyResource {
|
|
224
222
|
endIpAddress: string;
|
|
225
|
-
|
|
223
|
+
startIpAddress: string;
|
|
224
|
+
readonly systemData?: SystemData;
|
|
225
|
+
}
|
|
226
226
|
|
|
227
227
|
// @public
|
|
228
228
|
export interface FirewallRuleListResult {
|
|
@@ -287,6 +287,9 @@ export interface FlexibleServerEditionCapability {
|
|
|
287
287
|
// @public
|
|
288
288
|
export type GeoRedundantBackupEnum = string;
|
|
289
289
|
|
|
290
|
+
// @public
|
|
291
|
+
export function getContinuationToken(page: unknown): string | undefined;
|
|
292
|
+
|
|
290
293
|
// @public
|
|
291
294
|
export interface GetPrivateDnsZoneSuffix {
|
|
292
295
|
execute(options?: GetPrivateDnsZoneSuffixExecuteOptionalParams): Promise<GetPrivateDnsZoneSuffixExecuteResponse>;
|
|
@@ -322,153 +325,105 @@ export interface HyperscaleNodeEditionCapability {
|
|
|
322
325
|
|
|
323
326
|
// @public
|
|
324
327
|
export enum KnownConfigurationDataType {
|
|
325
|
-
// (undocumented)
|
|
326
328
|
Boolean = "Boolean",
|
|
327
|
-
// (undocumented)
|
|
328
329
|
Enumeration = "Enumeration",
|
|
329
|
-
// (undocumented)
|
|
330
330
|
Integer = "Integer",
|
|
331
|
-
// (undocumented)
|
|
332
331
|
Numeric = "Numeric"
|
|
333
332
|
}
|
|
334
333
|
|
|
335
334
|
// @public
|
|
336
335
|
export enum KnownCreatedByType {
|
|
337
|
-
// (undocumented)
|
|
338
336
|
Application = "Application",
|
|
339
|
-
// (undocumented)
|
|
340
337
|
Key = "Key",
|
|
341
|
-
// (undocumented)
|
|
342
338
|
ManagedIdentity = "ManagedIdentity",
|
|
343
|
-
// (undocumented)
|
|
344
339
|
User = "User"
|
|
345
340
|
}
|
|
346
341
|
|
|
347
342
|
// @public
|
|
348
343
|
export enum KnownCreateMode {
|
|
349
|
-
// (undocumented)
|
|
350
344
|
Create = "Create",
|
|
351
|
-
// (undocumented)
|
|
352
345
|
Default = "Default",
|
|
353
|
-
// (undocumented)
|
|
354
346
|
PointInTimeRestore = "PointInTimeRestore",
|
|
355
|
-
// (undocumented)
|
|
356
347
|
Update = "Update"
|
|
357
348
|
}
|
|
358
349
|
|
|
359
350
|
// @public
|
|
360
351
|
export enum KnownCreateModeForUpdate {
|
|
361
|
-
// (undocumented)
|
|
362
352
|
Default = "Default",
|
|
363
|
-
// (undocumented)
|
|
364
353
|
Update = "Update"
|
|
365
354
|
}
|
|
366
355
|
|
|
367
356
|
// @public
|
|
368
357
|
export enum KnownFailoverMode {
|
|
369
|
-
// (undocumented)
|
|
370
358
|
ForcedFailover = "ForcedFailover",
|
|
371
|
-
// (undocumented)
|
|
372
359
|
ForcedSwitchover = "ForcedSwitchover",
|
|
373
|
-
// (undocumented)
|
|
374
360
|
PlannedFailover = "PlannedFailover",
|
|
375
|
-
// (undocumented)
|
|
376
361
|
PlannedSwitchover = "PlannedSwitchover"
|
|
377
362
|
}
|
|
378
363
|
|
|
379
364
|
// @public
|
|
380
365
|
export enum KnownGeoRedundantBackupEnum {
|
|
381
|
-
// (undocumented)
|
|
382
366
|
Disabled = "Disabled",
|
|
383
|
-
// (undocumented)
|
|
384
367
|
Enabled = "Enabled"
|
|
385
368
|
}
|
|
386
369
|
|
|
387
370
|
// @public
|
|
388
371
|
export enum KnownHighAvailabilityMode {
|
|
389
|
-
// (undocumented)
|
|
390
372
|
Disabled = "Disabled",
|
|
391
|
-
// (undocumented)
|
|
392
373
|
ZoneRedundant = "ZoneRedundant"
|
|
393
374
|
}
|
|
394
375
|
|
|
395
376
|
// @public
|
|
396
377
|
export enum KnownOperationOrigin {
|
|
397
|
-
// (undocumented)
|
|
398
378
|
NotSpecified = "NotSpecified",
|
|
399
|
-
// (undocumented)
|
|
400
379
|
System = "system",
|
|
401
|
-
// (undocumented)
|
|
402
380
|
User = "user"
|
|
403
381
|
}
|
|
404
382
|
|
|
405
383
|
// @public
|
|
406
384
|
export enum KnownReason {
|
|
407
|
-
// (undocumented)
|
|
408
385
|
AlreadyExists = "AlreadyExists",
|
|
409
|
-
// (undocumented)
|
|
410
386
|
Invalid = "Invalid"
|
|
411
387
|
}
|
|
412
388
|
|
|
413
389
|
// @public
|
|
414
390
|
export enum KnownServerHAState {
|
|
415
|
-
// (undocumented)
|
|
416
391
|
CreatingStandby = "CreatingStandby",
|
|
417
|
-
// (undocumented)
|
|
418
392
|
FailingOver = "FailingOver",
|
|
419
|
-
// (undocumented)
|
|
420
393
|
Healthy = "Healthy",
|
|
421
|
-
// (undocumented)
|
|
422
394
|
NotEnabled = "NotEnabled",
|
|
423
|
-
// (undocumented)
|
|
424
395
|
RemovingStandby = "RemovingStandby",
|
|
425
|
-
// (undocumented)
|
|
426
396
|
ReplicatingData = "ReplicatingData"
|
|
427
397
|
}
|
|
428
398
|
|
|
429
399
|
// @public
|
|
430
400
|
export enum KnownServerPublicNetworkAccessState {
|
|
431
|
-
// (undocumented)
|
|
432
401
|
Disabled = "Disabled",
|
|
433
|
-
// (undocumented)
|
|
434
402
|
Enabled = "Enabled"
|
|
435
403
|
}
|
|
436
404
|
|
|
437
405
|
// @public
|
|
438
406
|
export enum KnownServerState {
|
|
439
|
-
// (undocumented)
|
|
440
407
|
Disabled = "Disabled",
|
|
441
|
-
// (undocumented)
|
|
442
408
|
Dropping = "Dropping",
|
|
443
|
-
// (undocumented)
|
|
444
409
|
Ready = "Ready",
|
|
445
|
-
// (undocumented)
|
|
446
410
|
Starting = "Starting",
|
|
447
|
-
// (undocumented)
|
|
448
411
|
Stopped = "Stopped",
|
|
449
|
-
// (undocumented)
|
|
450
412
|
Stopping = "Stopping",
|
|
451
|
-
// (undocumented)
|
|
452
413
|
Updating = "Updating"
|
|
453
414
|
}
|
|
454
415
|
|
|
455
416
|
// @public
|
|
456
417
|
export enum KnownServerVersion {
|
|
457
|
-
// (undocumented)
|
|
458
418
|
Eleven = "11",
|
|
459
|
-
// (undocumented)
|
|
460
419
|
Thirteen = "13",
|
|
461
|
-
// (undocumented)
|
|
462
420
|
Twelve = "12"
|
|
463
421
|
}
|
|
464
422
|
|
|
465
423
|
// @public
|
|
466
424
|
export enum KnownSkuTier {
|
|
467
|
-
// (undocumented)
|
|
468
425
|
Burstable = "Burstable",
|
|
469
|
-
// (undocumented)
|
|
470
426
|
GeneralPurpose = "GeneralPurpose",
|
|
471
|
-
// (undocumented)
|
|
472
427
|
MemoryOptimized = "MemoryOptimized"
|
|
473
428
|
}
|
|
474
429
|
|
|
@@ -605,7 +560,8 @@ export interface PostgreSQLManagementFlexibleServerClientOptionalParams extends
|
|
|
605
560
|
}
|
|
606
561
|
|
|
607
562
|
// @public
|
|
608
|
-
export
|
|
563
|
+
export interface ProxyResource extends Resource {
|
|
564
|
+
}
|
|
609
565
|
|
|
610
566
|
// @public
|
|
611
567
|
export type Reason = string;
|
|
@@ -624,25 +580,25 @@ export interface RestartParameter {
|
|
|
624
580
|
}
|
|
625
581
|
|
|
626
582
|
// @public
|
|
627
|
-
export
|
|
628
|
-
sku?: Sku;
|
|
629
|
-
readonly systemData?: SystemData;
|
|
583
|
+
export interface Server extends TrackedResource {
|
|
630
584
|
administratorLogin?: string;
|
|
631
585
|
administratorLoginPassword?: string;
|
|
632
|
-
|
|
633
|
-
readonly minorVersion?: string;
|
|
634
|
-
readonly state?: ServerState;
|
|
635
|
-
readonly fullyQualifiedDomainName?: string;
|
|
636
|
-
storage?: Storage_2;
|
|
586
|
+
availabilityZone?: string;
|
|
637
587
|
backup?: Backup;
|
|
638
|
-
|
|
588
|
+
createMode?: CreateMode;
|
|
589
|
+
readonly fullyQualifiedDomainName?: string;
|
|
639
590
|
highAvailability?: HighAvailability;
|
|
640
591
|
maintenanceWindow?: MaintenanceWindow;
|
|
641
|
-
|
|
592
|
+
readonly minorVersion?: string;
|
|
593
|
+
network?: Network;
|
|
642
594
|
pointInTimeUTC?: Date;
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
595
|
+
sku?: Sku;
|
|
596
|
+
sourceServerResourceId?: string;
|
|
597
|
+
readonly state?: ServerState;
|
|
598
|
+
storage?: Storage_2;
|
|
599
|
+
readonly systemData?: SystemData;
|
|
600
|
+
version?: ServerVersion;
|
|
601
|
+
}
|
|
646
602
|
|
|
647
603
|
// @public
|
|
648
604
|
export interface ServerForUpdate {
|
|
@@ -822,12 +778,12 @@ export interface SystemData {
|
|
|
822
778
|
}
|
|
823
779
|
|
|
824
780
|
// @public
|
|
825
|
-
export
|
|
781
|
+
export interface TrackedResource extends Resource {
|
|
782
|
+
location: string;
|
|
826
783
|
tags?: {
|
|
827
784
|
[propertyName: string]: string;
|
|
828
785
|
};
|
|
829
|
-
|
|
830
|
-
};
|
|
786
|
+
}
|
|
831
787
|
|
|
832
788
|
// @public
|
|
833
789
|
export interface VcoreCapability {
|
package/src/index.ts
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
/// <reference lib="esnext.asynciterable" />
|
|
10
|
+
export { getContinuationToken } from "./pagingHelper";
|
|
10
11
|
export * from "./models";
|
|
11
12
|
export { PostgreSQLManagementFlexibleServerClient } from "./postgreSQLManagementFlexibleServerClient";
|
|
12
13
|
export * from "./operationsInterfaces";
|
package/src/models/index.ts
CHANGED
|
@@ -551,18 +551,18 @@ export interface DatabaseListResult {
|
|
|
551
551
|
}
|
|
552
552
|
|
|
553
553
|
/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */
|
|
554
|
-
export
|
|
554
|
+
export interface TrackedResource extends Resource {
|
|
555
555
|
/** Resource tags. */
|
|
556
556
|
tags?: { [propertyName: string]: string };
|
|
557
557
|
/** The geo-location where the resource lives */
|
|
558
558
|
location: string;
|
|
559
|
-
}
|
|
559
|
+
}
|
|
560
560
|
|
|
561
561
|
/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */
|
|
562
|
-
export
|
|
562
|
+
export interface ProxyResource extends Resource {}
|
|
563
563
|
|
|
564
564
|
/** Represents a server. */
|
|
565
|
-
export
|
|
565
|
+
export interface Server extends TrackedResource {
|
|
566
566
|
/** The SKU (pricing tier) of the server. */
|
|
567
567
|
sku?: Sku;
|
|
568
568
|
/**
|
|
@@ -612,10 +612,10 @@ export type Server = TrackedResource & {
|
|
|
612
612
|
availabilityZone?: string;
|
|
613
613
|
/** The mode to create a new PostgreSQL server. */
|
|
614
614
|
createMode?: CreateMode;
|
|
615
|
-
}
|
|
615
|
+
}
|
|
616
616
|
|
|
617
617
|
/** Represents a server firewall rule. */
|
|
618
|
-
export
|
|
618
|
+
export interface FirewallRule extends ProxyResource {
|
|
619
619
|
/**
|
|
620
620
|
* The system metadata relating to this resource.
|
|
621
621
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
@@ -625,10 +625,10 @@ export type FirewallRule = ProxyResource & {
|
|
|
625
625
|
startIpAddress: string;
|
|
626
626
|
/** The end IP address of the server firewall rule. Must be IPv4 format. */
|
|
627
627
|
endIpAddress: string;
|
|
628
|
-
}
|
|
628
|
+
}
|
|
629
629
|
|
|
630
630
|
/** Represents a Configuration. */
|
|
631
|
-
export
|
|
631
|
+
export interface Configuration extends ProxyResource {
|
|
632
632
|
/**
|
|
633
633
|
* The system metadata relating to this resource.
|
|
634
634
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
@@ -683,10 +683,10 @@ export type Configuration = ProxyResource & {
|
|
|
683
683
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
684
684
|
*/
|
|
685
685
|
readonly documentationLink?: string;
|
|
686
|
-
}
|
|
686
|
+
}
|
|
687
687
|
|
|
688
688
|
/** Represents a Database. */
|
|
689
|
-
export
|
|
689
|
+
export interface Database extends ProxyResource {
|
|
690
690
|
/**
|
|
691
691
|
* The system metadata relating to this resource.
|
|
692
692
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
@@ -696,12 +696,15 @@ export type Database = ProxyResource & {
|
|
|
696
696
|
charset?: string;
|
|
697
697
|
/** The collation of the database. */
|
|
698
698
|
collation?: string;
|
|
699
|
-
}
|
|
699
|
+
}
|
|
700
700
|
|
|
701
701
|
/** Known values of {@link SkuTier} that the service accepts. */
|
|
702
702
|
export enum KnownSkuTier {
|
|
703
|
+
/** Burstable */
|
|
703
704
|
Burstable = "Burstable",
|
|
705
|
+
/** GeneralPurpose */
|
|
704
706
|
GeneralPurpose = "GeneralPurpose",
|
|
707
|
+
/** MemoryOptimized */
|
|
705
708
|
MemoryOptimized = "MemoryOptimized"
|
|
706
709
|
}
|
|
707
710
|
|
|
@@ -718,8 +721,11 @@ export type SkuTier = string;
|
|
|
718
721
|
|
|
719
722
|
/** Known values of {@link ServerVersion} that the service accepts. */
|
|
720
723
|
export enum KnownServerVersion {
|
|
724
|
+
/** Thirteen */
|
|
721
725
|
Thirteen = "13",
|
|
726
|
+
/** Twelve */
|
|
722
727
|
Twelve = "12",
|
|
728
|
+
/** Eleven */
|
|
723
729
|
Eleven = "11"
|
|
724
730
|
}
|
|
725
731
|
|
|
@@ -736,12 +742,19 @@ export type ServerVersion = string;
|
|
|
736
742
|
|
|
737
743
|
/** Known values of {@link ServerState} that the service accepts. */
|
|
738
744
|
export enum KnownServerState {
|
|
745
|
+
/** Ready */
|
|
739
746
|
Ready = "Ready",
|
|
747
|
+
/** Dropping */
|
|
740
748
|
Dropping = "Dropping",
|
|
749
|
+
/** Disabled */
|
|
741
750
|
Disabled = "Disabled",
|
|
751
|
+
/** Starting */
|
|
742
752
|
Starting = "Starting",
|
|
753
|
+
/** Stopping */
|
|
743
754
|
Stopping = "Stopping",
|
|
755
|
+
/** Stopped */
|
|
744
756
|
Stopped = "Stopped",
|
|
757
|
+
/** Updating */
|
|
745
758
|
Updating = "Updating"
|
|
746
759
|
}
|
|
747
760
|
|
|
@@ -762,7 +775,9 @@ export type ServerState = string;
|
|
|
762
775
|
|
|
763
776
|
/** Known values of {@link GeoRedundantBackupEnum} that the service accepts. */
|
|
764
777
|
export enum KnownGeoRedundantBackupEnum {
|
|
778
|
+
/** Enabled */
|
|
765
779
|
Enabled = "Enabled",
|
|
780
|
+
/** Disabled */
|
|
766
781
|
Disabled = "Disabled"
|
|
767
782
|
}
|
|
768
783
|
|
|
@@ -778,7 +793,9 @@ export type GeoRedundantBackupEnum = string;
|
|
|
778
793
|
|
|
779
794
|
/** Known values of {@link ServerPublicNetworkAccessState} that the service accepts. */
|
|
780
795
|
export enum KnownServerPublicNetworkAccessState {
|
|
796
|
+
/** Enabled */
|
|
781
797
|
Enabled = "Enabled",
|
|
798
|
+
/** Disabled */
|
|
782
799
|
Disabled = "Disabled"
|
|
783
800
|
}
|
|
784
801
|
|
|
@@ -794,7 +811,9 @@ export type ServerPublicNetworkAccessState = string;
|
|
|
794
811
|
|
|
795
812
|
/** Known values of {@link HighAvailabilityMode} that the service accepts. */
|
|
796
813
|
export enum KnownHighAvailabilityMode {
|
|
814
|
+
/** Disabled */
|
|
797
815
|
Disabled = "Disabled",
|
|
816
|
+
/** ZoneRedundant */
|
|
798
817
|
ZoneRedundant = "ZoneRedundant"
|
|
799
818
|
}
|
|
800
819
|
|
|
@@ -810,11 +829,17 @@ export type HighAvailabilityMode = string;
|
|
|
810
829
|
|
|
811
830
|
/** Known values of {@link ServerHAState} that the service accepts. */
|
|
812
831
|
export enum KnownServerHAState {
|
|
832
|
+
/** NotEnabled */
|
|
813
833
|
NotEnabled = "NotEnabled",
|
|
834
|
+
/** CreatingStandby */
|
|
814
835
|
CreatingStandby = "CreatingStandby",
|
|
836
|
+
/** ReplicatingData */
|
|
815
837
|
ReplicatingData = "ReplicatingData",
|
|
838
|
+
/** FailingOver */
|
|
816
839
|
FailingOver = "FailingOver",
|
|
840
|
+
/** Healthy */
|
|
817
841
|
Healthy = "Healthy",
|
|
842
|
+
/** RemovingStandby */
|
|
818
843
|
RemovingStandby = "RemovingStandby"
|
|
819
844
|
}
|
|
820
845
|
|
|
@@ -834,9 +859,13 @@ export type ServerHAState = string;
|
|
|
834
859
|
|
|
835
860
|
/** Known values of {@link CreateMode} that the service accepts. */
|
|
836
861
|
export enum KnownCreateMode {
|
|
862
|
+
/** Default */
|
|
837
863
|
Default = "Default",
|
|
864
|
+
/** Create */
|
|
838
865
|
Create = "Create",
|
|
866
|
+
/** Update */
|
|
839
867
|
Update = "Update",
|
|
868
|
+
/** PointInTimeRestore */
|
|
840
869
|
PointInTimeRestore = "PointInTimeRestore"
|
|
841
870
|
}
|
|
842
871
|
|
|
@@ -854,9 +883,13 @@ export type CreateMode = string;
|
|
|
854
883
|
|
|
855
884
|
/** Known values of {@link CreatedByType} that the service accepts. */
|
|
856
885
|
export enum KnownCreatedByType {
|
|
886
|
+
/** User */
|
|
857
887
|
User = "User",
|
|
888
|
+
/** Application */
|
|
858
889
|
Application = "Application",
|
|
890
|
+
/** ManagedIdentity */
|
|
859
891
|
ManagedIdentity = "ManagedIdentity",
|
|
892
|
+
/** Key */
|
|
860
893
|
Key = "Key"
|
|
861
894
|
}
|
|
862
895
|
|
|
@@ -874,7 +907,9 @@ export type CreatedByType = string;
|
|
|
874
907
|
|
|
875
908
|
/** Known values of {@link CreateModeForUpdate} that the service accepts. */
|
|
876
909
|
export enum KnownCreateModeForUpdate {
|
|
910
|
+
/** Default */
|
|
877
911
|
Default = "Default",
|
|
912
|
+
/** Update */
|
|
878
913
|
Update = "Update"
|
|
879
914
|
}
|
|
880
915
|
|
|
@@ -890,9 +925,13 @@ export type CreateModeForUpdate = string;
|
|
|
890
925
|
|
|
891
926
|
/** Known values of {@link FailoverMode} that the service accepts. */
|
|
892
927
|
export enum KnownFailoverMode {
|
|
928
|
+
/** PlannedFailover */
|
|
893
929
|
PlannedFailover = "PlannedFailover",
|
|
930
|
+
/** ForcedFailover */
|
|
894
931
|
ForcedFailover = "ForcedFailover",
|
|
932
|
+
/** PlannedSwitchover */
|
|
895
933
|
PlannedSwitchover = "PlannedSwitchover",
|
|
934
|
+
/** ForcedSwitchover */
|
|
896
935
|
ForcedSwitchover = "ForcedSwitchover"
|
|
897
936
|
}
|
|
898
937
|
|
|
@@ -910,9 +949,13 @@ export type FailoverMode = string;
|
|
|
910
949
|
|
|
911
950
|
/** Known values of {@link ConfigurationDataType} that the service accepts. */
|
|
912
951
|
export enum KnownConfigurationDataType {
|
|
952
|
+
/** Boolean */
|
|
913
953
|
Boolean = "Boolean",
|
|
954
|
+
/** Numeric */
|
|
914
955
|
Numeric = "Numeric",
|
|
956
|
+
/** Integer */
|
|
915
957
|
Integer = "Integer",
|
|
958
|
+
/** Enumeration */
|
|
916
959
|
Enumeration = "Enumeration"
|
|
917
960
|
}
|
|
918
961
|
|
|
@@ -930,7 +973,9 @@ export type ConfigurationDataType = string;
|
|
|
930
973
|
|
|
931
974
|
/** Known values of {@link Reason} that the service accepts. */
|
|
932
975
|
export enum KnownReason {
|
|
976
|
+
/** Invalid */
|
|
933
977
|
Invalid = "Invalid",
|
|
978
|
+
/** AlreadyExists */
|
|
934
979
|
AlreadyExists = "AlreadyExists"
|
|
935
980
|
}
|
|
936
981
|
|
|
@@ -946,8 +991,11 @@ export type Reason = string;
|
|
|
946
991
|
|
|
947
992
|
/** Known values of {@link OperationOrigin} that the service accepts. */
|
|
948
993
|
export enum KnownOperationOrigin {
|
|
994
|
+
/** NotSpecified */
|
|
949
995
|
NotSpecified = "NotSpecified",
|
|
996
|
+
/** User */
|
|
950
997
|
User = "user",
|
|
998
|
+
/** System */
|
|
951
999
|
System = "system"
|
|
952
1000
|
}
|
|
953
1001
|
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { Configurations } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -64,11 +65,15 @@ export class ConfigurationsImpl implements Configurations {
|
|
|
64
65
|
[Symbol.asyncIterator]() {
|
|
65
66
|
return this;
|
|
66
67
|
},
|
|
67
|
-
byPage: () => {
|
|
68
|
+
byPage: (settings?: PageSettings) => {
|
|
69
|
+
if (settings?.maxPageSize) {
|
|
70
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
71
|
+
}
|
|
68
72
|
return this.listByServerPagingPage(
|
|
69
73
|
resourceGroupName,
|
|
70
74
|
serverName,
|
|
71
|
-
options
|
|
75
|
+
options,
|
|
76
|
+
settings
|
|
72
77
|
);
|
|
73
78
|
}
|
|
74
79
|
};
|
|
@@ -77,15 +82,18 @@ export class ConfigurationsImpl implements Configurations {
|
|
|
77
82
|
private async *listByServerPagingPage(
|
|
78
83
|
resourceGroupName: string,
|
|
79
84
|
serverName: string,
|
|
80
|
-
options?: ConfigurationsListByServerOptionalParams
|
|
85
|
+
options?: ConfigurationsListByServerOptionalParams,
|
|
86
|
+
settings?: PageSettings
|
|
81
87
|
): AsyncIterableIterator<Configuration[]> {
|
|
82
|
-
let result
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
options
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
88
|
+
let result: ConfigurationsListByServerResponse;
|
|
89
|
+
let continuationToken = settings?.continuationToken;
|
|
90
|
+
if (!continuationToken) {
|
|
91
|
+
result = await this._listByServer(resourceGroupName, serverName, options);
|
|
92
|
+
let page = result.value || [];
|
|
93
|
+
continuationToken = result.nextLink;
|
|
94
|
+
setContinuationToken(page, continuationToken);
|
|
95
|
+
yield page;
|
|
96
|
+
}
|
|
89
97
|
while (continuationToken) {
|
|
90
98
|
result = await this._listByServerNext(
|
|
91
99
|
resourceGroupName,
|
|
@@ -94,7 +102,9 @@ export class ConfigurationsImpl implements Configurations {
|
|
|
94
102
|
options
|
|
95
103
|
);
|
|
96
104
|
continuationToken = result.nextLink;
|
|
97
|
-
|
|
105
|
+
let page = result.value || [];
|
|
106
|
+
setContinuationToken(page, continuationToken);
|
|
107
|
+
yield page;
|
|
98
108
|
}
|
|
99
109
|
}
|
|
100
110
|
|
|
@@ -488,7 +498,6 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = {
|
|
|
488
498
|
bodyMapper: Mappers.CloudError
|
|
489
499
|
}
|
|
490
500
|
},
|
|
491
|
-
queryParameters: [Parameters.apiVersion],
|
|
492
501
|
urlParameters: [
|
|
493
502
|
Parameters.$host,
|
|
494
503
|
Parameters.subscriptionId,
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { Databases } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -18,12 +19,12 @@ import {
|
|
|
18
19
|
Database,
|
|
19
20
|
DatabasesListByServerNextOptionalParams,
|
|
20
21
|
DatabasesListByServerOptionalParams,
|
|
22
|
+
DatabasesListByServerResponse,
|
|
21
23
|
DatabasesCreateOptionalParams,
|
|
22
24
|
DatabasesCreateResponse,
|
|
23
25
|
DatabasesDeleteOptionalParams,
|
|
24
26
|
DatabasesGetOptionalParams,
|
|
25
27
|
DatabasesGetResponse,
|
|
26
|
-
DatabasesListByServerResponse,
|
|
27
28
|
DatabasesListByServerNextResponse
|
|
28
29
|
} from "../models";
|
|
29
30
|
|
|
@@ -63,11 +64,15 @@ export class DatabasesImpl implements Databases {
|
|
|
63
64
|
[Symbol.asyncIterator]() {
|
|
64
65
|
return this;
|
|
65
66
|
},
|
|
66
|
-
byPage: () => {
|
|
67
|
+
byPage: (settings?: PageSettings) => {
|
|
68
|
+
if (settings?.maxPageSize) {
|
|
69
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
70
|
+
}
|
|
67
71
|
return this.listByServerPagingPage(
|
|
68
72
|
resourceGroupName,
|
|
69
73
|
serverName,
|
|
70
|
-
options
|
|
74
|
+
options,
|
|
75
|
+
settings
|
|
71
76
|
);
|
|
72
77
|
}
|
|
73
78
|
};
|
|
@@ -76,15 +81,18 @@ export class DatabasesImpl implements Databases {
|
|
|
76
81
|
private async *listByServerPagingPage(
|
|
77
82
|
resourceGroupName: string,
|
|
78
83
|
serverName: string,
|
|
79
|
-
options?: DatabasesListByServerOptionalParams
|
|
84
|
+
options?: DatabasesListByServerOptionalParams,
|
|
85
|
+
settings?: PageSettings
|
|
80
86
|
): AsyncIterableIterator<Database[]> {
|
|
81
|
-
let result
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
options
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
87
|
+
let result: DatabasesListByServerResponse;
|
|
88
|
+
let continuationToken = settings?.continuationToken;
|
|
89
|
+
if (!continuationToken) {
|
|
90
|
+
result = await this._listByServer(resourceGroupName, serverName, options);
|
|
91
|
+
let page = result.value || [];
|
|
92
|
+
continuationToken = result.nextLink;
|
|
93
|
+
setContinuationToken(page, continuationToken);
|
|
94
|
+
yield page;
|
|
95
|
+
}
|
|
88
96
|
while (continuationToken) {
|
|
89
97
|
result = await this._listByServerNext(
|
|
90
98
|
resourceGroupName,
|
|
@@ -93,7 +101,9 @@ export class DatabasesImpl implements Databases {
|
|
|
93
101
|
options
|
|
94
102
|
);
|
|
95
103
|
continuationToken = result.nextLink;
|
|
96
|
-
|
|
104
|
+
let page = result.value || [];
|
|
105
|
+
setContinuationToken(page, continuationToken);
|
|
106
|
+
yield page;
|
|
97
107
|
}
|
|
98
108
|
}
|
|
99
109
|
|
|
@@ -467,7 +477,6 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = {
|
|
|
467
477
|
bodyMapper: Mappers.CloudError
|
|
468
478
|
}
|
|
469
479
|
},
|
|
470
|
-
queryParameters: [Parameters.apiVersion],
|
|
471
480
|
urlParameters: [
|
|
472
481
|
Parameters.$host,
|
|
473
482
|
Parameters.subscriptionId,
|