Skip to content

Commit 95d5f96

Browse files
Auto-generated API code
1 parent 1ef1754 commit 95d5f96

7 files changed

+69
-82
lines changed

docs/doc_examples/2577acb462b95bd4394523cf2f8a661f.asciidoc

Lines changed: 0 additions & 28 deletions
This file was deleted.

docs/doc_examples/2bb41b0b4876ce98cd0cd8fb6d337f18.asciidoc

Lines changed: 0 additions & 16 deletions
This file was deleted.

docs/doc_examples/4dab4c5168047ba596af1beb0e55b845.asciidoc

Lines changed: 0 additions & 10 deletions
This file was deleted.

docs/doc_examples/d01a590fa9ea8a0cb34ed8dda502296c.asciidoc

Lines changed: 0 additions & 11 deletions
This file was deleted.

docs/reference.asciidoc

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -818,6 +818,8 @@ Random by default.
818818
** *`expand_wildcards` (Optional, Enum("all" | "open" | "closed" | "hidden" | "none") | Enum("all" | "open" | "closed" | "hidden" | "none")[])*: Type of index that wildcard patterns can match.
819819
If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
820820
Supports a list of values, such as `open,hidden`. Valid values are: `all`, `open`, `closed`, `hidden`, `none`.
821+
** *`allow_partial_search_results` (Optional, boolean)*: If `false`, creating a point in time request when a shard is missing or unavailable will throw an exception.
822+
If `true`, the point in time will contain all the shards that are available at the time of the request.
821823

822824
[discrete]
823825
=== ping
@@ -1693,6 +1695,9 @@ client.autoscaling.deleteAutoscalingPolicy({ name })
16931695

16941696
* *Request (object):*
16951697
** *`name` (string)*: the name of the autoscaling policy
1698+
** *`master_timeout` (Optional, string | -1 | 0)*: Period to wait for a connection to the master node.
1699+
If no response is received before the timeout expires, the request fails and returns an error.
1700+
** *`timeout` (Optional, string | -1 | 0)*: Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.
16961701

16971702
[discrete]
16981703
==== get_autoscaling_capacity
@@ -1714,9 +1719,15 @@ Do not use this information to make autoscaling decisions.
17141719
{ref}/autoscaling-get-autoscaling-capacity.html[Endpoint documentation]
17151720
[source,ts]
17161721
----
1717-
client.autoscaling.getAutoscalingCapacity()
1722+
client.autoscaling.getAutoscalingCapacity({ ... })
17181723
----
17191724

1725+
[discrete]
1726+
==== Arguments
1727+
1728+
* *Request (object):*
1729+
** *`master_timeout` (Optional, string | -1 | 0)*: Period to wait for a connection to the master node.
1730+
If no response is received before the timeout expires, the request fails and returns an error.
17201731

17211732
[discrete]
17221733
==== get_autoscaling_policy
@@ -1735,6 +1746,8 @@ client.autoscaling.getAutoscalingPolicy({ name })
17351746

17361747
* *Request (object):*
17371748
** *`name` (string)*: the name of the autoscaling policy
1749+
** *`master_timeout` (Optional, string | -1 | 0)*: Period to wait for a connection to the master node.
1750+
If no response is received before the timeout expires, the request fails and returns an error.
17381751

17391752
[discrete]
17401753
==== put_autoscaling_policy
@@ -1754,6 +1767,9 @@ client.autoscaling.putAutoscalingPolicy({ name })
17541767
* *Request (object):*
17551768
** *`name` (string)*: the name of the autoscaling policy
17561769
** *`policy` (Optional, { roles, deciders })*
1770+
** *`master_timeout` (Optional, string | -1 | 0)*: Period to wait for a connection to the master node.
1771+
If no response is received before the timeout expires, the request fails and returns an error.
1772+
** *`timeout` (Optional, string | -1 | 0)*: Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.
17571773

17581774
[discrete]
17591775
=== cat

src/api/types.ts

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -884,6 +884,7 @@ export interface OpenPointInTimeRequest extends RequestBase {
884884
preference?: string
885885
routing?: Routing
886886
expand_wildcards?: ExpandWildcards
887+
allow_partial_search_results?: boolean
887888
index_filter?: QueryDslQueryContainer
888889
}
889890

