API generation

This commit is contained in:
delvedor
2021-04-26 16:50:53 +02:00
parent 265eb2b225
commit 0d1e1c2613
9 changed files with 639 additions and 36 deletions

65
api/api/fleet.js Normal file
View File

@ -0,0 +1,65 @@
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
'use strict'
/* eslint camelcase: 0 */
/* eslint no-unused-vars: 0 */
const { handleError, snakeCaseKeys, normalizeArguments, kConfigurationError } = require('../utils')
const acceptedQuerystring = ['wait_for_advance', 'wait_for_index', 'checkpoints', 'timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path']
const snakeCase = { waitForAdvance: 'wait_for_advance', waitForIndex: 'wait_for_index', errorTrace: 'error_trace', filterPath: 'filter_path' }
function FleetApi (transport, ConfigurationError) {
this.transport = transport
this[kConfigurationError] = ConfigurationError
}
FleetApi.prototype.globalCheckpoints = function fleetGlobalCheckpointsApi (params, options, callback) {
;[params, options, callback] = normalizeArguments(params, options, callback)
// check required parameters
if (params.index == null) {
const err = new this[kConfigurationError]('Missing required parameter: index')
return handleError(err, callback)
}
let { method, body, index, ...querystring } = params
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
let path = ''
if (method == null) method = 'GET'
path = '/' + encodeURIComponent(index) + '/' + '_fleet' + '/' + 'global_checkpoints'
// build request object
const request = {
method,
path,
body: null,
querystring
}
return this.transport.request(request, options, callback)
}
Object.defineProperties(FleetApi.prototype, {
global_checkpoints: { get () { return this.globalCheckpoints } }
})
module.exports = FleetApi

View File

