@azure/arm-mysql 5.0.2-alpha.20221128.1 → 5.1.0-alpha.20221205.3
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 +28 -10
- package/dist/index.js +378 -135
- 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/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 +93 -45
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +47 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/mySQLManagementClient.d.ts.map +1 -1
- package/dist-esm/src/mySQLManagementClient.js +20 -18
- package/dist-esm/src/mySQLManagementClient.js.map +1 -1
- package/dist-esm/src/operations/advisors.d.ts.map +1 -1
- package/dist-esm/src/operations/advisors.js +19 -7
- package/dist-esm/src/operations/advisors.js.map +1 -1
- package/dist-esm/src/operations/configurations.d.ts.map +1 -1
- package/dist-esm/src/operations/configurations.js +8 -4
- 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 +8 -4
- 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 +8 -4
- package/dist-esm/src/operations/firewallRules.js.map +1 -1
- package/dist-esm/src/operations/locationBasedPerformanceTier.d.ts.map +1 -1
- package/dist-esm/src/operations/locationBasedPerformanceTier.js +8 -4
- package/dist-esm/src/operations/locationBasedPerformanceTier.js.map +1 -1
- package/dist-esm/src/operations/locationBasedRecommendedActionSessionsResult.d.ts.map +1 -1
- package/dist-esm/src/operations/locationBasedRecommendedActionSessionsResult.js +19 -7
- package/dist-esm/src/operations/locationBasedRecommendedActionSessionsResult.js.map +1 -1
- package/dist-esm/src/operations/logFiles.d.ts.map +1 -1
- package/dist-esm/src/operations/logFiles.js +8 -4
- package/dist-esm/src/operations/logFiles.js.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.js +19 -7
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
- package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -1
- package/dist-esm/src/operations/privateLinkResources.js +19 -7
- package/dist-esm/src/operations/privateLinkResources.js.map +1 -1
- package/dist-esm/src/operations/queryTexts.d.ts.map +1 -1
- package/dist-esm/src/operations/queryTexts.js +19 -7
- package/dist-esm/src/operations/queryTexts.js.map +1 -1
- package/dist-esm/src/operations/recommendedActions.d.ts.map +1 -1
- package/dist-esm/src/operations/recommendedActions.js +19 -7
- package/dist-esm/src/operations/recommendedActions.js.map +1 -1
- package/dist-esm/src/operations/replicas.d.ts.map +1 -1
- package/dist-esm/src/operations/replicas.js +8 -4
- package/dist-esm/src/operations/replicas.js.map +1 -1
- package/dist-esm/src/operations/serverAdministrators.d.ts.map +1 -1
- package/dist-esm/src/operations/serverAdministrators.js +8 -4
- package/dist-esm/src/operations/serverAdministrators.js.map +1 -1
- package/dist-esm/src/operations/serverBasedPerformanceTier.d.ts.map +1 -1
- package/dist-esm/src/operations/serverBasedPerformanceTier.js +8 -4
- package/dist-esm/src/operations/serverBasedPerformanceTier.js.map +1 -1
- package/dist-esm/src/operations/serverKeys.d.ts.map +1 -1
- package/dist-esm/src/operations/serverKeys.js +19 -7
- package/dist-esm/src/operations/serverKeys.js.map +1 -1
- package/dist-esm/src/operations/serverSecurityAlertPolicies.d.ts.map +1 -1
- package/dist-esm/src/operations/serverSecurityAlertPolicies.js +19 -7
- package/dist-esm/src/operations/serverSecurityAlertPolicies.js.map +1 -1
- package/dist-esm/src/operations/servers.d.ts.map +1 -1
- package/dist-esm/src/operations/servers.js +16 -8
- package/dist-esm/src/operations/servers.js.map +1 -1
- package/dist-esm/src/operations/topQueryStatistics.d.ts.map +1 -1
- package/dist-esm/src/operations/topQueryStatistics.js +19 -7
- package/dist-esm/src/operations/topQueryStatistics.js.map +1 -1
- package/dist-esm/src/operations/virtualNetworkRules.d.ts.map +1 -1
- package/dist-esm/src/operations/virtualNetworkRules.js +19 -7
- package/dist-esm/src/operations/virtualNetworkRules.js.map +1 -1
- package/dist-esm/src/operations/waitStatistics.d.ts.map +1 -1
- package/dist-esm/src/operations/waitStatistics.js +19 -7
- package/dist-esm/src/operations/waitStatistics.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/test/sampleTest.js +11 -13
- package/dist-esm/test/sampleTest.js.map +1 -1
- package/package.json +12 -8
- package/review/arm-mysql.api.md +92 -135
- package/src/index.ts +1 -0
- package/src/models/index.ts +94 -45
- package/src/mySQLManagementClient.ts +26 -20
- package/src/operations/advisors.ts +23 -13
- package/src/operations/configurations.ts +13 -11
- package/src/operations/databases.ts +13 -11
- package/src/operations/firewallRules.ts +13 -11
- package/src/operations/locationBasedPerformanceTier.ts +10 -5
- package/src/operations/locationBasedRecommendedActionSessionsResult.ts +26 -8
- package/src/operations/logFiles.ts +11 -9
- package/src/operations/privateEndpointConnections.ts +23 -13
- package/src/operations/privateLinkResources.ts +22 -12
- package/src/operations/queryTexts.ts +28 -14
- package/src/operations/recommendedActions.ts +28 -14
- package/src/operations/replicas.ts +11 -9
- package/src/operations/serverAdministrators.ts +17 -7
- package/src/operations/serverBasedPerformanceTier.ts +15 -5
- package/src/operations/serverKeys.ts +26 -8
- package/src/operations/serverSecurityAlertPolicies.ts +23 -13
- package/src/operations/servers.ts +25 -11
- package/src/operations/topQueryStatistics.ts +28 -14
- package/src/operations/virtualNetworkRules.ts +23 -13
- package/src/operations/waitStatistics.ts +28 -14
- package/src/pagingHelper.ts +39 -0
- package/types/arm-mysql.d.ts +102 -45
package/src/models/index.ts
CHANGED
|
@@ -610,7 +610,8 @@ export interface ServerUpgradeParameters {
|
|
|
610
610
|
}
|
|
611
611
|
|
|
612
612
|
/** The properties used to create a new server. */
|
|
613
|
-
export
|
|
613
|
+
export interface ServerPropertiesForDefaultCreate
|
|
614
|
+
extends ServerPropertiesForCreate {
|
|
614
615
|
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
615
616
|
createMode: "Default";
|
|
616
617
|
/** The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation). The login name is required when updating password. */
|
|
@@ -620,47 +621,48 @@ export type ServerPropertiesForDefaultCreate = ServerPropertiesForCreate & {
|
|
|
620
621
|
* This value contains a credential. Consider obscuring before showing to users
|
|
621
622
|
*/
|
|
622
623
|
administratorLoginPassword: string;
|
|
623
|
-
}
|
|
624
|
+
}
|
|
624
625
|
|
|
625
626
|
/** The properties used to create a new server by restoring from a backup. */
|
|
626
|
-
export
|
|
627
|
+
export interface ServerPropertiesForRestore extends ServerPropertiesForCreate {
|
|
627
628
|
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
628
629
|
createMode: "PointInTimeRestore";
|
|
629
630
|
/** The source server id to restore from. */
|
|
630
631
|
sourceServerId: string;
|
|
631
632
|
/** Restore point creation time (ISO8601 format), specifying the time to restore from. */
|
|
632
633
|
restorePointInTime: Date;
|
|
633
|
-
}
|
|
634
|
+
}
|
|
634
635
|
|
|
635
636
|
/** The properties used to create a new server by restoring to a different region from a geo replicated backup. */
|
|
636
|
-
export
|
|
637
|
+
export interface ServerPropertiesForGeoRestore
|
|
638
|
+
extends ServerPropertiesForCreate {
|
|
637
639
|
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
638
640
|
createMode: "GeoRestore";
|
|
639
641
|
/** The source server id to restore from. */
|
|
640
642
|
sourceServerId: string;
|
|
641
|
-
}
|
|
643
|
+
}
|
|
642
644
|
|
|
643
645
|
/** The properties to create a new replica. */
|
|
644
|
-
export
|
|
646
|
+
export interface ServerPropertiesForReplica extends ServerPropertiesForCreate {
|
|
645
647
|
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
646
648
|
createMode: "Replica";
|
|
647
649
|
/** The master server id to create replica from. */
|
|
648
650
|
sourceServerId: string;
|
|
649
|
-
}
|
|
651
|
+
}
|
|
650
652
|
|
|
651
653
|
/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */
|
|
652
|
-
export
|
|
654
|
+
export interface TrackedResource extends Resource {
|
|
653
655
|
/** Resource tags. */
|
|
654
656
|
tags?: { [propertyName: string]: string };
|
|
655
657
|
/** The geo-location where the resource lives */
|
|
656
658
|
location: string;
|
|
657
|
-
}
|
|
659
|
+
}
|
|
658
660
|
|
|
659
661
|
/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */
|
|
660
|
-
export
|
|
662
|
+
export interface ProxyResource extends Resource {}
|
|
661
663
|
|
|
662
664
|
/** Represents a server. */
|
|
663
|
-
export
|
|
665
|
+
export interface Server extends TrackedResource {
|
|
664
666
|
/** The Azure Active Directory identity of the server. */
|
|
665
667
|
identity?: ResourceIdentity;
|
|
666
668
|
/** The SKU (pricing tier) of the server. */
|
|
@@ -701,18 +703,18 @@ export type Server = TrackedResource & {
|
|
|
701
703
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
702
704
|
*/
|
|
703
705
|
readonly privateEndpointConnections?: ServerPrivateEndpointConnection[];
|
|
704
|
-
}
|
|
706
|
+
}
|
|
705
707
|
|
|
706
708
|
/** Represents a server firewall rule. */
|
|
707
|
-
export
|
|
709
|
+
export interface FirewallRule extends ProxyResource {
|
|
708
710
|
/** The start IP address of the server firewall rule. Must be IPv4 format. */
|
|
709
711
|
startIpAddress: string;
|
|
710
712
|
/** The end IP address of the server firewall rule. Must be IPv4 format. */
|
|
711
713
|
endIpAddress: string;
|
|
712
|
-
}
|
|
714
|
+
}
|
|
713
715
|
|
|
714
716
|
/** A virtual network rule. */
|
|
715
|
-
export
|
|
717
|
+
export interface VirtualNetworkRule extends ProxyResource {
|
|
716
718
|
/** The ARM resource id of the virtual network subnet. */
|
|
717
719
|
virtualNetworkSubnetId?: string;
|
|
718
720
|
/** Create firewall rule before the virtual network has vnet service endpoint enabled. */
|
|
@@ -722,18 +724,18 @@ export type VirtualNetworkRule = ProxyResource & {
|
|
|
722
724
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
723
725
|
*/
|
|
724
726
|
readonly state?: VirtualNetworkRuleState;
|
|
725
|
-
}
|
|
727
|
+
}
|
|
726
728
|
|
|
727
729
|
/** Represents a Database. */
|
|
728
|
-
export
|
|
730
|
+
export interface Database extends ProxyResource {
|
|
729
731
|
/** The charset of the database. */
|
|
730
732
|
charset?: string;
|
|
731
733
|
/** The collation of the database. */
|
|
732
734
|
collation?: string;
|
|
733
|
-
}
|
|
735
|
+
}
|
|
734
736
|
|
|
735
737
|
/** Represents a Configuration. */
|
|
736
|
-
export
|
|
738
|
+
export interface Configuration extends ProxyResource {
|
|
737
739
|
/** Value of the configuration. */
|
|
738
740
|
value?: string;
|
|
739
741
|
/**
|
|
@@ -758,10 +760,10 @@ export type Configuration = ProxyResource & {
|
|
|
758
760
|
readonly allowedValues?: string;
|
|
759
761
|
/** Source of the configuration. */
|
|
760
762
|
source?: string;
|
|
761
|
-
}
|
|
763
|
+
}
|
|
762
764
|
|
|
763
765
|
/** Represents a log file. */
|
|
764
|
-
export
|
|
766
|
+
export interface LogFile extends ProxyResource {
|
|
765
767
|
/** Size of the log file. */
|
|
766
768
|
sizeInKB?: number;
|
|
767
769
|
/**
|
|
@@ -778,10 +780,10 @@ export type LogFile = ProxyResource & {
|
|
|
778
780
|
typePropertiesType?: string;
|
|
779
781
|
/** The url to download the log file from. */
|
|
780
782
|
url?: string;
|
|
781
|
-
}
|
|
783
|
+
}
|
|
782
784
|
|
|
783
785
|
/** Represents a and external administrator to be created. */
|
|
784
|
-
export
|
|
786
|
+
export interface ServerAdministratorResource extends ProxyResource {
|
|
785
787
|
/** The type of administrator. */
|
|
786
788
|
administratorType?: "ActiveDirectory";
|
|
787
789
|
/** The server administrator login account name. */
|
|
@@ -790,10 +792,10 @@ export type ServerAdministratorResource = ProxyResource & {
|
|
|
790
792
|
sid?: string;
|
|
791
793
|
/** The server Active Directory Administrator tenant id. */
|
|
792
794
|
tenantId?: string;
|
|
793
|
-
}
|
|
795
|
+
}
|
|
794
796
|
|
|
795
797
|
/** A recoverable server resource. */
|
|
796
|
-
export
|
|
798
|
+
export interface RecoverableServerResource extends ProxyResource {
|
|
797
799
|
/**
|
|
798
800
|
* The last available backup date time.
|
|
799
801
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
@@ -824,10 +826,10 @@ export type RecoverableServerResource = ProxyResource & {
|
|
|
824
826
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
825
827
|
*/
|
|
826
828
|
readonly version?: string;
|
|
827
|
-
}
|
|
829
|
+
}
|
|
828
830
|
|
|
829
831
|
/** A server security alert policy. */
|
|
830
|
-
export
|
|
832
|
+
export interface ServerSecurityAlertPolicy extends ProxyResource {
|
|
831
833
|
/** Specifies the state of the policy, whether it is enabled or disabled. */
|
|
832
834
|
state?: ServerSecurityAlertPolicyState;
|
|
833
835
|
/** Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly */
|
|
@@ -842,18 +844,18 @@ export type ServerSecurityAlertPolicy = ProxyResource & {
|
|
|
842
844
|
storageAccountAccessKey?: string;
|
|
843
845
|
/** Specifies the number of days to keep in the Threat Detection audit logs. */
|
|
844
846
|
retentionDays?: number;
|
|
845
|
-
}
|
|
847
|
+
}
|
|
846
848
|
|
|
847
849
|
/** Represents a Query Text. */
|
|
848
|
-
export
|
|
850
|
+
export interface QueryText extends ProxyResource {
|
|
849
851
|
/** Query identifier unique to the server. */
|
|
850
852
|
queryId?: string;
|
|
851
853
|
/** Query text. */
|
|
852
854
|
queryText?: string;
|
|
853
|
-
}
|
|
855
|
+
}
|
|
854
856
|
|
|
855
857
|
/** Represents a Query Statistic. */
|
|
856
|
-
export
|
|
858
|
+
export interface QueryStatistic extends ProxyResource {
|
|
857
859
|
/** Database query identifier. */
|
|
858
860
|
queryId?: string;
|
|
859
861
|
/** Observation start time. */
|
|
@@ -874,10 +876,10 @@ export type QueryStatistic = ProxyResource & {
|
|
|
874
876
|
metricValue?: number;
|
|
875
877
|
/** Metric value unit. */
|
|
876
878
|
metricValueUnit?: string;
|
|
877
|
-
}
|
|
879
|
+
}
|
|
878
880
|
|
|
879
881
|
/** Represents a Wait Statistic. */
|
|
880
|
-
export
|
|
882
|
+
export interface WaitStatistic extends ProxyResource {
|
|
881
883
|
/** Observation start time. */
|
|
882
884
|
startTime?: Date;
|
|
883
885
|
/** Observation end time. */
|
|
@@ -896,16 +898,16 @@ export type WaitStatistic = ProxyResource & {
|
|
|
896
898
|
count?: number;
|
|
897
899
|
/** Total time of wait in milliseconds in this time interval. */
|
|
898
900
|
totalTimeInMs?: number;
|
|
899
|
-
}
|
|
901
|
+
}
|
|
900
902
|
|
|
901
903
|
/** Represents a recommendation action advisor. */
|
|
902
|
-
export
|
|
904
|
+
export interface Advisor extends ProxyResource {
|
|
903
905
|
/** The properties of a recommendation action advisor. */
|
|
904
906
|
properties?: Record<string, unknown>;
|
|
905
|
-
}
|
|
907
|
+
}
|
|
906
908
|
|
|
907
909
|
/** Represents a Recommendation Action. */
|
|
908
|
-
export
|
|
910
|
+
export interface RecommendationAction extends ProxyResource {
|
|
909
911
|
/** Advisor name. */
|
|
910
912
|
advisorName?: string;
|
|
911
913
|
/** Recommendation action session identifier. */
|
|
@@ -922,10 +924,10 @@ export type RecommendationAction = ProxyResource & {
|
|
|
922
924
|
recommendationType?: string;
|
|
923
925
|
/** Recommendation action details. */
|
|
924
926
|
details?: { [propertyName: string]: string };
|
|
925
|
-
}
|
|
927
|
+
}
|
|
926
928
|
|
|
927
929
|
/** A private endpoint connection */
|
|
928
|
-
export
|
|
930
|
+
export interface PrivateEndpointConnection extends ProxyResource {
|
|
929
931
|
/** Private endpoint which the connection belongs to. */
|
|
930
932
|
privateEndpoint?: PrivateEndpointProperty;
|
|
931
933
|
/** Connection state of the private endpoint connection. */
|
|
@@ -935,19 +937,19 @@ export type PrivateEndpointConnection = ProxyResource & {
|
|
|
935
937
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
936
938
|
*/
|
|
937
939
|
readonly provisioningState?: string;
|
|
938
|
-
}
|
|
940
|
+
}
|
|
939
941
|
|
|
940
942
|
/** A private link resource */
|
|
941
|
-
export
|
|
943
|
+
export interface PrivateLinkResource extends ProxyResource {
|
|
942
944
|
/**
|
|
943
945
|
* The private link resource group id.
|
|
944
946
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
945
947
|
*/
|
|
946
948
|
readonly properties?: PrivateLinkResourceProperties;
|
|
947
|
-
}
|
|
949
|
+
}
|
|
948
950
|
|
|
949
951
|
/** A MySQL Server key. */
|
|
950
|
-
export
|
|
952
|
+
export interface ServerKey extends ProxyResource {
|
|
951
953
|
/**
|
|
952
954
|
* Kind of encryption protector used to protect the key.
|
|
953
955
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
@@ -962,10 +964,11 @@ export type ServerKey = ProxyResource & {
|
|
|
962
964
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
963
965
|
*/
|
|
964
966
|
readonly creationDate?: Date;
|
|
965
|
-
}
|
|
967
|
+
}
|
|
966
968
|
|
|
967
969
|
/** Known values of {@link IdentityType} that the service accepts. */
|
|
968
970
|
export enum KnownIdentityType {
|
|
971
|
+
/** SystemAssigned */
|
|
969
972
|
SystemAssigned = "SystemAssigned"
|
|
970
973
|
}
|
|
971
974
|
|
|
@@ -980,8 +983,11 @@ export type IdentityType = string;
|
|
|
980
983
|
|
|
981
984
|
/** Known values of {@link SkuTier} that the service accepts. */
|
|
982
985
|
export enum KnownSkuTier {
|
|
986
|
+
/** Basic */
|
|
983
987
|
Basic = "Basic",
|
|
988
|
+
/** GeneralPurpose */
|
|
984
989
|
GeneralPurpose = "GeneralPurpose",
|
|
990
|
+
/** MemoryOptimized */
|
|
985
991
|
MemoryOptimized = "MemoryOptimized"
|
|
986
992
|
}
|
|
987
993
|
|
|
@@ -998,8 +1004,11 @@ export type SkuTier = string;
|
|
|
998
1004
|
|
|
999
1005
|
/** Known values of {@link ServerVersion} that the service accepts. */
|
|
1000
1006
|
export enum KnownServerVersion {
|
|
1007
|
+
/** Five6 */
|
|
1001
1008
|
Five6 = "5.6",
|
|
1009
|
+
/** Five7 */
|
|
1002
1010
|
Five7 = "5.7",
|
|
1011
|
+
/** Eight0 */
|
|
1003
1012
|
Eight0 = "8.0"
|
|
1004
1013
|
}
|
|
1005
1014
|
|
|
@@ -1016,9 +1025,13 @@ export type ServerVersion = string;
|
|
|
1016
1025
|
|
|
1017
1026
|
/** Known values of {@link MinimalTlsVersionEnum} that the service accepts. */
|
|
1018
1027
|
export enum KnownMinimalTlsVersionEnum {
|
|
1028
|
+
/** TLS10 */
|
|
1019
1029
|
TLS10 = "TLS1_0",
|
|
1030
|
+
/** TLS11 */
|
|
1020
1031
|
TLS11 = "TLS1_1",
|
|
1032
|
+
/** TLS12 */
|
|
1021
1033
|
TLS12 = "TLS1_2",
|
|
1034
|
+
/** TLSEnforcementDisabled */
|
|
1022
1035
|
TLSEnforcementDisabled = "TLSEnforcementDisabled"
|
|
1023
1036
|
}
|
|
1024
1037
|
|
|
@@ -1054,7 +1067,9 @@ export type InfrastructureEncryption = string;
|
|
|
1054
1067
|
|
|
1055
1068
|
/** Known values of {@link PublicNetworkAccessEnum} that the service accepts. */
|
|
1056
1069
|
export enum KnownPublicNetworkAccessEnum {
|
|
1070
|
+
/** Enabled */
|
|
1057
1071
|
Enabled = "Enabled",
|
|
1072
|
+
/** Disabled */
|
|
1058
1073
|
Disabled = "Disabled"
|
|
1059
1074
|
}
|
|
1060
1075
|
|
|
@@ -1070,7 +1085,9 @@ export type PublicNetworkAccessEnum = string;
|
|
|
1070
1085
|
|
|
1071
1086
|
/** Known values of {@link GeoRedundantBackup} that the service accepts. */
|
|
1072
1087
|
export enum KnownGeoRedundantBackup {
|
|
1088
|
+
/** Enabled */
|
|
1073
1089
|
Enabled = "Enabled",
|
|
1090
|
+
/** Disabled */
|
|
1074
1091
|
Disabled = "Disabled"
|
|
1075
1092
|
}
|
|
1076
1093
|
|
|
@@ -1086,7 +1103,9 @@ export type GeoRedundantBackup = string;
|
|
|
1086
1103
|
|
|
1087
1104
|
/** Known values of {@link StorageAutogrow} that the service accepts. */
|
|
1088
1105
|
export enum KnownStorageAutogrow {
|
|
1106
|
+
/** Enabled */
|
|
1089
1107
|
Enabled = "Enabled",
|
|
1108
|
+
/** Disabled */
|
|
1090
1109
|
Disabled = "Disabled"
|
|
1091
1110
|
}
|
|
1092
1111
|
|
|
@@ -1102,9 +1121,13 @@ export type StorageAutogrow = string;
|
|
|
1102
1121
|
|
|
1103
1122
|
/** Known values of {@link CreateMode} that the service accepts. */
|
|
1104
1123
|
export enum KnownCreateMode {
|
|
1124
|
+
/** Default */
|
|
1105
1125
|
Default = "Default",
|
|
1126
|
+
/** PointInTimeRestore */
|
|
1106
1127
|
PointInTimeRestore = "PointInTimeRestore",
|
|
1128
|
+
/** GeoRestore */
|
|
1107
1129
|
GeoRestore = "GeoRestore",
|
|
1130
|
+
/** Replica */
|
|
1108
1131
|
Replica = "Replica"
|
|
1109
1132
|
}
|
|
1110
1133
|
|
|
@@ -1122,9 +1145,13 @@ export type CreateMode = string;
|
|
|
1122
1145
|
|
|
1123
1146
|
/** Known values of {@link ServerState} that the service accepts. */
|
|
1124
1147
|
export enum KnownServerState {
|
|
1148
|
+
/** Ready */
|
|
1125
1149
|
Ready = "Ready",
|
|
1150
|
+
/** Dropping */
|
|
1126
1151
|
Dropping = "Dropping",
|
|
1152
|
+
/** Disabled */
|
|
1127
1153
|
Disabled = "Disabled",
|
|
1154
|
+
/** Inaccessible */
|
|
1128
1155
|
Inaccessible = "Inaccessible"
|
|
1129
1156
|
}
|
|
1130
1157
|
|
|
@@ -1142,9 +1169,13 @@ export type ServerState = string;
|
|
|
1142
1169
|
|
|
1143
1170
|
/** Known values of {@link PrivateLinkServiceConnectionStateStatus} that the service accepts. */
|
|
1144
1171
|
export enum KnownPrivateLinkServiceConnectionStateStatus {
|
|
1172
|
+
/** Approved */
|
|
1145
1173
|
Approved = "Approved",
|
|
1174
|
+
/** Pending */
|
|
1146
1175
|
Pending = "Pending",
|
|
1176
|
+
/** Rejected */
|
|
1147
1177
|
Rejected = "Rejected",
|
|
1178
|
+
/** Disconnected */
|
|
1148
1179
|
Disconnected = "Disconnected"
|
|
1149
1180
|
}
|
|
1150
1181
|
|
|
@@ -1162,6 +1193,7 @@ export type PrivateLinkServiceConnectionStateStatus = string;
|
|
|
1162
1193
|
|
|
1163
1194
|
/** Known values of {@link PrivateLinkServiceConnectionStateActionsRequire} that the service accepts. */
|
|
1164
1195
|
export enum KnownPrivateLinkServiceConnectionStateActionsRequire {
|
|
1196
|
+
/** None */
|
|
1165
1197
|
None = "None"
|
|
1166
1198
|
}
|
|
1167
1199
|
|
|
@@ -1176,10 +1208,15 @@ export type PrivateLinkServiceConnectionStateActionsRequire = string;
|
|
|
1176
1208
|
|
|
1177
1209
|
/** Known values of {@link PrivateEndpointProvisioningState} that the service accepts. */
|
|
1178
1210
|
export enum KnownPrivateEndpointProvisioningState {
|
|
1211
|
+
/** Approving */
|
|
1179
1212
|
Approving = "Approving",
|
|
1213
|
+
/** Ready */
|
|
1180
1214
|
Ready = "Ready",
|
|
1215
|
+
/** Dropping */
|
|
1181
1216
|
Dropping = "Dropping",
|
|
1217
|
+
/** Failed */
|
|
1182
1218
|
Failed = "Failed",
|
|
1219
|
+
/** Rejecting */
|
|
1183
1220
|
Rejecting = "Rejecting"
|
|
1184
1221
|
}
|
|
1185
1222
|
|
|
@@ -1198,10 +1235,15 @@ export type PrivateEndpointProvisioningState = string;
|
|
|
1198
1235
|
|
|
1199
1236
|
/** Known values of {@link VirtualNetworkRuleState} that the service accepts. */
|
|
1200
1237
|
export enum KnownVirtualNetworkRuleState {
|
|
1238
|
+
/** Initializing */
|
|
1201
1239
|
Initializing = "Initializing",
|
|
1240
|
+
/** InProgress */
|
|
1202
1241
|
InProgress = "InProgress",
|
|
1242
|
+
/** Ready */
|
|
1203
1243
|
Ready = "Ready",
|
|
1244
|
+
/** Deleting */
|
|
1204
1245
|
Deleting = "Deleting",
|
|
1246
|
+
/** Unknown */
|
|
1205
1247
|
Unknown = "Unknown"
|
|
1206
1248
|
}
|
|
1207
1249
|
|
|
@@ -1220,8 +1262,11 @@ export type VirtualNetworkRuleState = string;
|
|
|
1220
1262
|
|
|
1221
1263
|
/** Known values of {@link OperationOrigin} that the service accepts. */
|
|
1222
1264
|
export enum KnownOperationOrigin {
|
|
1265
|
+
/** NotSpecified */
|
|
1223
1266
|
NotSpecified = "NotSpecified",
|
|
1267
|
+
/** User */
|
|
1224
1268
|
User = "user",
|
|
1269
|
+
/** System */
|
|
1225
1270
|
System = "system"
|
|
1226
1271
|
}
|
|
1227
1272
|
|
|
@@ -1238,6 +1283,7 @@ export type OperationOrigin = string;
|
|
|
1238
1283
|
|
|
1239
1284
|
/** Known values of {@link SecurityAlertPolicyName} that the service accepts. */
|
|
1240
1285
|
export enum KnownSecurityAlertPolicyName {
|
|
1286
|
+
/** Default */
|
|
1241
1287
|
Default = "Default"
|
|
1242
1288
|
}
|
|
1243
1289
|
|
|
@@ -1252,7 +1298,9 @@ export type SecurityAlertPolicyName = string;
|
|
|
1252
1298
|
|
|
1253
1299
|
/** Known values of {@link QueryPerformanceInsightResetDataResultState} that the service accepts. */
|
|
1254
1300
|
export enum KnownQueryPerformanceInsightResetDataResultState {
|
|
1301
|
+
/** Succeeded */
|
|
1255
1302
|
Succeeded = "Succeeded",
|
|
1303
|
+
/** Failed */
|
|
1256
1304
|
Failed = "Failed"
|
|
1257
1305
|
}
|
|
1258
1306
|
|
|
@@ -1268,6 +1316,7 @@ export type QueryPerformanceInsightResetDataResultState = string;
|
|
|
1268
1316
|
|
|
1269
1317
|
/** Known values of {@link ServerKeyType} that the service accepts. */
|
|
1270
1318
|
export enum KnownServerKeyType {
|
|
1319
|
+
/** AzureKeyVault */
|
|
1271
1320
|
AzureKeyVault = "AzureKeyVault"
|
|
1272
1321
|
}
|
|
1273
1322
|
|
|
@@ -105,47 +105,53 @@ export class MySQLManagementClient extends coreClient.ServiceClient {
|
|
|
105
105
|
credential: credentials
|
|
106
106
|
};
|
|
107
107
|
|
|
108
|
-
const packageDetails = `azsdk-js-arm-mysql/5.0
|
|
108
|
+
const packageDetails = `azsdk-js-arm-mysql/5.1.0`;
|
|
109
109
|
const userAgentPrefix =
|
|
110
110
|
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
111
111
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
112
112
|
: `${packageDetails}`;
|
|
113
113
|
|
|
114
|
-
if (!options.credentialScopes) {
|
|
115
|
-
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
116
|
-
}
|
|
117
114
|
const optionsWithDefaults = {
|
|
118
115
|
...defaults,
|
|
119
116
|
...options,
|
|
120
117
|
userAgentOptions: {
|
|
121
118
|
userAgentPrefix
|
|
122
119
|
},
|
|
123
|
-
|
|
120
|
+
endpoint:
|
|
124
121
|
options.endpoint ?? options.baseUri ?? "https://management.azure.com"
|
|
125
122
|
};
|
|
126
123
|
super(optionsWithDefaults);
|
|
127
124
|
|
|
125
|
+
let bearerTokenAuthenticationPolicyFound: boolean = false;
|
|
128
126
|
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
|
129
127
|
const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();
|
|
130
|
-
|
|
128
|
+
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
|
|
131
129
|
(pipelinePolicy) =>
|
|
132
130
|
pipelinePolicy.name ===
|
|
133
131
|
coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
134
132
|
);
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
133
|
+
}
|
|
134
|
+
if (
|
|
135
|
+
!options ||
|
|
136
|
+
!options.pipeline ||
|
|
137
|
+
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
138
|
+
!bearerTokenAuthenticationPolicyFound
|
|
139
|
+
) {
|
|
140
|
+
this.pipeline.removePolicy({
|
|
141
|
+
name: coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
142
|
+
});
|
|
143
|
+
this.pipeline.addPolicy(
|
|
144
|
+
coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
145
|
+
credential: credentials,
|
|
146
|
+
scopes:
|
|
147
|
+
optionsWithDefaults.credentialScopes ??
|
|
148
|
+
`${optionsWithDefaults.endpoint}/.default`,
|
|
149
|
+
challengeCallbacks: {
|
|
150
|
+
authorizeRequestOnChallenge:
|
|
151
|
+
coreClient.authorizeRequestOnClaimChallenge
|
|
152
|
+
}
|
|
153
|
+
})
|
|
154
|
+
);
|
|
149
155
|
}
|
|
150
156
|
// Parameter assignments
|
|
151
157
|
this.subscriptionId = 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 { Advisors } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -16,9 +17,9 @@ import {
|
|
|
16
17
|
Advisor,
|
|
17
18
|
AdvisorsListByServerNextOptionalParams,
|
|
18
19
|
AdvisorsListByServerOptionalParams,
|
|
20
|
+
AdvisorsListByServerResponse,
|
|
19
21
|
AdvisorsGetOptionalParams,
|
|
20
22
|
AdvisorsGetResponse,
|
|
21
|
-
AdvisorsListByServerResponse,
|
|
22
23
|
AdvisorsListByServerNextResponse
|
|
23
24
|
} from "../models";
|
|
24
25
|
|
|
@@ -58,11 +59,15 @@ export class AdvisorsImpl implements Advisors {
|
|
|
58
59
|
[Symbol.asyncIterator]() {
|
|
59
60
|
return this;
|
|
60
61
|
},
|
|
61
|
-
byPage: () => {
|
|
62
|
+
byPage: (settings?: PageSettings) => {
|
|
63
|
+
if (settings?.maxPageSize) {
|
|
64
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
65
|
+
}
|
|
62
66
|
return this.listByServerPagingPage(
|
|
63
67
|
resourceGroupName,
|
|
64
68
|
serverName,
|
|
65
|
-
options
|
|
69
|
+
options,
|
|
70
|
+
settings
|
|
66
71
|
);
|
|
67
72
|
}
|
|
68
73
|
};
|
|
@@ -71,15 +76,18 @@ export class AdvisorsImpl implements Advisors {
|
|
|
71
76
|
private async *listByServerPagingPage(
|
|
72
77
|
resourceGroupName: string,
|
|
73
78
|
serverName: string,
|
|
74
|
-
options?: AdvisorsListByServerOptionalParams
|
|
79
|
+
options?: AdvisorsListByServerOptionalParams,
|
|
80
|
+
settings?: PageSettings
|
|
75
81
|
): AsyncIterableIterator<Advisor[]> {
|
|
76
|
-
let result
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
options
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
82
|
+
let result: AdvisorsListByServerResponse;
|
|
83
|
+
let continuationToken = settings?.continuationToken;
|
|
84
|
+
if (!continuationToken) {
|
|
85
|
+
result = await this._listByServer(resourceGroupName, serverName, options);
|
|
86
|
+
let page = result.value || [];
|
|
87
|
+
continuationToken = result.nextLink;
|
|
88
|
+
setContinuationToken(page, continuationToken);
|
|
89
|
+
yield page;
|
|
90
|
+
}
|
|
83
91
|
while (continuationToken) {
|
|
84
92
|
result = await this._listByServerNext(
|
|
85
93
|
resourceGroupName,
|
|
@@ -88,7 +96,9 @@ export class AdvisorsImpl implements Advisors {
|
|
|
88
96
|
options
|
|
89
97
|
);
|
|
90
98
|
continuationToken = result.nextLink;
|
|
91
|
-
|
|
99
|
+
let page = result.value || [];
|
|
100
|
+
setContinuationToken(page, continuationToken);
|
|
101
|
+
yield page;
|
|
92
102
|
}
|
|
93
103
|
}
|
|
94
104
|
|
|
@@ -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
|
|
79
|
-
|
|
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
|
|