@azure/arm-postgresql-flexible 8.0.0-beta.4 → 8.0.0-beta.6
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 +504 -0
- package/LICENSE +1 -1
- package/dist/index.js +1944 -1886
- 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/administratorsCreateSample.js +3 -3
- package/dist-esm/samples-dev/administratorsCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/administratorsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/administratorsGetSample.js +1 -1
- package/dist-esm/samples-dev/administratorsListByServerSample.js +2 -2
- package/dist-esm/samples-dev/administratorsListByServerSample.js.map +1 -1
- package/dist-esm/samples-dev/backupsGetSample.js +1 -1
- package/dist-esm/samples-dev/backupsListByServerSample.js +2 -2
- package/dist-esm/samples-dev/backupsListByServerSample.js.map +1 -1
- package/dist-esm/samples-dev/checkMigrationNameAvailabilitySample.js +3 -3
- package/dist-esm/samples-dev/checkMigrationNameAvailabilitySample.js.map +1 -1
- package/dist-esm/samples-dev/checkNameAvailabilityExecuteSample.js +3 -3
- package/dist-esm/samples-dev/checkNameAvailabilityExecuteSample.js.map +1 -1
- package/dist-esm/samples-dev/checkNameAvailabilityWithLocationExecuteSample.js +3 -3
- package/dist-esm/samples-dev/checkNameAvailabilityWithLocationExecuteSample.js.map +1 -1
- package/dist-esm/samples-dev/configurationsGetSample.js +1 -1
- package/dist-esm/samples-dev/configurationsListByServerSample.js +2 -2
- package/dist-esm/samples-dev/configurationsListByServerSample.js.map +1 -1
- package/dist-esm/samples-dev/configurationsPutSample.js +2 -2
- package/dist-esm/samples-dev/configurationsPutSample.js.map +1 -1
- package/dist-esm/samples-dev/configurationsUpdateSample.js +3 -3
- package/dist-esm/samples-dev/configurationsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/databasesCreateSample.js +2 -2
- package/dist-esm/samples-dev/databasesCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/databasesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/databasesGetSample.js +1 -1
- package/dist-esm/samples-dev/databasesListByServerSample.js +2 -2
- package/dist-esm/samples-dev/databasesListByServerSample.js.map +1 -1
- package/dist-esm/samples-dev/firewallRulesCreateOrUpdateSample.js +3 -3
- package/dist-esm/samples-dev/firewallRulesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/firewallRulesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/firewallRulesGetSample.js +1 -1
- package/dist-esm/samples-dev/firewallRulesListByServerSample.js +2 -2
- package/dist-esm/samples-dev/firewallRulesListByServerSample.js.map +1 -1
- package/dist-esm/samples-dev/flexibleServerStartLtrBackupSample.js +3 -3
- package/dist-esm/samples-dev/flexibleServerStartLtrBackupSample.js.map +1 -1
- package/dist-esm/samples-dev/flexibleServerTriggerLtrPreBackupSample.js +3 -3
- package/dist-esm/samples-dev/flexibleServerTriggerLtrPreBackupSample.js.map +1 -1
- package/dist-esm/samples-dev/getPrivateDnsZoneSuffixExecuteSample.js +1 -1
- package/dist-esm/samples-dev/locationBasedCapabilitiesExecuteSample.js +2 -2
- package/dist-esm/samples-dev/locationBasedCapabilitiesExecuteSample.js.map +1 -1
- package/dist-esm/samples-dev/logFilesListByServerSample.js +2 -2
- package/dist-esm/samples-dev/logFilesListByServerSample.js.map +1 -1
- package/dist-esm/samples-dev/ltrBackupOperationsGetSample.js +1 -1
- package/dist-esm/samples-dev/ltrBackupOperationsListByServerSample.js +2 -2
- package/dist-esm/samples-dev/ltrBackupOperationsListByServerSample.js.map +1 -1
- package/dist-esm/samples-dev/migrationsCreateSample.js +84 -17
- package/dist-esm/samples-dev/migrationsCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/migrationsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/migrationsGetSample.js +5 -5
- package/dist-esm/samples-dev/migrationsListByTargetServerSample.js +4 -4
- package/dist-esm/samples-dev/migrationsListByTargetServerSample.js.map +1 -1
- package/dist-esm/samples-dev/migrationsUpdateSample.js +4 -4
- package/dist-esm/samples-dev/migrationsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionDeleteSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionUpdateSample.js +4 -4
- package/dist-esm/samples-dev/privateEndpointConnectionUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsListByServerSample.js +2 -2
- package/dist-esm/samples-dev/privateEndpointConnectionsListByServerSample.js.map +1 -1
- package/dist-esm/samples-dev/privateLinkResourcesGetSample.js +1 -1
- package/dist-esm/samples-dev/privateLinkResourcesListByServerSample.js +2 -2
- package/dist-esm/samples-dev/privateLinkResourcesListByServerSample.js.map +1 -1
- package/dist-esm/samples-dev/quotaUsagesListSample.js +2 -2
- package/dist-esm/samples-dev/quotaUsagesListSample.js.map +1 -1
- package/dist-esm/samples-dev/replicasListByServerSample.js +2 -2
- package/dist-esm/samples-dev/replicasListByServerSample.js.map +1 -1
- package/dist-esm/samples-dev/serverCapabilitiesListSample.js +2 -2
- package/dist-esm/samples-dev/serverCapabilitiesListSample.js.map +1 -1
- package/dist-esm/samples-dev/serverThreatProtectionSettingsCreateOrUpdateSample.js +2 -2
- package/dist-esm/samples-dev/serverThreatProtectionSettingsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/serverThreatProtectionSettingsGetSample.js +1 -1
- package/dist-esm/samples-dev/serverThreatProtectionSettingsListByServerSample.js +2 -2
- package/dist-esm/samples-dev/serverThreatProtectionSettingsListByServerSample.js.map +1 -1
- package/dist-esm/samples-dev/serversCreateSample.js +28 -28
- package/dist-esm/samples-dev/serversCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/serversDeleteSample.js +1 -1
- package/dist-esm/samples-dev/serversGetSample.js +3 -3
- package/dist-esm/samples-dev/serversListByResourceGroupSample.js +2 -2
- package/dist-esm/samples-dev/serversListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/serversListSample.js +2 -2
- package/dist-esm/samples-dev/serversListSample.js.map +1 -1
- package/dist-esm/samples-dev/serversRestartSample.js +4 -4
- package/dist-esm/samples-dev/serversRestartSample.js.map +1 -1
- package/dist-esm/samples-dev/serversStartSample.js +1 -1
- package/dist-esm/samples-dev/serversStopSample.js +1 -1
- package/dist-esm/samples-dev/serversUpdateSample.js +23 -23
- package/dist-esm/samples-dev/serversUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualEndpointsCreateSample.js +3 -3
- package/dist-esm/samples-dev/virtualEndpointsCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualEndpointsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/virtualEndpointsGetSample.js +1 -1
- package/dist-esm/samples-dev/virtualEndpointsListByServerSample.js +2 -2
- package/dist-esm/samples-dev/virtualEndpointsListByServerSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualEndpointsUpdateSample.js +3 -3
- package/dist-esm/samples-dev/virtualEndpointsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualNetworkSubnetUsageExecuteSample.js +3 -3
- package/dist-esm/samples-dev/virtualNetworkSubnetUsageExecuteSample.js.map +1 -1
- package/dist-esm/src/lroImpl.js +1 -1
- package/dist-esm/src/models/index.d.ts +50 -3
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +22 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +1 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +1259 -1227
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.js +108 -108
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/administrators.d.ts.map +1 -1
- package/dist-esm/src/operations/administrators.js +37 -37
- package/dist-esm/src/operations/administrators.js.map +1 -1
- package/dist-esm/src/operations/backups.js +16 -16
- package/dist-esm/src/operations/backups.js.map +1 -1
- package/dist-esm/src/operations/checkNameAvailability.js +4 -4
- package/dist-esm/src/operations/checkNameAvailability.js.map +1 -1
- package/dist-esm/src/operations/checkNameAvailabilityWithLocation.d.ts.map +1 -1
- package/dist-esm/src/operations/checkNameAvailabilityWithLocation.js +5 -5
- package/dist-esm/src/operations/checkNameAvailabilityWithLocation.js.map +1 -1
- package/dist-esm/src/operations/configurations.d.ts.map +1 -1
- package/dist-esm/src/operations/configurations.js +43 -43
- 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 +38 -38
- 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 +38 -38
- package/dist-esm/src/operations/firewallRules.js.map +1 -1
- package/dist-esm/src/operations/flexibleServer.d.ts.map +1 -1
- package/dist-esm/src/operations/flexibleServer.js +18 -18
- package/dist-esm/src/operations/flexibleServer.js.map +1 -1
- package/dist-esm/src/operations/getPrivateDnsZoneSuffix.js +4 -4
- package/dist-esm/src/operations/locationBasedCapabilities.d.ts.map +1 -1
- package/dist-esm/src/operations/locationBasedCapabilities.js +11 -11
- package/dist-esm/src/operations/locationBasedCapabilities.js.map +1 -1
- package/dist-esm/src/operations/logFiles.js +11 -11
- package/dist-esm/src/operations/logFiles.js.map +1 -1
- package/dist-esm/src/operations/ltrBackupOperations.js +16 -16
- package/dist-esm/src/operations/ltrBackupOperations.js.map +1 -1
- package/dist-esm/src/operations/migrations.js +36 -36
- package/dist-esm/src/operations/migrations.js.map +1 -1
- package/dist-esm/src/operations/operations.js +4 -4
- package/dist-esm/src/operations/privateEndpointConnectionOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnectionOperations.js +27 -27
- package/dist-esm/src/operations/privateEndpointConnectionOperations.js.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.js +16 -16
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
- package/dist-esm/src/operations/privateLinkResources.js +16 -16
- package/dist-esm/src/operations/privateLinkResources.js.map +1 -1
- package/dist-esm/src/operations/quotaUsages.js +11 -11
- package/dist-esm/src/operations/quotaUsages.js.map +1 -1
- package/dist-esm/src/operations/replicas.js +6 -6
- package/dist-esm/src/operations/replicas.js.map +1 -1
- package/dist-esm/src/operations/serverCapabilities.js +11 -11
- package/dist-esm/src/operations/serverCapabilities.js.map +1 -1
- package/dist-esm/src/operations/serverThreatProtectionSettings.d.ts.map +1 -1
- package/dist-esm/src/operations/serverThreatProtectionSettings.js +30 -30
- package/dist-esm/src/operations/serverThreatProtectionSettings.js.map +1 -1
- package/dist-esm/src/operations/servers.d.ts.map +1 -1
- package/dist-esm/src/operations/servers.js +83 -83
- package/dist-esm/src/operations/servers.js.map +1 -1
- package/dist-esm/src/operations/virtualEndpoints.d.ts.map +1 -1
- package/dist-esm/src/operations/virtualEndpoints.js +55 -55
- package/dist-esm/src/operations/virtualEndpoints.js.map +1 -1
- package/dist-esm/src/operations/virtualNetworkSubnetUsage.d.ts.map +1 -1
- package/dist-esm/src/operations/virtualNetworkSubnetUsage.js +5 -5
- package/dist-esm/src/operations/virtualNetworkSubnetUsage.js.map +1 -1
- package/dist-esm/src/pagingHelper.js.map +1 -1
- package/dist-esm/src/postgreSQLManagementFlexibleServerClient.d.ts.map +1 -1
- package/dist-esm/src/postgreSQLManagementFlexibleServerClient.js +21 -18
- package/dist-esm/src/postgreSQLManagementFlexibleServerClient.js.map +1 -1
- package/dist-esm/test/postgresql_flexible_operations_test.spec.js +1 -1
- package/dist-esm/test/postgresql_flexible_operations_test.spec.js.map +1 -1
- package/package.json +7 -9
- package/review/arm-postgresql-flexible.api.md +25 -0
- package/src/lroImpl.ts +3 -3
- package/src/models/index.ts +145 -79
- package/src/models/mappers.ts +1354 -1313
- package/src/models/parameters.ts +110 -110
- package/src/operations/administrators.ts +75 -81
- package/src/operations/backups.ts +32 -34
- package/src/operations/checkNameAvailability.ts +8 -9
- package/src/operations/checkNameAvailabilityWithLocation.ts +11 -11
- package/src/operations/configurations.ts +81 -87
- package/src/operations/databases.ts +76 -82
- package/src/operations/firewallRules.ts +76 -82
- package/src/operations/flexibleServer.ts +33 -36
- package/src/operations/getPrivateDnsZoneSuffix.ts +6 -6
- package/src/operations/locationBasedCapabilities.ts +23 -23
- package/src/operations/logFiles.ts +24 -25
- package/src/operations/ltrBackupOperations.ts +32 -34
- package/src/operations/migrations.ts +62 -67
- package/src/operations/operations.ts +6 -6
- package/src/operations/privateEndpointConnectionOperations.ts +52 -55
- package/src/operations/privateEndpointConnections.ts +34 -35
- package/src/operations/privateLinkResources.ts +32 -34
- package/src/operations/quotaUsages.ts +20 -21
- package/src/operations/replicas.ts +16 -17
- package/src/operations/serverCapabilities.ts +23 -24
- package/src/operations/serverThreatProtectionSettings.ts +59 -62
- package/src/operations/servers.ts +170 -185
- package/src/operations/virtualEndpoints.ts +104 -112
- package/src/operations/virtualNetworkSubnetUsage.ts +11 -11
- package/src/operationsInterfaces/administrators.ts +7 -7
- package/src/operationsInterfaces/backups.ts +3 -3
- package/src/operationsInterfaces/checkNameAvailability.ts +2 -2
- package/src/operationsInterfaces/checkNameAvailabilityWithLocation.ts +2 -2
- package/src/operationsInterfaces/configurations.ts +7 -7
- package/src/operationsInterfaces/databases.ts +7 -7
- package/src/operationsInterfaces/firewallRules.ts +7 -7
- package/src/operationsInterfaces/flexibleServer.ts +4 -4
- package/src/operationsInterfaces/getPrivateDnsZoneSuffix.ts +2 -2
- package/src/operationsInterfaces/locationBasedCapabilities.ts +2 -2
- package/src/operationsInterfaces/logFiles.ts +1 -1
- package/src/operationsInterfaces/ltrBackupOperations.ts +3 -3
- package/src/operationsInterfaces/migrations.ts +6 -6
- package/src/operationsInterfaces/operations.ts +1 -1
- package/src/operationsInterfaces/privateEndpointConnectionOperations.ts +5 -5
- package/src/operationsInterfaces/privateEndpointConnections.ts +3 -3
- package/src/operationsInterfaces/privateLinkResources.ts +3 -3
- package/src/operationsInterfaces/quotaUsages.ts +1 -1
- package/src/operationsInterfaces/replicas.ts +1 -1
- package/src/operationsInterfaces/serverCapabilities.ts +2 -2
- package/src/operationsInterfaces/serverThreatProtectionSettings.ts +5 -5
- package/src/operationsInterfaces/servers.ts +15 -15
- package/src/operationsInterfaces/virtualEndpoints.ts +9 -9
- package/src/operationsInterfaces/virtualNetworkSubnetUsage.ts +2 -2
- package/src/pagingHelper.ts +1 -1
- package/src/postgreSQLManagementFlexibleServerClient.ts +36 -39
- package/types/arm-postgresql-flexible.d.ts +53 -3
- package/types/tsdoc-metadata.json +1 -1
|
@@ -16,7 +16,7 @@ import { PostgreSQLManagementFlexibleServerClient } from "../postgreSQLManagemen
|
|
|
16
16
|
import {
|
|
17
17
|
SimplePollerLike,
|
|
18
18
|
OperationState,
|
|
19
|
-
createHttpPoller
|
|
19
|
+
createHttpPoller,
|
|
20
20
|
} from "@azure/core-lro";
|
|
21
21
|
import { createLroSpec } from "../lroImpl";
|
|
22
22
|
import {
|
|
@@ -29,13 +29,14 @@ import {
|
|
|
29
29
|
ServerThreatProtectionSettingsGetResponse,
|
|
30
30
|
ServerThreatProtectionSettingsCreateOrUpdateOptionalParams,
|
|
31
31
|
ServerThreatProtectionSettingsCreateOrUpdateResponse,
|
|
32
|
-
ServerThreatProtectionSettingsListByServerNextResponse
|
|
32
|
+
ServerThreatProtectionSettingsListByServerNextResponse,
|
|
33
33
|
} from "../models";
|
|
34
34
|
|
|
35
35
|
/// <reference lib="esnext.asynciterable" />
|
|
36
36
|
/** Class containing ServerThreatProtectionSettings operations. */
|
|
37
37
|
export class ServerThreatProtectionSettingsImpl
|
|
38
|
-
implements ServerThreatProtectionSettings
|
|
38
|
+
implements ServerThreatProtectionSettings
|
|
39
|
+
{
|
|
39
40
|
private readonly client: PostgreSQLManagementFlexibleServerClient;
|
|
40
41
|
|
|
41
42
|
/**
|
|
@@ -55,12 +56,12 @@ export class ServerThreatProtectionSettingsImpl
|
|
|
55
56
|
public listByServer(
|
|
56
57
|
resourceGroupName: string,
|
|
57
58
|
serverName: string,
|
|
58
|
-
options?: ServerThreatProtectionSettingsListByServerOptionalParams
|
|
59
|
+
options?: ServerThreatProtectionSettingsListByServerOptionalParams,
|
|
59
60
|
): PagedAsyncIterableIterator<ServerThreatProtectionSettingsModel> {
|
|
60
61
|
const iter = this.listByServerPagingAll(
|
|
61
62
|
resourceGroupName,
|
|
62
63
|
serverName,
|
|
63
|
-
options
|
|
64
|
+
options,
|
|
64
65
|
);
|
|
65
66
|
return {
|
|
66
67
|
next() {
|
|
@@ -77,9 +78,9 @@ export class ServerThreatProtectionSettingsImpl
|
|
|
77
78
|
resourceGroupName,
|
|
78
79
|
serverName,
|
|
79
80
|
options,
|
|
80
|
-
settings
|
|
81
|
+
settings,
|
|
81
82
|
);
|
|
82
|
-
}
|
|
83
|
+
},
|
|
83
84
|
};
|
|
84
85
|
}
|
|
85
86
|
|
|
@@ -87,7 +88,7 @@ export class ServerThreatProtectionSettingsImpl
|
|
|
87
88
|
resourceGroupName: string,
|
|
88
89
|
serverName: string,
|
|
89
90
|
options?: ServerThreatProtectionSettingsListByServerOptionalParams,
|
|
90
|
-
settings?: PageSettings
|
|
91
|
+
settings?: PageSettings,
|
|
91
92
|
): AsyncIterableIterator<ServerThreatProtectionSettingsModel[]> {
|
|
92
93
|
let result: ServerThreatProtectionSettingsListByServerResponse;
|
|
93
94
|
let continuationToken = settings?.continuationToken;
|
|
@@ -103,7 +104,7 @@ export class ServerThreatProtectionSettingsImpl
|
|
|
103
104
|
resourceGroupName,
|
|
104
105
|
serverName,
|
|
105
106
|
continuationToken,
|
|
106
|
-
options
|
|
107
|
+
options,
|
|
107
108
|
);
|
|
108
109
|
continuationToken = result.nextLink;
|
|
109
110
|
let page = result.value || [];
|
|
@@ -115,12 +116,12 @@ export class ServerThreatProtectionSettingsImpl
|
|
|
115
116
|
private async *listByServerPagingAll(
|
|
116
117
|
resourceGroupName: string,
|
|
117
118
|
serverName: string,
|
|
118
|
-
options?: ServerThreatProtectionSettingsListByServerOptionalParams
|
|
119
|
+
options?: ServerThreatProtectionSettingsListByServerOptionalParams,
|
|
119
120
|
): AsyncIterableIterator<ServerThreatProtectionSettingsModel> {
|
|
120
121
|
for await (const page of this.listByServerPagingPage(
|
|
121
122
|
resourceGroupName,
|
|
122
123
|
serverName,
|
|
123
|
-
options
|
|
124
|
+
options,
|
|
124
125
|
)) {
|
|
125
126
|
yield* page;
|
|
126
127
|
}
|
|
@@ -135,11 +136,11 @@ export class ServerThreatProtectionSettingsImpl
|
|
|
135
136
|
private _listByServer(
|
|
136
137
|
resourceGroupName: string,
|
|
137
138
|
serverName: string,
|
|
138
|
-
options?: ServerThreatProtectionSettingsListByServerOptionalParams
|
|
139
|
+
options?: ServerThreatProtectionSettingsListByServerOptionalParams,
|
|
139
140
|
): Promise<ServerThreatProtectionSettingsListByServerResponse> {
|
|
140
141
|
return this.client.sendOperationRequest(
|
|
141
142
|
{ resourceGroupName, serverName, options },
|
|
142
|
-
listByServerOperationSpec
|
|
143
|
+
listByServerOperationSpec,
|
|
143
144
|
);
|
|
144
145
|
}
|
|
145
146
|
|
|
@@ -154,11 +155,11 @@ export class ServerThreatProtectionSettingsImpl
|
|
|
154
155
|
resourceGroupName: string,
|
|
155
156
|
serverName: string,
|
|
156
157
|
threatProtectionName: ThreatProtectionName,
|
|
157
|
-
options?: ServerThreatProtectionSettingsGetOptionalParams
|
|
158
|
+
options?: ServerThreatProtectionSettingsGetOptionalParams,
|
|
158
159
|
): Promise<ServerThreatProtectionSettingsGetResponse> {
|
|
159
160
|
return this.client.sendOperationRequest(
|
|
160
161
|
{ resourceGroupName, serverName, threatProtectionName, options },
|
|
161
|
-
getOperationSpec
|
|
162
|
+
getOperationSpec,
|
|
162
163
|
);
|
|
163
164
|
}
|
|
164
165
|
|
|
@@ -175,7 +176,7 @@ export class ServerThreatProtectionSettingsImpl
|
|
|
175
176
|
serverName: string,
|
|
176
177
|
threatProtectionName: ThreatProtectionName,
|
|
177
178
|
parameters: ServerThreatProtectionSettingsModel,
|
|
178
|
-
options?: ServerThreatProtectionSettingsCreateOrUpdateOptionalParams
|
|
179
|
+
options?: ServerThreatProtectionSettingsCreateOrUpdateOptionalParams,
|
|
179
180
|
): Promise<
|
|
180
181
|
SimplePollerLike<
|
|
181
182
|
OperationState<ServerThreatProtectionSettingsCreateOrUpdateResponse>,
|
|
@@ -184,21 +185,20 @@ export class ServerThreatProtectionSettingsImpl
|
|
|
184
185
|
> {
|
|
185
186
|
const directSendOperation = async (
|
|
186
187
|
args: coreClient.OperationArguments,
|
|
187
|
-
spec: coreClient.OperationSpec
|
|
188
|
+
spec: coreClient.OperationSpec,
|
|
188
189
|
): Promise<ServerThreatProtectionSettingsCreateOrUpdateResponse> => {
|
|
189
190
|
return this.client.sendOperationRequest(args, spec);
|
|
190
191
|
};
|
|
191
192
|
const sendOperationFn = async (
|
|
192
193
|
args: coreClient.OperationArguments,
|
|
193
|
-
spec: coreClient.OperationSpec
|
|
194
|
+
spec: coreClient.OperationSpec,
|
|
194
195
|
) => {
|
|
195
|
-
let currentRawResponse:
|
|
196
|
-
|
|
197
|
-
| undefined = undefined;
|
|
196
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
197
|
+
undefined;
|
|
198
198
|
const providedCallback = args.options?.onResponse;
|
|
199
199
|
const callback: coreClient.RawResponseCallback = (
|
|
200
200
|
rawResponse: coreClient.FullOperationResponse,
|
|
201
|
-
flatResponse: unknown
|
|
201
|
+
flatResponse: unknown,
|
|
202
202
|
) => {
|
|
203
203
|
currentRawResponse = rawResponse;
|
|
204
204
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -207,8 +207,8 @@ export class ServerThreatProtectionSettingsImpl
|
|
|
207
207
|
...args,
|
|
208
208
|
options: {
|
|
209
209
|
...args.options,
|
|
210
|
-
onResponse: callback
|
|
211
|
-
}
|
|
210
|
+
onResponse: callback,
|
|
211
|
+
},
|
|
212
212
|
};
|
|
213
213
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
214
214
|
return {
|
|
@@ -216,8 +216,8 @@ export class ServerThreatProtectionSettingsImpl
|
|
|
216
216
|
rawResponse: {
|
|
217
217
|
statusCode: currentRawResponse!.status,
|
|
218
218
|
body: currentRawResponse!.parsedBody,
|
|
219
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
220
|
-
}
|
|
219
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
220
|
+
},
|
|
221
221
|
};
|
|
222
222
|
};
|
|
223
223
|
|
|
@@ -228,9 +228,9 @@ export class ServerThreatProtectionSettingsImpl
|
|
|
228
228
|
serverName,
|
|
229
229
|
threatProtectionName,
|
|
230
230
|
parameters,
|
|
231
|
-
options
|
|
231
|
+
options,
|
|
232
232
|
},
|
|
233
|
-
spec: createOrUpdateOperationSpec
|
|
233
|
+
spec: createOrUpdateOperationSpec,
|
|
234
234
|
});
|
|
235
235
|
const poller = await createHttpPoller<
|
|
236
236
|
ServerThreatProtectionSettingsCreateOrUpdateResponse,
|
|
@@ -238,7 +238,7 @@ export class ServerThreatProtectionSettingsImpl
|
|
|
238
238
|
>(lro, {
|
|
239
239
|
restoreFrom: options?.resumeFrom,
|
|
240
240
|
intervalInMs: options?.updateIntervalInMs,
|
|
241
|
-
resourceLocationConfig: "azure-async-operation"
|
|
241
|
+
resourceLocationConfig: "azure-async-operation",
|
|
242
242
|
});
|
|
243
243
|
await poller.poll();
|
|
244
244
|
return poller;
|
|
@@ -257,14 +257,14 @@ export class ServerThreatProtectionSettingsImpl
|
|
|
257
257
|
serverName: string,
|
|
258
258
|
threatProtectionName: ThreatProtectionName,
|
|
259
259
|
parameters: ServerThreatProtectionSettingsModel,
|
|
260
|
-
options?: ServerThreatProtectionSettingsCreateOrUpdateOptionalParams
|
|
260
|
+
options?: ServerThreatProtectionSettingsCreateOrUpdateOptionalParams,
|
|
261
261
|
): Promise<ServerThreatProtectionSettingsCreateOrUpdateResponse> {
|
|
262
262
|
const poller = await this.beginCreateOrUpdate(
|
|
263
263
|
resourceGroupName,
|
|
264
264
|
serverName,
|
|
265
265
|
threatProtectionName,
|
|
266
266
|
parameters,
|
|
267
|
-
options
|
|
267
|
+
options,
|
|
268
268
|
);
|
|
269
269
|
return poller.pollUntilDone();
|
|
270
270
|
}
|
|
@@ -280,11 +280,11 @@ export class ServerThreatProtectionSettingsImpl
|
|
|
280
280
|
resourceGroupName: string,
|
|
281
281
|
serverName: string,
|
|
282
282
|
nextLink: string,
|
|
283
|
-
options?: ServerThreatProtectionSettingsListByServerNextOptionalParams
|
|
283
|
+
options?: ServerThreatProtectionSettingsListByServerNextOptionalParams,
|
|
284
284
|
): Promise<ServerThreatProtectionSettingsListByServerNextResponse> {
|
|
285
285
|
return this.client.sendOperationRequest(
|
|
286
286
|
{ resourceGroupName, serverName, nextLink, options },
|
|
287
|
-
listByServerNextOperationSpec
|
|
287
|
+
listByServerNextOperationSpec,
|
|
288
288
|
);
|
|
289
289
|
}
|
|
290
290
|
}
|
|
@@ -292,38 +292,36 @@ export class ServerThreatProtectionSettingsImpl
|
|
|
292
292
|
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
293
293
|
|
|
294
294
|
const listByServerOperationSpec: coreClient.OperationSpec = {
|
|
295
|
-
path:
|
|
296
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/advancedThreatProtectionSettings",
|
|
295
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/advancedThreatProtectionSettings",
|
|
297
296
|
httpMethod: "GET",
|
|
298
297
|
responses: {
|
|
299
298
|
200: {
|
|
300
|
-
bodyMapper: Mappers.ServerThreatProtectionListResult
|
|
299
|
+
bodyMapper: Mappers.ServerThreatProtectionListResult,
|
|
301
300
|
},
|
|
302
301
|
default: {
|
|
303
|
-
bodyMapper: Mappers.ErrorResponse
|
|
304
|
-
}
|
|
302
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
303
|
+
},
|
|
305
304
|
},
|
|
306
305
|
queryParameters: [Parameters.apiVersion],
|
|
307
306
|
urlParameters: [
|
|
308
307
|
Parameters.$host,
|
|
309
308
|
Parameters.subscriptionId,
|
|
310
309
|
Parameters.resourceGroupName,
|
|
311
|
-
Parameters.serverName
|
|
310
|
+
Parameters.serverName,
|
|
312
311
|
],
|
|
313
312
|
headerParameters: [Parameters.accept],
|
|
314
|
-
serializer
|
|
313
|
+
serializer,
|
|
315
314
|
};
|
|
316
315
|
const getOperationSpec: coreClient.OperationSpec = {
|
|
317
|
-
path:
|
|
318
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/advancedThreatProtectionSettings/{threatProtectionName}",
|
|
316
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/advancedThreatProtectionSettings/{threatProtectionName}",
|
|
319
317
|
httpMethod: "GET",
|
|
320
318
|
responses: {
|
|
321
319
|
200: {
|
|
322
|
-
bodyMapper: Mappers.ServerThreatProtectionSettingsModel
|
|
320
|
+
bodyMapper: Mappers.ServerThreatProtectionSettingsModel,
|
|
323
321
|
},
|
|
324
322
|
default: {
|
|
325
|
-
bodyMapper: Mappers.ErrorResponse
|
|
326
|
-
}
|
|
323
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
324
|
+
},
|
|
327
325
|
},
|
|
328
326
|
queryParameters: [Parameters.apiVersion],
|
|
329
327
|
urlParameters: [
|
|
@@ -331,31 +329,30 @@ const getOperationSpec: coreClient.OperationSpec = {
|
|
|
331
329
|
Parameters.subscriptionId,
|
|
332
330
|
Parameters.resourceGroupName,
|
|
333
331
|
Parameters.serverName,
|
|
334
|
-
Parameters.threatProtectionName
|
|
332
|
+
Parameters.threatProtectionName,
|
|
335
333
|
],
|
|
336
334
|
headerParameters: [Parameters.accept],
|
|
337
|
-
serializer
|
|
335
|
+
serializer,
|
|
338
336
|
};
|
|
339
337
|
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
340
|
-
path:
|
|
341
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/advancedThreatProtectionSettings/{threatProtectionName}",
|
|
338
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/advancedThreatProtectionSettings/{threatProtectionName}",
|
|
342
339
|
httpMethod: "PUT",
|
|
343
340
|
responses: {
|
|
344
341
|
200: {
|
|
345
|
-
bodyMapper: Mappers.ServerThreatProtectionSettingsModel
|
|
342
|
+
bodyMapper: Mappers.ServerThreatProtectionSettingsModel,
|
|
346
343
|
},
|
|
347
344
|
201: {
|
|
348
|
-
bodyMapper: Mappers.ServerThreatProtectionSettingsModel
|
|
345
|
+
bodyMapper: Mappers.ServerThreatProtectionSettingsModel,
|
|
349
346
|
},
|
|
350
347
|
202: {
|
|
351
|
-
bodyMapper: Mappers.ServerThreatProtectionSettingsModel
|
|
348
|
+
bodyMapper: Mappers.ServerThreatProtectionSettingsModel,
|
|
352
349
|
},
|
|
353
350
|
204: {
|
|
354
|
-
bodyMapper: Mappers.ServerThreatProtectionSettingsModel
|
|
351
|
+
bodyMapper: Mappers.ServerThreatProtectionSettingsModel,
|
|
355
352
|
},
|
|
356
353
|
default: {
|
|
357
|
-
bodyMapper: Mappers.ErrorResponse
|
|
358
|
-
}
|
|
354
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
355
|
+
},
|
|
359
356
|
},
|
|
360
357
|
requestBody: Parameters.parameters14,
|
|
361
358
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -364,30 +361,30 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
|
364
361
|
Parameters.subscriptionId,
|
|
365
362
|
Parameters.resourceGroupName,
|
|
366
363
|
Parameters.serverName,
|
|
367
|
-
Parameters.threatProtectionName
|
|
364
|
+
Parameters.threatProtectionName,
|
|
368
365
|
],
|
|
369
366
|
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
370
367
|
mediaType: "json",
|
|
371
|
-
serializer
|
|
368
|
+
serializer,
|
|
372
369
|
};
|
|
373
370
|
const listByServerNextOperationSpec: coreClient.OperationSpec = {
|
|
374
371
|
path: "{nextLink}",
|
|
375
372
|
httpMethod: "GET",
|
|
376
373
|
responses: {
|
|
377
374
|
200: {
|
|
378
|
-
bodyMapper: Mappers.ServerThreatProtectionListResult
|
|
375
|
+
bodyMapper: Mappers.ServerThreatProtectionListResult,
|
|
379
376
|
},
|
|
380
377
|
default: {
|
|
381
|
-
bodyMapper: Mappers.ErrorResponse
|
|
382
|
-
}
|
|
378
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
379
|
+
},
|
|
383
380
|
},
|
|
384
381
|
urlParameters: [
|
|
385
382
|
Parameters.$host,
|
|
386
383
|
Parameters.subscriptionId,
|
|
387
384
|
Parameters.resourceGroupName,
|
|
388
385
|
Parameters.serverName,
|
|
389
|
-
Parameters.nextLink
|
|
386
|
+
Parameters.nextLink,
|
|
390
387
|
],
|
|
391
388
|
headerParameters: [Parameters.accept],
|
|
392
|
-
serializer
|
|
389
|
+
serializer,
|
|
393
390
|
};
|