@@ -6739,6 +6740,8 @@ export interface AutoscalingAutoscalingPolicy {
67396740

67406741
export interface AutoscalingDeleteAutoscalingPolicyRequest extends RequestBase {
67416742
name: Name
6743+
master_timeout?: Duration
6744+
timeout?: Duration
67426745
}
67436746

67446747
export type AutoscalingDeleteAutoscalingPolicyResponse = AcknowledgedResponseBase
@@ -6771,6 +6774,7 @@ export interface AutoscalingGetAutoscalingCapacityAutoscalingResources {
67716774
}
67726775

67736776
export interface AutoscalingGetAutoscalingCapacityRequest extends RequestBase {
6777+
master_timeout?: Duration
67746778
}
67756779

67766780
export interface AutoscalingGetAutoscalingCapacityResponse {
@@ -6779,12 +6783,15 @@ export interface AutoscalingGetAutoscalingCapacityResponse {
67796783

67806784
export interface AutoscalingGetAutoscalingPolicyRequest extends RequestBase {
67816785
name: Name
6786+
master_timeout?: Duration
67826787
}
67836788

67846789
export type AutoscalingGetAutoscalingPolicyResponse = AutoscalingAutoscalingPolicy
67856790

67866791
export interface AutoscalingPutAutoscalingPolicyRequest extends RequestBase {
67876792
name: Name
6793+
master_timeout?: Duration
6794+
timeout?: Duration
67886795
policy?: AutoscalingAutoscalingPolicy
67896796
}
67906797

@@ -16848,6 +16855,7 @@ export interface QueryRulesListRulesetsQueryRulesetListItem {
1684816855
ruleset_id: Id
1684916856
rule_total_count: integer
1685016857
rule_criteria_types_counts: Record<string, integer>
16858+
rule_type_counts: Record<string, integer>
1685116859
}
1685216860

1685316861
export interface QueryRulesListRulesetsRequest extends RequestBase {
@@ -17249,21 +17257,26 @@ export interface SecurityAccess {
1724917257
}
1725017258

1725117259
export interface SecurityApiKey {
17252-
creation?: long
17253-
expiration?: long
1725417260
id: Id
17255-
invalidated?: boolean
1725617261
name: Name
17257-
realm?: string
17262+
type: SecurityApiKeyType
17263+
creation: EpochTime<UnitMillis>
17264+
expiration?: EpochTime<UnitMillis>
17265+
invalidated: boolean
17266+
invalidation?: EpochTime<UnitMillis>
17267+
username: Username
17268+
realm: string
1725817269
realm_type?: string
17259-
username?: Username
17260-
profile_uid?: string
17261-
metadata?: Metadata
17270+
metadata: Metadata
1726217271
role_descriptors?: Record<string, SecurityRoleDescriptor>
1726317272
limited_by?: Record<string, SecurityRoleDescriptor>[]
17273+
access?: SecurityAccess
17274+
profile_uid?: string
1726417275
_sort?: SortResults
1726517276
}
1726617277

17278+
export type SecurityApiKeyType = 'rest' | 'cross_cluster'
17279+
1726717280
export interface SecurityApplicationGlobalUserPrivileges {
1726817281
manage: SecurityManageUserPrivileges
1726917282
}
@@ -17464,11 +17477,16 @@ export interface SecurityActivateUserProfileRequest extends RequestBase {
1746417477

1746517478
export type SecurityActivateUserProfileResponse = SecurityUserProfileWithMetadata
1746617479

17480+
export interface SecurityAuthenticateAuthenticateApiKey {
17481+
id: Id
17482+
name?: Name
17483+
}
17484+
1746717485
export interface SecurityAuthenticateRequest extends RequestBase {
1746817486
}
1746917487

1747017488
export interface SecurityAuthenticateResponse {
17471-
api_key?: SecurityApiKey
17489+
api_key?: SecurityAuthenticateAuthenticateApiKey
1747217490
authentication_realm: SecurityRealmInfo
1747317491
email?: string | null
1747417492
full_name?: Name | null

src/api/typesWithBodyKey.ts

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -917,6 +917,7 @@ export interface OpenPointInTimeRequest extends RequestBase {
917917
preference?: string
918918
routing?: Routing
919919
expand_wildcards?: ExpandWildcards
920+
allow_partial_search_results?: boolean
920921
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
921922
body?: {
922923
index_filter?: QueryDslQueryContainer
@@ -6818,6 +6819,8 @@ export interface AutoscalingAutoscalingPolicy {
68186819

68196820
export interface AutoscalingDeleteAutoscalingPolicyRequest extends RequestBase {
68206821
name: Name
6822+
master_timeout?: Duration
6823+
timeout?: Duration
68216824
}
68226825

68236826
export type AutoscalingDeleteAutoscalingPolicyResponse = AcknowledgedResponseBase
@@ -6850,6 +6853,7 @@ export interface AutoscalingGetAutoscalingCapacityAutoscalingResources {
68506853
}
68516854

68526855
export interface AutoscalingGetAutoscalingCapacityRequest extends RequestBase {
6856+
master_timeout?: Duration
68536857
}
68546858

68556859
export interface AutoscalingGetAutoscalingCapacityResponse {
@@ -6858,12 +6862,15 @@ export interface AutoscalingGetAutoscalingCapacityResponse {
68586862

68596863
export interface AutoscalingGetAutoscalingPolicyRequest extends RequestBase {
68606864
name: Name
6865+
master_timeout?: Duration
68616866
}
68626867

68636868
export type AutoscalingGetAutoscalingPolicyResponse = AutoscalingAutoscalingPolicy
68646869

68656870
export interface AutoscalingPutAutoscalingPolicyRequest extends RequestBase {
68666871
name: Name
6872+
master_timeout?: Duration
6873+
timeout?: Duration
68676874
/** @deprecated The use of the 'body' key has been deprecated, use 'policy' instead. */
68686875
body?: AutoscalingAutoscalingPolicy
68696876
}
@@ -17206,6 +17213,7 @@ export interface QueryRulesListRulesetsQueryRulesetListItem {
1720617213
ruleset_id: Id
1720717214
rule_total_count: integer
1720817215
rule_criteria_types_counts: Record<string, integer>
17216+
rule_type_counts: Record<string, integer>
1720917217
}
1721017218

1721117219
export interface QueryRulesListRulesetsRequest extends RequestBase {
@@ -17629,21 +17637,26 @@ export interface SecurityAccess {
1762917637
}
1763017638

1763117639
export interface SecurityApiKey {
17632-
creation?: long
17633-
expiration?: long
1763417640
id: Id
17635-
invalidated?: boolean
1763617641
name: Name
17637-
realm?: string
17642+
type: SecurityApiKeyType
17643+
creation: EpochTime<UnitMillis>
17644+
expiration?: EpochTime<UnitMillis>
17645+
invalidated: boolean
17646+
invalidation?: EpochTime<UnitMillis>
17647+
username: Username
17648+
realm: string
1763817649
realm_type?: string
17639-
username?: Username
17640-
profile_uid?: string
17641-
metadata?: Metadata
17650+
metadata: Metadata
1764217651
role_descriptors?: Record<string, SecurityRoleDescriptor>
1764317652
limited_by?: Record<string, SecurityRoleDescriptor>[]
17653+
access?: SecurityAccess
17654+
profile_uid?: string
1764417655
_sort?: SortResults
1764517656
}
1764617657

17658+
export type SecurityApiKeyType = 'rest' | 'cross_cluster'
17659+
1764717660
export interface SecurityApplicationGlobalUserPrivileges {
1764817661
manage: SecurityManageUserPrivileges
1764917662
}
@@ -17847,11 +17860,16 @@ export interface SecurityActivateUserProfileRequest extends RequestBase {
1784717860

1784817861
export type SecurityActivateUserProfileResponse = SecurityUserProfileWithMetadata
1784917862

17863+
export interface SecurityAuthenticateAuthenticateApiKey {
17864+
id: Id
17865+
name?: Name
17866+
}
17867+
1785017868
export interface SecurityAuthenticateRequest extends RequestBase {
1785117869
}
1785217870

1785317871
export interface SecurityAuthenticateResponse {
17854-
api_key?: SecurityApiKey
17872+
api_key?: SecurityAuthenticateAuthenticateApiKey
1785517873
authentication_realm: SecurityRealmInfo
1785617874
email?: string | null
1785717875
full_name?: Name | null

0 commit comments

Comments
 (0)