Skip to content

Commit 2cb6b64

Browse files
authored
[codegen] master synchronization
1 parent d5bb92e commit 2cb6b64

16 files changed

+387
-5
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"ilm.migrate_to_data_tiers":{
3+
"documentation":{
4+
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-migrate-to-data-tiers.html",
5+
"description": "Migrates the indices and ILM policies away from custom node attribute allocation routing to data tiers routing"
6+
},
7+
"stability":"stable",
8+
"visibility":"public",
9+
"headers":{
10+
"accept": [ "application/json"],
11+
"content_type": ["application/json"]
12+
},
13+
"url":{
14+
"paths":[
15+
{
16+
"path":"/_ilm/migrate_to_data_tiers",
17+
"methods":[
18+
"POST"
19+
]
20+
}
21+
]
22+
},
23+
"params": {
24+
"dry_run": {
25+
"type": "boolean",
26+
"description": "If set to true it will simulate the migration, providing a way to retrieve the ILM policies and indices that need to be migrated. The default is false"
27+
}
28+
},
29+
"body":{
30+
"description":"Optionally specify a legacy index template name to delete and optionally specify a node attribute name used for index shard routing (defaults to \"data\")",
31+
"required":false
32+
}
33+
}
34+
}

src/ApiGenerator/RestSpecification/Core/ml.put_job.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,31 @@
2626
}
2727
]
2828
},
29+
"params":{
30+
"ignore_unavailable":{
31+
"type":"boolean",
32+
"description":"Ignore unavailable indexes (default: false). Only set if datafeed_config is provided."
33+
},
34+
"allow_no_indices":{
35+
"type":"boolean",
36+
"description":"Ignore if the source indices expressions resolves to no concrete indices (default: true). Only set if datafeed_config is provided."
37+
},
38+
"ignore_throttled":{
39+
"type":"boolean",
40+
"description":"Ignore indices that are marked as throttled (default: true). Only set if datafeed_config is provided."
41+
},
42+
"expand_wildcards":{
43+
"type":"enum",
44+
"options":[
45+
"open",
46+
"closed",
47+
"hidden",
48+
"none",
49+
"all"
50+
],
51+
"description":"Whether source index expressions should get expanded to open or closed indices (default: open). Only set if datafeed_config is provided."
52+
}
53+
},
2954
"body":{
3055
"description":"The job",
3156
"required":true
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"security.enroll_kibana":{
3+
"documentation":{
4+
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/security-api-enroll-kibana.html",
5+
"description":"Allows a kibana instance to configure itself to communicate with a secured elasticsearch cluster."
6+
},
7+
"stability":"stable",
8+
"visibility":"public",
9+
"headers":{
10+
"accept": [ "application/json"],
11+
"content_type": ["application/json"]
12+
},
13+
"url":{
14+
"paths":[
15+
{
16+
"path":"/_security/enroll/kibana",
17+
"methods":[
18+
"GET"
19+
]
20+
}
21+
]
22+
}
23+
}
24+
}

src/ApiGenerator/RestSpecification/Core/security.enroll_node.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"url":{
1414
"paths":[
1515
{
16-
"path":"/_security/enroll_node",
16+
"path":"/_security/enroll/node",
1717
"methods":[
1818
"GET"
1919
]
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"security.saml_authenticate":{
3+
"documentation":{
4+
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-saml-authenticate.html",
5+
"description":"Exchanges a SAML Response message for an Elasticsearch access token and refresh token pair"
6+
},
7+
"stability":"stable",
8+
"visibility":"public",
9+
"headers":{
10+
"accept": [ "application/json"],
11+
"content_type": ["application/json"]
12+
},
13+
"url":{
14+
"paths":[
15+
{
16+
"path":"/_security/saml/authenticate",
17+
"methods":[
18+
"POST"
19+
]
20+
}
21+
]
22+
},
23+
"body":{
24+
"description":"The SAML response to authenticate",
25+
"required":true
26+
}
27+
}
28+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"security.saml_invalidate":{
3+
"documentation":{
4+
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-saml-invalidate.html",
5+
"description":"Consumes a SAML LogoutRequest"
6+
},
7+
"stability":"stable",
8+
"visibility":"public",
9+
"headers":{
10+
"accept": [ "application/json"],
11+
"content_type": ["application/json"]
12+
},
13+
"url":{
14+
"paths":[
15+
{
16+
"path":"/_security/saml/invalidate",
17+
"methods":[
18+
"POST"
19+
]
20+
}
21+
]
22+
},
23+
"body":{
24+
"description":"The LogoutRequest message",
25+
"required":true
26+
}
27+
}
28+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"security.saml_logout":{
3+
"documentation":{
4+
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-saml-logout.html",
5+
"description":"Invalidates an access token and a refresh token that were generated via the SAML Authenticate API"
6+
},
7+
"stability":"stable",
8+
"visibility":"public",
9+
"headers":{
10+
"accept": [ "application/json"],
11+
"content_type": ["application/json"]
12+
},
13+
"url":{
14+
"paths":[
15+
{
16+
"path":"/_security/saml/logout",
17+
"methods":[
18+
"POST"
19+
]
20+
}
21+
]
22+
},
23+
"body":{
24+
"description":"The tokens to invalidate",
25+
"required":true
26+
}
27+
}
28+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"security.saml_prepare_authentication":{
3+
"documentation":{
4+
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-saml-prepare-authentication.html",
5+
"description":"Creates a SAML authentication request"
6+
},
7+
"stability":"stable",
8+
"visibility":"public",
9+
"headers":{
10+
"accept": [ "application/json"],
11+
"content_type": ["application/json"]
12+
},
13+
"url":{
14+
"paths":[
15+
{
16+
"path":"/_security/saml/prepare",
17+
"methods":[
18+
"POST"
19+
]
20+
}
21+
]
22+
},
23+
"body":{
24+
"description":"The realm for which to create the authentication request, identified by either its name or the ACS URL",
25+
"required":true
26+
}
27+
}
28+
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"security.saml_service_provider_metadata":{
3+
"documentation":{
4+
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-saml-sp-metadata.html",
5+
"description":"Generates SAML metadata for the Elastic stack SAML 2.0 Service Provider"
6+
},
7+
"stability":"stable",
8+
"visibility":"public",
9+
"headers":{
10+
"accept": [ "application/json"],
11+
"content_type": ["application/json"]
12+
},
13+
"url":{
14+
"paths":[
15+
{
16+
"path":"/_security/saml/metadata/{realm_name}",
17+
"methods":[
18+
"GET"
19+
],
20+
"parts":{
21+
"realm_name":{
22+
"type":"string",
23+
"description":"The name of the SAML realm to get the metadata for"
24+
}
25+
}
26+
}
27+
]
28+
}
29+
}
30+
}

src/ApiGenerator/RestSpecification/Core/snapshot.get.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@
4242
"type":"boolean",
4343
"description":"Whether to include details of each index in the snapshot, if those details are available. Defaults to false."
4444
},
45+
"include_repository":{
46+
"type":"boolean",
47+
"description":"Whether to include the repository name in the snapshot info. Defaults to true."
48+
},
4549
"verbose":{
4650
"type":"boolean",
4751
"description":"Whether to show verbose snapshot info or only show the basic info found in the repository index blob"

0 commit comments

Comments
 (0)