@ -56,7 +56,7 @@ MonitoringApi.prototype.bulk = function monitoringBulkApi (params, options, call
const request = {
method,
path,
body: body || '',
bulkBody: body,
querystring
}

View File

@ -23,14 +23,40 @@
/* eslint no-unused-vars: 0 */
const { handleError, snakeCaseKeys, normalizeArguments, kConfigurationError } = require('../utils')
const acceptedQuerystring = ['ignore_unavailable', 'allow_no_indices', 'expand_wildcards', 'index', 'pretty', 'human', 'error_trace', 'source', 'filter_path', 'master_timeout', 'wait_for_completion', 'storage', 'level']
const snakeCase = { ignoreUnavailable: 'ignore_unavailable', allowNoIndices: 'allow_no_indices', expandWildcards: 'expand_wildcards', errorTrace: 'error_trace', filterPath: 'filter_path', masterTimeout: 'master_timeout', waitForCompletion: 'wait_for_completion' }
const acceptedQuerystring = ['pretty', 'human', 'error_trace', 'source', 'filter_path', 'ignore_unavailable', 'allow_no_indices', 'expand_wildcards', 'index', 'master_timeout', 'wait_for_completion', 'storage', 'level']
const snakeCase = { errorTrace: 'error_trace', filterPath: 'filter_path', ignoreUnavailable: 'ignore_unavailable', allowNoIndices: 'allow_no_indices', expandWildcards: 'expand_wildcards', masterTimeout: 'master_timeout', waitForCompletion: 'wait_for_completion' }
function SearchableSnapshotsApi (transport, ConfigurationError) {
this.transport = transport
this[kConfigurationError] = ConfigurationError
}
SearchableSnapshotsApi.prototype.cacheStats = function searchableSnapshotsCacheStatsApi (params, options, callback) {
;[params, options, callback] = normalizeArguments(params, options, callback)
let { method, body, nodeId, node_id, ...querystring } = params
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
let path = ''
if ((node_id || nodeId) != null) {
if (method == null) method = 'GET'
path = '/' + '_searchable_snapshots' + '/' + encodeURIComponent(node_id || nodeId) + '/' + 'cache' + '/' + 'stats'
} else {
if (method == null) method = 'GET'
path = '/' + '_searchable_snapshots' + '/' + 'cache' + '/' + 'stats'
}
// build request object
const request = {
method,
path,
body: null,
querystring
}
return this.transport.request(request, options, callback)
}
SearchableSnapshotsApi.prototype.clearCache = function searchableSnapshotsClearCacheApi (params, options, callback) {
;[params, options, callback] = normalizeArguments(params, options, callback)
@ -125,6 +151,7 @@ SearchableSnapshotsApi.prototype.stats = function searchableSnapshotsStatsApi (p
}
Object.defineProperties(SearchableSnapshotsApi.prototype, {
cache_stats: { get () { return this.cacheStats } },
clear_cache: { get () { return this.clearCache } }
})

View File

@ -192,6 +192,50 @@ SecurityApi.prototype.clearCachedRoles = function securityClearCachedRolesApi (p
return this.transport.request(request, options, callback)
}
SecurityApi.prototype.clearCachedServiceTokens = function securityClearCachedServiceTokensApi (params, options, callback) {
;[params, options, callback] = normalizeArguments(params, options, callback)
// check required parameters
if (params.namespace == null) {
const err = new this[kConfigurationError]('Missing required parameter: namespace')
return handleError(err, callback)
}
if (params.service == null) {
const err = new this[kConfigurationError]('Missing required parameter: service')
return handleError(err, callback)
}
if (params.name == null) {
const err = new this[kConfigurationError]('Missing required parameter: name')
return handleError(err, callback)
}
// check required url components
if (params.name != null && (params.service == null || params.namespace == null)) {
const err = new this[kConfigurationError]('Missing required parameter of the url: service, namespace')
return handleError(err, callback)
} else if (params.service != null && (params.namespace == null)) {
const err = new this[kConfigurationError]('Missing required parameter of the url: namespace')
return handleError(err, callback)
}
let { method, body, namespace, service, name, ...querystring } = params
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
let path = ''
if (method == null) method = 'POST'
path = '/' + '_security' + '/' + 'service' + '/' + encodeURIComponent(namespace) + '/' + encodeURIComponent(service) + '/' + 'credential' + '/' + 'token' + '/' + encodeURIComponent(name) + '/' + '_clear_cache'
// build request object
const request = {
method,
path,
body: body || '',
querystring
}
return this.transport.request(request, options, callback)
}
SecurityApi.prototype.createApiKey = function securityCreateApiKeyApi (params, options, callback) {
;[params, options, callback] = normalizeArguments(params, options, callback)
@ -219,6 +263,51 @@ SecurityApi.prototype.createApiKey = function securityCreateApiKeyApi (params, o
return this.transport.request(request, options, callback)
}
SecurityApi.prototype.createServiceToken = function securityCreateServiceTokenApi (params, options, callback) {
;[params, options, callback] = normalizeArguments(params, options, callback)
// check required parameters
if (params.namespace == null) {
const err = new this[kConfigurationError]('Missing required parameter: namespace')
return handleError(err, callback)
}
if (params.service == null) {
const err = new this[kConfigurationError]('Missing required parameter: service')
return handleError(err, callback)
}
// check required url components
if (params.name != null && (params.service == null || params.namespace == null)) {
const err = new this[kConfigurationError]('Missing required parameter of the url: service, namespace')
return handleError(err, callback)
} else if (params.service != null && (params.namespace == null)) {
const err = new this[kConfigurationError]('Missing required parameter of the url: namespace')
return handleError(err, callback)
}
let { method, body, namespace, service, name, ...querystring } = params
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
let path = ''
if ((namespace) != null && (service) != null && (name) != null) {
if (method == null) method = 'PUT'
path = '/' + '_security' + '/' + 'service' + '/' + encodeURIComponent(namespace) + '/' + encodeURIComponent(service) + '/' + 'credential' + '/' + 'token' + '/' + encodeURIComponent(name)
} else {
if (method == null) method = 'POST'
path = '/' + '_security' + '/' + 'service' + '/' + encodeURIComponent(namespace) + '/' + encodeURIComponent(service) + '/' + 'credential' + '/' + 'token'
}
// build request object
const request = {
method,
path,
body: body || '',
querystring
}
return this.transport.request(request, options, callback)
}
SecurityApi.prototype.deletePrivileges = function securityDeletePrivilegesApi (params, options, callback) {
;[params, options, callback] = normalizeArguments(params, options, callback)
@ -310,6 +399,50 @@ SecurityApi.prototype.deleteRoleMapping = function securityDeleteRoleMappingApi
return this.transport.request(request, options, callback)
}
SecurityApi.prototype.deleteServiceToken = function securityDeleteServiceTokenApi (params, options, callback) {
;[params, options, callback] = normalizeArguments(params, options, callback)
// check required parameters
if (params.namespace == null) {
const err = new this[kConfigurationError]('Missing required parameter: namespace')
return handleError(err, callback)
}
if (params.service == null) {
const err = new this[kConfigurationError]('Missing required parameter: service')
return handleError(err, callback)
}
if (params.name == null) {
const err = new this[kConfigurationError]('Missing required parameter: name')
return handleError(err, callback)
}
// check required url components
if (params.name != null && (params.service == null || params.namespace == null)) {
const err = new this[kConfigurationError]('Missing required parameter of the url: service, namespace')
return handleError(err, callback)
} else if (params.service != null && (params.namespace == null)) {
const err = new this[kConfigurationError]('Missing required parameter of the url: namespace')
return handleError(err, callback)
}
let { method, body, namespace, service, name, ...querystring } = params
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
let path = ''
if (method == null) method = 'DELETE'
path = '/' + '_security' + '/' + 'service' + '/' + encodeURIComponent(namespace) + '/' + encodeURIComponent(service) + '/' + 'credential' + '/' + 'token' + '/' + encodeURIComponent(name)
// build request object
const request = {
method,
path,
body: body || '',
querystring
}
return this.transport.request(request, options, callback)
}
SecurityApi.prototype.deleteUser = function securityDeleteUserApi (params, options, callback) {
;[params, options, callback] = normalizeArguments(params, options, callback)
@ -520,6 +653,78 @@ SecurityApi.prototype.getRoleMapping = function securityGetRoleMappingApi (param
return this.transport.request(request, options, callback)
}
SecurityApi.prototype.getServiceAccounts = function securityGetServiceAccountsApi (params, options, callback) {
;[params, options, callback] = normalizeArguments(params, options, callback)
// check required url components
if (params.service != null && (params.namespace == null)) {
const err = new this[kConfigurationError]('Missing required parameter of the url: namespace')
return handleError(err, callback)
}
let { method, body, namespace, service, ...querystring } = params
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
let path = ''
if ((namespace) != null && (service) != null) {
if (method == null) method = 'GET'
path = '/' + '_security' + '/' + 'service' + '/' + encodeURIComponent(namespace) + '/' + encodeURIComponent(service)
} else if ((namespace) != null) {
if (method == null) method = 'GET'
path = '/' + '_security' + '/' + 'service' + '/' + encodeURIComponent(namespace)
} else {
if (method == null) method = 'GET'
path = '/' + '_security' + '/' + 'service'
}
// build request object
const request = {
method,
path,
body: null,
querystring
}
return this.transport.request(request, options, callback)
}
SecurityApi.prototype.getServiceCredentials = function securityGetServiceCredentialsApi (params, options, callback) {
;[params, options, callback] = normalizeArguments(params, options, callback)
// check required parameters
if (params.namespace == null) {
const err = new this[kConfigurationError]('Missing required parameter: namespace')
return handleError(err, callback)
}
if (params.service == null) {
const err = new this[kConfigurationError]('Missing required parameter: service')
return handleError(err, callback)
}
// check required url components
if (params.service != null && (params.namespace == null)) {
const err = new this[kConfigurationError]('Missing required parameter of the url: namespace')
return handleError(err, callback)
}
let { method, body, namespace, service, ...querystring } = params
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
let path = ''
if (method == null) method = 'GET'
path = '/' + '_security' + '/' + 'service' + '/' + encodeURIComponent(namespace) + '/' + encodeURIComponent(service) + '/' + 'credential'
// build request object
const request = {
method,
path,
body: null,
querystring
}
return this.transport.request(request, options, callback)
}
SecurityApi.prototype.getToken = function securityGetTokenApi (params, options, callback) {
;[params, options, callback] = normalizeArguments(params, options, callback)
@ -833,10 +1038,13 @@ Object.defineProperties(SecurityApi.prototype, {
clear_cached_privileges: { get () { return this.clearCachedPrivileges } },
clear_cached_realms: { get () { return this.clearCachedRealms } },
clear_cached_roles: { get () { return this.clearCachedRoles } },
clear_cached_service_tokens: { get () { return this.clearCachedServiceTokens } },
create_api_key: { get () { return this.createApiKey } },
create_service_token: { get () { return this.createServiceToken } },
delete_privileges: { get () { return this.deletePrivileges } },
delete_role: { get () { return this.deleteRole } },
delete_role_mapping: { get () { return this.deleteRoleMapping } },
delete_service_token: { get () { return this.deleteServiceToken } },
delete_user: { get () { return this.deleteUser } },
disable_user: { get () { return this.disableUser } },
enable_user: { get () { return this.enableUser } },
@ -845,6 +1053,8 @@ Object.defineProperties(SecurityApi.prototype, {
get_privileges: { get () { return this.getPrivileges } },
get_role: { get () { return this.getRole } },
get_role_mapping: { get () { return this.getRoleMapping } },
get_service_accounts: { get () { return this.getServiceAccounts } },
get_service_credentials: { get () { return this.getServiceCredentials } },
get_token: { get () { return this.getToken } },
get_user: { get () { return this.getUser } },
get_user_privileges: { get () { return this.getUserPrivileges } },

View File

@ -23,8 +23,8 @@
/* eslint no-unused-vars: 0 */
const { handleError, snakeCaseKeys, normalizeArguments, kConfigurationError } = require('../utils')
const acceptedQuerystring = ['master_timeout', 'timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path', 'wait_for_completion', 'verify', 'ignore_unavailable', 'verbose', 'local']
const snakeCase = { masterTimeout: 'master_timeout', errorTrace: 'error_trace', filterPath: 'filter_path', waitForCompletion: 'wait_for_completion', ignoreUnavailable: 'ignore_unavailable' }
const acceptedQuerystring = ['master_timeout', 'timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path', 'wait_for_completion', 'verify', 'ignore_unavailable', 'index_details', 'verbose', 'local']
const snakeCase = { masterTimeout: 'master_timeout', errorTrace: 'error_trace', filterPath: 'filter_path', waitForCompletion: 'wait_for_completion', ignoreUnavailable: 'ignore_unavailable', indexDetails: 'index_details' }
function SnapshotApi (transport, ConfigurationError) {
this.transport = transport

View File

@ -41,6 +41,7 @@ const existsSourceApi = require('./api/exists_source')
const explainApi = require('./api/explain')
const FeaturesApi = require('./api/features')
const fieldCapsApi = require('./api/field_caps')
const FleetApi = require('./api/fleet')
const getApi = require('./api/get')
const getScriptApi = require('./api/get_script')
const getScriptContextApi = require('./api/get_script_context')
@ -102,6 +103,7 @@ const kDanglingIndices = Symbol('DanglingIndices')
const kEnrich = Symbol('Enrich')
const kEql = Symbol('Eql')
const kFeatures = Symbol('Features')
const kFleet = Symbol('Fleet')
const kGraph = Symbol('Graph')
const kIlm = Symbol('Ilm')
const kIndices = Symbol('Indices')
@ -137,6 +139,7 @@ function ESAPI (opts) {
this[kEnrich] = null
this[kEql] = null
this[kFeatures] = null
this[kFleet] = null
this[kGraph] = null
this[kIlm] = null
this[kIndices] = null
@ -285,6 +288,14 @@ Object.defineProperties(ESAPI.prototype, {
}
},
field_caps: { get () { return this.fieldCaps } },
fleet: {
get () {
if (this[kFleet] === null) {
this[kFleet] = new FleetApi(this.transport, this[kConfigurationError])
}
return this[kFleet]
}
},
get_script: { get () { return this.getScript } },
get_script_context: { get () { return this.getScriptContext } },
get_script_languages: { get () { return this.getScriptLanguages } },

View File

@ -810,6 +810,14 @@ export interface FieldCaps<T = RequestBody> extends Generic {
body?: T;
}
export interface FleetGlobalCheckpoints extends Generic {
index: string;
wait_for_advance?: boolean;
wait_for_index?: boolean;
checkpoints?: string | string[];
timeout?: string;
}
export interface Get extends Generic {
id: string;
index: string;
@ -1869,7 +1877,7 @@ export interface MlValidateDetector<T = RequestBody> extends Generic {
body: T;
}
export interface MonitoringBulk<T = RequestBody> extends Generic {
export interface MonitoringBulk<T = RequestNDBody> extends Generic {
type?: string;
system_id?: string;
system_api_version?: string;
@ -1879,7 +1887,7 @@ export interface MonitoringBulk<T = RequestBody> extends Generic {
export interface Msearch<T = RequestNDBody> extends Generic {
index?: string | string[];
search_type?: 'query_then_fetch' | 'query_and_fetch' | 'dfs_query_then_fetch' | 'dfs_query_and_fetch';
search_type?: 'query_then_fetch' | 'dfs_query_then_fetch';
max_concurrent_searches?: number;
typed_keys?: boolean;
pre_filter_shard_size?: number;
@ -1891,7 +1899,7 @@ export interface Msearch<T = RequestNDBody> extends Generic {
export interface MsearchTemplate<T = RequestNDBody> extends Generic {
index?: string | string[];
search_type?: 'query_then_fetch' | 'query_and_fetch' | 'dfs_query_then_fetch' | 'dfs_query_and_fetch';
search_type?: 'query_then_fetch' | 'dfs_query_then_fetch';
typed_keys?: boolean;
max_concurrent_searches?: number;
rest_total_hits_as_int?: boolean;
@ -2136,7 +2144,7 @@ export interface SearchTemplate<T = RequestBody> extends Generic {
preference?: string;
routing?: string | string[];
scroll?: string;
search_type?: 'query_then_fetch' | 'query_and_fetch' | 'dfs_query_then_fetch' | 'dfs_query_and_fetch';
search_type?: 'query_then_fetch' | 'dfs_query_then_fetch';
explain?: boolean;
profile?: boolean;
typed_keys?: boolean;
@ -2145,6 +2153,10 @@ export interface SearchTemplate<T = RequestBody> extends Generic {
body: T;
}
export interface SearchableSnapshotsCacheStats extends Generic {
node_id?: string | string[];
}
export interface SearchableSnapshotsClearCache extends Generic {
index?: string | string[];
ignore_unavailable?: boolean;
@ -2192,11 +2204,24 @@ export interface SecurityClearCachedRoles extends Generic {
name: string | string[];
}
export interface SecurityClearCachedServiceTokens extends Generic {
namespace: string;
service: string;
name: string | string[];
}
export interface SecurityCreateApiKey<T = RequestBody> extends Generic {
refresh?: 'wait_for' | boolean;
body: T;
}
export interface SecurityCreateServiceToken extends Generic {
namespace: string;
service: string;
name?: string;
refresh?: 'wait_for' | boolean;
}
export interface SecurityDeletePrivileges extends Generic {
application: string;
name: string;
@ -2213,6 +2238,13 @@ export interface SecurityDeleteRoleMapping extends Generic {
refresh?: 'wait_for' | boolean;
}
export interface SecurityDeleteServiceToken extends Generic {
namespace: string;
service: string;
name: string;
refresh?: 'wait_for' | boolean;
}
export interface SecurityDeleteUser extends Generic {
username: string;
refresh?: 'wait_for' | boolean;
@ -2252,6 +2284,16 @@ export interface SecurityGetRoleMapping extends Generic {
name?: string | string[];
}
export interface SecurityGetServiceAccounts extends Generic {
namespace?: string;
service?: string;
}
export interface SecurityGetServiceCredentials extends Generic {
namespace: string;
service: string;
}
export interface SecurityGetToken<T = RequestBody> extends Generic {
body: T;
}
@ -2396,6 +2438,7 @@ export interface SnapshotGet extends Generic {
snapshot: string | string[];
master_timeout?: string;
ignore_unavailable?: boolean;
index_details?: boolean;
verbose?: boolean;
}

View File

@ -2058,7 +2058,7 @@ client.cluster.getSettings({
include_defaults: boolean
})
----
link:{ref}/cluster-update-settings.html[Documentation] +
link:{ref}/cluster-get-settings.html[Documentation] +
[cols=2*]
|===
|`flat_settings` or `flatSettings`
@ -3293,6 +3293,41 @@ _Default:_ `open`
|===
[discrete]
=== fleet.globalCheckpoints
*Stability:* experimental
[source,ts]
----
client.fleet.globalCheckpoints({
index: string,
wait_for_advance: boolean,
wait_for_index: boolean,
checkpoints: string | string[],
timeout: string
})
----
[cols=2*]
|===
|`index`
|`string` - The name of the index.
|`wait_for_advance` or `waitForAdvance`
|`boolean` - Whether to wait for the global checkpoint to advance past the specified current checkpoints +
_Default:_ `false`
|`wait_for_index` or `waitForIndex`
|`boolean` - Whether to wait for the target index to exist and all primary shards be active +
_Default:_ `false`
|`checkpoints`
|`string \| string[]` - Comma separated list of checkpoints
|`timeout`
|`string` - Timeout to wait for global checkpoint to advance +
_Default:_ `30s`
|===
[discrete]
=== get
@ -6010,7 +6045,7 @@ link:{ref}/ml-delete-calendar-job.html[Documentation] +
[discrete]
=== ml.deleteDataFrameAnalytics
*Stability:* beta
[source,ts]
----
client.ml.deleteDataFrameAnalytics({
@ -6178,7 +6213,7 @@ link:{ref}/ml-delete-snapshot.html[Documentation] +
[discrete]
=== ml.deleteTrainedModel
*Stability:* beta
[source,ts]
----
client.ml.deleteTrainedModel({
@ -6195,7 +6230,7 @@ link:{ref}/delete-trained-models.html[Documentation] +
[discrete]
=== ml.deleteTrainedModelAlias
*Stability:* beta
[source,ts]
----
client.ml.deleteTrainedModelAlias({
@ -6233,7 +6268,7 @@ link:{ref}/ml-apis.html[Documentation] +
[discrete]
=== ml.evaluateDataFrame
*Stability:* beta
[source,ts]
----
client.ml.evaluateDataFrame({
@ -6250,7 +6285,7 @@ link:{ref}/evaluate-dfanalytics.html[Documentation] +
[discrete]
=== ml.explainDataFrameAnalytics
*Stability:* beta
[source,ts]
----
client.ml.explainDataFrameAnalytics({
@ -6505,7 +6540,7 @@ link:{ref}/ml-get-category.html[Documentation] +
[discrete]
=== ml.getDataFrameAnalytics
*Stability:* beta
[source,ts]
----
client.ml.getDataFrameAnalytics({
@ -6540,7 +6575,7 @@ _Default:_ `100`
[discrete]
=== ml.getDataFrameAnalyticsStats
*Stability:* beta
[source,ts]
----
client.ml.getDataFrameAnalyticsStats({
@ -6926,7 +6961,7 @@ link:{ref}/ml-get-record.html[Documentation] +
[discrete]
=== ml.getTrainedModels
*Stability:* beta
[source,ts]
----
client.ml.getTrainedModels({
@ -6980,7 +7015,7 @@ _Default:_ `100`
[discrete]
=== ml.getTrainedModelsStats
*Stability:* beta
[source,ts]
----
client.ml.getTrainedModelsStats({
@ -7088,7 +7123,7 @@ link:{ref}/ml-post-data.html[Documentation] +
[discrete]
=== ml.previewDataFrameAnalytics
*Stability:* beta
[source,ts]
----
client.ml.previewDataFrameAnalytics({
@ -7172,7 +7207,7 @@ link:{ref}/ml-put-calendar-job.html[Documentation] +
[discrete]
=== ml.putDataFrameAnalytics
*Stability:* beta
[source,ts]
----
client.ml.putDataFrameAnalytics({
@ -7272,7 +7307,7 @@ link:{ref}/ml-put-job.html[Documentation] +
[discrete]
=== ml.putTrainedModel
*Stability:* beta
[source,ts]
----
client.ml.putTrainedModel({
@ -7293,7 +7328,7 @@ link:{ref}/put-trained-models.html[Documentation] +
[discrete]
=== ml.putTrainedModelAlias
*Stability:* beta
[source,ts]
----
client.ml.putTrainedModelAlias({
@ -7368,7 +7403,7 @@ link:{ref}/ml-set-upgrade-mode.html[Documentation] +
[discrete]
=== ml.startDataFrameAnalytics
*Stability:* beta
[source,ts]
----
client.ml.startDataFrameAnalytics({
@ -7426,7 +7461,7 @@ link:{ref}/ml-start-datafeed.html[Documentation] +
[discrete]
=== ml.stopDataFrameAnalytics
*Stability:* beta
[source,ts]
----
client.ml.stopDataFrameAnalytics({
@ -7498,7 +7533,7 @@ WARNING: This parameter has been deprecated.
[discrete]
=== ml.updateDataFrameAnalytics
*Stability:* beta
[source,ts]
----
client.ml.updateDataFrameAnalytics({
@ -7726,7 +7761,7 @@ WARNING: This parameter has been deprecated.
----
client.msearch({
index: string | string[],
search_type: 'query_then_fetch' | 'query_and_fetch' | 'dfs_query_then_fetch' | 'dfs_query_and_fetch',
search_type: 'query_then_fetch' | 'dfs_query_then_fetch',
max_concurrent_searches: number,
typed_keys: boolean,
pre_filter_shard_size: number,
@ -7744,7 +7779,7 @@ link:{ref}/search-multi-search.html[Documentation] +
|`string \| string[]` - A comma-separated list of index names to use as default
|`search_type` or `searchType`
|`'query_then_fetch' \| 'query_and_fetch' \| 'dfs_query_then_fetch' \| 'dfs_query_and_fetch'` - Search operation type
|`'query_then_fetch' \| 'dfs_query_then_fetch'` - Search operation type
|`max_concurrent_searches` or `maxConcurrentSearches`
|`number` - Controls the maximum number of concurrent searches the multi search api will execute
@ -7778,7 +7813,7 @@ _Default:_ `true`
----
client.msearchTemplate({
index: string | string[],
search_type: 'query_then_fetch' | 'query_and_fetch' | 'dfs_query_then_fetch' | 'dfs_query_and_fetch',
search_type: 'query_then_fetch' | 'dfs_query_then_fetch',
typed_keys: boolean,
max_concurrent_searches: number,
rest_total_hits_as_int: boolean,
@ -7793,7 +7828,7 @@ link:{ref}/search-multi-search.html[Documentation] +
|`string \| string[]` - A comma-separated list of index names to use as default
|`search_type` or `searchType`
|`'query_then_fetch' \| 'query_and_fetch' \| 'dfs_query_then_fetch' \| 'dfs_query_and_fetch'` - Search operation type
|`'query_then_fetch' \| 'dfs_query_then_fetch'` - Search operation type
|`typed_keys` or `typedKeys`
|`boolean` - Specify whether aggregation and suggester names should be prefixed by their respective types in the response
@ -8780,7 +8815,7 @@ client.searchTemplate({
preference: string,
routing: string | string[],
scroll: string,
search_type: 'query_then_fetch' | 'query_and_fetch' | 'dfs_query_then_fetch' | 'dfs_query_and_fetch',
search_type: 'query_then_fetch' | 'dfs_query_then_fetch',
explain: boolean,
profile: boolean,
typed_keys: boolean,
@ -8818,7 +8853,7 @@ _Default:_ `open`
|`string` - Specify how long a consistent view of the index should be maintained for scrolled search
|`search_type` or `searchType`
|`'query_then_fetch' \| 'query_and_fetch' \| 'dfs_query_then_fetch' \| 'dfs_query_and_fetch'` - Search operation type
|`'query_then_fetch' \| 'dfs_query_then_fetch'` - Search operation type
|`explain`
|`boolean` - Specify whether to return detailed information about score computation as part of a hit
@ -8841,6 +8876,23 @@ _Default:_ `true`
|===
[discrete]
=== searchableSnapshots.cacheStats
*Stability:* experimental
[source,ts]
----
client.searchableSnapshots.cacheStats({
node_id: string | string[]
})
----
link:{ref}/searchable-snapshots-apis.html[Documentation] +
[cols=2*]
|===
|`node_id` or `nodeId`
|`string \| string[]` - A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes
|===
[discrete]
=== searchableSnapshots.clearCache
*Stability:* experimental
@ -9037,6 +9089,31 @@ link:{ref}/security-api-clear-role-cache.html[Documentation] +
|===
[discrete]
=== security.clearCachedServiceTokens
*Stability:* beta
[source,ts]
----
client.security.clearCachedServiceTokens({
namespace: string,
service: string,
name: string | string[]
})
----
link:{ref}/security-api-clear-service-token-caches.html[Documentation] +
[cols=2*]
|===
|`namespace`
|`string` - An identifier for the namespace
|`service`
|`string` - An identifier for the service name
|`name`
|`string \| string[]` - A comma-separated list of service token names
|===
[discrete]
=== security.createApiKey
@ -9058,6 +9135,35 @@ link:{ref}/security-api-create-api-key.html[Documentation] +
|===
[discrete]
=== security.createServiceToken
*Stability:* beta
[source,ts]
----
client.security.createServiceToken({
namespace: string,
service: string,
name: string,
refresh: 'true' | 'false' | 'wait_for'
})
----
link:{ref}/security-api-create-service-token.html[Documentation] +
[cols=2*]
|===
|`namespace`
|`string` - An identifier for the namespace
|`service`
|`string` - An identifier for the service name
|`name`
|`string` - An identifier for the token name
|`refresh`
|`'true' \| 'false' \| 'wait_for'` - If `true` then refresh the affected shards to make this operation visible to search, if `wait_for` (the default) then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes.
|===
[discrete]
=== security.deletePrivileges
@ -9125,6 +9231,35 @@ link:{ref}/security-api-delete-role-mapping.html[Documentation] +
|===
[discrete]
=== security.deleteServiceToken
*Stability:* beta
[source,ts]
----
client.security.deleteServiceToken({
namespace: string,
service: string,
name: string,
refresh: 'true' | 'false' | 'wait_for'
})
----
link:{ref}/security-api-delete-service-token.html[Documentation] +
[cols=2*]
|===
|`namespace`
|`string` - An identifier for the namespace
|`service`
|`string` - An identifier for the service name
|`name`
|`string` - An identifier for the token name
|`refresh`
|`'true' \| 'false' \| 'wait_for'` - If `true` then refresh the affected shards to make this operation visible to search, if `wait_for` (the default) then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes.
|===
[discrete]
=== security.deleteUser
@ -9286,6 +9421,48 @@ link:{ref}/security-api-get-role-mapping.html[Documentation] +
|===
[discrete]
=== security.getServiceAccounts
*Stability:* beta
[source,ts]
----
client.security.getServiceAccounts({
namespace: string,
service: string
})
----
link:{ref}/security-api-get-service-accounts.html[Documentation] +
[cols=2*]
|===
|`namespace`
|`string` - An identifier for the namespace
|`service`
|`string` - An identifier for the service name
|===
[discrete]
=== security.getServiceCredentials
*Stability:* beta
[source,ts]
----
client.security.getServiceCredentials({
namespace: string,
service: string
})
----
link:{ref}/security-api-get-service-credentials.html[Documentation] +
[cols=2*]
|===
|`namespace`
|`string` - An identifier for the namespace
|`service`
|`string` - An identifier for the service name
|===
[discrete]
=== security.getToken
@ -9863,6 +10040,7 @@ client.snapshot.get({
snapshot: string | string[],
master_timeout: string,
ignore_unavailable: boolean,
index_details: boolean,
verbose: boolean
})
----
@ -9881,6 +10059,9 @@ link:{ref}/modules-snapshots.html[Documentation] +
|`ignore_unavailable` or `ignoreUnavailable`
|`boolean` - Whether to ignore unavailable snapshots, defaults to false which means a SnapshotMissingException is thrown
|`index_details` or `indexDetails`
|`boolean` - Whether to include details of each index in the snapshot, if those details are available. Defaults to false.
|`verbose`
|`boolean` - Whether to show verbose snapshot info or only show the basic info found in the repository index blob

74
index.d.ts vendored
View File

@ -747,6 +747,16 @@ declare class Client {
fieldCaps<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
fieldCaps<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params: RequestParams.FieldCaps<TRequestBody>, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
fieldCaps<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params: RequestParams.FieldCaps<TRequestBody>, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
fleet: {
global_checkpoints<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.FleetGlobalCheckpoints, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
global_checkpoints<TResponse = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
global_checkpoints<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.FleetGlobalCheckpoints, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
global_checkpoints<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.FleetGlobalCheckpoints, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
globalCheckpoints<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.FleetGlobalCheckpoints, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
globalCheckpoints<TResponse = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
globalCheckpoints<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.FleetGlobalCheckpoints, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
globalCheckpoints<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.FleetGlobalCheckpoints, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
}
get<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.Get, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
get<TResponse = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
get<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.Get, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
@ -1832,10 +1842,10 @@ declare class Client {
validateDetector<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params: RequestParams.MlValidateDetector<TRequestBody>, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
}
monitoring: {
bulk<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params?: RequestParams.MonitoringBulk<TRequestBody>, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
bulk<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
bulk<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params: RequestParams.MonitoringBulk<TRequestBody>, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
bulk<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params: RequestParams.MonitoringBulk<TRequestBody>, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
bulk<TResponse = Record<string, any>, TRequestBody extends RequestNDBody = Record<string, any>[], TContext = Context>(params?: RequestParams.MonitoringBulk<TRequestBody>, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
bulk<TResponse = Record<string, any>, TRequestBody extends RequestNDBody = Record<string, any>[], TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
bulk<TResponse = Record<string, any>, TRequestBody extends RequestNDBody = Record<string, any>[], TContext = Context>(params: RequestParams.MonitoringBulk<TRequestBody>, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
bulk<TResponse = Record<string, any>, TRequestBody extends RequestNDBody = Record<string, any>[], TContext = Context>(params: RequestParams.MonitoringBulk<TRequestBody>, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
}
msearch<TResponse = Record<string, any>, TRequestBody extends RequestNDBody = Record<string, any>[], TContext = Context>(params?: RequestParams.Msearch<TRequestBody>, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
msearch<TResponse = Record<string, any>, TRequestBody extends RequestNDBody = Record<string, any>[], TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
@ -2034,6 +2044,14 @@ declare class Client {
searchTemplate<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params: RequestParams.SearchTemplate<TRequestBody>, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
searchTemplate<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params: RequestParams.SearchTemplate<TRequestBody>, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
searchable_snapshots: {
cache_stats<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.SearchableSnapshotsCacheStats, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
cache_stats<TResponse = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
cache_stats<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.SearchableSnapshotsCacheStats, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
cache_stats<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.SearchableSnapshotsCacheStats, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
cacheStats<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.SearchableSnapshotsCacheStats, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
cacheStats<TResponse = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
cacheStats<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.SearchableSnapshotsCacheStats, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
cacheStats<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.SearchableSnapshotsCacheStats, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
clear_cache<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.SearchableSnapshotsClearCache, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
clear_cache<TResponse = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
clear_cache<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.SearchableSnapshotsClearCache, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
@ -2052,6 +2070,14 @@ declare class Client {
stats<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.SearchableSnapshotsStats, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
}
searchableSnapshots: {
cache_stats<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.SearchableSnapshotsCacheStats, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
cache_stats<TResponse = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
cache_stats<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.SearchableSnapshotsCacheStats, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
cache_stats<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.SearchableSnapshotsCacheStats, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
cacheStats<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.SearchableSnapshotsCacheStats, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
cacheStats<TResponse = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
cacheStats<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.SearchableSnapshotsCacheStats, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
cacheStats<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.SearchableSnapshotsCacheStats, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
clear_cache<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.SearchableSnapshotsClearCache, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
clear_cache<TResponse = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
clear_cache<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.SearchableSnapshotsClearCache, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
@ -2114,6 +2140,14 @@ declare class Client {
clearCachedRoles<TResponse = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
clearCachedRoles<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.SecurityClearCachedRoles, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
clearCachedRoles<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.SecurityClearCachedRoles, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
clear_cached_service_tokens<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.SecurityClearCachedServiceTokens, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
clear_cached_service_tokens<TResponse = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
clear_cached_service_tokens<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.SecurityClearCachedServiceTokens, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
clear_cached_service_tokens<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.SecurityClearCachedServiceTokens, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
clearCachedServiceTokens<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.SecurityClearCachedServiceTokens, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
clearCachedServiceTokens<TResponse = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
clearCachedServiceTokens<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.SecurityClearCachedServiceTokens, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
clearCachedServiceTokens<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.SecurityClearCachedServiceTokens, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
create_api_key<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params?: RequestParams.SecurityCreateApiKey<TRequestBody>, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
create_api_key<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
create_api_key<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params: RequestParams.SecurityCreateApiKey<TRequestBody>, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
@ -2122,6 +2156,14 @@ declare class Client {
createApiKey<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
createApiKey<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params: RequestParams.SecurityCreateApiKey<TRequestBody>, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
createApiKey<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params: RequestParams.SecurityCreateApiKey<TRequestBody>, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
create_service_token<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.SecurityCreateServiceToken, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
create_service_token<TResponse = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
create_service_token<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.SecurityCreateServiceToken, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
create_service_token<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.SecurityCreateServiceToken, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
createServiceToken<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.SecurityCreateServiceToken, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
createServiceToken<TResponse = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
createServiceToken<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.SecurityCreateServiceToken, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
createServiceToken<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.SecurityCreateServiceToken, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
delete_privileges<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.SecurityDeletePrivileges, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
delete_privileges<TResponse = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
delete_privileges<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.SecurityDeletePrivileges, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
@ -2146,6 +2188,14 @@ declare class Client {
deleteRoleMapping<TResponse = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
deleteRoleMapping<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.SecurityDeleteRoleMapping, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
deleteRoleMapping<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.SecurityDeleteRoleMapping, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
delete_service_token<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.SecurityDeleteServiceToken, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
delete_service_token<TResponse = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
delete_service_token<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.SecurityDeleteServiceToken, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
delete_service_token<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.SecurityDeleteServiceToken, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
deleteServiceToken<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.SecurityDeleteServiceToken, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
deleteServiceToken<TResponse = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
deleteServiceToken<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.SecurityDeleteServiceToken, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
deleteServiceToken<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.SecurityDeleteServiceToken, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
delete_user<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.SecurityDeleteUser, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
delete_user<TResponse = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
delete_user<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.SecurityDeleteUser, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
@ -2210,6 +2260,22 @@ declare class Client {
getRoleMapping<TResponse = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
getRoleMapping<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.SecurityGetRoleMapping, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
getRoleMapping<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.SecurityGetRoleMapping, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
get_service_accounts<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.SecurityGetServiceAccounts, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
get_service_accounts<TResponse = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
get_service_accounts<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.SecurityGetServiceAccounts, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
get_service_accounts<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.SecurityGetServiceAccounts, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
getServiceAccounts<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.SecurityGetServiceAccounts, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
getServiceAccounts<TResponse = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
getServiceAccounts<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.SecurityGetServiceAccounts, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
getServiceAccounts<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.SecurityGetServiceAccounts, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
get_service_credentials<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.SecurityGetServiceCredentials, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
get_service_credentials<TResponse = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
get_service_credentials<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.SecurityGetServiceCredentials, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
get_service_credentials<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.SecurityGetServiceCredentials, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
getServiceCredentials<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.SecurityGetServiceCredentials, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
getServiceCredentials<TResponse = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
getServiceCredentials<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.SecurityGetServiceCredentials, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
getServiceCredentials<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.SecurityGetServiceCredentials, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
get_token<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params?: RequestParams.SecurityGetToken<TRequestBody>, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
get_token<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
get_token<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params: RequestParams.SecurityGetToken<TRequestBody>, callback: callbackFn<TResponse, TContext>): TransportRequestCallback