Skip to content

[codegen] 7.x synchronization #5561

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 21, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"security.clear_cached_service_tokens":{
"documentation":{
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-service-token-caches.html",
"description":"Evicts tokens from the service account token caches."
},
"stability":"beta",
"visibility":"public",
"headers":{
"accept": [ "application/json"]
},
"url":{
"paths":[
{
"path":"/_security/service/{namespace}/{service}/credential/token/{name}/_clear_cache",
"methods":[
"POST"
],
"parts":{
"namespace":{
"type":"string",
"description":"An identifier for the namespace"
},
"service":{
"type":"string",
"description":"An identifier for the service name"
},
"name":{
"type":"list",
"description":"A comma-separated list of service token names"
}
}
}
]
},
"params":{}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"security.create_service_token":{
"documentation":{
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-create-service-token.html",
"description":"Creates a service account token for access without requiring basic authentication."
},
"stability":"beta",
"visibility":"public",
"headers":{
"accept": [ "application/json"]
},
"url":{
"paths":[
{
"path":"/_security/service/{namespace}/{service}/credential/token/{name}",
"methods":[
"PUT",
"POST"
],
"parts":{
"namespace":{
"type":"string",
"description":"An identifier for the namespace"
},
"service":{
"type":"string",
"description":"An identifier for the service name"
},
"name":{
"type":"string",
"description":"An identifier for the token name"
}
}
},
{
"path":"/_security/service/{namespace}/{service}/credential/token",
"methods":[
"POST"
],
"parts":{
"namespace":{
"type":"string",
"description":"An identifier for the namespace"
},
"service":{
"type":"string",
"description":"An identifier for the service name"
}
}
}
]
},
"params":{
"refresh":{
"type":"enum",
"options":[
"true",
"false",
"wait_for"
],
"description":"If `true` then refresh the affected shards to make this operation visible to search, if `wait_for` (the default) then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes."
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"security.delete_service_token":{
"documentation":{
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-service-token.html",
"description":"Deletes a service account token."
},
"stability":"beta",
"visibility":"public",
"headers":{
"accept": [ "application/json"]
},
"url":{
"paths":[
{
"path":"/_security/service/{namespace}/{service}/credential/token/{name}",
"methods":[
"DELETE"
],
"parts":{
"namespace":{
"type":"string",
"description":"An identifier for the namespace"
},
"service":{
"type":"string",
"description":"An identifier for the service name"
},
"name":{
"type":"string",
"description":"An identifier for the token name"
}
}
}
]
},
"params":{
"refresh":{
"type":"enum",
"options":[
"true",
"false",
"wait_for"
],
"description":"If `true` then refresh the affected shards to make this operation visible to search, if `wait_for` (the default) then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes."
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"security.get_service_accounts":{
"documentation":{
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-service-accounts.html",
"description":"Retrieves information about service accounts."
},
"stability":"beta",
"visibility":"public",
"headers":{
"accept": [ "application/json"]
},
"url":{
"paths":[
{
"path":"/_security/service/{namespace}/{service}",
"methods":[
"GET"
],
"parts":{
"namespace":{
"type":"string",
"description":"An identifier for the namespace"
},
"service":{
"type":"string",
"description":"An identifier for the service name"
}
}
},
{
"path":"/_security/service/{namespace}",
"methods":[
"GET"
],
"parts":{
"namespace":{
"type":"string",
"description":"An identifier for the namespace"
}
}
},
{
"path":"/_security/service",
"methods":[
"GET"
]
}
]
},
"params":{}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"security.get_service_credentials":{
"documentation":{
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-service-credentials.html",
"description":"Retrieves information of all service credentials for a service account."
},
"stability":"beta",
"visibility":"public",
"headers":{
"accept": [ "application/json"]
},
"url":{
"paths":[
{
"path":"/_security/service/{namespace}/{service}/credential",
"methods":[
"GET"
],
"parts":{
"namespace":{
"type":"string",
"description":"An identifier for the namespace"
},
"service":{
"type":"string",
"description":"An identifier for the service name"
}
}
}
]
},
"params":{}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,13 @@ public class ClearCachedRolesRequestParameters : RequestParameters<ClearCachedRo
public override bool SupportsBody => false;
}

///<summary>Request options for ClearCachedServiceTokens <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-service-token-caches.html</para></summary>
public class ClearCachedServiceTokensRequestParameters : RequestParameters<ClearCachedServiceTokensRequestParameters>
{
public override HttpMethod DefaultHttpMethod => HttpMethod.POST;
public override bool SupportsBody => false;
}

///<summary>Request options for CreateApiKey <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-create-api-key.html</para></summary>
public class CreateApiKeyRequestParameters : RequestParameters<CreateApiKeyRequestParameters>
{
Expand All @@ -97,6 +104,22 @@ public Refresh? Refresh
}
}

///<summary>Request options for CreateServiceToken <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-create-service-token.html</para></summary>
public class CreateServiceTokenRequestParameters : RequestParameters<CreateServiceTokenRequestParameters>
{
public override HttpMethod DefaultHttpMethod => HttpMethod.PUT;
public override bool SupportsBody => false;
///<summary>
/// If `true` then refresh the affected shards to make this operation visible to search, if `wait_for` (the default) then wait for a refresh
/// to make this operation visible to search, if `false` then do nothing with refreshes.
///</summary>
public Refresh? Refresh
{
get => Q<Refresh? >("refresh");
set => Q("refresh", value);
}
}

///<summary>Request options for DeletePrivileges <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-privilege.html</para></summary>
public class DeletePrivilegesRequestParameters : RequestParameters<DeletePrivilegesRequestParameters>
{
Expand Down Expand Up @@ -145,6 +168,22 @@ public Refresh? Refresh
}
}

///<summary>Request options for DeleteServiceToken <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-service-token.html</para></summary>
public class DeleteServiceTokenRequestParameters : RequestParameters<DeleteServiceTokenRequestParameters>
{
public override HttpMethod DefaultHttpMethod => HttpMethod.DELETE;
public override bool SupportsBody => false;
///<summary>
/// If `true` then refresh the affected shards to make this operation visible to search, if `wait_for` (the default) then wait for a refresh
/// to make this operation visible to search, if `false` then do nothing with refreshes.
///</summary>
public Refresh? Refresh
{
get => Q<Refresh? >("refresh");
set => Q("refresh", value);
}
}

///<summary>Request options for DeleteUser <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-user.html</para></summary>
public class DeleteUserRequestParameters : RequestParameters<DeleteUserRequestParameters>
{
Expand Down Expand Up @@ -262,6 +301,20 @@ public class GetRoleMappingRequestParameters : RequestParameters<GetRoleMappingR
public override bool SupportsBody => false;
}

///<summary>Request options for GetServiceAccounts <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-service-accounts.html</para></summary>
public class GetServiceAccountsRequestParameters : RequestParameters<GetServiceAccountsRequestParameters>
{
public override HttpMethod DefaultHttpMethod => HttpMethod.GET;
public override bool SupportsBody => false;
}

///<summary>Request options for GetServiceCredentials <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-service-credentials.html</para></summary>
public class GetServiceCredentialsRequestParameters : RequestParameters<GetServiceCredentialsRequestParameters>
{
public override HttpMethod DefaultHttpMethod => HttpMethod.GET;
public override bool SupportsBody => false;
}

///<summary>Request options for GetUserAccessToken <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-token.html</para></summary>
public class GetUserAccessTokenRequestParameters : RequestParameters<GetUserAccessTokenRequestParameters>
{
Expand Down
Loading