@databricks/sdk-uc-functions 0.34.0 → 0.36.0
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/dist/package.js +7 -0
- package/dist/package.js.map +1 -0
- package/dist/v1/client.d.ts +63 -59
- package/dist/v1/client.d.ts.map +1 -1
- package/dist/v1/client.js +195 -244
- package/dist/v1/client.js.map +1 -1
- package/dist/v1/index.d.ts +3 -7
- package/dist/v1/index.js +4 -7
- package/dist/v1/model.d.ts +361 -358
- package/dist/v1/model.d.ts.map +1 -1
- package/dist/v1/model.js +344 -471
- package/dist/v1/model.js.map +1 -1
- package/dist/v1/transport.d.ts +21 -17
- package/dist/v1/transport.d.ts.map +1 -1
- package/dist/v1/transport.js +60 -69
- package/dist/v1/transport.js.map +1 -1
- package/dist/v1/utils.d.ts +18 -14
- package/dist/v1/utils.d.ts.map +1 -1
- package/dist/v1/utils.js +76 -103
- package/dist/v1/utils.js.map +1 -1
- package/package.json +5 -5
- package/dist/v1/index.d.ts.map +0 -1
- package/dist/v1/index.js.map +0 -1
package/dist/v1/model.d.ts
CHANGED
|
@@ -1,391 +1,394 @@
|
|
|
1
|
-
import { z } from
|
|
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
|
-
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/v1/model.d.ts
|
|
4
|
+
declare const ColumnTypeName: {
|
|
5
|
+
readonly BOOLEAN: "BOOLEAN";
|
|
6
|
+
readonly BYTE: "BYTE";
|
|
7
|
+
readonly SHORT: "SHORT";
|
|
8
|
+
readonly INT: "INT";
|
|
9
|
+
readonly LONG: "LONG";
|
|
10
|
+
readonly FLOAT: "FLOAT";
|
|
11
|
+
readonly DOUBLE: "DOUBLE";
|
|
12
|
+
readonly DATE: "DATE";
|
|
13
|
+
readonly TIMESTAMP: "TIMESTAMP";
|
|
14
|
+
readonly STRING: "STRING";
|
|
15
|
+
readonly BINARY: "BINARY";
|
|
16
|
+
readonly DECIMAL: "DECIMAL";
|
|
17
|
+
readonly INTERVAL: "INTERVAL";
|
|
18
|
+
readonly ARRAY: "ARRAY";
|
|
19
|
+
readonly STRUCT: "STRUCT";
|
|
20
|
+
readonly MAP: "MAP";
|
|
21
|
+
readonly CHAR: "CHAR";
|
|
22
|
+
readonly NULL: "NULL";
|
|
23
|
+
readonly USER_DEFINED_TYPE: "USER_DEFINED_TYPE";
|
|
24
|
+
readonly TIMESTAMP_NTZ: "TIMESTAMP_NTZ";
|
|
25
|
+
readonly VARIANT: "VARIANT";
|
|
26
|
+
readonly GEOMETRY: "GEOMETRY";
|
|
27
|
+
readonly GEOGRAPHY: "GEOGRAPHY";
|
|
28
|
+
readonly TABLE_TYPE: "TABLE_TYPE";
|
|
27
29
|
};
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
30
|
+
type ColumnTypeName = (typeof ColumnTypeName)[keyof typeof ColumnTypeName] | (string & {});
|
|
31
|
+
declare const FunctionParameterMode: {
|
|
32
|
+
readonly IN: "IN";
|
|
31
33
|
};
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
type FunctionParameterMode = (typeof FunctionParameterMode)[keyof typeof FunctionParameterMode] | (string & {});
|
|
35
|
+
declare const FunctionParameterType: {
|
|
36
|
+
readonly PARAM: "PARAM";
|
|
37
|
+
readonly COLUMN: "COLUMN";
|
|
36
38
|
};
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
39
|
+
type FunctionParameterType = (typeof FunctionParameterType)[keyof typeof FunctionParameterType] | (string & {});
|
|
40
|
+
declare const FunctionInfo_ParameterStyle: {
|
|
41
|
+
readonly S: "S";
|
|
40
42
|
};
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
43
|
+
type FunctionInfo_ParameterStyle = (typeof FunctionInfo_ParameterStyle)[keyof typeof FunctionInfo_ParameterStyle] | (string & {});
|
|
44
|
+
declare const FunctionInfo_RoutineBody: {
|
|
45
|
+
readonly SQL: "SQL";
|
|
46
|
+
/**
|
|
47
|
+
* When `EXTERNAL` is used,
|
|
48
|
+
* * The language of the routine function should be specified in the `external_language` field.
|
|
49
|
+
* * The returnParams of the function cannot be used as TABLE return type is not supported.
|
|
50
|
+
* * The getSqlDataAccess must be NO_SQL.
|
|
51
|
+
*/
|
|
52
|
+
readonly EXTERNAL: "EXTERNAL";
|
|
51
53
|
};
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
54
|
+
type FunctionInfo_RoutineBody = (typeof FunctionInfo_RoutineBody)[keyof typeof FunctionInfo_RoutineBody] | (string & {});
|
|
55
|
+
declare const FunctionInfo_SecurityType: {
|
|
56
|
+
readonly DEFINER: "DEFINER";
|
|
55
57
|
};
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
58
|
+
type FunctionInfo_SecurityType = (typeof FunctionInfo_SecurityType)[keyof typeof FunctionInfo_SecurityType] | (string & {});
|
|
59
|
+
declare const FunctionInfo_SqlDataAccess: {
|
|
60
|
+
readonly CONTAINS_SQL: "CONTAINS_SQL";
|
|
61
|
+
readonly READS_SQL_DATA: "READS_SQL_DATA";
|
|
62
|
+
readonly NO_SQL: "NO_SQL";
|
|
61
63
|
};
|
|
62
|
-
|
|
64
|
+
type FunctionInfo_SqlDataAccess = (typeof FunctionInfo_SqlDataAccess)[keyof typeof FunctionInfo_SqlDataAccess] | (string & {});
|
|
63
65
|
/** A connection that is dependent on a SQL object. */
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
66
|
+
interface ConnectionDependency {
|
|
67
|
+
/** Full name of the dependent connection, in the form of __connection_name__. */
|
|
68
|
+
connectionName?: string | undefined;
|
|
67
69
|
}
|
|
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
|
-
|
|
70
|
+
interface CreateFunction {
|
|
71
|
+
/** Name of function, relative to parent schema. */
|
|
72
|
+
name?: string | undefined;
|
|
73
|
+
/** Name of parent Catalog. */
|
|
74
|
+
catalogName?: string | undefined;
|
|
75
|
+
/** Name of parent Schema relative to its parent Catalog. */
|
|
76
|
+
schemaName?: string | undefined;
|
|
77
|
+
/** Function input parameters. */
|
|
78
|
+
inputParams?: FunctionParameterInfos | undefined;
|
|
79
|
+
/** Scalar function return data type. */
|
|
80
|
+
dataType?: ColumnTypeName | undefined;
|
|
81
|
+
/** Pretty printed function data type. */
|
|
82
|
+
fullDataType?: string | undefined;
|
|
83
|
+
/** Function language. When **EXTERNAL** is used, the language of the routine function should be specified in the **external_language** field, and the **return_params** of the function cannot be used (as **TABLE** return type is not supported), and the **sql_data_access** field must be **NO_SQL**. */
|
|
84
|
+
routineBody?: FunctionInfo_RoutineBody | undefined;
|
|
85
|
+
/** Function body. */
|
|
86
|
+
routineDefinition?: string | undefined;
|
|
87
|
+
/** Function parameter style. **S** is the value for SQL. */
|
|
88
|
+
parameterStyle?: FunctionInfo_ParameterStyle | undefined;
|
|
89
|
+
/** Whether the function is deterministic. */
|
|
90
|
+
isDeterministic?: boolean | undefined;
|
|
91
|
+
/** Function SQL data access. */
|
|
92
|
+
sqlDataAccess?: FunctionInfo_SqlDataAccess | undefined;
|
|
93
|
+
/** Function null call. */
|
|
94
|
+
isNullCall?: boolean | undefined;
|
|
95
|
+
/** Function security type. */
|
|
96
|
+
securityType?: FunctionInfo_SecurityType | undefined;
|
|
97
|
+
/** Specific name of the function; Reserved for future use. */
|
|
98
|
+
specificName?: string | undefined;
|
|
99
|
+
/** Table function return parameters. */
|
|
100
|
+
returnParams?: FunctionParameterInfos | undefined;
|
|
101
|
+
/** External function name. */
|
|
102
|
+
externalName?: string | undefined;
|
|
103
|
+
/** External function language. */
|
|
104
|
+
externalLanguage?: string | undefined;
|
|
105
|
+
/** List of schemes whose objects can be referenced without qualification. */
|
|
106
|
+
sqlPath?: string | undefined;
|
|
107
|
+
/** Username of current owner of the function. */
|
|
108
|
+
owner?: string | undefined;
|
|
109
|
+
/** User-provided free-form text description. */
|
|
110
|
+
comment?: string | undefined;
|
|
111
|
+
/** JSON-serialized key-value pair map, encoded (escaped) as a string. */
|
|
112
|
+
properties?: string | undefined;
|
|
113
|
+
/** function dependencies. */
|
|
114
|
+
routineDependencies?: DependencyList | undefined;
|
|
115
|
+
/** Unique identifier of parent metastore. */
|
|
116
|
+
metastoreId?: string | undefined;
|
|
117
|
+
/** Full name of Function, in form of **catalog_name**.**schema_name**.**function_name** */
|
|
118
|
+
fullName?: string | undefined;
|
|
119
|
+
/** Time at which this function was created, in epoch milliseconds. */
|
|
120
|
+
createdAt?: bigint | undefined;
|
|
121
|
+
/** Username of function creator. */
|
|
122
|
+
createdBy?: string | undefined;
|
|
123
|
+
/** Time at which this function was last modified, in epoch milliseconds. */
|
|
124
|
+
updatedAt?: bigint | undefined;
|
|
125
|
+
/** Username of user who last modified the function. */
|
|
126
|
+
updatedBy?: string | undefined;
|
|
127
|
+
/** Id of Function, relative to parent schema. */
|
|
128
|
+
functionId?: string | undefined;
|
|
129
|
+
/** Indicates whether the principal is limited to retrieving metadata for the associated object through the BROWSE privilege when include_browse is enabled in the request. */
|
|
130
|
+
browseOnly?: boolean | undefined;
|
|
129
131
|
}
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
132
|
+
interface CreateFunctionRequest {
|
|
133
|
+
/** Partial __FunctionInfo__ specifying the function to be created. */
|
|
134
|
+
functionInfo?: CreateFunction | undefined;
|
|
133
135
|
}
|
|
134
136
|
/** A credential that is dependent on a SQL object. */
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
137
|
+
interface CredentialDependency {
|
|
138
|
+
/** Full name of the dependent credential, in the form of __credential_name__. */
|
|
139
|
+
credentialName?: string | undefined;
|
|
138
140
|
}
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
}
|
|
145
|
-
export interface DeleteFunctionResponse {
|
|
141
|
+
interface DeleteFunctionRequest {
|
|
142
|
+
/** The fully-qualified name of the function (of the form __catalog_name__.__schema_name__.__function__name__) . */
|
|
143
|
+
fullNameArg?: string | undefined;
|
|
144
|
+
/** Force deletion even if the function is notempty. */
|
|
145
|
+
force?: boolean | undefined;
|
|
146
146
|
}
|
|
147
|
+
interface DeleteFunctionResponse {}
|
|
147
148
|
/**
|
|
148
149
|
* A dependency of a SQL object. One of the following fields must be defined:
|
|
149
150
|
* __table__, __function__, __connection__, __credential__, __volume__, or __secret__.
|
|
150
151
|
*/
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
152
|
+
interface Dependency {
|
|
153
|
+
value?: {
|
|
154
|
+
$case: 'table';
|
|
155
|
+
table: TableDependency;
|
|
156
|
+
} | {
|
|
157
|
+
$case: 'function';
|
|
158
|
+
function: FunctionDependency;
|
|
159
|
+
} | {
|
|
160
|
+
$case: 'connection';
|
|
161
|
+
connection: ConnectionDependency;
|
|
162
|
+
} | {
|
|
163
|
+
$case: 'credential';
|
|
164
|
+
credential: CredentialDependency;
|
|
165
|
+
} | undefined;
|
|
165
166
|
}
|
|
166
167
|
/** A list of dependencies. */
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
168
|
+
interface DependencyList {
|
|
169
|
+
/** Array of dependencies. */
|
|
170
|
+
dependencies?: Dependency[] | undefined;
|
|
170
171
|
}
|
|
171
172
|
/** A function that is dependent on a SQL object. */
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
173
|
+
interface FunctionDependency {
|
|
174
|
+
/** Full name of the dependent function, in the form of __catalog_name__.__schema_name__.__function_name__. */
|
|
175
|
+
functionFullName?: string | undefined;
|
|
175
176
|
}
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
177
|
+
interface FunctionInfo {
|
|
178
|
+
/** Name of function, relative to parent schema. */
|
|
179
|
+
name?: string | undefined;
|
|
180
|
+
/** Name of parent Catalog. */
|
|
181
|
+
catalogName?: string | undefined;
|
|
182
|
+
/** Name of parent Schema relative to its parent Catalog. */
|
|
183
|
+
schemaName?: string | undefined;
|
|
184
|
+
/** Function input parameters. */
|
|
185
|
+
inputParams?: FunctionParameterInfos | undefined;
|
|
186
|
+
/** Scalar function return data type. */
|
|
187
|
+
dataType?: ColumnTypeName | undefined;
|
|
188
|
+
/** Pretty printed function data type. */
|
|
189
|
+
fullDataType?: string | undefined;
|
|
190
|
+
/** Function language. When **EXTERNAL** is used, the language of the routine function should be specified in the **external_language** field, and the **return_params** of the function cannot be used (as **TABLE** return type is not supported), and the **sql_data_access** field must be **NO_SQL**. */
|
|
191
|
+
routineBody?: FunctionInfo_RoutineBody | undefined;
|
|
192
|
+
/** Function body. */
|
|
193
|
+
routineDefinition?: string | undefined;
|
|
194
|
+
/** Function parameter style. **S** is the value for SQL. */
|
|
195
|
+
parameterStyle?: FunctionInfo_ParameterStyle | undefined;
|
|
196
|
+
/** Whether the function is deterministic. */
|
|
197
|
+
isDeterministic?: boolean | undefined;
|
|
198
|
+
/** Function SQL data access. */
|
|
199
|
+
sqlDataAccess?: FunctionInfo_SqlDataAccess | undefined;
|
|
200
|
+
/** Function null call. */
|
|
201
|
+
isNullCall?: boolean | undefined;
|
|
202
|
+
/** Function security type. */
|
|
203
|
+
securityType?: FunctionInfo_SecurityType | undefined;
|
|
204
|
+
/** Specific name of the function; Reserved for future use. */
|
|
205
|
+
specificName?: string | undefined;
|
|
206
|
+
/** Table function return parameters. */
|
|
207
|
+
returnParams?: FunctionParameterInfos | undefined;
|
|
208
|
+
/** External function name. */
|
|
209
|
+
externalName?: string | undefined;
|
|
210
|
+
/** External function language. */
|
|
211
|
+
externalLanguage?: string | undefined;
|
|
212
|
+
/** List of schemes whose objects can be referenced without qualification. */
|
|
213
|
+
sqlPath?: string | undefined;
|
|
214
|
+
/** Username of current owner of the function. */
|
|
215
|
+
owner?: string | undefined;
|
|
216
|
+
/** User-provided free-form text description. */
|
|
217
|
+
comment?: string | undefined;
|
|
218
|
+
/** JSON-serialized key-value pair map, encoded (escaped) as a string. */
|
|
219
|
+
properties?: string | undefined;
|
|
220
|
+
/** function dependencies. */
|
|
221
|
+
routineDependencies?: DependencyList | undefined;
|
|
222
|
+
/** Unique identifier of parent metastore. */
|
|
223
|
+
metastoreId?: string | undefined;
|
|
224
|
+
/** Full name of Function, in form of **catalog_name**.**schema_name**.**function_name** */
|
|
225
|
+
fullName?: string | undefined;
|
|
226
|
+
/** Time at which this function was created, in epoch milliseconds. */
|
|
227
|
+
createdAt?: bigint | undefined;
|
|
228
|
+
/** Username of function creator. */
|
|
229
|
+
createdBy?: string | undefined;
|
|
230
|
+
/** Time at which this function was last modified, in epoch milliseconds. */
|
|
231
|
+
updatedAt?: bigint | undefined;
|
|
232
|
+
/** Username of user who last modified the function. */
|
|
233
|
+
updatedBy?: string | undefined;
|
|
234
|
+
/** Id of Function, relative to parent schema. */
|
|
235
|
+
functionId?: string | undefined;
|
|
236
|
+
/** Indicates whether the principal is limited to retrieving metadata for the associated object through the BROWSE privilege when include_browse is enabled in the request. */
|
|
237
|
+
browseOnly?: boolean | undefined;
|
|
237
238
|
}
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
239
|
+
interface FunctionParameterInfo {
|
|
240
|
+
/** Name of Parameter. */
|
|
241
|
+
name?: string | undefined;
|
|
242
|
+
/** Full data type spec, SQL/catalogString text. */
|
|
243
|
+
typeText?: string | undefined;
|
|
244
|
+
/** Full data type spec, JSON-serialized. */
|
|
245
|
+
typeJson?: string | undefined;
|
|
246
|
+
/** Name of type (INT, STRUCT, MAP, etc.) */
|
|
247
|
+
typeName?: ColumnTypeName | undefined;
|
|
248
|
+
/** Digits of precision; required on Create for DecimalTypes. */
|
|
249
|
+
typePrecision?: number | undefined;
|
|
250
|
+
/** Digits to right of decimal; Required on Create for DecimalTypes. */
|
|
251
|
+
typeScale?: number | undefined;
|
|
252
|
+
/** Format of IntervalType. */
|
|
253
|
+
typeIntervalType?: string | undefined;
|
|
254
|
+
/** Ordinal position of column (starting at position 0). */
|
|
255
|
+
position?: number | undefined;
|
|
256
|
+
/** Function parameter mode. */
|
|
257
|
+
parameterMode?: FunctionParameterMode | undefined;
|
|
258
|
+
/** Function parameter type. */
|
|
259
|
+
parameterType?: FunctionParameterType | undefined;
|
|
260
|
+
/** Default value of the parameter. */
|
|
261
|
+
parameterDefault?: string | undefined;
|
|
262
|
+
/** User-provided free-form text description. */
|
|
263
|
+
comment?: string | undefined;
|
|
263
264
|
}
|
|
264
|
-
|
|
265
|
-
|
|
265
|
+
interface FunctionParameterInfos {
|
|
266
|
+
parameters?: FunctionParameterInfo[] | undefined;
|
|
266
267
|
}
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
268
|
+
interface GetFunctionRequest {
|
|
269
|
+
/** The fully-qualified name of the function (of the form __catalog_name__.__schema_name__.__function__name__). */
|
|
270
|
+
fullNameArg?: string | undefined;
|
|
271
|
+
/** Whether to include functions in the response for which the principal can only access selective metadata for */
|
|
272
|
+
includeBrowse?: boolean | undefined;
|
|
272
273
|
}
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
274
|
+
interface ListFunctionsRequest {
|
|
275
|
+
/** Name of parent catalog for functions of interest. */
|
|
276
|
+
catalogName?: string | undefined;
|
|
277
|
+
/** Parent schema of functions. */
|
|
278
|
+
schemaName?: string | undefined;
|
|
279
|
+
/** Whether to include functions in the response for which the principal can only access selective metadata for */
|
|
280
|
+
includeBrowse?: boolean | undefined;
|
|
281
|
+
/**
|
|
282
|
+
* Maximum number of functions to return.
|
|
283
|
+
* If not set, all the functions are returned (not recommended).
|
|
284
|
+
* - when set to a value greater than 0, the page length is the minimum of this value and a server configured value;
|
|
285
|
+
* - when set to 0, the page length is set to a server configured value (recommended);
|
|
286
|
+
* - when set to a value less than 0, an invalid parameter error is returned;
|
|
287
|
+
*/
|
|
288
|
+
maxResults?: number | undefined;
|
|
289
|
+
/** Opaque pagination token to go to next page based on previous query. */
|
|
290
|
+
pageToken?: string | undefined;
|
|
290
291
|
}
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
292
|
+
interface ListFunctionsResponse {
|
|
293
|
+
/** An array of function information objects. */
|
|
294
|
+
functions?: FunctionInfo[] | undefined;
|
|
295
|
+
/**
|
|
296
|
+
* Opaque token to retrieve the next page of results. Absent if there are no more pages.
|
|
297
|
+
* __page_token__ should be set to this value for the next request (for the next page of results).
|
|
298
|
+
*/
|
|
299
|
+
nextPageToken?: string | undefined;
|
|
299
300
|
}
|
|
300
301
|
/** A table that is dependent on a SQL object. */
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
302
|
+
interface TableDependency {
|
|
303
|
+
/** Full name of the dependent table, in the form of __catalog_name__.__schema_name__.__table_name__. */
|
|
304
|
+
tableFullName?: string | undefined;
|
|
304
305
|
}
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
306
|
+
interface UpdateFunctionRequest {
|
|
307
|
+
/** The fully-qualified name of the function (of the form __catalog_name__.__schema_name__.__function__name__). */
|
|
308
|
+
fullNameArg?: string | undefined;
|
|
309
|
+
/** Name of function, relative to parent schema. */
|
|
310
|
+
name?: string | undefined;
|
|
311
|
+
/** Name of parent Catalog. */
|
|
312
|
+
catalogName?: string | undefined;
|
|
313
|
+
/** Name of parent Schema relative to its parent Catalog. */
|
|
314
|
+
schemaName?: string | undefined;
|
|
315
|
+
/** Function input parameters. */
|
|
316
|
+
inputParams?: FunctionParameterInfos | undefined;
|
|
317
|
+
/** Scalar function return data type. */
|
|
318
|
+
dataType?: ColumnTypeName | undefined;
|
|
319
|
+
/** Pretty printed function data type. */
|
|
320
|
+
fullDataType?: string | undefined;
|
|
321
|
+
/** Function language. When **EXTERNAL** is used, the language of the routine function should be specified in the **external_language** field, and the **return_params** of the function cannot be used (as **TABLE** return type is not supported), and the **sql_data_access** field must be **NO_SQL**. */
|
|
322
|
+
routineBody?: FunctionInfo_RoutineBody | undefined;
|
|
323
|
+
/** Function body. */
|
|
324
|
+
routineDefinition?: string | undefined;
|
|
325
|
+
/** Function parameter style. **S** is the value for SQL. */
|
|
326
|
+
parameterStyle?: FunctionInfo_ParameterStyle | undefined;
|
|
327
|
+
/** Whether the function is deterministic. */
|
|
328
|
+
isDeterministic?: boolean | undefined;
|
|
329
|
+
/** Function SQL data access. */
|
|
330
|
+
sqlDataAccess?: FunctionInfo_SqlDataAccess | undefined;
|
|
331
|
+
/** Function null call. */
|
|
332
|
+
isNullCall?: boolean | undefined;
|
|
333
|
+
/** Function security type. */
|
|
334
|
+
securityType?: FunctionInfo_SecurityType | undefined;
|
|
335
|
+
/** Specific name of the function; Reserved for future use. */
|
|
336
|
+
specificName?: string | undefined;
|
|
337
|
+
/** Table function return parameters. */
|
|
338
|
+
returnParams?: FunctionParameterInfos | undefined;
|
|
339
|
+
/** External function name. */
|
|
340
|
+
externalName?: string | undefined;
|
|
341
|
+
/** External function language. */
|
|
342
|
+
externalLanguage?: string | undefined;
|
|
343
|
+
/** List of schemes whose objects can be referenced without qualification. */
|
|
344
|
+
sqlPath?: string | undefined;
|
|
345
|
+
/** Username of current owner of the function. */
|
|
346
|
+
owner?: string | undefined;
|
|
347
|
+
/** User-provided free-form text description. */
|
|
348
|
+
comment?: string | undefined;
|
|
349
|
+
/** JSON-serialized key-value pair map, encoded (escaped) as a string. */
|
|
350
|
+
properties?: string | undefined;
|
|
351
|
+
/** function dependencies. */
|
|
352
|
+
routineDependencies?: DependencyList | undefined;
|
|
353
|
+
/** Unique identifier of parent metastore. */
|
|
354
|
+
metastoreId?: string | undefined;
|
|
355
|
+
/** Full name of Function, in form of **catalog_name**.**schema_name**.**function_name** */
|
|
356
|
+
fullName?: string | undefined;
|
|
357
|
+
/** Time at which this function was created, in epoch milliseconds. */
|
|
358
|
+
createdAt?: bigint | undefined;
|
|
359
|
+
/** Username of function creator. */
|
|
360
|
+
createdBy?: string | undefined;
|
|
361
|
+
/** Time at which this function was last modified, in epoch milliseconds. */
|
|
362
|
+
updatedAt?: bigint | undefined;
|
|
363
|
+
/** Username of user who last modified the function. */
|
|
364
|
+
updatedBy?: string | undefined;
|
|
365
|
+
/** Id of Function, relative to parent schema. */
|
|
366
|
+
functionId?: string | undefined;
|
|
367
|
+
/** Indicates whether the principal is limited to retrieving metadata for the associated object through the BROWSE privilege when include_browse is enabled in the request. */
|
|
368
|
+
browseOnly?: boolean | undefined;
|
|
368
369
|
}
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
370
|
+
declare const unmarshalConnectionDependencySchema: z.ZodType<ConnectionDependency>;
|
|
371
|
+
declare const unmarshalCredentialDependencySchema: z.ZodType<CredentialDependency>;
|
|
372
|
+
declare const unmarshalDeleteFunctionResponseSchema: z.ZodType<DeleteFunctionResponse>;
|
|
373
|
+
declare const unmarshalDependencySchema: z.ZodType<Dependency>;
|
|
374
|
+
declare const unmarshalDependencyListSchema: z.ZodType<DependencyList>;
|
|
375
|
+
declare const unmarshalFunctionDependencySchema: z.ZodType<FunctionDependency>;
|
|
376
|
+
declare const unmarshalFunctionInfoSchema: z.ZodType<FunctionInfo>;
|
|
377
|
+
declare const unmarshalFunctionParameterInfoSchema: z.ZodType<FunctionParameterInfo>;
|
|
378
|
+
declare const unmarshalFunctionParameterInfosSchema: z.ZodType<FunctionParameterInfos>;
|
|
379
|
+
declare const unmarshalListFunctionsResponseSchema: z.ZodType<ListFunctionsResponse>;
|
|
380
|
+
declare const unmarshalTableDependencySchema: z.ZodType<TableDependency>;
|
|
381
|
+
declare const marshalConnectionDependencySchema: z.ZodType;
|
|
382
|
+
declare const marshalCreateFunctionSchema: z.ZodType;
|
|
383
|
+
declare const marshalCreateFunctionRequestSchema: z.ZodType;
|
|
384
|
+
declare const marshalCredentialDependencySchema: z.ZodType;
|
|
385
|
+
declare const marshalDependencySchema: z.ZodType;
|
|
386
|
+
declare const marshalDependencyListSchema: z.ZodType;
|
|
387
|
+
declare const marshalFunctionDependencySchema: z.ZodType;
|
|
388
|
+
declare const marshalFunctionParameterInfoSchema: z.ZodType;
|
|
389
|
+
declare const marshalFunctionParameterInfosSchema: z.ZodType;
|
|
390
|
+
declare const marshalTableDependencySchema: z.ZodType;
|
|
391
|
+
declare const marshalUpdateFunctionRequestSchema: z.ZodType;
|
|
392
|
+
//#endregion
|
|
393
|
+
export { ColumnTypeName, ConnectionDependency, CreateFunction, CreateFunctionRequest, CredentialDependency, DeleteFunctionRequest, DeleteFunctionResponse, Dependency, DependencyList, FunctionDependency, FunctionInfo, FunctionInfo_ParameterStyle, FunctionInfo_RoutineBody, FunctionInfo_SecurityType, FunctionInfo_SqlDataAccess, FunctionParameterInfo, FunctionParameterInfos, FunctionParameterMode, FunctionParameterType, GetFunctionRequest, ListFunctionsRequest, ListFunctionsResponse, TableDependency, UpdateFunctionRequest, marshalConnectionDependencySchema, marshalCreateFunctionRequestSchema, marshalCreateFunctionSchema, marshalCredentialDependencySchema, marshalDependencyListSchema, marshalDependencySchema, marshalFunctionDependencySchema, marshalFunctionParameterInfoSchema, marshalFunctionParameterInfosSchema, marshalTableDependencySchema, marshalUpdateFunctionRequestSchema, unmarshalConnectionDependencySchema, unmarshalCredentialDependencySchema, unmarshalDeleteFunctionResponseSchema, unmarshalDependencyListSchema, unmarshalDependencySchema, unmarshalFunctionDependencySchema, unmarshalFunctionInfoSchema, unmarshalFunctionParameterInfoSchema, unmarshalFunctionParameterInfosSchema, unmarshalListFunctionsResponseSchema, unmarshalTableDependencySchema };
|
|
391
394
|
//# sourceMappingURL=model.d.ts.map
|