/
linkConnectionOperations.ts
165 lines (163 loc) · 5.75 KB
/
linkConnectionOperations.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import {
LinkConnectionResource,
LinkConnectionListByWorkspaceOptionalParams,
LinkConnectionCreateOrUpdateOptionalParams,
LinkConnectionCreateOrUpdateResponse,
LinkConnectionGetOptionalParams,
LinkConnectionGetResponse,
LinkConnectionDeleteOptionalParams,
EditTablesRequest,
LinkConnectionEditTablesOptionalParams,
LinkConnectionStartOptionalParams,
LinkConnectionStopOptionalParams,
LinkConnectionGetDetailedStatusOptionalParams,
LinkConnectionGetDetailedStatusResponse,
LinkConnectionListLinkTablesOptionalParams,
LinkConnectionListLinkTablesResponse,
QueryTableStatusRequest,
LinkConnectionQueryTableStatusOptionalParams,
LinkConnectionQueryTableStatusResponse,
UpdateLandingZoneCredential,
LinkConnectionUpdateLandingZoneCredentialOptionalParams,
LinkConnectionPauseOptionalParams,
LinkConnectionResumeOptionalParams
} from "../models";
/// <reference lib="esnext.asynciterable" />
/** Interface representing a LinkConnectionOperations. */
export interface LinkConnectionOperations {
/**
* List link connections
* @param options The options parameters.
*/
listByWorkspace(
options?: LinkConnectionListByWorkspaceOptionalParams
): PagedAsyncIterableIterator<LinkConnectionResource>;
/**
* Creates or updates a link connection
* @param linkConnectionName The link connection name
* @param linkConnection Link connection resource definition
* @param options The options parameters.
*/
createOrUpdate(
linkConnectionName: string,
linkConnection: LinkConnectionResource,
options?: LinkConnectionCreateOrUpdateOptionalParams
): Promise<LinkConnectionCreateOrUpdateResponse>;
/**
* Get a link connection
* @param linkConnectionName The link connection name
* @param options The options parameters.
*/
get(
linkConnectionName: string,
options?: LinkConnectionGetOptionalParams
): Promise<LinkConnectionGetResponse>;
/**
* Delete a link connection
* @param linkConnectionName The link connection name
* @param options The options parameters.
*/
delete(
linkConnectionName: string,
options?: LinkConnectionDeleteOptionalParams
): Promise<void>;
/**
* Edit tables for a link connection
* @param linkConnectionName The link connection name
* @param editTablesRequest Edit tables request
* @param options The options parameters.
*/
editTables(
linkConnectionName: string,
editTablesRequest: EditTablesRequest,
options?: LinkConnectionEditTablesOptionalParams
): Promise<void>;
/**
* Start a link connection. It may take a few minutes from Starting to Running, monitor the status with
* LinkConnection_GetDetailedStatus.
* @param linkConnectionName The link connection name
* @param options The options parameters.
*/
start(
linkConnectionName: string,
options?: LinkConnectionStartOptionalParams
): Promise<void>;
/**
* Stop a link connection. It may take a few minutes from Stopping to stopped, monitor the status with
* LinkConnection_GetDetailedStatus.
* @param linkConnectionName The link connection name
* @param options The options parameters.
*/
stop(
linkConnectionName: string,
options?: LinkConnectionStopOptionalParams
): Promise<void>;
/**
* Get the detailed status of a link connection
* @param linkConnectionName The link connection name
* @param options The options parameters.
*/
getDetailedStatus(
linkConnectionName: string,
options?: LinkConnectionGetDetailedStatusOptionalParams
): Promise<LinkConnectionGetDetailedStatusResponse>;
/**
* List the link tables of a link connection
* @param linkConnectionName The link connection name
* @param options The options parameters.
*/
listLinkTables(
linkConnectionName: string,
options?: LinkConnectionListLinkTablesOptionalParams
): Promise<LinkConnectionListLinkTablesResponse>;
/**
* Query the link table status of a link connection
* @param linkConnectionName The link connection name
* @param queryTableStatusRequest Query table status request
* @param options The options parameters.
*/
queryTableStatus(
linkConnectionName: string,
queryTableStatusRequest: QueryTableStatusRequest,
options?: LinkConnectionQueryTableStatusOptionalParams
): Promise<LinkConnectionQueryTableStatusResponse>;
/**
* Update landing zone credential of a link connection
* @param linkConnectionName The link connection name
* @param updateLandingZoneCredentialRequest update landing zone credential request
* @param options The options parameters.
*/
updateLandingZoneCredential(
linkConnectionName: string,
updateLandingZoneCredentialRequest: UpdateLandingZoneCredential,
options?: LinkConnectionUpdateLandingZoneCredentialOptionalParams
): Promise<void>;
/**
* Pause a link connection. It may take a few minutes from Pausing to Paused, monitor the status with
* LinkConnection_GetDetailedStatus.
* @param linkConnectionName The link connection name
* @param options The options parameters.
*/
pause(
linkConnectionName: string,
options?: LinkConnectionPauseOptionalParams
): Promise<void>;
/**
* Resume a link connection. It may take a few minutes from Resuming to Running, monitor the status
* with LinkConnection_GetDetailedStatus.
* @param linkConnectionName The link connection name
* @param options The options parameters.
*/
resume(
linkConnectionName: string,
options?: LinkConnectionResumeOptionalParams
): Promise<void>;
}