@@ -526,6 +526,44 @@ public ForceMergeDescriptor Index<TOther>()
526526 public ForceMergeDescriptor OnlyExpungeDeletes ( bool ? onlyexpungedeletes = true ) => Qs ( "only_expunge_deletes" , onlyexpungedeletes ) ;
527527 }
528528
529+ ///<summary>descriptor for Freeze <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/frozen.html</para></summary>
530+ public partial class FreezeIndexDescriptor : RequestDescriptorBase < FreezeIndexDescriptor , FreezeIndexRequestParameters , IFreezeIndexRequest > , IFreezeIndexRequest
531+ {
532+ internal override ApiUrls ApiUrls => ApiUrlsLookups . IndicesFreeze ;
533+ ///<summary>/{index}/_freeze</summary>
534+ ///<param name = "index">this parameter is required</param>
535+ public FreezeIndexDescriptor ( IndexName index ) : base ( r => r . Required ( "index" , index ) )
536+ {
537+ }
538+
539+ ///<summary>Used for serialization purposes, making sure we have a parameterless constructor</summary>
540+ [ SerializationConstructor ]
541+ protected FreezeIndexDescriptor ( ) : base ( )
542+ {
543+ }
544+
545+ // values part of the url path
546+ IndexName IFreezeIndexRequest . Index => Self . RouteValues . Get < IndexName > ( "index" ) ;
547+ ///<summary>The name of the index to freeze</summary>
548+ public FreezeIndexDescriptor Index ( IndexName index ) => Assign ( index , ( a , v ) => a . RouteValues . Required ( "index" , v ) ) ;
549+ ///<summary>a shortcut into calling Index(typeof(TOther))</summary>
550+ public FreezeIndexDescriptor Index < TOther > ( )
551+ where TOther : class => Assign ( typeof ( TOther ) , ( a , v ) => a . RouteValues . Required ( "index" , ( IndexName ) v ) ) ;
552+ // Request parameters
553+ ///<summary>Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)</summary>
554+ public FreezeIndexDescriptor AllowNoIndices ( bool ? allownoindices = true ) => Qs ( "allow_no_indices" , allownoindices ) ;
555+ ///<summary>Whether to expand wildcard expression to concrete indices that are open, closed or both.</summary>
556+ public FreezeIndexDescriptor ExpandWildcards ( ExpandWildcards ? expandwildcards ) => Qs ( "expand_wildcards" , expandwildcards ) ;
557+ ///<summary>Whether specified concrete indices should be ignored when unavailable (missing or closed)</summary>
558+ public FreezeIndexDescriptor IgnoreUnavailable ( bool ? ignoreunavailable = true ) => Qs ( "ignore_unavailable" , ignoreunavailable ) ;
559+ ///<summary>Specify timeout for connection to master</summary>
560+ public FreezeIndexDescriptor MasterTimeout ( Time mastertimeout ) => Qs ( "master_timeout" , mastertimeout ) ;
561+ ///<summary>Explicit operation timeout</summary>
562+ public FreezeIndexDescriptor Timeout ( Time timeout ) => Qs ( "timeout" , timeout ) ;
563+ ///<summary>Sets the number of active shards to wait for before the operation returns.</summary>
564+ public FreezeIndexDescriptor WaitForActiveShards ( string waitforactiveshards ) => Qs ( "wait_for_active_shards" , waitforactiveshards ) ;
565+ }
566+
529567 ///<summary>descriptor for Get <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-index.html</para></summary>
530568 public partial class GetIndexDescriptor : RequestDescriptorBase < GetIndexDescriptor , GetIndexRequestParameters , IGetIndexRequest > , IGetIndexRequest
531569 {
@@ -1287,6 +1325,44 @@ public IndicesStatsDescriptor Fields<T>(params Expression<Func<T, object>>[] fie
12871325 public IndicesStatsDescriptor Level ( Level ? level ) => Qs ( "level" , level ) ;
12881326 }
12891327
1328+ ///<summary>descriptor for Unfreeze <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/frozen.html</para></summary>
1329+ public partial class UnfreezeIndexDescriptor : RequestDescriptorBase < UnfreezeIndexDescriptor , UnfreezeIndexRequestParameters , IUnfreezeIndexRequest > , IUnfreezeIndexRequest
1330+ {
1331+ internal override ApiUrls ApiUrls => ApiUrlsLookups . IndicesUnfreeze ;
1332+ ///<summary>/{index}/_unfreeze</summary>
1333+ ///<param name = "index">this parameter is required</param>
1334+ public UnfreezeIndexDescriptor ( IndexName index ) : base ( r => r . Required ( "index" , index ) )
1335+ {
1336+ }
1337+
1338+ ///<summary>Used for serialization purposes, making sure we have a parameterless constructor</summary>
1339+ [ SerializationConstructor ]
1340+ protected UnfreezeIndexDescriptor ( ) : base ( )
1341+ {
1342+ }
1343+
1344+ // values part of the url path
1345+ IndexName IUnfreezeIndexRequest . Index => Self . RouteValues . Get < IndexName > ( "index" ) ;
1346+ ///<summary>The name of the index to unfreeze</summary>
1347+ public UnfreezeIndexDescriptor Index ( IndexName index ) => Assign ( index , ( a , v ) => a . RouteValues . Required ( "index" , v ) ) ;
1348+ ///<summary>a shortcut into calling Index(typeof(TOther))</summary>
1349+ public UnfreezeIndexDescriptor Index < TOther > ( )
1350+ where TOther : class => Assign ( typeof ( TOther ) , ( a , v ) => a . RouteValues . Required ( "index" , ( IndexName ) v ) ) ;
1351+ // Request parameters
1352+ ///<summary>Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)</summary>
1353+ public UnfreezeIndexDescriptor AllowNoIndices ( bool ? allownoindices = true ) => Qs ( "allow_no_indices" , allownoindices ) ;
1354+ ///<summary>Whether to expand wildcard expression to concrete indices that are open, closed or both.</summary>
1355+ public UnfreezeIndexDescriptor ExpandWildcards ( ExpandWildcards ? expandwildcards ) => Qs ( "expand_wildcards" , expandwildcards ) ;
1356+ ///<summary>Whether specified concrete indices should be ignored when unavailable (missing or closed)</summary>
1357+ public UnfreezeIndexDescriptor IgnoreUnavailable ( bool ? ignoreunavailable = true ) => Qs ( "ignore_unavailable" , ignoreunavailable ) ;
1358+ ///<summary>Specify timeout for connection to master</summary>
1359+ public UnfreezeIndexDescriptor MasterTimeout ( Time mastertimeout ) => Qs ( "master_timeout" , mastertimeout ) ;
1360+ ///<summary>Explicit operation timeout</summary>
1361+ public UnfreezeIndexDescriptor Timeout ( Time timeout ) => Qs ( "timeout" , timeout ) ;
1362+ ///<summary>Sets the number of active shards to wait for before the operation returns.</summary>
1363+ public UnfreezeIndexDescriptor WaitForActiveShards ( string waitforactiveshards ) => Qs ( "wait_for_active_shards" , waitforactiveshards ) ;
1364+ }
1365+
12901366 ///<summary>descriptor for BulkAlias <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html</para></summary>
12911367 public partial class BulkAliasDescriptor : RequestDescriptorBase < BulkAliasDescriptor , BulkAliasRequestParameters , IBulkAliasRequest > , IBulkAliasRequest
12921368 {
0 commit comments