@azure/arm-postgresql 6.0.2-alpha.20221102.1 → 6.1.0-alpha.20221202.2

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 (86) hide show
  1. package/CHANGELOG.md +24 -11
  2. package/dist/index.js +271 -93
  3. package/dist/index.js.map +1 -1
  4. package/dist/index.min.js +1 -1
  5. package/dist/index.min.js.map +1 -1
  6. package/dist-esm/src/index.d.ts +1 -0
  7. package/dist-esm/src/index.d.ts.map +1 -1
  8. package/dist-esm/src/index.js +1 -0
  9. package/dist-esm/src/index.js.map +1 -1
  10. package/dist-esm/src/models/index.d.ts +84 -35
  11. package/dist-esm/src/models/index.d.ts.map +1 -1
  12. package/dist-esm/src/models/index.js +48 -0
  13. package/dist-esm/src/models/index.js.map +1 -1
  14. package/dist-esm/src/operations/configurations.d.ts.map +1 -1
  15. package/dist-esm/src/operations/configurations.js +8 -4
  16. package/dist-esm/src/operations/configurations.js.map +1 -1
  17. package/dist-esm/src/operations/databases.d.ts.map +1 -1
  18. package/dist-esm/src/operations/databases.js +8 -4
  19. package/dist-esm/src/operations/databases.js.map +1 -1
  20. package/dist-esm/src/operations/firewallRules.d.ts.map +1 -1
  21. package/dist-esm/src/operations/firewallRules.js +8 -4
  22. package/dist-esm/src/operations/firewallRules.js.map +1 -1
  23. package/dist-esm/src/operations/locationBasedPerformanceTier.d.ts.map +1 -1
  24. package/dist-esm/src/operations/locationBasedPerformanceTier.js +8 -4
  25. package/dist-esm/src/operations/locationBasedPerformanceTier.js.map +1 -1
  26. package/dist-esm/src/operations/logFiles.d.ts.map +1 -1
  27. package/dist-esm/src/operations/logFiles.js +8 -4
  28. package/dist-esm/src/operations/logFiles.js.map +1 -1
  29. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
  30. package/dist-esm/src/operations/privateEndpointConnections.js +19 -7
  31. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
  32. package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -1
  33. package/dist-esm/src/operations/privateLinkResources.js +19 -7
  34. package/dist-esm/src/operations/privateLinkResources.js.map +1 -1
  35. package/dist-esm/src/operations/replicas.d.ts.map +1 -1
  36. package/dist-esm/src/operations/replicas.js +8 -4
  37. package/dist-esm/src/operations/replicas.js.map +1 -1
  38. package/dist-esm/src/operations/serverAdministrators.d.ts.map +1 -1
  39. package/dist-esm/src/operations/serverAdministrators.js +8 -4
  40. package/dist-esm/src/operations/serverAdministrators.js.map +1 -1
  41. package/dist-esm/src/operations/serverBasedPerformanceTier.d.ts.map +1 -1
  42. package/dist-esm/src/operations/serverBasedPerformanceTier.js +8 -4
  43. package/dist-esm/src/operations/serverBasedPerformanceTier.js.map +1 -1
  44. package/dist-esm/src/operations/serverKeys.d.ts.map +1 -1
  45. package/dist-esm/src/operations/serverKeys.js +19 -7
  46. package/dist-esm/src/operations/serverKeys.js.map +1 -1
  47. package/dist-esm/src/operations/serverSecurityAlertPolicies.d.ts.map +1 -1
  48. package/dist-esm/src/operations/serverSecurityAlertPolicies.js +19 -7
  49. package/dist-esm/src/operations/serverSecurityAlertPolicies.js.map +1 -1
  50. package/dist-esm/src/operations/servers.d.ts.map +1 -1
  51. package/dist-esm/src/operations/servers.js +16 -8
  52. package/dist-esm/src/operations/servers.js.map +1 -1
  53. package/dist-esm/src/operations/virtualNetworkRules.d.ts.map +1 -1
  54. package/dist-esm/src/operations/virtualNetworkRules.js +19 -7
  55. package/dist-esm/src/operations/virtualNetworkRules.js.map +1 -1
  56. package/dist-esm/src/pagingHelper.d.ts +13 -0
  57. package/dist-esm/src/pagingHelper.d.ts.map +1 -0
  58. package/dist-esm/src/pagingHelper.js +32 -0
  59. package/dist-esm/src/pagingHelper.js.map +1 -0
  60. package/dist-esm/src/postgreSQLManagementClient.d.ts.map +1 -1
  61. package/dist-esm/src/postgreSQLManagementClient.js +20 -18
  62. package/dist-esm/src/postgreSQLManagementClient.js.map +1 -1
  63. package/dist-esm/test/sampleTest.js +11 -13
  64. package/dist-esm/test/sampleTest.js.map +1 -1
  65. package/package.json +12 -8
  66. package/review/arm-postgresql.api.md +68 -112
  67. package/src/index.ts +1 -0
  68. package/src/models/index.ts +85 -35
  69. package/src/operations/configurations.ts +13 -11
  70. package/src/operations/databases.ts +13 -11
  71. package/src/operations/firewallRules.ts +13 -11
  72. package/src/operations/locationBasedPerformanceTier.ts +10 -5
  73. package/src/operations/logFiles.ts +11 -9
  74. package/src/operations/privateEndpointConnections.ts +23 -13
  75. package/src/operations/privateLinkResources.ts +22 -12
  76. package/src/operations/replicas.ts +11 -9
  77. package/src/operations/serverAdministrators.ts +17 -7
  78. package/src/operations/serverBasedPerformanceTier.ts +15 -5
  79. package/src/operations/serverKeys.ts +26 -8
  80. package/src/operations/serverSecurityAlertPolicies.ts +23 -13
  81. package/src/operations/servers.ts +25 -11
  82. package/src/operations/virtualNetworkRules.ts +23 -13
  83. package/src/pagingHelper.ts +39 -0
  84. package/src/postgreSQLManagementClient.ts +26 -20
  85. package/types/arm-postgresql.d.ts +93 -35
  86. package/types/tsdoc-metadata.json +1 -1
