@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
|
@@ -14,7 +14,7 @@ import { PostgreSQLManagementFlexibleServerClient } from "../postgreSQLManagemen
|
|
|
14
14
|
import {
|
|
15
15
|
SimplePollerLike,
|
|
16
16
|
OperationState,
|
|
17
|
-
createHttpPoller
|
|
17
|
+
createHttpPoller,
|
|
18
18
|
} from "@azure/core-lro";
|
|
19
19
|
import { createLroSpec } from "../lroImpl";
|
|
20
20
|
import {
|
|
@@ -22,12 +22,13 @@ import {
|
|
|
22
22
|
PrivateEndpointConnectionUpdateOptionalParams,
|
|
23
23
|
PrivateEndpointConnectionUpdateResponse,
|
|
24
24
|
PrivateEndpointConnectionDeleteOptionalParams,
|
|
25
|
-
PrivateEndpointConnectionDeleteResponse
|
|
25
|
+
PrivateEndpointConnectionDeleteResponse,
|
|
26
26
|
} from "../models";
|
|
27
27
|
|
|
28
28
|
/** Class containing PrivateEndpointConnectionOperations operations. */
|
|
29
29
|
export class PrivateEndpointConnectionOperationsImpl
|
|
30
|
-
implements PrivateEndpointConnectionOperations
|
|
30
|
+
implements PrivateEndpointConnectionOperations
|
|
31
|
+
{
|
|
31
32
|
private readonly client: PostgreSQLManagementFlexibleServerClient;
|
|
32
33
|
|
|
33
34
|
/**
|
|
@@ -51,7 +52,7 @@ export class PrivateEndpointConnectionOperationsImpl
|
|
|
51
52
|
serverName: string,
|
|
52
53
|
privateEndpointConnectionName: string,
|
|
53
54
|
parameters: PrivateEndpointConnection,
|
|
54
|
-
options?: PrivateEndpointConnectionUpdateOptionalParams
|
|
55
|
+
options?: PrivateEndpointConnectionUpdateOptionalParams,
|
|
55
56
|
): Promise<
|
|
56
57
|
SimplePollerLike<
|
|
57
58
|
OperationState<PrivateEndpointConnectionUpdateResponse>,
|
|
@@ -60,21 +61,20 @@ export class PrivateEndpointConnectionOperationsImpl
|
|
|
60
61
|
> {
|
|
61
62
|
const directSendOperation = async (
|
|
62
63
|
args: coreClient.OperationArguments,
|
|
63
|
-
spec: coreClient.OperationSpec
|
|
64
|
+
spec: coreClient.OperationSpec,
|
|
64
65
|
): Promise<PrivateEndpointConnectionUpdateResponse> => {
|
|
65
66
|
return this.client.sendOperationRequest(args, spec);
|
|
66
67
|
};
|
|
67
68
|
const sendOperationFn = async (
|
|
68
69
|
args: coreClient.OperationArguments,
|
|
69
|
-
spec: coreClient.OperationSpec
|
|
70
|
+
spec: coreClient.OperationSpec,
|
|
70
71
|
) => {
|
|
71
|
-
let currentRawResponse:
|
|
72
|
-
|
|
73
|
-
| undefined = undefined;
|
|
72
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
73
|
+
undefined;
|
|
74
74
|
const providedCallback = args.options?.onResponse;
|
|
75
75
|
const callback: coreClient.RawResponseCallback = (
|
|
76
76
|
rawResponse: coreClient.FullOperationResponse,
|
|
77
|
-
flatResponse: unknown
|
|
77
|
+
flatResponse: unknown,
|
|
78
78
|
) => {
|
|
79
79
|
currentRawResponse = rawResponse;
|
|
80
80
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -83,8 +83,8 @@ export class PrivateEndpointConnectionOperationsImpl
|
|
|
83
83
|
...args,
|
|
84
84
|
options: {
|
|
85
85
|
...args.options,
|
|
86
|
-
onResponse: callback
|
|
87
|
-
}
|
|
86
|
+
onResponse: callback,
|
|
87
|
+
},
|
|
88
88
|
};
|
|
89
89
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
90
90
|
return {
|
|
@@ -92,8 +92,8 @@ export class PrivateEndpointConnectionOperationsImpl
|
|
|
92
92
|
rawResponse: {
|
|
93
93
|
statusCode: currentRawResponse!.status,
|
|
94
94
|
body: currentRawResponse!.parsedBody,
|
|
95
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
96
|
-
}
|
|
95
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
96
|
+
},
|
|
97
97
|
};
|
|
98
98
|
};
|
|
99
99
|
|
|
@@ -104,16 +104,16 @@ export class PrivateEndpointConnectionOperationsImpl
|
|
|
104
104
|
serverName,
|
|
105
105
|
privateEndpointConnectionName,
|
|
106
106
|
parameters,
|
|
107
|
-
options
|
|
107
|
+
options,
|
|
108
108
|
},
|
|
109
|
-
spec: updateOperationSpec
|
|
109
|
+
spec: updateOperationSpec,
|
|
110
110
|
});
|
|
111
111
|
const poller = await createHttpPoller<
|
|
112
112
|
PrivateEndpointConnectionUpdateResponse,
|
|
113
113
|
OperationState<PrivateEndpointConnectionUpdateResponse>
|
|
114
114
|
>(lro, {
|
|
115
115
|
restoreFrom: options?.resumeFrom,
|
|
116
|
-
intervalInMs: options?.updateIntervalInMs
|
|
116
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
117
117
|
});
|
|
118
118
|
await poller.poll();
|
|
119
119
|
return poller;
|
|
@@ -132,14 +132,14 @@ export class PrivateEndpointConnectionOperationsImpl
|
|
|
132
132
|
serverName: string,
|
|
133
133
|
privateEndpointConnectionName: string,
|
|
134
134
|
parameters: PrivateEndpointConnection,
|
|
135
|
-
options?: PrivateEndpointConnectionUpdateOptionalParams
|
|
135
|
+
options?: PrivateEndpointConnectionUpdateOptionalParams,
|
|
136
136
|
): Promise<PrivateEndpointConnectionUpdateResponse> {
|
|
137
137
|
const poller = await this.beginUpdate(
|
|
138
138
|
resourceGroupName,
|
|
139
139
|
serverName,
|
|
140
140
|
privateEndpointConnectionName,
|
|
141
141
|
parameters,
|
|
142
|
-
options
|
|
142
|
+
options,
|
|
143
143
|
);
|
|
144
144
|
return poller.pollUntilDone();
|
|
145
145
|
}
|
|
@@ -155,7 +155,7 @@ export class PrivateEndpointConnectionOperationsImpl
|
|
|
155
155
|
resourceGroupName: string,
|
|
156
156
|
serverName: string,
|
|
157
157
|
privateEndpointConnectionName: string,
|
|
158
|
-
options?: PrivateEndpointConnectionDeleteOptionalParams
|
|
158
|
+
options?: PrivateEndpointConnectionDeleteOptionalParams,
|
|
159
159
|
): Promise<
|
|
160
160
|
SimplePollerLike<
|
|
161
161
|
OperationState<PrivateEndpointConnectionDeleteResponse>,
|
|
@@ -164,21 +164,20 @@ export class PrivateEndpointConnectionOperationsImpl
|
|
|
164
164
|
> {
|
|
165
165
|
const directSendOperation = async (
|
|
166
166
|
args: coreClient.OperationArguments,
|
|
167
|
-
spec: coreClient.OperationSpec
|
|
167
|
+
spec: coreClient.OperationSpec,
|
|
168
168
|
): Promise<PrivateEndpointConnectionDeleteResponse> => {
|
|
169
169
|
return this.client.sendOperationRequest(args, spec);
|
|
170
170
|
};
|
|
171
171
|
const sendOperationFn = async (
|
|
172
172
|
args: coreClient.OperationArguments,
|
|
173
|
-
spec: coreClient.OperationSpec
|
|
173
|
+
spec: coreClient.OperationSpec,
|
|
174
174
|
) => {
|
|
175
|
-
let currentRawResponse:
|
|
176
|
-
|
|
177
|
-
| undefined = undefined;
|
|
175
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
176
|
+
undefined;
|
|
178
177
|
const providedCallback = args.options?.onResponse;
|
|
179
178
|
const callback: coreClient.RawResponseCallback = (
|
|
180
179
|
rawResponse: coreClient.FullOperationResponse,
|
|
181
|
-
flatResponse: unknown
|
|
180
|
+
flatResponse: unknown,
|
|
182
181
|
) => {
|
|
183
182
|
currentRawResponse = rawResponse;
|
|
184
183
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -187,8 +186,8 @@ export class PrivateEndpointConnectionOperationsImpl
|
|
|
187
186
|
...args,
|
|
188
187
|
options: {
|
|
189
188
|
...args.options,
|
|
190
|
-
onResponse: callback
|
|
191
|
-
}
|
|
189
|
+
onResponse: callback,
|
|
190
|
+
},
|
|
192
191
|
};
|
|
193
192
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
194
193
|
return {
|
|
@@ -196,8 +195,8 @@ export class PrivateEndpointConnectionOperationsImpl
|
|
|
196
195
|
rawResponse: {
|
|
197
196
|
statusCode: currentRawResponse!.status,
|
|
198
197
|
body: currentRawResponse!.parsedBody,
|
|
199
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
200
|
-
}
|
|
198
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
199
|
+
},
|
|
201
200
|
};
|
|
202
201
|
};
|
|
203
202
|
|
|
@@ -207,9 +206,9 @@ export class PrivateEndpointConnectionOperationsImpl
|
|
|
207
206
|
resourceGroupName,
|
|
208
207
|
serverName,
|
|
209
208
|
privateEndpointConnectionName,
|
|
210
|
-
options
|
|
209
|
+
options,
|
|
211
210
|
},
|
|
212
|
-
spec: deleteOperationSpec
|
|
211
|
+
spec: deleteOperationSpec,
|
|
213
212
|
});
|
|
214
213
|
const poller = await createHttpPoller<
|
|
215
214
|
PrivateEndpointConnectionDeleteResponse,
|
|
@@ -217,7 +216,7 @@ export class PrivateEndpointConnectionOperationsImpl
|
|
|
217
216
|
>(lro, {
|
|
218
217
|
restoreFrom: options?.resumeFrom,
|
|
219
218
|
intervalInMs: options?.updateIntervalInMs,
|
|
220
|
-
resourceLocationConfig: "azure-async-operation"
|
|
219
|
+
resourceLocationConfig: "azure-async-operation",
|
|
221
220
|
});
|
|
222
221
|
await poller.poll();
|
|
223
222
|
return poller;
|
|
@@ -234,13 +233,13 @@ export class PrivateEndpointConnectionOperationsImpl
|
|
|
234
233
|
resourceGroupName: string,
|
|
235
234
|
serverName: string,
|
|
236
235
|
privateEndpointConnectionName: string,
|
|
237
|
-
options?: PrivateEndpointConnectionDeleteOptionalParams
|
|
236
|
+
options?: PrivateEndpointConnectionDeleteOptionalParams,
|
|
238
237
|
): Promise<PrivateEndpointConnectionDeleteResponse> {
|
|
239
238
|
const poller = await this.beginDelete(
|
|
240
239
|
resourceGroupName,
|
|
241
240
|
serverName,
|
|
242
241
|
privateEndpointConnectionName,
|
|
243
|
-
options
|
|
242
|
+
options,
|
|
244
243
|
);
|
|
245
244
|
return poller.pollUntilDone();
|
|
246
245
|
}
|
|
@@ -249,25 +248,24 @@ export class PrivateEndpointConnectionOperationsImpl
|
|
|
249
248
|
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
250
249
|
|
|
251
250
|
const updateOperationSpec: coreClient.OperationSpec = {
|
|
252
|
-
path:
|
|
253
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
251
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
254
252
|
httpMethod: "PUT",
|
|
255
253
|
responses: {
|
|
256
254
|
200: {
|
|
257
|
-
bodyMapper: Mappers.PrivateEndpointConnection
|
|
255
|
+
bodyMapper: Mappers.PrivateEndpointConnection,
|
|
258
256
|
},
|
|
259
257
|
201: {
|
|
260
|
-
bodyMapper: Mappers.PrivateEndpointConnection
|
|
258
|
+
bodyMapper: Mappers.PrivateEndpointConnection,
|
|
261
259
|
},
|
|
262
260
|
202: {
|
|
263
|
-
bodyMapper: Mappers.PrivateEndpointConnection
|
|
261
|
+
bodyMapper: Mappers.PrivateEndpointConnection,
|
|
264
262
|
},
|
|
265
263
|
204: {
|
|
266
|
-
bodyMapper: Mappers.PrivateEndpointConnection
|
|
264
|
+
bodyMapper: Mappers.PrivateEndpointConnection,
|
|
267
265
|
},
|
|
268
266
|
default: {
|
|
269
|
-
bodyMapper: Mappers.ErrorResponse
|
|
270
|
-
}
|
|
267
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
268
|
+
},
|
|
271
269
|
},
|
|
272
270
|
requestBody: Parameters.parameters13,
|
|
273
271
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -276,32 +274,31 @@ const updateOperationSpec: coreClient.OperationSpec = {
|
|
|
276
274
|
Parameters.subscriptionId,
|
|
277
275
|
Parameters.resourceGroupName,
|
|
278
276
|
Parameters.serverName,
|
|
279
|
-
Parameters.privateEndpointConnectionName
|
|
277
|
+
Parameters.privateEndpointConnectionName,
|
|
280
278
|
],
|
|
281
279
|
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
282
280
|
mediaType: "json",
|
|
283
|
-
serializer
|
|
281
|
+
serializer,
|
|
284
282
|
};
|
|
285
283
|
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
286
|
-
path:
|
|
287
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
284
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
288
285
|
httpMethod: "DELETE",
|
|
289
286
|
responses: {
|
|
290
287
|
200: {
|
|
291
|
-
headersMapper: Mappers.PrivateEndpointConnectionDeleteHeaders
|
|
288
|
+
headersMapper: Mappers.PrivateEndpointConnectionDeleteHeaders,
|
|
292
289
|
},
|
|
293
290
|
201: {
|
|
294
|
-
headersMapper: Mappers.PrivateEndpointConnectionDeleteHeaders
|
|
291
|
+
headersMapper: Mappers.PrivateEndpointConnectionDeleteHeaders,
|
|
295
292
|
},
|
|
296
293
|
202: {
|
|
297
|
-
headersMapper: Mappers.PrivateEndpointConnectionDeleteHeaders
|
|
294
|
+
headersMapper: Mappers.PrivateEndpointConnectionDeleteHeaders,
|
|
298
295
|
},
|
|
299
296
|
204: {
|
|
300
|
-
headersMapper: Mappers.PrivateEndpointConnectionDeleteHeaders
|
|
297
|
+
headersMapper: Mappers.PrivateEndpointConnectionDeleteHeaders,
|
|
301
298
|
},
|
|
302
299
|
default: {
|
|
303
|
-
bodyMapper: Mappers.ErrorResponse
|
|
304
|
-
}
|
|
300
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
301
|
+
},
|
|
305
302
|
},
|
|
306
303
|
queryParameters: [Parameters.apiVersion],
|
|
307
304
|
urlParameters: [
|
|
@@ -309,8 +306,8 @@ const deleteOperationSpec: coreClient.OperationSpec = {
|
|
|
309
306
|
Parameters.subscriptionId,
|
|
310
307
|
Parameters.resourceGroupName,
|
|
311
308
|
Parameters.serverName,
|
|
312
|
-
Parameters.privateEndpointConnectionName
|
|
309
|
+
Parameters.privateEndpointConnectionName,
|
|
313
310
|
],
|
|
314
311
|
headerParameters: [Parameters.accept],
|
|
315
|
-
serializer
|
|
312
|
+
serializer,
|
|
316
313
|
};
|
|
@@ -20,13 +20,14 @@ import {
|
|
|
20
20
|
PrivateEndpointConnectionsListByServerResponse,
|
|
21
21
|
PrivateEndpointConnectionsGetOptionalParams,
|
|
22
22
|
PrivateEndpointConnectionsGetResponse,
|
|
23
|
-
PrivateEndpointConnectionsListByServerNextResponse
|
|
23
|
+
PrivateEndpointConnectionsListByServerNextResponse,
|
|
24
24
|
} from "../models";
|
|
25
25
|
|
|
26
26
|
/// <reference lib="esnext.asynciterable" />
|
|
27
27
|
/** Class containing PrivateEndpointConnections operations. */
|
|
28
28
|
export class PrivateEndpointConnectionsImpl
|
|
29
|
-
implements PrivateEndpointConnections
|
|
29
|
+
implements PrivateEndpointConnections
|
|
30
|
+
{
|
|
30
31
|
private readonly client: PostgreSQLManagementFlexibleServerClient;
|
|
31
32
|
|
|
32
33
|
/**
|
|
@@ -46,12 +47,12 @@ export class PrivateEndpointConnectionsImpl
|
|
|
46
47
|
public listByServer(
|
|
47
48
|
resourceGroupName: string,
|
|
48
49
|
serverName: string,
|
|
49
|
-
options?: PrivateEndpointConnectionsListByServerOptionalParams
|
|
50
|
+
options?: PrivateEndpointConnectionsListByServerOptionalParams,
|
|
50
51
|
): PagedAsyncIterableIterator<PrivateEndpointConnection> {
|
|
51
52
|
const iter = this.listByServerPagingAll(
|
|
52
53
|
resourceGroupName,
|
|
53
54
|
serverName,
|
|
54
|
-
options
|
|
55
|
+
options,
|
|
55
56
|
);
|
|
56
57
|
return {
|
|
57
58
|
next() {
|
|
@@ -68,9 +69,9 @@ export class PrivateEndpointConnectionsImpl
|
|
|
68
69
|
resourceGroupName,
|
|
69
70
|
serverName,
|
|
70
71
|
options,
|
|
71
|
-
settings
|
|
72
|
+
settings,
|
|
72
73
|
);
|
|
73
|
-
}
|
|
74
|
+
},
|
|
74
75
|
};
|
|
75
76
|
}
|
|
76
77
|
|
|
@@ -78,7 +79,7 @@ export class PrivateEndpointConnectionsImpl
|
|
|
78
79
|
resourceGroupName: string,
|
|
79
80
|
serverName: string,
|
|
80
81
|
options?: PrivateEndpointConnectionsListByServerOptionalParams,
|
|
81
|
-
settings?: PageSettings
|
|
82
|
+
settings?: PageSettings,
|
|
82
83
|
): AsyncIterableIterator<PrivateEndpointConnection[]> {
|
|
83
84
|
let result: PrivateEndpointConnectionsListByServerResponse;
|
|
84
85
|
let continuationToken = settings?.continuationToken;
|
|
@@ -94,7 +95,7 @@ export class PrivateEndpointConnectionsImpl
|
|
|
94
95
|
resourceGroupName,
|
|
95
96
|
serverName,
|
|
96
97
|
continuationToken,
|
|
97
|
-
options
|
|
98
|
+
options,
|
|
98
99
|
);
|
|
99
100
|
continuationToken = result.nextLink;
|
|
100
101
|
let page = result.value || [];
|
|
@@ -106,12 +107,12 @@ export class PrivateEndpointConnectionsImpl
|
|
|
106
107
|
private async *listByServerPagingAll(
|
|
107
108
|
resourceGroupName: string,
|
|
108
109
|
serverName: string,
|
|
109
|
-
options?: PrivateEndpointConnectionsListByServerOptionalParams
|
|
110
|
+
options?: PrivateEndpointConnectionsListByServerOptionalParams,
|
|
110
111
|
): AsyncIterableIterator<PrivateEndpointConnection> {
|
|
111
112
|
for await (const page of this.listByServerPagingPage(
|
|
112
113
|
resourceGroupName,
|
|
113
114
|
serverName,
|
|
114
|
-
options
|
|
115
|
+
options,
|
|
115
116
|
)) {
|
|
116
117
|
yield* page;
|
|
117
118
|
}
|
|
@@ -128,11 +129,11 @@ export class PrivateEndpointConnectionsImpl
|
|
|
128
129
|
resourceGroupName: string,
|
|
129
130
|
serverName: string,
|
|
130
131
|
privateEndpointConnectionName: string,
|
|
131
|
-
options?: PrivateEndpointConnectionsGetOptionalParams
|
|
132
|
+
options?: PrivateEndpointConnectionsGetOptionalParams,
|
|
132
133
|
): Promise<PrivateEndpointConnectionsGetResponse> {
|
|
133
134
|
return this.client.sendOperationRequest(
|
|
134
135
|
{ resourceGroupName, serverName, privateEndpointConnectionName, options },
|
|
135
|
-
getOperationSpec
|
|
136
|
+
getOperationSpec,
|
|
136
137
|
);
|
|
137
138
|
}
|
|
138
139
|
|
|
@@ -145,11 +146,11 @@ export class PrivateEndpointConnectionsImpl
|
|
|
145
146
|
private _listByServer(
|
|
146
147
|
resourceGroupName: string,
|
|
147
148
|
serverName: string,
|
|
148
|
-
options?: PrivateEndpointConnectionsListByServerOptionalParams
|
|
149
|
+
options?: PrivateEndpointConnectionsListByServerOptionalParams,
|
|
149
150
|
): Promise<PrivateEndpointConnectionsListByServerResponse> {
|
|
150
151
|
return this.client.sendOperationRequest(
|
|
151
152
|
{ resourceGroupName, serverName, options },
|
|
152
|
-
listByServerOperationSpec
|
|
153
|
+
listByServerOperationSpec,
|
|
153
154
|
);
|
|
154
155
|
}
|
|
155
156
|
|
|
@@ -164,11 +165,11 @@ export class PrivateEndpointConnectionsImpl
|
|
|
164
165
|
resourceGroupName: string,
|
|
165
166
|
serverName: string,
|
|
166
167
|
nextLink: string,
|
|
167
|
-
options?: PrivateEndpointConnectionsListByServerNextOptionalParams
|
|
168
|
+
options?: PrivateEndpointConnectionsListByServerNextOptionalParams,
|
|
168
169
|
): Promise<PrivateEndpointConnectionsListByServerNextResponse> {
|
|
169
170
|
return this.client.sendOperationRequest(
|
|
170
171
|
{ resourceGroupName, serverName, nextLink, options },
|
|
171
|
-
listByServerNextOperationSpec
|
|
172
|
+
listByServerNextOperationSpec,
|
|
172
173
|
);
|
|
173
174
|
}
|
|
174
175
|
}
|
|
@@ -176,16 +177,15 @@ export class PrivateEndpointConnectionsImpl
|
|
|
176
177
|
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
177
178
|
|
|
178
179
|
const getOperationSpec: coreClient.OperationSpec = {
|
|
179
|
-
path:
|
|
180
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
180
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
181
181
|
httpMethod: "GET",
|
|
182
182
|
responses: {
|
|
183
183
|
200: {
|
|
184
|
-
bodyMapper: Mappers.PrivateEndpointConnection
|
|
184
|
+
bodyMapper: Mappers.PrivateEndpointConnection,
|
|
185
185
|
},
|
|
186
186
|
default: {
|
|
187
|
-
bodyMapper: Mappers.ErrorResponse
|
|
188
|
-
}
|
|
187
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
188
|
+
},
|
|
189
189
|
},
|
|
190
190
|
queryParameters: [Parameters.apiVersion],
|
|
191
191
|
urlParameters: [
|
|
@@ -193,51 +193,50 @@ const getOperationSpec: coreClient.OperationSpec = {
|
|
|
193
193
|
Parameters.subscriptionId,
|
|
194
194
|
Parameters.resourceGroupName,
|
|
195
195
|
Parameters.serverName,
|
|
196
|
-
Parameters.privateEndpointConnectionName
|
|
196
|
+
Parameters.privateEndpointConnectionName,
|
|
197
197
|
],
|
|
198
198
|
headerParameters: [Parameters.accept],
|
|
199
|
-
serializer
|
|
199
|
+
serializer,
|
|
200
200
|
};
|
|
201
201
|
const listByServerOperationSpec: coreClient.OperationSpec = {
|
|
202
|
-
path:
|
|
203
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/privateEndpointConnections",
|
|
202
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/privateEndpointConnections",
|
|
204
203
|
httpMethod: "GET",
|
|
205
204
|
responses: {
|
|
206
205
|
200: {
|
|
207
|
-
bodyMapper: Mappers.PrivateEndpointConnectionListResult
|
|
206
|
+
bodyMapper: Mappers.PrivateEndpointConnectionListResult,
|
|
208
207
|
},
|
|
209
208
|
default: {
|
|
210
|
-
bodyMapper: Mappers.ErrorResponse
|
|
211
|
-
}
|
|
209
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
210
|
+
},
|
|
212
211
|
},
|
|
213
212
|
queryParameters: [Parameters.apiVersion],
|
|
214
213
|
urlParameters: [
|
|
215
214
|
Parameters.$host,
|
|
216
215
|
Parameters.subscriptionId,
|
|
217
216
|
Parameters.resourceGroupName,
|
|
218
|
-
Parameters.serverName
|
|
217
|
+
Parameters.serverName,
|
|
219
218
|
],
|
|
220
219
|
headerParameters: [Parameters.accept],
|
|
221
|
-
serializer
|
|
220
|
+
serializer,
|
|
222
221
|
};
|
|
223
222
|
const listByServerNextOperationSpec: coreClient.OperationSpec = {
|
|
224
223
|
path: "{nextLink}",
|
|
225
224
|
httpMethod: "GET",
|
|
226
225
|
responses: {
|
|
227
226
|
200: {
|
|
228
|
-
bodyMapper: Mappers.PrivateEndpointConnectionListResult
|
|
227
|
+
bodyMapper: Mappers.PrivateEndpointConnectionListResult,
|
|
229
228
|
},
|
|
230
229
|
default: {
|
|
231
|
-
bodyMapper: Mappers.ErrorResponse
|
|
232
|
-
}
|
|
230
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
231
|
+
},
|
|
233
232
|
},
|
|
234
233
|
urlParameters: [
|
|
235
234
|
Parameters.$host,
|
|
236
235
|
Parameters.subscriptionId,
|
|
237
236
|
Parameters.resourceGroupName,
|
|
238
237
|
Parameters.serverName,
|
|
239
|
-
Parameters.nextLink
|
|
238
|
+
Parameters.nextLink,
|
|
240
239
|
],
|
|
241
240
|
headerParameters: [Parameters.accept],
|
|
242
|
-
serializer
|
|
241
|
+
serializer,
|
|
243
242
|
};
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
PrivateLinkResourcesListByServerResponse,
|
|
21
21
|
PrivateLinkResourcesGetOptionalParams,
|
|
22
22
|
PrivateLinkResourcesGetResponse,
|
|
23
|
-
PrivateLinkResourcesListByServerNextResponse
|
|
23
|
+
PrivateLinkResourcesListByServerNextResponse,
|
|
24
24
|
} from "../models";
|
|
25
25
|
|
|
26
26
|
/// <reference lib="esnext.asynciterable" />
|
|
@@ -45,12 +45,12 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources {
|
|
|
45
45
|
public listByServer(
|
|
46
46
|
resourceGroupName: string,
|
|
47
47
|
serverName: string,
|
|
48
|
-
options?: PrivateLinkResourcesListByServerOptionalParams
|
|
48
|
+
options?: PrivateLinkResourcesListByServerOptionalParams,
|
|
49
49
|
): PagedAsyncIterableIterator<PrivateLinkResource> {
|
|
50
50
|
const iter = this.listByServerPagingAll(
|
|
51
51
|
resourceGroupName,
|
|
52
52
|
serverName,
|
|
53
|
-
options
|
|
53
|
+
options,
|
|
54
54
|
);
|
|
55
55
|
return {
|
|
56
56
|
next() {
|
|
@@ -67,9 +67,9 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources {
|
|
|
67
67
|
resourceGroupName,
|
|
68
68
|
serverName,
|
|
69
69
|
options,
|
|
70
|
-
settings
|
|
70
|
+
settings,
|
|
71
71
|
);
|
|
72
|
-
}
|
|
72
|
+
},
|
|
73
73
|
};
|
|
74
74
|
}
|
|
75
75
|
|
|
@@ -77,7 +77,7 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources {
|
|
|
77
77
|
resourceGroupName: string,
|
|
78
78
|
serverName: string,
|
|
79
79
|
options?: PrivateLinkResourcesListByServerOptionalParams,
|
|
80
|
-
settings?: PageSettings
|
|
80
|
+
settings?: PageSettings,
|
|
81
81
|
): AsyncIterableIterator<PrivateLinkResource[]> {
|
|
82
82
|
let result: PrivateLinkResourcesListByServerResponse;
|
|
83
83
|
let continuationToken = settings?.continuationToken;
|
|
@@ -93,7 +93,7 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources {
|
|
|
93
93
|
resourceGroupName,
|
|
94
94
|
serverName,
|
|
95
95
|
continuationToken,
|
|
96
|
-
options
|
|
96
|
+
options,
|
|
97
97
|
);
|
|
98
98
|
continuationToken = result.nextLink;
|
|
99
99
|
let page = result.value || [];
|
|
@@ -105,12 +105,12 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources {
|
|
|
105
105
|
private async *listByServerPagingAll(
|
|
106
106
|
resourceGroupName: string,
|
|
107
107
|
serverName: string,
|
|
108
|
-
options?: PrivateLinkResourcesListByServerOptionalParams
|
|
108
|
+
options?: PrivateLinkResourcesListByServerOptionalParams,
|
|
109
109
|
): AsyncIterableIterator<PrivateLinkResource> {
|
|
110
110
|
for await (const page of this.listByServerPagingPage(
|
|
111
111
|
resourceGroupName,
|
|
112
112
|
serverName,
|
|
113
|
-
options
|
|
113
|
+
options,
|
|
114
114
|
)) {
|
|
115
115
|
yield* page;
|
|
116
116
|
}
|
|
@@ -125,11 +125,11 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources {
|
|
|
125
125
|
private _listByServer(
|
|
126
126
|
resourceGroupName: string,
|
|
127
127
|
serverName: string,
|
|
128
|
-
options?: PrivateLinkResourcesListByServerOptionalParams
|
|
128
|
+
options?: PrivateLinkResourcesListByServerOptionalParams,
|
|
129
129
|
): Promise<PrivateLinkResourcesListByServerResponse> {
|
|
130
130
|
return this.client.sendOperationRequest(
|
|
131
131
|
{ resourceGroupName, serverName, options },
|
|
132
|
-
listByServerOperationSpec
|
|
132
|
+
listByServerOperationSpec,
|
|
133
133
|
);
|
|
134
134
|
}
|
|
135
135
|
|
|
@@ -144,11 +144,11 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources {
|
|
|
144
144
|
resourceGroupName: string,
|
|
145
145
|
serverName: string,
|
|
146
146
|
groupName: string,
|
|
147
|
-
options?: PrivateLinkResourcesGetOptionalParams
|
|
147
|
+
options?: PrivateLinkResourcesGetOptionalParams,
|
|
148
148
|
): Promise<PrivateLinkResourcesGetResponse> {
|
|
149
149
|
return this.client.sendOperationRequest(
|
|
150
150
|
{ resourceGroupName, serverName, groupName, options },
|
|
151
|
-
getOperationSpec
|
|
151
|
+
getOperationSpec,
|
|
152
152
|
);
|
|
153
153
|
}
|
|
154
154
|
|
|
@@ -163,11 +163,11 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources {
|
|
|
163
163
|
resourceGroupName: string,
|
|
164
164
|
serverName: string,
|
|
165
165
|
nextLink: string,
|
|
166
|
-
options?: PrivateLinkResourcesListByServerNextOptionalParams
|
|
166
|
+
options?: PrivateLinkResourcesListByServerNextOptionalParams,
|
|
167
167
|
): Promise<PrivateLinkResourcesListByServerNextResponse> {
|
|
168
168
|
return this.client.sendOperationRequest(
|
|
169
169
|
{ resourceGroupName, serverName, nextLink, options },
|
|
170
|
-
listByServerNextOperationSpec
|
|
170
|
+
listByServerNextOperationSpec,
|
|
171
171
|
);
|
|
172
172
|
}
|
|
173
173
|
}
|
|
@@ -175,38 +175,36 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources {
|
|
|
175
175
|
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
176
176
|
|
|
177
177
|
const listByServerOperationSpec: coreClient.OperationSpec = {
|
|
178
|
-
path:
|
|
179
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/privateLinkResources",
|
|
178
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/privateLinkResources",
|
|
180
179
|
httpMethod: "GET",
|
|
181
180
|
responses: {
|
|
182
181
|
200: {
|
|
183
|
-
bodyMapper: Mappers.PrivateLinkResourceListResult
|
|
182
|
+
bodyMapper: Mappers.PrivateLinkResourceListResult,
|
|
184
183
|
},
|
|
185
184
|
default: {
|
|
186
|
-
bodyMapper: Mappers.ErrorResponse
|
|
187
|
-
}
|
|
185
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
186
|
+
},
|
|
188
187
|
},
|
|
189
188
|
queryParameters: [Parameters.apiVersion],
|
|
190
189
|
urlParameters: [
|
|
191
190
|
Parameters.$host,
|
|
192
191
|
Parameters.subscriptionId,
|
|
193
192
|
Parameters.resourceGroupName,
|
|
194
|
-
Parameters.serverName
|
|
193
|
+
Parameters.serverName,
|
|
195
194
|
],
|
|
196
195
|
headerParameters: [Parameters.accept],
|
|
197
|
-
serializer
|
|
196
|
+
serializer,
|
|
198
197
|
};
|
|
199
198
|
const getOperationSpec: coreClient.OperationSpec = {
|
|
200
|
-
path:
|
|
201
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/privateLinkResources/{groupName}",
|
|
199
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/privateLinkResources/{groupName}",
|
|
202
200
|
httpMethod: "GET",
|
|
203
201
|
responses: {
|
|
204
202
|
200: {
|
|
205
|
-
bodyMapper: Mappers.PrivateLinkResource
|
|
203
|
+
bodyMapper: Mappers.PrivateLinkResource,
|
|
206
204
|
},
|
|
207
205
|
default: {
|
|
208
|
-
bodyMapper: Mappers.ErrorResponse
|
|
209
|
-
}
|
|
206
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
207
|
+
},
|
|
210
208
|
},
|
|
211
209
|
queryParameters: [Parameters.apiVersion],
|
|
212
210
|
urlParameters: [
|
|
@@ -214,29 +212,29 @@ const getOperationSpec: coreClient.OperationSpec = {
|
|
|
214
212
|
Parameters.subscriptionId,
|
|
215
213
|
Parameters.resourceGroupName,
|
|
216
214
|
Parameters.serverName,
|
|
217
|
-
Parameters.groupName
|
|
215
|
+
Parameters.groupName,
|
|
218
216
|
],
|
|
219
217
|
headerParameters: [Parameters.accept],
|
|
220
|
-
serializer
|
|
218
|
+
serializer,
|
|
221
219
|
};
|
|
222
220
|
const listByServerNextOperationSpec: coreClient.OperationSpec = {
|
|
223
221
|
path: "{nextLink}",
|
|
224
222
|
httpMethod: "GET",
|
|
225
223
|
responses: {
|
|
226
224
|
200: {
|
|
227
|
-
bodyMapper: Mappers.PrivateLinkResourceListResult
|
|
225
|
+
bodyMapper: Mappers.PrivateLinkResourceListResult,
|
|
228
226
|
},
|
|
229
227
|
default: {
|
|
230
|
-
bodyMapper: Mappers.ErrorResponse
|
|
231
|
-
}
|
|
228
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
229
|
+
},
|
|
232
230
|
},
|
|
233
231
|
urlParameters: [
|
|
234
232
|
Parameters.$host,
|
|
235
233
|
Parameters.subscriptionId,
|
|
236
234
|
Parameters.resourceGroupName,
|
|
237
235
|
Parameters.serverName,
|
|
238
|
-
Parameters.nextLink
|
|
236
|
+
Parameters.nextLink,
|
|
239
237
|
],
|
|
240
238
|
headerParameters: [Parameters.accept],
|
|
241
|
-
serializer
|
|
239
|
+
serializer,
|
|
242
240
|
};
|