Skip to content

Commit 13e914f

Browse files
committed
Fixup
1 parent 6bf5167 commit 13e914f

File tree

4 files changed

+40
-6
lines changed

4 files changed

+40
-6
lines changed

src/Nest/Descriptors.Indices.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1034,6 +1034,8 @@ public OpenIndexDescriptor Index<TOther>()
10341034
public partial class PromoteDataStreamDescriptor : RequestDescriptorBase<PromoteDataStreamDescriptor, PromoteDataStreamRequestParameters, IPromoteDataStreamRequest>, IPromoteDataStreamRequest
10351035
{
10361036
internal override ApiUrls ApiUrls => ApiUrlsLookups.IndicesPromoteDataStream;
1037+
protected override HttpMethod HttpMethod => HttpMethod.POST;
1038+
protected override bool SupportsBody => false;
10371039
///<summary>/_data_stream/_promote/{name}</summary>
10381040
///<param name = "name">this parameter is required</param>
10391041
public PromoteDataStreamDescriptor(Name name): base(r => r.Required("name", name))

src/Nest/Requests.Indices.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1799,6 +1799,8 @@ public partial class PromoteDataStreamRequest : PlainRequestBase<PromoteDataStre
17991799
{
18001800
protected IPromoteDataStreamRequest Self => this;
18011801
internal override ApiUrls ApiUrls => ApiUrlsLookups.IndicesPromoteDataStream;
1802+
protected override HttpMethod HttpMethod => HttpMethod.POST;
1803+
protected override bool SupportsBody => false;
18021804
///<summary>/_data_stream/_promote/{name}</summary>
18031805
///<param name = "name">this parameter is required</param>
18041806
public PromoteDataStreamRequest(Name name): base(r => r.Required("name", name))

src/Nest/XPack/DataStreams/Promote/PromoteDataStreamRequest.cs

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,21 @@
1-
// Licensed to Elasticsearch B.V under one or more agreements.
2-
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
3-
// See the LICENSE file in the project root for more information
1+
/*
2+
* Licensed to Elasticsearch B.V. under one or more contributor
3+
* license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright
5+
* ownership. Elasticsearch B.V. licenses this file to you under
6+
* the Apache License, Version 2.0 (the "License"); you may
7+
* not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
419

520
namespace Nest
621
{

src/Nest/XPack/DataStreams/Promote/PromoteDataStreamResponse.cs

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,21 @@
1-
// Licensed to Elasticsearch B.V under one or more agreements.
2-
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
3-
// See the LICENSE file in the project root for more information
1+
/*
2+
* Licensed to Elasticsearch B.V. under one or more contributor
3+
* license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright
5+
* ownership. Elasticsearch B.V. licenses this file to you under
6+
* the Apache License, Version 2.0 (the "License"); you may
7+
* not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
419

520
namespace Nest
621
{

0 commit comments

Comments
 (0)