@@ -485,7 +485,8 @@ export interface ServerKeyListResult {
485
485
  }
486
486
 
487
487
  /** The properties used to create a new server. */
488
- export type ServerPropertiesForDefaultCreate = ServerPropertiesForCreate & {
488
+ export interface ServerPropertiesForDefaultCreate
489
+ extends ServerPropertiesForCreate {
489
490
  /** Polymorphic discriminator, which specifies the different types this object can be */
490
491
  createMode: "Default";
491
492
  /** The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation). */
@@ -495,47 +496,48 @@ export type ServerPropertiesForDefaultCreate = ServerPropertiesForCreate & {
495
496
  * This value contains a credential. Consider obscuring before showing to users
496
497
  */
497
498
  administratorLoginPassword: string;
498
- };
499
+ }
499
500
 
500
501
  /** The properties used to create a new server by restoring from a backup. */
501
- export type ServerPropertiesForRestore = ServerPropertiesForCreate & {
502
+ export interface ServerPropertiesForRestore extends ServerPropertiesForCreate {
502
503
  /** Polymorphic discriminator, which specifies the different types this object can be */
503
504
  createMode: "PointInTimeRestore";
504
505
  /** The source server id to restore from. */
505
506
  sourceServerId: string;
506
507
  /** Restore point creation time (ISO8601 format), specifying the time to restore from. */
507
508
  restorePointInTime: Date;
508
- };
509
+ }
509
510
 
510
511
  /** The properties used to create a new server by restoring to a different region from a geo replicated backup. */
511
- export type ServerPropertiesForGeoRestore = ServerPropertiesForCreate & {
512
+ export interface ServerPropertiesForGeoRestore
513
+ extends ServerPropertiesForCreate {
512
514
  /** Polymorphic discriminator, which specifies the different types this object can be */
513
515
  createMode: "GeoRestore";
514
516
  /** The source server id to restore from. */
515
517
  sourceServerId: string;
516
- };
518
+ }
517
519
 
518
520
  /** The properties to create a new replica. */
519
- export type ServerPropertiesForReplica = ServerPropertiesForCreate & {
521
+ export interface ServerPropertiesForReplica extends ServerPropertiesForCreate {
520
522
  /** Polymorphic discriminator, which specifies the different types this object can be */
521
523
  createMode: "Replica";
522
524
  /** The master server id to create replica from. */
523
525
  sourceServerId: string;
524
- };
526
+ }
525
527
 
526
528
  /** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */
527
- export type TrackedResource = Resource & {
529
+ export interface TrackedResource extends Resource {
528
530
  /** Resource tags. */
529
531
  tags?: { [propertyName: string]: string };
530
532
  /** The geo-location where the resource lives */
531
533
  location: string;
532
- };
534
+ }
533
535
 
534
536
  /** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */
535
- export type ProxyResource = Resource & {};
537
+ export interface ProxyResource extends Resource {}
536
538
 
537
539
  /** Represents a server. */
538
- export type Server = TrackedResource & {
540
+ export interface Server extends TrackedResource {
539
541
  /** The Azure Active Directory identity of the server. */
540
542
  identity?: ResourceIdentity;
541
543
  /** The SKU (pricing tier) of the server. */
@@ -576,18 +578,18 @@ export type Server = TrackedResource & {
576
578
  * NOTE: This property will not be serialized. It can only be populated by the server.
577
579
  */
578
580
  readonly privateEndpointConnections?: ServerPrivateEndpointConnection[];
579
- };
581
+ }
580
582
 
581
583
  /** Represents a server firewall rule. */
582
- export type FirewallRule = ProxyResource & {
584
+ export interface FirewallRule extends ProxyResource {
583
585
  /** The start IP address of the server firewall rule. Must be IPv4 format. */
584
586
  startIpAddress: string;
585
587
  /** The end IP address of the server firewall rule. Must be IPv4 format. */
586
588
  endIpAddress: string;
587
- };
589
+ }
588
590
 
589
591
  /** A virtual network rule. */
590
- export type VirtualNetworkRule = ProxyResource & {
592
+ export interface VirtualNetworkRule extends ProxyResource {
591
593
  /** The ARM resource id of the virtual network subnet. */
592
594
  virtualNetworkSubnetId?: string;
593
595
  /** Create firewall rule before the virtual network has vnet service endpoint enabled. */
@@ -597,18 +599,18 @@ export type VirtualNetworkRule = ProxyResource & {
597
599
  * NOTE: This property will not be serialized. It can only be populated by the server.
598
600
  */
599
601
  readonly state?: VirtualNetworkRuleState;
600
- };
602
+ }
601
603
 
602
604
  /** Represents a Database. */
603
- export type Database = ProxyResource & {
605
+ export interface Database extends ProxyResource {
604
606
  /** The charset of the database. */
605
607
  charset?: string;
606
608
  /** The collation of the database. */
607
609
  collation?: string;
608
- };
610
+ }
609
611
 
610
612
  /** Represents a Configuration. */
611
- export type Configuration = ProxyResource & {
613
+ export interface Configuration extends ProxyResource {
612
614
  /** Value of the configuration. */
613
615
  value?: string;
614
616
  /**
@@ -633,10 +635,10 @@ export type Configuration = ProxyResource & {
633
635
  readonly allowedValues?: string;
634
636
  /** Source of the configuration. */
635
637
  source?: string;
636
- };
638
+ }
637
639
 
638
640
  /** Represents a log file. */
639
- export type LogFile = ProxyResource & {
641
+ export interface LogFile extends ProxyResource {
640
642
  /** Size of the log file. */
641
643
  sizeInKB?: number;
642
644
  /**
@@ -653,10 +655,10 @@ export type LogFile = ProxyResource & {
653
655
  typePropertiesType?: string;
654
656
  /** The url to download the log file from. */
655
657
  url?: string;
656
- };
658
+ }
657
659
 
658
660
  /** Represents a and external administrator to be created. */
659
- export type ServerAdministratorResource = ProxyResource & {
661
+ export interface ServerAdministratorResource extends ProxyResource {
660
662
  /** The type of administrator. */
661
663
  administratorType?: "ActiveDirectory";
662
664
  /** The server administrator login account name. */
@@ -665,10 +667,10 @@ export type ServerAdministratorResource = ProxyResource & {
665
667
  sid?: string;
666
668
  /** The server Active Directory Administrator tenant id. */
667
669
  tenantId?: string;
668
- };
670
+ }
669
671
 
670
672
  /** A recoverable server resource. */
671
- export type RecoverableServerResource = ProxyResource & {
673
+ export interface RecoverableServerResource extends ProxyResource {
672
674
  /**
673
675
  * The last available backup date time.
674
676
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -699,10 +701,10 @@ export type RecoverableServerResource = ProxyResource & {
699
701
  * NOTE: This property will not be serialized. It can only be populated by the server.
700
702
  */
701
703
  readonly version?: string;
702
- };
704
+ }
703
705
 
704
706
  /** A server security alert policy. */
705
- export type ServerSecurityAlertPolicy = ProxyResource & {
707
+ export interface ServerSecurityAlertPolicy extends ProxyResource {
706
708
  /** Specifies the state of the policy, whether it is enabled or disabled. */
707
709
  state?: ServerSecurityAlertPolicyState;
708
710
  /** Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly */
@@ -717,10 +719,10 @@ export type ServerSecurityAlertPolicy = ProxyResource & {
717
719
  storageAccountAccessKey?: string;
718
720
  /** Specifies the number of days to keep in the Threat Detection audit logs. */
719
721
  retentionDays?: number;
720
- };
722
+ }
721
723
 
722
724
  /** A private endpoint connection */
723
- export type PrivateEndpointConnection = ProxyResource & {
725
+ export interface PrivateEndpointConnection extends ProxyResource {
724
726
  /** Private endpoint which the connection belongs to. */
725
727
  privateEndpoint?: PrivateEndpointProperty;
726
728
  /** Connection state of the private endpoint connection. */
@@ -730,19 +732,19 @@ export type PrivateEndpointConnection = ProxyResource & {
730
732
  * NOTE: This property will not be serialized. It can only be populated by the server.
731
733
  */
732
734
  readonly provisioningState?: string;
733
- };
735
+ }
734
736
 
735
737
  /** A private link resource */
736
- export type PrivateLinkResource = ProxyResource & {
738
+ export interface PrivateLinkResource extends ProxyResource {
737
739
  /**
738
740
  * The private link resource group id.
739
741
  * NOTE: This property will not be serialized. It can only be populated by the server.
740
742
  */
741
743
  readonly properties?: PrivateLinkResourceProperties;
742
- };
744
+ }
743
745
 
744
746
  /** A PostgreSQL Server key. */
745
- export type ServerKey = ProxyResource & {
747
+ export interface ServerKey extends ProxyResource {
746
748
  /**
747
749
  * Kind of encryption protector used to protect the key.
748
750
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -757,10 +759,11 @@ export type ServerKey = ProxyResource & {
757
759
  * NOTE: This property will not be serialized. It can only be populated by the server.
758
760
  */
759
761
  readonly creationDate?: Date;
760
- };
762
+ }
761
763
 
762
764
  /** Known values of {@link IdentityType} that the service accepts. */
763
765
  export enum KnownIdentityType {
766
+ /** SystemAssigned */
764
767
  SystemAssigned = "SystemAssigned"
765
768
  }
766
769
 
@@ -775,8 +778,11 @@ export type IdentityType = string;
775
778
 
776
779
  /** Known values of {@link SkuTier} that the service accepts. */
777
780
  export enum KnownSkuTier {
781
+ /** Basic */
778
782
  Basic = "Basic",
783
+ /** GeneralPurpose */
779
784
  GeneralPurpose = "GeneralPurpose",
785
+ /** MemoryOptimized */
780
786
  MemoryOptimized = "MemoryOptimized"
781
787
  }
782
788
 
@@ -793,11 +799,17 @@ export type SkuTier = string;
793
799
 
794
800
  /** Known values of {@link ServerVersion} that the service accepts. */
795
801
  export enum KnownServerVersion {
802
+ /** Nine5 */
796
803
  Nine5 = "9.5",
804
+ /** Nine6 */
797
805
  Nine6 = "9.6",
806
+ /** Ten */
798
807
  Ten = "10",
808
+ /** Ten0 */
799
809
  Ten0 = "10.0",
810
+ /** Ten2 */
800
811
  Ten2 = "10.2",
812
+ /** Eleven */
801
813
  Eleven = "11"
802
814
  }
803
815
 
@@ -817,9 +829,13 @@ export type ServerVersion = string;
817
829
 
818
830
  /** Known values of {@link MinimalTlsVersionEnum} that the service accepts. */
819
831
  export enum KnownMinimalTlsVersionEnum {
832
+ /** TLS10 */
820
833
  TLS10 = "TLS1_0",
834
+ /** TLS11 */
821
835
  TLS11 = "TLS1_1",
836
+ /** TLS12 */
822
837
  TLS12 = "TLS1_2",
838
+ /** TLSEnforcementDisabled */
823
839
  TLSEnforcementDisabled = "TLSEnforcementDisabled"
824
840
  }
825
841
 
@@ -855,7 +871,9 @@ export type InfrastructureEncryption = string;
855
871
 
856
872
  /** Known values of {@link PublicNetworkAccessEnum} that the service accepts. */
857
873
  export enum KnownPublicNetworkAccessEnum {
874
+ /** Enabled */
858
875
  Enabled = "Enabled",
876
+ /** Disabled */
859
877
  Disabled = "Disabled"
860
878
  }
861
879
 
@@ -871,7 +889,9 @@ export type PublicNetworkAccessEnum = string;
871
889
 
872
890
  /** Known values of {@link GeoRedundantBackup} that the service accepts. */
873
891
  export enum KnownGeoRedundantBackup {
892
+ /** Enabled */
874
893
  Enabled = "Enabled",
894
+ /** Disabled */
875
895
  Disabled = "Disabled"
876
896
  }
877
897
 
@@ -887,7 +907,9 @@ export type GeoRedundantBackup = string;
887
907
 
888
908
  /** Known values of {@link StorageAutogrow} that the service accepts. */
889
909
  export enum KnownStorageAutogrow {
910
+ /** Enabled */
890
911
  Enabled = "Enabled",
912
+ /** Disabled */
891
913
  Disabled = "Disabled"
892
914
  }
893
915
 
@@ -903,9 +925,13 @@ export type StorageAutogrow = string;
903
925
 
904
926
  /** Known values of {@link CreateMode} that the service accepts. */
905
927
  export enum KnownCreateMode {
928
+ /** Default */
906
929
  Default = "Default",
930
+ /** PointInTimeRestore */
907
931
  PointInTimeRestore = "PointInTimeRestore",
932
+ /** GeoRestore */
908
933
  GeoRestore = "GeoRestore",
934
+ /** Replica */
909
935
  Replica = "Replica"
910
936
  }
911
937
 
@@ -923,9 +949,13 @@ export type CreateMode = string;
923
949
 
924
950
  /** Known values of {@link ServerState} that the service accepts. */
925
951
  export enum KnownServerState {
952
+ /** Ready */
926
953
  Ready = "Ready",
954
+ /** Dropping */
927
955
  Dropping = "Dropping",
956
+ /** Disabled */
928
957
  Disabled = "Disabled",
958
+ /** Inaccessible */
929
959
  Inaccessible = "Inaccessible"
930
960
  }
931
961
 
@@ -943,9 +973,13 @@ export type ServerState = string;
943
973
 
944
974
  /** Known values of {@link PrivateLinkServiceConnectionStateStatus} that the service accepts. */
945
975
  export enum KnownPrivateLinkServiceConnectionStateStatus {
976
+ /** Approved */
946
977
  Approved = "Approved",
978
+ /** Pending */
947
979
  Pending = "Pending",
980
+ /** Rejected */
948
981
  Rejected = "Rejected",
982
+ /** Disconnected */
949
983
  Disconnected = "Disconnected"
950
984
  }
951
985
 
@@ -963,6 +997,7 @@ export type PrivateLinkServiceConnectionStateStatus = string;
963
997
 
964
998
  /** Known values of {@link PrivateLinkServiceConnectionStateActionsRequire} that the service accepts. */
965
999
  export enum KnownPrivateLinkServiceConnectionStateActionsRequire {
1000
+ /** None */
966
1001
  None = "None"
967
1002
  }
968
1003
 
@@ -977,10 +1012,15 @@ export type PrivateLinkServiceConnectionStateActionsRequire = string;
977
1012
 
978
1013
  /** Known values of {@link PrivateEndpointProvisioningState} that the service accepts. */
979
1014
  export enum KnownPrivateEndpointProvisioningState {
1015
+ /** Approving */
980
1016
  Approving = "Approving",
1017
+ /** Ready */
981
1018
  Ready = "Ready",
1019
+ /** Dropping */
982
1020
  Dropping = "Dropping",
1021
+ /** Failed */
983
1022
  Failed = "Failed",
1023
+ /** Rejecting */
984
1024
  Rejecting = "Rejecting"
985
1025
  }
986
1026
 
@@ -999,10 +1039,15 @@ export type PrivateEndpointProvisioningState = string;
999
1039
 
1000
1040
  /** Known values of {@link VirtualNetworkRuleState} that the service accepts. */
1001
1041
  export enum KnownVirtualNetworkRuleState {
1042
+ /** Initializing */
1002
1043
  Initializing = "Initializing",
1044
+ /** InProgress */
1003
1045
  InProgress = "InProgress",
1046
+ /** Ready */
1004
1047
  Ready = "Ready",
1048
+ /** Deleting */
1005
1049
  Deleting = "Deleting",
1050
+ /** Unknown */
1006
1051
  Unknown = "Unknown"
1007
1052
  }
1008
1053
 
@@ -1021,8 +1066,11 @@ export type VirtualNetworkRuleState = string;
1021
1066
 
1022
1067
  /** Known values of {@link OperationOrigin} that the service accepts. */
1023
1068
  export enum KnownOperationOrigin {
1069
+ /** NotSpecified */
1024
1070
  NotSpecified = "NotSpecified",
1071
+ /** User */
1025
1072
  User = "user",
1073
+ /** System */
1026
1074
  System = "system"
1027
1075
  }
1028
1076
 
@@ -1039,6 +1087,7 @@ export type OperationOrigin = string;
1039
1087
 
1040
1088
  /** Known values of {@link SecurityAlertPolicyName} that the service accepts. */
1041
1089
  export enum KnownSecurityAlertPolicyName {
1090
+ /** Default */
1042
1091
  Default = "Default"
1043
1092
  }
1044
1093
 
@@ -1053,6 +1102,7 @@ export type SecurityAlertPolicyName = string;
1053
1102
 
1054
1103
  /** Known values of {@link ServerKeyType} that the service accepts. */
1055
1104
  export enum KnownServerKeyType {
1105
+ /** AzureKeyVault */
1056
1106
  AzureKeyVault = "AzureKeyVault"
1057
1107
  }
1058
1108
 
@@ -6,7 +6,7 @@
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
10
  import { Configurations } from "../operationsInterfaces";
11
11
  import * as coreClient from "@azure/core-client";
12
12
  import * as Mappers from "../models/mappers";
@@ -17,11 +17,11 @@ import { LroImpl } from "../lroImpl";
17
17
  import {
18
18
  Configuration,
19
19
  ConfigurationsListByServerOptionalParams,
20
+ ConfigurationsListByServerResponse,
20
21
  ConfigurationsCreateOrUpdateOptionalParams,
21
22
  ConfigurationsCreateOrUpdateResponse,
22
23
  ConfigurationsGetOptionalParams,
23
- ConfigurationsGetResponse,
24
- ConfigurationsListByServerResponse
24
+ ConfigurationsGetResponse
25
25
  } from "../models";
26
26
 
27
27
  /// <reference lib="esnext.asynciterable" />
@@ -60,11 +60,15 @@ export class ConfigurationsImpl implements Configurations {
60
60
  [Symbol.asyncIterator]() {
61
61
  return this;
62
62
  },
63
- byPage: () => {
63
+ byPage: (settings?: PageSettings) => {
64
+ if (settings?.maxPageSize) {
65
+ throw new Error("maxPageSize is not supported by this operation.");
66
+ }
64
67
  return this.listByServerPagingPage(
65
68
  resourceGroupName,
66
69
  serverName,
67
- options
70
+ options,
71
+ settings
68
72
  );
69
73
  }
70
74
  };
@@ -73,13 +77,11 @@ export class ConfigurationsImpl implements Configurations {
73
77
  private async *listByServerPagingPage(
74
78
  resourceGroupName: string,
75
79
  serverName: string,
76
- options?: ConfigurationsListByServerOptionalParams
80
+ options?: ConfigurationsListByServerOptionalParams,
81
+ _settings?: PageSettings
77
82
  ): AsyncIterableIterator<Configuration[]> {
78
- let result = await this._listByServer(
79
- resourceGroupName,
80
- serverName,
81
- options
82
- );
83
+ let result: ConfigurationsListByServerResponse;
84
+ result = await this._listByServer(resourceGroupName, serverName, options);
83
85
  yield result.value || [];
84
86
  }
85
87
 
@@ -6,7 +6,7 @@
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
10
  import { Databases } from "../operationsInterfaces";
11
11
  import * as coreClient from "@azure/core-client";
12
12
  import * as Mappers from "../models/mappers";
@@ -17,12 +17,12 @@ import { LroImpl } from "../lroImpl";
17
17
  import {
18
18
  Database,
19
19
  DatabasesListByServerOptionalParams,
20
+ DatabasesListByServerResponse,
20
21
  DatabasesCreateOrUpdateOptionalParams,
21
22
  DatabasesCreateOrUpdateResponse,
22
23
  DatabasesDeleteOptionalParams,
23
24
  DatabasesGetOptionalParams,
24
- DatabasesGetResponse,
25
- DatabasesListByServerResponse
25
+ DatabasesGetResponse
26
26
  } from "../models";
27
27
 
28
28
  /// <reference lib="esnext.asynciterable" />
@@ -61,11 +61,15 @@ export class DatabasesImpl implements Databases {
61
61
  [Symbol.asyncIterator]() {
62
62
  return this;
63
63
  },
64
- byPage: () => {
64
+ byPage: (settings?: PageSettings) => {
65
+ if (settings?.maxPageSize) {
66
+ throw new Error("maxPageSize is not supported by this operation.");
67
+ }
65
68
  return this.listByServerPagingPage(
66
69
  resourceGroupName,
67
70
  serverName,
68
- options
71
+ options,
72
+ settings
69
73
  );
70
74
  }
71
75
  };
@@ -74,13 +78,11 @@ export class DatabasesImpl implements Databases {
74
78
  private async *listByServerPagingPage(
75
79
  resourceGroupName: string,
76
80
  serverName: string,
77
- options?: DatabasesListByServerOptionalParams
81
+ options?: DatabasesListByServerOptionalParams,
82
+ _settings?: PageSettings
78
83
  ): AsyncIterableIterator<Database[]> {
79
- let result = await this._listByServer(
80
- resourceGroupName,
81
- serverName,
82
- options
83
- );
84
+ let result: DatabasesListByServerResponse;
85
+ result = await this._listByServer(resourceGroupName, serverName, options);
84
86
  yield result.value || [];
85
87
  }
86
88
 
@@ -6,7 +6,7 @@
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
10
  import { FirewallRules } from "../operationsInterfaces";
11
11
  import * as coreClient from "@azure/core-client";
12
12
  import * as Mappers from "../models/mappers";
@@ -17,12 +17,12 @@ import { LroImpl } from "../lroImpl";
17
17
  import {
18
18
  FirewallRule,
19
19
  FirewallRulesListByServerOptionalParams,
20
+ FirewallRulesListByServerResponse,
20
21
  FirewallRulesCreateOrUpdateOptionalParams,
21
22
  FirewallRulesCreateOrUpdateResponse,
22
23
  FirewallRulesDeleteOptionalParams,
23
24
  FirewallRulesGetOptionalParams,
24
- FirewallRulesGetResponse,
25
- FirewallRulesListByServerResponse
25
+ FirewallRulesGetResponse
26
26
  } from "../models";
27
27
 
28
28
  /// <reference lib="esnext.asynciterable" />
@@ -61,11 +61,15 @@ export class FirewallRulesImpl implements FirewallRules {
61
61
  [Symbol.asyncIterator]() {
62
62
  return this;
63
63
  },
64
- byPage: () => {
64
+ byPage: (settings?: PageSettings) => {
65
+ if (settings?.maxPageSize) {
66
+ throw new Error("maxPageSize is not supported by this operation.");
67
+ }
65
68
  return this.listByServerPagingPage(
66
69
  resourceGroupName,
67
70
  serverName,
68
- options
71
+ options,
72
+ settings
69
73
  );
70
74
  }
71
75
  };
@@ -74,13 +78,11 @@ export class FirewallRulesImpl implements FirewallRules {
74
78
  private async *listByServerPagingPage(
75
79
  resourceGroupName: string,
76
80
  serverName: string,
77
- options?: FirewallRulesListByServerOptionalParams
81
+ options?: FirewallRulesListByServerOptionalParams,
82
+ _settings?: PageSettings
78
83
  ): AsyncIterableIterator<FirewallRule[]> {
79
- let result = await this._listByServer(
80
- resourceGroupName,
81
- serverName,
82
- options
83
- );
84
+ let result: FirewallRulesListByServerResponse;
85
+ result = await this._listByServer(resourceGroupName, serverName, options);
84
86
  yield result.value || [];
85
87
  }
86
88
 
@@ -6,7 +6,7 @@
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
10
  import { LocationBasedPerformanceTier } from "../operationsInterfaces";
11
11
  import * as coreClient from "@azure/core-client";
12
12
  import * as Mappers from "../models/mappers";
@@ -49,17 +49,22 @@ export class LocationBasedPerformanceTierImpl
49
49
  [Symbol.asyncIterator]() {
50
50
  return this;
51
51
  },
52
- byPage: () => {
53
- return this.listPagingPage(locationName, options);
52
+ byPage: (settings?: PageSettings) => {
53
+ if (settings?.maxPageSize) {
54
+ throw new Error("maxPageSize is not supported by this operation.");
55
+ }
56
+ return this.listPagingPage(locationName, options, settings);
54
57
  }
55
58
  };
56
59
  }
57
60
 
58
61
  private async *listPagingPage(
59
62
  locationName: string,
60
- options?: LocationBasedPerformanceTierListOptionalParams
63
+ options?: LocationBasedPerformanceTierListOptionalParams,
64
+ _settings?: PageSettings
61
65
  ): AsyncIterableIterator<PerformanceTierProperties[]> {
62
- let result = await this._list(locationName, options);
66
+ let result: LocationBasedPerformanceTierListResponse;
67
+ result = await this._list(locationName, options);
63
68
  yield result.value || [];
64
69
  }
65
70
 
@@ -6,7 +6,7 @@
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
10
  import { LogFiles } from "../operationsInterfaces";
11
11
  import * as coreClient from "@azure/core-client";
12
12
  import * as Mappers from "../models/mappers";
@@ -54,11 +54,15 @@ export class LogFilesImpl implements LogFiles {
54
54
  [Symbol.asyncIterator]() {
55
55
  return this;
56
56
  },
57
- byPage: () => {
57
+ byPage: (settings?: PageSettings) => {
58
+ if (settings?.maxPageSize) {
59
+ throw new Error("maxPageSize is not supported by this operation.");
60
+ }
58
61
  return this.listByServerPagingPage(
59
62
  resourceGroupName,
60
63
  serverName,
61
- options
64
+ options,
65
+ settings
62
66
  );
63
67
  }
64
68
  };
@@ -67,13 +71,11 @@ export class LogFilesImpl implements LogFiles {
67
71
  private async *listByServerPagingPage(
68
72
  resourceGroupName: string,
69
73
  serverName: string,
70
- options?: LogFilesListByServerOptionalParams
74
+ options?: LogFilesListByServerOptionalParams,
75
+ _settings?: PageSettings
71
76
  ): AsyncIterableIterator<LogFile[]> {
72
- let result = await this._listByServer(
73
- resourceGroupName,
74
- serverName,
75
- options
76
- );
77
+ let result: LogFilesListByServerResponse;
78
+ result = await this._listByServer(resourceGroupName, serverName, options);
77
79
  yield result.value || [];
78
80
  }
79
81