diff --git a/elasticsearch/_async/client/__init__.py b/elasticsearch/_async/client/__init__.py index a2d3cc795..ca5f8cf05 100644 --- a/elasticsearch/_async/client/__init__.py +++ b/elasticsearch/_async/client/__init__.py @@ -645,7 +645,7 @@ async def bulk( """ Allows to perform multiple index/update/delete operations in a single request. - ``_ + ``_ :param operations: :param index: Name of the data stream, index, or index alias to perform bulk @@ -734,7 +734,7 @@ async def clear_scroll( """ Explicitly clears the search context for a scroll. - ``_ + ``_ :param scroll_id: Scroll IDs to clear. To clear all scroll IDs, use `_all`. """ @@ -777,7 +777,7 @@ async def close_point_in_time( """ Close a point in time - ``_ + ``_ :param id: The ID of the point-in-time. """ @@ -854,7 +854,7 @@ async def count( """ Returns number of documents matching a query. - ``_ + ``_ :param index: Comma-separated list of data streams, indices, and aliases to search. Supports wildcards (`*`). To search all data streams and indices, omit this @@ -979,7 +979,7 @@ async def create( Creates a new document in the index. Returns a 409 response when a document with a same ID already exists in the index. - ``_ + ``_ :param index: Name of the data stream or index to target. If the target doesn’t exist and matches the name or wildcard (`*`) pattern of an index template @@ -1074,7 +1074,7 @@ async def delete( """ Removes a document from the index. - ``_ + ``_ :param index: Name of the target index. :param id: Unique identifier for the document. @@ -1203,7 +1203,7 @@ async def delete_by_query( """ Deletes documents matching the provided query. - ``_ + ``_ :param index: Comma-separated list of data streams, indices, and aliases to search. Supports wildcards (`*`). To search all data streams or indices, omit this @@ -1375,7 +1375,7 @@ async def delete_by_query_rethrottle( """ Changes the number of requests per second for a particular Delete By Query operation. - ``_ + ``_ :param task_id: The ID for the task. :param requests_per_second: The throttle for this request in sub-requests per @@ -1419,7 +1419,7 @@ async def delete_script( """ Deletes a script. - ``_ + ``_ :param id: Identifier for the stored script or search template. :param master_timeout: Period to wait for a connection to the master node. If @@ -1491,7 +1491,7 @@ async def exists( """ Returns information about whether a document exists in an index. - ``_ + ``_ :param index: Comma-separated list of data streams, indices, and aliases. Supports wildcards (`*`). @@ -1594,7 +1594,7 @@ async def exists_source( """ Returns information about whether a document source exists in an index. - ``_ + ``_ :param index: Comma-separated list of data streams, indices, and aliases. Supports wildcards (`*`). @@ -1697,7 +1697,7 @@ async def explain( """ Returns information about why a specific matches (or doesn't match) a query. - ``_ + ``_ :param index: Index names used to limit the request. Only a single index name can be provided to this parameter. @@ -1820,7 +1820,7 @@ async def field_caps( """ Returns the information about the capabilities of fields among multiple indices. - ``_ + ``_ :param index: Comma-separated list of data streams, indices, and aliases used to limit the request. Supports wildcards (*). To target all data streams @@ -1932,7 +1932,7 @@ async def get( """ Returns a document. - ``_ + ``_ :param index: Name of the index that contains the document. :param id: Unique identifier of the document. @@ -2013,7 +2013,7 @@ async def get_script( """ Returns a script. - ``_ + ``_ :param id: Identifier for the stored script or search template. :param master_timeout: Specify timeout for connection to master @@ -2051,7 +2051,7 @@ async def get_script_context( """ Returns all script contexts. - ``_ + ``_ """ __path = "/_script_context" __query: t.Dict[str, t.Any] = {} @@ -2082,7 +2082,7 @@ async def get_script_languages( """ Returns available script types, languages and contexts - ``_ + ``_ """ __path = "/_script_language" __query: t.Dict[str, t.Any] = {} @@ -2141,7 +2141,7 @@ async def get_source( """ Returns the source of a document. - ``_ + ``_ :param index: Name of the index that contains the document. :param id: Unique identifier of the document. @@ -2222,7 +2222,7 @@ async def health_report( """ Returns the health of the cluster. - ``_ + ``_ :param feature: A feature of the cluster, as returned by the top-level health report API. @@ -2290,7 +2290,7 @@ async def index( """ Creates or updates a document in an index. - ``_ + ``_ :param index: Name of the data stream or index to target. :param document: @@ -2388,7 +2388,7 @@ async def info( """ Returns basic information about the cluster. - ``_ + ``_ """ __path = "/" __query: t.Dict[str, t.Any] = {} @@ -2443,7 +2443,7 @@ async def knn_search( """ Performs a kNN search. - ``_ + ``_ :param index: A comma-separated list of index names to search; use `_all` or to perform the operation on all indices @@ -2546,7 +2546,7 @@ async def mget( """ Allows to get multiple documents in one request. - ``_ + ``_ :param index: Name of the index to retrieve documents from when `ids` are specified, or when a document in the `docs` array does not specify an index. @@ -2663,7 +2663,7 @@ async def msearch( """ Allows to execute several search operations in one request. - ``_ + ``_ :param searches: :param index: Comma-separated list of data streams, indices, and index aliases @@ -2776,7 +2776,7 @@ async def msearch_template( """ Allows to execute several search template operations in one request. - ``_ + ``_ :param search_templates: :param index: Comma-separated list of data streams, indices, and aliases to search. @@ -2863,7 +2863,7 @@ async def mtermvectors( """ Returns multiple termvectors in one request. - ``_ + ``_ :param index: Name of the index that contains the documents. :param docs: Array of existing or artificial documents. @@ -2972,7 +2972,7 @@ async def open_point_in_time( """ Open a point in time that can be used in subsequent searches - ``_ + ``_ :param index: A comma-separated list of index names to open point in time; use `_all` or empty string to perform the operation on all indices @@ -3039,7 +3039,7 @@ async def put_script( """ Creates or updates a script. - ``_ + ``_ :param id: Identifier for the stored script or search template. Must be unique within the cluster. @@ -3128,7 +3128,7 @@ async def rank_eval( Allows to evaluate the quality of ranked search results over a set of typical search queries - ``_ + ``_ :param requests: A set of typical search requests, together with their provided ratings. @@ -3215,7 +3215,7 @@ async def reindex( source documents by a query, changing the destination index settings, or fetching the documents from a remote cluster. - ``_ + ``_ :param dest: The destination you are copying to. :param source: The source you are copying from. @@ -3305,7 +3305,7 @@ async def reindex_rethrottle( """ Changes the number of requests per second for a particular Reindex operation. - ``_ + ``_ :param task_id: Identifier for the task. :param requests_per_second: The throttle for this request in sub-requests per @@ -3351,7 +3351,7 @@ async def render_search_template( """ Allows to use the Mustache language to pre-render a search definition. - ``_ + ``_ :param id: ID of the search template to render. If no `source` is specified, this or the `id` request body parameter is required. @@ -3410,7 +3410,7 @@ async def scripts_painless_execute( """ Allows an arbitrary script to be executed and a result to be returned - ``_ + ``_ :param context: The context that the script should run in. :param context_setup: Additional parameters for the `context`. @@ -3461,7 +3461,7 @@ async def scroll( """ Allows to retrieve a large numbers of results from a single search request. - ``_ + ``_ :param scroll_id: Scroll ID of the search. :param rest_total_hits_as_int: If true, the API response’s hit.total property @@ -3643,7 +3643,7 @@ async def search( """ Returns results matching a query. - ``_ + ``_ :param index: Comma-separated list of data streams, indices, and aliases to search. Supports wildcards (`*`). To search all data streams and indices, omit this @@ -4035,7 +4035,7 @@ async def search_mvt( Searches a vector tile for geospatial values. Returns results as a binary Mapbox vector tile. - ``_ + ``_ :param index: Comma-separated list of data streams, indices, or aliases to search :param field: Field containing geospatial data to return @@ -4188,7 +4188,7 @@ async def search_shards( Returns information about the indices and shards that a search request would be executed against. - ``_ + ``_ :param index: Returns the indices and shards that a search request would be executed against. @@ -4292,7 +4292,7 @@ async def search_template( """ Allows to use the Mustache language to pre-render a search definition. - ``_ + ``_ :param index: Comma-separated list of data streams, indices, and aliases to search. Supports wildcards (*). @@ -4409,7 +4409,7 @@ async def terms_enum( the provided string. It is designed for low-latency look-ups used in auto-complete scenarios. - ``_ + ``_ :param index: Comma-separated list of data streams, indices, and index aliases to search. Wildcard (*) expressions are supported. @@ -4503,7 +4503,7 @@ async def termvectors( Returns information and statistics about terms in the fields of a particular document. - ``_ + ``_ :param index: Name of the index that contains the document. :param id: Unique identifier of the document. @@ -4632,7 +4632,7 @@ async def update( """ Updates a document with a script or partial document. - ``_ + ``_ :param index: The name of the index :param id: Document ID @@ -4801,7 +4801,7 @@ async def update_by_query( Performs an update on every document in the index without changing the source, for example to pick up a mapping change. - ``_ + ``_ :param index: Comma-separated list of data streams, indices, and aliases to search. Supports wildcards (`*`). To search all data streams or indices, omit this @@ -4988,7 +4988,7 @@ async def update_by_query_rethrottle( """ Changes the number of requests per second for a particular Update By Query operation. - ``_ + ``_ :param task_id: The ID for the task. :param requests_per_second: The throttle for this request in sub-requests per diff --git a/elasticsearch/_async/client/async_search.py b/elasticsearch/_async/client/async_search.py index 1351d3ea7..213957e1a 100644 --- a/elasticsearch/_async/client/async_search.py +++ b/elasticsearch/_async/client/async_search.py @@ -40,7 +40,7 @@ async def delete( Deletes an async search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. - ``_ + ``_ :param id: A unique identifier for the async search. """ @@ -82,7 +82,7 @@ async def get( Retrieves the results of a previously submitted async search request given its ID. - ``_ + ``_ :param id: A unique identifier for the async search. :param keep_alive: Specifies how long the async search should be available in @@ -139,7 +139,7 @@ async def status( Retrieves the status of a previously submitted async search request given its ID. - ``_ + ``_ :param id: A unique identifier for the async search. """ @@ -310,7 +310,7 @@ async def submit( """ Executes a search request asynchronously. - ``_ + ``_ :param index: A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices diff --git a/elasticsearch/_async/client/autoscaling.py b/elasticsearch/_async/client/autoscaling.py index 939bcdf16..51b295179 100644 --- a/elasticsearch/_async/client/autoscaling.py +++ b/elasticsearch/_async/client/autoscaling.py @@ -40,7 +40,7 @@ async def delete_autoscaling_policy( Deletes an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported. - ``_ + ``_ :param name: the name of the autoscaling policy """ @@ -76,7 +76,7 @@ async def get_autoscaling_capacity( Gets the current autoscaling capacity based on the configured autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported. - ``_ + ``_ """ __path = "/_autoscaling/capacity" __query: t.Dict[str, t.Any] = {} @@ -109,7 +109,7 @@ async def get_autoscaling_policy( Retrieves an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported. - ``_ + ``_ :param name: the name of the autoscaling policy """ @@ -149,7 +149,7 @@ async def put_autoscaling_policy( Creates a new autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported. - ``_ + ``_ :param name: the name of the autoscaling policy :param policy: diff --git a/elasticsearch/_async/client/cat.py b/elasticsearch/_async/client/cat.py index 6f5cda39d..fab275a65 100644 --- a/elasticsearch/_async/client/cat.py +++ b/elasticsearch/_async/client/cat.py @@ -67,7 +67,7 @@ async def aliases( Shows information about currently configured aliases to indices including filter and routing infos. - ``_ + ``_ :param name: A comma-separated list of aliases to retrieve. Supports wildcards (`*`). To retrieve all aliases, omit this parameter or use `*` or `_all`. @@ -152,7 +152,7 @@ async def allocation( Provides a snapshot of how many shards are allocated to each data node and how much disk space they are using. - ``_ + ``_ :param node_id: Comma-separated list of node identifiers or names used to limit the returned information. @@ -230,7 +230,7 @@ async def component_templates( """ Returns information about existing component_templates templates. - ``_ + ``_ :param name: The name of the component template. Accepts wildcard expressions. If omitted, all component templates are returned. @@ -306,7 +306,7 @@ async def count( Provides quick access to the document count of the entire cluster, or individual indices. - ``_ + ``_ :param index: Comma-separated list of data streams, indices, and aliases used to limit the request. Supports wildcards (`*`). To target all data streams @@ -388,7 +388,7 @@ async def fielddata( Shows how much heap memory is currently being used by fielddata on every data node in the cluster. - ``_ + ``_ :param fields: Comma-separated list of fields used to limit returned information. To retrieve all fields, omit this parameter. @@ -469,7 +469,7 @@ async def health( """ Returns a concise representation of the cluster health. - ``_ + ``_ :param format: Specifies the format to return the columnar data in, can be set to `text`, `json`, `cbor`, `yaml`, or `smile`. @@ -544,7 +544,7 @@ async def help( """ Returns help for the Cat APIs. - ``_ + ``_ :param format: Specifies the format to return the columnar data in, can be set to `text`, `json`, `cbor`, `yaml`, or `smile`. @@ -642,7 +642,7 @@ async def indices( Returns information about indices: number of primaries and replicas, document counts, disk size, ... - ``_ + ``_ :param index: Comma-separated list of data streams, indices, and aliases used to limit the request. Supports wildcards (`*`). To target all data streams @@ -737,7 +737,7 @@ async def master( """ Returns information about the master node. - ``_ + ``_ :param format: Specifies the format to return the columnar data in, can be set to `text`, `json`, `cbor`, `yaml`, or `smile`. @@ -856,7 +856,7 @@ async def ml_data_frame_analytics( """ Gets configuration and usage information about data frame analytics jobs. - ``_ + ``_ :param id: The ID of the data frame analytics to fetch :param allow_no_match: Whether to ignore if a wildcard expression matches no @@ -987,7 +987,7 @@ async def ml_datafeeds( """ Gets configuration and usage information about datafeeds. - ``_ + ``_ :param datafeed_id: A numerical character string that uniquely identifies the datafeed. @@ -1124,7 +1124,7 @@ async def ml_jobs( """ Gets configuration and usage information about anomaly detection jobs. - ``_ + ``_ :param job_id: Identifier for the anomaly detection job. :param allow_no_match: Specifies what to do when the request: * Contains wildcard @@ -1264,7 +1264,7 @@ async def ml_trained_models( """ Gets configuration and usage information about inference trained models. - ``_ + ``_ :param model_id: A unique identifier for the trained model. :param allow_no_match: Specifies what to do when the request: contains wildcard @@ -1354,7 +1354,7 @@ async def nodeattrs( """ Returns information about custom node attributes. - ``_ + ``_ :param format: Specifies the format to return the columnar data in, can be set to `text`, `json`, `cbor`, `yaml`, or `smile`. @@ -1428,7 +1428,7 @@ async def nodes( """ Returns basic statistics about performance of cluster nodes. - ``_ + ``_ :param bytes: The unit used to display byte values. :param format: Specifies the format to return the columnar data in, can be set @@ -1508,7 +1508,7 @@ async def pending_tasks( """ Returns a concise representation of the cluster pending tasks. - ``_ + ``_ :param format: Specifies the format to return the columnar data in, can be set to `text`, `json`, `cbor`, `yaml`, or `smile`. @@ -1577,7 +1577,7 @@ async def plugins( """ Returns information about installed plugins across nodes node. - ``_ + ``_ :param format: Specifies the format to return the columnar data in, can be set to `text`, `json`, `cbor`, `yaml`, or `smile`. @@ -1652,7 +1652,7 @@ async def recovery( """ Returns information about index shard recoveries, both on-going completed. - ``_ + ``_ :param index: A comma-separated list of data streams, indices, and aliases used to limit the request. Supports wildcards (`*`). To target all data streams @@ -1737,7 +1737,7 @@ async def repositories( """ Returns information about snapshot repositories registered in the cluster. - ``_ + ``_ :param format: Specifies the format to return the columnar data in, can be set to `text`, `json`, `cbor`, `yaml`, or `smile`. @@ -1810,7 +1810,7 @@ async def segments( """ Provides low-level information about the segments in the shards of an index. - ``_ + ``_ :param index: A comma-separated list of data streams, indices, and aliases used to limit the request. Supports wildcards (`*`). To target all data streams @@ -1892,7 +1892,7 @@ async def shards( """ Provides a detailed view of shard allocation on nodes. - ``_ + ``_ :param index: A comma-separated list of data streams, indices, and aliases used to limit the request. Supports wildcards (`*`). To target all data streams @@ -1974,7 +1974,7 @@ async def snapshots( """ Returns all snapshots in a specific repository. - ``_ + ``_ :param repository: A comma-separated list of snapshot repositories used to limit the request. Accepts wildcard expressions. `_all` returns all repositories. @@ -2058,7 +2058,7 @@ async def tasks( Returns information about the tasks currently executing on one or more nodes in the cluster. - ``_ + ``_ :param actions: The task action names, which are used to limit the response. :param detailed: If `true`, the response includes detailed information about @@ -2142,7 +2142,7 @@ async def templates( """ Returns information about existing templates. - ``_ + ``_ :param name: The name of the template to return. Accepts wildcard expressions. If omitted, all templates are returned. @@ -2223,7 +2223,7 @@ async def thread_pool( Returns cluster-wide thread pool statistics per node. By default the active, queue and rejected statistics are returned for all thread pools. - ``_ + ``_ :param thread_pool_patterns: A comma-separated list of thread pool names used to limit the request. Accepts wildcard expressions. @@ -2353,7 +2353,7 @@ async def transforms( """ Gets configuration and usage information about transforms. - ``_ + ``_ :param transform_id: A transform identifier or a wildcard expression. If you do not specify one of these options, the API returns information for all diff --git a/elasticsearch/_async/client/ccr.py b/elasticsearch/_async/client/ccr.py index 4ebda28a9..8c32176cb 100644 --- a/elasticsearch/_async/client/ccr.py +++ b/elasticsearch/_async/client/ccr.py @@ -39,7 +39,7 @@ async def delete_auto_follow_pattern( """ Deletes auto-follow patterns. - ``_ + ``_ :param name: The name of the auto follow pattern. """ @@ -96,7 +96,7 @@ async def follow( """ Creates a new follower index configured to follow the referenced leader index. - ``_ + ``_ :param index: The name of the follower index :param leader_index: @@ -180,7 +180,7 @@ async def follow_info( Retrieves information about all follower indices, including parameters and status for each follower index - ``_ + ``_ :param index: A comma-separated list of index patterns; use `_all` to perform the operation on all indices @@ -218,7 +218,7 @@ async def follow_stats( Retrieves follower stats. return shard-level stats about the following tasks associated with each shard for the specified indices. - ``_ + ``_ :param index: A comma-separated list of index patterns; use `_all` to perform the operation on all indices @@ -261,7 +261,7 @@ async def forget_follower( """ Removes the follower retention leases from the leader. - ``_ + ``_ :param index: the name of the leader index for which specified follower retention leases should be removed @@ -312,7 +312,7 @@ async def get_auto_follow_pattern( Gets configured auto-follow patterns. Returns the specified auto-follow pattern collection. - ``_ + ``_ :param name: Specifies the auto-follow pattern collection that you want to retrieve. If you do not specify a name, the API returns information for all collections. @@ -350,7 +350,7 @@ async def pause_auto_follow_pattern( """ Pauses an auto-follow pattern - ``_ + ``_ :param name: The name of the auto follow pattern that should pause discovering new indices to follow. @@ -388,7 +388,7 @@ async def pause_follow( Pauses a follower index. The follower index will not fetch any additional operations from the leader index. - ``_ + ``_ :param index: The name of the follower index that should pause following its leader index. @@ -452,7 +452,7 @@ async def put_auto_follow_pattern( cluster. Newly created indices on the remote cluster matching any of the specified patterns will be automatically configured as follower indices. - ``_ + ``_ :param name: The name of the collection of auto-follow patterns. :param remote_cluster: The remote cluster containing the leader indices to match @@ -566,7 +566,7 @@ async def resume_auto_follow_pattern( """ Resumes an auto-follow pattern that has been paused - ``_ + ``_ :param name: The name of the auto follow pattern to resume discovering new indices to follow. @@ -619,7 +619,7 @@ async def resume_follow( """ Resumes a follower index that has been paused - ``_ + ``_ :param index: The name of the follow index to resume following. :param max_outstanding_read_requests: @@ -693,7 +693,7 @@ async def stats( """ Gets all stats related to cross-cluster replication. - ``_ + ``_ """ __path = "/_ccr/stats" __query: t.Dict[str, t.Any] = {} @@ -726,7 +726,7 @@ async def unfollow( Stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. - ``_ + ``_ :param index: The name of the follower index that should be turned into a regular index. diff --git a/elasticsearch/_async/client/cluster.py b/elasticsearch/_async/client/cluster.py index 775a0460a..fd4e6a9d5 100644 --- a/elasticsearch/_async/client/cluster.py +++ b/elasticsearch/_async/client/cluster.py @@ -46,7 +46,7 @@ async def allocation_explain( """ Provides explanations for shard allocations in the cluster. - ``_ + ``_ :param current_node: Specifies the node ID or the name of the node to only explain a shard that is currently located on the specified node. @@ -111,7 +111,7 @@ async def delete_component_template( """ Deletes a component template - ``_ + ``_ :param name: Comma-separated list or wildcard expression of component template names used to limit the request. @@ -157,7 +157,7 @@ async def delete_voting_config_exclusions( """ Clears cluster voting config exclusions. - ``_ + ``_ :param wait_for_removal: Specifies whether to wait for all excluded nodes to be removed from the cluster before clearing the voting configuration exclusions @@ -202,7 +202,7 @@ async def exists_component_template( """ Returns information about whether a particular component template exist - ``_ + ``_ :param name: Comma-separated list of component template names used to limit the request. Wildcard (*) expressions are supported. @@ -255,7 +255,7 @@ async def get_component_template( """ Returns one or more component templates - ``_ + ``_ :param name: Comma-separated list of component template names used to limit the request. Wildcard (`*`) expressions are supported. @@ -314,7 +314,7 @@ async def get_settings( """ Returns cluster settings. - ``_ + ``_ :param flat_settings: If `true`, returns settings in flat format. :param include_defaults: If `true`, returns default cluster settings from the @@ -404,7 +404,7 @@ async def health( """ Returns basic information about the health of the cluster. - ``_ + ``_ :param index: Comma-separated list of data streams, indices, and index aliases used to limit the request. Wildcard expressions (*) are supported. To target @@ -514,7 +514,7 @@ async def info( """ Returns different information about the cluster. - ``_ + ``_ :param target: Limits the information returned to the specific target. Supports a comma-separated list, such as http,ingest. @@ -555,7 +555,7 @@ async def pending_tasks( Returns a list of any cluster-level changes (e.g. create index, update mapping, allocate or fail shard) which have not yet been executed. - ``_ + ``_ :param local: If `true`, the request retrieves information from the local node only. If `false`, information is retrieved from the master node. @@ -603,7 +603,7 @@ async def post_voting_config_exclusions( """ Updates the cluster voting config exclusions by node ids or node names. - ``_ + ``_ :param node_ids: A comma-separated list of the persistent ids of the nodes to exclude from the voting configuration. If specified, you may not also specify @@ -662,7 +662,7 @@ async def put_component_template( """ Creates or updates a component template - ``_ + ``_ :param name: Name of the component template to create. Elasticsearch includes the following built-in component templates: `logs-mappings`; 'logs-settings`; @@ -748,7 +748,7 @@ async def put_settings( """ Updates the cluster settings. - ``_ + ``_ :param flat_settings: Return settings in flat format (default: false) :param master_timeout: Explicit operation timeout for connection to master node @@ -796,7 +796,7 @@ async def remote_info( """ Returns the information about configured remote clusters. - ``_ + ``_ """ __path = "/_remote/info" __query: t.Dict[str, t.Any] = {} @@ -842,7 +842,7 @@ async def reroute( """ Allows to manually change the allocation of individual shards in the cluster. - ``_ + ``_ :param commands: Defines the commands to perform. :param dry_run: If true, then the request simulates the operation only and returns @@ -939,7 +939,7 @@ async def state( """ Returns a comprehensive information about the state of the cluster. - ``_ + ``_ :param metric: Limit the information returned to the specified metrics :param index: A comma-separated list of index names; use `_all` or empty string @@ -1017,7 +1017,7 @@ async def stats( """ Returns high-level overview of cluster statistics. - ``_ + ``_ :param node_id: Comma-separated list of node filters used to limit returned information. Defaults to all nodes in the cluster. diff --git a/elasticsearch/_async/client/dangling_indices.py b/elasticsearch/_async/client/dangling_indices.py index fecaa9948..378026f8a 100644 --- a/elasticsearch/_async/client/dangling_indices.py +++ b/elasticsearch/_async/client/dangling_indices.py @@ -44,7 +44,7 @@ async def delete_dangling_index( """ Deletes the specified dangling index - ``_ + ``_ :param index_uuid: The UUID of the dangling index :param accept_data_loss: Must be set to true in order to delete the dangling @@ -97,7 +97,7 @@ async def import_dangling_index( """ Imports the specified dangling index - ``_ + ``_ :param index_uuid: The UUID of the dangling index :param accept_data_loss: Must be set to true in order to import the dangling @@ -144,7 +144,7 @@ async def list_dangling_indices( """ Returns all dangling indices. - ``_ + ``_ """ __path = "/_dangling" __query: t.Dict[str, t.Any] = {} diff --git a/elasticsearch/_async/client/enrich.py b/elasticsearch/_async/client/enrich.py index 62abc72a5..203e52de9 100644 --- a/elasticsearch/_async/client/enrich.py +++ b/elasticsearch/_async/client/enrich.py @@ -39,7 +39,7 @@ async def delete_policy( """ Deletes an existing enrich policy and its enrich index. - ``_ + ``_ :param name: Enrich policy to delete. """ @@ -76,7 +76,7 @@ async def execute_policy( """ Creates the enrich index for an existing enrich policy. - ``_ + ``_ :param name: Enrich policy to execute. :param wait_for_completion: If `true`, the request blocks other enrich policy @@ -116,7 +116,7 @@ async def get_policy( """ Gets information about an enrich policy. - ``_ + ``_ :param name: Comma-separated list of enrich policy names used to limit the request. To return information for all enrich policies, omit this parameter. @@ -159,7 +159,7 @@ async def put_policy( """ Creates a new enrich policy. - ``_ + ``_ :param name: Name of the enrich policy to create or update. :param geo_match: Matches enrich data to incoming documents based on a `geo_shape` @@ -207,7 +207,7 @@ async def stats( Gets enrich coordinator statistics and information about enrich policies that are currently executing. - ``_ + ``_ """ __path = "/_enrich/_stats" __query: t.Dict[str, t.Any] = {} diff --git a/elasticsearch/_async/client/eql.py b/elasticsearch/_async/client/eql.py index 056e45b3d..b24156ca3 100644 --- a/elasticsearch/_async/client/eql.py +++ b/elasticsearch/_async/client/eql.py @@ -40,7 +40,7 @@ async def delete( Deletes an async EQL search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. - ``_ + ``_ :param id: Identifier for the search to delete. A search ID is provided in the EQL search API's response for an async search. A search ID is also provided @@ -82,7 +82,7 @@ async def get( """ Returns async results from previously executed Event Query Language (EQL) search - `< https://www.elastic.co/guide/en/elasticsearch/reference/master/get-async-eql-search-api.html>`_ + `< https://www.elastic.co/guide/en/elasticsearch/reference/8.11/get-async-eql-search-api.html>`_ :param id: Identifier for the search. :param keep_alive: Period for which the search and its results are stored on @@ -129,7 +129,7 @@ async def get_status( Returns the status of a previously submitted async or stored Event Query Language (EQL) search - `< https://www.elastic.co/guide/en/elasticsearch/reference/master/get-async-eql-status-api.html>`_ + `< https://www.elastic.co/guide/en/elasticsearch/reference/8.11/get-async-eql-status-api.html>`_ :param id: Identifier for the search. """ @@ -217,7 +217,7 @@ async def search( """ Returns results matching a query expressed in Event Query Language (EQL) - ``_ + ``_ :param index: The name of the index to scope the operation :param query: EQL query you wish to run. diff --git a/elasticsearch/_async/client/features.py b/elasticsearch/_async/client/features.py index fe75e9180..b28139c5b 100644 --- a/elasticsearch/_async/client/features.py +++ b/elasticsearch/_async/client/features.py @@ -39,7 +39,7 @@ async def get_features( Gets a list of features which can be included in snapshots using the feature_states field when creating a snapshot - ``_ + ``_ """ __path = "/_features" __query: t.Dict[str, t.Any] = {} @@ -70,7 +70,7 @@ async def reset_features( """ Resets the internal state of features, usually by deleting system indices - ``_ + ``_ """ __path = "/_features/_reset" __query: t.Dict[str, t.Any] = {} diff --git a/elasticsearch/_async/client/fleet.py b/elasticsearch/_async/client/fleet.py index 8b2cd7abf..b6b2ac548 100644 --- a/elasticsearch/_async/client/fleet.py +++ b/elasticsearch/_async/client/fleet.py @@ -44,7 +44,7 @@ async def global_checkpoints( Returns the current global checkpoints for an index. This API is design for internal use by the fleet server project. - ``_ + ``_ :param index: A single index or index alias that resolves to a single index. :param checkpoints: A comma separated list of previous global checkpoints. When diff --git a/elasticsearch/_async/client/graph.py b/elasticsearch/_async/client/graph.py index 214bd31f8..6fc1fb1c3 100644 --- a/elasticsearch/_async/client/graph.py +++ b/elasticsearch/_async/client/graph.py @@ -50,7 +50,7 @@ async def explore( Explore extracted and summarized information about the documents and terms in an index. - ``_ + ``_ :param index: Name of the index. :param connections: Specifies or more fields from which you want to extract terms diff --git a/elasticsearch/_async/client/ilm.py b/elasticsearch/_async/client/ilm.py index cf25b495d..ef10495a2 100644 --- a/elasticsearch/_async/client/ilm.py +++ b/elasticsearch/_async/client/ilm.py @@ -44,7 +44,7 @@ async def delete_lifecycle( Deletes the specified lifecycle policy definition. A currently used policy cannot be deleted. - ``_ + ``_ :param name: Identifier for the policy. :param master_timeout: Period to wait for a connection to the master node. If @@ -96,7 +96,7 @@ async def explain_lifecycle( Retrieves information about the index's current lifecycle state, such as the currently executing phase, action, and step. - ``_ + ``_ :param index: Comma-separated list of data streams, indices, and aliases to target. Supports wildcards (`*`). To target all data streams and indices, use `*` @@ -157,7 +157,7 @@ async def get_lifecycle( Returns the specified policy definition. Includes the policy version and last modified date. - ``_ + ``_ :param name: Identifier for the policy. :param master_timeout: Period to wait for a connection to the master node. If @@ -202,7 +202,7 @@ async def get_status( """ Retrieves the current index lifecycle management (ILM) status. - ``_ + ``_ """ __path = "/_ilm/status" __query: t.Dict[str, t.Any] = {} @@ -239,7 +239,7 @@ async def migrate_to_data_tiers( Migrates the indices and ILM policies away from custom node attribute allocation routing to data tiers routing - ``_ + ``_ :param dry_run: If true, simulates the migration from node attributes based allocation filters to data tiers, but does not perform the migration. This provides @@ -292,7 +292,7 @@ async def move_to_step( """ Manually moves an index into the specified step and executes that step. - ``_ + ``_ :param index: The name of the index whose lifecycle step is to change :param current_step: @@ -346,7 +346,7 @@ async def put_lifecycle( """ Creates a lifecycle policy - ``_ + ``_ :param name: Identifier for the policy. :param master_timeout: Period to wait for a connection to the master node. If @@ -399,7 +399,7 @@ async def remove_policy( """ Removes the assigned lifecycle policy and stops managing the specified index - ``_ + ``_ :param index: The name of the index to remove policy on """ @@ -435,7 +435,7 @@ async def retry( """ Retries executing the policy for an index that is in the ERROR step. - ``_ + ``_ :param index: The name of the indices (comma-separated) whose failed lifecycle step is to be retry @@ -475,7 +475,7 @@ async def start( """ Start the index lifecycle management (ILM) plugin. - ``_ + ``_ :param master_timeout: :param timeout: @@ -518,7 +518,7 @@ async def stop( Halts all lifecycle management operations and stops the index lifecycle management (ILM) plugin - ``_ + ``_ :param master_timeout: :param timeout: diff --git a/elasticsearch/_async/client/indices.py b/elasticsearch/_async/client/indices.py index 0a2961182..eca77a958 100644 --- a/elasticsearch/_async/client/indices.py +++ b/elasticsearch/_async/client/indices.py @@ -64,7 +64,7 @@ async def add_block( """ Adds a block to an index. - ``_ + ``_ :param index: A comma separated list of indices to add a block to :param block: The block to add (one of read, write, read_only or metadata) @@ -144,7 +144,7 @@ async def analyze( Performs the analysis process on a text and return the tokens breakdown of the text. - ``_ + ``_ :param index: Index used to derive the analyzer. If specified, the `analyzer` or field parameter overrides this value. If no index is specified or the @@ -249,7 +249,7 @@ async def clear_cache( """ Clears all or specific caches for one or more indices. - ``_ + ``_ :param index: Comma-separated list of data streams, indices, and aliases used to limit the request. Supports wildcards (`*`). To target all data streams @@ -329,7 +329,7 @@ async def clone( """ Clones an index - ``_ + ``_ :param index: Name of the source index to clone. :param target: Name of the target index to create. @@ -420,7 +420,7 @@ async def close( """ Closes an index. - ``_ + ``_ :param index: Comma-separated list or wildcard expression of index names used to limit the request. @@ -498,7 +498,7 @@ async def create( """ Creates an index with optional settings and mappings. - ``_ + ``_ :param index: Name of the index you wish to create. :param aliases: Aliases for the index. @@ -563,7 +563,7 @@ async def create_data_stream( """ Creates a data stream - ``_ + ``_ :param name: Name of the data stream, which must meet the following criteria: Lowercase only; Cannot include `\\`, `/`, `*`, `?`, `"`, `<`, `>`, `|`, `,`, @@ -621,7 +621,7 @@ async def data_streams_stats( """ Provides statistics on operations happening in a data stream. - ``_ + ``_ :param name: Comma-separated list of data streams used to limit the request. Wildcard expressions (`*`) are supported. To target all data streams in a @@ -688,7 +688,7 @@ async def delete( """ Deletes an index. - ``_ + ``_ :param index: Comma-separated list of indices to delete. You cannot specify index aliases. By default, this parameter does not support wildcards (`*`) or `_all`. @@ -756,7 +756,7 @@ async def delete_alias( """ Deletes an alias. - ``_ + ``_ :param index: Comma-separated list of data streams or indices used to limit the request. Supports wildcards (`*`). @@ -828,7 +828,7 @@ async def delete_data_lifecycle( """ Deletes the data stream lifecycle of the selected data streams. - ``_ + ``_ :param name: A comma-separated list of data streams of which the data stream lifecycle will be deleted; use `*` to get all data streams @@ -893,7 +893,7 @@ async def delete_data_stream( """ Deletes a data stream. - ``_ + ``_ :param name: Comma-separated list of data streams to delete. Wildcard (`*`) expressions are supported. @@ -938,7 +938,7 @@ async def delete_index_template( """ Deletes an index template. - ``_ + ``_ :param name: Comma-separated list of index template names used to limit the request. Wildcard (*) expressions are supported. @@ -988,7 +988,7 @@ async def delete_template( """ Deletes an index template. - ``_ + ``_ :param name: The name of the legacy index template to delete. Wildcard (`*`) expressions are supported. @@ -1056,7 +1056,7 @@ async def disk_usage( """ Analyzes the disk usage of each field of an index or data stream - ``_ + ``_ :param index: Comma-separated list of data streams, indices, and aliases used to limit the request. It’s recommended to execute this API with a single @@ -1124,7 +1124,7 @@ async def downsample( """ Downsample an index - ``_ + ``_ :param index: Name of the time series index to downsample. :param target_index: Name of the index to create. @@ -1190,7 +1190,7 @@ async def exists( """ Returns information about whether a particular index exists. - ``_ + ``_ :param index: Comma-separated list of data streams, indices, and aliases. Supports wildcards (`*`). @@ -1274,7 +1274,7 @@ async def exists_alias( """ Returns information about whether a particular alias exists. - ``_ + ``_ :param name: Comma-separated list of aliases to check. Supports wildcards (`*`). :param index: Comma-separated list of data streams or indices used to limit the @@ -1340,7 +1340,7 @@ async def exists_index_template( """ Returns information about whether a particular index template exists. - ``_ + ``_ :param name: Comma-separated list of index template names used to limit the request. Wildcard (*) expressions are supported. @@ -1387,7 +1387,7 @@ async def exists_template( """ Returns information about whether a particular index template exists. - ``_ + ``_ :param name: The comma separated names of the index templates :param flat_settings: Return settings in flat format (default: false) @@ -1438,7 +1438,7 @@ async def explain_data_lifecycle( Retrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc. - ``_ + ``_ :param index: The name of the index to explain :param include_defaults: indicates if the API should return the default values @@ -1511,7 +1511,7 @@ async def field_usage_stats( """ Returns the field usage stats for each field of an index - ``_ + ``_ :param index: Comma-separated list or wildcard expression of index names used to limit the request. @@ -1605,7 +1605,7 @@ async def flush( """ Performs the flush operation on one or more indices. - ``_ + ``_ :param index: Comma-separated list of data streams, indices, and aliases to flush. Supports wildcards (`*`). To flush all data streams and indices, omit this @@ -1692,7 +1692,7 @@ async def forcemerge( """ Performs the force merge operation on one or more indices. - ``_ + ``_ :param index: A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices @@ -1799,7 +1799,7 @@ async def get( """ Returns information about one or more indices. - ``_ + ``_ :param index: Comma-separated list of data streams, indices, and index aliases used to limit the request. Wildcard expressions (*) are supported. @@ -1894,7 +1894,7 @@ async def get_alias( """ Returns an alias. - ``_ + ``_ :param index: Comma-separated list of data streams or indices used to limit the request. Supports wildcards (`*`). To target all data streams and indices, @@ -1977,7 +1977,7 @@ async def get_data_lifecycle( """ Returns the data stream lifecycle of the selected data streams. - ``_ + ``_ :param name: Comma-separated list of data streams to limit the request. Supports wildcards (`*`). To target all data streams, omit this parameter or use `*` @@ -2042,7 +2042,7 @@ async def get_data_stream( """ Returns data streams. - ``_ + ``_ :param name: Comma-separated list of data stream names used to limit the request. Wildcard (`*`) expressions are supported. If omitted, all data streams are @@ -2112,7 +2112,7 @@ async def get_field_mapping( """ Returns mapping for one or more fields. - ``_ + ``_ :param fields: Comma-separated list or wildcard expression of fields used to limit returned information. @@ -2185,7 +2185,7 @@ async def get_index_template( """ Returns an index template. - ``_ + ``_ :param name: Comma-separated list of index template names used to limit the request. Wildcard (*) expressions are supported. @@ -2264,7 +2264,7 @@ async def get_mapping( """ Returns mappings for one or more indices. - ``_ + ``_ :param index: Comma-separated list of data streams, indices, and aliases used to limit the request. Supports wildcards (`*`). To target all data streams @@ -2354,7 +2354,7 @@ async def get_settings( """ Returns settings for one or more indices. - ``_ + ``_ :param index: Comma-separated list of data streams, indices, and aliases used to limit the request. Supports wildcards (`*`). To target all data streams @@ -2435,7 +2435,7 @@ async def get_template( """ Returns an index template. - ``_ + ``_ :param name: Comma-separated list of index template names used to limit the request. Wildcard (`*`) expressions are supported. To return all index templates, @@ -2486,7 +2486,7 @@ async def migrate_to_data_stream( """ Migrates an alias to a data stream - ``_ + ``_ :param name: Name of the index alias to convert to a data stream. """ @@ -2526,7 +2526,7 @@ async def modify_data_stream( """ Modifies a data stream - ``_ + ``_ :param actions: Actions to perform. """ @@ -2592,7 +2592,7 @@ async def open( """ Opens an index. - ``_ + ``_ :param index: Comma-separated list of data streams, indices, and aliases used to limit the request. Supports wildcards (`*`). By default, you must explicitly @@ -2663,7 +2663,7 @@ async def promote_data_stream( Promotes a data stream from a replicated data stream managed by CCR to a regular data stream - ``_ + ``_ :param name: The name of the data stream """ @@ -2711,7 +2711,7 @@ async def put_alias( """ Creates or updates an alias. - ``_ + ``_ :param index: Comma-separated list of data streams or indices to add. Supports wildcards (`*`). Wildcard patterns that match both data streams and indices @@ -2820,7 +2820,7 @@ async def put_data_lifecycle( """ Updates the data stream lifecycle of the selected data streams. - ``_ + ``_ :param name: Comma-separated list of data streams used to limit the request. Supports wildcards (`*`). To target all data streams use `*` or `_all`. @@ -2900,7 +2900,7 @@ async def put_index_template( """ Creates or updates an index template. - ``_ + ``_ :param name: Index or template name :param composed_of: An ordered list of component template names. Component templates @@ -3029,7 +3029,7 @@ async def put_mapping( """ Updates the index mappings. - ``_ + ``_ :param index: A comma-separated list of index names the mapping should be added to (supports wildcards); use `_all` or omit to add the mapping on all indices. @@ -3163,7 +3163,7 @@ async def put_settings( """ Updates the index settings. - ``_ + ``_ :param settings: :param index: Comma-separated list of data streams, indices, and aliases used @@ -3253,7 +3253,7 @@ async def put_template( """ Creates or updates an index template. - ``_ + ``_ :param name: The name of the template :param aliases: Aliases for the index. @@ -3331,7 +3331,7 @@ async def recovery( """ Returns information about ongoing index shard recoveries. - ``_ + ``_ :param index: Comma-separated list of data streams, indices, and aliases used to limit the request. Supports wildcards (`*`). To target all data streams @@ -3397,7 +3397,7 @@ async def refresh( """ Performs the refresh operation in one or more indices. - ``_ + ``_ :param index: Comma-separated list of data streams, indices, and aliases used to limit the request. Supports wildcards (`*`). To target all data streams @@ -3471,7 +3471,7 @@ async def reload_search_analyzers( """ Reloads an index's search analyzers and their resources. - ``_ + ``_ :param index: A comma-separated list of index names to reload analyzers for :param allow_no_indices: Whether to ignore if a wildcard indices expression resolves @@ -3538,7 +3538,7 @@ async def resolve_index( """ Returns information about any matching indices, aliases, and data streams - ``_ + ``_ :param name: Comma-separated name(s) or index pattern(s) of the indices, aliases, and data streams to resolve. Resources on remote clusters can be specified @@ -3598,7 +3598,7 @@ async def rollover( Updates an alias to point to a new index when the existing index is considered to be too large or too old. - ``_ + ``_ :param alias: Name of the data stream or index alias to roll over. :param new_index: Name of the index to create. Supports date math. Data streams @@ -3705,7 +3705,7 @@ async def segments( """ Provides low-level information about segments in a Lucene index. - ``_ + ``_ :param index: Comma-separated list of data streams, indices, and aliases used to limit the request. Supports wildcards (`*`). To target all data streams @@ -3793,7 +3793,7 @@ async def shard_stores( """ Provides store information for shard copies of indices. - ``_ + ``_ :param index: List of data streams, indices, and aliases used to limit the request. :param allow_no_indices: If false, the request returns an error if any wildcard @@ -3859,7 +3859,7 @@ async def shrink( """ Allow to shrink an existing index into a new index with fewer primary shards. - ``_ + ``_ :param index: Name of the source index to shrink. :param target: Name of the target index to create. @@ -3941,7 +3941,7 @@ async def simulate_index_template( """ Simulate matching the given index name against the index templates in the system - ``_ + ``_ :param name: Index or template name to simulate :param allow_auto_create: This setting overrides the value of the `action.auto_create_index` @@ -4046,7 +4046,7 @@ async def simulate_template( """ Simulate resolving the given template name or body - ``_ + ``_ :param name: Name of the index template to simulate. To test a template configuration before you add it to the cluster, omit this parameter and specify the template @@ -4118,7 +4118,7 @@ async def split( """ Allows you to split an existing index into a new index with more primary shards. - ``_ + ``_ :param index: Name of the source index to split. :param target: Name of the target index to create. @@ -4221,7 +4221,7 @@ async def stats( """ Provides statistics on operations happening in an index. - ``_ + ``_ :param index: A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices @@ -4329,7 +4329,7 @@ async def unfreeze( Unfreezes an index. When a frozen index is unfrozen, the index goes through the normal recovery process and becomes writeable again. - ``_ + ``_ :param index: Identifier for the index. :param allow_no_indices: If `false`, the request returns an error if any wildcard @@ -4402,7 +4402,7 @@ async def update_aliases( """ Updates index aliases. - ``_ + ``_ :param actions: Actions to perform. :param master_timeout: Period to wait for a connection to the master node. If @@ -4480,7 +4480,7 @@ async def validate_query( """ Allows a user to validate a potentially expensive query without executing it. - ``_ + ``_ :param index: Comma-separated list of data streams, indices, and aliases to search. Supports wildcards (`*`). To search all data streams or indices, omit this diff --git a/elasticsearch/_async/client/ingest.py b/elasticsearch/_async/client/ingest.py index 583e236b4..48c62f00c 100644 --- a/elasticsearch/_async/client/ingest.py +++ b/elasticsearch/_async/client/ingest.py @@ -43,7 +43,7 @@ async def delete_pipeline( """ Deletes a pipeline. - ``_ + ``_ :param id: Pipeline ID or wildcard expression of pipeline IDs used to limit the request. To delete all ingest pipelines in a cluster, use a value of `*`. @@ -88,7 +88,7 @@ async def geo_ip_stats( """ Returns statistical information about geoip databases - ``_ + ``_ """ __path = "/_ingest/geoip/stats" __query: t.Dict[str, t.Any] = {} @@ -124,7 +124,7 @@ async def get_pipeline( """ Returns a pipeline. - ``_ + ``_ :param id: Comma-separated list of pipeline IDs to retrieve. Wildcard (`*`) expressions are supported. To get all ingest pipelines, omit this parameter or use `*`. @@ -169,7 +169,7 @@ async def processor_grok( """ Returns a list of the built-in patterns. - ``_ + ``_ """ __path = "/_ingest/processor/grok" __query: t.Dict[str, t.Any] = {} @@ -218,7 +218,7 @@ async def put_pipeline( """ Creates or updates a pipeline. - ``_ + ``_ :param id: ID of the ingest pipeline to create or update. :param description: Description of the ingest pipeline. @@ -299,7 +299,7 @@ async def simulate( """ Allows to simulate a pipeline with example documents. - ``_ + ``_ :param id: Pipeline to test. If you don’t specify a `pipeline` in the request body, this parameter is required. diff --git a/elasticsearch/_async/client/license.py b/elasticsearch/_async/client/license.py index b8f9ec57e..e560edfaf 100644 --- a/elasticsearch/_async/client/license.py +++ b/elasticsearch/_async/client/license.py @@ -38,7 +38,7 @@ async def delete( """ Deletes licensing information for the cluster - ``_ + ``_ """ __path = "/_license" __query: t.Dict[str, t.Any] = {} @@ -71,7 +71,7 @@ async def get( """ Retrieves licensing information for the cluster - ``_ + ``_ :param accept_enterprise: If `true`, this parameter returns enterprise for Enterprise license types. If `false`, this parameter returns platinum for both platinum @@ -113,7 +113,7 @@ async def get_basic_status( """ Retrieves information about the status of the basic license. - ``_ + ``_ """ __path = "/_license/basic_status" __query: t.Dict[str, t.Any] = {} @@ -144,7 +144,7 @@ async def get_trial_status( """ Retrieves information about the status of the trial license. - ``_ + ``_ """ __path = "/_license/trial_status" __query: t.Dict[str, t.Any] = {} @@ -182,7 +182,7 @@ async def post( """ Updates the license for the cluster. - ``_ + ``_ :param acknowledge: Specifies whether you acknowledge the license changes. :param license: @@ -230,7 +230,7 @@ async def post_start_basic( """ Starts an indefinite basic license. - ``_ + ``_ :param acknowledge: whether the user has acknowledged acknowledge messages (default: false) @@ -268,7 +268,7 @@ async def post_start_trial( """ starts a limited time trial license. - ``_ + ``_ :param acknowledge: whether the user has acknowledged acknowledge messages (default: false) diff --git a/elasticsearch/_async/client/logstash.py b/elasticsearch/_async/client/logstash.py index 967b16d03..6d8d9f3d8 100644 --- a/elasticsearch/_async/client/logstash.py +++ b/elasticsearch/_async/client/logstash.py @@ -39,7 +39,7 @@ async def delete_pipeline( """ Deletes Logstash Pipelines used by Central Management - ``_ + ``_ :param id: Identifier for the pipeline. """ @@ -75,7 +75,7 @@ async def get_pipeline( """ Retrieves Logstash Pipelines used by Central Management - ``_ + ``_ :param id: Comma-separated list of pipeline identifiers. """ @@ -117,7 +117,7 @@ async def put_pipeline( """ Adds and updates Logstash Pipelines used for Central Management - ``_ + ``_ :param id: Identifier for the pipeline. :param pipeline: diff --git a/elasticsearch/_async/client/migration.py b/elasticsearch/_async/client/migration.py index 57e83483a..1f15b3fa6 100644 --- a/elasticsearch/_async/client/migration.py +++ b/elasticsearch/_async/client/migration.py @@ -41,7 +41,7 @@ async def deprecations( that use deprecated features that will be removed or changed in the next major version. - ``_ + ``_ :param index: Comma-separate list of data streams or indices to check. Wildcard (*) expressions are supported. @@ -78,7 +78,7 @@ async def get_feature_upgrade_status( """ Find out whether system features need to be upgraded or not - ``_ + ``_ """ __path = "/_migration/system_features" __query: t.Dict[str, t.Any] = {} @@ -109,7 +109,7 @@ async def post_feature_upgrade( """ Begin upgrades for system features - ``_ + ``_ """ __path = "/_migration/system_features" __query: t.Dict[str, t.Any] = {} diff --git a/elasticsearch/_async/client/ml.py b/elasticsearch/_async/client/ml.py index 972ebc85b..88c2b20a7 100644 --- a/elasticsearch/_async/client/ml.py +++ b/elasticsearch/_async/client/ml.py @@ -39,7 +39,7 @@ async def clear_trained_model_deployment_cache( """ Clear the cached results from a trained model deployment - ``_ + ``_ :param model_id: The unique identifier of the trained model. """ @@ -81,7 +81,7 @@ async def close_job( Closes one or more anomaly detection jobs. A job can be opened and closed multiple times throughout its lifecycle. - ``_ + ``_ :param job_id: Identifier for the anomaly detection job. It can be a job identifier, a group name, or a wildcard expression. You can close multiple anomaly detection @@ -136,7 +136,7 @@ async def delete_calendar( """ Deletes a calendar. - ``_ + ``_ :param calendar_id: A string that uniquely identifies a calendar. """ @@ -173,7 +173,7 @@ async def delete_calendar_event( """ Deletes scheduled events from a calendar. - ``_ + ``_ :param calendar_id: A string that uniquely identifies a calendar. :param event_id: Identifier for the scheduled event. You can obtain this identifier @@ -214,7 +214,7 @@ async def delete_calendar_job( """ Deletes anomaly detection jobs from a calendar. - ``_ + ``_ :param calendar_id: A string that uniquely identifies a calendar. :param job_id: An identifier for the anomaly detection jobs. It can be a job @@ -256,7 +256,7 @@ async def delete_data_frame_analytics( """ Deletes an existing data frame analytics job. - ``_ + ``_ :param id: Identifier for the data frame analytics job. :param force: If `true`, it deletes a job that is not stopped; this method is @@ -300,7 +300,7 @@ async def delete_datafeed( """ Deletes an existing datafeed. - ``_ + ``_ :param datafeed_id: A numerical character string that uniquely identifies the datafeed. This identifier can contain lowercase alphanumeric characters (a-z @@ -347,7 +347,7 @@ async def delete_expired_data( """ Deletes expired and unused machine learning data. - ``_ + ``_ :param job_id: Identifier for an anomaly detection job. It can be a job identifier, a group name, or a wildcard expression. @@ -398,7 +398,7 @@ async def delete_filter( """ Deletes a filter. - ``_ + ``_ :param filter_id: A string that uniquely identifies a filter. """ @@ -437,7 +437,7 @@ async def delete_forecast( """ Deletes forecasts from a machine learning job. - ``_ + ``_ :param job_id: Identifier for the anomaly detection job. :param forecast_id: A comma-separated list of forecast identifiers. If you do @@ -495,7 +495,7 @@ async def delete_job( """ Deletes an existing anomaly detection job. - ``_ + ``_ :param job_id: Identifier for the anomaly detection job. :param delete_user_annotations: Specifies whether annotations that have been @@ -545,7 +545,7 @@ async def delete_model_snapshot( """ Deletes an existing model snapshot. - ``_ + ``_ :param job_id: Identifier for the anomaly detection job. :param snapshot_id: Identifier for the model snapshot. @@ -586,7 +586,7 @@ async def delete_trained_model( Deletes an existing trained inference model that is currently not referenced by an ingest pipeline. - ``_ + ``_ :param model_id: The unique identifier of the trained model. :param force: Forcefully deletes a trained model that is referenced by ingest @@ -627,7 +627,7 @@ async def delete_trained_model_alias( """ Deletes a model alias that refers to the trained model - ``_ + ``_ :param model_id: The trained model ID to which the model alias refers. :param model_alias: The model alias to delete. @@ -670,7 +670,7 @@ async def estimate_model_memory( """ Estimates the model memory - ``_ + ``_ :param analysis_config: For a list of the properties that you can specify in the `analysis_config` component of the body of this API. @@ -728,7 +728,7 @@ async def evaluate_data_frame( """ Evaluates the data frame analytics for an annotated index. - ``_ + ``_ :param evaluation: Defines the type of evaluation you want to perform. :param index: Defines the `index` in which the evaluation will be performed. @@ -786,7 +786,7 @@ async def explain_data_frame_analytics( """ Explains a data frame analytics config. - ``_ + ``_ :param id: Identifier for the data frame analytics job. This identifier can contain lowercase alphanumeric characters (a-z and 0-9), hyphens, and underscores. @@ -877,7 +877,7 @@ async def flush_job( """ Forces any buffered data to be processed by the job. - ``_ + ``_ :param job_id: Identifier for the anomaly detection job. :param advance_time: Refer to the description for the `advance_time` query parameter. @@ -938,7 +938,7 @@ async def forecast( """ Predicts the future behavior of a time series by using its historical behavior. - ``_ + ``_ :param job_id: Identifier for the anomaly detection job. The job must be open when you create a forecast; otherwise, an error occurs. @@ -1004,7 +1004,7 @@ async def get_buckets( """ Retrieves anomaly detection job results for one or more buckets. - ``_ + ``_ :param job_id: Identifier for the anomaly detection job. :param timestamp: The timestamp of a single bucket result. If you do not specify @@ -1091,7 +1091,7 @@ async def get_calendar_events( """ Retrieves information about the scheduled events in calendars. - ``_ + ``_ :param calendar_id: A string that uniquely identifies a calendar. You can get information for multiple calendars by using a comma-separated list of ids @@ -1152,7 +1152,7 @@ async def get_calendars( """ Retrieves configuration information for calendars. - ``_ + ``_ :param calendar_id: A string that uniquely identifies a calendar. You can get information for multiple calendars by using a comma-separated list of ids @@ -1216,7 +1216,7 @@ async def get_categories( """ Retrieves anomaly detection job results for one or more categories. - ``_ + ``_ :param job_id: Identifier for the anomaly detection job. :param category_id: Identifier for the category, which is unique in the job. @@ -1285,7 +1285,7 @@ async def get_data_frame_analytics( """ Retrieves configuration information for data frame analytics jobs. - ``_ + ``_ :param id: Identifier for the data frame analytics job. If you do not specify this option, the API returns information for the first hundred data frame @@ -1351,7 +1351,7 @@ async def get_data_frame_analytics_stats( """ Retrieves usage information for data frame analytics jobs. - ``_ + ``_ :param id: Identifier for the data frame analytics job. If you do not specify this option, the API returns information for the first hundred data frame @@ -1412,7 +1412,7 @@ async def get_datafeed_stats( """ Retrieves usage information for datafeeds. - ``_ + ``_ :param datafeed_id: Identifier for the datafeed. It can be a datafeed identifier or a wildcard expression. If you do not specify one of these options, the @@ -1464,7 +1464,7 @@ async def get_datafeeds( """ Retrieves configuration information for datafeeds. - ``_ + ``_ :param datafeed_id: Identifier for the datafeed. It can be a datafeed identifier or a wildcard expression. If you do not specify one of these options, the @@ -1523,7 +1523,7 @@ async def get_filters( """ Retrieves filters. - ``_ + ``_ :param filter_id: A string that uniquely identifies a filter. :param from_: Skips the specified number of filters. @@ -1578,7 +1578,7 @@ async def get_influencers( """ Retrieves anomaly detection job results for one or more influencers. - ``_ + ``_ :param job_id: Identifier for the anomaly detection job. :param desc: If true, the results are sorted in descending order. @@ -1653,7 +1653,7 @@ async def get_job_stats( """ Retrieves usage information for anomaly detection jobs. - ``_ + ``_ :param job_id: Identifier for the anomaly detection job. It can be a job identifier, a group name, a comma-separated list of jobs, or a wildcard expression. If @@ -1706,7 +1706,7 @@ async def get_jobs( """ Retrieves configuration information for anomaly detection jobs. - ``_ + ``_ :param job_id: Identifier for the anomaly detection job. It can be a job identifier, a group name, or a wildcard expression. If you do not specify one of these @@ -1763,7 +1763,7 @@ async def get_memory_stats( """ Returns information on how ML is using memory. - ``_ + ``_ :param node_id: The names of particular nodes in the cluster to target. For example, `nodeId1,nodeId2` or `ml:true` @@ -1812,7 +1812,7 @@ async def get_model_snapshot_upgrade_stats( """ Gets stats for anomaly detection job model snapshot upgrades that are in progress. - ``_ + ``_ :param job_id: Identifier for the anomaly detection job. :param snapshot_id: A numerical character string that uniquely identifies the @@ -1875,7 +1875,7 @@ async def get_model_snapshots( """ Retrieves information about model snapshots. - ``_ + ``_ :param job_id: Identifier for the anomaly detection job. :param snapshot_id: A numerical character string that uniquely identifies the @@ -1957,7 +1957,7 @@ async def get_overall_buckets( Retrieves overall bucket results that summarize the bucket results of multiple anomaly detection jobs. - ``_ + ``_ :param job_id: Identifier for the anomaly detection job. It can be a job identifier, a group name, a comma-separated list of jobs or groups, or a wildcard expression. @@ -2037,7 +2037,7 @@ async def get_records( """ Retrieves anomaly records for an anomaly detection job. - ``_ + ``_ :param job_id: Identifier for the anomaly detection job. :param desc: Refer to the description for the `desc` query parameter. @@ -2120,7 +2120,7 @@ async def get_trained_models( """ Retrieves configuration information for a trained inference model. - ``_ + ``_ :param model_id: The unique identifier of the trained model. :param allow_no_match: Specifies what to do when the request: - Contains wildcard @@ -2196,7 +2196,7 @@ async def get_trained_models_stats( """ Retrieves usage information for trained inference models. - ``_ + ``_ :param model_id: The unique identifier of the trained model or a model alias. It can be a comma-separated list or a wildcard expression. @@ -2254,7 +2254,7 @@ async def infer_trained_model( """ Evaluate a trained model. - ``_ + ``_ :param model_id: The unique identifier of the trained model. :param docs: An array of objects to pass to the model for inference. The objects @@ -2305,7 +2305,7 @@ async def info( """ Returns defaults and limits used by machine learning. - ``_ + ``_ """ __path = "/_ml/info" __query: t.Dict[str, t.Any] = {} @@ -2340,7 +2340,7 @@ async def open_job( """ Opens one or more anomaly detection jobs. - ``_ + ``_ :param job_id: Identifier for the anomaly detection job. :param timeout: Refer to the description for the `timeout` query parameter. @@ -2389,7 +2389,7 @@ async def post_calendar_events( """ Posts scheduled events in a calendar. - ``_ + ``_ :param calendar_id: A string that uniquely identifies a calendar. :param events: A list of one of more scheduled events. The event’s start and @@ -2438,7 +2438,7 @@ async def post_data( """ Sends data to an anomaly detection job for analysis. - ``_ + ``_ :param job_id: Identifier for the anomaly detection job. The job must have a state of open to receive and process the data. @@ -2491,7 +2491,7 @@ async def preview_data_frame_analytics( """ Previews that will be analyzed given a data frame analytics config. - ``_ + ``_ :param id: Identifier for the data frame analytics job. :param config: A data frame analytics config as described in create data frame @@ -2544,7 +2544,7 @@ async def preview_datafeed( """ Previews a datafeed. - ``_ + ``_ :param datafeed_id: A numerical character string that uniquely identifies the datafeed. This identifier can contain lowercase alphanumeric characters (a-z @@ -2611,7 +2611,7 @@ async def put_calendar( """ Instantiates a calendar. - ``_ + ``_ :param calendar_id: A string that uniquely identifies a calendar. :param description: A description of the calendar. @@ -2659,7 +2659,7 @@ async def put_calendar_job( """ Adds an anomaly detection job to a calendar. - ``_ + ``_ :param calendar_id: A string that uniquely identifies a calendar. :param job_id: An identifier for the anomaly detection jobs. It can be a job @@ -2714,7 +2714,7 @@ async def put_data_frame_analytics( """ Instantiates a data frame analytics job. - ``_ + ``_ :param id: Identifier for the data frame analytics job. This identifier can contain lowercase alphanumeric characters (a-z and 0-9), hyphens, and underscores. @@ -2875,7 +2875,7 @@ async def put_datafeed( """ Instantiates a datafeed. - ``_ + ``_ :param datafeed_id: A numerical character string that uniquely identifies the datafeed. This identifier can contain lowercase alphanumeric characters (a-z @@ -3021,7 +3021,7 @@ async def put_filter( """ Instantiates a filter. - ``_ + ``_ :param filter_id: A string that uniquely identifies a filter. :param description: A description of the filter. @@ -3084,7 +3084,7 @@ async def put_job( """ Instantiates an anomaly detection job. - ``_ + ``_ :param job_id: The identifier for the anomaly detection job. This identifier can contain lowercase alphanumeric characters (a-z and 0-9), hyphens, and @@ -3236,13 +3236,14 @@ async def put_trained_model( model_type: t.Optional[ t.Union["t.Literal['lang_ident', 'pytorch', 'tree_ensemble']", str] ] = None, + platform_architecture: t.Optional[str] = None, pretty: t.Optional[bool] = None, tags: t.Optional[t.Union[t.List[str], t.Tuple[str, ...]]] = None, ) -> ObjectApiResponse[t.Any]: """ Creates an inference trained model. - ``_ + ``_ :param model_id: The unique identifier of the trained model. :param compressed_definition: The compressed (GZipped and Base64 encoded) inference @@ -3264,6 +3265,14 @@ async def put_trained_model( model in memory. This property is supported only if defer_definition_decompression is true or the model definition is not supplied. :param model_type: The model type. + :param platform_architecture: The platform architecture (if applicable) of the + trained mode. If the model only works on one platform, because it is heavily + optimized for a particular processor architecture and OS combination, then + this field specifies which. The format of the string must match the platform + identifiers used by Elasticsearch, so one of, `linux-x86_64`, `linux-aarch64`, + `darwin-x86_64`, `darwin-aarch64`, or `windows-x86_64`. For portable models + (those that work independent of processor architecture or OS features), leave + this field unset. :param tags: An array of tags to organize the model. """ if model_id in SKIP_IN_PATH: @@ -3295,6 +3304,8 @@ async def put_trained_model( __body["model_size_bytes"] = model_size_bytes if model_type is not None: __body["model_type"] = model_type + if platform_architecture is not None: + __body["platform_architecture"] = platform_architecture if pretty is not None: __query["pretty"] = pretty if tags is not None: @@ -3322,7 +3333,7 @@ async def put_trained_model_alias( Creates a new model alias (or reassigns an existing one) to refer to the trained model - ``_ + ``_ :param model_id: The identifier for the trained model that the alias refers to. :param model_alias: The alias to create or update. This value cannot end in numbers. @@ -3372,7 +3383,7 @@ async def put_trained_model_definition_part( """ Creates part of a trained model definition - ``_ + ``_ :param model_id: The unique identifier of the trained model. :param part: The definition part number. When the definition is loaded for inference @@ -3438,7 +3449,7 @@ async def put_trained_model_vocabulary( """ Creates a trained model vocabulary - ``_ + ``_ :param model_id: The unique identifier of the trained model. :param vocabulary: The model vocabulary, which must not be empty. @@ -3485,7 +3496,7 @@ async def reset_job( """ Resets an existing anomaly detection job. - ``_ + ``_ :param job_id: The ID of the job to reset. :param delete_user_annotations: Specifies whether annotations that have been @@ -3534,7 +3545,7 @@ async def revert_model_snapshot( """ Reverts to a specific snapshot. - ``_ + ``_ :param job_id: Identifier for the anomaly detection job. :param snapshot_id: You can specify `empty` as the . Reverting to @@ -3586,7 +3597,7 @@ async def set_upgrade_mode( Sets a cluster wide upgrade_mode setting that prepares machine learning indices for an upgrade. - ``_ + ``_ :param enabled: When `true`, it enables `upgrade_mode` which temporarily halts all job and datafeed tasks and prohibits new job and datafeed tasks from @@ -3628,7 +3639,7 @@ async def start_data_frame_analytics( """ Starts a data frame analytics job. - ``_ + ``_ :param id: Identifier for the data frame analytics job. This identifier can contain lowercase alphanumeric characters (a-z and 0-9), hyphens, and underscores. @@ -3675,7 +3686,7 @@ async def start_datafeed( """ Starts one or more datafeeds. - ``_ + ``_ :param datafeed_id: A numerical character string that uniquely identifies the datafeed. This identifier can contain lowercase alphanumeric characters (a-z @@ -3737,7 +3748,7 @@ async def start_trained_model_deployment( """ Start a trained model deployment. - ``_ + ``_ :param model_id: The unique identifier of the trained model. Currently, only PyTorch models are supported. @@ -3813,7 +3824,7 @@ async def stop_data_frame_analytics( """ Stops one or more data frame analytics jobs. - ``_ + ``_ :param id: Identifier for the data frame analytics job. This identifier can contain lowercase alphanumeric characters (a-z and 0-9), hyphens, and underscores. @@ -3873,7 +3884,7 @@ async def stop_datafeed( """ Stops one or more datafeeds. - ``_ + ``_ :param datafeed_id: Identifier for the datafeed. You can stop multiple datafeeds in a single API request by using a comma-separated list of datafeeds or a @@ -3929,7 +3940,7 @@ async def stop_trained_model_deployment( """ Stop a trained model deployment. - ``_ + ``_ :param model_id: The unique identifier of the trained model. :param allow_no_match: Specifies what to do when the request: contains wildcard @@ -3984,7 +3995,7 @@ async def update_data_frame_analytics( """ Updates certain properties of a data frame analytics job. - ``_ + ``_ :param id: Identifier for the data frame analytics job. This identifier can contain lowercase alphanumeric characters (a-z and 0-9), hyphens, and underscores. @@ -4080,7 +4091,7 @@ async def update_datafeed( """ Updates certain properties of a datafeed. - ``_ + ``_ :param datafeed_id: A numerical character string that uniquely identifies the datafeed. This identifier can contain lowercase alphanumeric characters (a-z @@ -4236,7 +4247,7 @@ async def update_filter( """ Updates the description of a filter, adds items, or removes items. - ``_ + ``_ :param filter_id: A string that uniquely identifies a filter. :param add_items: The items to add to the filter. @@ -4307,7 +4318,7 @@ async def update_job( """ Updates certain properties of an anomaly detection job. - ``_ + ``_ :param job_id: Identifier for the job. :param allow_lazy_open: Advanced configuration option. Specifies whether this @@ -4428,7 +4439,7 @@ async def update_model_snapshot( """ Updates certain properties of a snapshot. - ``_ + ``_ :param job_id: Identifier for the anomaly detection job. :param snapshot_id: Identifier for the model snapshot. @@ -4479,7 +4490,7 @@ async def upgrade_job_snapshot( """ Upgrades a given job snapshot to the current major version. - ``_ + ``_ :param job_id: Identifier for the anomaly detection job. :param snapshot_id: A numerical character string that uniquely identifies the @@ -4537,7 +4548,7 @@ async def validate( """ Validates an anomaly detection job. - ``_ + ``_ :param analysis_config: :param analysis_limits: @@ -4600,7 +4611,7 @@ async def validate_detector( """ Validates an anomaly detection detector. - ``_ + ``_ :param detector: """ diff --git a/elasticsearch/_async/client/monitoring.py b/elasticsearch/_async/client/monitoring.py index 3fd1425ad..ecf1f4fae 100644 --- a/elasticsearch/_async/client/monitoring.py +++ b/elasticsearch/_async/client/monitoring.py @@ -46,7 +46,7 @@ async def bulk( """ Used by the monitoring features to send monitoring data. - ``_ + ``_ :param interval: Collection interval (e.g., '10s' or '10000ms') of the payload :param operations: diff --git a/elasticsearch/_async/client/nodes.py b/elasticsearch/_async/client/nodes.py index cc3d38d6f..ffa5fe481 100644 --- a/elasticsearch/_async/client/nodes.py +++ b/elasticsearch/_async/client/nodes.py @@ -40,7 +40,7 @@ async def clear_repositories_metering_archive( """ Removes the archived repositories metering information present in the cluster. - ``_ + ``_ :param node_id: Comma-separated list of node IDs or names used to limit returned information. All the nodes selective options are explained [here](https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster.html#cluster-nodes). @@ -81,7 +81,7 @@ async def get_repositories_metering_info( """ Returns cluster repositories metering information. - ``_ + ``_ :param node_id: Comma-separated list of node IDs or names used to limit returned information. All the nodes selective options are explained [here](https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster.html#cluster-nodes). @@ -134,7 +134,7 @@ async def hot_threads( """ Returns information about hot threads on each node in the cluster. - ``_ + ``_ :param node_id: List of node IDs or names used to limit returned information. :param ignore_idle_threads: If true, known idle threads (e.g. waiting in a socket @@ -209,7 +209,7 @@ async def info( """ Returns information about nodes in the cluster. - ``_ + ``_ :param node_id: Comma-separated list of node IDs or names used to limit returned information. @@ -271,7 +271,7 @@ async def reload_secure_settings( """ Reloads secure settings. - ``_ + ``_ :param node_id: The names of particular nodes in the cluster to target. :param secure_settings_password: The password for the Elasticsearch keystore. @@ -348,7 +348,7 @@ async def stats( """ Returns statistical information about nodes in the cluster. - ``_ + ``_ :param node_id: Comma-separated list of node IDs or names used to limit returned information. @@ -450,7 +450,7 @@ async def usage( """ Returns low-level information about REST actions usage on nodes. - ``_ + ``_ :param node_id: 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 diff --git a/elasticsearch/_async/client/query_ruleset.py b/elasticsearch/_async/client/query_ruleset.py index 2edfc60a4..0f8bd7405 100644 --- a/elasticsearch/_async/client/query_ruleset.py +++ b/elasticsearch/_async/client/query_ruleset.py @@ -39,7 +39,7 @@ async def delete( """ Deletes a query ruleset. - ``_ + ``_ :param ruleset_id: The unique identifier of the query ruleset to delete """ @@ -75,7 +75,7 @@ async def get( """ Returns the details about a query ruleset. - ``_ + ``_ :param ruleset_id: The unique identifier of the query ruleset """ @@ -114,7 +114,7 @@ async def list( """ Lists query rulesets. - ``_ + ``_ :param from_: Starting offset (default: 0) :param size: specifies a max number of results to get @@ -158,7 +158,7 @@ async def put( """ Creates or updates a query ruleset. - ``_ + ``_ :param ruleset_id: The unique identifier of the query ruleset to be created or updated diff --git a/elasticsearch/_async/client/rollup.py b/elasticsearch/_async/client/rollup.py index f9756ad22..7cdd2dd19 100644 --- a/elasticsearch/_async/client/rollup.py +++ b/elasticsearch/_async/client/rollup.py @@ -39,7 +39,7 @@ async def delete_job( """ Deletes an existing rollup job. - ``_ + ``_ :param id: Identifier for the job. """ @@ -75,7 +75,7 @@ async def get_jobs( """ Retrieves the configuration, stats, and status of rollup jobs. - ``_ + ``_ :param id: Identifier for the rollup job. If it is `_all` or omitted, the API returns all rollup jobs. @@ -114,7 +114,7 @@ async def get_rollup_caps( Returns the capabilities of any rollup jobs that have been configured for a specific index or index pattern. - ``_ + ``_ :param id: Index, indices or index-pattern to return rollup capabilities for. `_all` may be used to fetch rollup capabilities from all jobs. @@ -153,7 +153,7 @@ async def get_rollup_index_caps( Returns the rollup capabilities of all jobs inside of a rollup index (e.g. the index where rollup data is stored). - ``_ + ``_ :param index: Data stream or index to check for rollup capabilities. Wildcard (`*`) expressions are supported. @@ -205,7 +205,7 @@ async def put_job( """ Creates a rollup job. - ``_ + ``_ :param id: Identifier for the rollup job. This can be any alphanumeric string and uniquely identifies the data that is associated with the rollup job. @@ -314,7 +314,7 @@ async def rollup_search( """ Enables searching rolled-up data using the standard query DSL. - ``_ + ``_ :param index: Enables searching rolled-up data using the standard Query DSL. :param aggregations: Specifies aggregations. @@ -371,7 +371,7 @@ async def start_job( """ Starts an existing, stopped rollup job. - ``_ + ``_ :param id: Identifier for the rollup job. """ @@ -409,7 +409,7 @@ async def stop_job( """ Stops an existing, started rollup job. - ``_ + ``_ :param id: Identifier for the rollup job. :param timeout: If `wait_for_completion` is `true`, the API blocks for (at maximum) diff --git a/elasticsearch/_async/client/search_application.py b/elasticsearch/_async/client/search_application.py index 7defb82e8..0c5e0ce61 100644 --- a/elasticsearch/_async/client/search_application.py +++ b/elasticsearch/_async/client/search_application.py @@ -39,7 +39,7 @@ async def delete( """ Deletes a search application. - ``_ + ``_ :param name: The name of the search application to delete """ @@ -75,7 +75,7 @@ async def delete_behavioral_analytics( """ Delete a behavioral analytics collection. - ``_ + ``_ :param name: The name of the analytics collection to be deleted """ @@ -111,7 +111,7 @@ async def get( """ Returns the details about a search application. - ``_ + ``_ :param name: The name of the search application """ @@ -147,7 +147,7 @@ async def get_behavioral_analytics( """ Returns the existing behavioral analytics collections. - ``_ + ``_ :param name: A list of analytics collections to limit the returned information """ @@ -188,7 +188,7 @@ async def list( """ Returns the existing search applications. - ``_ + ``_ :param from_: Starting offset. :param q: Query in the Lucene query string syntax. @@ -234,7 +234,7 @@ async def put( """ Creates or updates a search application. - ``_ + ``_ :param name: The name of the search application to be created or updated. :param search_application: @@ -278,7 +278,7 @@ async def put_behavioral_analytics( """ Creates a behavioral analytics collection. - ``_ + ``_ :param name: The name of the analytics collection to be created or updated. """ @@ -318,7 +318,7 @@ async def search( """ Perform a search against a search application - ``_ + ``_ :param name: The name of the search application to be searched. :param params: Query parameters specific to this request, which will override diff --git a/elasticsearch/_async/client/searchable_snapshots.py b/elasticsearch/_async/client/searchable_snapshots.py index 5bce0114c..439cba6e8 100644 --- a/elasticsearch/_async/client/searchable_snapshots.py +++ b/elasticsearch/_async/client/searchable_snapshots.py @@ -44,7 +44,7 @@ async def cache_stats( """ Retrieve node-level cache statistics about searchable snapshots. - ``_ + ``_ :param node_id: 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 @@ -106,7 +106,7 @@ async def clear_cache( """ Clear the cache of searchable snapshots. - ``_ + ``_ :param index: A comma-separated list of index names :param allow_no_indices: Whether to ignore if a wildcard indices expression resolves @@ -170,7 +170,7 @@ async def mount( """ Mount a snapshot as a searchable index. - ``_ + ``_ :param repository: The name of the repository containing the snapshot of the index to mount @@ -239,7 +239,7 @@ async def stats( """ Retrieve shard-level statistics about searchable snapshots. - ``_ + ``_ :param index: A comma-separated list of index names :param level: Return stats aggregated at cluster, index or shard level diff --git a/elasticsearch/_async/client/security.py b/elasticsearch/_async/client/security.py index c74383631..83ce58e14 100644 --- a/elasticsearch/_async/client/security.py +++ b/elasticsearch/_async/client/security.py @@ -44,7 +44,7 @@ async def activate_user_profile( """ Creates or updates the user profile on behalf of another user. - ``_ + ``_ :param grant_type: :param access_token: @@ -92,7 +92,7 @@ async def authenticate( Enables authentication as a user and retrieve information about the authenticated user. - ``_ + ``_ """ __path = "/_security/_authenticate" __query: t.Dict[str, t.Any] = {} @@ -131,7 +131,7 @@ async def change_password( """ Changes the passwords of users in the native realm and built-in users. - ``_ + ``_ :param username: The user whose password you want to change. If you do not specify this parameter, the password is changed for the current user. @@ -185,7 +185,7 @@ async def clear_api_key_cache( """ Clear a subset or all entries from the API key cache. - ``_ + ``_ :param ids: Comma-separated list of API key IDs to evict from the API key cache. To evict all API keys, use `*`. Does not support other wildcard patterns. @@ -222,7 +222,7 @@ async def clear_cached_privileges( """ Evicts application privileges from the native application privileges cache. - ``_ + ``_ :param application: A comma-separated list of application names """ @@ -260,7 +260,7 @@ async def clear_cached_realms( Evicts users from the user cache. Can completely clear the cache or evict specific users. - ``_ + ``_ :param realms: Comma-separated list of realms to clear :param usernames: Comma-separated list of usernames to clear from the cache @@ -299,7 +299,7 @@ async def clear_cached_roles( """ Evicts roles from the native role cache. - ``_ + ``_ :param name: Role name """ @@ -337,7 +337,7 @@ async def clear_cached_service_tokens( """ Evicts tokens from the service account token caches. - ``_ + ``_ :param namespace: An identifier for the namespace :param service: An identifier for the service name @@ -387,7 +387,7 @@ async def create_api_key( """ Creates an API key for access without requiring basic authentication. - ``_ + ``_ :param expiration: Expiration time for the API key. By default, API keys never expire. @@ -453,7 +453,7 @@ async def create_service_token( """ Creates a service account token for access without requiring basic authentication. - ``_ + ``_ :param namespace: An identifier for the namespace :param service: An identifier for the service name @@ -513,7 +513,7 @@ async def delete_privileges( """ Removes application privileges. - ``_ + ``_ :param application: Application name :param name: Privilege name @@ -560,7 +560,7 @@ async def delete_role( """ Removes roles in the native realm. - ``_ + ``_ :param name: Role name :param refresh: If `true` (the default) then refresh the affected shards to make @@ -604,7 +604,7 @@ async def delete_role_mapping( """ Removes role mappings. - ``_ + ``_ :param name: Role-mapping name :param refresh: If `true` (the default) then refresh the affected shards to make @@ -650,7 +650,7 @@ async def delete_service_token( """ Deletes a service account token. - ``_ + ``_ :param namespace: An identifier for the namespace :param service: An identifier for the service name @@ -700,7 +700,7 @@ async def delete_user( """ Deletes users from the native realm. - ``_ + ``_ :param username: username :param refresh: If `true` (the default) then refresh the affected shards to make @@ -744,7 +744,7 @@ async def disable_user( """ Disables users in the native realm. - ``_ + ``_ :param username: The username of the user to disable :param refresh: If `true` (the default) then refresh the affected shards to make @@ -788,7 +788,7 @@ async def disable_user_profile( """ Disables a user profile so it's not visible in user profile searches. - ``_ + ``_ :param uid: Unique identifier for the user profile. :param refresh: If 'true', Elasticsearch refreshes the affected shards to make @@ -832,7 +832,7 @@ async def enable_user( """ Enables users in the native realm. - ``_ + ``_ :param username: The username of the user to enable :param refresh: If `true` (the default) then refresh the affected shards to make @@ -876,7 +876,7 @@ async def enable_user_profile( """ Enables a user profile so it's visible in user profile searches. - ``_ + ``_ :param uid: Unique identifier for the user profile. :param refresh: If 'true', Elasticsearch refreshes the affected shards to make @@ -917,7 +917,7 @@ async def enroll_kibana( Allows a kibana instance to configure itself to communicate with a secured elasticsearch cluster. - ``_ + ``_ """ __path = "/_security/enroll/kibana" __query: t.Dict[str, t.Any] = {} @@ -948,7 +948,7 @@ async def enroll_node( """ Allows a new node to enroll to an existing cluster with security enabled. - ``_ + ``_ """ __path = "/_security/enroll/node" __query: t.Dict[str, t.Any] = {} @@ -985,7 +985,7 @@ async def get_api_key( """ Retrieves information for one or more API keys. - ``_ + ``_ :param id: An API key id. This parameter cannot be used with any of `name`, `realm_name` or `username`. @@ -1045,7 +1045,7 @@ async def get_builtin_privileges( Retrieves the list of cluster privileges and index privileges that are available in this version of Elasticsearch. - ``_ + ``_ """ __path = "/_security/privilege/_builtin" __query: t.Dict[str, t.Any] = {} @@ -1078,7 +1078,7 @@ async def get_privileges( """ Retrieves application privileges. - ``_ + ``_ :param application: Application name :param name: Privilege name @@ -1118,7 +1118,7 @@ async def get_role( """ Retrieves roles in the native realm. - ``_ + ``_ :param name: The name of the role. You can specify multiple roles as a comma-separated list. If you do not specify this parameter, the API returns information about @@ -1157,7 +1157,7 @@ async def get_role_mapping( """ Retrieves role mappings. - ``_ + ``_ :param name: The distinct name that identifies the role mapping. The name is used solely as an identifier to facilitate interaction via the API; it does @@ -1199,7 +1199,7 @@ async def get_service_accounts( """ Retrieves information about service accounts. - ``_ + ``_ :param namespace: Name of the namespace. Omit this parameter to retrieve information about all service accounts. If you omit this parameter, you must also omit @@ -1243,7 +1243,7 @@ async def get_service_credentials( """ Retrieves information of all service credentials for a service account. - ``_ + ``_ :param namespace: Name of the namespace. :param service: Name of the service name. @@ -1294,7 +1294,7 @@ async def get_token( """ Creates a bearer token for access without requiring basic authentication. - ``_ + ``_ :param grant_type: :param kerberos_ticket: @@ -1349,7 +1349,7 @@ async def get_user( """ Retrieves information about users in the native realm and built-in users. - ``_ + ``_ :param username: An identifier for the user. You can specify multiple usernames as a comma-separated list. If you omit this parameter, the API retrieves @@ -1394,7 +1394,7 @@ async def get_user_privileges( """ Retrieves security privileges for the logged in user. - ``_ + ``_ :param application: The name of the application. Application privileges are always associated with exactly one application. If you do not specify this parameter, @@ -1440,7 +1440,7 @@ async def get_user_profile( """ Retrieves user profiles for the given unique ID(s). - ``_ + ``_ :param uid: A unique identifier for the user profile. :param data: List of filters for the `data` field of the profile document. To @@ -1490,7 +1490,7 @@ async def grant_api_key( """ Creates an API key on behalf of another user. - ``_ + ``_ :param api_key: Defines the API key. :param grant_type: The type of grant. Supported grant types are: `access_token`, @@ -1577,7 +1577,7 @@ async def has_privileges( """ Determines whether the specified user has a specified list of privileges. - ``_ + ``_ :param user: Username :param application: @@ -1628,7 +1628,7 @@ async def has_privileges_user_profile( Determines whether the users associated with the specified profile IDs have all the requested privileges. - ``_ + ``_ :param privileges: :param uids: A list of profile IDs. The privileges are checked for associated @@ -1680,7 +1680,7 @@ async def invalidate_api_key( """ Invalidates one or more API keys. - ``_ + ``_ :param id: :param ids: A list of API key ids. This parameter cannot be used with any of @@ -1744,7 +1744,7 @@ async def invalidate_token( """ Invalidates one or more access tokens or refresh tokens. - ``_ + ``_ :param realm_name: :param refresh_token: @@ -1795,7 +1795,7 @@ async def put_privileges( """ Adds or updates application privileges. - ``_ + ``_ :param privileges: :param refresh: If `true` (the default) then refresh the affected shards to make @@ -1870,7 +1870,7 @@ async def put_role( """ Adds and updates roles in the native realm. - ``_ + ``_ :param name: The name of the role. :param applications: A list of application privilege entries. @@ -1952,7 +1952,7 @@ async def put_role_mapping( """ Creates and updates role mappings. - ``_ + ``_ :param name: Role-mapping name :param enabled: @@ -2022,7 +2022,7 @@ async def put_user( Adds and updates users in the native realm. These users are commonly referred to as native users. - ``_ + ``_ :param username: The username of the User :param email: @@ -2106,7 +2106,7 @@ async def query_api_keys( """ Retrieves information for API keys using a subset of query DSL - ``_ + ``_ :param from_: Starting document offset. By default, you cannot page through more than 10,000 hits using the from and size parameters. To page through more @@ -2189,7 +2189,7 @@ async def saml_authenticate( Exchanges a SAML Response message for an Elasticsearch access token and refresh token pair - ``_ + ``_ :param content: The SAML response as it was sent by the user’s browser, usually a Base64 encoded XML document. @@ -2244,7 +2244,7 @@ async def saml_complete_logout( """ Verifies the logout response sent from the SAML IdP - ``_ + ``_ :param ids: A json array with all the valid SAML Request Ids that the caller of the API has for the current user. @@ -2303,7 +2303,7 @@ async def saml_invalidate( """ Consumes a SAML LogoutRequest - ``_ + ``_ :param query_string: The query part of the URL that the user was redirected to by the SAML IdP to initiate the Single Logout. This query should include @@ -2364,7 +2364,7 @@ async def saml_logout( Invalidates an access token and a refresh token that were generated via the SAML Authenticate API - ``_ + ``_ :param token: The access token that was returned as a response to calling the SAML authenticate API. Alternatively, the most recent token that was received @@ -2414,7 +2414,7 @@ async def saml_prepare_authentication( """ Creates a SAML authentication request - ``_ + ``_ :param acs: The Assertion Consumer Service URL that matches the one of the SAML realms in Elasticsearch. The realm is used to generate the authentication @@ -2463,7 +2463,7 @@ async def saml_service_provider_metadata( """ Generates SAML metadata for the Elastic stack SAML 2.0 Service Provider - ``_ + ``_ :param realm_name: The name of the SAML realm in Elasticsearch. """ @@ -2504,7 +2504,7 @@ async def suggest_user_profiles( """ Get suggestions for user profiles that match specified search criteria. - ``_ + ``_ :param data: List of filters for the `data` field of the profile document. To return all content use `data=*`. To return a subset of content use `data=` @@ -2565,7 +2565,7 @@ async def update_api_key( """ Updates attributes of an existing API key. - ``_ + ``_ :param id: The ID of the API key to update. :param metadata: Arbitrary metadata that you want to associate with the API key. @@ -2630,7 +2630,7 @@ async def update_user_profile_data( """ Update application specific data for the user profile of the given unique ID. - ``_ + ``_ :param uid: A unique identifier for the user profile. :param data: Non-searchable data that you want to associate with the user profile. diff --git a/elasticsearch/_async/client/slm.py b/elasticsearch/_async/client/slm.py index 438ac239f..5bbd504d4 100644 --- a/elasticsearch/_async/client/slm.py +++ b/elasticsearch/_async/client/slm.py @@ -39,7 +39,7 @@ async def delete_lifecycle( """ Deletes an existing snapshot lifecycle policy. - ``_ + ``_ :param policy_id: The id of the snapshot lifecycle policy to remove """ @@ -76,7 +76,7 @@ async def execute_lifecycle( Immediately creates a snapshot according to the lifecycle policy, without waiting for the scheduled time. - ``_ + ``_ :param policy_id: The id of the snapshot lifecycle policy to be executed """ @@ -111,7 +111,7 @@ async def execute_retention( """ Deletes any snapshots that are expired according to the policy's retention rules. - ``_ + ``_ """ __path = "/_slm/_execute_retention" __query: t.Dict[str, t.Any] = {} @@ -146,7 +146,7 @@ async def get_lifecycle( Retrieves one or more snapshot lifecycle policy definitions and information about the latest snapshot attempts. - ``_ + ``_ :param policy_id: Comma-separated list of snapshot lifecycle policies to retrieve """ @@ -183,7 +183,7 @@ async def get_stats( Returns global and policy-level statistics about actions taken by snapshot lifecycle management. - ``_ + ``_ """ __path = "/_slm/stats" __query: t.Dict[str, t.Any] = {} @@ -214,7 +214,7 @@ async def get_status( """ Retrieves the status of snapshot lifecycle management (SLM). - ``_ + ``_ """ __path = "/_slm/status" __query: t.Dict[str, t.Any] = {} @@ -257,7 +257,7 @@ async def put_lifecycle( """ Creates or updates a snapshot lifecycle policy. - ``_ + ``_ :param policy_id: ID for the snapshot lifecycle policy you want to create or update. @@ -328,7 +328,7 @@ async def start( """ Turns on snapshot lifecycle management (SLM). - ``_ + ``_ """ __path = "/_slm/start" __query: t.Dict[str, t.Any] = {} @@ -359,7 +359,7 @@ async def stop( """ Turns off snapshot lifecycle management (SLM). - ``_ + ``_ """ __path = "/_slm/stop" __query: t.Dict[str, t.Any] = {} diff --git a/elasticsearch/_async/client/snapshot.py b/elasticsearch/_async/client/snapshot.py index 732ee7d60..ae6565eef 100644 --- a/elasticsearch/_async/client/snapshot.py +++ b/elasticsearch/_async/client/snapshot.py @@ -43,7 +43,7 @@ async def cleanup_repository( """ Removes stale data from repository. - ``_ + ``_ :param name: Snapshot repository to clean up. :param master_timeout: Period to wait for a connection to the master node. @@ -94,7 +94,7 @@ async def clone( """ Clones indices from one snapshot into another snapshot in the same repository. - ``_ + ``_ :param repository: A repository name :param snapshot: The name of the snapshot to clone from @@ -163,7 +163,7 @@ async def create( """ Creates a snapshot in a repository. - ``_ + ``_ :param repository: Repository for the snapshot. :param snapshot: Name of the snapshot. Must be unique in the repository. @@ -261,7 +261,7 @@ async def create_repository( """ Creates a repository. - ``_ + ``_ :param name: A repository name :param settings: @@ -324,7 +324,7 @@ async def delete( """ Deletes one or more snapshots. - ``_ + ``_ :param repository: A repository name :param snapshot: A comma-separated list of snapshot names @@ -370,7 +370,7 @@ async def delete_repository( """ Deletes a repository. - ``_ + ``_ :param name: Name of the snapshot repository to unregister. Wildcard (`*`) patterns are supported. @@ -434,7 +434,7 @@ async def get( """ Returns information about a snapshot. - ``_ + ``_ :param repository: Comma-separated list of snapshot repository names used to limit the request. Wildcard (*) expressions are supported. @@ -541,7 +541,7 @@ async def get_repository( """ Returns information about a repository. - ``_ + ``_ :param name: A comma-separated list of repository names :param local: Return local information, do not retrieve the state from master @@ -606,7 +606,7 @@ async def restore( """ Restores a snapshot. - ``_ + ``_ :param repository: A repository name :param snapshot: A snapshot name @@ -694,7 +694,7 @@ async def status( """ Returns information about the status of a snapshot. - ``_ + ``_ :param repository: A repository name :param snapshot: A comma-separated list of snapshot names @@ -745,7 +745,7 @@ async def verify_repository( """ Verifies a repository. - ``_ + ``_ :param name: A repository name :param master_timeout: Explicit operation timeout for connection to master node diff --git a/elasticsearch/_async/client/sql.py b/elasticsearch/_async/client/sql.py index b5134d7c4..0c0995b00 100644 --- a/elasticsearch/_async/client/sql.py +++ b/elasticsearch/_async/client/sql.py @@ -41,7 +41,7 @@ async def clear_cursor( """ Clears the SQL cursor - ``_ + ``_ :param cursor: Cursor to clear. """ @@ -81,7 +81,7 @@ async def delete_async( Deletes an async SQL search or a stored synchronous SQL search. If the search is still running, the API cancels it. - ``_ + ``_ :param id: Identifier for the search. """ @@ -124,7 +124,7 @@ async def get_async( Returns the current status and available results for an async SQL search or stored synchronous SQL search - ``_ + ``_ :param id: Identifier for the search. :param delimiter: Separator for CSV results. The API only supports this parameter @@ -178,7 +178,7 @@ async def get_async_status( Returns the current status of an async SQL search or a stored synchronous SQL search - ``_ + ``_ :param id: Identifier for the search. """ @@ -237,7 +237,7 @@ async def query( """ Executes a SQL request - ``_ + ``_ :param catalog: Default catalog (cluster) for queries. If unspecified, the queries execute on the data in the local cluster only. @@ -340,7 +340,7 @@ async def translate( """ Translates SQL into Elasticsearch queries - ``_ + ``_ :param query: SQL query to run. :param fetch_size: The maximum number of rows (or entries) to return in one response. diff --git a/elasticsearch/_async/client/ssl.py b/elasticsearch/_async/client/ssl.py index e3fb585f1..9a53ea80e 100644 --- a/elasticsearch/_async/client/ssl.py +++ b/elasticsearch/_async/client/ssl.py @@ -39,7 +39,7 @@ async def certificates( Retrieves information about the X.509 certificates used to encrypt communications in the cluster. - ``_ + ``_ """ __path = "/_ssl/certificates" __query: t.Dict[str, t.Any] = {} diff --git a/elasticsearch/_async/client/synonyms.py b/elasticsearch/_async/client/synonyms.py index b6e7a0d73..713ecdabc 100644 --- a/elasticsearch/_async/client/synonyms.py +++ b/elasticsearch/_async/client/synonyms.py @@ -39,7 +39,7 @@ async def delete_synonym( """ Deletes a synonym set - ``_ + ``_ :param id: The id of the synonyms set to be deleted """ @@ -76,7 +76,7 @@ async def delete_synonym_rule( """ Deletes a synonym rule in a synonym set - ``_ + ``_ :param set_id: The id of the synonym set to be updated :param rule_id: The id of the synonym rule to be deleted @@ -119,7 +119,7 @@ async def get_synonym( """ Retrieves a synonym set - ``_ + ``_ :param id: "The id of the synonyms set to be retrieved :param from_: Starting offset for query rules to be retrieved @@ -162,7 +162,7 @@ async def get_synonym_rule( """ Retrieves a synonym rule from a synonym set - ``_ + ``_ :param set_id: The id of the synonym set to retrieve the synonym rule from :param rule_id: The id of the synonym rule to retrieve @@ -204,7 +204,7 @@ async def get_synonyms_sets( """ Retrieves a summary of all defined synonym sets - ``_ + ``_ :param from_: Starting offset :param size: specifies a max number of results to get @@ -248,7 +248,7 @@ async def put_synonym( """ Creates or updates a synonyms set - ``_ + ``_ :param id: The id of the synonyms set to be created or updated :param synonyms_set: The synonym set information to update @@ -294,7 +294,7 @@ async def put_synonym_rule( """ Creates or updates a synonym rule in a synonym set - ``_ + ``_ :param set_id: The id of the synonym set to be updated with the synonym rule :param rule_id: The id of the synonym rule to be updated or created diff --git a/elasticsearch/_async/client/tasks.py b/elasticsearch/_async/client/tasks.py index be1167e22..824e8b492 100644 --- a/elasticsearch/_async/client/tasks.py +++ b/elasticsearch/_async/client/tasks.py @@ -45,7 +45,7 @@ async def cancel( """ Cancels a task, if it can be cancelled through an API. - ``_ + ``_ :param task_id: ID of the task. :param actions: Comma-separated list or wildcard expression of actions used to @@ -98,7 +98,7 @@ async def get( """ Returns information about a task. - ``_ + ``_ :param task_id: ID of the task. :param timeout: Period to wait for a response. If no response is received before @@ -155,7 +155,7 @@ async def list( """ Returns a list of tasks. - ``_ + ``_ :param actions: Comma-separated list or wildcard expression of actions used to limit the request. diff --git a/elasticsearch/_async/client/text_structure.py b/elasticsearch/_async/client/text_structure.py index a4c2349b1..a0ca702ad 100644 --- a/elasticsearch/_async/client/text_structure.py +++ b/elasticsearch/_async/client/text_structure.py @@ -50,7 +50,7 @@ async def find_structure( Finds the structure of a text file. The text file must contain data that is suitable to be ingested into Elasticsearch. - ``_ + ``_ :param text_files: :param charset: The text’s character set. It must be a character set that is diff --git a/elasticsearch/_async/client/transform.py b/elasticsearch/_async/client/transform.py index 4cf829b6d..ac0693911 100644 --- a/elasticsearch/_async/client/transform.py +++ b/elasticsearch/_async/client/transform.py @@ -41,7 +41,7 @@ async def delete_transform( """ Deletes an existing transform. - ``_ + ``_ :param transform_id: Identifier for the transform. :param force: If this value is false, the transform must be stopped before it @@ -94,7 +94,7 @@ async def get_transform( """ Retrieves configuration information for transforms. - ``_ + ``_ :param transform_id: Identifier for the transform. It can be a transform identifier or a wildcard expression. You can get information for all transforms by using @@ -157,7 +157,7 @@ async def get_transform_stats( """ Retrieves usage information for transforms. - ``_ + ``_ :param transform_id: Identifier for the transform. It can be a transform identifier or a wildcard expression. You can get information for all transforms by using @@ -223,7 +223,7 @@ async def preview_transform( """ Previews a transform. - ``_ + ``_ :param transform_id: Identifier for the transform to preview. If you specify this path parameter, you cannot provide transform configuration details in @@ -320,7 +320,7 @@ async def put_transform( """ Instantiates a transform. - ``_ + ``_ :param transform_id: Identifier for the transform. This identifier can contain lowercase alphanumeric characters (a-z and 0-9), hyphens, and underscores. @@ -414,7 +414,7 @@ async def reset_transform( """ Resets an existing transform. - ``_ + ``_ :param transform_id: Identifier for the transform. This identifier can contain lowercase alphanumeric characters (a-z and 0-9), hyphens, and underscores. @@ -458,7 +458,7 @@ async def schedule_now_transform( """ Schedules now a transform. - ``_ + ``_ :param transform_id: Identifier for the transform. :param timeout: Controls the time to wait for the scheduling to take place @@ -501,7 +501,7 @@ async def start_transform( """ Starts one or more transforms. - ``_ + ``_ :param transform_id: Identifier for the transform. :param from_: Restricts the set of transformed entities to those changed after @@ -551,7 +551,7 @@ async def stop_transform( """ Stops one or more transforms. - ``_ + ``_ :param transform_id: Identifier for the transform. To stop multiple transforms, use a comma-separated list or a wildcard expression. To stop all transforms, @@ -630,7 +630,7 @@ async def update_transform( """ Updates certain properties of a transform. - ``_ + ``_ :param transform_id: Identifier for the transform. :param defer_validation: When true, deferrable validations are not run. This @@ -705,7 +705,7 @@ async def upgrade_transforms( """ Upgrades all transforms. - ``_ + ``_ :param dry_run: When true, the request checks for updates but does not run them. :param timeout: Period to wait for a response. If no response is received before diff --git a/elasticsearch/_async/client/watcher.py b/elasticsearch/_async/client/watcher.py index decb2e5a6..b5b8103a0 100644 --- a/elasticsearch/_async/client/watcher.py +++ b/elasticsearch/_async/client/watcher.py @@ -42,7 +42,7 @@ async def ack_watch( """ Acknowledges a watch, manually throttling the execution of the watch's actions. - ``_ + ``_ :param watch_id: Watch ID :param action_id: A comma-separated list of the action ids to be acked @@ -84,7 +84,7 @@ async def activate_watch( """ Activates a currently inactive watch. - ``_ + ``_ :param watch_id: Watch ID """ @@ -120,7 +120,7 @@ async def deactivate_watch( """ Deactivates a currently active watch. - ``_ + ``_ :param watch_id: Watch ID """ @@ -156,7 +156,7 @@ async def delete_watch( """ Removes a watch from Watcher. - ``_ + ``_ :param id: Watch ID """ @@ -210,7 +210,7 @@ async def execute_watch( """ Forces the execution of a stored watch. - ``_ + ``_ :param id: Identifier for the watch. :param action_modes: Determines how to handle the watch actions as part of the @@ -285,7 +285,7 @@ async def get_watch( """ Retrieves a watch by its ID. - ``_ + ``_ :param id: Watch ID """ @@ -334,7 +334,7 @@ async def put_watch( """ Creates a new watch, or updates an existing one. - ``_ + ``_ :param id: Watch ID :param actions: @@ -430,7 +430,7 @@ async def query_watches( """ Retrieves stored watches. - ``_ + ``_ :param from_: The offset from the first result to fetch. Needs to be non-negative. :param query: Optional, query filter watches to be returned. @@ -494,7 +494,7 @@ async def start( """ Starts Watcher if it is not already running. - ``_ + ``_ """ __path = "/_watcher/_start" __query: t.Dict[str, t.Any] = {} @@ -549,7 +549,7 @@ async def stats( """ Retrieves the current Watcher metrics. - ``_ + ``_ :param metric: Defines which additional metrics are included in the response. :param emit_stacktraces: Defines whether stack traces are generated for each @@ -589,7 +589,7 @@ async def stop( """ Stops Watcher if it is running. - ``_ + ``_ """ __path = "/_watcher/_stop" __query: t.Dict[str, t.Any] = {} diff --git a/elasticsearch/_async/client/xpack.py b/elasticsearch/_async/client/xpack.py index 5e121da13..419362dd7 100644 --- a/elasticsearch/_async/client/xpack.py +++ b/elasticsearch/_async/client/xpack.py @@ -45,7 +45,7 @@ async def info( """ Retrieves information about the installed X-Pack features. - ``_ + ``_ :param accept_enterprise: If this param is used it must be set to true :param categories: A comma-separated list of the information categories to include @@ -87,7 +87,7 @@ async def usage( """ Retrieves usage information about the installed X-Pack features. - ``_ + ``_ :param master_timeout: Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and diff --git a/elasticsearch/_sync/client/__init__.py b/elasticsearch/_sync/client/__init__.py index 621ebc89a..f392c4e1c 100644 --- a/elasticsearch/_sync/client/__init__.py +++ b/elasticsearch/_sync/client/__init__.py @@ -643,7 +643,7 @@ def bulk( """ Allows to perform multiple index/update/delete operations in a single request. - ``_ + ``_ :param operations: :param index: Name of the data stream, index, or index alias to perform bulk @@ -732,7 +732,7 @@ def clear_scroll( """ Explicitly clears the search context for a scroll. - ``_ + ``_ :param scroll_id: Scroll IDs to clear. To clear all scroll IDs, use `_all`. """ @@ -775,7 +775,7 @@ def close_point_in_time( """ Close a point in time - ``_ + ``_ :param id: The ID of the point-in-time. """ @@ -852,7 +852,7 @@ def count( """ Returns number of documents matching a query. - ``_ + ``_ :param index: Comma-separated list of data streams, indices, and aliases to search. Supports wildcards (`*`). To search all data streams and indices, omit this @@ -977,7 +977,7 @@ def create( Creates a new document in the index. Returns a 409 response when a document with a same ID already exists in the index. - ``_ + ``_ :param index: Name of the data stream or index to target. If the target doesn’t exist and matches the name or wildcard (`*`) pattern of an index template @@ -1072,7 +1072,7 @@ def delete( """ Removes a document from the index. - ``_ + ``_ :param index: Name of the target index. :param id: Unique identifier for the document. @@ -1201,7 +1201,7 @@ def delete_by_query( """ Deletes documents matching the provided query. - ``_ + ``_ :param index: Comma-separated list of data streams, indices, and aliases to search. Supports wildcards (`*`). To search all data streams or indices, omit this @@ -1373,7 +1373,7 @@ def delete_by_query_rethrottle( """ Changes the number of requests per second for a particular Delete By Query operation. - ``_ + ``_ :param task_id: The ID for the task. :param requests_per_second: The throttle for this request in sub-requests per @@ -1417,7 +1417,7 @@ def delete_script( """ Deletes a script. - ``_ + ``_ :param id: Identifier for the stored script or search template. :param master_timeout: Period to wait for a connection to the master node. If @@ -1489,7 +1489,7 @@ def exists( """ Returns information about whether a document exists in an index. - ``_ + ``_ :param index: Comma-separated list of data streams, indices, and aliases. Supports wildcards (`*`). @@ -1592,7 +1592,7 @@ def exists_source( """ Returns information about whether a document source exists in an index. - ``_ + ``_ :param index: Comma-separated list of data streams, indices, and aliases. Supports wildcards (`*`). @@ -1695,7 +1695,7 @@ def explain( """ Returns information about why a specific matches (or doesn't match) a query. - ``_ + ``_ :param index: Index names used to limit the request. Only a single index name can be provided to this parameter. @@ -1818,7 +1818,7 @@ def field_caps( """ Returns the information about the capabilities of fields among multiple indices. - ``_ + ``_ :param index: Comma-separated list of data streams, indices, and aliases used to limit the request. Supports wildcards (*). To target all data streams @@ -1930,7 +1930,7 @@ def get( """ Returns a document. - ``_ + ``_ :param index: Name of the index that contains the document. :param id: Unique identifier of the document. @@ -2011,7 +2011,7 @@ def get_script( """ Returns a script. - ``_ + ``_ :param id: Identifier for the stored script or search template. :param master_timeout: Specify timeout for connection to master @@ -2049,7 +2049,7 @@ def get_script_context( """ Returns all script contexts. - ``_ + ``_ """ __path = "/_script_context" __query: t.Dict[str, t.Any] = {} @@ -2080,7 +2080,7 @@ def get_script_languages( """ Returns available script types, languages and contexts - ``_ + ``_ """ __path = "/_script_language" __query: t.Dict[str, t.Any] = {} @@ -2139,7 +2139,7 @@ def get_source( """ Returns the source of a document. - ``_ + ``_ :param index: Name of the index that contains the document. :param id: Unique identifier of the document. @@ -2220,7 +2220,7 @@ def health_report( """ Returns the health of the cluster. - ``_ + ``_ :param feature: A feature of the cluster, as returned by the top-level health report API. @@ -2288,7 +2288,7 @@ def index( """ Creates or updates a document in an index. - ``_ + ``_ :param index: Name of the data stream or index to target. :param document: @@ -2386,7 +2386,7 @@ def info( """ Returns basic information about the cluster. - ``_ + ``_ """ __path = "/" __query: t.Dict[str, t.Any] = {} @@ -2441,7 +2441,7 @@ def knn_search( """ Performs a kNN search. - ``_ + ``_ :param index: A comma-separated list of index names to search; use `_all` or to perform the operation on all indices @@ -2544,7 +2544,7 @@ def mget( """ Allows to get multiple documents in one request. - ``_ + ``_ :param index: Name of the index to retrieve documents from when `ids` are specified, or when a document in the `docs` array does not specify an index. @@ -2661,7 +2661,7 @@ def msearch( """ Allows to execute several search operations in one request. - ``_ + ``_ :param searches: :param index: Comma-separated list of data streams, indices, and index aliases @@ -2774,7 +2774,7 @@ def msearch_template( """ Allows to execute several search template operations in one request. - ``_ + ``_ :param search_templates: :param index: Comma-separated list of data streams, indices, and aliases to search. @@ -2861,7 +2861,7 @@ def mtermvectors( """ Returns multiple termvectors in one request. - ``_ + ``_ :param index: Name of the index that contains the documents. :param docs: Array of existing or artificial documents. @@ -2970,7 +2970,7 @@ def open_point_in_time( """ Open a point in time that can be used in subsequent searches - ``_ + ``_ :param index: A comma-separated list of index names to open point in time; use `_all` or empty string to perform the operation on all indices @@ -3037,7 +3037,7 @@ def put_script( """ Creates or updates a script. - ``_ + ``_ :param id: Identifier for the stored script or search template. Must be unique within the cluster. @@ -3126,7 +3126,7 @@ def rank_eval( Allows to evaluate the quality of ranked search results over a set of typical search queries - ``_ + ``_ :param requests: A set of typical search requests, together with their provided ratings. @@ -3213,7 +3213,7 @@ def reindex( source documents by a query, changing the destination index settings, or fetching the documents from a remote cluster. - ``_ + ``_ :param dest: The destination you are copying to. :param source: The source you are copying from. @@ -3303,7 +3303,7 @@ def reindex_rethrottle( """ Changes the number of requests per second for a particular Reindex operation. - ``_ + ``_ :param task_id: Identifier for the task. :param requests_per_second: The throttle for this request in sub-requests per @@ -3349,7 +3349,7 @@ def render_search_template( """ Allows to use the Mustache language to pre-render a search definition. - ``_ + ``_ :param id: ID of the search template to render. If no `source` is specified, this or the `id` request body parameter is required. @@ -3408,7 +3408,7 @@ def scripts_painless_execute( """ Allows an arbitrary script to be executed and a result to be returned - ``_ + ``_ :param context: The context that the script should run in. :param context_setup: Additional parameters for the `context`. @@ -3459,7 +3459,7 @@ def scroll( """ Allows to retrieve a large numbers of results from a single search request. - ``_ + ``_ :param scroll_id: Scroll ID of the search. :param rest_total_hits_as_int: If true, the API response’s hit.total property @@ -3641,7 +3641,7 @@ def search( """ Returns results matching a query. - ``_ + ``_ :param index: Comma-separated list of data streams, indices, and aliases to search. Supports wildcards (`*`). To search all data streams and indices, omit this @@ -4033,7 +4033,7 @@ def search_mvt( Searches a vector tile for geospatial values. Returns results as a binary Mapbox vector tile. - ``_ + ``_ :param index: Comma-separated list of data streams, indices, or aliases to search :param field: Field containing geospatial data to return @@ -4186,7 +4186,7 @@ def search_shards( Returns information about the indices and shards that a search request would be executed against. - ``_ + ``_ :param index: Returns the indices and shards that a search request would be executed against. @@ -4290,7 +4290,7 @@ def search_template( """ Allows to use the Mustache language to pre-render a search definition. - ``_ + ``_ :param index: Comma-separated list of data streams, indices, and aliases to search. Supports wildcards (*). @@ -4407,7 +4407,7 @@ def terms_enum( the provided string. It is designed for low-latency look-ups used in auto-complete scenarios. - ``_ + ``_ :param index: Comma-separated list of data streams, indices, and index aliases to search. Wildcard (*) expressions are supported. @@ -4501,7 +4501,7 @@ def termvectors( Returns information and statistics about terms in the fields of a particular document. - ``_ + ``_ :param index: Name of the index that contains the document. :param id: Unique identifier of the document. @@ -4630,7 +4630,7 @@ def update( """ Updates a document with a script or partial document. - ``_ + ``_ :param index: The name of the index :param id: Document ID @@ -4799,7 +4799,7 @@ def update_by_query( Performs an update on every document in the index without changing the source, for example to pick up a mapping change. - ``_ + ``_ :param index: Comma-separated list of data streams, indices, and aliases to search. Supports wildcards (`*`). To search all data streams or indices, omit this @@ -4986,7 +4986,7 @@ def update_by_query_rethrottle( """ Changes the number of requests per second for a particular Update By Query operation. - ``_ + ``_ :param task_id: The ID for the task. :param requests_per_second: The throttle for this request in sub-requests per diff --git a/elasticsearch/_sync/client/async_search.py b/elasticsearch/_sync/client/async_search.py index 6934e6a25..37aa5c6d6 100644 --- a/elasticsearch/_sync/client/async_search.py +++ b/elasticsearch/_sync/client/async_search.py @@ -40,7 +40,7 @@ def delete( Deletes an async search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. - ``_ + ``_ :param id: A unique identifier for the async search. """ @@ -82,7 +82,7 @@ def get( Retrieves the results of a previously submitted async search request given its ID. - ``_ + ``_ :param id: A unique identifier for the async search. :param keep_alive: Specifies how long the async search should be available in @@ -139,7 +139,7 @@ def status( Retrieves the status of a previously submitted async search request given its ID. - ``_ + ``_ :param id: A unique identifier for the async search. """ @@ -310,7 +310,7 @@ def submit( """ Executes a search request asynchronously. - ``_ + ``_ :param index: A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices diff --git a/elasticsearch/_sync/client/autoscaling.py b/elasticsearch/_sync/client/autoscaling.py index bf78751a8..e0e52f420 100644 --- a/elasticsearch/_sync/client/autoscaling.py +++ b/elasticsearch/_sync/client/autoscaling.py @@ -40,7 +40,7 @@ def delete_autoscaling_policy( Deletes an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported. - ``_ + ``_ :param name: the name of the autoscaling policy """ @@ -76,7 +76,7 @@ def get_autoscaling_capacity( Gets the current autoscaling capacity based on the configured autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported. - ``_ + ``_ """ __path = "/_autoscaling/capacity" __query: t.Dict[str, t.Any] = {} @@ -109,7 +109,7 @@ def get_autoscaling_policy( Retrieves an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported. - ``_ + ``_ :param name: the name of the autoscaling policy """ @@ -149,7 +149,7 @@ def put_autoscaling_policy( Creates a new autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported. - ``_ + ``_ :param name: the name of the autoscaling policy :param policy: diff --git a/elasticsearch/_sync/client/cat.py b/elasticsearch/_sync/client/cat.py index b596cf4e1..b59f30b13 100644 --- a/elasticsearch/_sync/client/cat.py +++ b/elasticsearch/_sync/client/cat.py @@ -67,7 +67,7 @@ def aliases( Shows information about currently configured aliases to indices including filter and routing infos. - ``_ + ``_ :param name: A comma-separated list of aliases to retrieve. Supports wildcards (`*`). To retrieve all aliases, omit this parameter or use `*` or `_all`. @@ -152,7 +152,7 @@ def allocation( Provides a snapshot of how many shards are allocated to each data node and how much disk space they are using. - ``_ + ``_ :param node_id: Comma-separated list of node identifiers or names used to limit the returned information. @@ -230,7 +230,7 @@ def component_templates( """ Returns information about existing component_templates templates. - ``_ + ``_ :param name: The name of the component template. Accepts wildcard expressions. If omitted, all component templates are returned. @@ -306,7 +306,7 @@ def count( Provides quick access to the document count of the entire cluster, or individual indices. - ``_ + ``_ :param index: Comma-separated list of data streams, indices, and aliases used to limit the request. Supports wildcards (`*`). To target all data streams @@ -388,7 +388,7 @@ def fielddata( Shows how much heap memory is currently being used by fielddata on every data node in the cluster. - ``_ + ``_ :param fields: Comma-separated list of fields used to limit returned information. To retrieve all fields, omit this parameter. @@ -469,7 +469,7 @@ def health( """ Returns a concise representation of the cluster health. - ``_ + ``_ :param format: Specifies the format to return the columnar data in, can be set to `text`, `json`, `cbor`, `yaml`, or `smile`. @@ -544,7 +544,7 @@ def help( """ Returns help for the Cat APIs. - ``_ + ``_ :param format: Specifies the format to return the columnar data in, can be set to `text`, `json`, `cbor`, `yaml`, or `smile`. @@ -642,7 +642,7 @@ def indices( Returns information about indices: number of primaries and replicas, document counts, disk size, ... - ``_ + ``_ :param index: Comma-separated list of data streams, indices, and aliases used to limit the request. Supports wildcards (`*`). To target all data streams @@ -737,7 +737,7 @@ def master( """ Returns information about the master node. - ``_ + ``_ :param format: Specifies the format to return the columnar data in, can be set to `text`, `json`, `cbor`, `yaml`, or `smile`. @@ -856,7 +856,7 @@ def ml_data_frame_analytics( """ Gets configuration and usage information about data frame analytics jobs. - ``_ + ``_ :param id: The ID of the data frame analytics to fetch :param allow_no_match: Whether to ignore if a wildcard expression matches no @@ -987,7 +987,7 @@ def ml_datafeeds( """ Gets configuration and usage information about datafeeds. - ``_ + ``_ :param datafeed_id: A numerical character string that uniquely identifies the datafeed. @@ -1124,7 +1124,7 @@ def ml_jobs( """ Gets configuration and usage information about anomaly detection jobs. - ``_ + ``_ :param job_id: Identifier for the anomaly detection job. :param allow_no_match: Specifies what to do when the request: * Contains wildcard @@ -1264,7 +1264,7 @@ def ml_trained_models( """ Gets configuration and usage information about inference trained models. - ``_ + ``_ :param model_id: A unique identifier for the trained model. :param allow_no_match: Specifies what to do when the request: contains wildcard @@ -1354,7 +1354,7 @@ def nodeattrs( """ Returns information about custom node attributes. - ``_ + ``_ :param format: Specifies the format to return the columnar data in, can be set to `text`, `json`, `cbor`, `yaml`, or `smile`. @@ -1428,7 +1428,7 @@ def nodes( """ Returns basic statistics about performance of cluster nodes. - ``_ + ``_ :param bytes: The unit used to display byte values. :param format: Specifies the format to return the columnar data in, can be set @@ -1508,7 +1508,7 @@ def pending_tasks( """ Returns a concise representation of the cluster pending tasks. - ``_ + ``_ :param format: Specifies the format to return the columnar data in, can be set to `text`, `json`, `cbor`, `yaml`, or `smile`. @@ -1577,7 +1577,7 @@ def plugins( """ Returns information about installed plugins across nodes node. - ``_ + ``_ :param format: Specifies the format to return the columnar data in, can be set to `text`, `json`, `cbor`, `yaml`, or `smile`. @@ -1652,7 +1652,7 @@ def recovery( """ Returns information about index shard recoveries, both on-going completed. - ``_ + ``_ :param index: A comma-separated list of data streams, indices, and aliases used to limit the request. Supports wildcards (`*`). To target all data streams @@ -1737,7 +1737,7 @@ def repositories( """ Returns information about snapshot repositories registered in the cluster. - ``_ + ``_ :param format: Specifies the format to return the columnar data in, can be set to `text`, `json`, `cbor`, `yaml`, or `smile`. @@ -1810,7 +1810,7 @@ def segments( """ Provides low-level information about the segments in the shards of an index. - ``_ + ``_ :param index: A comma-separated list of data streams, indices, and aliases used to limit the request. Supports wildcards (`*`). To target all data streams @@ -1892,7 +1892,7 @@ def shards( """ Provides a detailed view of shard allocation on nodes. - ``_ + ``_ :param index: A comma-separated list of data streams, indices, and aliases used to limit the request. Supports wildcards (`*`). To target all data streams @@ -1974,7 +1974,7 @@ def snapshots( """ Returns all snapshots in a specific repository. - ``_ + ``_ :param repository: A comma-separated list of snapshot repositories used to limit the request. Accepts wildcard expressions. `_all` returns all repositories. @@ -2058,7 +2058,7 @@ def tasks( Returns information about the tasks currently executing on one or more nodes in the cluster. - ``_ + ``_ :param actions: The task action names, which are used to limit the response. :param detailed: If `true`, the response includes detailed information about @@ -2142,7 +2142,7 @@ def templates( """ Returns information about existing templates. - ``_ + ``_ :param name: The name of the template to return. Accepts wildcard expressions. If omitted, all templates are returned. @@ -2223,7 +2223,7 @@ def thread_pool( Returns cluster-wide thread pool statistics per node. By default the active, queue and rejected statistics are returned for all thread pools. - ``_ + ``_ :param thread_pool_patterns: A comma-separated list of thread pool names used to limit the request. Accepts wildcard expressions. @@ -2353,7 +2353,7 @@ def transforms( """ Gets configuration and usage information about transforms. - ``_ + ``_ :param transform_id: A transform identifier or a wildcard expression. If you do not specify one of these options, the API returns information for all diff --git a/elasticsearch/_sync/client/ccr.py b/elasticsearch/_sync/client/ccr.py index 300bf5fb2..fab7116d7 100644 --- a/elasticsearch/_sync/client/ccr.py +++ b/elasticsearch/_sync/client/ccr.py @@ -39,7 +39,7 @@ def delete_auto_follow_pattern( """ Deletes auto-follow patterns. - ``_ + ``_ :param name: The name of the auto follow pattern. """ @@ -96,7 +96,7 @@ def follow( """ Creates a new follower index configured to follow the referenced leader index. - ``_ + ``_ :param index: The name of the follower index :param leader_index: @@ -180,7 +180,7 @@ def follow_info( Retrieves information about all follower indices, including parameters and status for each follower index - ``_ + ``_ :param index: A comma-separated list of index patterns; use `_all` to perform the operation on all indices @@ -218,7 +218,7 @@ def follow_stats( Retrieves follower stats. return shard-level stats about the following tasks associated with each shard for the specified indices. - ``_ + ``_ :param index: A comma-separated list of index patterns; use `_all` to perform the operation on all indices @@ -261,7 +261,7 @@ def forget_follower( """ Removes the follower retention leases from the leader. - ``_ + ``_ :param index: the name of the leader index for which specified follower retention leases should be removed @@ -312,7 +312,7 @@ def get_auto_follow_pattern( Gets configured auto-follow patterns. Returns the specified auto-follow pattern collection. - ``_ + ``_ :param name: Specifies the auto-follow pattern collection that you want to retrieve. If you do not specify a name, the API returns information for all collections. @@ -350,7 +350,7 @@ def pause_auto_follow_pattern( """ Pauses an auto-follow pattern - ``_ + ``_ :param name: The name of the auto follow pattern that should pause discovering new indices to follow. @@ -388,7 +388,7 @@ def pause_follow( Pauses a follower index. The follower index will not fetch any additional operations from the leader index. - ``_ + ``_ :param index: The name of the follower index that should pause following its leader index. @@ -452,7 +452,7 @@ def put_auto_follow_pattern( cluster. Newly created indices on the remote cluster matching any of the specified patterns will be automatically configured as follower indices. - ``_ + ``_ :param name: The name of the collection of auto-follow patterns. :param remote_cluster: The remote cluster containing the leader indices to match @@ -566,7 +566,7 @@ def resume_auto_follow_pattern( """ Resumes an auto-follow pattern that has been paused - ``_ + ``_ :param name: The name of the auto follow pattern to resume discovering new indices to follow. @@ -619,7 +619,7 @@ def resume_follow( """ Resumes a follower index that has been paused - ``_ + ``_ :param index: The name of the follow index to resume following. :param max_outstanding_read_requests: @@ -693,7 +693,7 @@ def stats( """ Gets all stats related to cross-cluster replication. - ``_ + ``_ """ __path = "/_ccr/stats" __query: t.Dict[str, t.Any] = {} @@ -726,7 +726,7 @@ def unfollow( Stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. - ``_ + ``_ :param index: The name of the follower index that should be turned into a regular index. diff --git a/elasticsearch/_sync/client/cluster.py b/elasticsearch/_sync/client/cluster.py index f3cbcc4e1..09b5e3ff0 100644 --- a/elasticsearch/_sync/client/cluster.py +++ b/elasticsearch/_sync/client/cluster.py @@ -46,7 +46,7 @@ def allocation_explain( """ Provides explanations for shard allocations in the cluster. - ``_ + ``_ :param current_node: Specifies the node ID or the name of the node to only explain a shard that is currently located on the specified node. @@ -111,7 +111,7 @@ def delete_component_template( """ Deletes a component template - ``_ + ``_ :param name: Comma-separated list or wildcard expression of component template names used to limit the request. @@ -157,7 +157,7 @@ def delete_voting_config_exclusions( """ Clears cluster voting config exclusions. - ``_ + ``_ :param wait_for_removal: Specifies whether to wait for all excluded nodes to be removed from the cluster before clearing the voting configuration exclusions @@ -202,7 +202,7 @@ def exists_component_template( """ Returns information about whether a particular component template exist - ``_ + ``_ :param name: Comma-separated list of component template names used to limit the request. Wildcard (*) expressions are supported. @@ -255,7 +255,7 @@ def get_component_template( """ Returns one or more component templates - ``_ + ``_ :param name: Comma-separated list of component template names used to limit the request. Wildcard (`*`) expressions are supported. @@ -314,7 +314,7 @@ def get_settings( """ Returns cluster settings. - ``_ + ``_ :param flat_settings: If `true`, returns settings in flat format. :param include_defaults: If `true`, returns default cluster settings from the @@ -404,7 +404,7 @@ def health( """ Returns basic information about the health of the cluster. - ``_ + ``_ :param index: Comma-separated list of data streams, indices, and index aliases used to limit the request. Wildcard expressions (*) are supported. To target @@ -514,7 +514,7 @@ def info( """ Returns different information about the cluster. - ``_ + ``_ :param target: Limits the information returned to the specific target. Supports a comma-separated list, such as http,ingest. @@ -555,7 +555,7 @@ def pending_tasks( Returns a list of any cluster-level changes (e.g. create index, update mapping, allocate or fail shard) which have not yet been executed. - ``_ + ``_ :param local: If `true`, the request retrieves information from the local node only. If `false`, information is retrieved from the master node. @@ -603,7 +603,7 @@ def post_voting_config_exclusions( """ Updates the cluster voting config exclusions by node ids or node names. - ``_ + ``_ :param node_ids: A comma-separated list of the persistent ids of the nodes to exclude from the voting configuration. If specified, you may not also specify @@ -662,7 +662,7 @@ def put_component_template( """ Creates or updates a component template - ``_ + ``_ :param name: Name of the component template to create. Elasticsearch includes the following built-in component templates: `logs-mappings`; 'logs-settings`; @@ -748,7 +748,7 @@ def put_settings( """ Updates the cluster settings. - ``_ + ``_ :param flat_settings: Return settings in flat format (default: false) :param master_timeout: Explicit operation timeout for connection to master node @@ -796,7 +796,7 @@ def remote_info( """ Returns the information about configured remote clusters. - ``_ + ``_ """ __path = "/_remote/info" __query: t.Dict[str, t.Any] = {} @@ -842,7 +842,7 @@ def reroute( """ Allows to manually change the allocation of individual shards in the cluster. - ``_ + ``_ :param commands: Defines the commands to perform. :param dry_run: If true, then the request simulates the operation only and returns @@ -939,7 +939,7 @@ def state( """ Returns a comprehensive information about the state of the cluster. - ``_ + ``_ :param metric: Limit the information returned to the specified metrics :param index: A comma-separated list of index names; use `_all` or empty string @@ -1017,7 +1017,7 @@ def stats( """ Returns high-level overview of cluster statistics. - ``_ + ``_ :param node_id: Comma-separated list of node filters used to limit returned information. Defaults to all nodes in the cluster. diff --git a/elasticsearch/_sync/client/dangling_indices.py b/elasticsearch/_sync/client/dangling_indices.py index 9ae7146bd..8a257300e 100644 --- a/elasticsearch/_sync/client/dangling_indices.py +++ b/elasticsearch/_sync/client/dangling_indices.py @@ -44,7 +44,7 @@ def delete_dangling_index( """ Deletes the specified dangling index - ``_ + ``_ :param index_uuid: The UUID of the dangling index :param accept_data_loss: Must be set to true in order to delete the dangling @@ -97,7 +97,7 @@ def import_dangling_index( """ Imports the specified dangling index - ``_ + ``_ :param index_uuid: The UUID of the dangling index :param accept_data_loss: Must be set to true in order to import the dangling @@ -144,7 +144,7 @@ def list_dangling_indices( """ Returns all dangling indices. - ``_ + ``_ """ __path = "/_dangling" __query: t.Dict[str, t.Any] = {} diff --git a/elasticsearch/_sync/client/enrich.py b/elasticsearch/_sync/client/enrich.py index 337f2e89b..9802c9e42 100644 --- a/elasticsearch/_sync/client/enrich.py +++ b/elasticsearch/_sync/client/enrich.py @@ -39,7 +39,7 @@ def delete_policy( """ Deletes an existing enrich policy and its enrich index. - ``_ + ``_ :param name: Enrich policy to delete. """ @@ -76,7 +76,7 @@ def execute_policy( """ Creates the enrich index for an existing enrich policy. - ``_ + ``_ :param name: Enrich policy to execute. :param wait_for_completion: If `true`, the request blocks other enrich policy @@ -116,7 +116,7 @@ def get_policy( """ Gets information about an enrich policy. - ``_ + ``_ :param name: Comma-separated list of enrich policy names used to limit the request. To return information for all enrich policies, omit this parameter. @@ -159,7 +159,7 @@ def put_policy( """ Creates a new enrich policy. - ``_ + ``_ :param name: Name of the enrich policy to create or update. :param geo_match: Matches enrich data to incoming documents based on a `geo_shape` @@ -207,7 +207,7 @@ def stats( Gets enrich coordinator statistics and information about enrich policies that are currently executing. - ``_ + ``_ """ __path = "/_enrich/_stats" __query: t.Dict[str, t.Any] = {} diff --git a/elasticsearch/_sync/client/eql.py b/elasticsearch/_sync/client/eql.py index c6b314b0b..d7336d86e 100644 --- a/elasticsearch/_sync/client/eql.py +++ b/elasticsearch/_sync/client/eql.py @@ -40,7 +40,7 @@ def delete( Deletes an async EQL search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. - ``_ + ``_ :param id: Identifier for the search to delete. A search ID is provided in the EQL search API's response for an async search. A search ID is also provided @@ -82,7 +82,7 @@ def get( """ Returns async results from previously executed Event Query Language (EQL) search - `< https://www.elastic.co/guide/en/elasticsearch/reference/master/get-async-eql-search-api.html>`_ + `< https://www.elastic.co/guide/en/elasticsearch/reference/8.11/get-async-eql-search-api.html>`_ :param id: Identifier for the search. :param keep_alive: Period for which the search and its results are stored on @@ -129,7 +129,7 @@ def get_status( Returns the status of a previously submitted async or stored Event Query Language (EQL) search - `< https://www.elastic.co/guide/en/elasticsearch/reference/master/get-async-eql-status-api.html>`_ + `< https://www.elastic.co/guide/en/elasticsearch/reference/8.11/get-async-eql-status-api.html>`_ :param id: Identifier for the search. """ @@ -217,7 +217,7 @@ def search( """ Returns results matching a query expressed in Event Query Language (EQL) - ``_ + ``_ :param index: The name of the index to scope the operation :param query: EQL query you wish to run. diff --git a/elasticsearch/_sync/client/features.py b/elasticsearch/_sync/client/features.py index 3afabb326..1bb97a191 100644 --- a/elasticsearch/_sync/client/features.py +++ b/elasticsearch/_sync/client/features.py @@ -39,7 +39,7 @@ def get_features( Gets a list of features which can be included in snapshots using the feature_states field when creating a snapshot - ``_ + ``_ """ __path = "/_features" __query: t.Dict[str, t.Any] = {} @@ -70,7 +70,7 @@ def reset_features( """ Resets the internal state of features, usually by deleting system indices - ``_ + ``_ """ __path = "/_features/_reset" __query: t.Dict[str, t.Any] = {} diff --git a/elasticsearch/_sync/client/fleet.py b/elasticsearch/_sync/client/fleet.py index 65a4b7a18..9659a566a 100644 --- a/elasticsearch/_sync/client/fleet.py +++ b/elasticsearch/_sync/client/fleet.py @@ -44,7 +44,7 @@ def global_checkpoints( Returns the current global checkpoints for an index. This API is design for internal use by the fleet server project. - ``_ + ``_ :param index: A single index or index alias that resolves to a single index. :param checkpoints: A comma separated list of previous global checkpoints. When diff --git a/elasticsearch/_sync/client/graph.py b/elasticsearch/_sync/client/graph.py index b36206995..8dd1fa853 100644 --- a/elasticsearch/_sync/client/graph.py +++ b/elasticsearch/_sync/client/graph.py @@ -50,7 +50,7 @@ def explore( Explore extracted and summarized information about the documents and terms in an index. - ``_ + ``_ :param index: Name of the index. :param connections: Specifies or more fields from which you want to extract terms diff --git a/elasticsearch/_sync/client/ilm.py b/elasticsearch/_sync/client/ilm.py index fba7f8be2..538120b4d 100644 --- a/elasticsearch/_sync/client/ilm.py +++ b/elasticsearch/_sync/client/ilm.py @@ -44,7 +44,7 @@ def delete_lifecycle( Deletes the specified lifecycle policy definition. A currently used policy cannot be deleted. - ``_ + ``_ :param name: Identifier for the policy. :param master_timeout: Period to wait for a connection to the master node. If @@ -96,7 +96,7 @@ def explain_lifecycle( Retrieves information about the index's current lifecycle state, such as the currently executing phase, action, and step. - ``_ + ``_ :param index: Comma-separated list of data streams, indices, and aliases to target. Supports wildcards (`*`). To target all data streams and indices, use `*` @@ -157,7 +157,7 @@ def get_lifecycle( Returns the specified policy definition. Includes the policy version and last modified date. - ``_ + ``_ :param name: Identifier for the policy. :param master_timeout: Period to wait for a connection to the master node. If @@ -202,7 +202,7 @@ def get_status( """ Retrieves the current index lifecycle management (ILM) status. - ``_ + ``_ """ __path = "/_ilm/status" __query: t.Dict[str, t.Any] = {} @@ -239,7 +239,7 @@ def migrate_to_data_tiers( Migrates the indices and ILM policies away from custom node attribute allocation routing to data tiers routing - ``_ + ``_ :param dry_run: If true, simulates the migration from node attributes based allocation filters to data tiers, but does not perform the migration. This provides @@ -292,7 +292,7 @@ def move_to_step( """ Manually moves an index into the specified step and executes that step. - ``_ + ``_ :param index: The name of the index whose lifecycle step is to change :param current_step: @@ -346,7 +346,7 @@ def put_lifecycle( """ Creates a lifecycle policy - ``_ + ``_ :param name: Identifier for the policy. :param master_timeout: Period to wait for a connection to the master node. If @@ -399,7 +399,7 @@ def remove_policy( """ Removes the assigned lifecycle policy and stops managing the specified index - ``_ + ``_ :param index: The name of the index to remove policy on """ @@ -435,7 +435,7 @@ def retry( """ Retries executing the policy for an index that is in the ERROR step. - ``_ + ``_ :param index: The name of the indices (comma-separated) whose failed lifecycle step is to be retry @@ -475,7 +475,7 @@ def start( """ Start the index lifecycle management (ILM) plugin. - ``_ + ``_ :param master_timeout: :param timeout: @@ -518,7 +518,7 @@ def stop( Halts all lifecycle management operations and stops the index lifecycle management (ILM) plugin - ``_ + ``_ :param master_timeout: :param timeout: diff --git a/elasticsearch/_sync/client/indices.py b/elasticsearch/_sync/client/indices.py index a175f33fd..bd5c95c54 100644 --- a/elasticsearch/_sync/client/indices.py +++ b/elasticsearch/_sync/client/indices.py @@ -64,7 +64,7 @@ def add_block( """ Adds a block to an index. - ``_ + ``_ :param index: A comma separated list of indices to add a block to :param block: The block to add (one of read, write, read_only or metadata) @@ -144,7 +144,7 @@ def analyze( Performs the analysis process on a text and return the tokens breakdown of the text. - ``_ + ``_ :param index: Index used to derive the analyzer. If specified, the `analyzer` or field parameter overrides this value. If no index is specified or the @@ -249,7 +249,7 @@ def clear_cache( """ Clears all or specific caches for one or more indices. - ``_ + ``_ :param index: Comma-separated list of data streams, indices, and aliases used to limit the request. Supports wildcards (`*`). To target all data streams @@ -329,7 +329,7 @@ def clone( """ Clones an index - ``_ + ``_ :param index: Name of the source index to clone. :param target: Name of the target index to create. @@ -420,7 +420,7 @@ def close( """ Closes an index. - ``_ + ``_ :param index: Comma-separated list or wildcard expression of index names used to limit the request. @@ -498,7 +498,7 @@ def create( """ Creates an index with optional settings and mappings. - ``_ + ``_ :param index: Name of the index you wish to create. :param aliases: Aliases for the index. @@ -563,7 +563,7 @@ def create_data_stream( """ Creates a data stream - ``_ + ``_ :param name: Name of the data stream, which must meet the following criteria: Lowercase only; Cannot include `\\`, `/`, `*`, `?`, `"`, `<`, `>`, `|`, `,`, @@ -621,7 +621,7 @@ def data_streams_stats( """ Provides statistics on operations happening in a data stream. - ``_ + ``_ :param name: Comma-separated list of data streams used to limit the request. Wildcard expressions (`*`) are supported. To target all data streams in a @@ -688,7 +688,7 @@ def delete( """ Deletes an index. - ``_ + ``_ :param index: Comma-separated list of indices to delete. You cannot specify index aliases. By default, this parameter does not support wildcards (`*`) or `_all`. @@ -756,7 +756,7 @@ def delete_alias( """ Deletes an alias. - ``_ + ``_ :param index: Comma-separated list of data streams or indices used to limit the request. Supports wildcards (`*`). @@ -828,7 +828,7 @@ def delete_data_lifecycle( """ Deletes the data stream lifecycle of the selected data streams. - ``_ + ``_ :param name: A comma-separated list of data streams of which the data stream lifecycle will be deleted; use `*` to get all data streams @@ -893,7 +893,7 @@ def delete_data_stream( """ Deletes a data stream. - ``_ + ``_ :param name: Comma-separated list of data streams to delete. Wildcard (`*`) expressions are supported. @@ -938,7 +938,7 @@ def delete_index_template( """ Deletes an index template. - ``_ + ``_ :param name: Comma-separated list of index template names used to limit the request. Wildcard (*) expressions are supported. @@ -988,7 +988,7 @@ def delete_template( """ Deletes an index template. - ``_ + ``_ :param name: The name of the legacy index template to delete. Wildcard (`*`) expressions are supported. @@ -1056,7 +1056,7 @@ def disk_usage( """ Analyzes the disk usage of each field of an index or data stream - ``_ + ``_ :param index: Comma-separated list of data streams, indices, and aliases used to limit the request. It’s recommended to execute this API with a single @@ -1124,7 +1124,7 @@ def downsample( """ Downsample an index - ``_ + ``_ :param index: Name of the time series index to downsample. :param target_index: Name of the index to create. @@ -1190,7 +1190,7 @@ def exists( """ Returns information about whether a particular index exists. - ``_ + ``_ :param index: Comma-separated list of data streams, indices, and aliases. Supports wildcards (`*`). @@ -1274,7 +1274,7 @@ def exists_alias( """ Returns information about whether a particular alias exists. - ``_ + ``_ :param name: Comma-separated list of aliases to check. Supports wildcards (`*`). :param index: Comma-separated list of data streams or indices used to limit the @@ -1340,7 +1340,7 @@ def exists_index_template( """ Returns information about whether a particular index template exists. - ``_ + ``_ :param name: Comma-separated list of index template names used to limit the request. Wildcard (*) expressions are supported. @@ -1387,7 +1387,7 @@ def exists_template( """ Returns information about whether a particular index template exists. - ``_ + ``_ :param name: The comma separated names of the index templates :param flat_settings: Return settings in flat format (default: false) @@ -1438,7 +1438,7 @@ def explain_data_lifecycle( Retrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc. - ``_ + ``_ :param index: The name of the index to explain :param include_defaults: indicates if the API should return the default values @@ -1511,7 +1511,7 @@ def field_usage_stats( """ Returns the field usage stats for each field of an index - ``_ + ``_ :param index: Comma-separated list or wildcard expression of index names used to limit the request. @@ -1605,7 +1605,7 @@ def flush( """ Performs the flush operation on one or more indices. - ``_ + ``_ :param index: Comma-separated list of data streams, indices, and aliases to flush. Supports wildcards (`*`). To flush all data streams and indices, omit this @@ -1692,7 +1692,7 @@ def forcemerge( """ Performs the force merge operation on one or more indices. - ``_ + ``_ :param index: A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices @@ -1799,7 +1799,7 @@ def get( """ Returns information about one or more indices. - ``_ + ``_ :param index: Comma-separated list of data streams, indices, and index aliases used to limit the request. Wildcard expressions (*) are supported. @@ -1894,7 +1894,7 @@ def get_alias( """ Returns an alias. - ``_ + ``_ :param index: Comma-separated list of data streams or indices used to limit the request. Supports wildcards (`*`). To target all data streams and indices, @@ -1977,7 +1977,7 @@ def get_data_lifecycle( """ Returns the data stream lifecycle of the selected data streams. - ``_ + ``_ :param name: Comma-separated list of data streams to limit the request. Supports wildcards (`*`). To target all data streams, omit this parameter or use `*` @@ -2042,7 +2042,7 @@ def get_data_stream( """ Returns data streams. - ``_ + ``_ :param name: Comma-separated list of data stream names used to limit the request. Wildcard (`*`) expressions are supported. If omitted, all data streams are @@ -2112,7 +2112,7 @@ def get_field_mapping( """ Returns mapping for one or more fields. - ``_ + ``_ :param fields: Comma-separated list or wildcard expression of fields used to limit returned information. @@ -2185,7 +2185,7 @@ def get_index_template( """ Returns an index template. - ``_ + ``_ :param name: Comma-separated list of index template names used to limit the request. Wildcard (*) expressions are supported. @@ -2264,7 +2264,7 @@ def get_mapping( """ Returns mappings for one or more indices. - ``_ + ``_ :param index: Comma-separated list of data streams, indices, and aliases used to limit the request. Supports wildcards (`*`). To target all data streams @@ -2354,7 +2354,7 @@ def get_settings( """ Returns settings for one or more indices. - ``_ + ``_ :param index: Comma-separated list of data streams, indices, and aliases used to limit the request. Supports wildcards (`*`). To target all data streams @@ -2435,7 +2435,7 @@ def get_template( """ Returns an index template. - ``_ + ``_ :param name: Comma-separated list of index template names used to limit the request. Wildcard (`*`) expressions are supported. To return all index templates, @@ -2486,7 +2486,7 @@ def migrate_to_data_stream( """ Migrates an alias to a data stream - ``_ + ``_ :param name: Name of the index alias to convert to a data stream. """ @@ -2526,7 +2526,7 @@ def modify_data_stream( """ Modifies a data stream - ``_ + ``_ :param actions: Actions to perform. """ @@ -2592,7 +2592,7 @@ def open( """ Opens an index. - ``_ + ``_ :param index: Comma-separated list of data streams, indices, and aliases used to limit the request. Supports wildcards (`*`). By default, you must explicitly @@ -2663,7 +2663,7 @@ def promote_data_stream( Promotes a data stream from a replicated data stream managed by CCR to a regular data stream - ``_ + ``_ :param name: The name of the data stream """ @@ -2711,7 +2711,7 @@ def put_alias( """ Creates or updates an alias. - ``_ + ``_ :param index: Comma-separated list of data streams or indices to add. Supports wildcards (`*`). Wildcard patterns that match both data streams and indices @@ -2820,7 +2820,7 @@ def put_data_lifecycle( """ Updates the data stream lifecycle of the selected data streams. - ``_ + ``_ :param name: Comma-separated list of data streams used to limit the request. Supports wildcards (`*`). To target all data streams use `*` or `_all`. @@ -2900,7 +2900,7 @@ def put_index_template( """ Creates or updates an index template. - ``_ + ``_ :param name: Index or template name :param composed_of: An ordered list of component template names. Component templates @@ -3029,7 +3029,7 @@ def put_mapping( """ Updates the index mappings. - ``_ + ``_ :param index: A comma-separated list of index names the mapping should be added to (supports wildcards); use `_all` or omit to add the mapping on all indices. @@ -3163,7 +3163,7 @@ def put_settings( """ Updates the index settings. - ``_ + ``_ :param settings: :param index: Comma-separated list of data streams, indices, and aliases used @@ -3253,7 +3253,7 @@ def put_template( """ Creates or updates an index template. - ``_ + ``_ :param name: The name of the template :param aliases: Aliases for the index. @@ -3331,7 +3331,7 @@ def recovery( """ Returns information about ongoing index shard recoveries. - ``_ + ``_ :param index: Comma-separated list of data streams, indices, and aliases used to limit the request. Supports wildcards (`*`). To target all data streams @@ -3397,7 +3397,7 @@ def refresh( """ Performs the refresh operation in one or more indices. - ``_ + ``_ :param index: Comma-separated list of data streams, indices, and aliases used to limit the request. Supports wildcards (`*`). To target all data streams @@ -3471,7 +3471,7 @@ def reload_search_analyzers( """ Reloads an index's search analyzers and their resources. - ``_ + ``_ :param index: A comma-separated list of index names to reload analyzers for :param allow_no_indices: Whether to ignore if a wildcard indices expression resolves @@ -3538,7 +3538,7 @@ def resolve_index( """ Returns information about any matching indices, aliases, and data streams - ``_ + ``_ :param name: Comma-separated name(s) or index pattern(s) of the indices, aliases, and data streams to resolve. Resources on remote clusters can be specified @@ -3598,7 +3598,7 @@ def rollover( Updates an alias to point to a new index when the existing index is considered to be too large or too old. - ``_ + ``_ :param alias: Name of the data stream or index alias to roll over. :param new_index: Name of the index to create. Supports date math. Data streams @@ -3705,7 +3705,7 @@ def segments( """ Provides low-level information about segments in a Lucene index. - ``_ + ``_ :param index: Comma-separated list of data streams, indices, and aliases used to limit the request. Supports wildcards (`*`). To target all data streams @@ -3793,7 +3793,7 @@ def shard_stores( """ Provides store information for shard copies of indices. - ``_ + ``_ :param index: List of data streams, indices, and aliases used to limit the request. :param allow_no_indices: If false, the request returns an error if any wildcard @@ -3859,7 +3859,7 @@ def shrink( """ Allow to shrink an existing index into a new index with fewer primary shards. - ``_ + ``_ :param index: Name of the source index to shrink. :param target: Name of the target index to create. @@ -3941,7 +3941,7 @@ def simulate_index_template( """ Simulate matching the given index name against the index templates in the system - ``_ + ``_ :param name: Index or template name to simulate :param allow_auto_create: This setting overrides the value of the `action.auto_create_index` @@ -4046,7 +4046,7 @@ def simulate_template( """ Simulate resolving the given template name or body - ``_ + ``_ :param name: Name of the index template to simulate. To test a template configuration before you add it to the cluster, omit this parameter and specify the template @@ -4118,7 +4118,7 @@ def split( """ Allows you to split an existing index into a new index with more primary shards. - ``_ + ``_ :param index: Name of the source index to split. :param target: Name of the target index to create. @@ -4221,7 +4221,7 @@ def stats( """ Provides statistics on operations happening in an index. - ``_ + ``_ :param index: A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices @@ -4329,7 +4329,7 @@ def unfreeze( Unfreezes an index. When a frozen index is unfrozen, the index goes through the normal recovery process and becomes writeable again. - ``_ + ``_ :param index: Identifier for the index. :param allow_no_indices: If `false`, the request returns an error if any wildcard @@ -4402,7 +4402,7 @@ def update_aliases( """ Updates index aliases. - ``_ + ``_ :param actions: Actions to perform. :param master_timeout: Period to wait for a connection to the master node. If @@ -4480,7 +4480,7 @@ def validate_query( """ Allows a user to validate a potentially expensive query without executing it. - ``_ + ``_ :param index: Comma-separated list of data streams, indices, and aliases to search. Supports wildcards (`*`). To search all data streams or indices, omit this diff --git a/elasticsearch/_sync/client/ingest.py b/elasticsearch/_sync/client/ingest.py index 43bf83f39..1ad376fab 100644 --- a/elasticsearch/_sync/client/ingest.py +++ b/elasticsearch/_sync/client/ingest.py @@ -43,7 +43,7 @@ def delete_pipeline( """ Deletes a pipeline. - ``_ + ``_ :param id: Pipeline ID or wildcard expression of pipeline IDs used to limit the request. To delete all ingest pipelines in a cluster, use a value of `*`. @@ -88,7 +88,7 @@ def geo_ip_stats( """ Returns statistical information about geoip databases - ``_ + ``_ """ __path = "/_ingest/geoip/stats" __query: t.Dict[str, t.Any] = {} @@ -124,7 +124,7 @@ def get_pipeline( """ Returns a pipeline. - ``_ + ``_ :param id: Comma-separated list of pipeline IDs to retrieve. Wildcard (`*`) expressions are supported. To get all ingest pipelines, omit this parameter or use `*`. @@ -169,7 +169,7 @@ def processor_grok( """ Returns a list of the built-in patterns. - ``_ + ``_ """ __path = "/_ingest/processor/grok" __query: t.Dict[str, t.Any] = {} @@ -218,7 +218,7 @@ def put_pipeline( """ Creates or updates a pipeline. - ``_ + ``_ :param id: ID of the ingest pipeline to create or update. :param description: Description of the ingest pipeline. @@ -299,7 +299,7 @@ def simulate( """ Allows to simulate a pipeline with example documents. - ``_ + ``_ :param id: Pipeline to test. If you don’t specify a `pipeline` in the request body, this parameter is required. diff --git a/elasticsearch/_sync/client/license.py b/elasticsearch/_sync/client/license.py index 4287857f1..b953b4e02 100644 --- a/elasticsearch/_sync/client/license.py +++ b/elasticsearch/_sync/client/license.py @@ -38,7 +38,7 @@ def delete( """ Deletes licensing information for the cluster - ``_ + ``_ """ __path = "/_license" __query: t.Dict[str, t.Any] = {} @@ -71,7 +71,7 @@ def get( """ Retrieves licensing information for the cluster - ``_ + ``_ :param accept_enterprise: If `true`, this parameter returns enterprise for Enterprise license types. If `false`, this parameter returns platinum for both platinum @@ -113,7 +113,7 @@ def get_basic_status( """ Retrieves information about the status of the basic license. - ``_ + ``_ """ __path = "/_license/basic_status" __query: t.Dict[str, t.Any] = {} @@ -144,7 +144,7 @@ def get_trial_status( """ Retrieves information about the status of the trial license. - ``_ + ``_ """ __path = "/_license/trial_status" __query: t.Dict[str, t.Any] = {} @@ -182,7 +182,7 @@ def post( """ Updates the license for the cluster. - ``_ + ``_ :param acknowledge: Specifies whether you acknowledge the license changes. :param license: @@ -230,7 +230,7 @@ def post_start_basic( """ Starts an indefinite basic license. - ``_ + ``_ :param acknowledge: whether the user has acknowledged acknowledge messages (default: false) @@ -268,7 +268,7 @@ def post_start_trial( """ starts a limited time trial license. - ``_ + ``_ :param acknowledge: whether the user has acknowledged acknowledge messages (default: false) diff --git a/elasticsearch/_sync/client/logstash.py b/elasticsearch/_sync/client/logstash.py index 5726c1f1b..755311411 100644 --- a/elasticsearch/_sync/client/logstash.py +++ b/elasticsearch/_sync/client/logstash.py @@ -39,7 +39,7 @@ def delete_pipeline( """ Deletes Logstash Pipelines used by Central Management - ``_ + ``_ :param id: Identifier for the pipeline. """ @@ -75,7 +75,7 @@ def get_pipeline( """ Retrieves Logstash Pipelines used by Central Management - ``_ + ``_ :param id: Comma-separated list of pipeline identifiers. """ @@ -117,7 +117,7 @@ def put_pipeline( """ Adds and updates Logstash Pipelines used for Central Management - ``_ + ``_ :param id: Identifier for the pipeline. :param pipeline: diff --git a/elasticsearch/_sync/client/migration.py b/elasticsearch/_sync/client/migration.py index 22663c440..c9d3c22e1 100644 --- a/elasticsearch/_sync/client/migration.py +++ b/elasticsearch/_sync/client/migration.py @@ -41,7 +41,7 @@ def deprecations( that use deprecated features that will be removed or changed in the next major version. - ``_ + ``_ :param index: Comma-separate list of data streams or indices to check. Wildcard (*) expressions are supported. @@ -78,7 +78,7 @@ def get_feature_upgrade_status( """ Find out whether system features need to be upgraded or not - ``_ + ``_ """ __path = "/_migration/system_features" __query: t.Dict[str, t.Any] = {} @@ -109,7 +109,7 @@ def post_feature_upgrade( """ Begin upgrades for system features - ``_ + ``_ """ __path = "/_migration/system_features" __query: t.Dict[str, t.Any] = {} diff --git a/elasticsearch/_sync/client/ml.py b/elasticsearch/_sync/client/ml.py index 54b984e79..a4b03253a 100644 --- a/elasticsearch/_sync/client/ml.py +++ b/elasticsearch/_sync/client/ml.py @@ -39,7 +39,7 @@ def clear_trained_model_deployment_cache( """ Clear the cached results from a trained model deployment - ``_ + ``_ :param model_id: The unique identifier of the trained model. """ @@ -81,7 +81,7 @@ def close_job( Closes one or more anomaly detection jobs. A job can be opened and closed multiple times throughout its lifecycle. - ``_ + ``_ :param job_id: Identifier for the anomaly detection job. It can be a job identifier, a group name, or a wildcard expression. You can close multiple anomaly detection @@ -136,7 +136,7 @@ def delete_calendar( """ Deletes a calendar. - ``_ + ``_ :param calendar_id: A string that uniquely identifies a calendar. """ @@ -173,7 +173,7 @@ def delete_calendar_event( """ Deletes scheduled events from a calendar. - ``_ + ``_ :param calendar_id: A string that uniquely identifies a calendar. :param event_id: Identifier for the scheduled event. You can obtain this identifier @@ -214,7 +214,7 @@ def delete_calendar_job( """ Deletes anomaly detection jobs from a calendar. - ``_ + ``_ :param calendar_id: A string that uniquely identifies a calendar. :param job_id: An identifier for the anomaly detection jobs. It can be a job @@ -256,7 +256,7 @@ def delete_data_frame_analytics( """ Deletes an existing data frame analytics job. - ``_ + ``_ :param id: Identifier for the data frame analytics job. :param force: If `true`, it deletes a job that is not stopped; this method is @@ -300,7 +300,7 @@ def delete_datafeed( """ Deletes an existing datafeed. - ``_ + ``_ :param datafeed_id: A numerical character string that uniquely identifies the datafeed. This identifier can contain lowercase alphanumeric characters (a-z @@ -347,7 +347,7 @@ def delete_expired_data( """ Deletes expired and unused machine learning data. - ``_ + ``_ :param job_id: Identifier for an anomaly detection job. It can be a job identifier, a group name, or a wildcard expression. @@ -398,7 +398,7 @@ def delete_filter( """ Deletes a filter. - ``_ + ``_ :param filter_id: A string that uniquely identifies a filter. """ @@ -437,7 +437,7 @@ def delete_forecast( """ Deletes forecasts from a machine learning job. - ``_ + ``_ :param job_id: Identifier for the anomaly detection job. :param forecast_id: A comma-separated list of forecast identifiers. If you do @@ -495,7 +495,7 @@ def delete_job( """ Deletes an existing anomaly detection job. - ``_ + ``_ :param job_id: Identifier for the anomaly detection job. :param delete_user_annotations: Specifies whether annotations that have been @@ -545,7 +545,7 @@ def delete_model_snapshot( """ Deletes an existing model snapshot. - ``_ + ``_ :param job_id: Identifier for the anomaly detection job. :param snapshot_id: Identifier for the model snapshot. @@ -586,7 +586,7 @@ def delete_trained_model( Deletes an existing trained inference model that is currently not referenced by an ingest pipeline. - ``_ + ``_ :param model_id: The unique identifier of the trained model. :param force: Forcefully deletes a trained model that is referenced by ingest @@ -627,7 +627,7 @@ def delete_trained_model_alias( """ Deletes a model alias that refers to the trained model - ``_ + ``_ :param model_id: The trained model ID to which the model alias refers. :param model_alias: The model alias to delete. @@ -670,7 +670,7 @@ def estimate_model_memory( """ Estimates the model memory - ``_ + ``_ :param analysis_config: For a list of the properties that you can specify in the `analysis_config` component of the body of this API. @@ -728,7 +728,7 @@ def evaluate_data_frame( """ Evaluates the data frame analytics for an annotated index. - ``_ + ``_ :param evaluation: Defines the type of evaluation you want to perform. :param index: Defines the `index` in which the evaluation will be performed. @@ -786,7 +786,7 @@ def explain_data_frame_analytics( """ Explains a data frame analytics config. - ``_ + ``_ :param id: Identifier for the data frame analytics job. This identifier can contain lowercase alphanumeric characters (a-z and 0-9), hyphens, and underscores. @@ -877,7 +877,7 @@ def flush_job( """ Forces any buffered data to be processed by the job. - ``_ + ``_ :param job_id: Identifier for the anomaly detection job. :param advance_time: Refer to the description for the `advance_time` query parameter. @@ -938,7 +938,7 @@ def forecast( """ Predicts the future behavior of a time series by using its historical behavior. - ``_ + ``_ :param job_id: Identifier for the anomaly detection job. The job must be open when you create a forecast; otherwise, an error occurs. @@ -1004,7 +1004,7 @@ def get_buckets( """ Retrieves anomaly detection job results for one or more buckets. - ``_ + ``_ :param job_id: Identifier for the anomaly detection job. :param timestamp: The timestamp of a single bucket result. If you do not specify @@ -1091,7 +1091,7 @@ def get_calendar_events( """ Retrieves information about the scheduled events in calendars. - ``_ + ``_ :param calendar_id: A string that uniquely identifies a calendar. You can get information for multiple calendars by using a comma-separated list of ids @@ -1152,7 +1152,7 @@ def get_calendars( """ Retrieves configuration information for calendars. - ``_ + ``_ :param calendar_id: A string that uniquely identifies a calendar. You can get information for multiple calendars by using a comma-separated list of ids @@ -1216,7 +1216,7 @@ def get_categories( """ Retrieves anomaly detection job results for one or more categories. - ``_ + ``_ :param job_id: Identifier for the anomaly detection job. :param category_id: Identifier for the category, which is unique in the job. @@ -1285,7 +1285,7 @@ def get_data_frame_analytics( """ Retrieves configuration information for data frame analytics jobs. - ``_ + ``_ :param id: Identifier for the data frame analytics job. If you do not specify this option, the API returns information for the first hundred data frame @@ -1351,7 +1351,7 @@ def get_data_frame_analytics_stats( """ Retrieves usage information for data frame analytics jobs. - ``_ + ``_ :param id: Identifier for the data frame analytics job. If you do not specify this option, the API returns information for the first hundred data frame @@ -1412,7 +1412,7 @@ def get_datafeed_stats( """ Retrieves usage information for datafeeds. - ``_ + ``_ :param datafeed_id: Identifier for the datafeed. It can be a datafeed identifier or a wildcard expression. If you do not specify one of these options, the @@ -1464,7 +1464,7 @@ def get_datafeeds( """ Retrieves configuration information for datafeeds. - ``_ + ``_ :param datafeed_id: Identifier for the datafeed. It can be a datafeed identifier or a wildcard expression. If you do not specify one of these options, the @@ -1523,7 +1523,7 @@ def get_filters( """ Retrieves filters. - ``_ + ``_ :param filter_id: A string that uniquely identifies a filter. :param from_: Skips the specified number of filters. @@ -1578,7 +1578,7 @@ def get_influencers( """ Retrieves anomaly detection job results for one or more influencers. - ``_ + ``_ :param job_id: Identifier for the anomaly detection job. :param desc: If true, the results are sorted in descending order. @@ -1653,7 +1653,7 @@ def get_job_stats( """ Retrieves usage information for anomaly detection jobs. - ``_ + ``_ :param job_id: Identifier for the anomaly detection job. It can be a job identifier, a group name, a comma-separated list of jobs, or a wildcard expression. If @@ -1706,7 +1706,7 @@ def get_jobs( """ Retrieves configuration information for anomaly detection jobs. - ``_ + ``_ :param job_id: Identifier for the anomaly detection job. It can be a job identifier, a group name, or a wildcard expression. If you do not specify one of these @@ -1763,7 +1763,7 @@ def get_memory_stats( """ Returns information on how ML is using memory. - ``_ + ``_ :param node_id: The names of particular nodes in the cluster to target. For example, `nodeId1,nodeId2` or `ml:true` @@ -1812,7 +1812,7 @@ def get_model_snapshot_upgrade_stats( """ Gets stats for anomaly detection job model snapshot upgrades that are in progress. - ``_ + ``_ :param job_id: Identifier for the anomaly detection job. :param snapshot_id: A numerical character string that uniquely identifies the @@ -1875,7 +1875,7 @@ def get_model_snapshots( """ Retrieves information about model snapshots. - ``_ + ``_ :param job_id: Identifier for the anomaly detection job. :param snapshot_id: A numerical character string that uniquely identifies the @@ -1957,7 +1957,7 @@ def get_overall_buckets( Retrieves overall bucket results that summarize the bucket results of multiple anomaly detection jobs. - ``_ + ``_ :param job_id: Identifier for the anomaly detection job. It can be a job identifier, a group name, a comma-separated list of jobs or groups, or a wildcard expression. @@ -2037,7 +2037,7 @@ def get_records( """ Retrieves anomaly records for an anomaly detection job. - ``_ + ``_ :param job_id: Identifier for the anomaly detection job. :param desc: Refer to the description for the `desc` query parameter. @@ -2120,7 +2120,7 @@ def get_trained_models( """ Retrieves configuration information for a trained inference model. - ``_ + ``_ :param model_id: The unique identifier of the trained model. :param allow_no_match: Specifies what to do when the request: - Contains wildcard @@ -2196,7 +2196,7 @@ def get_trained_models_stats( """ Retrieves usage information for trained inference models. - ``_ + ``_ :param model_id: The unique identifier of the trained model or a model alias. It can be a comma-separated list or a wildcard expression. @@ -2254,7 +2254,7 @@ def infer_trained_model( """ Evaluate a trained model. - ``_ + ``_ :param model_id: The unique identifier of the trained model. :param docs: An array of objects to pass to the model for inference. The objects @@ -2305,7 +2305,7 @@ def info( """ Returns defaults and limits used by machine learning. - ``_ + ``_ """ __path = "/_ml/info" __query: t.Dict[str, t.Any] = {} @@ -2340,7 +2340,7 @@ def open_job( """ Opens one or more anomaly detection jobs. - ``_ + ``_ :param job_id: Identifier for the anomaly detection job. :param timeout: Refer to the description for the `timeout` query parameter. @@ -2389,7 +2389,7 @@ def post_calendar_events( """ Posts scheduled events in a calendar. - ``_ + ``_ :param calendar_id: A string that uniquely identifies a calendar. :param events: A list of one of more scheduled events. The event’s start and @@ -2438,7 +2438,7 @@ def post_data( """ Sends data to an anomaly detection job for analysis. - ``_ + ``_ :param job_id: Identifier for the anomaly detection job. The job must have a state of open to receive and process the data. @@ -2491,7 +2491,7 @@ def preview_data_frame_analytics( """ Previews that will be analyzed given a data frame analytics config. - ``_ + ``_ :param id: Identifier for the data frame analytics job. :param config: A data frame analytics config as described in create data frame @@ -2544,7 +2544,7 @@ def preview_datafeed( """ Previews a datafeed. - ``_ + ``_ :param datafeed_id: A numerical character string that uniquely identifies the datafeed. This identifier can contain lowercase alphanumeric characters (a-z @@ -2611,7 +2611,7 @@ def put_calendar( """ Instantiates a calendar. - ``_ + ``_ :param calendar_id: A string that uniquely identifies a calendar. :param description: A description of the calendar. @@ -2659,7 +2659,7 @@ def put_calendar_job( """ Adds an anomaly detection job to a calendar. - ``_ + ``_ :param calendar_id: A string that uniquely identifies a calendar. :param job_id: An identifier for the anomaly detection jobs. It can be a job @@ -2714,7 +2714,7 @@ def put_data_frame_analytics( """ Instantiates a data frame analytics job. - ``_ + ``_ :param id: Identifier for the data frame analytics job. This identifier can contain lowercase alphanumeric characters (a-z and 0-9), hyphens, and underscores. @@ -2875,7 +2875,7 @@ def put_datafeed( """ Instantiates a datafeed. - ``_ + ``_ :param datafeed_id: A numerical character string that uniquely identifies the datafeed. This identifier can contain lowercase alphanumeric characters (a-z @@ -3021,7 +3021,7 @@ def put_filter( """ Instantiates a filter. - ``_ + ``_ :param filter_id: A string that uniquely identifies a filter. :param description: A description of the filter. @@ -3084,7 +3084,7 @@ def put_job( """ Instantiates an anomaly detection job. - ``_ + ``_ :param job_id: The identifier for the anomaly detection job. This identifier can contain lowercase alphanumeric characters (a-z and 0-9), hyphens, and @@ -3236,13 +3236,14 @@ def put_trained_model( model_type: t.Optional[ t.Union["t.Literal['lang_ident', 'pytorch', 'tree_ensemble']", str] ] = None, + platform_architecture: t.Optional[str] = None, pretty: t.Optional[bool] = None, tags: t.Optional[t.Union[t.List[str], t.Tuple[str, ...]]] = None, ) -> ObjectApiResponse[t.Any]: """ Creates an inference trained model. - ``_ + ``_ :param model_id: The unique identifier of the trained model. :param compressed_definition: The compressed (GZipped and Base64 encoded) inference @@ -3264,6 +3265,14 @@ def put_trained_model( model in memory. This property is supported only if defer_definition_decompression is true or the model definition is not supplied. :param model_type: The model type. + :param platform_architecture: The platform architecture (if applicable) of the + trained mode. If the model only works on one platform, because it is heavily + optimized for a particular processor architecture and OS combination, then + this field specifies which. The format of the string must match the platform + identifiers used by Elasticsearch, so one of, `linux-x86_64`, `linux-aarch64`, + `darwin-x86_64`, `darwin-aarch64`, or `windows-x86_64`. For portable models + (those that work independent of processor architecture or OS features), leave + this field unset. :param tags: An array of tags to organize the model. """ if model_id in SKIP_IN_PATH: @@ -3295,6 +3304,8 @@ def put_trained_model( __body["model_size_bytes"] = model_size_bytes if model_type is not None: __body["model_type"] = model_type + if platform_architecture is not None: + __body["platform_architecture"] = platform_architecture if pretty is not None: __query["pretty"] = pretty if tags is not None: @@ -3322,7 +3333,7 @@ def put_trained_model_alias( Creates a new model alias (or reassigns an existing one) to refer to the trained model - ``_ + ``_ :param model_id: The identifier for the trained model that the alias refers to. :param model_alias: The alias to create or update. This value cannot end in numbers. @@ -3372,7 +3383,7 @@ def put_trained_model_definition_part( """ Creates part of a trained model definition - ``_ + ``_ :param model_id: The unique identifier of the trained model. :param part: The definition part number. When the definition is loaded for inference @@ -3438,7 +3449,7 @@ def put_trained_model_vocabulary( """ Creates a trained model vocabulary - ``_ + ``_ :param model_id: The unique identifier of the trained model. :param vocabulary: The model vocabulary, which must not be empty. @@ -3485,7 +3496,7 @@ def reset_job( """ Resets an existing anomaly detection job. - ``_ + ``_ :param job_id: The ID of the job to reset. :param delete_user_annotations: Specifies whether annotations that have been @@ -3534,7 +3545,7 @@ def revert_model_snapshot( """ Reverts to a specific snapshot. - ``_ + ``_ :param job_id: Identifier for the anomaly detection job. :param snapshot_id: You can specify `empty` as the . Reverting to @@ -3586,7 +3597,7 @@ def set_upgrade_mode( Sets a cluster wide upgrade_mode setting that prepares machine learning indices for an upgrade. - ``_ + ``_ :param enabled: When `true`, it enables `upgrade_mode` which temporarily halts all job and datafeed tasks and prohibits new job and datafeed tasks from @@ -3628,7 +3639,7 @@ def start_data_frame_analytics( """ Starts a data frame analytics job. - ``_ + ``_ :param id: Identifier for the data frame analytics job. This identifier can contain lowercase alphanumeric characters (a-z and 0-9), hyphens, and underscores. @@ -3675,7 +3686,7 @@ def start_datafeed( """ Starts one or more datafeeds. - ``_ + ``_ :param datafeed_id: A numerical character string that uniquely identifies the datafeed. This identifier can contain lowercase alphanumeric characters (a-z @@ -3737,7 +3748,7 @@ def start_trained_model_deployment( """ Start a trained model deployment. - ``_ + ``_ :param model_id: The unique identifier of the trained model. Currently, only PyTorch models are supported. @@ -3813,7 +3824,7 @@ def stop_data_frame_analytics( """ Stops one or more data frame analytics jobs. - ``_ + ``_ :param id: Identifier for the data frame analytics job. This identifier can contain lowercase alphanumeric characters (a-z and 0-9), hyphens, and underscores. @@ -3873,7 +3884,7 @@ def stop_datafeed( """ Stops one or more datafeeds. - ``_ + ``_ :param datafeed_id: Identifier for the datafeed. You can stop multiple datafeeds in a single API request by using a comma-separated list of datafeeds or a @@ -3929,7 +3940,7 @@ def stop_trained_model_deployment( """ Stop a trained model deployment. - ``_ + ``_ :param model_id: The unique identifier of the trained model. :param allow_no_match: Specifies what to do when the request: contains wildcard @@ -3984,7 +3995,7 @@ def update_data_frame_analytics( """ Updates certain properties of a data frame analytics job. - ``_ + ``_ :param id: Identifier for the data frame analytics job. This identifier can contain lowercase alphanumeric characters (a-z and 0-9), hyphens, and underscores. @@ -4080,7 +4091,7 @@ def update_datafeed( """ Updates certain properties of a datafeed. - ``_ + ``_ :param datafeed_id: A numerical character string that uniquely identifies the datafeed. This identifier can contain lowercase alphanumeric characters (a-z @@ -4236,7 +4247,7 @@ def update_filter( """ Updates the description of a filter, adds items, or removes items. - ``_ + ``_ :param filter_id: A string that uniquely identifies a filter. :param add_items: The items to add to the filter. @@ -4307,7 +4318,7 @@ def update_job( """ Updates certain properties of an anomaly detection job. - ``_ + ``_ :param job_id: Identifier for the job. :param allow_lazy_open: Advanced configuration option. Specifies whether this @@ -4428,7 +4439,7 @@ def update_model_snapshot( """ Updates certain properties of a snapshot. - ``_ + ``_ :param job_id: Identifier for the anomaly detection job. :param snapshot_id: Identifier for the model snapshot. @@ -4479,7 +4490,7 @@ def upgrade_job_snapshot( """ Upgrades a given job snapshot to the current major version. - ``_ + ``_ :param job_id: Identifier for the anomaly detection job. :param snapshot_id: A numerical character string that uniquely identifies the @@ -4537,7 +4548,7 @@ def validate( """ Validates an anomaly detection job. - ``_ + ``_ :param analysis_config: :param analysis_limits: @@ -4600,7 +4611,7 @@ def validate_detector( """ Validates an anomaly detection detector. - ``_ + ``_ :param detector: """ diff --git a/elasticsearch/_sync/client/monitoring.py b/elasticsearch/_sync/client/monitoring.py index 3e29ec232..e46e578e6 100644 --- a/elasticsearch/_sync/client/monitoring.py +++ b/elasticsearch/_sync/client/monitoring.py @@ -46,7 +46,7 @@ def bulk( """ Used by the monitoring features to send monitoring data. - ``_ + ``_ :param interval: Collection interval (e.g., '10s' or '10000ms') of the payload :param operations: diff --git a/elasticsearch/_sync/client/nodes.py b/elasticsearch/_sync/client/nodes.py index 310435ce7..f4201cad6 100644 --- a/elasticsearch/_sync/client/nodes.py +++ b/elasticsearch/_sync/client/nodes.py @@ -40,7 +40,7 @@ def clear_repositories_metering_archive( """ Removes the archived repositories metering information present in the cluster. - ``_ + ``_ :param node_id: Comma-separated list of node IDs or names used to limit returned information. All the nodes selective options are explained [here](https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster.html#cluster-nodes). @@ -81,7 +81,7 @@ def get_repositories_metering_info( """ Returns cluster repositories metering information. - ``_ + ``_ :param node_id: Comma-separated list of node IDs or names used to limit returned information. All the nodes selective options are explained [here](https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster.html#cluster-nodes). @@ -134,7 +134,7 @@ def hot_threads( """ Returns information about hot threads on each node in the cluster. - ``_ + ``_ :param node_id: List of node IDs or names used to limit returned information. :param ignore_idle_threads: If true, known idle threads (e.g. waiting in a socket @@ -209,7 +209,7 @@ def info( """ Returns information about nodes in the cluster. - ``_ + ``_ :param node_id: Comma-separated list of node IDs or names used to limit returned information. @@ -271,7 +271,7 @@ def reload_secure_settings( """ Reloads secure settings. - ``_ + ``_ :param node_id: The names of particular nodes in the cluster to target. :param secure_settings_password: The password for the Elasticsearch keystore. @@ -348,7 +348,7 @@ def stats( """ Returns statistical information about nodes in the cluster. - ``_ + ``_ :param node_id: Comma-separated list of node IDs or names used to limit returned information. @@ -450,7 +450,7 @@ def usage( """ Returns low-level information about REST actions usage on nodes. - ``_ + ``_ :param node_id: 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 diff --git a/elasticsearch/_sync/client/query_ruleset.py b/elasticsearch/_sync/client/query_ruleset.py index 66800288d..986537324 100644 --- a/elasticsearch/_sync/client/query_ruleset.py +++ b/elasticsearch/_sync/client/query_ruleset.py @@ -39,7 +39,7 @@ def delete( """ Deletes a query ruleset. - ``_ + ``_ :param ruleset_id: The unique identifier of the query ruleset to delete """ @@ -75,7 +75,7 @@ def get( """ Returns the details about a query ruleset. - ``_ + ``_ :param ruleset_id: The unique identifier of the query ruleset """ @@ -114,7 +114,7 @@ def list( """ Lists query rulesets. - ``_ + ``_ :param from_: Starting offset (default: 0) :param size: specifies a max number of results to get @@ -158,7 +158,7 @@ def put( """ Creates or updates a query ruleset. - ``_ + ``_ :param ruleset_id: The unique identifier of the query ruleset to be created or updated diff --git a/elasticsearch/_sync/client/rollup.py b/elasticsearch/_sync/client/rollup.py index 16ddc29e6..48dd67950 100644 --- a/elasticsearch/_sync/client/rollup.py +++ b/elasticsearch/_sync/client/rollup.py @@ -39,7 +39,7 @@ def delete_job( """ Deletes an existing rollup job. - ``_ + ``_ :param id: Identifier for the job. """ @@ -75,7 +75,7 @@ def get_jobs( """ Retrieves the configuration, stats, and status of rollup jobs. - ``_ + ``_ :param id: Identifier for the rollup job. If it is `_all` or omitted, the API returns all rollup jobs. @@ -114,7 +114,7 @@ def get_rollup_caps( Returns the capabilities of any rollup jobs that have been configured for a specific index or index pattern. - ``_ + ``_ :param id: Index, indices or index-pattern to return rollup capabilities for. `_all` may be used to fetch rollup capabilities from all jobs. @@ -153,7 +153,7 @@ def get_rollup_index_caps( Returns the rollup capabilities of all jobs inside of a rollup index (e.g. the index where rollup data is stored). - ``_ + ``_ :param index: Data stream or index to check for rollup capabilities. Wildcard (`*`) expressions are supported. @@ -205,7 +205,7 @@ def put_job( """ Creates a rollup job. - ``_ + ``_ :param id: Identifier for the rollup job. This can be any alphanumeric string and uniquely identifies the data that is associated with the rollup job. @@ -314,7 +314,7 @@ def rollup_search( """ Enables searching rolled-up data using the standard query DSL. - ``_ + ``_ :param index: Enables searching rolled-up data using the standard Query DSL. :param aggregations: Specifies aggregations. @@ -371,7 +371,7 @@ def start_job( """ Starts an existing, stopped rollup job. - ``_ + ``_ :param id: Identifier for the rollup job. """ @@ -409,7 +409,7 @@ def stop_job( """ Stops an existing, started rollup job. - ``_ + ``_ :param id: Identifier for the rollup job. :param timeout: If `wait_for_completion` is `true`, the API blocks for (at maximum) diff --git a/elasticsearch/_sync/client/search_application.py b/elasticsearch/_sync/client/search_application.py index 17bfd3bbe..6c2744b6b 100644 --- a/elasticsearch/_sync/client/search_application.py +++ b/elasticsearch/_sync/client/search_application.py @@ -39,7 +39,7 @@ def delete( """ Deletes a search application. - ``_ + ``_ :param name: The name of the search application to delete """ @@ -75,7 +75,7 @@ def delete_behavioral_analytics( """ Delete a behavioral analytics collection. - ``_ + ``_ :param name: The name of the analytics collection to be deleted """ @@ -111,7 +111,7 @@ def get( """ Returns the details about a search application. - ``_ + ``_ :param name: The name of the search application """ @@ -147,7 +147,7 @@ def get_behavioral_analytics( """ Returns the existing behavioral analytics collections. - ``_ + ``_ :param name: A list of analytics collections to limit the returned information """ @@ -188,7 +188,7 @@ def list( """ Returns the existing search applications. - ``_ + ``_ :param from_: Starting offset. :param q: Query in the Lucene query string syntax. @@ -234,7 +234,7 @@ def put( """ Creates or updates a search application. - ``_ + ``_ :param name: The name of the search application to be created or updated. :param search_application: @@ -278,7 +278,7 @@ def put_behavioral_analytics( """ Creates a behavioral analytics collection. - ``_ + ``_ :param name: The name of the analytics collection to be created or updated. """ @@ -318,7 +318,7 @@ def search( """ Perform a search against a search application - ``_ + ``_ :param name: The name of the search application to be searched. :param params: Query parameters specific to this request, which will override diff --git a/elasticsearch/_sync/client/searchable_snapshots.py b/elasticsearch/_sync/client/searchable_snapshots.py index 5adf5d333..7248e79b3 100644 --- a/elasticsearch/_sync/client/searchable_snapshots.py +++ b/elasticsearch/_sync/client/searchable_snapshots.py @@ -44,7 +44,7 @@ def cache_stats( """ Retrieve node-level cache statistics about searchable snapshots. - ``_ + ``_ :param node_id: 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 @@ -106,7 +106,7 @@ def clear_cache( """ Clear the cache of searchable snapshots. - ``_ + ``_ :param index: A comma-separated list of index names :param allow_no_indices: Whether to ignore if a wildcard indices expression resolves @@ -170,7 +170,7 @@ def mount( """ Mount a snapshot as a searchable index. - ``_ + ``_ :param repository: The name of the repository containing the snapshot of the index to mount @@ -239,7 +239,7 @@ def stats( """ Retrieve shard-level statistics about searchable snapshots. - ``_ + ``_ :param index: A comma-separated list of index names :param level: Return stats aggregated at cluster, index or shard level diff --git a/elasticsearch/_sync/client/security.py b/elasticsearch/_sync/client/security.py index 53184b05c..5ebc1424e 100644 --- a/elasticsearch/_sync/client/security.py +++ b/elasticsearch/_sync/client/security.py @@ -44,7 +44,7 @@ def activate_user_profile( """ Creates or updates the user profile on behalf of another user. - ``_ + ``_ :param grant_type: :param access_token: @@ -92,7 +92,7 @@ def authenticate( Enables authentication as a user and retrieve information about the authenticated user. - ``_ + ``_ """ __path = "/_security/_authenticate" __query: t.Dict[str, t.Any] = {} @@ -131,7 +131,7 @@ def change_password( """ Changes the passwords of users in the native realm and built-in users. - ``_ + ``_ :param username: The user whose password you want to change. If you do not specify this parameter, the password is changed for the current user. @@ -185,7 +185,7 @@ def clear_api_key_cache( """ Clear a subset or all entries from the API key cache. - ``_ + ``_ :param ids: Comma-separated list of API key IDs to evict from the API key cache. To evict all API keys, use `*`. Does not support other wildcard patterns. @@ -222,7 +222,7 @@ def clear_cached_privileges( """ Evicts application privileges from the native application privileges cache. - ``_ + ``_ :param application: A comma-separated list of application names """ @@ -260,7 +260,7 @@ def clear_cached_realms( Evicts users from the user cache. Can completely clear the cache or evict specific users. - ``_ + ``_ :param realms: Comma-separated list of realms to clear :param usernames: Comma-separated list of usernames to clear from the cache @@ -299,7 +299,7 @@ def clear_cached_roles( """ Evicts roles from the native role cache. - ``_ + ``_ :param name: Role name """ @@ -337,7 +337,7 @@ def clear_cached_service_tokens( """ Evicts tokens from the service account token caches. - ``_ + ``_ :param namespace: An identifier for the namespace :param service: An identifier for the service name @@ -387,7 +387,7 @@ def create_api_key( """ Creates an API key for access without requiring basic authentication. - ``_ + ``_ :param expiration: Expiration time for the API key. By default, API keys never expire. @@ -453,7 +453,7 @@ def create_service_token( """ Creates a service account token for access without requiring basic authentication. - ``_ + ``_ :param namespace: An identifier for the namespace :param service: An identifier for the service name @@ -513,7 +513,7 @@ def delete_privileges( """ Removes application privileges. - ``_ + ``_ :param application: Application name :param name: Privilege name @@ -560,7 +560,7 @@ def delete_role( """ Removes roles in the native realm. - ``_ + ``_ :param name: Role name :param refresh: If `true` (the default) then refresh the affected shards to make @@ -604,7 +604,7 @@ def delete_role_mapping( """ Removes role mappings. - ``_ + ``_ :param name: Role-mapping name :param refresh: If `true` (the default) then refresh the affected shards to make @@ -650,7 +650,7 @@ def delete_service_token( """ Deletes a service account token. - ``_ + ``_ :param namespace: An identifier for the namespace :param service: An identifier for the service name @@ -700,7 +700,7 @@ def delete_user( """ Deletes users from the native realm. - ``_ + ``_ :param username: username :param refresh: If `true` (the default) then refresh the affected shards to make @@ -744,7 +744,7 @@ def disable_user( """ Disables users in the native realm. - ``_ + ``_ :param username: The username of the user to disable :param refresh: If `true` (the default) then refresh the affected shards to make @@ -788,7 +788,7 @@ def disable_user_profile( """ Disables a user profile so it's not visible in user profile searches. - ``_ + ``_ :param uid: Unique identifier for the user profile. :param refresh: If 'true', Elasticsearch refreshes the affected shards to make @@ -832,7 +832,7 @@ def enable_user( """ Enables users in the native realm. - ``_ + ``_ :param username: The username of the user to enable :param refresh: If `true` (the default) then refresh the affected shards to make @@ -876,7 +876,7 @@ def enable_user_profile( """ Enables a user profile so it's visible in user profile searches. - ``_ + ``_ :param uid: Unique identifier for the user profile. :param refresh: If 'true', Elasticsearch refreshes the affected shards to make @@ -917,7 +917,7 @@ def enroll_kibana( Allows a kibana instance to configure itself to communicate with a secured elasticsearch cluster. - ``_ + ``_ """ __path = "/_security/enroll/kibana" __query: t.Dict[str, t.Any] = {} @@ -948,7 +948,7 @@ def enroll_node( """ Allows a new node to enroll to an existing cluster with security enabled. - ``_ + ``_ """ __path = "/_security/enroll/node" __query: t.Dict[str, t.Any] = {} @@ -985,7 +985,7 @@ def get_api_key( """ Retrieves information for one or more API keys. - ``_ + ``_ :param id: An API key id. This parameter cannot be used with any of `name`, `realm_name` or `username`. @@ -1045,7 +1045,7 @@ def get_builtin_privileges( Retrieves the list of cluster privileges and index privileges that are available in this version of Elasticsearch. - ``_ + ``_ """ __path = "/_security/privilege/_builtin" __query: t.Dict[str, t.Any] = {} @@ -1078,7 +1078,7 @@ def get_privileges( """ Retrieves application privileges. - ``_ + ``_ :param application: Application name :param name: Privilege name @@ -1118,7 +1118,7 @@ def get_role( """ Retrieves roles in the native realm. - ``_ + ``_ :param name: The name of the role. You can specify multiple roles as a comma-separated list. If you do not specify this parameter, the API returns information about @@ -1157,7 +1157,7 @@ def get_role_mapping( """ Retrieves role mappings. - ``_ + ``_ :param name: The distinct name that identifies the role mapping. The name is used solely as an identifier to facilitate interaction via the API; it does @@ -1199,7 +1199,7 @@ def get_service_accounts( """ Retrieves information about service accounts. - ``_ + ``_ :param namespace: Name of the namespace. Omit this parameter to retrieve information about all service accounts. If you omit this parameter, you must also omit @@ -1243,7 +1243,7 @@ def get_service_credentials( """ Retrieves information of all service credentials for a service account. - ``_ + ``_ :param namespace: Name of the namespace. :param service: Name of the service name. @@ -1294,7 +1294,7 @@ def get_token( """ Creates a bearer token for access without requiring basic authentication. - ``_ + ``_ :param grant_type: :param kerberos_ticket: @@ -1349,7 +1349,7 @@ def get_user( """ Retrieves information about users in the native realm and built-in users. - ``_ + ``_ :param username: An identifier for the user. You can specify multiple usernames as a comma-separated list. If you omit this parameter, the API retrieves @@ -1394,7 +1394,7 @@ def get_user_privileges( """ Retrieves security privileges for the logged in user. - ``_ + ``_ :param application: The name of the application. Application privileges are always associated with exactly one application. If you do not specify this parameter, @@ -1440,7 +1440,7 @@ def get_user_profile( """ Retrieves user profiles for the given unique ID(s). - ``_ + ``_ :param uid: A unique identifier for the user profile. :param data: List of filters for the `data` field of the profile document. To @@ -1490,7 +1490,7 @@ def grant_api_key( """ Creates an API key on behalf of another user. - ``_ + ``_ :param api_key: Defines the API key. :param grant_type: The type of grant. Supported grant types are: `access_token`, @@ -1577,7 +1577,7 @@ def has_privileges( """ Determines whether the specified user has a specified list of privileges. - ``_ + ``_ :param user: Username :param application: @@ -1628,7 +1628,7 @@ def has_privileges_user_profile( Determines whether the users associated with the specified profile IDs have all the requested privileges. - ``_ + ``_ :param privileges: :param uids: A list of profile IDs. The privileges are checked for associated @@ -1680,7 +1680,7 @@ def invalidate_api_key( """ Invalidates one or more API keys. - ``_ + ``_ :param id: :param ids: A list of API key ids. This parameter cannot be used with any of @@ -1744,7 +1744,7 @@ def invalidate_token( """ Invalidates one or more access tokens or refresh tokens. - ``_ + ``_ :param realm_name: :param refresh_token: @@ -1795,7 +1795,7 @@ def put_privileges( """ Adds or updates application privileges. - ``_ + ``_ :param privileges: :param refresh: If `true` (the default) then refresh the affected shards to make @@ -1870,7 +1870,7 @@ def put_role( """ Adds and updates roles in the native realm. - ``_ + ``_ :param name: The name of the role. :param applications: A list of application privilege entries. @@ -1952,7 +1952,7 @@ def put_role_mapping( """ Creates and updates role mappings. - ``_ + ``_ :param name: Role-mapping name :param enabled: @@ -2022,7 +2022,7 @@ def put_user( Adds and updates users in the native realm. These users are commonly referred to as native users. - ``_ + ``_ :param username: The username of the User :param email: @@ -2106,7 +2106,7 @@ def query_api_keys( """ Retrieves information for API keys using a subset of query DSL - ``_ + ``_ :param from_: Starting document offset. By default, you cannot page through more than 10,000 hits using the from and size parameters. To page through more @@ -2189,7 +2189,7 @@ def saml_authenticate( Exchanges a SAML Response message for an Elasticsearch access token and refresh token pair - ``_ + ``_ :param content: The SAML response as it was sent by the user’s browser, usually a Base64 encoded XML document. @@ -2244,7 +2244,7 @@ def saml_complete_logout( """ Verifies the logout response sent from the SAML IdP - ``_ + ``_ :param ids: A json array with all the valid SAML Request Ids that the caller of the API has for the current user. @@ -2303,7 +2303,7 @@ def saml_invalidate( """ Consumes a SAML LogoutRequest - ``_ + ``_ :param query_string: The query part of the URL that the user was redirected to by the SAML IdP to initiate the Single Logout. This query should include @@ -2364,7 +2364,7 @@ def saml_logout( Invalidates an access token and a refresh token that were generated via the SAML Authenticate API - ``_ + ``_ :param token: The access token that was returned as a response to calling the SAML authenticate API. Alternatively, the most recent token that was received @@ -2414,7 +2414,7 @@ def saml_prepare_authentication( """ Creates a SAML authentication request - ``_ + ``_ :param acs: The Assertion Consumer Service URL that matches the one of the SAML realms in Elasticsearch. The realm is used to generate the authentication @@ -2463,7 +2463,7 @@ def saml_service_provider_metadata( """ Generates SAML metadata for the Elastic stack SAML 2.0 Service Provider - ``_ + ``_ :param realm_name: The name of the SAML realm in Elasticsearch. """ @@ -2504,7 +2504,7 @@ def suggest_user_profiles( """ Get suggestions for user profiles that match specified search criteria. - ``_ + ``_ :param data: List of filters for the `data` field of the profile document. To return all content use `data=*`. To return a subset of content use `data=` @@ -2565,7 +2565,7 @@ def update_api_key( """ Updates attributes of an existing API key. - ``_ + ``_ :param id: The ID of the API key to update. :param metadata: Arbitrary metadata that you want to associate with the API key. @@ -2630,7 +2630,7 @@ def update_user_profile_data( """ Update application specific data for the user profile of the given unique ID. - ``_ + ``_ :param uid: A unique identifier for the user profile. :param data: Non-searchable data that you want to associate with the user profile. diff --git a/elasticsearch/_sync/client/slm.py b/elasticsearch/_sync/client/slm.py index 92e455941..333631341 100644 --- a/elasticsearch/_sync/client/slm.py +++ b/elasticsearch/_sync/client/slm.py @@ -39,7 +39,7 @@ def delete_lifecycle( """ Deletes an existing snapshot lifecycle policy. - ``_ + ``_ :param policy_id: The id of the snapshot lifecycle policy to remove """ @@ -76,7 +76,7 @@ def execute_lifecycle( Immediately creates a snapshot according to the lifecycle policy, without waiting for the scheduled time. - ``_ + ``_ :param policy_id: The id of the snapshot lifecycle policy to be executed """ @@ -111,7 +111,7 @@ def execute_retention( """ Deletes any snapshots that are expired according to the policy's retention rules. - ``_ + ``_ """ __path = "/_slm/_execute_retention" __query: t.Dict[str, t.Any] = {} @@ -146,7 +146,7 @@ def get_lifecycle( Retrieves one or more snapshot lifecycle policy definitions and information about the latest snapshot attempts. - ``_ + ``_ :param policy_id: Comma-separated list of snapshot lifecycle policies to retrieve """ @@ -183,7 +183,7 @@ def get_stats( Returns global and policy-level statistics about actions taken by snapshot lifecycle management. - ``_ + ``_ """ __path = "/_slm/stats" __query: t.Dict[str, t.Any] = {} @@ -214,7 +214,7 @@ def get_status( """ Retrieves the status of snapshot lifecycle management (SLM). - ``_ + ``_ """ __path = "/_slm/status" __query: t.Dict[str, t.Any] = {} @@ -257,7 +257,7 @@ def put_lifecycle( """ Creates or updates a snapshot lifecycle policy. - ``_ + ``_ :param policy_id: ID for the snapshot lifecycle policy you want to create or update. @@ -328,7 +328,7 @@ def start( """ Turns on snapshot lifecycle management (SLM). - ``_ + ``_ """ __path = "/_slm/start" __query: t.Dict[str, t.Any] = {} @@ -359,7 +359,7 @@ def stop( """ Turns off snapshot lifecycle management (SLM). - ``_ + ``_ """ __path = "/_slm/stop" __query: t.Dict[str, t.Any] = {} diff --git a/elasticsearch/_sync/client/snapshot.py b/elasticsearch/_sync/client/snapshot.py index 6cecd9c2c..df1957dc2 100644 --- a/elasticsearch/_sync/client/snapshot.py +++ b/elasticsearch/_sync/client/snapshot.py @@ -43,7 +43,7 @@ def cleanup_repository( """ Removes stale data from repository. - ``_ + ``_ :param name: Snapshot repository to clean up. :param master_timeout: Period to wait for a connection to the master node. @@ -94,7 +94,7 @@ def clone( """ Clones indices from one snapshot into another snapshot in the same repository. - ``_ + ``_ :param repository: A repository name :param snapshot: The name of the snapshot to clone from @@ -163,7 +163,7 @@ def create( """ Creates a snapshot in a repository. - ``_ + ``_ :param repository: Repository for the snapshot. :param snapshot: Name of the snapshot. Must be unique in the repository. @@ -261,7 +261,7 @@ def create_repository( """ Creates a repository. - ``_ + ``_ :param name: A repository name :param settings: @@ -324,7 +324,7 @@ def delete( """ Deletes one or more snapshots. - ``_ + ``_ :param repository: A repository name :param snapshot: A comma-separated list of snapshot names @@ -370,7 +370,7 @@ def delete_repository( """ Deletes a repository. - ``_ + ``_ :param name: Name of the snapshot repository to unregister. Wildcard (`*`) patterns are supported. @@ -434,7 +434,7 @@ def get( """ Returns information about a snapshot. - ``_ + ``_ :param repository: Comma-separated list of snapshot repository names used to limit the request. Wildcard (*) expressions are supported. @@ -541,7 +541,7 @@ def get_repository( """ Returns information about a repository. - ``_ + ``_ :param name: A comma-separated list of repository names :param local: Return local information, do not retrieve the state from master @@ -606,7 +606,7 @@ def restore( """ Restores a snapshot. - ``_ + ``_ :param repository: A repository name :param snapshot: A snapshot name @@ -694,7 +694,7 @@ def status( """ Returns information about the status of a snapshot. - ``_ + ``_ :param repository: A repository name :param snapshot: A comma-separated list of snapshot names @@ -745,7 +745,7 @@ def verify_repository( """ Verifies a repository. - ``_ + ``_ :param name: A repository name :param master_timeout: Explicit operation timeout for connection to master node diff --git a/elasticsearch/_sync/client/sql.py b/elasticsearch/_sync/client/sql.py index 4f8b37e3a..181ee6858 100644 --- a/elasticsearch/_sync/client/sql.py +++ b/elasticsearch/_sync/client/sql.py @@ -41,7 +41,7 @@ def clear_cursor( """ Clears the SQL cursor - ``_ + ``_ :param cursor: Cursor to clear. """ @@ -81,7 +81,7 @@ def delete_async( Deletes an async SQL search or a stored synchronous SQL search. If the search is still running, the API cancels it. - ``_ + ``_ :param id: Identifier for the search. """ @@ -124,7 +124,7 @@ def get_async( Returns the current status and available results for an async SQL search or stored synchronous SQL search - ``_ + ``_ :param id: Identifier for the search. :param delimiter: Separator for CSV results. The API only supports this parameter @@ -178,7 +178,7 @@ def get_async_status( Returns the current status of an async SQL search or a stored synchronous SQL search - ``_ + ``_ :param id: Identifier for the search. """ @@ -237,7 +237,7 @@ def query( """ Executes a SQL request - ``_ + ``_ :param catalog: Default catalog (cluster) for queries. If unspecified, the queries execute on the data in the local cluster only. @@ -340,7 +340,7 @@ def translate( """ Translates SQL into Elasticsearch queries - ``_ + ``_ :param query: SQL query to run. :param fetch_size: The maximum number of rows (or entries) to return in one response. diff --git a/elasticsearch/_sync/client/ssl.py b/elasticsearch/_sync/client/ssl.py index a9b39f0b2..16fe7dfb5 100644 --- a/elasticsearch/_sync/client/ssl.py +++ b/elasticsearch/_sync/client/ssl.py @@ -39,7 +39,7 @@ def certificates( Retrieves information about the X.509 certificates used to encrypt communications in the cluster. - ``_ + ``_ """ __path = "/_ssl/certificates" __query: t.Dict[str, t.Any] = {} diff --git a/elasticsearch/_sync/client/synonyms.py b/elasticsearch/_sync/client/synonyms.py index 6fcec2e70..cd35da9b7 100644 --- a/elasticsearch/_sync/client/synonyms.py +++ b/elasticsearch/_sync/client/synonyms.py @@ -39,7 +39,7 @@ def delete_synonym( """ Deletes a synonym set - ``_ + ``_ :param id: The id of the synonyms set to be deleted """ @@ -76,7 +76,7 @@ def delete_synonym_rule( """ Deletes a synonym rule in a synonym set - ``_ + ``_ :param set_id: The id of the synonym set to be updated :param rule_id: The id of the synonym rule to be deleted @@ -119,7 +119,7 @@ def get_synonym( """ Retrieves a synonym set - ``_ + ``_ :param id: "The id of the synonyms set to be retrieved :param from_: Starting offset for query rules to be retrieved @@ -162,7 +162,7 @@ def get_synonym_rule( """ Retrieves a synonym rule from a synonym set - ``_ + ``_ :param set_id: The id of the synonym set to retrieve the synonym rule from :param rule_id: The id of the synonym rule to retrieve @@ -204,7 +204,7 @@ def get_synonyms_sets( """ Retrieves a summary of all defined synonym sets - ``_ + ``_ :param from_: Starting offset :param size: specifies a max number of results to get @@ -248,7 +248,7 @@ def put_synonym( """ Creates or updates a synonyms set - ``_ + ``_ :param id: The id of the synonyms set to be created or updated :param synonyms_set: The synonym set information to update @@ -294,7 +294,7 @@ def put_synonym_rule( """ Creates or updates a synonym rule in a synonym set - ``_ + ``_ :param set_id: The id of the synonym set to be updated with the synonym rule :param rule_id: The id of the synonym rule to be updated or created diff --git a/elasticsearch/_sync/client/tasks.py b/elasticsearch/_sync/client/tasks.py index 569489b5d..27347026f 100644 --- a/elasticsearch/_sync/client/tasks.py +++ b/elasticsearch/_sync/client/tasks.py @@ -45,7 +45,7 @@ def cancel( """ Cancels a task, if it can be cancelled through an API. - ``_ + ``_ :param task_id: ID of the task. :param actions: Comma-separated list or wildcard expression of actions used to @@ -98,7 +98,7 @@ def get( """ Returns information about a task. - ``_ + ``_ :param task_id: ID of the task. :param timeout: Period to wait for a response. If no response is received before @@ -155,7 +155,7 @@ def list( """ Returns a list of tasks. - ``_ + ``_ :param actions: Comma-separated list or wildcard expression of actions used to limit the request. diff --git a/elasticsearch/_sync/client/text_structure.py b/elasticsearch/_sync/client/text_structure.py index d181cb3fa..ae79428e7 100644 --- a/elasticsearch/_sync/client/text_structure.py +++ b/elasticsearch/_sync/client/text_structure.py @@ -50,7 +50,7 @@ def find_structure( Finds the structure of a text file. The text file must contain data that is suitable to be ingested into Elasticsearch. - ``_ + ``_ :param text_files: :param charset: The text’s character set. It must be a character set that is diff --git a/elasticsearch/_sync/client/transform.py b/elasticsearch/_sync/client/transform.py index 420c5fd8f..5d54c04c5 100644 --- a/elasticsearch/_sync/client/transform.py +++ b/elasticsearch/_sync/client/transform.py @@ -41,7 +41,7 @@ def delete_transform( """ Deletes an existing transform. - ``_ + ``_ :param transform_id: Identifier for the transform. :param force: If this value is false, the transform must be stopped before it @@ -94,7 +94,7 @@ def get_transform( """ Retrieves configuration information for transforms. - ``_ + ``_ :param transform_id: Identifier for the transform. It can be a transform identifier or a wildcard expression. You can get information for all transforms by using @@ -157,7 +157,7 @@ def get_transform_stats( """ Retrieves usage information for transforms. - ``_ + ``_ :param transform_id: Identifier for the transform. It can be a transform identifier or a wildcard expression. You can get information for all transforms by using @@ -223,7 +223,7 @@ def preview_transform( """ Previews a transform. - ``_ + ``_ :param transform_id: Identifier for the transform to preview. If you specify this path parameter, you cannot provide transform configuration details in @@ -320,7 +320,7 @@ def put_transform( """ Instantiates a transform. - ``_ + ``_ :param transform_id: Identifier for the transform. This identifier can contain lowercase alphanumeric characters (a-z and 0-9), hyphens, and underscores. @@ -414,7 +414,7 @@ def reset_transform( """ Resets an existing transform. - ``_ + ``_ :param transform_id: Identifier for the transform. This identifier can contain lowercase alphanumeric characters (a-z and 0-9), hyphens, and underscores. @@ -458,7 +458,7 @@ def schedule_now_transform( """ Schedules now a transform. - ``_ + ``_ :param transform_id: Identifier for the transform. :param timeout: Controls the time to wait for the scheduling to take place @@ -501,7 +501,7 @@ def start_transform( """ Starts one or more transforms. - ``_ + ``_ :param transform_id: Identifier for the transform. :param from_: Restricts the set of transformed entities to those changed after @@ -551,7 +551,7 @@ def stop_transform( """ Stops one or more transforms. - ``_ + ``_ :param transform_id: Identifier for the transform. To stop multiple transforms, use a comma-separated list or a wildcard expression. To stop all transforms, @@ -630,7 +630,7 @@ def update_transform( """ Updates certain properties of a transform. - ``_ + ``_ :param transform_id: Identifier for the transform. :param defer_validation: When true, deferrable validations are not run. This @@ -705,7 +705,7 @@ def upgrade_transforms( """ Upgrades all transforms. - ``_ + ``_ :param dry_run: When true, the request checks for updates but does not run them. :param timeout: Period to wait for a response. If no response is received before diff --git a/elasticsearch/_sync/client/watcher.py b/elasticsearch/_sync/client/watcher.py index e4d256593..10be304c9 100644 --- a/elasticsearch/_sync/client/watcher.py +++ b/elasticsearch/_sync/client/watcher.py @@ -42,7 +42,7 @@ def ack_watch( """ Acknowledges a watch, manually throttling the execution of the watch's actions. - ``_ + ``_ :param watch_id: Watch ID :param action_id: A comma-separated list of the action ids to be acked @@ -84,7 +84,7 @@ def activate_watch( """ Activates a currently inactive watch. - ``_ + ``_ :param watch_id: Watch ID """ @@ -120,7 +120,7 @@ def deactivate_watch( """ Deactivates a currently active watch. - ``_ + ``_ :param watch_id: Watch ID """ @@ -156,7 +156,7 @@ def delete_watch( """ Removes a watch from Watcher. - ``_ + ``_ :param id: Watch ID """ @@ -210,7 +210,7 @@ def execute_watch( """ Forces the execution of a stored watch. - ``_ + ``_ :param id: Identifier for the watch. :param action_modes: Determines how to handle the watch actions as part of the @@ -285,7 +285,7 @@ def get_watch( """ Retrieves a watch by its ID. - ``_ + ``_ :param id: Watch ID """ @@ -334,7 +334,7 @@ def put_watch( """ Creates a new watch, or updates an existing one. - ``_ + ``_ :param id: Watch ID :param actions: @@ -430,7 +430,7 @@ def query_watches( """ Retrieves stored watches. - ``_ + ``_ :param from_: The offset from the first result to fetch. Needs to be non-negative. :param query: Optional, query filter watches to be returned. @@ -494,7 +494,7 @@ def start( """ Starts Watcher if it is not already running. - ``_ + ``_ """ __path = "/_watcher/_start" __query: t.Dict[str, t.Any] = {} @@ -549,7 +549,7 @@ def stats( """ Retrieves the current Watcher metrics. - ``_ + ``_ :param metric: Defines which additional metrics are included in the response. :param emit_stacktraces: Defines whether stack traces are generated for each @@ -589,7 +589,7 @@ def stop( """ Stops Watcher if it is running. - ``_ + ``_ """ __path = "/_watcher/_stop" __query: t.Dict[str, t.Any] = {} diff --git a/elasticsearch/_sync/client/xpack.py b/elasticsearch/_sync/client/xpack.py index 2fd5bbf24..e4ec86eb5 100644 --- a/elasticsearch/_sync/client/xpack.py +++ b/elasticsearch/_sync/client/xpack.py @@ -45,7 +45,7 @@ def info( """ Retrieves information about the installed X-Pack features. - ``_ + ``_ :param accept_enterprise: If this param is used it must be set to true :param categories: A comma-separated list of the information categories to include @@ -87,7 +87,7 @@ def usage( """ Retrieves usage information about the installed X-Pack features. - ``_ + ``_ :param master_timeout: Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and