@databricks/sdk-core 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/apierror/apierror.d.ts +52 -49
- package/dist/apierror/apierror.d.ts.map +1 -1
- package/dist/apierror/apierror.js +124 -172
- package/dist/apierror/apierror.js.map +1 -1
- package/dist/apierror/codes/codes.d.ts +113 -113
- package/dist/apierror/codes/codes.d.ts.map +1 -1
- package/dist/apierror/codes/codes.js +24 -115
- package/dist/apierror/codes/codes.js.map +1 -1
- package/dist/apierror/codes/index.d.ts +2 -7
- package/dist/apierror/codes/index.js +3 -7
- package/dist/apierror/details.d.ts +104 -101
- package/dist/apierror/details.d.ts.map +1 -1
- package/dist/apierror/details.js +151 -226
- package/dist/apierror/details.js.map +1 -1
- package/dist/apierror/index.d.ts +3 -8
- package/dist/apierror/index.js +3 -7
- package/dist/clientinfo/agent.d.ts +6 -3
- package/dist/clientinfo/agent.d.ts.map +1 -1
- package/dist/clientinfo/agent.js +134 -112
- package/dist/clientinfo/agent.js.map +1 -1
- package/dist/clientinfo/base.d.ts +13 -15
- package/dist/clientinfo/base.d.ts.map +1 -1
- package/dist/clientinfo/base.js +50 -50
- package/dist/clientinfo/base.js.map +1 -1
- package/dist/clientinfo/clientinfo.d.ts +40 -38
- package/dist/clientinfo/clientinfo.d.ts.map +1 -1
- package/dist/clientinfo/clientinfo.js +78 -88
- package/dist/clientinfo/clientinfo.js.map +1 -1
- package/dist/clientinfo/default.browser.d.ts +6 -10
- package/dist/clientinfo/default.browser.d.ts.map +1 -1
- package/dist/clientinfo/default.browser.js +24 -16
- package/dist/clientinfo/default.browser.js.map +1 -1
- package/dist/clientinfo/default.d.ts +8 -4
- package/dist/clientinfo/default.d.ts.map +1 -1
- package/dist/clientinfo/default.js +157 -102
- package/dist/clientinfo/default.js.map +1 -1
- package/dist/clientinfo/index.browser.d.ts +4 -5
- package/dist/clientinfo/index.browser.js +5 -4
- package/dist/clientinfo/index.d.ts +4 -5
- package/dist/clientinfo/index.js +5 -4
- package/dist/clientinfo/meta-harness.d.ts +6 -3
- package/dist/clientinfo/meta-harness.d.ts.map +1 -1
- package/dist/clientinfo/meta-harness.js +30 -46
- package/dist/clientinfo/meta-harness.js.map +1 -1
- package/dist/http/http.d.ts +25 -22
- package/dist/http/http.d.ts.map +1 -1
- package/dist/http/http.js +24 -34
- package/dist/http/http.js.map +1 -1
- package/dist/http/index.d.ts +2 -8
- package/dist/http/index.js +3 -7
- package/dist/index.d.ts +1 -6
- package/dist/index.js +7 -5
- package/dist/index.js.map +1 -1
- package/dist/logger/index.d.ts +2 -8
- package/dist/logger/index.js +3 -7
- package/dist/logger/logger.d.ts +26 -23
- package/dist/logger/logger.d.ts.map +1 -1
- package/dist/logger/logger.js +46 -60
- package/dist/logger/logger.js.map +1 -1
- package/dist/ops/execute.d.ts +7 -3
- package/dist/ops/execute.d.ts.map +1 -1
- package/dist/ops/execute.js +55 -67
- package/dist/ops/execute.js.map +1 -1
- package/dist/ops/index.d.ts +5 -12
- package/dist/ops/index.js +4 -9
- package/dist/ops/limiter.d.ts +5 -2
- package/dist/ops/limiter.d.ts.map +1 -1
- package/dist/ops/limiter.js +0 -2
- package/dist/ops/options.d.ts +23 -19
- package/dist/ops/options.d.ts.map +1 -1
- package/dist/ops/options.js +0 -2
- package/dist/ops/retrier.d.ts +34 -31
- package/dist/ops/retrier.d.ts.map +1 -1
- package/dist/ops/retrier.js +55 -66
- package/dist/ops/retrier.js.map +1 -1
- package/dist/package.js +6 -0
- package/dist/package.js.map +1 -0
- package/dist/profiles/errors.d.ts +7 -4
- package/dist/profiles/errors.d.ts.map +1 -1
- package/dist/profiles/errors.js +16 -17
- package/dist/profiles/errors.js.map +1 -1
- package/dist/profiles/index.browser.d.ts +4 -10
- package/dist/profiles/index.browser.js +4 -8
- package/dist/profiles/index.d.ts +5 -15
- package/dist/profiles/index.js +5 -13
- package/dist/profiles/ini.d.ts +6 -3
- package/dist/profiles/ini.d.ts.map +1 -1
- package/dist/profiles/ini.js +60 -108
- package/dist/profiles/ini.js.map +1 -1
- package/dist/profiles/profile.d.ts +66 -67
- package/dist/profiles/profile.d.ts.map +1 -1
- package/dist/profiles/profile.js +89 -84
- package/dist/profiles/profile.js.map +1 -1
- package/dist/profiles/resolve.d.ts +8 -9
- package/dist/profiles/resolve.d.ts.map +1 -1
- package/dist/profiles/resolve.js +140 -185
- package/dist/profiles/resolve.js.map +1 -1
- package/dist/profiles/secret.d.ts +15 -12
- package/dist/profiles/secret.d.ts.map +1 -1
- package/dist/profiles/secret.js +38 -35
- package/dist/profiles/secret.js.map +1 -1
- package/dist/wkt/fieldmask.d.ts +23 -20
- package/dist/wkt/fieldmask.d.ts.map +1 -1
- package/dist/wkt/fieldmask.js +53 -62
- package/dist/wkt/fieldmask.js.map +1 -1
- package/dist/wkt/index.d.ts +3 -4
- package/dist/wkt/index.js +3 -2
- package/dist/wkt/value.d.ts +6 -3
- package/dist/wkt/value.d.ts.map +1 -1
- package/dist/wkt/value.js +0 -2
- package/package.json +2 -2
- package/dist/apierror/codes/index.d.ts.map +0 -1
- package/dist/apierror/codes/index.js.map +0 -1
- package/dist/apierror/index.d.ts.map +0 -1
- package/dist/apierror/index.js.map +0 -1
- package/dist/clientinfo/index.browser.d.ts.map +0 -1
- package/dist/clientinfo/index.browser.js.map +0 -1
- package/dist/clientinfo/index.d.ts.map +0 -1
- package/dist/clientinfo/index.js.map +0 -1
- package/dist/http/index.d.ts.map +0 -1
- package/dist/http/index.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/logger/index.d.ts.map +0 -1
- package/dist/logger/index.js.map +0 -1
- package/dist/ops/index.d.ts.map +0 -1
- package/dist/ops/index.js.map +0 -1
- package/dist/ops/limiter.js.map +0 -1
- package/dist/ops/options.js.map +0 -1
- package/dist/profiles/index.browser.d.ts.map +0 -1
- package/dist/profiles/index.browser.js.map +0 -1
- package/dist/profiles/index.d.ts.map +0 -1
- package/dist/profiles/index.js.map +0 -1
- package/dist/wkt/index.d.ts.map +0 -1
- package/dist/wkt/index.js.map +0 -1
- package/dist/wkt/value.js.map +0 -1
|
@@ -1,118 +1,118 @@
|
|
|
1
|
+
//#region src/apierror/codes/codes.d.ts
|
|
1
2
|
/**
|
|
2
3
|
* Code is the error code carried by an API error.
|
|
3
4
|
*/
|
|
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
|
-
* authentication credentials for the operation.
|
|
114
|
-
*/
|
|
115
|
-
readonly UNAUTHENTICATED: "UNAUTHENTICATED";
|
|
5
|
+
declare const Code: {
|
|
6
|
+
/**
|
|
7
|
+
* Unknown indicates an error that cannot be classified. It is used for
|
|
8
|
+
* malformed error responses and for responses that carry no string error
|
|
9
|
+
* code (missing or an integer).
|
|
10
|
+
*/
|
|
11
|
+
readonly UNKNOWN: "UNKNOWN"; /** OK indicates the operation completed successfully. */
|
|
12
|
+
readonly OK: "OK"; /** Cancelled indicates the operation was cancelled (typically by the caller). */
|
|
13
|
+
readonly CANCELLED: "CANCELLED";
|
|
14
|
+
/**
|
|
15
|
+
* InvalidArgument indicates the client specified an invalid argument.
|
|
16
|
+
*
|
|
17
|
+
* By contrast with FailedPrecondition, InvalidArgument indicates arguments
|
|
18
|
+
* that are problematic regardless of the state of the system. For example,
|
|
19
|
+
* a malformed request parameter.
|
|
20
|
+
*/
|
|
21
|
+
readonly INVALID_ARGUMENT: "INVALID_ARGUMENT";
|
|
22
|
+
/**
|
|
23
|
+
* DeadlineExceeded means the operation expired before completion.
|
|
24
|
+
*
|
|
25
|
+
* For operations that modify the state of the system, this error may be
|
|
26
|
+
* returned even if the operation has completed successfully. For
|
|
27
|
+
* example, a successful response from a server could have been delayed
|
|
28
|
+
* long enough for the deadline to expire.
|
|
29
|
+
*/
|
|
30
|
+
readonly DEADLINE_EXCEEDED: "DEADLINE_EXCEEDED";
|
|
31
|
+
/**
|
|
32
|
+
* NotFound means a requested entity (e.g. a resource or a file) was
|
|
33
|
+
* not found.
|
|
34
|
+
*/
|
|
35
|
+
readonly NOT_FOUND: "NOT_FOUND";
|
|
36
|
+
/**
|
|
37
|
+
* AlreadyExists means an attempt to create an entity failed because one
|
|
38
|
+
* already exists.
|
|
39
|
+
*/
|
|
40
|
+
readonly ALREADY_EXISTS: "ALREADY_EXISTS";
|
|
41
|
+
/**
|
|
42
|
+
* PermissionDenied indicates the caller does not have permission to
|
|
43
|
+
* execute the specified operation.
|
|
44
|
+
*
|
|
45
|
+
* This is different from an error returned when the user has exhausted
|
|
46
|
+
* some resource (e.g. too many requests) which is a ResourceExhausted
|
|
47
|
+
* error.
|
|
48
|
+
*/
|
|
49
|
+
readonly PERMISSION_DENIED: "PERMISSION_DENIED";
|
|
50
|
+
/**
|
|
51
|
+
* ResourceExhausted indicates some resource has been exhausted, perhaps
|
|
52
|
+
* a per-user quota, or perhaps the entire file system is out of space.
|
|
53
|
+
*/
|
|
54
|
+
readonly RESOURCE_EXHAUSTED: "RESOURCE_EXHAUSTED";
|
|
55
|
+
/**
|
|
56
|
+
* FailedPrecondition indicates the operation was rejected because the
|
|
57
|
+
* system is not in a state required for the operation's execution.
|
|
58
|
+
* For example, directory to be deleted may be non-empty, an rmdir
|
|
59
|
+
* operation is applied to a non-directory, etc.
|
|
60
|
+
*/
|
|
61
|
+
readonly FAILED_PRECONDITION: "FAILED_PRECONDITION";
|
|
62
|
+
/**
|
|
63
|
+
* Aborted indicates the operation was aborted, typically due to a
|
|
64
|
+
* concurrency issue like sequencer check failures, transaction aborts,
|
|
65
|
+
* etc.
|
|
66
|
+
*/
|
|
67
|
+
readonly ABORTED: "ABORTED";
|
|
68
|
+
/**
|
|
69
|
+
* OutOfRange means the operation was attempted past the valid range.
|
|
70
|
+
* E.g., seeking or reading past end of file.
|
|
71
|
+
*
|
|
72
|
+
* Unlike InvalidArgument, this error indicates a problem that may
|
|
73
|
+
* be fixed if the system state changes. For example, a 32-bit file
|
|
74
|
+
* system will generate InvalidArgument if asked to read at an
|
|
75
|
+
* offset that is not in the range [0,2^32-1], but it will generate
|
|
76
|
+
* OutOfRange if asked to read from an offset past the current
|
|
77
|
+
* file size.
|
|
78
|
+
*
|
|
79
|
+
* There is a fair bit of overlap between FailedPrecondition and
|
|
80
|
+
* OutOfRange. We recommend using OutOfRange (the more specific
|
|
81
|
+
* error) when it applies so that callers who are iterating through
|
|
82
|
+
* a space can easily look for an OutOfRange error to detect when
|
|
83
|
+
* they are done.
|
|
84
|
+
*/
|
|
85
|
+
readonly OUT_OF_RANGE: "OUT_OF_RANGE";
|
|
86
|
+
/**
|
|
87
|
+
* Unimplemented indicates the operation is not implemented or not
|
|
88
|
+
* supported/enabled in this service.
|
|
89
|
+
*/
|
|
90
|
+
readonly UNIMPLEMENTED: "UNIMPLEMENTED";
|
|
91
|
+
/**
|
|
92
|
+
* Internal indicates an internal error. This means some invariants
|
|
93
|
+
* expected by the underlying system have been broken. If you see
|
|
94
|
+
* this error, something is very broken.
|
|
95
|
+
*/
|
|
96
|
+
readonly INTERNAL: "INTERNAL";
|
|
97
|
+
/**
|
|
98
|
+
* Unavailable indicates the service is currently unavailable.
|
|
99
|
+
*
|
|
100
|
+
* This is most likely a transient condition and may be corrected by
|
|
101
|
+
* retrying. Though, this might not always be safe to retry if the
|
|
102
|
+
* operation is non-idempotent.
|
|
103
|
+
*
|
|
104
|
+
* The Databricks SDK will generally automatically retry the request
|
|
105
|
+
* with a backoff when encountering this error.
|
|
106
|
+
*/
|
|
107
|
+
readonly UNAVAILABLE: "UNAVAILABLE"; /** DataLoss indicates unrecoverable data loss or corruption. */
|
|
108
|
+
readonly DATA_LOSS: "DATA_LOSS";
|
|
109
|
+
/**
|
|
110
|
+
* Unauthenticated indicates the request does not have valid
|
|
111
|
+
* authentication credentials for the operation.
|
|
112
|
+
*/
|
|
113
|
+
readonly UNAUTHENTICATED: "UNAUTHENTICATED";
|
|
116
114
|
};
|
|
117
|
-
|
|
115
|
+
type Code = (typeof Code)[keyof typeof Code] | (string & {});
|
|
116
|
+
//#endregion
|
|
117
|
+
export { Code };
|
|
118
118
|
//# sourceMappingURL=codes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codes.d.ts","
|
|
1
|
+
{"version":3,"file":"codes.d.ts","names":[],"sources":["../../../src/apierror/codes/codes.ts"],"mappings":";;AAIA;;cAAa,IAAA;EAgIH;;;;;EAAA;;;;;;;;;;;;;AAEV;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAAY,IAAA,WAAe,IAAA,eAAmB,IAAA"}
|
|
@@ -1,118 +1,27 @@
|
|
|
1
|
+
//#region src/apierror/codes/codes.ts
|
|
1
2
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
*/
|
|
23
|
-
INVALID_ARGUMENT: 'INVALID_ARGUMENT',
|
|
24
|
-
/**
|
|
25
|
-
* DeadlineExceeded means the operation expired before completion.
|
|
26
|
-
*
|
|
27
|
-
* For operations that modify the state of the system, this error may be
|
|
28
|
-
* returned even if the operation has completed successfully. For
|
|
29
|
-
* example, a successful response from a server could have been delayed
|
|
30
|
-
* long enough for the deadline to expire.
|
|
31
|
-
*/
|
|
32
|
-
DEADLINE_EXCEEDED: 'DEADLINE_EXCEEDED',
|
|
33
|
-
/**
|
|
34
|
-
* NotFound means a requested entity (e.g. a resource or a file) was
|
|
35
|
-
* not found.
|
|
36
|
-
*/
|
|
37
|
-
NOT_FOUND: 'NOT_FOUND',
|
|
38
|
-
/**
|
|
39
|
-
* AlreadyExists means an attempt to create an entity failed because one
|
|
40
|
-
* already exists.
|
|
41
|
-
*/
|
|
42
|
-
ALREADY_EXISTS: 'ALREADY_EXISTS',
|
|
43
|
-
/**
|
|
44
|
-
* PermissionDenied indicates the caller does not have permission to
|
|
45
|
-
* execute the specified operation.
|
|
46
|
-
*
|
|
47
|
-
* This is different from an error returned when the user has exhausted
|
|
48
|
-
* some resource (e.g. too many requests) which is a ResourceExhausted
|
|
49
|
-
* error.
|
|
50
|
-
*/
|
|
51
|
-
PERMISSION_DENIED: 'PERMISSION_DENIED',
|
|
52
|
-
/**
|
|
53
|
-
* ResourceExhausted indicates some resource has been exhausted, perhaps
|
|
54
|
-
* a per-user quota, or perhaps the entire file system is out of space.
|
|
55
|
-
*/
|
|
56
|
-
RESOURCE_EXHAUSTED: 'RESOURCE_EXHAUSTED',
|
|
57
|
-
/**
|
|
58
|
-
* FailedPrecondition indicates the operation was rejected because the
|
|
59
|
-
* system is not in a state required for the operation's execution.
|
|
60
|
-
* For example, directory to be deleted may be non-empty, an rmdir
|
|
61
|
-
* operation is applied to a non-directory, etc.
|
|
62
|
-
*/
|
|
63
|
-
FAILED_PRECONDITION: 'FAILED_PRECONDITION',
|
|
64
|
-
/**
|
|
65
|
-
* Aborted indicates the operation was aborted, typically due to a
|
|
66
|
-
* concurrency issue like sequencer check failures, transaction aborts,
|
|
67
|
-
* etc.
|
|
68
|
-
*/
|
|
69
|
-
ABORTED: 'ABORTED',
|
|
70
|
-
/**
|
|
71
|
-
* OutOfRange means the operation was attempted past the valid range.
|
|
72
|
-
* E.g., seeking or reading past end of file.
|
|
73
|
-
*
|
|
74
|
-
* Unlike InvalidArgument, this error indicates a problem that may
|
|
75
|
-
* be fixed if the system state changes. For example, a 32-bit file
|
|
76
|
-
* system will generate InvalidArgument if asked to read at an
|
|
77
|
-
* offset that is not in the range [0,2^32-1], but it will generate
|
|
78
|
-
* OutOfRange if asked to read from an offset past the current
|
|
79
|
-
* file size.
|
|
80
|
-
*
|
|
81
|
-
* There is a fair bit of overlap between FailedPrecondition and
|
|
82
|
-
* OutOfRange. We recommend using OutOfRange (the more specific
|
|
83
|
-
* error) when it applies so that callers who are iterating through
|
|
84
|
-
* a space can easily look for an OutOfRange error to detect when
|
|
85
|
-
* they are done.
|
|
86
|
-
*/
|
|
87
|
-
OUT_OF_RANGE: 'OUT_OF_RANGE',
|
|
88
|
-
/**
|
|
89
|
-
* Unimplemented indicates the operation is not implemented or not
|
|
90
|
-
* supported/enabled in this service.
|
|
91
|
-
*/
|
|
92
|
-
UNIMPLEMENTED: 'UNIMPLEMENTED',
|
|
93
|
-
/**
|
|
94
|
-
* Internal indicates an internal error. This means some invariants
|
|
95
|
-
* expected by the underlying system have been broken. If you see
|
|
96
|
-
* this error, something is very broken.
|
|
97
|
-
*/
|
|
98
|
-
INTERNAL: 'INTERNAL',
|
|
99
|
-
/**
|
|
100
|
-
* Unavailable indicates the service is currently unavailable.
|
|
101
|
-
*
|
|
102
|
-
* This is most likely a transient condition and may be corrected by
|
|
103
|
-
* retrying. Though, this might not always be safe to retry if the
|
|
104
|
-
* operation is non-idempotent.
|
|
105
|
-
*
|
|
106
|
-
* The Databricks SDK will generally automatically retry the request
|
|
107
|
-
* with a backoff when encountering this error.
|
|
108
|
-
*/
|
|
109
|
-
UNAVAILABLE: 'UNAVAILABLE',
|
|
110
|
-
/** DataLoss indicates unrecoverable data loss or corruption. */
|
|
111
|
-
DATA_LOSS: 'DATA_LOSS',
|
|
112
|
-
/**
|
|
113
|
-
* Unauthenticated indicates the request does not have valid
|
|
114
|
-
* authentication credentials for the operation.
|
|
115
|
-
*/
|
|
116
|
-
UNAUTHENTICATED: 'UNAUTHENTICATED',
|
|
3
|
+
* Code is the error code carried by an API error.
|
|
4
|
+
*/
|
|
5
|
+
const Code = {
|
|
6
|
+
UNKNOWN: "UNKNOWN",
|
|
7
|
+
OK: "OK",
|
|
8
|
+
CANCELLED: "CANCELLED",
|
|
9
|
+
INVALID_ARGUMENT: "INVALID_ARGUMENT",
|
|
10
|
+
DEADLINE_EXCEEDED: "DEADLINE_EXCEEDED",
|
|
11
|
+
NOT_FOUND: "NOT_FOUND",
|
|
12
|
+
ALREADY_EXISTS: "ALREADY_EXISTS",
|
|
13
|
+
PERMISSION_DENIED: "PERMISSION_DENIED",
|
|
14
|
+
RESOURCE_EXHAUSTED: "RESOURCE_EXHAUSTED",
|
|
15
|
+
FAILED_PRECONDITION: "FAILED_PRECONDITION",
|
|
16
|
+
ABORTED: "ABORTED",
|
|
17
|
+
OUT_OF_RANGE: "OUT_OF_RANGE",
|
|
18
|
+
UNIMPLEMENTED: "UNIMPLEMENTED",
|
|
19
|
+
INTERNAL: "INTERNAL",
|
|
20
|
+
UNAVAILABLE: "UNAVAILABLE",
|
|
21
|
+
DATA_LOSS: "DATA_LOSS",
|
|
22
|
+
UNAUTHENTICATED: "UNAUTHENTICATED"
|
|
117
23
|
};
|
|
24
|
+
|
|
25
|
+
//#endregion
|
|
26
|
+
export { Code };
|
|
118
27
|
//# sourceMappingURL=codes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codes.js","
|
|
1
|
+
{"version":3,"file":"codes.js","names":[],"sources":["../../../src/apierror/codes/codes.ts"],"sourcesContent":["/**\n * Code is the error code carried by an API error.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const Code = {\n /**\n * Unknown indicates an error that cannot be classified. It is used for\n * malformed error responses and for responses that carry no string error\n * code (missing or an integer).\n */\n UNKNOWN: 'UNKNOWN',\n\n /** OK indicates the operation completed successfully. */\n OK: 'OK',\n\n /** Cancelled indicates the operation was cancelled (typically by the caller). */\n CANCELLED: 'CANCELLED',\n\n /**\n * InvalidArgument indicates the client specified an invalid argument.\n *\n * By contrast with FailedPrecondition, InvalidArgument indicates arguments\n * that are problematic regardless of the state of the system. For example,\n * a malformed request parameter.\n */\n INVALID_ARGUMENT: 'INVALID_ARGUMENT',\n\n /**\n * DeadlineExceeded means the operation expired before completion.\n *\n * For operations that modify the state of the system, this error may be\n * returned even if the operation has completed successfully. For\n * example, a successful response from a server could have been delayed\n * long enough for the deadline to expire.\n */\n DEADLINE_EXCEEDED: 'DEADLINE_EXCEEDED',\n\n /**\n * NotFound means a requested entity (e.g. a resource or a file) was\n * not found.\n */\n NOT_FOUND: 'NOT_FOUND',\n\n /**\n * AlreadyExists means an attempt to create an entity failed because one\n * already exists.\n */\n ALREADY_EXISTS: 'ALREADY_EXISTS',\n\n /**\n * PermissionDenied indicates the caller does not have permission to\n * execute the specified operation.\n *\n * This is different from an error returned when the user has exhausted\n * some resource (e.g. too many requests) which is a ResourceExhausted\n * error.\n */\n PERMISSION_DENIED: 'PERMISSION_DENIED',\n\n /**\n * ResourceExhausted indicates some resource has been exhausted, perhaps\n * a per-user quota, or perhaps the entire file system is out of space.\n */\n RESOURCE_EXHAUSTED: 'RESOURCE_EXHAUSTED',\n\n /**\n * FailedPrecondition indicates the operation was rejected because the\n * system is not in a state required for the operation's execution.\n * For example, directory to be deleted may be non-empty, an rmdir\n * operation is applied to a non-directory, etc.\n */\n FAILED_PRECONDITION: 'FAILED_PRECONDITION',\n\n /**\n * Aborted indicates the operation was aborted, typically due to a\n * concurrency issue like sequencer check failures, transaction aborts,\n * etc.\n */\n ABORTED: 'ABORTED',\n\n /**\n * OutOfRange means the operation was attempted past the valid range.\n * E.g., seeking or reading past end of file.\n *\n * Unlike InvalidArgument, this error indicates a problem that may\n * be fixed if the system state changes. For example, a 32-bit file\n * system will generate InvalidArgument if asked to read at an\n * offset that is not in the range [0,2^32-1], but it will generate\n * OutOfRange if asked to read from an offset past the current\n * file size.\n *\n * There is a fair bit of overlap between FailedPrecondition and\n * OutOfRange. We recommend using OutOfRange (the more specific\n * error) when it applies so that callers who are iterating through\n * a space can easily look for an OutOfRange error to detect when\n * they are done.\n */\n OUT_OF_RANGE: 'OUT_OF_RANGE',\n\n /**\n * Unimplemented indicates the operation is not implemented or not\n * supported/enabled in this service.\n */\n UNIMPLEMENTED: 'UNIMPLEMENTED',\n\n /**\n * Internal indicates an internal error. This means some invariants\n * expected by the underlying system have been broken. If you see\n * this error, something is very broken.\n */\n INTERNAL: 'INTERNAL',\n\n /**\n * Unavailable indicates the service is currently unavailable.\n *\n * This is most likely a transient condition and may be corrected by\n * retrying. Though, this might not always be safe to retry if the\n * operation is non-idempotent.\n *\n * The Databricks SDK will generally automatically retry the request\n * with a backoff when encountering this error.\n */\n UNAVAILABLE: 'UNAVAILABLE',\n\n /** DataLoss indicates unrecoverable data loss or corruption. */\n DATA_LOSS: 'DATA_LOSS',\n\n /**\n * Unauthenticated indicates the request does not have valid\n * authentication credentials for the operation.\n */\n UNAUTHENTICATED: 'UNAUTHENTICATED',\n} as const;\n\nexport type Code = (typeof Code)[keyof typeof Code] | (string & {});\n"],"mappings":";;;;AAIA,MAAa,OAAO;CAMlB,SAAS;CAGT,IAAI;CAGJ,WAAW;CASX,kBAAkB;CAUlB,mBAAmB;CAMnB,WAAW;CAMX,gBAAgB;CAUhB,mBAAmB;CAMnB,oBAAoB;CAQpB,qBAAqB;CAOrB,SAAS;CAmBT,cAAc;CAMd,eAAe;CAOf,UAAU;CAYV,aAAa;CAGb,WAAW;CAMX,iBAAiB;CAClB"}
|