From 2b9a70de631f58218f77f913bdfd429df9195bfd Mon Sep 17 00:00:00 2001 From: Florian Bernd Date: Wed, 13 Aug 2025 11:38:44 +0000 Subject: [PATCH] Regenerate client --- .../Types/Aggregations/PercentilesItem.g.cs | 6 +- .../Types/Cluster/ComponentTemplateNode.g.cs | 151 +++++++++++++++++ .../Types/IndexManagement/IndexTemplate.g.cs | 152 ++++++++++++++++++ .../_Generated/Types/Ingest/Pipeline.g.cs | 152 ++++++++++++++++++ 4 files changed, 458 insertions(+), 3 deletions(-) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/PercentilesItem.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/PercentilesItem.g.cs index 7a15b171929..c0ecdcf546e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/PercentilesItem.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/PercentilesItem.g.cs @@ -32,7 +32,7 @@ internal sealed partial class PercentilesItemConverter : System.Text.Json.Serial public override Elastic.Clients.Elasticsearch.Aggregations.PercentilesItem Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) { reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); - LocalJsonValue propKey = default; + LocalJsonValue propKey = default; LocalJsonValue propValue = default; LocalJsonValue propValueAsString = default; while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) @@ -84,7 +84,7 @@ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clien public sealed partial class PercentilesItem { [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] - public PercentilesItem(string key, double? value) + public PercentilesItem(double key, double? value) { Key = key; Value = value; @@ -110,7 +110,7 @@ internal PercentilesItem(Elastic.Clients.Elasticsearch.Serialization.JsonConstru #if NET7_0_OR_GREATER required #endif - string Key { get; set; } + double Key { get; set; } public #if NET7_0_OR_GREATER required diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ComponentTemplateNode.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ComponentTemplateNode.g.cs index 92f7249a7e6..7d59df2b20d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ComponentTemplateNode.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ComponentTemplateNode.g.cs @@ -25,20 +25,38 @@ namespace Elastic.Clients.Elasticsearch.Cluster; internal sealed partial class ComponentTemplateNodeConverter : System.Text.Json.Serialization.JsonConverter { + private static readonly System.Text.Json.JsonEncodedText PropCreatedDate = System.Text.Json.JsonEncodedText.Encode("created_date"); + private static readonly System.Text.Json.JsonEncodedText PropCreatedDateMillis = System.Text.Json.JsonEncodedText.Encode("created_date_millis"); private static readonly System.Text.Json.JsonEncodedText PropDeprecated = System.Text.Json.JsonEncodedText.Encode("deprecated"); private static readonly System.Text.Json.JsonEncodedText PropMeta = System.Text.Json.JsonEncodedText.Encode("_meta"); + private static readonly System.Text.Json.JsonEncodedText PropModifiedDate = System.Text.Json.JsonEncodedText.Encode("modified_date"); + private static readonly System.Text.Json.JsonEncodedText PropModifiedDateMillis = System.Text.Json.JsonEncodedText.Encode("modified_date_millis"); private static readonly System.Text.Json.JsonEncodedText PropTemplate = System.Text.Json.JsonEncodedText.Encode("template"); private static readonly System.Text.Json.JsonEncodedText PropVersion = System.Text.Json.JsonEncodedText.Encode("version"); public override Elastic.Clients.Elasticsearch.Cluster.ComponentTemplateNode Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) { reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); + LocalJsonValue propCreatedDate = default; + LocalJsonValue propCreatedDateMillis = default; LocalJsonValue propDeprecated = default; LocalJsonValue?> propMeta = default; + LocalJsonValue propModifiedDate = default; + LocalJsonValue propModifiedDateMillis = default; LocalJsonValue propTemplate = default; LocalJsonValue propVersion = default; while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) { + if (propCreatedDate.TryReadProperty(ref reader, options, PropCreatedDate, static System.DateTimeOffset? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValueEx(o, typeof(Elastic.Clients.Elasticsearch.Serialization.DateTimeMarker)))) + { + continue; + } + + if (propCreatedDateMillis.TryReadProperty(ref reader, options, PropCreatedDateMillis, static System.DateTimeOffset? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValueEx(o, typeof(Elastic.Clients.Elasticsearch.Serialization.DateTimeMillisMarker)))) + { + continue; + } + if (propDeprecated.TryReadProperty(ref reader, options, PropDeprecated, static bool? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValue(o))) { continue; @@ -49,6 +67,16 @@ public override Elastic.Clients.Elasticsearch.Cluster.ComponentTemplateNode Read continue; } + if (propModifiedDate.TryReadProperty(ref reader, options, PropModifiedDate, static System.DateTimeOffset? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValueEx(o, typeof(Elastic.Clients.Elasticsearch.Serialization.DateTimeMarker)))) + { + continue; + } + + if (propModifiedDateMillis.TryReadProperty(ref reader, options, PropModifiedDateMillis, static System.DateTimeOffset? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValueEx(o, typeof(Elastic.Clients.Elasticsearch.Serialization.DateTimeMillisMarker)))) + { + continue; + } + if (propTemplate.TryReadProperty(ref reader, options, PropTemplate, null)) { continue; @@ -71,8 +99,12 @@ public override Elastic.Clients.Elasticsearch.Cluster.ComponentTemplateNode Read reader.ValidateToken(System.Text.Json.JsonTokenType.EndObject); return new Elastic.Clients.Elasticsearch.Cluster.ComponentTemplateNode(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance) { + CreatedDate = propCreatedDate.Value, + CreatedDateMillis = propCreatedDateMillis.Value, Deprecated = propDeprecated.Value, Meta = propMeta.Value, + ModifiedDate = propModifiedDate.Value, + ModifiedDateMillis = propModifiedDateMillis.Value, Template = propTemplate.Value, Version = propVersion.Value }; @@ -81,8 +113,12 @@ public override Elastic.Clients.Elasticsearch.Cluster.ComponentTemplateNode Read public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.Cluster.ComponentTemplateNode value, System.Text.Json.JsonSerializerOptions options) { writer.WriteStartObject(); + writer.WriteProperty(options, PropCreatedDate, value.CreatedDate, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.DateTimeOffset? v) => w.WriteNullableValueEx(o, v, typeof(Elastic.Clients.Elasticsearch.Serialization.DateTimeMarker))); + writer.WriteProperty(options, PropCreatedDateMillis, value.CreatedDateMillis, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.DateTimeOffset? v) => w.WriteNullableValueEx(o, v, typeof(Elastic.Clients.Elasticsearch.Serialization.DateTimeMillisMarker))); writer.WriteProperty(options, PropDeprecated, value.Deprecated, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, bool? v) => w.WriteNullableValue(o, v)); writer.WriteProperty(options, PropMeta, value.Meta, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.IDictionary? v) => w.WriteDictionaryValue(o, v, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, object v) => w.WriteValueEx(o, v, typeof(Elastic.Clients.Elasticsearch.Serialization.SourceMarker)))); + writer.WriteProperty(options, PropModifiedDate, value.ModifiedDate, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.DateTimeOffset? v) => w.WriteNullableValueEx(o, v, typeof(Elastic.Clients.Elasticsearch.Serialization.DateTimeMarker))); + writer.WriteProperty(options, PropModifiedDateMillis, value.ModifiedDateMillis, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.DateTimeOffset? v) => w.WriteNullableValueEx(o, v, typeof(Elastic.Clients.Elasticsearch.Serialization.DateTimeMillisMarker))); writer.WriteProperty(options, PropTemplate, value.Template, null, null); writer.WriteProperty(options, PropVersion, value.Version, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, long? v) => w.WriteNullableValue(o, v)); writer.WriteEndObject(); @@ -114,8 +150,35 @@ internal ComponentTemplateNode(Elastic.Clients.Elasticsearch.Serialization.JsonC _ = sentinel; } + /// + /// + /// Date and time when the component template was created. Only returned if the human query parameter is true. + /// + /// + public System.DateTimeOffset? CreatedDate { get; set; } + + /// + /// + /// Date and time when the component template was created, in milliseconds since the epoch. + /// + /// + public System.DateTimeOffset? CreatedDateMillis { get; set; } public bool? Deprecated { get; set; } public System.Collections.Generic.IDictionary? Meta { get; set; } + + /// + /// + /// Date and time when the component template was last modified. Only returned if the human query parameter is true. + /// + /// + public System.DateTimeOffset? ModifiedDate { get; set; } + + /// + /// + /// Date and time when the component template was last modified, in milliseconds since the epoch. + /// + /// + public System.DateTimeOffset? ModifiedDateMillis { get; set; } public #if NET7_0_OR_GREATER required @@ -143,6 +206,28 @@ public ComponentTemplateNodeDescriptor() public static explicit operator Elastic.Clients.Elasticsearch.Cluster.ComponentTemplateNodeDescriptor(Elastic.Clients.Elasticsearch.Cluster.ComponentTemplateNode instance) => new Elastic.Clients.Elasticsearch.Cluster.ComponentTemplateNodeDescriptor(instance); public static implicit operator Elastic.Clients.Elasticsearch.Cluster.ComponentTemplateNode(Elastic.Clients.Elasticsearch.Cluster.ComponentTemplateNodeDescriptor descriptor) => descriptor.Instance; + /// + /// + /// Date and time when the component template was created. Only returned if the human query parameter is true. + /// + /// + public Elastic.Clients.Elasticsearch.Cluster.ComponentTemplateNodeDescriptor CreatedDate(System.DateTimeOffset? value) + { + Instance.CreatedDate = value; + return this; + } + + /// + /// + /// Date and time when the component template was created, in milliseconds since the epoch. + /// + /// + public Elastic.Clients.Elasticsearch.Cluster.ComponentTemplateNodeDescriptor CreatedDateMillis(System.DateTimeOffset? value) + { + Instance.CreatedDateMillis = value; + return this; + } + public Elastic.Clients.Elasticsearch.Cluster.ComponentTemplateNodeDescriptor Deprecated(bool? value = true) { Instance.Deprecated = value; @@ -174,6 +259,28 @@ public Elastic.Clients.Elasticsearch.Cluster.ComponentTemplateNodeDescriptor + /// + /// Date and time when the component template was last modified. Only returned if the human query parameter is true. + /// + /// + public Elastic.Clients.Elasticsearch.Cluster.ComponentTemplateNodeDescriptor ModifiedDate(System.DateTimeOffset? value) + { + Instance.ModifiedDate = value; + return this; + } + + /// + /// + /// Date and time when the component template was last modified, in milliseconds since the epoch. + /// + /// + public Elastic.Clients.Elasticsearch.Cluster.ComponentTemplateNodeDescriptor ModifiedDateMillis(System.DateTimeOffset? value) + { + Instance.ModifiedDateMillis = value; + return this; + } + public Elastic.Clients.Elasticsearch.Cluster.ComponentTemplateNodeDescriptor Template(Elastic.Clients.Elasticsearch.Cluster.ComponentTemplateSummary value) { Instance.Template = value; @@ -226,6 +333,28 @@ public ComponentTemplateNodeDescriptor() public static explicit operator Elastic.Clients.Elasticsearch.Cluster.ComponentTemplateNodeDescriptor(Elastic.Clients.Elasticsearch.Cluster.ComponentTemplateNode instance) => new Elastic.Clients.Elasticsearch.Cluster.ComponentTemplateNodeDescriptor(instance); public static implicit operator Elastic.Clients.Elasticsearch.Cluster.ComponentTemplateNode(Elastic.Clients.Elasticsearch.Cluster.ComponentTemplateNodeDescriptor descriptor) => descriptor.Instance; + /// + /// + /// Date and time when the component template was created. Only returned if the human query parameter is true. + /// + /// + public Elastic.Clients.Elasticsearch.Cluster.ComponentTemplateNodeDescriptor CreatedDate(System.DateTimeOffset? value) + { + Instance.CreatedDate = value; + return this; + } + + /// + /// + /// Date and time when the component template was created, in milliseconds since the epoch. + /// + /// + public Elastic.Clients.Elasticsearch.Cluster.ComponentTemplateNodeDescriptor CreatedDateMillis(System.DateTimeOffset? value) + { + Instance.CreatedDateMillis = value; + return this; + } + public Elastic.Clients.Elasticsearch.Cluster.ComponentTemplateNodeDescriptor Deprecated(bool? value = true) { Instance.Deprecated = value; @@ -257,6 +386,28 @@ public Elastic.Clients.Elasticsearch.Cluster.ComponentTemplateNodeDescriptor Add return this; } + /// + /// + /// Date and time when the component template was last modified. Only returned if the human query parameter is true. + /// + /// + public Elastic.Clients.Elasticsearch.Cluster.ComponentTemplateNodeDescriptor ModifiedDate(System.DateTimeOffset? value) + { + Instance.ModifiedDate = value; + return this; + } + + /// + /// + /// Date and time when the component template was last modified, in milliseconds since the epoch. + /// + /// + public Elastic.Clients.Elasticsearch.Cluster.ComponentTemplateNodeDescriptor ModifiedDateMillis(System.DateTimeOffset? value) + { + Instance.ModifiedDateMillis = value; + return this; + } + public Elastic.Clients.Elasticsearch.Cluster.ComponentTemplateNodeDescriptor Template(Elastic.Clients.Elasticsearch.Cluster.ComponentTemplateSummary value) { Instance.Template = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexTemplate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexTemplate.g.cs index 342df108a0f..a380ba83f51 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexTemplate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexTemplate.g.cs @@ -27,11 +27,15 @@ internal sealed partial class IndexTemplateConverter : System.Text.Json.Serializ { private static readonly System.Text.Json.JsonEncodedText PropAllowAutoCreate = System.Text.Json.JsonEncodedText.Encode("allow_auto_create"); private static readonly System.Text.Json.JsonEncodedText PropComposedOf = System.Text.Json.JsonEncodedText.Encode("composed_of"); + private static readonly System.Text.Json.JsonEncodedText PropCreatedDate = System.Text.Json.JsonEncodedText.Encode("created_date"); + private static readonly System.Text.Json.JsonEncodedText PropCreatedDateMillis = System.Text.Json.JsonEncodedText.Encode("created_date_millis"); private static readonly System.Text.Json.JsonEncodedText PropDataStream = System.Text.Json.JsonEncodedText.Encode("data_stream"); private static readonly System.Text.Json.JsonEncodedText PropDeprecated = System.Text.Json.JsonEncodedText.Encode("deprecated"); private static readonly System.Text.Json.JsonEncodedText PropIgnoreMissingComponentTemplates = System.Text.Json.JsonEncodedText.Encode("ignore_missing_component_templates"); private static readonly System.Text.Json.JsonEncodedText PropIndexPatterns = System.Text.Json.JsonEncodedText.Encode("index_patterns"); private static readonly System.Text.Json.JsonEncodedText PropMeta = System.Text.Json.JsonEncodedText.Encode("_meta"); + private static readonly System.Text.Json.JsonEncodedText PropModifiedDate = System.Text.Json.JsonEncodedText.Encode("modified_date"); + private static readonly System.Text.Json.JsonEncodedText PropModifiedDateMillis = System.Text.Json.JsonEncodedText.Encode("modified_date_millis"); private static readonly System.Text.Json.JsonEncodedText PropPriority = System.Text.Json.JsonEncodedText.Encode("priority"); private static readonly System.Text.Json.JsonEncodedText PropTemplate = System.Text.Json.JsonEncodedText.Encode("template"); private static readonly System.Text.Json.JsonEncodedText PropVersion = System.Text.Json.JsonEncodedText.Encode("version"); @@ -41,11 +45,15 @@ public override Elastic.Clients.Elasticsearch.IndexManagement.IndexTemplate Read reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); LocalJsonValue propAllowAutoCreate = default; LocalJsonValue> propComposedOf = default; + LocalJsonValue propCreatedDate = default; + LocalJsonValue propCreatedDateMillis = default; LocalJsonValue propDataStream = default; LocalJsonValue propDeprecated = default; LocalJsonValue propIgnoreMissingComponentTemplates = default; LocalJsonValue propIndexPatterns = default; LocalJsonValue?> propMeta = default; + LocalJsonValue propModifiedDate = default; + LocalJsonValue propModifiedDateMillis = default; LocalJsonValue propPriority = default; LocalJsonValue propTemplate = default; LocalJsonValue propVersion = default; @@ -61,6 +69,16 @@ public override Elastic.Clients.Elasticsearch.IndexManagement.IndexTemplate Read continue; } + if (propCreatedDate.TryReadProperty(ref reader, options, PropCreatedDate, static System.DateTimeOffset? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValueEx(o, typeof(Elastic.Clients.Elasticsearch.Serialization.DateTimeMarker)))) + { + continue; + } + + if (propCreatedDateMillis.TryReadProperty(ref reader, options, PropCreatedDateMillis, static System.DateTimeOffset? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValueEx(o, typeof(Elastic.Clients.Elasticsearch.Serialization.DateTimeMillisMarker)))) + { + continue; + } + if (propDataStream.TryReadProperty(ref reader, options, PropDataStream, null)) { continue; @@ -86,6 +104,16 @@ public override Elastic.Clients.Elasticsearch.IndexManagement.IndexTemplate Read continue; } + if (propModifiedDate.TryReadProperty(ref reader, options, PropModifiedDate, static System.DateTimeOffset? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValueEx(o, typeof(Elastic.Clients.Elasticsearch.Serialization.DateTimeMarker)))) + { + continue; + } + + if (propModifiedDateMillis.TryReadProperty(ref reader, options, PropModifiedDateMillis, static System.DateTimeOffset? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValueEx(o, typeof(Elastic.Clients.Elasticsearch.Serialization.DateTimeMillisMarker)))) + { + continue; + } + if (propPriority.TryReadProperty(ref reader, options, PropPriority, static long? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValue(o))) { continue; @@ -115,11 +143,15 @@ public override Elastic.Clients.Elasticsearch.IndexManagement.IndexTemplate Read { AllowAutoCreate = propAllowAutoCreate.Value, ComposedOf = propComposedOf.Value, + CreatedDate = propCreatedDate.Value, + CreatedDateMillis = propCreatedDateMillis.Value, DataStream = propDataStream.Value, Deprecated = propDeprecated.Value, IgnoreMissingComponentTemplates = propIgnoreMissingComponentTemplates.Value, IndexPatterns = propIndexPatterns.Value, Meta = propMeta.Value, + ModifiedDate = propModifiedDate.Value, + ModifiedDateMillis = propModifiedDateMillis.Value, Priority = propPriority.Value, Template = propTemplate.Value, Version = propVersion.Value @@ -131,11 +163,15 @@ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clien writer.WriteStartObject(); writer.WriteProperty(options, PropAllowAutoCreate, value.AllowAutoCreate, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, bool? v) => w.WriteNullableValue(o, v)); writer.WriteProperty(options, PropComposedOf, value.ComposedOf, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.ICollection v) => w.WriteCollectionValue(o, v, null)); + writer.WriteProperty(options, PropCreatedDate, value.CreatedDate, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.DateTimeOffset? v) => w.WriteNullableValueEx(o, v, typeof(Elastic.Clients.Elasticsearch.Serialization.DateTimeMarker))); + writer.WriteProperty(options, PropCreatedDateMillis, value.CreatedDateMillis, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.DateTimeOffset? v) => w.WriteNullableValueEx(o, v, typeof(Elastic.Clients.Elasticsearch.Serialization.DateTimeMillisMarker))); writer.WriteProperty(options, PropDataStream, value.DataStream, null, null); writer.WriteProperty(options, PropDeprecated, value.Deprecated, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, bool? v) => w.WriteNullableValue(o, v)); writer.WriteProperty(options, PropIgnoreMissingComponentTemplates, value.IgnoreMissingComponentTemplates, null, null); writer.WriteProperty(options, PropIndexPatterns, value.IndexPatterns, null, null); writer.WriteProperty(options, PropMeta, value.Meta, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.IDictionary? v) => w.WriteDictionaryValue(o, v, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, object v) => w.WriteValueEx(o, v, typeof(Elastic.Clients.Elasticsearch.Serialization.SourceMarker)))); + writer.WriteProperty(options, PropModifiedDate, value.ModifiedDate, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.DateTimeOffset? v) => w.WriteNullableValueEx(o, v, typeof(Elastic.Clients.Elasticsearch.Serialization.DateTimeMarker))); + writer.WriteProperty(options, PropModifiedDateMillis, value.ModifiedDateMillis, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.DateTimeOffset? v) => w.WriteNullableValueEx(o, v, typeof(Elastic.Clients.Elasticsearch.Serialization.DateTimeMillisMarker))); writer.WriteProperty(options, PropPriority, value.Priority, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, long? v) => w.WriteNullableValue(o, v)); writer.WriteProperty(options, PropTemplate, value.Template, null, null); writer.WriteProperty(options, PropVersion, value.Version, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, long? v) => w.WriteNullableValue(o, v)); @@ -183,6 +219,20 @@ internal IndexTemplate(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct #endif System.Collections.Generic.ICollection ComposedOf { get; set; } + /// + /// + /// Date and time when the index template was created. Only returned if the human query parameter is true. + /// + /// + public System.DateTimeOffset? CreatedDate { get; set; } + + /// + /// + /// Date and time when the index template was created, in milliseconds since the epoch. + /// + /// + public System.DateTimeOffset? CreatedDateMillis { get; set; } + /// /// /// If this object is included, the template is used to create data streams and their backing indices. @@ -227,6 +277,20 @@ internal IndexTemplate(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// public System.Collections.Generic.IDictionary? Meta { get; set; } + /// + /// + /// Date and time when the index template was last modified. Only returned if the human query parameter is true. + /// + /// + public System.DateTimeOffset? ModifiedDate { get; set; } + + /// + /// + /// Date and time when the index template was last modified, in milliseconds since the epoch. + /// + /// + public System.DateTimeOffset? ModifiedDateMillis { get; set; } + /// /// /// Priority to determine index template precedence when a new data stream or index is created. @@ -303,6 +367,28 @@ public Elastic.Clients.Elasticsearch.IndexManagement.IndexTemplateDescriptor + /// + /// Date and time when the index template was created. Only returned if the human query parameter is true. + /// + /// + public Elastic.Clients.Elasticsearch.IndexManagement.IndexTemplateDescriptor CreatedDate(System.DateTimeOffset? value) + { + Instance.CreatedDate = value; + return this; + } + + /// + /// + /// Date and time when the index template was created, in milliseconds since the epoch. + /// + /// + public Elastic.Clients.Elasticsearch.IndexManagement.IndexTemplateDescriptor CreatedDateMillis(System.DateTimeOffset? value) + { + Instance.CreatedDateMillis = value; + return this; + } + /// /// /// If this object is included, the template is used to create data streams and their backing indices. @@ -420,6 +506,28 @@ public Elastic.Clients.Elasticsearch.IndexManagement.IndexTemplateDescriptor + /// + /// Date and time when the index template was last modified. Only returned if the human query parameter is true. + /// + /// + public Elastic.Clients.Elasticsearch.IndexManagement.IndexTemplateDescriptor ModifiedDate(System.DateTimeOffset? value) + { + Instance.ModifiedDate = value; + return this; + } + + /// + /// + /// Date and time when the index template was last modified, in milliseconds since the epoch. + /// + /// + public Elastic.Clients.Elasticsearch.IndexManagement.IndexTemplateDescriptor ModifiedDateMillis(System.DateTimeOffset? value) + { + Instance.ModifiedDateMillis = value; + return this; + } + /// /// /// Priority to determine index template precedence when a new data stream or index is created. @@ -540,6 +648,28 @@ public Elastic.Clients.Elasticsearch.IndexManagement.IndexTemplateDescriptor Com return this; } + /// + /// + /// Date and time when the index template was created. Only returned if the human query parameter is true. + /// + /// + public Elastic.Clients.Elasticsearch.IndexManagement.IndexTemplateDescriptor CreatedDate(System.DateTimeOffset? value) + { + Instance.CreatedDate = value; + return this; + } + + /// + /// + /// Date and time when the index template was created, in milliseconds since the epoch. + /// + /// + public Elastic.Clients.Elasticsearch.IndexManagement.IndexTemplateDescriptor CreatedDateMillis(System.DateTimeOffset? value) + { + Instance.CreatedDateMillis = value; + return this; + } + /// /// /// If this object is included, the template is used to create data streams and their backing indices. @@ -657,6 +787,28 @@ public Elastic.Clients.Elasticsearch.IndexManagement.IndexTemplateDescriptor Add return this; } + /// + /// + /// Date and time when the index template was last modified. Only returned if the human query parameter is true. + /// + /// + public Elastic.Clients.Elasticsearch.IndexManagement.IndexTemplateDescriptor ModifiedDate(System.DateTimeOffset? value) + { + Instance.ModifiedDate = value; + return this; + } + + /// + /// + /// Date and time when the index template was last modified, in milliseconds since the epoch. + /// + /// + public Elastic.Clients.Elasticsearch.IndexManagement.IndexTemplateDescriptor ModifiedDateMillis(System.DateTimeOffset? value) + { + Instance.ModifiedDateMillis = value; + return this; + } + /// /// /// Priority to determine index template precedence when a new data stream or index is created. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Pipeline.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Pipeline.g.cs index 68bd4adbf4d..35343f57f5a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Pipeline.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Pipeline.g.cs @@ -25,9 +25,13 @@ namespace Elastic.Clients.Elasticsearch.Ingest; internal sealed partial class PipelineConverter : System.Text.Json.Serialization.JsonConverter { + private static readonly System.Text.Json.JsonEncodedText PropCreatedDate = System.Text.Json.JsonEncodedText.Encode("created_date"); + private static readonly System.Text.Json.JsonEncodedText PropCreatedDateMillis = System.Text.Json.JsonEncodedText.Encode("created_date_millis"); private static readonly System.Text.Json.JsonEncodedText PropDeprecated = System.Text.Json.JsonEncodedText.Encode("deprecated"); private static readonly System.Text.Json.JsonEncodedText PropDescription = System.Text.Json.JsonEncodedText.Encode("description"); private static readonly System.Text.Json.JsonEncodedText PropMeta = System.Text.Json.JsonEncodedText.Encode("_meta"); + private static readonly System.Text.Json.JsonEncodedText PropModifiedDate = System.Text.Json.JsonEncodedText.Encode("modified_date"); + private static readonly System.Text.Json.JsonEncodedText PropModifiedDateMillis = System.Text.Json.JsonEncodedText.Encode("modified_date_millis"); private static readonly System.Text.Json.JsonEncodedText PropOnFailure = System.Text.Json.JsonEncodedText.Encode("on_failure"); private static readonly System.Text.Json.JsonEncodedText PropProcessors = System.Text.Json.JsonEncodedText.Encode("processors"); private static readonly System.Text.Json.JsonEncodedText PropVersion = System.Text.Json.JsonEncodedText.Encode("version"); @@ -35,14 +39,28 @@ internal sealed partial class PipelineConverter : System.Text.Json.Serialization public override Elastic.Clients.Elasticsearch.Ingest.Pipeline Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) { reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); + LocalJsonValue propCreatedDate = default; + LocalJsonValue propCreatedDateMillis = default; LocalJsonValue propDeprecated = default; LocalJsonValue propDescription = default; LocalJsonValue?> propMeta = default; + LocalJsonValue propModifiedDate = default; + LocalJsonValue propModifiedDateMillis = default; LocalJsonValue?> propOnFailure = default; LocalJsonValue?> propProcessors = default; LocalJsonValue propVersion = default; while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) { + if (propCreatedDate.TryReadProperty(ref reader, options, PropCreatedDate, static System.DateTimeOffset? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValueEx(o, typeof(Elastic.Clients.Elasticsearch.Serialization.DateTimeMarker)))) + { + continue; + } + + if (propCreatedDateMillis.TryReadProperty(ref reader, options, PropCreatedDateMillis, static System.DateTimeOffset? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValueEx(o, typeof(Elastic.Clients.Elasticsearch.Serialization.DateTimeMillisMarker)))) + { + continue; + } + if (propDeprecated.TryReadProperty(ref reader, options, PropDeprecated, static bool? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValue(o))) { continue; @@ -58,6 +76,16 @@ public override Elastic.Clients.Elasticsearch.Ingest.Pipeline Read(ref System.Te continue; } + if (propModifiedDate.TryReadProperty(ref reader, options, PropModifiedDate, static System.DateTimeOffset? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValueEx(o, typeof(Elastic.Clients.Elasticsearch.Serialization.DateTimeMarker)))) + { + continue; + } + + if (propModifiedDateMillis.TryReadProperty(ref reader, options, PropModifiedDateMillis, static System.DateTimeOffset? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValueEx(o, typeof(Elastic.Clients.Elasticsearch.Serialization.DateTimeMillisMarker)))) + { + continue; + } + if (propOnFailure.TryReadProperty(ref reader, options, PropOnFailure, static System.Collections.Generic.ICollection? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadCollectionValue(o, null))) { continue; @@ -85,9 +113,13 @@ public override Elastic.Clients.Elasticsearch.Ingest.Pipeline Read(ref System.Te reader.ValidateToken(System.Text.Json.JsonTokenType.EndObject); return new Elastic.Clients.Elasticsearch.Ingest.Pipeline(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance) { + CreatedDate = propCreatedDate.Value, + CreatedDateMillis = propCreatedDateMillis.Value, Deprecated = propDeprecated.Value, Description = propDescription.Value, Meta = propMeta.Value, + ModifiedDate = propModifiedDate.Value, + ModifiedDateMillis = propModifiedDateMillis.Value, OnFailure = propOnFailure.Value, Processors = propProcessors.Value, Version = propVersion.Value @@ -97,9 +129,13 @@ public override Elastic.Clients.Elasticsearch.Ingest.Pipeline Read(ref System.Te public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.Ingest.Pipeline value, System.Text.Json.JsonSerializerOptions options) { writer.WriteStartObject(); + writer.WriteProperty(options, PropCreatedDate, value.CreatedDate, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.DateTimeOffset? v) => w.WriteNullableValueEx(o, v, typeof(Elastic.Clients.Elasticsearch.Serialization.DateTimeMarker))); + writer.WriteProperty(options, PropCreatedDateMillis, value.CreatedDateMillis, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.DateTimeOffset? v) => w.WriteNullableValueEx(o, v, typeof(Elastic.Clients.Elasticsearch.Serialization.DateTimeMillisMarker))); writer.WriteProperty(options, PropDeprecated, value.Deprecated, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, bool? v) => w.WriteNullableValue(o, v)); writer.WriteProperty(options, PropDescription, value.Description, null, null); writer.WriteProperty(options, PropMeta, value.Meta, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.IDictionary? v) => w.WriteDictionaryValue(o, v, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, object v) => w.WriteValueEx(o, v, typeof(Elastic.Clients.Elasticsearch.Serialization.SourceMarker)))); + writer.WriteProperty(options, PropModifiedDate, value.ModifiedDate, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.DateTimeOffset? v) => w.WriteNullableValueEx(o, v, typeof(Elastic.Clients.Elasticsearch.Serialization.DateTimeMarker))); + writer.WriteProperty(options, PropModifiedDateMillis, value.ModifiedDateMillis, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.DateTimeOffset? v) => w.WriteNullableValueEx(o, v, typeof(Elastic.Clients.Elasticsearch.Serialization.DateTimeMillisMarker))); writer.WriteProperty(options, PropOnFailure, value.OnFailure, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.ICollection? v) => w.WriteCollectionValue(o, v, null)); writer.WriteProperty(options, PropProcessors, value.Processors, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.ICollection? v) => w.WriteCollectionValue(o, v, null)); writer.WriteProperty(options, PropVersion, value.Version, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, long? v) => w.WriteNullableValue(o, v)); @@ -126,6 +162,20 @@ internal Pipeline(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSen _ = sentinel; } + /// + /// + /// Date and time when the pipeline was created. Only returned if the human query parameter is true. + /// + /// + public System.DateTimeOffset? CreatedDate { get; set; } + + /// + /// + /// Date and time when the pipeline was created, in milliseconds since the epoch. + /// + /// + public System.DateTimeOffset? CreatedDateMillis { get; set; } + /// /// /// Marks this ingest pipeline as deprecated. @@ -148,6 +198,20 @@ internal Pipeline(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSen /// public System.Collections.Generic.IDictionary? Meta { get; set; } + /// + /// + /// Date and time when the pipeline was last modified. Only returned if the human query parameter is true. + /// + /// + public System.DateTimeOffset? ModifiedDate { get; set; } + + /// + /// + /// Date and time when the pipeline was last modified, in milliseconds since the epoch. + /// + /// + public System.DateTimeOffset? ModifiedDateMillis { get; set; } + /// /// /// Processors to run immediately after a processor failure. @@ -190,6 +254,28 @@ public PipelineDescriptor() public static explicit operator Elastic.Clients.Elasticsearch.Ingest.PipelineDescriptor(Elastic.Clients.Elasticsearch.Ingest.Pipeline instance) => new Elastic.Clients.Elasticsearch.Ingest.PipelineDescriptor(instance); public static implicit operator Elastic.Clients.Elasticsearch.Ingest.Pipeline(Elastic.Clients.Elasticsearch.Ingest.PipelineDescriptor descriptor) => descriptor.Instance; + /// + /// + /// Date and time when the pipeline was created. Only returned if the human query parameter is true. + /// + /// + public Elastic.Clients.Elasticsearch.Ingest.PipelineDescriptor CreatedDate(System.DateTimeOffset? value) + { + Instance.CreatedDate = value; + return this; + } + + /// + /// + /// Date and time when the pipeline was created, in milliseconds since the epoch. + /// + /// + public Elastic.Clients.Elasticsearch.Ingest.PipelineDescriptor CreatedDateMillis(System.DateTimeOffset? value) + { + Instance.CreatedDateMillis = value; + return this; + } + /// /// /// Marks this ingest pipeline as deprecated. @@ -253,6 +339,28 @@ public Elastic.Clients.Elasticsearch.Ingest.PipelineDescriptor AddMet return this; } + /// + /// + /// Date and time when the pipeline was last modified. Only returned if the human query parameter is true. + /// + /// + public Elastic.Clients.Elasticsearch.Ingest.PipelineDescriptor ModifiedDate(System.DateTimeOffset? value) + { + Instance.ModifiedDate = value; + return this; + } + + /// + /// + /// Date and time when the pipeline was last modified, in milliseconds since the epoch. + /// + /// + public Elastic.Clients.Elasticsearch.Ingest.PipelineDescriptor ModifiedDateMillis(System.DateTimeOffset? value) + { + Instance.ModifiedDateMillis = value; + return this; + } + /// /// /// Processors to run immediately after a processor failure. @@ -378,6 +486,28 @@ public PipelineDescriptor() public static explicit operator Elastic.Clients.Elasticsearch.Ingest.PipelineDescriptor(Elastic.Clients.Elasticsearch.Ingest.Pipeline instance) => new Elastic.Clients.Elasticsearch.Ingest.PipelineDescriptor(instance); public static implicit operator Elastic.Clients.Elasticsearch.Ingest.Pipeline(Elastic.Clients.Elasticsearch.Ingest.PipelineDescriptor descriptor) => descriptor.Instance; + /// + /// + /// Date and time when the pipeline was created. Only returned if the human query parameter is true. + /// + /// + public Elastic.Clients.Elasticsearch.Ingest.PipelineDescriptor CreatedDate(System.DateTimeOffset? value) + { + Instance.CreatedDate = value; + return this; + } + + /// + /// + /// Date and time when the pipeline was created, in milliseconds since the epoch. + /// + /// + public Elastic.Clients.Elasticsearch.Ingest.PipelineDescriptor CreatedDateMillis(System.DateTimeOffset? value) + { + Instance.CreatedDateMillis = value; + return this; + } + /// /// /// Marks this ingest pipeline as deprecated. @@ -441,6 +571,28 @@ public Elastic.Clients.Elasticsearch.Ingest.PipelineDescriptor AddMeta(string ke return this; } + /// + /// + /// Date and time when the pipeline was last modified. Only returned if the human query parameter is true. + /// + /// + public Elastic.Clients.Elasticsearch.Ingest.PipelineDescriptor ModifiedDate(System.DateTimeOffset? value) + { + Instance.ModifiedDate = value; + return this; + } + + /// + /// + /// Date and time when the pipeline was last modified, in milliseconds since the epoch. + /// + /// + public Elastic.Clients.Elasticsearch.Ingest.PipelineDescriptor ModifiedDateMillis(System.DateTimeOffset? value) + { + Instance.ModifiedDateMillis = value; + return this; + } + /// /// /// Processors to run immediately after a processor failure.