@azure/arm-postgresql-flexible 8.0.0-beta.5 → 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 +253 -0
- package/LICENSE +1 -1
- package/dist/index.js +1937 -1894
- 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 +46 -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.map +1 -1
- package/dist-esm/src/models/mappers.js +1250 -1232
- 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 +19 -0
- package/src/lroImpl.ts +3 -3
- package/src/models/index.ts +140 -79
- package/src/models/mappers.ts +1354 -1328
- 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 +48 -3
- package/types/tsdoc-metadata.json +1 -1
|
@@ -14,12 +14,13 @@ import { PostgreSQLManagementFlexibleServerClient } from "../postgreSQLManagemen
|
|
|
14
14
|
import {
|
|
15
15
|
CheckNameAvailabilityRequest,
|
|
16
16
|
CheckNameAvailabilityWithLocationExecuteOptionalParams,
|
|
17
|
-
CheckNameAvailabilityWithLocationExecuteResponse
|
|
17
|
+
CheckNameAvailabilityWithLocationExecuteResponse,
|
|
18
18
|
} from "../models";
|
|
19
19
|
|
|
20
20
|
/** Class containing CheckNameAvailabilityWithLocation operations. */
|
|
21
21
|
export class CheckNameAvailabilityWithLocationImpl
|
|
22
|
-
implements CheckNameAvailabilityWithLocation
|
|
22
|
+
implements CheckNameAvailabilityWithLocation
|
|
23
|
+
{
|
|
23
24
|
private readonly client: PostgreSQLManagementFlexibleServerClient;
|
|
24
25
|
|
|
25
26
|
/**
|
|
@@ -39,11 +40,11 @@ export class CheckNameAvailabilityWithLocationImpl
|
|
|
39
40
|
execute(
|
|
40
41
|
locationName: string,
|
|
41
42
|
nameAvailabilityRequest: CheckNameAvailabilityRequest,
|
|
42
|
-
options?: CheckNameAvailabilityWithLocationExecuteOptionalParams
|
|
43
|
+
options?: CheckNameAvailabilityWithLocationExecuteOptionalParams,
|
|
43
44
|
): Promise<CheckNameAvailabilityWithLocationExecuteResponse> {
|
|
44
45
|
return this.client.sendOperationRequest(
|
|
45
46
|
{ locationName, nameAvailabilityRequest, options },
|
|
46
|
-
executeOperationSpec
|
|
47
|
+
executeOperationSpec,
|
|
47
48
|
);
|
|
48
49
|
}
|
|
49
50
|
}
|
|
@@ -51,25 +52,24 @@ export class CheckNameAvailabilityWithLocationImpl
|
|
|
51
52
|
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
52
53
|
|
|
53
54
|
const executeOperationSpec: coreClient.OperationSpec = {
|
|
54
|
-
path:
|
|
55
|
-
"/subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/locations/{locationName}/checkNameAvailability",
|
|
55
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/locations/{locationName}/checkNameAvailability",
|
|
56
56
|
httpMethod: "POST",
|
|
57
57
|
responses: {
|
|
58
58
|
200: {
|
|
59
|
-
bodyMapper: Mappers.NameAvailability
|
|
59
|
+
bodyMapper: Mappers.NameAvailability,
|
|
60
60
|
},
|
|
61
61
|
default: {
|
|
62
|
-
bodyMapper: Mappers.ErrorResponse
|
|
63
|
-
}
|
|
62
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
63
|
+
},
|
|
64
64
|
},
|
|
65
65
|
requestBody: Parameters.nameAvailabilityRequest,
|
|
66
66
|
queryParameters: [Parameters.apiVersion],
|
|
67
67
|
urlParameters: [
|
|
68
68
|
Parameters.$host,
|
|
69
69
|
Parameters.subscriptionId,
|
|
70
|
-
Parameters.locationName
|
|
70
|
+
Parameters.locationName,
|
|
71
71
|
],
|
|
72
72
|
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
73
73
|
mediaType: "json",
|
|
74
|
-
serializer
|
|
74
|
+
serializer,
|
|
75
75
|
};
|
|
@@ -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 {
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
ConfigurationsUpdateResponse,
|
|
32
32
|
ConfigurationsPutOptionalParams,
|
|
33
33
|
ConfigurationsPutResponse,
|
|
34
|
-
ConfigurationsListByServerNextResponse
|
|
34
|
+
ConfigurationsListByServerNextResponse,
|
|
35
35
|
} from "../models";
|
|
36
36
|
|
|
37
37
|
/// <reference lib="esnext.asynciterable" />
|
|
@@ -56,12 +56,12 @@ export class ConfigurationsImpl implements Configurations {
|
|
|
56
56
|
public listByServer(
|
|
57
57
|
resourceGroupName: string,
|
|
58
58
|
serverName: string,
|
|
59
|
-
options?: ConfigurationsListByServerOptionalParams
|
|
59
|
+
options?: ConfigurationsListByServerOptionalParams,
|
|
60
60
|
): PagedAsyncIterableIterator<Configuration> {
|
|
61
61
|
const iter = this.listByServerPagingAll(
|
|
62
62
|
resourceGroupName,
|
|
63
63
|
serverName,
|
|
64
|
-
options
|
|
64
|
+
options,
|
|
65
65
|
);
|
|
66
66
|
return {
|
|
67
67
|
next() {
|
|
@@ -78,9 +78,9 @@ export class ConfigurationsImpl implements Configurations {
|
|
|
78
78
|
resourceGroupName,
|
|
79
79
|
serverName,
|
|
80
80
|
options,
|
|
81
|
-
settings
|
|
81
|
+
settings,
|
|
82
82
|
);
|
|
83
|
-
}
|
|
83
|
+
},
|
|
84
84
|
};
|
|
85
85
|
}
|
|
86
86
|
|
|
@@ -88,7 +88,7 @@ export class ConfigurationsImpl implements Configurations {
|
|
|
88
88
|
resourceGroupName: string,
|
|
89
89
|
serverName: string,
|
|
90
90
|
options?: ConfigurationsListByServerOptionalParams,
|
|
91
|
-
settings?: PageSettings
|
|
91
|
+
settings?: PageSettings,
|
|
92
92
|
): AsyncIterableIterator<Configuration[]> {
|
|
93
93
|
let result: ConfigurationsListByServerResponse;
|
|
94
94
|
let continuationToken = settings?.continuationToken;
|
|
@@ -104,7 +104,7 @@ export class ConfigurationsImpl implements Configurations {
|
|
|
104
104
|
resourceGroupName,
|
|
105
105
|
serverName,
|
|
106
106
|
continuationToken,
|
|
107
|
-
options
|
|
107
|
+
options,
|
|
108
108
|
);
|
|
109
109
|
continuationToken = result.nextLink;
|
|
110
110
|
let page = result.value || [];
|
|
@@ -116,12 +116,12 @@ export class ConfigurationsImpl implements Configurations {
|
|
|
116
116
|
private async *listByServerPagingAll(
|
|
117
117
|
resourceGroupName: string,
|
|
118
118
|
serverName: string,
|
|
119
|
-
options?: ConfigurationsListByServerOptionalParams
|
|
119
|
+
options?: ConfigurationsListByServerOptionalParams,
|
|
120
120
|
): AsyncIterableIterator<Configuration> {
|
|
121
121
|
for await (const page of this.listByServerPagingPage(
|
|
122
122
|
resourceGroupName,
|
|
123
123
|
serverName,
|
|
124
|
-
options
|
|
124
|
+
options,
|
|
125
125
|
)) {
|
|
126
126
|
yield* page;
|
|
127
127
|
}
|
|
@@ -136,11 +136,11 @@ export class ConfigurationsImpl implements Configurations {
|
|
|
136
136
|
private _listByServer(
|
|
137
137
|
resourceGroupName: string,
|
|
138
138
|
serverName: string,
|
|
139
|
-
options?: ConfigurationsListByServerOptionalParams
|
|
139
|
+
options?: ConfigurationsListByServerOptionalParams,
|
|
140
140
|
): Promise<ConfigurationsListByServerResponse> {
|
|
141
141
|
return this.client.sendOperationRequest(
|
|
142
142
|
{ resourceGroupName, serverName, options },
|
|
143
|
-
listByServerOperationSpec
|
|
143
|
+
listByServerOperationSpec,
|
|
144
144
|
);
|
|
145
145
|
}
|
|
146
146
|
|
|
@@ -155,11 +155,11 @@ export class ConfigurationsImpl implements Configurations {
|
|
|
155
155
|
resourceGroupName: string,
|
|
156
156
|
serverName: string,
|
|
157
157
|
configurationName: string,
|
|
158
|
-
options?: ConfigurationsGetOptionalParams
|
|
158
|
+
options?: ConfigurationsGetOptionalParams,
|
|
159
159
|
): Promise<ConfigurationsGetResponse> {
|
|
160
160
|
return this.client.sendOperationRequest(
|
|
161
161
|
{ resourceGroupName, serverName, configurationName, options },
|
|
162
|
-
getOperationSpec
|
|
162
|
+
getOperationSpec,
|
|
163
163
|
);
|
|
164
164
|
}
|
|
165
165
|
|
|
@@ -176,7 +176,7 @@ export class ConfigurationsImpl implements Configurations {
|
|
|
176
176
|
serverName: string,
|
|
177
177
|
configurationName: string,
|
|
178
178
|
parameters: ConfigurationForUpdate,
|
|
179
|
-
options?: ConfigurationsUpdateOptionalParams
|
|
179
|
+
options?: ConfigurationsUpdateOptionalParams,
|
|
180
180
|
): Promise<
|
|
181
181
|
SimplePollerLike<
|
|
182
182
|
OperationState<ConfigurationsUpdateResponse>,
|
|
@@ -185,21 +185,20 @@ export class ConfigurationsImpl implements Configurations {
|
|
|
185
185
|
> {
|
|
186
186
|
const directSendOperation = async (
|
|
187
187
|
args: coreClient.OperationArguments,
|
|
188
|
-
spec: coreClient.OperationSpec
|
|
188
|
+
spec: coreClient.OperationSpec,
|
|
189
189
|
): Promise<ConfigurationsUpdateResponse> => {
|
|
190
190
|
return this.client.sendOperationRequest(args, spec);
|
|
191
191
|
};
|
|
192
192
|
const sendOperationFn = async (
|
|
193
193
|
args: coreClient.OperationArguments,
|
|
194
|
-
spec: coreClient.OperationSpec
|
|
194
|
+
spec: coreClient.OperationSpec,
|
|
195
195
|
) => {
|
|
196
|
-
let currentRawResponse:
|
|
197
|
-
|
|
198
|
-
| undefined = undefined;
|
|
196
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
197
|
+
undefined;
|
|
199
198
|
const providedCallback = args.options?.onResponse;
|
|
200
199
|
const callback: coreClient.RawResponseCallback = (
|
|
201
200
|
rawResponse: coreClient.FullOperationResponse,
|
|
202
|
-
flatResponse: unknown
|
|
201
|
+
flatResponse: unknown,
|
|
203
202
|
) => {
|
|
204
203
|
currentRawResponse = rawResponse;
|
|
205
204
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -208,8 +207,8 @@ export class ConfigurationsImpl implements Configurations {
|
|
|
208
207
|
...args,
|
|
209
208
|
options: {
|
|
210
209
|
...args.options,
|
|
211
|
-
onResponse: callback
|
|
212
|
-
}
|
|
210
|
+
onResponse: callback,
|
|
211
|
+
},
|
|
213
212
|
};
|
|
214
213
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
215
214
|
return {
|
|
@@ -217,8 +216,8 @@ export class ConfigurationsImpl implements Configurations {
|
|
|
217
216
|
rawResponse: {
|
|
218
217
|
statusCode: currentRawResponse!.status,
|
|
219
218
|
body: currentRawResponse!.parsedBody,
|
|
220
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
221
|
-
}
|
|
219
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
220
|
+
},
|
|
222
221
|
};
|
|
223
222
|
};
|
|
224
223
|
|
|
@@ -229,9 +228,9 @@ export class ConfigurationsImpl implements Configurations {
|
|
|
229
228
|
serverName,
|
|
230
229
|
configurationName,
|
|
231
230
|
parameters,
|
|
232
|
-
options
|
|
231
|
+
options,
|
|
233
232
|
},
|
|
234
|
-
spec: updateOperationSpec
|
|
233
|
+
spec: updateOperationSpec,
|
|
235
234
|
});
|
|
236
235
|
const poller = await createHttpPoller<
|
|
237
236
|
ConfigurationsUpdateResponse,
|
|
@@ -239,7 +238,7 @@ export class ConfigurationsImpl implements Configurations {
|
|
|
239
238
|
>(lro, {
|
|
240
239
|
restoreFrom: options?.resumeFrom,
|
|
241
240
|
intervalInMs: options?.updateIntervalInMs,
|
|
242
|
-
resourceLocationConfig: "azure-async-operation"
|
|
241
|
+
resourceLocationConfig: "azure-async-operation",
|
|
243
242
|
});
|
|
244
243
|
await poller.poll();
|
|
245
244
|
return poller;
|
|
@@ -258,14 +257,14 @@ export class ConfigurationsImpl implements Configurations {
|
|
|
258
257
|
serverName: string,
|
|
259
258
|
configurationName: string,
|
|
260
259
|
parameters: ConfigurationForUpdate,
|
|
261
|
-
options?: ConfigurationsUpdateOptionalParams
|
|
260
|
+
options?: ConfigurationsUpdateOptionalParams,
|
|
262
261
|
): Promise<ConfigurationsUpdateResponse> {
|
|
263
262
|
const poller = await this.beginUpdate(
|
|
264
263
|
resourceGroupName,
|
|
265
264
|
serverName,
|
|
266
265
|
configurationName,
|
|
267
266
|
parameters,
|
|
268
|
-
options
|
|
267
|
+
options,
|
|
269
268
|
);
|
|
270
269
|
return poller.pollUntilDone();
|
|
271
270
|
}
|
|
@@ -283,7 +282,7 @@ export class ConfigurationsImpl implements Configurations {
|
|
|
283
282
|
serverName: string,
|
|
284
283
|
configurationName: string,
|
|
285
284
|
parameters: Configuration,
|
|
286
|
-
options?: ConfigurationsPutOptionalParams
|
|
285
|
+
options?: ConfigurationsPutOptionalParams,
|
|
287
286
|
): Promise<
|
|
288
287
|
SimplePollerLike<
|
|
289
288
|
OperationState<ConfigurationsPutResponse>,
|
|
@@ -292,21 +291,20 @@ export class ConfigurationsImpl implements Configurations {
|
|
|
292
291
|
> {
|
|
293
292
|
const directSendOperation = async (
|
|
294
293
|
args: coreClient.OperationArguments,
|
|
295
|
-
spec: coreClient.OperationSpec
|
|
294
|
+
spec: coreClient.OperationSpec,
|
|
296
295
|
): Promise<ConfigurationsPutResponse> => {
|
|
297
296
|
return this.client.sendOperationRequest(args, spec);
|
|
298
297
|
};
|
|
299
298
|
const sendOperationFn = async (
|
|
300
299
|
args: coreClient.OperationArguments,
|
|
301
|
-
spec: coreClient.OperationSpec
|
|
300
|
+
spec: coreClient.OperationSpec,
|
|
302
301
|
) => {
|
|
303
|
-
let currentRawResponse:
|
|
304
|
-
|
|
305
|
-
| undefined = undefined;
|
|
302
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
303
|
+
undefined;
|
|
306
304
|
const providedCallback = args.options?.onResponse;
|
|
307
305
|
const callback: coreClient.RawResponseCallback = (
|
|
308
306
|
rawResponse: coreClient.FullOperationResponse,
|
|
309
|
-
flatResponse: unknown
|
|
307
|
+
flatResponse: unknown,
|
|
310
308
|
) => {
|
|
311
309
|
currentRawResponse = rawResponse;
|
|
312
310
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -315,8 +313,8 @@ export class ConfigurationsImpl implements Configurations {
|
|
|
315
313
|
...args,
|
|
316
314
|
options: {
|
|
317
315
|
...args.options,
|
|
318
|
-
onResponse: callback
|
|
319
|
-
}
|
|
316
|
+
onResponse: callback,
|
|
317
|
+
},
|
|
320
318
|
};
|
|
321
319
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
322
320
|
return {
|
|
@@ -324,8 +322,8 @@ export class ConfigurationsImpl implements Configurations {
|
|
|
324
322
|
rawResponse: {
|
|
325
323
|
statusCode: currentRawResponse!.status,
|
|
326
324
|
body: currentRawResponse!.parsedBody,
|
|
327
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
328
|
-
}
|
|
325
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
326
|
+
},
|
|
329
327
|
};
|
|
330
328
|
};
|
|
331
329
|
|
|
@@ -336,9 +334,9 @@ export class ConfigurationsImpl implements Configurations {
|
|
|
336
334
|
serverName,
|
|
337
335
|
configurationName,
|
|
338
336
|
parameters,
|
|
339
|
-
options
|
|
337
|
+
options,
|
|
340
338
|
},
|
|
341
|
-
spec: putOperationSpec
|
|
339
|
+
spec: putOperationSpec,
|
|
342
340
|
});
|
|
343
341
|
const poller = await createHttpPoller<
|
|
344
342
|
ConfigurationsPutResponse,
|
|
@@ -346,7 +344,7 @@ export class ConfigurationsImpl implements Configurations {
|
|
|
346
344
|
>(lro, {
|
|
347
345
|
restoreFrom: options?.resumeFrom,
|
|
348
346
|
intervalInMs: options?.updateIntervalInMs,
|
|
349
|
-
resourceLocationConfig: "location"
|
|
347
|
+
resourceLocationConfig: "location",
|
|
350
348
|
});
|
|
351
349
|
await poller.poll();
|
|
352
350
|
return poller;
|
|
@@ -365,14 +363,14 @@ export class ConfigurationsImpl implements Configurations {
|
|
|
365
363
|
serverName: string,
|
|
366
364
|
configurationName: string,
|
|
367
365
|
parameters: Configuration,
|
|
368
|
-
options?: ConfigurationsPutOptionalParams
|
|
366
|
+
options?: ConfigurationsPutOptionalParams,
|
|
369
367
|
): Promise<ConfigurationsPutResponse> {
|
|
370
368
|
const poller = await this.beginPut(
|
|
371
369
|
resourceGroupName,
|
|
372
370
|
serverName,
|
|
373
371
|
configurationName,
|
|
374
372
|
parameters,
|
|
375
|
-
options
|
|
373
|
+
options,
|
|
376
374
|
);
|
|
377
375
|
return poller.pollUntilDone();
|
|
378
376
|
}
|
|
@@ -388,11 +386,11 @@ export class ConfigurationsImpl implements Configurations {
|
|
|
388
386
|
resourceGroupName: string,
|
|
389
387
|
serverName: string,
|
|
390
388
|
nextLink: string,
|
|
391
|
-
options?: ConfigurationsListByServerNextOptionalParams
|
|
389
|
+
options?: ConfigurationsListByServerNextOptionalParams,
|
|
392
390
|
): Promise<ConfigurationsListByServerNextResponse> {
|
|
393
391
|
return this.client.sendOperationRequest(
|
|
394
392
|
{ resourceGroupName, serverName, nextLink, options },
|
|
395
|
-
listByServerNextOperationSpec
|
|
393
|
+
listByServerNextOperationSpec,
|
|
396
394
|
);
|
|
397
395
|
}
|
|
398
396
|
}
|
|
@@ -400,38 +398,36 @@ export class ConfigurationsImpl implements Configurations {
|
|
|
400
398
|
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
401
399
|
|
|
402
400
|
const listByServerOperationSpec: coreClient.OperationSpec = {
|
|
403
|
-
path:
|
|
404
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/configurations",
|
|
401
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/configurations",
|
|
405
402
|
httpMethod: "GET",
|
|
406
403
|
responses: {
|
|
407
404
|
200: {
|
|
408
|
-
bodyMapper: Mappers.ConfigurationListResult
|
|
405
|
+
bodyMapper: Mappers.ConfigurationListResult,
|
|
409
406
|
},
|
|
410
407
|
default: {
|
|
411
|
-
bodyMapper: Mappers.ErrorResponse
|
|
412
|
-
}
|
|
408
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
409
|
+
},
|
|
413
410
|
},
|
|
414
411
|
queryParameters: [Parameters.apiVersion],
|
|
415
412
|
urlParameters: [
|
|
416
413
|
Parameters.$host,
|
|
417
414
|
Parameters.subscriptionId,
|
|
418
415
|
Parameters.resourceGroupName,
|
|
419
|
-
Parameters.serverName
|
|
416
|
+
Parameters.serverName,
|
|
420
417
|
],
|
|
421
418
|
headerParameters: [Parameters.accept],
|
|
422
|
-
serializer
|
|
419
|
+
serializer,
|
|
423
420
|
};
|
|
424
421
|
const getOperationSpec: coreClient.OperationSpec = {
|
|
425
|
-
path:
|
|
426
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/configurations/{configurationName}",
|
|
422
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/configurations/{configurationName}",
|
|
427
423
|
httpMethod: "GET",
|
|
428
424
|
responses: {
|
|
429
425
|
200: {
|
|
430
|
-
bodyMapper: Mappers.Configuration
|
|
426
|
+
bodyMapper: Mappers.Configuration,
|
|
431
427
|
},
|
|
432
428
|
default: {
|
|
433
|
-
bodyMapper: Mappers.ErrorResponse
|
|
434
|
-
}
|
|
429
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
430
|
+
},
|
|
435
431
|
},
|
|
436
432
|
queryParameters: [Parameters.apiVersion],
|
|
437
433
|
urlParameters: [
|
|
@@ -439,31 +435,30 @@ const getOperationSpec: coreClient.OperationSpec = {
|
|
|
439
435
|
Parameters.subscriptionId,
|
|
440
436
|
Parameters.resourceGroupName,
|
|
441
437
|
Parameters.serverName,
|
|
442
|
-
Parameters.configurationName
|
|
438
|
+
Parameters.configurationName,
|
|
443
439
|
],
|
|
444
440
|
headerParameters: [Parameters.accept],
|
|
445
|
-
serializer
|
|
441
|
+
serializer,
|
|
446
442
|
};
|
|
447
443
|
const updateOperationSpec: coreClient.OperationSpec = {
|
|
448
|
-
path:
|
|
449
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/configurations/{configurationName}",
|
|
444
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/configurations/{configurationName}",
|
|
450
445
|
httpMethod: "PATCH",
|
|
451
446
|
responses: {
|
|
452
447
|
200: {
|
|
453
|
-
bodyMapper: Mappers.Configuration
|
|
448
|
+
bodyMapper: Mappers.Configuration,
|
|
454
449
|
},
|
|
455
450
|
201: {
|
|
456
|
-
bodyMapper: Mappers.Configuration
|
|
451
|
+
bodyMapper: Mappers.Configuration,
|
|
457
452
|
},
|
|
458
453
|
202: {
|
|
459
|
-
bodyMapper: Mappers.Configuration
|
|
454
|
+
bodyMapper: Mappers.Configuration,
|
|
460
455
|
},
|
|
461
456
|
204: {
|
|
462
|
-
bodyMapper: Mappers.Configuration
|
|
457
|
+
bodyMapper: Mappers.Configuration,
|
|
463
458
|
},
|
|
464
459
|
default: {
|
|
465
|
-
bodyMapper: Mappers.ErrorResponse
|
|
466
|
-
}
|
|
460
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
461
|
+
},
|
|
467
462
|
},
|
|
468
463
|
requestBody: Parameters.parameters1,
|
|
469
464
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -472,32 +467,31 @@ const updateOperationSpec: coreClient.OperationSpec = {
|
|
|
472
467
|
Parameters.subscriptionId,
|
|
473
468
|
Parameters.resourceGroupName,
|
|
474
469
|
Parameters.serverName,
|
|
475
|
-
Parameters.configurationName
|
|
470
|
+
Parameters.configurationName,
|
|
476
471
|
],
|
|
477
472
|
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
478
473
|
mediaType: "json",
|
|
479
|
-
serializer
|
|
474
|
+
serializer,
|
|
480
475
|
};
|
|
481
476
|
const putOperationSpec: coreClient.OperationSpec = {
|
|
482
|
-
path:
|
|
483
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/configurations/{configurationName}",
|
|
477
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/configurations/{configurationName}",
|
|
484
478
|
httpMethod: "PUT",
|
|
485
479
|
responses: {
|
|
486
480
|
200: {
|
|
487
|
-
bodyMapper: Mappers.Configuration
|
|
481
|
+
bodyMapper: Mappers.Configuration,
|
|
488
482
|
},
|
|
489
483
|
201: {
|
|
490
|
-
bodyMapper: Mappers.Configuration
|
|
484
|
+
bodyMapper: Mappers.Configuration,
|
|
491
485
|
},
|
|
492
486
|
202: {
|
|
493
|
-
bodyMapper: Mappers.Configuration
|
|
487
|
+
bodyMapper: Mappers.Configuration,
|
|
494
488
|
},
|
|
495
489
|
204: {
|
|
496
|
-
bodyMapper: Mappers.Configuration
|
|
490
|
+
bodyMapper: Mappers.Configuration,
|
|
497
491
|
},
|
|
498
492
|
default: {
|
|
499
|
-
bodyMapper: Mappers.ErrorResponse
|
|
500
|
-
}
|
|
493
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
494
|
+
},
|
|
501
495
|
},
|
|
502
496
|
requestBody: Parameters.parameters2,
|
|
503
497
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -506,30 +500,30 @@ const putOperationSpec: coreClient.OperationSpec = {
|
|
|
506
500
|
Parameters.subscriptionId,
|
|
507
501
|
Parameters.resourceGroupName,
|
|
508
502
|
Parameters.serverName,
|
|
509
|
-
Parameters.configurationName
|
|
503
|
+
Parameters.configurationName,
|
|
510
504
|
],
|
|
511
505
|
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
512
506
|
mediaType: "json",
|
|
513
|
-
serializer
|
|
507
|
+
serializer,
|
|
514
508
|
};
|
|
515
509
|
const listByServerNextOperationSpec: coreClient.OperationSpec = {
|
|
516
510
|
path: "{nextLink}",
|
|
517
511
|
httpMethod: "GET",
|
|
518
512
|
responses: {
|
|
519
513
|
200: {
|
|
520
|
-
bodyMapper: Mappers.ConfigurationListResult
|
|
514
|
+
bodyMapper: Mappers.ConfigurationListResult,
|
|
521
515
|
},
|
|
522
516
|
default: {
|
|
523
|
-
bodyMapper: Mappers.ErrorResponse
|
|
524
|
-
}
|
|
517
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
518
|
+
},
|
|
525
519
|
},
|
|
526
520
|
urlParameters: [
|
|
527
521
|
Parameters.$host,
|
|
528
522
|
Parameters.subscriptionId,
|
|
529
523
|
Parameters.resourceGroupName,
|
|
530
524
|
Parameters.serverName,
|
|
531
|
-
Parameters.nextLink
|
|
525
|
+
Parameters.nextLink,
|
|
532
526
|
],
|
|
533
527
|
headerParameters: [Parameters.accept],
|
|
534
|
-
serializer
|
|
528
|
+
serializer,
|
|
535
529
|
};
|