kb-cloud-client-typescript 2.4.0-alpha.89 → 2.4.0-alpha.90
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/adminapi/apis/account-api.d.ts +473 -0
- package/dist/adminapi/apis/account-api.d.ts.map +1 -1
- package/dist/adminapi/apis/account-api.js +436 -0
- package/dist/adminapi/apis/account-api.js.map +1 -1
- package/dist/adminapi/apis/rdbms-api.d.ts +473 -0
- package/dist/adminapi/apis/rdbms-api.d.ts.map +1 -1
- package/dist/adminapi/apis/rdbms-api.js +436 -0
- package/dist/adminapi/apis/rdbms-api.js.map +1 -1
- package/dist/adminapi/apis/shared-api.d.ts +473 -0
- package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
- package/dist/adminapi/apis/shared-api.js +436 -0
- package/dist/adminapi/apis/shared-api.js.map +1 -1
- package/dist/adminapi/models/index.d.ts +17 -0
- package/dist/adminapi/models/index.d.ts.map +1 -1
- package/dist/adminapi/models/index.js +17 -0
- package/dist/adminapi/models/index.js.map +1 -1
- package/dist/adminapi/models/object-privilege-capabilities.d.ts +46 -0
- package/dist/adminapi/models/object-privilege-capabilities.d.ts.map +1 -0
- package/dist/adminapi/models/object-privilege-capabilities.js +16 -0
- package/dist/adminapi/models/object-privilege-capabilities.js.map +1 -0
- package/dist/adminapi/models/object-privilege-capability.d.ts +95 -0
- package/dist/adminapi/models/object-privilege-capability.d.ts.map +1 -0
- package/dist/adminapi/models/object-privilege-capability.js +16 -0
- package/dist/adminapi/models/object-privilege-capability.js.map +1 -0
- package/dist/adminapi/models/object-privilege-change.d.ts +71 -0
- package/dist/adminapi/models/object-privilege-change.d.ts.map +1 -0
- package/dist/adminapi/models/object-privilege-change.js +16 -0
- package/dist/adminapi/models/object-privilege-change.js.map +1 -0
- package/dist/adminapi/models/object-privilege-definition.d.ts +38 -0
- package/dist/adminapi/models/object-privilege-definition.d.ts.map +1 -0
- package/dist/adminapi/models/object-privilege-definition.js +16 -0
- package/dist/adminapi/models/object-privilege-definition.js.map +1 -0
- package/dist/adminapi/models/object-privilege-evidence.d.ts +37 -0
- package/dist/adminapi/models/object-privilege-evidence.d.ts.map +1 -0
- package/dist/adminapi/models/object-privilege-evidence.js +16 -0
- package/dist/adminapi/models/object-privilege-evidence.js.map +1 -0
- package/dist/adminapi/models/object-privilege-grant-option-scope.d.ts +23 -0
- package/dist/adminapi/models/object-privilege-grant-option-scope.d.ts.map +1 -0
- package/dist/adminapi/models/object-privilege-grant-option-scope.js +27 -0
- package/dist/adminapi/models/object-privilege-grant-option-scope.js.map +1 -0
- package/dist/adminapi/models/object-privilege-grant.d.ts +43 -0
- package/dist/adminapi/models/object-privilege-grant.d.ts.map +1 -0
- package/dist/adminapi/models/object-privilege-grant.js +16 -0
- package/dist/adminapi/models/object-privilege-grant.js.map +1 -0
- package/dist/adminapi/models/object-privilege-object-list.d.ts +38 -0
- package/dist/adminapi/models/object-privilege-object-list.d.ts.map +1 -0
- package/dist/adminapi/models/object-privilege-object-list.js +16 -0
- package/dist/adminapi/models/object-privilege-object-list.js.map +1 -0
- package/dist/adminapi/models/object-privilege-object.d.ts +32 -0
- package/dist/adminapi/models/object-privilege-object.d.ts.map +1 -0
- package/dist/adminapi/models/object-privilege-object.js +16 -0
- package/dist/adminapi/models/object-privilege-object.js.map +1 -0
- package/dist/adminapi/models/object-privilege-prerequisite-check.d.ts +45 -0
- package/dist/adminapi/models/object-privilege-prerequisite-check.d.ts.map +1 -0
- package/dist/adminapi/models/object-privilege-prerequisite-check.js +16 -0
- package/dist/adminapi/models/object-privilege-prerequisite-check.js.map +1 -0
- package/dist/adminapi/models/object-privilege-prerequisite-status.d.ts +23 -0
- package/dist/adminapi/models/object-privilege-prerequisite-status.d.ts.map +1 -0
- package/dist/adminapi/models/object-privilege-prerequisite-status.js +27 -0
- package/dist/adminapi/models/object-privilege-prerequisite-status.js.map +1 -0
- package/dist/adminapi/models/object-privilege-qualifier.d.ts +43 -0
- package/dist/adminapi/models/object-privilege-qualifier.d.ts.map +1 -0
- package/dist/adminapi/models/object-privilege-qualifier.js +16 -0
- package/dist/adminapi/models/object-privilege-qualifier.js.map +1 -0
- package/dist/adminapi/models/object-privilege-snapshot.d.ts +92 -0
- package/dist/adminapi/models/object-privilege-snapshot.d.ts.map +1 -0
- package/dist/adminapi/models/object-privilege-snapshot.js +16 -0
- package/dist/adminapi/models/object-privilege-snapshot.js.map +1 -0
- package/dist/adminapi/models/object-privilege-spec.d.ts +31 -0
- package/dist/adminapi/models/object-privilege-spec.d.ts.map +1 -0
- package/dist/adminapi/models/object-privilege-spec.js +16 -0
- package/dist/adminapi/models/object-privilege-spec.js.map +1 -0
- package/dist/adminapi/models/object-privilege-subject-type.d.ts +22 -0
- package/dist/adminapi/models/object-privilege-subject-type.d.ts.map +1 -0
- package/dist/adminapi/models/object-privilege-subject-type.js +26 -0
- package/dist/adminapi/models/object-privilege-subject-type.js.map +1 -0
- package/dist/adminapi/models/object-privilege-subject.d.ts +40 -0
- package/dist/adminapi/models/object-privilege-subject.d.ts.map +1 -0
- package/dist/adminapi/models/object-privilege-subject.js +16 -0
- package/dist/adminapi/models/object-privilege-subject.js.map +1 -0
- package/dist/adminapi/models/object-privilege-target.d.ts +55 -0
- package/dist/adminapi/models/object-privilege-target.d.ts.map +1 -0
- package/dist/adminapi/models/object-privilege-target.js +16 -0
- package/dist/adminapi/models/object-privilege-target.js.map +1 -0
- package/dist/openapi/apis/account-api.d.ts +473 -0
- package/dist/openapi/apis/account-api.d.ts.map +1 -1
- package/dist/openapi/apis/account-api.js +436 -0
- package/dist/openapi/apis/account-api.js.map +1 -1
- package/dist/openapi/apis/rdbms-api.d.ts +473 -0
- package/dist/openapi/apis/rdbms-api.d.ts.map +1 -1
- package/dist/openapi/apis/rdbms-api.js +436 -0
- package/dist/openapi/apis/rdbms-api.js.map +1 -1
- package/dist/openapi/apis/shared-api.d.ts +473 -0
- package/dist/openapi/apis/shared-api.d.ts.map +1 -1
- package/dist/openapi/apis/shared-api.js +436 -0
- package/dist/openapi/apis/shared-api.js.map +1 -1
- package/dist/openapi/models/index.d.ts +17 -0
- package/dist/openapi/models/index.d.ts.map +1 -1
- package/dist/openapi/models/index.js +17 -0
- package/dist/openapi/models/index.js.map +1 -1
- package/dist/openapi/models/object-privilege-capabilities.d.ts +46 -0
- package/dist/openapi/models/object-privilege-capabilities.d.ts.map +1 -0
- package/dist/openapi/models/object-privilege-capabilities.js +16 -0
- package/dist/openapi/models/object-privilege-capabilities.js.map +1 -0
- package/dist/openapi/models/object-privilege-capability.d.ts +95 -0
- package/dist/openapi/models/object-privilege-capability.d.ts.map +1 -0
- package/dist/openapi/models/object-privilege-capability.js +16 -0
- package/dist/openapi/models/object-privilege-capability.js.map +1 -0
- package/dist/openapi/models/object-privilege-change.d.ts +71 -0
- package/dist/openapi/models/object-privilege-change.d.ts.map +1 -0
- package/dist/openapi/models/object-privilege-change.js +16 -0
- package/dist/openapi/models/object-privilege-change.js.map +1 -0
- package/dist/openapi/models/object-privilege-definition.d.ts +38 -0
- package/dist/openapi/models/object-privilege-definition.d.ts.map +1 -0
- package/dist/openapi/models/object-privilege-definition.js +16 -0
- package/dist/openapi/models/object-privilege-definition.js.map +1 -0
- package/dist/openapi/models/object-privilege-evidence.d.ts +37 -0
- package/dist/openapi/models/object-privilege-evidence.d.ts.map +1 -0
- package/dist/openapi/models/object-privilege-evidence.js +16 -0
- package/dist/openapi/models/object-privilege-evidence.js.map +1 -0
- package/dist/openapi/models/object-privilege-grant-option-scope.d.ts +23 -0
- package/dist/openapi/models/object-privilege-grant-option-scope.d.ts.map +1 -0
- package/dist/openapi/models/object-privilege-grant-option-scope.js +27 -0
- package/dist/openapi/models/object-privilege-grant-option-scope.js.map +1 -0
- package/dist/openapi/models/object-privilege-grant.d.ts +43 -0
- package/dist/openapi/models/object-privilege-grant.d.ts.map +1 -0
- package/dist/openapi/models/object-privilege-grant.js +16 -0
- package/dist/openapi/models/object-privilege-grant.js.map +1 -0
- package/dist/openapi/models/object-privilege-object-list.d.ts +38 -0
- package/dist/openapi/models/object-privilege-object-list.d.ts.map +1 -0
- package/dist/openapi/models/object-privilege-object-list.js +16 -0
- package/dist/openapi/models/object-privilege-object-list.js.map +1 -0
- package/dist/openapi/models/object-privilege-object.d.ts +32 -0
- package/dist/openapi/models/object-privilege-object.d.ts.map +1 -0
- package/dist/openapi/models/object-privilege-object.js +16 -0
- package/dist/openapi/models/object-privilege-object.js.map +1 -0
- package/dist/openapi/models/object-privilege-prerequisite-check.d.ts +45 -0
- package/dist/openapi/models/object-privilege-prerequisite-check.d.ts.map +1 -0
- package/dist/openapi/models/object-privilege-prerequisite-check.js +16 -0
- package/dist/openapi/models/object-privilege-prerequisite-check.js.map +1 -0
- package/dist/openapi/models/object-privilege-prerequisite-status.d.ts +23 -0
- package/dist/openapi/models/object-privilege-prerequisite-status.d.ts.map +1 -0
- package/dist/openapi/models/object-privilege-prerequisite-status.js +27 -0
- package/dist/openapi/models/object-privilege-prerequisite-status.js.map +1 -0
- package/dist/openapi/models/object-privilege-qualifier.d.ts +43 -0
- package/dist/openapi/models/object-privilege-qualifier.d.ts.map +1 -0
- package/dist/openapi/models/object-privilege-qualifier.js +16 -0
- package/dist/openapi/models/object-privilege-qualifier.js.map +1 -0
- package/dist/openapi/models/object-privilege-snapshot.d.ts +92 -0
- package/dist/openapi/models/object-privilege-snapshot.d.ts.map +1 -0
- package/dist/openapi/models/object-privilege-snapshot.js +16 -0
- package/dist/openapi/models/object-privilege-snapshot.js.map +1 -0
- package/dist/openapi/models/object-privilege-spec.d.ts +31 -0
- package/dist/openapi/models/object-privilege-spec.d.ts.map +1 -0
- package/dist/openapi/models/object-privilege-spec.js +16 -0
- package/dist/openapi/models/object-privilege-spec.js.map +1 -0
- package/dist/openapi/models/object-privilege-subject-type.d.ts +22 -0
- package/dist/openapi/models/object-privilege-subject-type.d.ts.map +1 -0
- package/dist/openapi/models/object-privilege-subject-type.js +26 -0
- package/dist/openapi/models/object-privilege-subject-type.js.map +1 -0
- package/dist/openapi/models/object-privilege-subject.d.ts +40 -0
- package/dist/openapi/models/object-privilege-subject.d.ts.map +1 -0
- package/dist/openapi/models/object-privilege-subject.js +16 -0
- package/dist/openapi/models/object-privilege-subject.js.map +1 -0
- package/dist/openapi/models/object-privilege-target.d.ts +55 -0
- package/dist/openapi/models/object-privilege-target.d.ts.map +1 -0
- package/dist/openapi/models/object-privilege-target.js +16 -0
- package/dist/openapi/models/object-privilege-target.js.map +1 -0
- package/package.json +1 -1
- package/src/adminapi/.openapi-generator/FILES +17 -0
- package/src/adminapi/apis/account-api.ts +811 -5
- package/src/adminapi/apis/rdbms-api.ts +806 -0
- package/src/adminapi/apis/shared-api.ts +806 -0
- package/src/adminapi/models/index.ts +17 -0
- package/src/adminapi/models/object-privilege-capabilities.ts +57 -0
- package/src/adminapi/models/object-privilege-capability.ts +104 -0
- package/src/adminapi/models/object-privilege-change.ts +78 -0
- package/src/adminapi/models/object-privilege-definition.ts +47 -0
- package/src/adminapi/models/object-privilege-evidence.ts +42 -0
- package/src/adminapi/models/object-privilege-grant-option-scope.ts +32 -0
- package/src/adminapi/models/object-privilege-grant.ts +48 -0
- package/src/adminapi/models/object-privilege-object-list.ts +45 -0
- package/src/adminapi/models/object-privilege-object.ts +39 -0
- package/src/adminapi/models/object-privilege-prerequisite-check.ts +56 -0
- package/src/adminapi/models/object-privilege-prerequisite-status.ts +32 -0
- package/src/adminapi/models/object-privilege-qualifier.ts +48 -0
- package/src/adminapi/models/object-privilege-snapshot.ts +105 -0
- package/src/adminapi/models/object-privilege-spec.ts +36 -0
- package/src/adminapi/models/object-privilege-subject-type.ts +31 -0
- package/src/adminapi/models/object-privilege-subject.ts +47 -0
- package/src/adminapi/models/object-privilege-target.ts +60 -0
- package/src/adminapi.yaml +675 -0
- package/src/openapi/.openapi-generator/FILES +17 -0
- package/src/openapi/apis/account-api.ts +811 -5
- package/src/openapi/apis/rdbms-api.ts +806 -0
- package/src/openapi/apis/shared-api.ts +942 -136
- package/src/openapi/models/index.ts +17 -0
- package/src/openapi/models/object-privilege-capabilities.ts +57 -0
- package/src/openapi/models/object-privilege-capability.ts +104 -0
- package/src/openapi/models/object-privilege-change.ts +78 -0
- package/src/openapi/models/object-privilege-definition.ts +47 -0
- package/src/openapi/models/object-privilege-evidence.ts +42 -0
- package/src/openapi/models/object-privilege-grant-option-scope.ts +32 -0
- package/src/openapi/models/object-privilege-grant.ts +48 -0
- package/src/openapi/models/object-privilege-object-list.ts +45 -0
- package/src/openapi/models/object-privilege-object.ts +39 -0
- package/src/openapi/models/object-privilege-prerequisite-check.ts +56 -0
- package/src/openapi/models/object-privilege-prerequisite-status.ts +32 -0
- package/src/openapi/models/object-privilege-qualifier.ts +48 -0
- package/src/openapi/models/object-privilege-snapshot.ts +105 -0
- package/src/openapi/models/object-privilege-spec.ts +36 -0
- package/src/openapi/models/object-privilege-subject-type.ts +31 -0
- package/src/openapi/models/object-privilege-subject.ts +47 -0
- package/src/openapi/models/object-privilege-target.ts +60 -0
- package/src/openapi.yaml +675 -0
|
@@ -40,6 +40,16 @@ import type { DmsServiceAccountUpdateRequest } from '../models';
|
|
|
40
40
|
// @ts-ignore
|
|
41
41
|
import type { DmsSession } from '../models';
|
|
42
42
|
// @ts-ignore
|
|
43
|
+
import type { ObjectPrivilegeCapabilities } from '../models';
|
|
44
|
+
// @ts-ignore
|
|
45
|
+
import type { ObjectPrivilegeChange } from '../models';
|
|
46
|
+
// @ts-ignore
|
|
47
|
+
import type { ObjectPrivilegeObjectList } from '../models';
|
|
48
|
+
// @ts-ignore
|
|
49
|
+
import type { ObjectPrivilegeSnapshot } from '../models';
|
|
50
|
+
// @ts-ignore
|
|
51
|
+
import type { ObjectPrivilegeSubjectType } from '../models';
|
|
52
|
+
// @ts-ignore
|
|
43
53
|
import type { PrivilegeListItem } from '../models';
|
|
44
54
|
/**
|
|
45
55
|
* RdbmsApi - axios parameter creator
|
|
@@ -47,6 +57,80 @@ import type { PrivilegeListItem } from '../models';
|
|
|
47
57
|
*/
|
|
48
58
|
export const RdbmsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
49
59
|
return {
|
|
60
|
+
/**
|
|
61
|
+
* Native object GRANT/REVOKE alongside presets. Consult capabilities for engine/version-specific object types and privileges. PostgreSQL RESTRICT is the default; MySQL static GRANT OPTION is scope-wide.
|
|
62
|
+
* @summary Grant or revoke native object and column privileges
|
|
63
|
+
* @param {string} engineName
|
|
64
|
+
* @param {string} orgName
|
|
65
|
+
* @param {string} clusterName
|
|
66
|
+
* @param {string} accountName
|
|
67
|
+
* @param {ObjectPrivilegeChange} body
|
|
68
|
+
* @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
|
|
69
|
+
* @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
|
|
70
|
+
* @param {string} [subjectQualifiers] JSON object of string identity qualifiers, e.g. {\"host\":\"%\"}. Allowed keys and defaults come from capabilities. Unknown keys or duplicate identity inputs are rejected.
|
|
71
|
+
* @param {*} [options] Override http request option.
|
|
72
|
+
* @throws {RequiredError}
|
|
73
|
+
*/
|
|
74
|
+
changeAccountObjectPrivileges: async (engineName: string, orgName: string, clusterName: string, accountName: string, body: ObjectPrivilegeChange, subjectType?: ObjectPrivilegeSubjectType, host?: string, subjectQualifiers?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
75
|
+
// verify required parameter 'engineName' is not null or undefined
|
|
76
|
+
assertParamExists('changeAccountObjectPrivileges', 'engineName', engineName)
|
|
77
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
78
|
+
assertParamExists('changeAccountObjectPrivileges', 'orgName', orgName)
|
|
79
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
80
|
+
assertParamExists('changeAccountObjectPrivileges', 'clusterName', clusterName)
|
|
81
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
82
|
+
assertParamExists('changeAccountObjectPrivileges', 'accountName', accountName)
|
|
83
|
+
// verify required parameter 'body' is not null or undefined
|
|
84
|
+
assertParamExists('changeAccountObjectPrivileges', 'body', body)
|
|
85
|
+
const localVarPath = `/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/object-privileges`
|
|
86
|
+
.replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
|
|
87
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
88
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
89
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
90
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
91
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
92
|
+
let baseOptions;
|
|
93
|
+
if (configuration) {
|
|
94
|
+
baseOptions = configuration.baseOptions;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
98
|
+
const localVarHeaderParameter = {} as any;
|
|
99
|
+
const localVarQueryParameter = {} as any;
|
|
100
|
+
|
|
101
|
+
// authentication BearerToken required
|
|
102
|
+
// http bearer authentication required
|
|
103
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
104
|
+
|
|
105
|
+
// authentication DigestAuth required
|
|
106
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
107
|
+
|
|
108
|
+
if (subjectType !== undefined) {
|
|
109
|
+
localVarQueryParameter['subjectType'] = subjectType;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
if (host !== undefined) {
|
|
113
|
+
localVarQueryParameter['host'] = host;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
if (subjectQualifiers !== undefined) {
|
|
117
|
+
localVarQueryParameter['subjectQualifiers'] = subjectQualifiers;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
123
|
+
|
|
124
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
125
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
126
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
127
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
128
|
+
|
|
129
|
+
return {
|
|
130
|
+
url: toPathString(localVarUrlObj),
|
|
131
|
+
options: localVarRequestOptions,
|
|
132
|
+
};
|
|
133
|
+
},
|
|
50
134
|
/**
|
|
51
135
|
* create an account in cluster
|
|
52
136
|
* @summary Create cluster account
|
|
@@ -418,6 +502,159 @@ export const RdbmsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
418
502
|
|
|
419
503
|
|
|
420
504
|
|
|
505
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
506
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
507
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
508
|
+
|
|
509
|
+
return {
|
|
510
|
+
url: toPathString(localVarUrlObj),
|
|
511
|
+
options: localVarRequestOptions,
|
|
512
|
+
};
|
|
513
|
+
},
|
|
514
|
+
/**
|
|
515
|
+
* Native object GRANT/REVOKE alongside presets. Consult capabilities for engine/version-specific object types and privileges. PostgreSQL RESTRICT is the default; MySQL static GRANT OPTION is scope-wide.
|
|
516
|
+
* @summary List native object privilege capabilities for the connected server
|
|
517
|
+
* @param {string} engineName
|
|
518
|
+
* @param {string} orgName
|
|
519
|
+
* @param {string} clusterName
|
|
520
|
+
* @param {string} accountName
|
|
521
|
+
* @param {*} [options] Override http request option.
|
|
522
|
+
* @throws {RequiredError}
|
|
523
|
+
*/
|
|
524
|
+
getAccountObjectPrivilegeCapabilities: async (engineName: string, orgName: string, clusterName: string, accountName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
525
|
+
// verify required parameter 'engineName' is not null or undefined
|
|
526
|
+
assertParamExists('getAccountObjectPrivilegeCapabilities', 'engineName', engineName)
|
|
527
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
528
|
+
assertParamExists('getAccountObjectPrivilegeCapabilities', 'orgName', orgName)
|
|
529
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
530
|
+
assertParamExists('getAccountObjectPrivilegeCapabilities', 'clusterName', clusterName)
|
|
531
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
532
|
+
assertParamExists('getAccountObjectPrivilegeCapabilities', 'accountName', accountName)
|
|
533
|
+
const localVarPath = `/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/object-privileges/capabilities`
|
|
534
|
+
.replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
|
|
535
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
536
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
537
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
538
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
539
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
540
|
+
let baseOptions;
|
|
541
|
+
if (configuration) {
|
|
542
|
+
baseOptions = configuration.baseOptions;
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
546
|
+
const localVarHeaderParameter = {} as any;
|
|
547
|
+
const localVarQueryParameter = {} as any;
|
|
548
|
+
|
|
549
|
+
// authentication BearerToken required
|
|
550
|
+
// http bearer authentication required
|
|
551
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
552
|
+
|
|
553
|
+
// authentication DigestAuth required
|
|
554
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
555
|
+
|
|
556
|
+
|
|
557
|
+
|
|
558
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
559
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
560
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
561
|
+
|
|
562
|
+
return {
|
|
563
|
+
url: toPathString(localVarUrlObj),
|
|
564
|
+
options: localVarRequestOptions,
|
|
565
|
+
};
|
|
566
|
+
},
|
|
567
|
+
/**
|
|
568
|
+
* Native object GRANT/REVOKE alongside presets. Consult capabilities for engine/version-specific object types and privileges. PostgreSQL RESTRICT is the default; MySQL static GRANT OPTION is scope-wide.
|
|
569
|
+
* @summary Inspect native object and column privileges
|
|
570
|
+
* @param {string} engineName
|
|
571
|
+
* @param {string} orgName
|
|
572
|
+
* @param {string} clusterName
|
|
573
|
+
* @param {string} accountName
|
|
574
|
+
* @param {string} objectType
|
|
575
|
+
* @param {string} [databaseName]
|
|
576
|
+
* @param {string} [schemaName]
|
|
577
|
+
* @param {string} [objectName]
|
|
578
|
+
* @param {string} [objectId]
|
|
579
|
+
* @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
|
|
580
|
+
* @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
|
|
581
|
+
* @param {string} [catalogName]
|
|
582
|
+
* @param {string} [subjectQualifiers] JSON object of string identity qualifiers, e.g. {\"host\":\"%\"}. Allowed keys and defaults come from capabilities. Unknown keys or duplicate identity inputs are rejected.
|
|
583
|
+
* @param {*} [options] Override http request option.
|
|
584
|
+
* @throws {RequiredError}
|
|
585
|
+
*/
|
|
586
|
+
getAccountObjectPrivileges: async (engineName: string, orgName: string, clusterName: string, accountName: string, objectType: string, databaseName?: string, schemaName?: string, objectName?: string, objectId?: string, subjectType?: ObjectPrivilegeSubjectType, host?: string, catalogName?: string, subjectQualifiers?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
587
|
+
// verify required parameter 'engineName' is not null or undefined
|
|
588
|
+
assertParamExists('getAccountObjectPrivileges', 'engineName', engineName)
|
|
589
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
590
|
+
assertParamExists('getAccountObjectPrivileges', 'orgName', orgName)
|
|
591
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
592
|
+
assertParamExists('getAccountObjectPrivileges', 'clusterName', clusterName)
|
|
593
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
594
|
+
assertParamExists('getAccountObjectPrivileges', 'accountName', accountName)
|
|
595
|
+
// verify required parameter 'objectType' is not null or undefined
|
|
596
|
+
assertParamExists('getAccountObjectPrivileges', 'objectType', objectType)
|
|
597
|
+
const localVarPath = `/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/object-privileges`
|
|
598
|
+
.replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
|
|
599
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
600
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
601
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
602
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
603
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
604
|
+
let baseOptions;
|
|
605
|
+
if (configuration) {
|
|
606
|
+
baseOptions = configuration.baseOptions;
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
610
|
+
const localVarHeaderParameter = {} as any;
|
|
611
|
+
const localVarQueryParameter = {} as any;
|
|
612
|
+
|
|
613
|
+
// authentication BearerToken required
|
|
614
|
+
// http bearer authentication required
|
|
615
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
616
|
+
|
|
617
|
+
// authentication DigestAuth required
|
|
618
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
619
|
+
|
|
620
|
+
if (objectType !== undefined) {
|
|
621
|
+
localVarQueryParameter['objectType'] = objectType;
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
if (databaseName !== undefined) {
|
|
625
|
+
localVarQueryParameter['databaseName'] = databaseName;
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
if (schemaName !== undefined) {
|
|
629
|
+
localVarQueryParameter['schemaName'] = schemaName;
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
if (objectName !== undefined) {
|
|
633
|
+
localVarQueryParameter['objectName'] = objectName;
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
if (objectId !== undefined) {
|
|
637
|
+
localVarQueryParameter['objectId'] = objectId;
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
if (subjectType !== undefined) {
|
|
641
|
+
localVarQueryParameter['subjectType'] = subjectType;
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
if (host !== undefined) {
|
|
645
|
+
localVarQueryParameter['host'] = host;
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
if (catalogName !== undefined) {
|
|
649
|
+
localVarQueryParameter['catalogName'] = catalogName;
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
if (subjectQualifiers !== undefined) {
|
|
653
|
+
localVarQueryParameter['subjectQualifiers'] = subjectQualifiers;
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
|
|
657
|
+
|
|
421
658
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
422
659
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
423
660
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -647,6 +884,91 @@ export const RdbmsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
647
884
|
|
|
648
885
|
|
|
649
886
|
|
|
887
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
888
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
889
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
890
|
+
|
|
891
|
+
return {
|
|
892
|
+
url: toPathString(localVarUrlObj),
|
|
893
|
+
options: localVarRequestOptions,
|
|
894
|
+
};
|
|
895
|
+
},
|
|
896
|
+
/**
|
|
897
|
+
* Lists existing objects of one supported kind. Pagination is not a fixed snapshot. PostgreSQL requires a connection database; schema-contained kinds require schemaName. MySQL global/database listing omits databaseName; other kinds require it.
|
|
898
|
+
* @summary Discover existing native privilege objects with stable routine identities
|
|
899
|
+
* @param {string} engineName
|
|
900
|
+
* @param {string} orgName
|
|
901
|
+
* @param {string} clusterName
|
|
902
|
+
* @param {string} accountName
|
|
903
|
+
* @param {string} objectType
|
|
904
|
+
* @param {string} [databaseName]
|
|
905
|
+
* @param {string} [schemaName]
|
|
906
|
+
* @param {number} [offset]
|
|
907
|
+
* @param {number} [limit]
|
|
908
|
+
* @param {string} [catalogName]
|
|
909
|
+
* @param {*} [options] Override http request option.
|
|
910
|
+
* @throws {RequiredError}
|
|
911
|
+
*/
|
|
912
|
+
listAccountObjectPrivilegeObjects: async (engineName: string, orgName: string, clusterName: string, accountName: string, objectType: string, databaseName?: string, schemaName?: string, offset?: number, limit?: number, catalogName?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
913
|
+
// verify required parameter 'engineName' is not null or undefined
|
|
914
|
+
assertParamExists('listAccountObjectPrivilegeObjects', 'engineName', engineName)
|
|
915
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
916
|
+
assertParamExists('listAccountObjectPrivilegeObjects', 'orgName', orgName)
|
|
917
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
918
|
+
assertParamExists('listAccountObjectPrivilegeObjects', 'clusterName', clusterName)
|
|
919
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
920
|
+
assertParamExists('listAccountObjectPrivilegeObjects', 'accountName', accountName)
|
|
921
|
+
// verify required parameter 'objectType' is not null or undefined
|
|
922
|
+
assertParamExists('listAccountObjectPrivilegeObjects', 'objectType', objectType)
|
|
923
|
+
const localVarPath = `/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/object-privileges/objects`
|
|
924
|
+
.replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
|
|
925
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
926
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
927
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
928
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
929
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
930
|
+
let baseOptions;
|
|
931
|
+
if (configuration) {
|
|
932
|
+
baseOptions = configuration.baseOptions;
|
|
933
|
+
}
|
|
934
|
+
|
|
935
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
936
|
+
const localVarHeaderParameter = {} as any;
|
|
937
|
+
const localVarQueryParameter = {} as any;
|
|
938
|
+
|
|
939
|
+
// authentication BearerToken required
|
|
940
|
+
// http bearer authentication required
|
|
941
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
942
|
+
|
|
943
|
+
// authentication DigestAuth required
|
|
944
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
945
|
+
|
|
946
|
+
if (objectType !== undefined) {
|
|
947
|
+
localVarQueryParameter['objectType'] = objectType;
|
|
948
|
+
}
|
|
949
|
+
|
|
950
|
+
if (databaseName !== undefined) {
|
|
951
|
+
localVarQueryParameter['databaseName'] = databaseName;
|
|
952
|
+
}
|
|
953
|
+
|
|
954
|
+
if (schemaName !== undefined) {
|
|
955
|
+
localVarQueryParameter['schemaName'] = schemaName;
|
|
956
|
+
}
|
|
957
|
+
|
|
958
|
+
if (offset !== undefined) {
|
|
959
|
+
localVarQueryParameter['offset'] = offset;
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
if (limit !== undefined) {
|
|
963
|
+
localVarQueryParameter['limit'] = limit;
|
|
964
|
+
}
|
|
965
|
+
|
|
966
|
+
if (catalogName !== undefined) {
|
|
967
|
+
localVarQueryParameter['catalogName'] = catalogName;
|
|
968
|
+
}
|
|
969
|
+
|
|
970
|
+
|
|
971
|
+
|
|
650
972
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
651
973
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
652
974
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -1212,6 +1534,26 @@ export const RdbmsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
1212
1534
|
export const RdbmsApiFp = function(configuration?: Configuration) {
|
|
1213
1535
|
const localVarAxiosParamCreator = RdbmsApiAxiosParamCreator(configuration)
|
|
1214
1536
|
return {
|
|
1537
|
+
/**
|
|
1538
|
+
* Native object GRANT/REVOKE alongside presets. Consult capabilities for engine/version-specific object types and privileges. PostgreSQL RESTRICT is the default; MySQL static GRANT OPTION is scope-wide.
|
|
1539
|
+
* @summary Grant or revoke native object and column privileges
|
|
1540
|
+
* @param {string} engineName
|
|
1541
|
+
* @param {string} orgName
|
|
1542
|
+
* @param {string} clusterName
|
|
1543
|
+
* @param {string} accountName
|
|
1544
|
+
* @param {ObjectPrivilegeChange} body
|
|
1545
|
+
* @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
|
|
1546
|
+
* @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
|
|
1547
|
+
* @param {string} [subjectQualifiers] JSON object of string identity qualifiers, e.g. {\"host\":\"%\"}. Allowed keys and defaults come from capabilities. Unknown keys or duplicate identity inputs are rejected.
|
|
1548
|
+
* @param {*} [options] Override http request option.
|
|
1549
|
+
* @throws {RequiredError}
|
|
1550
|
+
*/
|
|
1551
|
+
async changeAccountObjectPrivileges(engineName: string, orgName: string, clusterName: string, accountName: string, body: ObjectPrivilegeChange, subjectType?: ObjectPrivilegeSubjectType, host?: string, subjectQualifiers?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1552
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.changeAccountObjectPrivileges(engineName, orgName, clusterName, accountName, body, subjectType, host, subjectQualifiers, options);
|
|
1553
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1554
|
+
const localVarOperationServerBasePath = operationServerMap['RdbmsApi.changeAccountObjectPrivileges']?.[localVarOperationServerIndex]?.url;
|
|
1555
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1556
|
+
},
|
|
1215
1557
|
/**
|
|
1216
1558
|
* create an account in cluster
|
|
1217
1559
|
* @summary Create cluster account
|
|
@@ -1324,6 +1666,47 @@ export const RdbmsApiFp = function(configuration?: Configuration) {
|
|
|
1324
1666
|
const localVarOperationServerBasePath = operationServerMap['RdbmsApi.generateDemoData']?.[localVarOperationServerIndex]?.url;
|
|
1325
1667
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1326
1668
|
},
|
|
1669
|
+
/**
|
|
1670
|
+
* Native object GRANT/REVOKE alongside presets. Consult capabilities for engine/version-specific object types and privileges. PostgreSQL RESTRICT is the default; MySQL static GRANT OPTION is scope-wide.
|
|
1671
|
+
* @summary List native object privilege capabilities for the connected server
|
|
1672
|
+
* @param {string} engineName
|
|
1673
|
+
* @param {string} orgName
|
|
1674
|
+
* @param {string} clusterName
|
|
1675
|
+
* @param {string} accountName
|
|
1676
|
+
* @param {*} [options] Override http request option.
|
|
1677
|
+
* @throws {RequiredError}
|
|
1678
|
+
*/
|
|
1679
|
+
async getAccountObjectPrivilegeCapabilities(engineName: string, orgName: string, clusterName: string, accountName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ObjectPrivilegeCapabilities>> {
|
|
1680
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountObjectPrivilegeCapabilities(engineName, orgName, clusterName, accountName, options);
|
|
1681
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1682
|
+
const localVarOperationServerBasePath = operationServerMap['RdbmsApi.getAccountObjectPrivilegeCapabilities']?.[localVarOperationServerIndex]?.url;
|
|
1683
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1684
|
+
},
|
|
1685
|
+
/**
|
|
1686
|
+
* Native object GRANT/REVOKE alongside presets. Consult capabilities for engine/version-specific object types and privileges. PostgreSQL RESTRICT is the default; MySQL static GRANT OPTION is scope-wide.
|
|
1687
|
+
* @summary Inspect native object and column privileges
|
|
1688
|
+
* @param {string} engineName
|
|
1689
|
+
* @param {string} orgName
|
|
1690
|
+
* @param {string} clusterName
|
|
1691
|
+
* @param {string} accountName
|
|
1692
|
+
* @param {string} objectType
|
|
1693
|
+
* @param {string} [databaseName]
|
|
1694
|
+
* @param {string} [schemaName]
|
|
1695
|
+
* @param {string} [objectName]
|
|
1696
|
+
* @param {string} [objectId]
|
|
1697
|
+
* @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
|
|
1698
|
+
* @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
|
|
1699
|
+
* @param {string} [catalogName]
|
|
1700
|
+
* @param {string} [subjectQualifiers] JSON object of string identity qualifiers, e.g. {\"host\":\"%\"}. Allowed keys and defaults come from capabilities. Unknown keys or duplicate identity inputs are rejected.
|
|
1701
|
+
* @param {*} [options] Override http request option.
|
|
1702
|
+
* @throws {RequiredError}
|
|
1703
|
+
*/
|
|
1704
|
+
async getAccountObjectPrivileges(engineName: string, orgName: string, clusterName: string, accountName: string, objectType: string, databaseName?: string, schemaName?: string, objectName?: string, objectId?: string, subjectType?: ObjectPrivilegeSubjectType, host?: string, catalogName?: string, subjectQualifiers?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ObjectPrivilegeSnapshot>> {
|
|
1705
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountObjectPrivileges(engineName, orgName, clusterName, accountName, objectType, databaseName, schemaName, objectName, objectId, subjectType, host, catalogName, subjectQualifiers, options);
|
|
1706
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1707
|
+
const localVarOperationServerBasePath = operationServerMap['RdbmsApi.getAccountObjectPrivileges']?.[localVarOperationServerIndex]?.url;
|
|
1708
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1709
|
+
},
|
|
1327
1710
|
/**
|
|
1328
1711
|
* get a database info in cluster
|
|
1329
1712
|
* @param {string} engineName name of the engine
|
|
@@ -1390,6 +1773,28 @@ export const RdbmsApiFp = function(configuration?: Configuration) {
|
|
|
1390
1773
|
const localVarOperationServerBasePath = operationServerMap['RdbmsApi.killSession']?.[localVarOperationServerIndex]?.url;
|
|
1391
1774
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1392
1775
|
},
|
|
1776
|
+
/**
|
|
1777
|
+
* Lists existing objects of one supported kind. Pagination is not a fixed snapshot. PostgreSQL requires a connection database; schema-contained kinds require schemaName. MySQL global/database listing omits databaseName; other kinds require it.
|
|
1778
|
+
* @summary Discover existing native privilege objects with stable routine identities
|
|
1779
|
+
* @param {string} engineName
|
|
1780
|
+
* @param {string} orgName
|
|
1781
|
+
* @param {string} clusterName
|
|
1782
|
+
* @param {string} accountName
|
|
1783
|
+
* @param {string} objectType
|
|
1784
|
+
* @param {string} [databaseName]
|
|
1785
|
+
* @param {string} [schemaName]
|
|
1786
|
+
* @param {number} [offset]
|
|
1787
|
+
* @param {number} [limit]
|
|
1788
|
+
* @param {string} [catalogName]
|
|
1789
|
+
* @param {*} [options] Override http request option.
|
|
1790
|
+
* @throws {RequiredError}
|
|
1791
|
+
*/
|
|
1792
|
+
async listAccountObjectPrivilegeObjects(engineName: string, orgName: string, clusterName: string, accountName: string, objectType: string, databaseName?: string, schemaName?: string, offset?: number, limit?: number, catalogName?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ObjectPrivilegeObjectList>> {
|
|
1793
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listAccountObjectPrivilegeObjects(engineName, orgName, clusterName, accountName, objectType, databaseName, schemaName, offset, limit, catalogName, options);
|
|
1794
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1795
|
+
const localVarOperationServerBasePath = operationServerMap['RdbmsApi.listAccountObjectPrivilegeObjects']?.[localVarOperationServerIndex]?.url;
|
|
1796
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1797
|
+
},
|
|
1393
1798
|
/**
|
|
1394
1799
|
* list accounts in cluster
|
|
1395
1800
|
* @summary List cluster accounts
|
|
@@ -1562,6 +1967,16 @@ export const RdbmsApiFp = function(configuration?: Configuration) {
|
|
|
1562
1967
|
export const RdbmsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
1563
1968
|
const localVarFp = RdbmsApiFp(configuration)
|
|
1564
1969
|
return {
|
|
1970
|
+
/**
|
|
1971
|
+
* Native object GRANT/REVOKE alongside presets. Consult capabilities for engine/version-specific object types and privileges. PostgreSQL RESTRICT is the default; MySQL static GRANT OPTION is scope-wide.
|
|
1972
|
+
* @summary Grant or revoke native object and column privileges
|
|
1973
|
+
* @param {RdbmsApiChangeAccountObjectPrivilegesRequest} requestParameters Request parameters.
|
|
1974
|
+
* @param {*} [options] Override http request option.
|
|
1975
|
+
* @throws {RequiredError}
|
|
1976
|
+
*/
|
|
1977
|
+
changeAccountObjectPrivileges(requestParameters: RdbmsApiChangeAccountObjectPrivilegesRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1978
|
+
return localVarFp.changeAccountObjectPrivileges(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, requestParameters.subjectType, requestParameters.host, requestParameters.subjectQualifiers, options).then((request) => request(axios, basePath));
|
|
1979
|
+
},
|
|
1565
1980
|
/**
|
|
1566
1981
|
* create an account in cluster
|
|
1567
1982
|
* @summary Create cluster account
|
|
@@ -1632,6 +2047,26 @@ export const RdbmsApiFactory = function (configuration?: Configuration, basePath
|
|
|
1632
2047
|
generateDemoData(requestParameters: RdbmsApiGenerateDemoDataRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1633
2048
|
return localVarFp.generateDemoData(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(axios, basePath));
|
|
1634
2049
|
},
|
|
2050
|
+
/**
|
|
2051
|
+
* Native object GRANT/REVOKE alongside presets. Consult capabilities for engine/version-specific object types and privileges. PostgreSQL RESTRICT is the default; MySQL static GRANT OPTION is scope-wide.
|
|
2052
|
+
* @summary List native object privilege capabilities for the connected server
|
|
2053
|
+
* @param {RdbmsApiGetAccountObjectPrivilegeCapabilitiesRequest} requestParameters Request parameters.
|
|
2054
|
+
* @param {*} [options] Override http request option.
|
|
2055
|
+
* @throws {RequiredError}
|
|
2056
|
+
*/
|
|
2057
|
+
getAccountObjectPrivilegeCapabilities(requestParameters: RdbmsApiGetAccountObjectPrivilegeCapabilitiesRequest, options?: RawAxiosRequestConfig): AxiosPromise<ObjectPrivilegeCapabilities> {
|
|
2058
|
+
return localVarFp.getAccountObjectPrivilegeCapabilities(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(axios, basePath));
|
|
2059
|
+
},
|
|
2060
|
+
/**
|
|
2061
|
+
* Native object GRANT/REVOKE alongside presets. Consult capabilities for engine/version-specific object types and privileges. PostgreSQL RESTRICT is the default; MySQL static GRANT OPTION is scope-wide.
|
|
2062
|
+
* @summary Inspect native object and column privileges
|
|
2063
|
+
* @param {RdbmsApiGetAccountObjectPrivilegesRequest} requestParameters Request parameters.
|
|
2064
|
+
* @param {*} [options] Override http request option.
|
|
2065
|
+
* @throws {RequiredError}
|
|
2066
|
+
*/
|
|
2067
|
+
getAccountObjectPrivileges(requestParameters: RdbmsApiGetAccountObjectPrivilegesRequest, options?: RawAxiosRequestConfig): AxiosPromise<ObjectPrivilegeSnapshot> {
|
|
2068
|
+
return localVarFp.getAccountObjectPrivileges(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.objectType, requestParameters.databaseName, requestParameters.schemaName, requestParameters.objectName, requestParameters.objectId, requestParameters.subjectType, requestParameters.host, requestParameters.catalogName, requestParameters.subjectQualifiers, options).then((request) => request(axios, basePath));
|
|
2069
|
+
},
|
|
1635
2070
|
/**
|
|
1636
2071
|
* get a database info in cluster
|
|
1637
2072
|
* @param {RdbmsApiGetDatabaseRequest} requestParameters Request parameters.
|
|
@@ -1671,6 +2106,16 @@ export const RdbmsApiFactory = function (configuration?: Configuration, basePath
|
|
|
1671
2106
|
killSession(requestParameters: RdbmsApiKillSessionRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1672
2107
|
return localVarFp.killSession(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.session, requestParameters.keep, options).then((request) => request(axios, basePath));
|
|
1673
2108
|
},
|
|
2109
|
+
/**
|
|
2110
|
+
* Lists existing objects of one supported kind. Pagination is not a fixed snapshot. PostgreSQL requires a connection database; schema-contained kinds require schemaName. MySQL global/database listing omits databaseName; other kinds require it.
|
|
2111
|
+
* @summary Discover existing native privilege objects with stable routine identities
|
|
2112
|
+
* @param {RdbmsApiListAccountObjectPrivilegeObjectsRequest} requestParameters Request parameters.
|
|
2113
|
+
* @param {*} [options] Override http request option.
|
|
2114
|
+
* @throws {RequiredError}
|
|
2115
|
+
*/
|
|
2116
|
+
listAccountObjectPrivilegeObjects(requestParameters: RdbmsApiListAccountObjectPrivilegeObjectsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ObjectPrivilegeObjectList> {
|
|
2117
|
+
return localVarFp.listAccountObjectPrivilegeObjects(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.objectType, requestParameters.databaseName, requestParameters.schemaName, requestParameters.offset, requestParameters.limit, requestParameters.catalogName, options).then((request) => request(axios, basePath));
|
|
2118
|
+
},
|
|
1674
2119
|
/**
|
|
1675
2120
|
* list accounts in cluster
|
|
1676
2121
|
* @summary List cluster accounts
|
|
@@ -1780,6 +2225,16 @@ export const RdbmsApiFactory = function (configuration?: Configuration, basePath
|
|
|
1780
2225
|
* @interface RdbmsApi
|
|
1781
2226
|
*/
|
|
1782
2227
|
export interface RdbmsApiInterface {
|
|
2228
|
+
/**
|
|
2229
|
+
* Native object GRANT/REVOKE alongside presets. Consult capabilities for engine/version-specific object types and privileges. PostgreSQL RESTRICT is the default; MySQL static GRANT OPTION is scope-wide.
|
|
2230
|
+
* @summary Grant or revoke native object and column privileges
|
|
2231
|
+
* @param {RdbmsApiChangeAccountObjectPrivilegesRequest} requestParameters Request parameters.
|
|
2232
|
+
* @param {*} [options] Override http request option.
|
|
2233
|
+
* @throws {RequiredError}
|
|
2234
|
+
* @memberof RdbmsApiInterface
|
|
2235
|
+
*/
|
|
2236
|
+
changeAccountObjectPrivileges(requestParameters: RdbmsApiChangeAccountObjectPrivilegesRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
2237
|
+
|
|
1783
2238
|
/**
|
|
1784
2239
|
* create an account in cluster
|
|
1785
2240
|
* @summary Create cluster account
|
|
@@ -1850,6 +2305,26 @@ export interface RdbmsApiInterface {
|
|
|
1850
2305
|
*/
|
|
1851
2306
|
generateDemoData(requestParameters: RdbmsApiGenerateDemoDataRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
1852
2307
|
|
|
2308
|
+
/**
|
|
2309
|
+
* Native object GRANT/REVOKE alongside presets. Consult capabilities for engine/version-specific object types and privileges. PostgreSQL RESTRICT is the default; MySQL static GRANT OPTION is scope-wide.
|
|
2310
|
+
* @summary List native object privilege capabilities for the connected server
|
|
2311
|
+
* @param {RdbmsApiGetAccountObjectPrivilegeCapabilitiesRequest} requestParameters Request parameters.
|
|
2312
|
+
* @param {*} [options] Override http request option.
|
|
2313
|
+
* @throws {RequiredError}
|
|
2314
|
+
* @memberof RdbmsApiInterface
|
|
2315
|
+
*/
|
|
2316
|
+
getAccountObjectPrivilegeCapabilities(requestParameters: RdbmsApiGetAccountObjectPrivilegeCapabilitiesRequest, options?: RawAxiosRequestConfig): AxiosPromise<ObjectPrivilegeCapabilities>;
|
|
2317
|
+
|
|
2318
|
+
/**
|
|
2319
|
+
* Native object GRANT/REVOKE alongside presets. Consult capabilities for engine/version-specific object types and privileges. PostgreSQL RESTRICT is the default; MySQL static GRANT OPTION is scope-wide.
|
|
2320
|
+
* @summary Inspect native object and column privileges
|
|
2321
|
+
* @param {RdbmsApiGetAccountObjectPrivilegesRequest} requestParameters Request parameters.
|
|
2322
|
+
* @param {*} [options] Override http request option.
|
|
2323
|
+
* @throws {RequiredError}
|
|
2324
|
+
* @memberof RdbmsApiInterface
|
|
2325
|
+
*/
|
|
2326
|
+
getAccountObjectPrivileges(requestParameters: RdbmsApiGetAccountObjectPrivilegesRequest, options?: RawAxiosRequestConfig): AxiosPromise<ObjectPrivilegeSnapshot>;
|
|
2327
|
+
|
|
1853
2328
|
/**
|
|
1854
2329
|
* get a database info in cluster
|
|
1855
2330
|
* @param {RdbmsApiGetDatabaseRequest} requestParameters Request parameters.
|
|
@@ -1889,6 +2364,16 @@ export interface RdbmsApiInterface {
|
|
|
1889
2364
|
*/
|
|
1890
2365
|
killSession(requestParameters: RdbmsApiKillSessionRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
1891
2366
|
|
|
2367
|
+
/**
|
|
2368
|
+
* Lists existing objects of one supported kind. Pagination is not a fixed snapshot. PostgreSQL requires a connection database; schema-contained kinds require schemaName. MySQL global/database listing omits databaseName; other kinds require it.
|
|
2369
|
+
* @summary Discover existing native privilege objects with stable routine identities
|
|
2370
|
+
* @param {RdbmsApiListAccountObjectPrivilegeObjectsRequest} requestParameters Request parameters.
|
|
2371
|
+
* @param {*} [options] Override http request option.
|
|
2372
|
+
* @throws {RequiredError}
|
|
2373
|
+
* @memberof RdbmsApiInterface
|
|
2374
|
+
*/
|
|
2375
|
+
listAccountObjectPrivilegeObjects(requestParameters: RdbmsApiListAccountObjectPrivilegeObjectsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ObjectPrivilegeObjectList>;
|
|
2376
|
+
|
|
1892
2377
|
/**
|
|
1893
2378
|
* list accounts in cluster
|
|
1894
2379
|
* @summary List cluster accounts
|
|
@@ -1991,6 +2476,69 @@ export interface RdbmsApiInterface {
|
|
|
1991
2476
|
|
|
1992
2477
|
}
|
|
1993
2478
|
|
|
2479
|
+
/**
|
|
2480
|
+
* Request parameters for changeAccountObjectPrivileges operation in RdbmsApi.
|
|
2481
|
+
* @export
|
|
2482
|
+
* @interface RdbmsApiChangeAccountObjectPrivilegesRequest
|
|
2483
|
+
*/
|
|
2484
|
+
export interface RdbmsApiChangeAccountObjectPrivilegesRequest {
|
|
2485
|
+
/**
|
|
2486
|
+
*
|
|
2487
|
+
* @type {string}
|
|
2488
|
+
* @memberof RdbmsApiChangeAccountObjectPrivileges
|
|
2489
|
+
*/
|
|
2490
|
+
readonly engineName: string
|
|
2491
|
+
|
|
2492
|
+
/**
|
|
2493
|
+
*
|
|
2494
|
+
* @type {string}
|
|
2495
|
+
* @memberof RdbmsApiChangeAccountObjectPrivileges
|
|
2496
|
+
*/
|
|
2497
|
+
readonly orgName: string
|
|
2498
|
+
|
|
2499
|
+
/**
|
|
2500
|
+
*
|
|
2501
|
+
* @type {string}
|
|
2502
|
+
* @memberof RdbmsApiChangeAccountObjectPrivileges
|
|
2503
|
+
*/
|
|
2504
|
+
readonly clusterName: string
|
|
2505
|
+
|
|
2506
|
+
/**
|
|
2507
|
+
*
|
|
2508
|
+
* @type {string}
|
|
2509
|
+
* @memberof RdbmsApiChangeAccountObjectPrivileges
|
|
2510
|
+
*/
|
|
2511
|
+
readonly accountName: string
|
|
2512
|
+
|
|
2513
|
+
/**
|
|
2514
|
+
*
|
|
2515
|
+
* @type {ObjectPrivilegeChange}
|
|
2516
|
+
* @memberof RdbmsApiChangeAccountObjectPrivileges
|
|
2517
|
+
*/
|
|
2518
|
+
readonly body: ObjectPrivilegeChange
|
|
2519
|
+
|
|
2520
|
+
/**
|
|
2521
|
+
* Native subject kind; path account name identifies the subject.
|
|
2522
|
+
* @type {ObjectPrivilegeSubjectType}
|
|
2523
|
+
* @memberof RdbmsApiChangeAccountObjectPrivileges
|
|
2524
|
+
*/
|
|
2525
|
+
readonly subjectType?: ObjectPrivilegeSubjectType
|
|
2526
|
+
|
|
2527
|
+
/**
|
|
2528
|
+
* Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
|
|
2529
|
+
* @type {string}
|
|
2530
|
+
* @memberof RdbmsApiChangeAccountObjectPrivileges
|
|
2531
|
+
*/
|
|
2532
|
+
readonly host?: string
|
|
2533
|
+
|
|
2534
|
+
/**
|
|
2535
|
+
* JSON object of string identity qualifiers, e.g. {\"host\":\"%\"}. Allowed keys and defaults come from capabilities. Unknown keys or duplicate identity inputs are rejected.
|
|
2536
|
+
* @type {string}
|
|
2537
|
+
* @memberof RdbmsApiChangeAccountObjectPrivileges
|
|
2538
|
+
*/
|
|
2539
|
+
readonly subjectQualifiers?: string
|
|
2540
|
+
}
|
|
2541
|
+
|
|
1994
2542
|
/**
|
|
1995
2543
|
* Request parameters for createAccount operation in RdbmsApi.
|
|
1996
2544
|
* @export
|
|
@@ -2236,6 +2784,139 @@ export interface RdbmsApiGenerateDemoDataRequest {
|
|
|
2236
2784
|
readonly accountName: string
|
|
2237
2785
|
}
|
|
2238
2786
|
|
|
2787
|
+
/**
|
|
2788
|
+
* Request parameters for getAccountObjectPrivilegeCapabilities operation in RdbmsApi.
|
|
2789
|
+
* @export
|
|
2790
|
+
* @interface RdbmsApiGetAccountObjectPrivilegeCapabilitiesRequest
|
|
2791
|
+
*/
|
|
2792
|
+
export interface RdbmsApiGetAccountObjectPrivilegeCapabilitiesRequest {
|
|
2793
|
+
/**
|
|
2794
|
+
*
|
|
2795
|
+
* @type {string}
|
|
2796
|
+
* @memberof RdbmsApiGetAccountObjectPrivilegeCapabilities
|
|
2797
|
+
*/
|
|
2798
|
+
readonly engineName: string
|
|
2799
|
+
|
|
2800
|
+
/**
|
|
2801
|
+
*
|
|
2802
|
+
* @type {string}
|
|
2803
|
+
* @memberof RdbmsApiGetAccountObjectPrivilegeCapabilities
|
|
2804
|
+
*/
|
|
2805
|
+
readonly orgName: string
|
|
2806
|
+
|
|
2807
|
+
/**
|
|
2808
|
+
*
|
|
2809
|
+
* @type {string}
|
|
2810
|
+
* @memberof RdbmsApiGetAccountObjectPrivilegeCapabilities
|
|
2811
|
+
*/
|
|
2812
|
+
readonly clusterName: string
|
|
2813
|
+
|
|
2814
|
+
/**
|
|
2815
|
+
*
|
|
2816
|
+
* @type {string}
|
|
2817
|
+
* @memberof RdbmsApiGetAccountObjectPrivilegeCapabilities
|
|
2818
|
+
*/
|
|
2819
|
+
readonly accountName: string
|
|
2820
|
+
}
|
|
2821
|
+
|
|
2822
|
+
/**
|
|
2823
|
+
* Request parameters for getAccountObjectPrivileges operation in RdbmsApi.
|
|
2824
|
+
* @export
|
|
2825
|
+
* @interface RdbmsApiGetAccountObjectPrivilegesRequest
|
|
2826
|
+
*/
|
|
2827
|
+
export interface RdbmsApiGetAccountObjectPrivilegesRequest {
|
|
2828
|
+
/**
|
|
2829
|
+
*
|
|
2830
|
+
* @type {string}
|
|
2831
|
+
* @memberof RdbmsApiGetAccountObjectPrivileges
|
|
2832
|
+
*/
|
|
2833
|
+
readonly engineName: string
|
|
2834
|
+
|
|
2835
|
+
/**
|
|
2836
|
+
*
|
|
2837
|
+
* @type {string}
|
|
2838
|
+
* @memberof RdbmsApiGetAccountObjectPrivileges
|
|
2839
|
+
*/
|
|
2840
|
+
readonly orgName: string
|
|
2841
|
+
|
|
2842
|
+
/**
|
|
2843
|
+
*
|
|
2844
|
+
* @type {string}
|
|
2845
|
+
* @memberof RdbmsApiGetAccountObjectPrivileges
|
|
2846
|
+
*/
|
|
2847
|
+
readonly clusterName: string
|
|
2848
|
+
|
|
2849
|
+
/**
|
|
2850
|
+
*
|
|
2851
|
+
* @type {string}
|
|
2852
|
+
* @memberof RdbmsApiGetAccountObjectPrivileges
|
|
2853
|
+
*/
|
|
2854
|
+
readonly accountName: string
|
|
2855
|
+
|
|
2856
|
+
/**
|
|
2857
|
+
*
|
|
2858
|
+
* @type {string}
|
|
2859
|
+
* @memberof RdbmsApiGetAccountObjectPrivileges
|
|
2860
|
+
*/
|
|
2861
|
+
readonly objectType: string
|
|
2862
|
+
|
|
2863
|
+
/**
|
|
2864
|
+
*
|
|
2865
|
+
* @type {string}
|
|
2866
|
+
* @memberof RdbmsApiGetAccountObjectPrivileges
|
|
2867
|
+
*/
|
|
2868
|
+
readonly databaseName?: string
|
|
2869
|
+
|
|
2870
|
+
/**
|
|
2871
|
+
*
|
|
2872
|
+
* @type {string}
|
|
2873
|
+
* @memberof RdbmsApiGetAccountObjectPrivileges
|
|
2874
|
+
*/
|
|
2875
|
+
readonly schemaName?: string
|
|
2876
|
+
|
|
2877
|
+
/**
|
|
2878
|
+
*
|
|
2879
|
+
* @type {string}
|
|
2880
|
+
* @memberof RdbmsApiGetAccountObjectPrivileges
|
|
2881
|
+
*/
|
|
2882
|
+
readonly objectName?: string
|
|
2883
|
+
|
|
2884
|
+
/**
|
|
2885
|
+
*
|
|
2886
|
+
* @type {string}
|
|
2887
|
+
* @memberof RdbmsApiGetAccountObjectPrivileges
|
|
2888
|
+
*/
|
|
2889
|
+
readonly objectId?: string
|
|
2890
|
+
|
|
2891
|
+
/**
|
|
2892
|
+
* Native subject kind; path account name identifies the subject.
|
|
2893
|
+
* @type {ObjectPrivilegeSubjectType}
|
|
2894
|
+
* @memberof RdbmsApiGetAccountObjectPrivileges
|
|
2895
|
+
*/
|
|
2896
|
+
readonly subjectType?: ObjectPrivilegeSubjectType
|
|
2897
|
+
|
|
2898
|
+
/**
|
|
2899
|
+
* Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
|
|
2900
|
+
* @type {string}
|
|
2901
|
+
* @memberof RdbmsApiGetAccountObjectPrivileges
|
|
2902
|
+
*/
|
|
2903
|
+
readonly host?: string
|
|
2904
|
+
|
|
2905
|
+
/**
|
|
2906
|
+
*
|
|
2907
|
+
* @type {string}
|
|
2908
|
+
* @memberof RdbmsApiGetAccountObjectPrivileges
|
|
2909
|
+
*/
|
|
2910
|
+
readonly catalogName?: string
|
|
2911
|
+
|
|
2912
|
+
/**
|
|
2913
|
+
* JSON object of string identity qualifiers, e.g. {\"host\":\"%\"}. Allowed keys and defaults come from capabilities. Unknown keys or duplicate identity inputs are rejected.
|
|
2914
|
+
* @type {string}
|
|
2915
|
+
* @memberof RdbmsApiGetAccountObjectPrivileges
|
|
2916
|
+
*/
|
|
2917
|
+
readonly subjectQualifiers?: string
|
|
2918
|
+
}
|
|
2919
|
+
|
|
2239
2920
|
/**
|
|
2240
2921
|
* Request parameters for getDatabase operation in RdbmsApi.
|
|
2241
2922
|
* @export
|
|
@@ -2397,6 +3078,83 @@ export interface RdbmsApiKillSessionRequest {
|
|
|
2397
3078
|
readonly keep?: boolean
|
|
2398
3079
|
}
|
|
2399
3080
|
|
|
3081
|
+
/**
|
|
3082
|
+
* Request parameters for listAccountObjectPrivilegeObjects operation in RdbmsApi.
|
|
3083
|
+
* @export
|
|
3084
|
+
* @interface RdbmsApiListAccountObjectPrivilegeObjectsRequest
|
|
3085
|
+
*/
|
|
3086
|
+
export interface RdbmsApiListAccountObjectPrivilegeObjectsRequest {
|
|
3087
|
+
/**
|
|
3088
|
+
*
|
|
3089
|
+
* @type {string}
|
|
3090
|
+
* @memberof RdbmsApiListAccountObjectPrivilegeObjects
|
|
3091
|
+
*/
|
|
3092
|
+
readonly engineName: string
|
|
3093
|
+
|
|
3094
|
+
/**
|
|
3095
|
+
*
|
|
3096
|
+
* @type {string}
|
|
3097
|
+
* @memberof RdbmsApiListAccountObjectPrivilegeObjects
|
|
3098
|
+
*/
|
|
3099
|
+
readonly orgName: string
|
|
3100
|
+
|
|
3101
|
+
/**
|
|
3102
|
+
*
|
|
3103
|
+
* @type {string}
|
|
3104
|
+
* @memberof RdbmsApiListAccountObjectPrivilegeObjects
|
|
3105
|
+
*/
|
|
3106
|
+
readonly clusterName: string
|
|
3107
|
+
|
|
3108
|
+
/**
|
|
3109
|
+
*
|
|
3110
|
+
* @type {string}
|
|
3111
|
+
* @memberof RdbmsApiListAccountObjectPrivilegeObjects
|
|
3112
|
+
*/
|
|
3113
|
+
readonly accountName: string
|
|
3114
|
+
|
|
3115
|
+
/**
|
|
3116
|
+
*
|
|
3117
|
+
* @type {string}
|
|
3118
|
+
* @memberof RdbmsApiListAccountObjectPrivilegeObjects
|
|
3119
|
+
*/
|
|
3120
|
+
readonly objectType: string
|
|
3121
|
+
|
|
3122
|
+
/**
|
|
3123
|
+
*
|
|
3124
|
+
* @type {string}
|
|
3125
|
+
* @memberof RdbmsApiListAccountObjectPrivilegeObjects
|
|
3126
|
+
*/
|
|
3127
|
+
readonly databaseName?: string
|
|
3128
|
+
|
|
3129
|
+
/**
|
|
3130
|
+
*
|
|
3131
|
+
* @type {string}
|
|
3132
|
+
* @memberof RdbmsApiListAccountObjectPrivilegeObjects
|
|
3133
|
+
*/
|
|
3134
|
+
readonly schemaName?: string
|
|
3135
|
+
|
|
3136
|
+
/**
|
|
3137
|
+
*
|
|
3138
|
+
* @type {number}
|
|
3139
|
+
* @memberof RdbmsApiListAccountObjectPrivilegeObjects
|
|
3140
|
+
*/
|
|
3141
|
+
readonly offset?: number
|
|
3142
|
+
|
|
3143
|
+
/**
|
|
3144
|
+
*
|
|
3145
|
+
* @type {number}
|
|
3146
|
+
* @memberof RdbmsApiListAccountObjectPrivilegeObjects
|
|
3147
|
+
*/
|
|
3148
|
+
readonly limit?: number
|
|
3149
|
+
|
|
3150
|
+
/**
|
|
3151
|
+
*
|
|
3152
|
+
* @type {string}
|
|
3153
|
+
* @memberof RdbmsApiListAccountObjectPrivilegeObjects
|
|
3154
|
+
*/
|
|
3155
|
+
readonly catalogName?: string
|
|
3156
|
+
}
|
|
3157
|
+
|
|
2400
3158
|
/**
|
|
2401
3159
|
* Request parameters for listAccounts operation in RdbmsApi.
|
|
2402
3160
|
* @export
|
|
@@ -2768,6 +3526,18 @@ export interface RdbmsApiUpdateServiceAccountRequest {
|
|
|
2768
3526
|
* @extends {BaseAPI}
|
|
2769
3527
|
*/
|
|
2770
3528
|
export class RdbmsApi extends BaseAPI implements RdbmsApiInterface {
|
|
3529
|
+
/**
|
|
3530
|
+
* Native object GRANT/REVOKE alongside presets. Consult capabilities for engine/version-specific object types and privileges. PostgreSQL RESTRICT is the default; MySQL static GRANT OPTION is scope-wide.
|
|
3531
|
+
* @summary Grant or revoke native object and column privileges
|
|
3532
|
+
* @param {RdbmsApiChangeAccountObjectPrivilegesRequest} requestParameters Request parameters.
|
|
3533
|
+
* @param {*} [options] Override http request option.
|
|
3534
|
+
* @throws {RequiredError}
|
|
3535
|
+
* @memberof RdbmsApi
|
|
3536
|
+
*/
|
|
3537
|
+
public changeAccountObjectPrivileges(requestParameters: RdbmsApiChangeAccountObjectPrivilegesRequest, options?: RawAxiosRequestConfig) {
|
|
3538
|
+
return RdbmsApiFp(this.configuration).changeAccountObjectPrivileges(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, requestParameters.subjectType, requestParameters.host, requestParameters.subjectQualifiers, options).then((request) => request(this.axios, this.basePath));
|
|
3539
|
+
}
|
|
3540
|
+
|
|
2771
3541
|
/**
|
|
2772
3542
|
* create an account in cluster
|
|
2773
3543
|
* @summary Create cluster account
|
|
@@ -2852,6 +3622,30 @@ export class RdbmsApi extends BaseAPI implements RdbmsApiInterface {
|
|
|
2852
3622
|
return RdbmsApiFp(this.configuration).generateDemoData(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(this.axios, this.basePath));
|
|
2853
3623
|
}
|
|
2854
3624
|
|
|
3625
|
+
/**
|
|
3626
|
+
* Native object GRANT/REVOKE alongside presets. Consult capabilities for engine/version-specific object types and privileges. PostgreSQL RESTRICT is the default; MySQL static GRANT OPTION is scope-wide.
|
|
3627
|
+
* @summary List native object privilege capabilities for the connected server
|
|
3628
|
+
* @param {RdbmsApiGetAccountObjectPrivilegeCapabilitiesRequest} requestParameters Request parameters.
|
|
3629
|
+
* @param {*} [options] Override http request option.
|
|
3630
|
+
* @throws {RequiredError}
|
|
3631
|
+
* @memberof RdbmsApi
|
|
3632
|
+
*/
|
|
3633
|
+
public getAccountObjectPrivilegeCapabilities(requestParameters: RdbmsApiGetAccountObjectPrivilegeCapabilitiesRequest, options?: RawAxiosRequestConfig) {
|
|
3634
|
+
return RdbmsApiFp(this.configuration).getAccountObjectPrivilegeCapabilities(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(this.axios, this.basePath));
|
|
3635
|
+
}
|
|
3636
|
+
|
|
3637
|
+
/**
|
|
3638
|
+
* Native object GRANT/REVOKE alongside presets. Consult capabilities for engine/version-specific object types and privileges. PostgreSQL RESTRICT is the default; MySQL static GRANT OPTION is scope-wide.
|
|
3639
|
+
* @summary Inspect native object and column privileges
|
|
3640
|
+
* @param {RdbmsApiGetAccountObjectPrivilegesRequest} requestParameters Request parameters.
|
|
3641
|
+
* @param {*} [options] Override http request option.
|
|
3642
|
+
* @throws {RequiredError}
|
|
3643
|
+
* @memberof RdbmsApi
|
|
3644
|
+
*/
|
|
3645
|
+
public getAccountObjectPrivileges(requestParameters: RdbmsApiGetAccountObjectPrivilegesRequest, options?: RawAxiosRequestConfig) {
|
|
3646
|
+
return RdbmsApiFp(this.configuration).getAccountObjectPrivileges(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.objectType, requestParameters.databaseName, requestParameters.schemaName, requestParameters.objectName, requestParameters.objectId, requestParameters.subjectType, requestParameters.host, requestParameters.catalogName, requestParameters.subjectQualifiers, options).then((request) => request(this.axios, this.basePath));
|
|
3647
|
+
}
|
|
3648
|
+
|
|
2855
3649
|
/**
|
|
2856
3650
|
* get a database info in cluster
|
|
2857
3651
|
* @param {RdbmsApiGetDatabaseRequest} requestParameters Request parameters.
|
|
@@ -2899,6 +3693,18 @@ export class RdbmsApi extends BaseAPI implements RdbmsApiInterface {
|
|
|
2899
3693
|
return RdbmsApiFp(this.configuration).killSession(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.session, requestParameters.keep, options).then((request) => request(this.axios, this.basePath));
|
|
2900
3694
|
}
|
|
2901
3695
|
|
|
3696
|
+
/**
|
|
3697
|
+
* Lists existing objects of one supported kind. Pagination is not a fixed snapshot. PostgreSQL requires a connection database; schema-contained kinds require schemaName. MySQL global/database listing omits databaseName; other kinds require it.
|
|
3698
|
+
* @summary Discover existing native privilege objects with stable routine identities
|
|
3699
|
+
* @param {RdbmsApiListAccountObjectPrivilegeObjectsRequest} requestParameters Request parameters.
|
|
3700
|
+
* @param {*} [options] Override http request option.
|
|
3701
|
+
* @throws {RequiredError}
|
|
3702
|
+
* @memberof RdbmsApi
|
|
3703
|
+
*/
|
|
3704
|
+
public listAccountObjectPrivilegeObjects(requestParameters: RdbmsApiListAccountObjectPrivilegeObjectsRequest, options?: RawAxiosRequestConfig) {
|
|
3705
|
+
return RdbmsApiFp(this.configuration).listAccountObjectPrivilegeObjects(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.objectType, requestParameters.databaseName, requestParameters.schemaName, requestParameters.offset, requestParameters.limit, requestParameters.catalogName, options).then((request) => request(this.axios, this.basePath));
|
|
3706
|
+
}
|
|
3707
|
+
|
|
2902
3708
|
/**
|
|
2903
3709
|
* list accounts in cluster
|
|
2904
3710
|
* @summary List cluster accounts
|