From c4d89703392266ee56cac91df93c1b64a57c63f0 Mon Sep 17 00:00:00 2001 From: dblock Date: Wed, 6 Nov 2024 03:36:50 +0000 Subject: [PATCH] Updated opensearch-php to reflect the latest OpenSearch API spec (2024-11-06) Signed-off-by: GitHub --- src/OpenSearch/Endpoints/AsynchronousSearch/Search.php | 2 +- src/OpenSearch/Endpoints/Bulk.php | 3 ++- src/OpenSearch/Endpoints/BulkStream.php | 3 ++- src/OpenSearch/Endpoints/Cat/Aliases.php | 2 +- src/OpenSearch/Endpoints/Cat/Allocation.php | 2 +- src/OpenSearch/Endpoints/Cat/Fielddata.php | 2 +- src/OpenSearch/Endpoints/Cat/PitSegments.php | 2 +- src/OpenSearch/Endpoints/Cat/Snapshots.php | 2 +- src/OpenSearch/Endpoints/Cat/Templates.php | 2 +- src/OpenSearch/Endpoints/Cat/ThreadPool.php | 2 +- src/OpenSearch/Endpoints/ClearScroll.php | 4 ++-- src/OpenSearch/Endpoints/Cluster/AllocationExplain.php | 2 +- .../Endpoints/Cluster/DeleteComponentTemplate.php | 2 +- .../Endpoints/Cluster/DeleteWeightedRouting.php | 2 +- .../Endpoints/Cluster/ExistsComponentTemplate.php | 2 +- src/OpenSearch/Endpoints/Cluster/GetComponentTemplate.php | 2 +- .../Endpoints/Cluster/GetDecommissionAwareness.php | 2 +- src/OpenSearch/Endpoints/Cluster/GetWeightedRouting.php | 2 +- src/OpenSearch/Endpoints/Cluster/PutComponentTemplate.php | 4 ++-- .../Endpoints/Cluster/PutDecommissionAwareness.php | 4 ++-- src/OpenSearch/Endpoints/Cluster/PutSettings.php | 2 +- src/OpenSearch/Endpoints/Cluster/PutWeightedRouting.php | 4 ++-- src/OpenSearch/Endpoints/Cluster/Reroute.php | 2 +- src/OpenSearch/Endpoints/Cluster/State.php | 2 +- src/OpenSearch/Endpoints/Cluster/Stats.php | 2 +- src/OpenSearch/Endpoints/Count.php | 2 +- src/OpenSearch/Endpoints/Create.php | 2 +- .../Endpoints/DanglingIndices/DeleteDanglingIndex.php | 2 +- .../Endpoints/DanglingIndices/ImportDanglingIndex.php | 2 +- src/OpenSearch/Endpoints/DeleteByQuery.php | 2 +- src/OpenSearch/Endpoints/DeleteByQueryRethrottle.php | 2 +- src/OpenSearch/Endpoints/DeletePit.php | 2 +- src/OpenSearch/Endpoints/Explain.php | 2 +- src/OpenSearch/Endpoints/FieldCaps.php | 2 +- src/OpenSearch/Endpoints/FlowFramework/Create.php | 2 +- src/OpenSearch/Endpoints/FlowFramework/Delete.php | 2 +- src/OpenSearch/Endpoints/FlowFramework/Deprovision.php | 2 +- src/OpenSearch/Endpoints/FlowFramework/Get.php | 2 +- src/OpenSearch/Endpoints/FlowFramework/GetStatus.php | 2 +- src/OpenSearch/Endpoints/FlowFramework/Provision.php | 4 ++-- src/OpenSearch/Endpoints/FlowFramework/Search.php | 2 +- src/OpenSearch/Endpoints/FlowFramework/SearchState.php | 2 +- src/OpenSearch/Endpoints/FlowFramework/Update.php | 4 ++-- src/OpenSearch/Endpoints/Index.php | 2 +- src/OpenSearch/Endpoints/Indices/AddBlock.php | 2 +- src/OpenSearch/Endpoints/Indices/Analyze.php | 2 +- src/OpenSearch/Endpoints/Indices/CloneIndices.php | 4 ++-- src/OpenSearch/Endpoints/Indices/Create.php | 2 +- src/OpenSearch/Endpoints/Indices/CreateDataStream.php | 4 ++-- src/OpenSearch/Endpoints/Indices/DataStreamsStats.php | 2 +- src/OpenSearch/Endpoints/Indices/DeleteAlias.php | 2 +- src/OpenSearch/Endpoints/Indices/DeleteDataStream.php | 2 +- src/OpenSearch/Endpoints/Indices/DeleteIndexTemplate.php | 2 +- src/OpenSearch/Endpoints/Indices/DeleteTemplate.php | 2 +- src/OpenSearch/Endpoints/Indices/ExistsAlias.php | 2 +- src/OpenSearch/Endpoints/Indices/ExistsIndexTemplate.php | 2 +- src/OpenSearch/Endpoints/Indices/ExistsTemplate.php | 2 +- src/OpenSearch/Endpoints/Indices/GetAlias.php | 2 +- src/OpenSearch/Endpoints/Indices/GetDataStream.php | 2 +- src/OpenSearch/Endpoints/Indices/GetFieldMapping.php | 2 +- src/OpenSearch/Endpoints/Indices/GetIndexTemplate.php | 2 +- src/OpenSearch/Endpoints/Indices/GetSettings.php | 2 +- src/OpenSearch/Endpoints/Indices/GetTemplate.php | 2 +- src/OpenSearch/Endpoints/Indices/PutAlias.php | 4 ++-- src/OpenSearch/Endpoints/Indices/PutIndexTemplate.php | 4 ++-- src/OpenSearch/Endpoints/Indices/PutMapping.php | 2 +- src/OpenSearch/Endpoints/Indices/PutSettings.php | 2 +- src/OpenSearch/Endpoints/Indices/PutTemplate.php | 4 ++-- src/OpenSearch/Endpoints/Indices/ResolveIndex.php | 2 +- src/OpenSearch/Endpoints/Indices/Rollover.php | 6 +++--- src/OpenSearch/Endpoints/Indices/Shrink.php | 4 ++-- .../Endpoints/Indices/SimulateIndexTemplate.php | 4 ++-- src/OpenSearch/Endpoints/Indices/SimulateTemplate.php | 4 ++-- src/OpenSearch/Endpoints/Indices/Split.php | 4 ++-- src/OpenSearch/Endpoints/Indices/Stats.php | 2 +- src/OpenSearch/Endpoints/Indices/UpdateAliases.php | 2 +- src/OpenSearch/Endpoints/Indices/ValidateQuery.php | 2 +- src/OpenSearch/Endpoints/Ingest/PutPipeline.php | 2 +- src/OpenSearch/Endpoints/Ingest/Simulate.php | 2 +- src/OpenSearch/Endpoints/Ism/AddPolicy.php | 2 +- src/OpenSearch/Endpoints/Ism/ChangePolicy.php | 2 +- src/OpenSearch/Endpoints/Ism/DeletePolicy.php | 2 +- src/OpenSearch/Endpoints/Ism/ExistsPolicy.php | 2 +- src/OpenSearch/Endpoints/Ism/ExplainPolicy.php | 2 +- src/OpenSearch/Endpoints/Ism/GetPolicy.php | 2 +- src/OpenSearch/Endpoints/Ism/PutPolicies.php | 2 +- src/OpenSearch/Endpoints/Ism/PutPolicy.php | 4 ++-- src/OpenSearch/Endpoints/Ism/RetryIndex.php | 2 +- src/OpenSearch/Endpoints/Knn/DeleteModel.php | 2 +- src/OpenSearch/Endpoints/Knn/GetModel.php | 2 +- src/OpenSearch/Endpoints/Knn/SearchModels.php | 2 +- src/OpenSearch/Endpoints/Knn/Stats.php | 4 ++-- src/OpenSearch/Endpoints/Knn/TrainModel.php | 4 ++-- src/OpenSearch/Endpoints/MTermVectors.php | 2 +- src/OpenSearch/Endpoints/Mget.php | 2 +- src/OpenSearch/Endpoints/Ml/CreateConnector.php | 2 +- src/OpenSearch/Endpoints/Ml/DeleteAgent.php | 2 +- src/OpenSearch/Endpoints/Ml/DeleteConnector.php | 2 +- src/OpenSearch/Endpoints/Ml/DeleteTask.php | 2 +- src/OpenSearch/Endpoints/Ml/DeployModel.php | 2 +- src/OpenSearch/Endpoints/Ml/GetModelGroup.php | 2 +- src/OpenSearch/Endpoints/Ml/RegisterAgents.php | 2 +- src/OpenSearch/Endpoints/Ml/RegisterModel.php | 2 +- src/OpenSearch/Endpoints/Ml/RegisterModelGroup.php | 2 +- src/OpenSearch/Endpoints/Ml/SearchModels.php | 2 +- src/OpenSearch/Endpoints/Ml/UndeployModel.php | 2 +- src/OpenSearch/Endpoints/Msearch.php | 3 ++- src/OpenSearch/Endpoints/MsearchTemplate.php | 3 ++- src/OpenSearch/Endpoints/Nodes/HotThreads.php | 2 +- src/OpenSearch/Endpoints/Nodes/Info.php | 6 +++--- src/OpenSearch/Endpoints/Nodes/ReloadSecureSettings.php | 4 ++-- src/OpenSearch/Endpoints/Nodes/Stats.php | 6 +++--- src/OpenSearch/Endpoints/Nodes/Usage.php | 4 ++-- src/OpenSearch/Endpoints/Notifications/CreateConfig.php | 2 +- src/OpenSearch/Endpoints/Notifications/DeleteConfig.php | 2 +- src/OpenSearch/Endpoints/Notifications/GetConfig.php | 2 +- src/OpenSearch/Endpoints/Notifications/GetConfigs.php | 2 +- src/OpenSearch/Endpoints/Notifications/SendTest.php | 2 +- src/OpenSearch/Endpoints/Notifications/UpdateConfig.php | 4 ++-- src/OpenSearch/Endpoints/Observability/CreateObject.php | 2 +- src/OpenSearch/Endpoints/Observability/DeleteObject.php | 2 +- src/OpenSearch/Endpoints/Observability/GetObject.php | 2 +- src/OpenSearch/Endpoints/Observability/UpdateObject.php | 4 ++-- src/OpenSearch/Endpoints/Ppl/Explain.php | 2 +- src/OpenSearch/Endpoints/Ppl/PostStats.php | 2 +- src/OpenSearch/Endpoints/Ppl/Query.php | 2 +- src/OpenSearch/Endpoints/PutScript.php | 4 ++-- src/OpenSearch/Endpoints/Query/DatasourceDelete.php | 2 +- src/OpenSearch/Endpoints/Query/DatasourceRetrieve.php | 2 +- src/OpenSearch/Endpoints/Query/DatasourcesCreate.php | 2 +- src/OpenSearch/Endpoints/Query/DatasourcesUpdate.php | 2 +- src/OpenSearch/Endpoints/RankEval.php | 2 +- src/OpenSearch/Endpoints/Reindex.php | 2 +- src/OpenSearch/Endpoints/ReindexRethrottle.php | 2 +- src/OpenSearch/Endpoints/RemoteStore/Restore.php | 2 +- src/OpenSearch/Endpoints/RenderSearchTemplate.php | 2 +- src/OpenSearch/Endpoints/Rollups/Put.php | 2 +- src/OpenSearch/Endpoints/ScriptsPainlessExecute.php | 2 +- src/OpenSearch/Endpoints/Scroll.php | 4 ++-- src/OpenSearch/Endpoints/Search.php | 2 +- src/OpenSearch/Endpoints/SearchPipeline/Put.php | 2 +- src/OpenSearch/Endpoints/SearchTemplate.php | 2 +- src/OpenSearch/Endpoints/Security/ChangePassword.php | 2 +- .../Endpoints/Security/ConfigUpgradePerform.php | 2 +- src/OpenSearch/Endpoints/Security/CreateActionGroup.php | 4 ++-- src/OpenSearch/Endpoints/Security/CreateAllowlist.php | 2 +- src/OpenSearch/Endpoints/Security/CreateRole.php | 4 ++-- src/OpenSearch/Endpoints/Security/CreateRoleMapping.php | 4 ++-- src/OpenSearch/Endpoints/Security/CreateTenant.php | 4 ++-- .../Endpoints/Security/CreateUpdateTenancyConfig.php | 2 +- src/OpenSearch/Endpoints/Security/CreateUser.php | 4 ++-- src/OpenSearch/Endpoints/Security/CreateUserLegacy.php | 4 ++-- src/OpenSearch/Endpoints/Security/DeleteActionGroup.php | 2 +- .../Endpoints/Security/DeleteDistinguishedName.php | 2 +- src/OpenSearch/Endpoints/Security/DeleteRole.php | 2 +- src/OpenSearch/Endpoints/Security/DeleteRoleMapping.php | 2 +- src/OpenSearch/Endpoints/Security/DeleteTenant.php | 2 +- src/OpenSearch/Endpoints/Security/DeleteUser.php | 2 +- src/OpenSearch/Endpoints/Security/DeleteUserLegacy.php | 2 +- src/OpenSearch/Endpoints/Security/GenerateOboToken.php | 2 +- src/OpenSearch/Endpoints/Security/GenerateUserToken.php | 2 +- .../Endpoints/Security/GenerateUserTokenLegacy.php | 2 +- src/OpenSearch/Endpoints/Security/GetActionGroup.php | 2 +- .../Endpoints/Security/GetDistinguishedName.php | 2 +- src/OpenSearch/Endpoints/Security/GetNodeCertificates.php | 2 +- src/OpenSearch/Endpoints/Security/GetRole.php | 2 +- src/OpenSearch/Endpoints/Security/GetRoleMapping.php | 2 +- src/OpenSearch/Endpoints/Security/GetTenant.php | 2 +- src/OpenSearch/Endpoints/Security/GetUser.php | 2 +- src/OpenSearch/Endpoints/Security/GetUserLegacy.php | 2 +- src/OpenSearch/Endpoints/Security/PatchActionGroup.php | 4 ++-- src/OpenSearch/Endpoints/Security/PatchActionGroups.php | 2 +- src/OpenSearch/Endpoints/Security/PatchAllowlist.php | 2 +- .../Endpoints/Security/PatchAuditConfiguration.php | 2 +- src/OpenSearch/Endpoints/Security/PatchConfiguration.php | 2 +- .../Endpoints/Security/PatchDistinguishedName.php | 4 ++-- .../Endpoints/Security/PatchDistinguishedNames.php | 2 +- src/OpenSearch/Endpoints/Security/PatchRole.php | 4 ++-- src/OpenSearch/Endpoints/Security/PatchRoleMapping.php | 4 ++-- src/OpenSearch/Endpoints/Security/PatchRoleMappings.php | 2 +- src/OpenSearch/Endpoints/Security/PatchRoles.php | 2 +- src/OpenSearch/Endpoints/Security/PatchTenant.php | 4 ++-- src/OpenSearch/Endpoints/Security/PatchTenants.php | 2 +- src/OpenSearch/Endpoints/Security/PatchUser.php | 4 ++-- src/OpenSearch/Endpoints/Security/PatchUsers.php | 2 +- .../Endpoints/Security/UpdateAuditConfiguration.php | 2 +- src/OpenSearch/Endpoints/Security/UpdateConfiguration.php | 2 +- .../Endpoints/Security/UpdateDistinguishedName.php | 4 ++-- src/OpenSearch/Endpoints/Snapshot/CleanupRepository.php | 2 +- src/OpenSearch/Endpoints/Snapshot/CloneSnapshot.php | 8 ++++---- src/OpenSearch/Endpoints/Snapshot/Create.php | 6 +++--- src/OpenSearch/Endpoints/Snapshot/CreateRepository.php | 4 ++-- src/OpenSearch/Endpoints/Snapshot/Delete.php | 4 ++-- src/OpenSearch/Endpoints/Snapshot/DeleteRepository.php | 2 +- src/OpenSearch/Endpoints/Snapshot/Get.php | 4 ++-- src/OpenSearch/Endpoints/Snapshot/GetRepository.php | 2 +- src/OpenSearch/Endpoints/Snapshot/Restore.php | 6 +++--- src/OpenSearch/Endpoints/Snapshot/Status.php | 4 ++-- src/OpenSearch/Endpoints/Snapshot/VerifyRepository.php | 2 +- src/OpenSearch/Endpoints/Sql/Close.php | 2 +- src/OpenSearch/Endpoints/Sql/Explain.php | 2 +- src/OpenSearch/Endpoints/Sql/PostStats.php | 2 +- src/OpenSearch/Endpoints/Sql/Query.php | 2 +- src/OpenSearch/Endpoints/Sql/Settings.php | 2 +- src/OpenSearch/Endpoints/Tasks/Cancel.php | 2 +- src/OpenSearch/Endpoints/Tasks/Get.php | 2 +- src/OpenSearch/Endpoints/TermVectors.php | 2 +- src/OpenSearch/Endpoints/Transforms/Preview.php | 2 +- src/OpenSearch/Endpoints/Transforms/Put.php | 2 +- src/OpenSearch/Endpoints/Update.php | 2 +- src/OpenSearch/Endpoints/UpdateByQuery.php | 2 +- src/OpenSearch/Endpoints/UpdateByQueryRethrottle.php | 2 +- src/OpenSearch/Endpoints/Wlm/CreateQueryGroup.php | 2 +- src/OpenSearch/Endpoints/Wlm/DeleteQueryGroup.php | 2 +- src/OpenSearch/Endpoints/Wlm/GetQueryGroup.php | 2 +- src/OpenSearch/Endpoints/Wlm/UpdateQueryGroup.php | 4 ++-- 216 files changed, 275 insertions(+), 271 deletions(-) diff --git a/src/OpenSearch/Endpoints/AsynchronousSearch/Search.php b/src/OpenSearch/Endpoints/AsynchronousSearch/Search.php index 1bdd1757..1d3e4372 100644 --- a/src/OpenSearch/Endpoints/AsynchronousSearch/Search.php +++ b/src/OpenSearch/Endpoints/AsynchronousSearch/Search.php @@ -47,7 +47,7 @@ public function getMethod(): string return 'POST'; } - public function setBody($body): Search + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Bulk.php b/src/OpenSearch/Endpoints/Bulk.php index 6376a6fb..65b2c16f 100644 --- a/src/OpenSearch/Endpoints/Bulk.php +++ b/src/OpenSearch/Endpoints/Bulk.php @@ -70,7 +70,7 @@ public function getMethod(): string return 'POST'; } - public function setBody($body): Bulk + public function setBody($body): static { if (isset($body) !== true) { return $this; @@ -89,4 +89,5 @@ public function setBody($body): Bulk } return $this; } + } diff --git a/src/OpenSearch/Endpoints/BulkStream.php b/src/OpenSearch/Endpoints/BulkStream.php index 64925b66..daa7c721 100644 --- a/src/OpenSearch/Endpoints/BulkStream.php +++ b/src/OpenSearch/Endpoints/BulkStream.php @@ -66,7 +66,7 @@ public function getMethod(): string return 'PUT'; } - public function setBody($body): BulkStream + public function setBody($body): static { if (isset($body) !== true) { return $this; @@ -85,4 +85,5 @@ public function setBody($body): BulkStream } return $this; } + } diff --git a/src/OpenSearch/Endpoints/Cat/Aliases.php b/src/OpenSearch/Endpoints/Cat/Aliases.php index cee786be..087899d4 100644 --- a/src/OpenSearch/Endpoints/Cat/Aliases.php +++ b/src/OpenSearch/Endpoints/Cat/Aliases.php @@ -62,7 +62,7 @@ public function getMethod(): string return 'GET'; } - public function setName($name): Aliases + public function setName($name): static { if (isset($name) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Cat/Allocation.php b/src/OpenSearch/Endpoints/Cat/Allocation.php index 90947002..b84717d8 100644 --- a/src/OpenSearch/Endpoints/Cat/Allocation.php +++ b/src/OpenSearch/Endpoints/Cat/Allocation.php @@ -64,7 +64,7 @@ public function getMethod(): string return 'GET'; } - public function setNodeId($node_id): Allocation + public function setNodeId($node_id): static { if (isset($node_id) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Cat/Fielddata.php b/src/OpenSearch/Endpoints/Cat/Fielddata.php index dd48d156..3028f357 100644 --- a/src/OpenSearch/Endpoints/Cat/Fielddata.php +++ b/src/OpenSearch/Endpoints/Cat/Fielddata.php @@ -62,7 +62,7 @@ public function getMethod(): string return 'GET'; } - public function setFields($fields): Fielddata + public function setFields($fields): static { if (isset($fields) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Cat/PitSegments.php b/src/OpenSearch/Endpoints/Cat/PitSegments.php index af9981b2..f8aa23f8 100644 --- a/src/OpenSearch/Endpoints/Cat/PitSegments.php +++ b/src/OpenSearch/Endpoints/Cat/PitSegments.php @@ -49,7 +49,7 @@ public function getMethod(): string return 'GET'; } - public function setBody($body): PitSegments + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Cat/Snapshots.php b/src/OpenSearch/Endpoints/Cat/Snapshots.php index 03f0ae52..213bb0f4 100644 --- a/src/OpenSearch/Endpoints/Cat/Snapshots.php +++ b/src/OpenSearch/Endpoints/Cat/Snapshots.php @@ -64,7 +64,7 @@ public function getMethod(): string return 'GET'; } - public function setRepository($repository): Snapshots + public function setRepository($repository): static { if (isset($repository) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Cat/Templates.php b/src/OpenSearch/Endpoints/Cat/Templates.php index 8bf42aa9..116c05f6 100644 --- a/src/OpenSearch/Endpoints/Cat/Templates.php +++ b/src/OpenSearch/Endpoints/Cat/Templates.php @@ -63,7 +63,7 @@ public function getMethod(): string return 'GET'; } - public function setName($name): Templates + public function setName($name): static { if (isset($name) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Cat/ThreadPool.php b/src/OpenSearch/Endpoints/Cat/ThreadPool.php index fcd168c9..1338b757 100644 --- a/src/OpenSearch/Endpoints/Cat/ThreadPool.php +++ b/src/OpenSearch/Endpoints/Cat/ThreadPool.php @@ -64,7 +64,7 @@ public function getMethod(): string return 'GET'; } - public function setThreadPoolPatterns($thread_pool_patterns): ThreadPool + public function setThreadPoolPatterns($thread_pool_patterns): static { if (isset($thread_pool_patterns) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/ClearScroll.php b/src/OpenSearch/Endpoints/ClearScroll.php index 190e9be5..e00ae70a 100644 --- a/src/OpenSearch/Endpoints/ClearScroll.php +++ b/src/OpenSearch/Endpoints/ClearScroll.php @@ -59,7 +59,7 @@ public function getMethod(): string return 'DELETE'; } - public function setBody($body): ClearScroll + public function setBody($body): static { if (isset($body) !== true) { return $this; @@ -69,7 +69,7 @@ public function setBody($body): ClearScroll return $this; } - public function setScrollId($scroll_id): ClearScroll + public function setScrollId($scroll_id): static { if (isset($scroll_id) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Cluster/AllocationExplain.php b/src/OpenSearch/Endpoints/Cluster/AllocationExplain.php index 0c0c8993..0605f258 100644 --- a/src/OpenSearch/Endpoints/Cluster/AllocationExplain.php +++ b/src/OpenSearch/Endpoints/Cluster/AllocationExplain.php @@ -51,7 +51,7 @@ public function getMethod(): string return isset($this->body) ? 'POST' : 'GET'; } - public function setBody($body): AllocationExplain + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Cluster/DeleteComponentTemplate.php b/src/OpenSearch/Endpoints/Cluster/DeleteComponentTemplate.php index e8b16bdc..09dbd056 100644 --- a/src/OpenSearch/Endpoints/Cluster/DeleteComponentTemplate.php +++ b/src/OpenSearch/Endpoints/Cluster/DeleteComponentTemplate.php @@ -59,7 +59,7 @@ public function getMethod(): string return 'DELETE'; } - public function setName($name): DeleteComponentTemplate + public function setName($name): static { if (isset($name) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Cluster/DeleteWeightedRouting.php b/src/OpenSearch/Endpoints/Cluster/DeleteWeightedRouting.php index ab253fcf..a91cb531 100644 --- a/src/OpenSearch/Endpoints/Cluster/DeleteWeightedRouting.php +++ b/src/OpenSearch/Endpoints/Cluster/DeleteWeightedRouting.php @@ -43,7 +43,7 @@ public function getMethod(): string return 'DELETE'; } - public function setBody($body): DeleteWeightedRouting + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Cluster/ExistsComponentTemplate.php b/src/OpenSearch/Endpoints/Cluster/ExistsComponentTemplate.php index 3146fcc0..84ab4173 100644 --- a/src/OpenSearch/Endpoints/Cluster/ExistsComponentTemplate.php +++ b/src/OpenSearch/Endpoints/Cluster/ExistsComponentTemplate.php @@ -59,7 +59,7 @@ public function getMethod(): string return 'HEAD'; } - public function setName($name): ExistsComponentTemplate + public function setName($name): static { if (isset($name) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Cluster/GetComponentTemplate.php b/src/OpenSearch/Endpoints/Cluster/GetComponentTemplate.php index 5d495710..0d490517 100644 --- a/src/OpenSearch/Endpoints/Cluster/GetComponentTemplate.php +++ b/src/OpenSearch/Endpoints/Cluster/GetComponentTemplate.php @@ -58,7 +58,7 @@ public function getMethod(): string return 'GET'; } - public function setName($name): GetComponentTemplate + public function setName($name): static { if (isset($name) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Cluster/GetDecommissionAwareness.php b/src/OpenSearch/Endpoints/Cluster/GetDecommissionAwareness.php index 66c250c5..4b0569b2 100644 --- a/src/OpenSearch/Endpoints/Cluster/GetDecommissionAwareness.php +++ b/src/OpenSearch/Endpoints/Cluster/GetDecommissionAwareness.php @@ -50,7 +50,7 @@ public function getMethod(): string return 'GET'; } - public function setAwarenessAttributeName($awareness_attribute_name): GetDecommissionAwareness + public function setAwarenessAttributeName($awareness_attribute_name): static { if (isset($awareness_attribute_name) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Cluster/GetWeightedRouting.php b/src/OpenSearch/Endpoints/Cluster/GetWeightedRouting.php index 0890735b..dd42bd43 100644 --- a/src/OpenSearch/Endpoints/Cluster/GetWeightedRouting.php +++ b/src/OpenSearch/Endpoints/Cluster/GetWeightedRouting.php @@ -50,7 +50,7 @@ public function getMethod(): string return 'GET'; } - public function setAttribute($attribute): GetWeightedRouting + public function setAttribute($attribute): static { if (isset($attribute) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Cluster/PutComponentTemplate.php b/src/OpenSearch/Endpoints/Cluster/PutComponentTemplate.php index c79a3db9..86a69816 100644 --- a/src/OpenSearch/Endpoints/Cluster/PutComponentTemplate.php +++ b/src/OpenSearch/Endpoints/Cluster/PutComponentTemplate.php @@ -60,7 +60,7 @@ public function getMethod(): string return 'PUT'; } - public function setBody($body): PutComponentTemplate + public function setBody($body): static { if (isset($body) !== true) { return $this; @@ -70,7 +70,7 @@ public function setBody($body): PutComponentTemplate return $this; } - public function setName($name): PutComponentTemplate + public function setName($name): static { if (isset($name) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Cluster/PutDecommissionAwareness.php b/src/OpenSearch/Endpoints/Cluster/PutDecommissionAwareness.php index c80fed51..71385600 100644 --- a/src/OpenSearch/Endpoints/Cluster/PutDecommissionAwareness.php +++ b/src/OpenSearch/Endpoints/Cluster/PutDecommissionAwareness.php @@ -52,7 +52,7 @@ public function getMethod(): string return 'PUT'; } - public function setAwarenessAttributeName($awareness_attribute_name): PutDecommissionAwareness + public function setAwarenessAttributeName($awareness_attribute_name): static { if (isset($awareness_attribute_name) !== true) { return $this; @@ -62,7 +62,7 @@ public function setAwarenessAttributeName($awareness_attribute_name): PutDecommi return $this; } - public function setAwarenessAttributeValue($awareness_attribute_value): PutDecommissionAwareness + public function setAwarenessAttributeValue($awareness_attribute_value): static { if (isset($awareness_attribute_value) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Cluster/PutSettings.php b/src/OpenSearch/Endpoints/Cluster/PutSettings.php index 2a78a059..adc67a56 100644 --- a/src/OpenSearch/Endpoints/Cluster/PutSettings.php +++ b/src/OpenSearch/Endpoints/Cluster/PutSettings.php @@ -53,7 +53,7 @@ public function getMethod(): string return 'PUT'; } - public function setBody($body): PutSettings + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Cluster/PutWeightedRouting.php b/src/OpenSearch/Endpoints/Cluster/PutWeightedRouting.php index 2cb8eb3c..4c707f66 100644 --- a/src/OpenSearch/Endpoints/Cluster/PutWeightedRouting.php +++ b/src/OpenSearch/Endpoints/Cluster/PutWeightedRouting.php @@ -50,7 +50,7 @@ public function getMethod(): string return 'PUT'; } - public function setBody($body): PutWeightedRouting + public function setBody($body): static { if (isset($body) !== true) { return $this; @@ -60,7 +60,7 @@ public function setBody($body): PutWeightedRouting return $this; } - public function setAttribute($attribute): PutWeightedRouting + public function setAttribute($attribute): static { if (isset($attribute) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Cluster/Reroute.php b/src/OpenSearch/Endpoints/Cluster/Reroute.php index 235e5515..52246917 100644 --- a/src/OpenSearch/Endpoints/Cluster/Reroute.php +++ b/src/OpenSearch/Endpoints/Cluster/Reroute.php @@ -56,7 +56,7 @@ public function getMethod(): string return 'POST'; } - public function setBody($body): Reroute + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Cluster/State.php b/src/OpenSearch/Endpoints/Cluster/State.php index a8b7f2eb..61cf3ba6 100644 --- a/src/OpenSearch/Endpoints/Cluster/State.php +++ b/src/OpenSearch/Endpoints/Cluster/State.php @@ -68,7 +68,7 @@ public function getMethod(): string return 'GET'; } - public function setMetric($metric): State + public function setMetric($metric): static { if (isset($metric) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Cluster/Stats.php b/src/OpenSearch/Endpoints/Cluster/Stats.php index 4236808a..8967dd08 100644 --- a/src/OpenSearch/Endpoints/Cluster/Stats.php +++ b/src/OpenSearch/Endpoints/Cluster/Stats.php @@ -57,7 +57,7 @@ public function getMethod(): string return 'GET'; } - public function setNodeId($node_id): Stats + public function setNodeId($node_id): static { if (isset($node_id) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Count.php b/src/OpenSearch/Endpoints/Count.php index 43abf6b7..b83201db 100644 --- a/src/OpenSearch/Endpoints/Count.php +++ b/src/OpenSearch/Endpoints/Count.php @@ -67,7 +67,7 @@ public function getMethod(): string return isset($this->body) ? 'POST' : 'GET'; } - public function setBody($body): Count + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Create.php b/src/OpenSearch/Endpoints/Create.php index 9fd7b60b..28dac6ad 100644 --- a/src/OpenSearch/Endpoints/Create.php +++ b/src/OpenSearch/Endpoints/Create.php @@ -69,7 +69,7 @@ public function getMethod(): string return 'PUT'; } - public function setBody($body): Create + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/DanglingIndices/DeleteDanglingIndex.php b/src/OpenSearch/Endpoints/DanglingIndices/DeleteDanglingIndex.php index bc1e1d8a..7e9a82c7 100644 --- a/src/OpenSearch/Endpoints/DanglingIndices/DeleteDanglingIndex.php +++ b/src/OpenSearch/Endpoints/DanglingIndices/DeleteDanglingIndex.php @@ -60,7 +60,7 @@ public function getMethod(): string return 'DELETE'; } - public function setIndexUuid($index_uuid): DeleteDanglingIndex + public function setIndexUuid($index_uuid): static { if (isset($index_uuid) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/DanglingIndices/ImportDanglingIndex.php b/src/OpenSearch/Endpoints/DanglingIndices/ImportDanglingIndex.php index ca86f44d..59550796 100644 --- a/src/OpenSearch/Endpoints/DanglingIndices/ImportDanglingIndex.php +++ b/src/OpenSearch/Endpoints/DanglingIndices/ImportDanglingIndex.php @@ -60,7 +60,7 @@ public function getMethod(): string return 'POST'; } - public function setIndexUuid($index_uuid): ImportDanglingIndex + public function setIndexUuid($index_uuid): static { if (isset($index_uuid) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/DeleteByQuery.php b/src/OpenSearch/Endpoints/DeleteByQuery.php index cbcf95eb..f01f07cf 100644 --- a/src/OpenSearch/Endpoints/DeleteByQuery.php +++ b/src/OpenSearch/Endpoints/DeleteByQuery.php @@ -89,7 +89,7 @@ public function getMethod(): string return 'POST'; } - public function setBody($body): DeleteByQuery + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/DeleteByQueryRethrottle.php b/src/OpenSearch/Endpoints/DeleteByQueryRethrottle.php index a8cab68c..05a53021 100644 --- a/src/OpenSearch/Endpoints/DeleteByQueryRethrottle.php +++ b/src/OpenSearch/Endpoints/DeleteByQueryRethrottle.php @@ -59,7 +59,7 @@ public function getMethod(): string return 'POST'; } - public function setTaskId($task_id): DeleteByQueryRethrottle + public function setTaskId($task_id): static { if (isset($task_id) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/DeletePit.php b/src/OpenSearch/Endpoints/DeletePit.php index df9768d3..eca44019 100644 --- a/src/OpenSearch/Endpoints/DeletePit.php +++ b/src/OpenSearch/Endpoints/DeletePit.php @@ -43,7 +43,7 @@ public function getMethod(): string return 'DELETE'; } - public function setBody($body): DeletePit + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Explain.php b/src/OpenSearch/Endpoints/Explain.php index cf5a6f1c..9241ef83 100644 --- a/src/OpenSearch/Endpoints/Explain.php +++ b/src/OpenSearch/Endpoints/Explain.php @@ -74,7 +74,7 @@ public function getMethod(): string return isset($this->body) ? 'POST' : 'GET'; } - public function setBody($body): Explain + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/FieldCaps.php b/src/OpenSearch/Endpoints/FieldCaps.php index 93cd3749..d6f22027 100644 --- a/src/OpenSearch/Endpoints/FieldCaps.php +++ b/src/OpenSearch/Endpoints/FieldCaps.php @@ -58,7 +58,7 @@ public function getMethod(): string return isset($this->body) ? 'POST' : 'GET'; } - public function setBody($body): FieldCaps + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/FlowFramework/Create.php b/src/OpenSearch/Endpoints/FlowFramework/Create.php index 38084e8b..60fbac84 100644 --- a/src/OpenSearch/Endpoints/FlowFramework/Create.php +++ b/src/OpenSearch/Endpoints/FlowFramework/Create.php @@ -48,7 +48,7 @@ public function getMethod(): string return 'POST'; } - public function setBody($body): Create + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/FlowFramework/Delete.php b/src/OpenSearch/Endpoints/FlowFramework/Delete.php index 2dd15cb7..c1a75384 100644 --- a/src/OpenSearch/Endpoints/FlowFramework/Delete.php +++ b/src/OpenSearch/Endpoints/FlowFramework/Delete.php @@ -51,7 +51,7 @@ public function getMethod(): string return 'DELETE'; } - public function setWorkflowId($workflow_id): Delete + public function setWorkflowId($workflow_id): static { if (isset($workflow_id) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/FlowFramework/Deprovision.php b/src/OpenSearch/Endpoints/FlowFramework/Deprovision.php index d9429096..c9ef2db1 100644 --- a/src/OpenSearch/Endpoints/FlowFramework/Deprovision.php +++ b/src/OpenSearch/Endpoints/FlowFramework/Deprovision.php @@ -51,7 +51,7 @@ public function getMethod(): string return 'POST'; } - public function setWorkflowId($workflow_id): Deprovision + public function setWorkflowId($workflow_id): static { if (isset($workflow_id) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/FlowFramework/Get.php b/src/OpenSearch/Endpoints/FlowFramework/Get.php index f9c6fc9b..09226a2f 100644 --- a/src/OpenSearch/Endpoints/FlowFramework/Get.php +++ b/src/OpenSearch/Endpoints/FlowFramework/Get.php @@ -50,7 +50,7 @@ public function getMethod(): string return 'GET'; } - public function setWorkflowId($workflow_id): Get + public function setWorkflowId($workflow_id): static { if (isset($workflow_id) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/FlowFramework/GetStatus.php b/src/OpenSearch/Endpoints/FlowFramework/GetStatus.php index e00e918e..9576306f 100644 --- a/src/OpenSearch/Endpoints/FlowFramework/GetStatus.php +++ b/src/OpenSearch/Endpoints/FlowFramework/GetStatus.php @@ -51,7 +51,7 @@ public function getMethod(): string return 'GET'; } - public function setWorkflowId($workflow_id): GetStatus + public function setWorkflowId($workflow_id): static { if (isset($workflow_id) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/FlowFramework/Provision.php b/src/OpenSearch/Endpoints/FlowFramework/Provision.php index 97479db3..9ee121c8 100644 --- a/src/OpenSearch/Endpoints/FlowFramework/Provision.php +++ b/src/OpenSearch/Endpoints/FlowFramework/Provision.php @@ -50,7 +50,7 @@ public function getMethod(): string return 'POST'; } - public function setBody($body): Provision + public function setBody($body): static { if (isset($body) !== true) { return $this; @@ -60,7 +60,7 @@ public function setBody($body): Provision return $this; } - public function setWorkflowId($workflow_id): Provision + public function setWorkflowId($workflow_id): static { if (isset($workflow_id) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/FlowFramework/Search.php b/src/OpenSearch/Endpoints/FlowFramework/Search.php index 7c584a92..353287d8 100644 --- a/src/OpenSearch/Endpoints/FlowFramework/Search.php +++ b/src/OpenSearch/Endpoints/FlowFramework/Search.php @@ -43,7 +43,7 @@ public function getMethod(): string return isset($this->body) ? 'POST' : 'GET'; } - public function setBody($body): Search + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/FlowFramework/SearchState.php b/src/OpenSearch/Endpoints/FlowFramework/SearchState.php index 493339c9..d1ee9c7e 100644 --- a/src/OpenSearch/Endpoints/FlowFramework/SearchState.php +++ b/src/OpenSearch/Endpoints/FlowFramework/SearchState.php @@ -43,7 +43,7 @@ public function getMethod(): string return isset($this->body) ? 'POST' : 'GET'; } - public function setBody($body): SearchState + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/FlowFramework/Update.php b/src/OpenSearch/Endpoints/FlowFramework/Update.php index 3b3479f9..73fa0e12 100644 --- a/src/OpenSearch/Endpoints/FlowFramework/Update.php +++ b/src/OpenSearch/Endpoints/FlowFramework/Update.php @@ -55,7 +55,7 @@ public function getMethod(): string return 'PUT'; } - public function setBody($body): Update + public function setBody($body): static { if (isset($body) !== true) { return $this; @@ -65,7 +65,7 @@ public function setBody($body): Update return $this; } - public function setWorkflowId($workflow_id): Update + public function setWorkflowId($workflow_id): static { if (isset($workflow_id) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Index.php b/src/OpenSearch/Endpoints/Index.php index abeecc31..48ad123c 100644 --- a/src/OpenSearch/Endpoints/Index.php +++ b/src/OpenSearch/Endpoints/Index.php @@ -71,7 +71,7 @@ public function getMethod(): string return 'POST'; } - public function setBody($body): Index + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Indices/AddBlock.php b/src/OpenSearch/Endpoints/Indices/AddBlock.php index 5c878c89..867c0788 100644 --- a/src/OpenSearch/Endpoints/Indices/AddBlock.php +++ b/src/OpenSearch/Endpoints/Indices/AddBlock.php @@ -63,7 +63,7 @@ public function getMethod(): string return 'PUT'; } - public function setBlock($block): AddBlock + public function setBlock($block): static { if (isset($block) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Indices/Analyze.php b/src/OpenSearch/Endpoints/Indices/Analyze.php index 845502ca..63f6612a 100644 --- a/src/OpenSearch/Endpoints/Indices/Analyze.php +++ b/src/OpenSearch/Endpoints/Indices/Analyze.php @@ -54,7 +54,7 @@ public function getMethod(): string return isset($this->body) ? 'POST' : 'GET'; } - public function setBody($body): Analyze + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Indices/CloneIndices.php b/src/OpenSearch/Endpoints/Indices/CloneIndices.php index ca94ac96..dd92e534 100644 --- a/src/OpenSearch/Endpoints/Indices/CloneIndices.php +++ b/src/OpenSearch/Endpoints/Indices/CloneIndices.php @@ -63,7 +63,7 @@ public function getMethod(): string return 'PUT'; } - public function setBody($body): CloneIndices + public function setBody($body): static { if (isset($body) !== true) { return $this; @@ -73,7 +73,7 @@ public function setBody($body): CloneIndices return $this; } - public function setTarget($target): CloneIndices + public function setTarget($target): static { if (isset($target) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Indices/Create.php b/src/OpenSearch/Endpoints/Indices/Create.php index bf9e3d56..e0336b80 100644 --- a/src/OpenSearch/Endpoints/Indices/Create.php +++ b/src/OpenSearch/Endpoints/Indices/Create.php @@ -58,7 +58,7 @@ public function getMethod(): string return 'PUT'; } - public function setBody($body): Create + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Indices/CreateDataStream.php b/src/OpenSearch/Endpoints/Indices/CreateDataStream.php index 0c74c24d..97a98880 100644 --- a/src/OpenSearch/Endpoints/Indices/CreateDataStream.php +++ b/src/OpenSearch/Endpoints/Indices/CreateDataStream.php @@ -56,7 +56,7 @@ public function getMethod(): string return 'PUT'; } - public function setBody($body): CreateDataStream + public function setBody($body): static { if (isset($body) !== true) { return $this; @@ -66,7 +66,7 @@ public function setBody($body): CreateDataStream return $this; } - public function setName($name): CreateDataStream + public function setName($name): static { if (isset($name) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Indices/DataStreamsStats.php b/src/OpenSearch/Endpoints/Indices/DataStreamsStats.php index fc3ee039..49619f24 100644 --- a/src/OpenSearch/Endpoints/Indices/DataStreamsStats.php +++ b/src/OpenSearch/Endpoints/Indices/DataStreamsStats.php @@ -55,7 +55,7 @@ public function getMethod(): string return 'GET'; } - public function setName($name): DataStreamsStats + public function setName($name): static { if (isset($name) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Indices/DeleteAlias.php b/src/OpenSearch/Endpoints/Indices/DeleteAlias.php index edce99b3..7829f215 100644 --- a/src/OpenSearch/Endpoints/Indices/DeleteAlias.php +++ b/src/OpenSearch/Endpoints/Indices/DeleteAlias.php @@ -67,7 +67,7 @@ public function getMethod(): string return 'DELETE'; } - public function setName($name): DeleteAlias + public function setName($name): static { if (isset($name) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Indices/DeleteDataStream.php b/src/OpenSearch/Endpoints/Indices/DeleteDataStream.php index f266b1d8..be9fe5f0 100644 --- a/src/OpenSearch/Endpoints/Indices/DeleteDataStream.php +++ b/src/OpenSearch/Endpoints/Indices/DeleteDataStream.php @@ -56,7 +56,7 @@ public function getMethod(): string return 'DELETE'; } - public function setName($name): DeleteDataStream + public function setName($name): static { if (isset($name) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Indices/DeleteIndexTemplate.php b/src/OpenSearch/Endpoints/Indices/DeleteIndexTemplate.php index 41f340d1..a4013a1e 100644 --- a/src/OpenSearch/Endpoints/Indices/DeleteIndexTemplate.php +++ b/src/OpenSearch/Endpoints/Indices/DeleteIndexTemplate.php @@ -59,7 +59,7 @@ public function getMethod(): string return 'DELETE'; } - public function setName($name): DeleteIndexTemplate + public function setName($name): static { if (isset($name) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Indices/DeleteTemplate.php b/src/OpenSearch/Endpoints/Indices/DeleteTemplate.php index 40f3c92e..f1137aa0 100644 --- a/src/OpenSearch/Endpoints/Indices/DeleteTemplate.php +++ b/src/OpenSearch/Endpoints/Indices/DeleteTemplate.php @@ -59,7 +59,7 @@ public function getMethod(): string return 'DELETE'; } - public function setName($name): DeleteTemplate + public function setName($name): static { if (isset($name) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Indices/ExistsAlias.php b/src/OpenSearch/Endpoints/Indices/ExistsAlias.php index 5b391dd1..e8a7fe6e 100644 --- a/src/OpenSearch/Endpoints/Indices/ExistsAlias.php +++ b/src/OpenSearch/Endpoints/Indices/ExistsAlias.php @@ -66,7 +66,7 @@ public function getMethod(): string return 'HEAD'; } - public function setName($name): ExistsAlias + public function setName($name): static { if (isset($name) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Indices/ExistsIndexTemplate.php b/src/OpenSearch/Endpoints/Indices/ExistsIndexTemplate.php index 437baf77..e2a57d27 100644 --- a/src/OpenSearch/Endpoints/Indices/ExistsIndexTemplate.php +++ b/src/OpenSearch/Endpoints/Indices/ExistsIndexTemplate.php @@ -60,7 +60,7 @@ public function getMethod(): string return 'HEAD'; } - public function setName($name): ExistsIndexTemplate + public function setName($name): static { if (isset($name) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Indices/ExistsTemplate.php b/src/OpenSearch/Endpoints/Indices/ExistsTemplate.php index 02390314..16cedd18 100644 --- a/src/OpenSearch/Endpoints/Indices/ExistsTemplate.php +++ b/src/OpenSearch/Endpoints/Indices/ExistsTemplate.php @@ -60,7 +60,7 @@ public function getMethod(): string return 'HEAD'; } - public function setName($name): ExistsTemplate + public function setName($name): static { if (isset($name) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Indices/GetAlias.php b/src/OpenSearch/Endpoints/Indices/GetAlias.php index 1a2cdc76..ef22815f 100644 --- a/src/OpenSearch/Endpoints/Indices/GetAlias.php +++ b/src/OpenSearch/Endpoints/Indices/GetAlias.php @@ -66,7 +66,7 @@ public function getMethod(): string return 'GET'; } - public function setName($name): GetAlias + public function setName($name): static { if (isset($name) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Indices/GetDataStream.php b/src/OpenSearch/Endpoints/Indices/GetDataStream.php index 0b34c657..60888c85 100644 --- a/src/OpenSearch/Endpoints/Indices/GetDataStream.php +++ b/src/OpenSearch/Endpoints/Indices/GetDataStream.php @@ -55,7 +55,7 @@ public function getMethod(): string return 'GET'; } - public function setName($name): GetDataStream + public function setName($name): static { if (isset($name) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Indices/GetFieldMapping.php b/src/OpenSearch/Endpoints/Indices/GetFieldMapping.php index aa2db2de..fe2575a8 100644 --- a/src/OpenSearch/Endpoints/Indices/GetFieldMapping.php +++ b/src/OpenSearch/Endpoints/Indices/GetFieldMapping.php @@ -67,7 +67,7 @@ public function getMethod(): string return 'GET'; } - public function setFields($fields): GetFieldMapping + public function setFields($fields): static { if (isset($fields) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Indices/GetIndexTemplate.php b/src/OpenSearch/Endpoints/Indices/GetIndexTemplate.php index 84915edd..aad6765b 100644 --- a/src/OpenSearch/Endpoints/Indices/GetIndexTemplate.php +++ b/src/OpenSearch/Endpoints/Indices/GetIndexTemplate.php @@ -59,7 +59,7 @@ public function getMethod(): string return 'GET'; } - public function setName($name): GetIndexTemplate + public function setName($name): static { if (isset($name) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Indices/GetSettings.php b/src/OpenSearch/Endpoints/Indices/GetSettings.php index 6f0aa1b5..16b1930e 100644 --- a/src/OpenSearch/Endpoints/Indices/GetSettings.php +++ b/src/OpenSearch/Endpoints/Indices/GetSettings.php @@ -70,7 +70,7 @@ public function getMethod(): string return 'GET'; } - public function setName($name): GetSettings + public function setName($name): static { if (isset($name) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Indices/GetTemplate.php b/src/OpenSearch/Endpoints/Indices/GetTemplate.php index 83568eb6..e9876dce 100644 --- a/src/OpenSearch/Endpoints/Indices/GetTemplate.php +++ b/src/OpenSearch/Endpoints/Indices/GetTemplate.php @@ -59,7 +59,7 @@ public function getMethod(): string return 'GET'; } - public function setName($name): GetTemplate + public function setName($name): static { if (isset($name) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Indices/PutAlias.php b/src/OpenSearch/Endpoints/Indices/PutAlias.php index 62599f4c..eeb8bd5c 100644 --- a/src/OpenSearch/Endpoints/Indices/PutAlias.php +++ b/src/OpenSearch/Endpoints/Indices/PutAlias.php @@ -65,7 +65,7 @@ public function getMethod(): string return 'PUT'; } - public function setBody($body): PutAlias + public function setBody($body): static { if (isset($body) !== true) { return $this; @@ -75,7 +75,7 @@ public function setBody($body): PutAlias return $this; } - public function setName($name): PutAlias + public function setName($name): static { if (isset($name) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Indices/PutIndexTemplate.php b/src/OpenSearch/Endpoints/Indices/PutIndexTemplate.php index 52713029..f263c7f7 100644 --- a/src/OpenSearch/Endpoints/Indices/PutIndexTemplate.php +++ b/src/OpenSearch/Endpoints/Indices/PutIndexTemplate.php @@ -60,7 +60,7 @@ public function getMethod(): string return 'PUT'; } - public function setBody($body): PutIndexTemplate + public function setBody($body): static { if (isset($body) !== true) { return $this; @@ -70,7 +70,7 @@ public function setBody($body): PutIndexTemplate return $this; } - public function setName($name): PutIndexTemplate + public function setName($name): static { if (isset($name) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Indices/PutMapping.php b/src/OpenSearch/Endpoints/Indices/PutMapping.php index fd10a888..b3f63626 100644 --- a/src/OpenSearch/Endpoints/Indices/PutMapping.php +++ b/src/OpenSearch/Endpoints/Indices/PutMapping.php @@ -61,7 +61,7 @@ public function getMethod(): string return 'PUT'; } - public function setBody($body): PutMapping + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Indices/PutSettings.php b/src/OpenSearch/Endpoints/Indices/PutSettings.php index 332b2286..0f66696c 100644 --- a/src/OpenSearch/Endpoints/Indices/PutSettings.php +++ b/src/OpenSearch/Endpoints/Indices/PutSettings.php @@ -61,7 +61,7 @@ public function getMethod(): string return 'PUT'; } - public function setBody($body): PutSettings + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Indices/PutTemplate.php b/src/OpenSearch/Endpoints/Indices/PutTemplate.php index 90c581a3..666d67b3 100644 --- a/src/OpenSearch/Endpoints/Indices/PutTemplate.php +++ b/src/OpenSearch/Endpoints/Indices/PutTemplate.php @@ -60,7 +60,7 @@ public function getMethod(): string return 'PUT'; } - public function setBody($body): PutTemplate + public function setBody($body): static { if (isset($body) !== true) { return $this; @@ -70,7 +70,7 @@ public function setBody($body): PutTemplate return $this; } - public function setName($name): PutTemplate + public function setName($name): static { if (isset($name) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Indices/ResolveIndex.php b/src/OpenSearch/Endpoints/Indices/ResolveIndex.php index c6d2fec0..95604069 100644 --- a/src/OpenSearch/Endpoints/Indices/ResolveIndex.php +++ b/src/OpenSearch/Endpoints/Indices/ResolveIndex.php @@ -57,7 +57,7 @@ public function getMethod(): string return 'GET'; } - public function setName($name): ResolveIndex + public function setName($name): static { if (isset($name) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Indices/Rollover.php b/src/OpenSearch/Endpoints/Indices/Rollover.php index 0f4ec259..18c1519b 100644 --- a/src/OpenSearch/Endpoints/Indices/Rollover.php +++ b/src/OpenSearch/Endpoints/Indices/Rollover.php @@ -68,7 +68,7 @@ public function getMethod(): string return 'POST'; } - public function setBody($body): Rollover + public function setBody($body): static { if (isset($body) !== true) { return $this; @@ -78,7 +78,7 @@ public function setBody($body): Rollover return $this; } - public function setAlias($alias): Rollover + public function setAlias($alias): static { if (isset($alias) !== true) { return $this; @@ -88,7 +88,7 @@ public function setAlias($alias): Rollover return $this; } - public function setNewIndex($new_index): Rollover + public function setNewIndex($new_index): static { if (isset($new_index) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Indices/Shrink.php b/src/OpenSearch/Endpoints/Indices/Shrink.php index 8806b7e6..c271712b 100644 --- a/src/OpenSearch/Endpoints/Indices/Shrink.php +++ b/src/OpenSearch/Endpoints/Indices/Shrink.php @@ -64,7 +64,7 @@ public function getMethod(): string return 'PUT'; } - public function setBody($body): Shrink + public function setBody($body): static { if (isset($body) !== true) { return $this; @@ -74,7 +74,7 @@ public function setBody($body): Shrink return $this; } - public function setTarget($target): Shrink + public function setTarget($target): static { if (isset($target) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Indices/SimulateIndexTemplate.php b/src/OpenSearch/Endpoints/Indices/SimulateIndexTemplate.php index cc987ae2..977da385 100644 --- a/src/OpenSearch/Endpoints/Indices/SimulateIndexTemplate.php +++ b/src/OpenSearch/Endpoints/Indices/SimulateIndexTemplate.php @@ -60,7 +60,7 @@ public function getMethod(): string return 'POST'; } - public function setBody($body): SimulateIndexTemplate + public function setBody($body): static { if (isset($body) !== true) { return $this; @@ -70,7 +70,7 @@ public function setBody($body): SimulateIndexTemplate return $this; } - public function setName($name): SimulateIndexTemplate + public function setName($name): static { if (isset($name) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Indices/SimulateTemplate.php b/src/OpenSearch/Endpoints/Indices/SimulateTemplate.php index 8aa2c0ff..16ec3a9d 100644 --- a/src/OpenSearch/Endpoints/Indices/SimulateTemplate.php +++ b/src/OpenSearch/Endpoints/Indices/SimulateTemplate.php @@ -59,7 +59,7 @@ public function getMethod(): string return 'POST'; } - public function setBody($body): SimulateTemplate + public function setBody($body): static { if (isset($body) !== true) { return $this; @@ -69,7 +69,7 @@ public function setBody($body): SimulateTemplate return $this; } - public function setName($name): SimulateTemplate + public function setName($name): static { if (isset($name) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Indices/Split.php b/src/OpenSearch/Endpoints/Indices/Split.php index 6559b881..3fff81d3 100644 --- a/src/OpenSearch/Endpoints/Indices/Split.php +++ b/src/OpenSearch/Endpoints/Indices/Split.php @@ -64,7 +64,7 @@ public function getMethod(): string return 'PUT'; } - public function setBody($body): Split + public function setBody($body): static { if (isset($body) !== true) { return $this; @@ -74,7 +74,7 @@ public function setBody($body): Split return $this; } - public function setTarget($target): Split + public function setTarget($target): static { if (isset($target) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Indices/Stats.php b/src/OpenSearch/Endpoints/Indices/Stats.php index 86195e16..a1f51f4d 100644 --- a/src/OpenSearch/Endpoints/Indices/Stats.php +++ b/src/OpenSearch/Endpoints/Indices/Stats.php @@ -71,7 +71,7 @@ public function getMethod(): string return 'GET'; } - public function setMetric($metric): Stats + public function setMetric($metric): static { if (isset($metric) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Indices/UpdateAliases.php b/src/OpenSearch/Endpoints/Indices/UpdateAliases.php index fea7b223..d7dcbb9f 100644 --- a/src/OpenSearch/Endpoints/Indices/UpdateAliases.php +++ b/src/OpenSearch/Endpoints/Indices/UpdateAliases.php @@ -52,7 +52,7 @@ public function getMethod(): string return 'POST'; } - public function setBody($body): UpdateAliases + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Indices/ValidateQuery.php b/src/OpenSearch/Endpoints/Indices/ValidateQuery.php index b6d6bda7..008bebfe 100644 --- a/src/OpenSearch/Endpoints/Indices/ValidateQuery.php +++ b/src/OpenSearch/Endpoints/Indices/ValidateQuery.php @@ -65,7 +65,7 @@ public function getMethod(): string return isset($this->body) ? 'POST' : 'GET'; } - public function setBody($body): ValidateQuery + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Ingest/PutPipeline.php b/src/OpenSearch/Endpoints/Ingest/PutPipeline.php index 9205cbc4..1a4cef43 100644 --- a/src/OpenSearch/Endpoints/Ingest/PutPipeline.php +++ b/src/OpenSearch/Endpoints/Ingest/PutPipeline.php @@ -57,7 +57,7 @@ public function getMethod(): string return 'PUT'; } - public function setBody($body): PutPipeline + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Ingest/Simulate.php b/src/OpenSearch/Endpoints/Ingest/Simulate.php index afc87623..44e3ba9d 100644 --- a/src/OpenSearch/Endpoints/Ingest/Simulate.php +++ b/src/OpenSearch/Endpoints/Ingest/Simulate.php @@ -54,7 +54,7 @@ public function getMethod(): string return isset($this->body) ? 'POST' : 'GET'; } - public function setBody($body): Simulate + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Ism/AddPolicy.php b/src/OpenSearch/Endpoints/Ism/AddPolicy.php index f87d83b6..045768ab 100644 --- a/src/OpenSearch/Endpoints/Ism/AddPolicy.php +++ b/src/OpenSearch/Endpoints/Ism/AddPolicy.php @@ -48,7 +48,7 @@ public function getMethod(): string return 'POST'; } - public function setBody($body): AddPolicy + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Ism/ChangePolicy.php b/src/OpenSearch/Endpoints/Ism/ChangePolicy.php index 8815ec48..49dbb9d2 100644 --- a/src/OpenSearch/Endpoints/Ism/ChangePolicy.php +++ b/src/OpenSearch/Endpoints/Ism/ChangePolicy.php @@ -48,7 +48,7 @@ public function getMethod(): string return 'POST'; } - public function setBody($body): ChangePolicy + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Ism/DeletePolicy.php b/src/OpenSearch/Endpoints/Ism/DeletePolicy.php index 00e92dbd..a30b2a25 100644 --- a/src/OpenSearch/Endpoints/Ism/DeletePolicy.php +++ b/src/OpenSearch/Endpoints/Ism/DeletePolicy.php @@ -52,7 +52,7 @@ public function getMethod(): string return 'DELETE'; } - public function setPolicyId($policy_id): DeletePolicy + public function setPolicyId($policy_id): static { if (isset($policy_id) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Ism/ExistsPolicy.php b/src/OpenSearch/Endpoints/Ism/ExistsPolicy.php index c7187f99..55ea59b5 100644 --- a/src/OpenSearch/Endpoints/Ism/ExistsPolicy.php +++ b/src/OpenSearch/Endpoints/Ism/ExistsPolicy.php @@ -52,7 +52,7 @@ public function getMethod(): string return 'HEAD'; } - public function setPolicyId($policy_id): ExistsPolicy + public function setPolicyId($policy_id): static { if (isset($policy_id) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Ism/ExplainPolicy.php b/src/OpenSearch/Endpoints/Ism/ExplainPolicy.php index 80b2bb9a..35236df6 100644 --- a/src/OpenSearch/Endpoints/Ism/ExplainPolicy.php +++ b/src/OpenSearch/Endpoints/Ism/ExplainPolicy.php @@ -47,7 +47,7 @@ public function getMethod(): string return isset($this->body) ? 'POST' : 'GET'; } - public function setBody($body): ExplainPolicy + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Ism/GetPolicy.php b/src/OpenSearch/Endpoints/Ism/GetPolicy.php index 6138c890..469dc775 100644 --- a/src/OpenSearch/Endpoints/Ism/GetPolicy.php +++ b/src/OpenSearch/Endpoints/Ism/GetPolicy.php @@ -52,7 +52,7 @@ public function getMethod(): string return 'GET'; } - public function setPolicyId($policy_id): GetPolicy + public function setPolicyId($policy_id): static { if (isset($policy_id) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Ism/PutPolicies.php b/src/OpenSearch/Endpoints/Ism/PutPolicies.php index 8b80ed8e..5148d881 100644 --- a/src/OpenSearch/Endpoints/Ism/PutPolicies.php +++ b/src/OpenSearch/Endpoints/Ism/PutPolicies.php @@ -46,7 +46,7 @@ public function getMethod(): string return 'PUT'; } - public function setBody($body): PutPolicies + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Ism/PutPolicy.php b/src/OpenSearch/Endpoints/Ism/PutPolicy.php index 253b4d55..e93b289b 100644 --- a/src/OpenSearch/Endpoints/Ism/PutPolicy.php +++ b/src/OpenSearch/Endpoints/Ism/PutPolicy.php @@ -54,7 +54,7 @@ public function getMethod(): string return 'PUT'; } - public function setBody($body): PutPolicy + public function setBody($body): static { if (isset($body) !== true) { return $this; @@ -64,7 +64,7 @@ public function setBody($body): PutPolicy return $this; } - public function setPolicyId($policy_id): PutPolicy + public function setPolicyId($policy_id): static { if (isset($policy_id) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Ism/RetryIndex.php b/src/OpenSearch/Endpoints/Ism/RetryIndex.php index d263e850..1056aab5 100644 --- a/src/OpenSearch/Endpoints/Ism/RetryIndex.php +++ b/src/OpenSearch/Endpoints/Ism/RetryIndex.php @@ -48,7 +48,7 @@ public function getMethod(): string return 'POST'; } - public function setBody($body): RetryIndex + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Knn/DeleteModel.php b/src/OpenSearch/Endpoints/Knn/DeleteModel.php index e4afbc05..f650a575 100644 --- a/src/OpenSearch/Endpoints/Knn/DeleteModel.php +++ b/src/OpenSearch/Endpoints/Knn/DeleteModel.php @@ -50,7 +50,7 @@ public function getMethod(): string return 'DELETE'; } - public function setModelId($model_id): DeleteModel + public function setModelId($model_id): static { if (isset($model_id) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Knn/GetModel.php b/src/OpenSearch/Endpoints/Knn/GetModel.php index c8d2e927..410d884b 100644 --- a/src/OpenSearch/Endpoints/Knn/GetModel.php +++ b/src/OpenSearch/Endpoints/Knn/GetModel.php @@ -50,7 +50,7 @@ public function getMethod(): string return 'GET'; } - public function setModelId($model_id): GetModel + public function setModelId($model_id): static { if (isset($model_id) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Knn/SearchModels.php b/src/OpenSearch/Endpoints/Knn/SearchModels.php index 23e988cd..cd25afc5 100644 --- a/src/OpenSearch/Endpoints/Knn/SearchModels.php +++ b/src/OpenSearch/Endpoints/Knn/SearchModels.php @@ -85,7 +85,7 @@ public function getMethod(): string return isset($this->body) ? 'POST' : 'GET'; } - public function setBody($body): SearchModels + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Knn/Stats.php b/src/OpenSearch/Endpoints/Knn/Stats.php index a5fac196..a8d17d78 100644 --- a/src/OpenSearch/Endpoints/Knn/Stats.php +++ b/src/OpenSearch/Endpoints/Knn/Stats.php @@ -58,7 +58,7 @@ public function getMethod(): string return 'GET'; } - public function setNodeId($node_id): Stats + public function setNodeId($node_id): static { if (isset($node_id) !== true) { return $this; @@ -71,7 +71,7 @@ public function setNodeId($node_id): Stats return $this; } - public function setStat($stat): Stats + public function setStat($stat): static { if (isset($stat) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Knn/TrainModel.php b/src/OpenSearch/Endpoints/Knn/TrainModel.php index 19b8d807..cf4cbc3b 100644 --- a/src/OpenSearch/Endpoints/Knn/TrainModel.php +++ b/src/OpenSearch/Endpoints/Knn/TrainModel.php @@ -50,7 +50,7 @@ public function getMethod(): string return 'POST'; } - public function setBody($body): TrainModel + public function setBody($body): static { if (isset($body) !== true) { return $this; @@ -60,7 +60,7 @@ public function setBody($body): TrainModel return $this; } - public function setModelId($model_id): TrainModel + public function setModelId($model_id): static { if (isset($model_id) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/MTermVectors.php b/src/OpenSearch/Endpoints/MTermVectors.php index 11afa11e..f76e0880 100644 --- a/src/OpenSearch/Endpoints/MTermVectors.php +++ b/src/OpenSearch/Endpoints/MTermVectors.php @@ -65,7 +65,7 @@ public function getMethod(): string return isset($this->body) ? 'POST' : 'GET'; } - public function setBody($body): MTermVectors + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Mget.php b/src/OpenSearch/Endpoints/Mget.php index e1a57615..edd7682f 100644 --- a/src/OpenSearch/Endpoints/Mget.php +++ b/src/OpenSearch/Endpoints/Mget.php @@ -61,7 +61,7 @@ public function getMethod(): string return isset($this->body) ? 'POST' : 'GET'; } - public function setBody($body): Mget + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Ml/CreateConnector.php b/src/OpenSearch/Endpoints/Ml/CreateConnector.php index 6a62bbcb..887bf987 100644 --- a/src/OpenSearch/Endpoints/Ml/CreateConnector.php +++ b/src/OpenSearch/Endpoints/Ml/CreateConnector.php @@ -41,7 +41,7 @@ public function getMethod(): string return 'POST'; } - public function setBody($body): CreateConnector + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Ml/DeleteAgent.php b/src/OpenSearch/Endpoints/Ml/DeleteAgent.php index 759c5a54..fb8c4656 100644 --- a/src/OpenSearch/Endpoints/Ml/DeleteAgent.php +++ b/src/OpenSearch/Endpoints/Ml/DeleteAgent.php @@ -50,7 +50,7 @@ public function getMethod(): string return 'DELETE'; } - public function setAgentId($agent_id): DeleteAgent + public function setAgentId($agent_id): static { if (isset($agent_id) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Ml/DeleteConnector.php b/src/OpenSearch/Endpoints/Ml/DeleteConnector.php index f457358c..6c28dd27 100644 --- a/src/OpenSearch/Endpoints/Ml/DeleteConnector.php +++ b/src/OpenSearch/Endpoints/Ml/DeleteConnector.php @@ -48,7 +48,7 @@ public function getMethod(): string return 'DELETE'; } - public function setConnectorId($connector_id): DeleteConnector + public function setConnectorId($connector_id): static { if (isset($connector_id) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Ml/DeleteTask.php b/src/OpenSearch/Endpoints/Ml/DeleteTask.php index 6a2a3036..cbff3d87 100644 --- a/src/OpenSearch/Endpoints/Ml/DeleteTask.php +++ b/src/OpenSearch/Endpoints/Ml/DeleteTask.php @@ -50,7 +50,7 @@ public function getMethod(): string return 'DELETE'; } - public function setTaskId($task_id): DeleteTask + public function setTaskId($task_id): static { if (isset($task_id) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Ml/DeployModel.php b/src/OpenSearch/Endpoints/Ml/DeployModel.php index 0d9cf4cb..e69da694 100644 --- a/src/OpenSearch/Endpoints/Ml/DeployModel.php +++ b/src/OpenSearch/Endpoints/Ml/DeployModel.php @@ -48,7 +48,7 @@ public function getMethod(): string return 'POST'; } - public function setModelId($model_id): DeployModel + public function setModelId($model_id): static { if (isset($model_id) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Ml/GetModelGroup.php b/src/OpenSearch/Endpoints/Ml/GetModelGroup.php index f061ea6c..989f9ae2 100644 --- a/src/OpenSearch/Endpoints/Ml/GetModelGroup.php +++ b/src/OpenSearch/Endpoints/Ml/GetModelGroup.php @@ -50,7 +50,7 @@ public function getMethod(): string return 'GET'; } - public function setModelGroupId($model_group_id): GetModelGroup + public function setModelGroupId($model_group_id): static { if (isset($model_group_id) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Ml/RegisterAgents.php b/src/OpenSearch/Endpoints/Ml/RegisterAgents.php index 7c14d852..11051da1 100644 --- a/src/OpenSearch/Endpoints/Ml/RegisterAgents.php +++ b/src/OpenSearch/Endpoints/Ml/RegisterAgents.php @@ -43,7 +43,7 @@ public function getMethod(): string return 'POST'; } - public function setBody($body): RegisterAgents + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Ml/RegisterModel.php b/src/OpenSearch/Endpoints/Ml/RegisterModel.php index 698659c9..49824326 100644 --- a/src/OpenSearch/Endpoints/Ml/RegisterModel.php +++ b/src/OpenSearch/Endpoints/Ml/RegisterModel.php @@ -43,7 +43,7 @@ public function getMethod(): string return 'POST'; } - public function setBody($body): RegisterModel + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Ml/RegisterModelGroup.php b/src/OpenSearch/Endpoints/Ml/RegisterModelGroup.php index 046581e8..ff4943ec 100644 --- a/src/OpenSearch/Endpoints/Ml/RegisterModelGroup.php +++ b/src/OpenSearch/Endpoints/Ml/RegisterModelGroup.php @@ -43,7 +43,7 @@ public function getMethod(): string return 'POST'; } - public function setBody($body): RegisterModelGroup + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Ml/SearchModels.php b/src/OpenSearch/Endpoints/Ml/SearchModels.php index a6874ac1..84512e7c 100644 --- a/src/OpenSearch/Endpoints/Ml/SearchModels.php +++ b/src/OpenSearch/Endpoints/Ml/SearchModels.php @@ -43,7 +43,7 @@ public function getMethod(): string return 'GET'; } - public function setBody($body): SearchModels + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Ml/UndeployModel.php b/src/OpenSearch/Endpoints/Ml/UndeployModel.php index 2dd63058..3aff2bad 100644 --- a/src/OpenSearch/Endpoints/Ml/UndeployModel.php +++ b/src/OpenSearch/Endpoints/Ml/UndeployModel.php @@ -48,7 +48,7 @@ public function getMethod(): string return 'POST'; } - public function setModelId($model_id): UndeployModel + public function setModelId($model_id): static { if (isset($model_id) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Msearch.php b/src/OpenSearch/Endpoints/Msearch.php index e2a5fb6e..a7e39285 100644 --- a/src/OpenSearch/Endpoints/Msearch.php +++ b/src/OpenSearch/Endpoints/Msearch.php @@ -68,7 +68,7 @@ public function getMethod(): string return isset($this->body) ? 'POST' : 'GET'; } - public function setBody($body): Msearch + public function setBody($body): static { if (isset($body) !== true) { return $this; @@ -87,4 +87,5 @@ public function setBody($body): Msearch } return $this; } + } diff --git a/src/OpenSearch/Endpoints/MsearchTemplate.php b/src/OpenSearch/Endpoints/MsearchTemplate.php index 560c62d8..247882f7 100644 --- a/src/OpenSearch/Endpoints/MsearchTemplate.php +++ b/src/OpenSearch/Endpoints/MsearchTemplate.php @@ -66,7 +66,7 @@ public function getMethod(): string return isset($this->body) ? 'POST' : 'GET'; } - public function setBody($body): MsearchTemplate + public function setBody($body): static { if (isset($body) !== true) { return $this; @@ -85,4 +85,5 @@ public function setBody($body): MsearchTemplate } return $this; } + } diff --git a/src/OpenSearch/Endpoints/Nodes/HotThreads.php b/src/OpenSearch/Endpoints/Nodes/HotThreads.php index ab4e0a97..a4854a60 100644 --- a/src/OpenSearch/Endpoints/Nodes/HotThreads.php +++ b/src/OpenSearch/Endpoints/Nodes/HotThreads.php @@ -61,7 +61,7 @@ public function getMethod(): string return 'GET'; } - public function setNodeId($node_id): HotThreads + public function setNodeId($node_id): static { if (isset($node_id) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Nodes/Info.php b/src/OpenSearch/Endpoints/Nodes/Info.php index b02a894a..da403a7c 100644 --- a/src/OpenSearch/Endpoints/Nodes/Info.php +++ b/src/OpenSearch/Endpoints/Nodes/Info.php @@ -70,7 +70,7 @@ public function getMethod(): string return 'GET'; } - public function setNodeIdOrMetric($node_id_or_metric): Info + public function setNodeIdOrMetric($node_id_or_metric): static { if (isset($node_id_or_metric) !== true) { return $this; @@ -80,7 +80,7 @@ public function setNodeIdOrMetric($node_id_or_metric): Info return $this; } - public function setMetric($metric): Info + public function setMetric($metric): static { if (isset($metric) !== true) { return $this; @@ -93,7 +93,7 @@ public function setMetric($metric): Info return $this; } - public function setNodeId($node_id): Info + public function setNodeId($node_id): static { if (isset($node_id) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Nodes/ReloadSecureSettings.php b/src/OpenSearch/Endpoints/Nodes/ReloadSecureSettings.php index f858252d..6b3a6a14 100644 --- a/src/OpenSearch/Endpoints/Nodes/ReloadSecureSettings.php +++ b/src/OpenSearch/Endpoints/Nodes/ReloadSecureSettings.php @@ -56,7 +56,7 @@ public function getMethod(): string return 'POST'; } - public function setBody($body): ReloadSecureSettings + public function setBody($body): static { if (isset($body) !== true) { return $this; @@ -66,7 +66,7 @@ public function setBody($body): ReloadSecureSettings return $this; } - public function setNodeId($node_id): ReloadSecureSettings + public function setNodeId($node_id): static { if (isset($node_id) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Nodes/Stats.php b/src/OpenSearch/Endpoints/Nodes/Stats.php index 1758d29f..b3d84d19 100644 --- a/src/OpenSearch/Endpoints/Nodes/Stats.php +++ b/src/OpenSearch/Endpoints/Nodes/Stats.php @@ -79,7 +79,7 @@ public function getMethod(): string return 'GET'; } - public function setNodeId($node_id): Stats + public function setNodeId($node_id): static { if (isset($node_id) !== true) { return $this; @@ -92,7 +92,7 @@ public function setNodeId($node_id): Stats return $this; } - public function setMetric($metric): Stats + public function setMetric($metric): static { if (isset($metric) !== true) { return $this; @@ -105,7 +105,7 @@ public function setMetric($metric): Stats return $this; } - public function setIndexMetric($index_metric): Stats + public function setIndexMetric($index_metric): static { if (isset($index_metric) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Nodes/Usage.php b/src/OpenSearch/Endpoints/Nodes/Usage.php index 3693c591..18098ada 100644 --- a/src/OpenSearch/Endpoints/Nodes/Usage.php +++ b/src/OpenSearch/Endpoints/Nodes/Usage.php @@ -64,7 +64,7 @@ public function getMethod(): string return 'GET'; } - public function setNodeId($node_id): Usage + public function setNodeId($node_id): static { if (isset($node_id) !== true) { return $this; @@ -77,7 +77,7 @@ public function setNodeId($node_id): Usage return $this; } - public function setMetric($metric): Usage + public function setMetric($metric): static { if (isset($metric) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Notifications/CreateConfig.php b/src/OpenSearch/Endpoints/Notifications/CreateConfig.php index 72ddf593..a21b3c4c 100644 --- a/src/OpenSearch/Endpoints/Notifications/CreateConfig.php +++ b/src/OpenSearch/Endpoints/Notifications/CreateConfig.php @@ -43,7 +43,7 @@ public function getMethod(): string return 'POST'; } - public function setBody($body): CreateConfig + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Notifications/DeleteConfig.php b/src/OpenSearch/Endpoints/Notifications/DeleteConfig.php index afe39ff2..6bab9ea4 100644 --- a/src/OpenSearch/Endpoints/Notifications/DeleteConfig.php +++ b/src/OpenSearch/Endpoints/Notifications/DeleteConfig.php @@ -50,7 +50,7 @@ public function getMethod(): string return 'DELETE'; } - public function setConfigId($config_id): DeleteConfig + public function setConfigId($config_id): static { if (isset($config_id) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Notifications/GetConfig.php b/src/OpenSearch/Endpoints/Notifications/GetConfig.php index ded17c03..444dfb10 100644 --- a/src/OpenSearch/Endpoints/Notifications/GetConfig.php +++ b/src/OpenSearch/Endpoints/Notifications/GetConfig.php @@ -50,7 +50,7 @@ public function getMethod(): string return 'GET'; } - public function setConfigId($config_id): GetConfig + public function setConfigId($config_id): static { if (isset($config_id) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Notifications/GetConfigs.php b/src/OpenSearch/Endpoints/Notifications/GetConfigs.php index 95bdfbde..22d250e1 100644 --- a/src/OpenSearch/Endpoints/Notifications/GetConfigs.php +++ b/src/OpenSearch/Endpoints/Notifications/GetConfigs.php @@ -83,7 +83,7 @@ public function getMethod(): string return 'GET'; } - public function setBody($body): GetConfigs + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Notifications/SendTest.php b/src/OpenSearch/Endpoints/Notifications/SendTest.php index 2066781c..2ff69181 100644 --- a/src/OpenSearch/Endpoints/Notifications/SendTest.php +++ b/src/OpenSearch/Endpoints/Notifications/SendTest.php @@ -50,7 +50,7 @@ public function getMethod(): string return 'GET'; } - public function setConfigId($config_id): SendTest + public function setConfigId($config_id): static { if (isset($config_id) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Notifications/UpdateConfig.php b/src/OpenSearch/Endpoints/Notifications/UpdateConfig.php index d493a5c7..55fa5575 100644 --- a/src/OpenSearch/Endpoints/Notifications/UpdateConfig.php +++ b/src/OpenSearch/Endpoints/Notifications/UpdateConfig.php @@ -50,7 +50,7 @@ public function getMethod(): string return 'PUT'; } - public function setBody($body): UpdateConfig + public function setBody($body): static { if (isset($body) !== true) { return $this; @@ -60,7 +60,7 @@ public function setBody($body): UpdateConfig return $this; } - public function setConfigId($config_id): UpdateConfig + public function setConfigId($config_id): static { if (isset($config_id) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Observability/CreateObject.php b/src/OpenSearch/Endpoints/Observability/CreateObject.php index 47494884..a88377e5 100644 --- a/src/OpenSearch/Endpoints/Observability/CreateObject.php +++ b/src/OpenSearch/Endpoints/Observability/CreateObject.php @@ -43,7 +43,7 @@ public function getMethod(): string return 'POST'; } - public function setBody($body): CreateObject + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Observability/DeleteObject.php b/src/OpenSearch/Endpoints/Observability/DeleteObject.php index cc600211..308d4da4 100644 --- a/src/OpenSearch/Endpoints/Observability/DeleteObject.php +++ b/src/OpenSearch/Endpoints/Observability/DeleteObject.php @@ -50,7 +50,7 @@ public function getMethod(): string return 'DELETE'; } - public function setObjectId($object_id): DeleteObject + public function setObjectId($object_id): static { if (isset($object_id) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Observability/GetObject.php b/src/OpenSearch/Endpoints/Observability/GetObject.php index e2cea7a8..ed967f9b 100644 --- a/src/OpenSearch/Endpoints/Observability/GetObject.php +++ b/src/OpenSearch/Endpoints/Observability/GetObject.php @@ -50,7 +50,7 @@ public function getMethod(): string return 'GET'; } - public function setObjectId($object_id): GetObject + public function setObjectId($object_id): static { if (isset($object_id) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Observability/UpdateObject.php b/src/OpenSearch/Endpoints/Observability/UpdateObject.php index a1c07f46..69d44e46 100644 --- a/src/OpenSearch/Endpoints/Observability/UpdateObject.php +++ b/src/OpenSearch/Endpoints/Observability/UpdateObject.php @@ -50,7 +50,7 @@ public function getMethod(): string return 'PUT'; } - public function setBody($body): UpdateObject + public function setBody($body): static { if (isset($body) !== true) { return $this; @@ -60,7 +60,7 @@ public function setBody($body): UpdateObject return $this; } - public function setObjectId($object_id): UpdateObject + public function setObjectId($object_id): static { if (isset($object_id) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Ppl/Explain.php b/src/OpenSearch/Endpoints/Ppl/Explain.php index 708526b7..4e1c0468 100644 --- a/src/OpenSearch/Endpoints/Ppl/Explain.php +++ b/src/OpenSearch/Endpoints/Ppl/Explain.php @@ -45,7 +45,7 @@ public function getMethod(): string return 'POST'; } - public function setBody($body): Explain + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Ppl/PostStats.php b/src/OpenSearch/Endpoints/Ppl/PostStats.php index 5efac6f3..e7763bdc 100644 --- a/src/OpenSearch/Endpoints/Ppl/PostStats.php +++ b/src/OpenSearch/Endpoints/Ppl/PostStats.php @@ -45,7 +45,7 @@ public function getMethod(): string return 'POST'; } - public function setBody($body): PostStats + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Ppl/Query.php b/src/OpenSearch/Endpoints/Ppl/Query.php index bb544c86..47c31e35 100644 --- a/src/OpenSearch/Endpoints/Ppl/Query.php +++ b/src/OpenSearch/Endpoints/Ppl/Query.php @@ -45,7 +45,7 @@ public function getMethod(): string return 'POST'; } - public function setBody($body): Query + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/PutScript.php b/src/OpenSearch/Endpoints/PutScript.php index 5615c780..43323828 100644 --- a/src/OpenSearch/Endpoints/PutScript.php +++ b/src/OpenSearch/Endpoints/PutScript.php @@ -66,7 +66,7 @@ public function getMethod(): string return 'PUT'; } - public function setBody($body): PutScript + public function setBody($body): static { if (isset($body) !== true) { return $this; @@ -76,7 +76,7 @@ public function setBody($body): PutScript return $this; } - public function setContext($context): PutScript + public function setContext($context): static { if (isset($context) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Query/DatasourceDelete.php b/src/OpenSearch/Endpoints/Query/DatasourceDelete.php index fac16196..717019ba 100644 --- a/src/OpenSearch/Endpoints/Query/DatasourceDelete.php +++ b/src/OpenSearch/Endpoints/Query/DatasourceDelete.php @@ -50,7 +50,7 @@ public function getMethod(): string return 'DELETE'; } - public function setDatasourceName($datasource_name): DatasourceDelete + public function setDatasourceName($datasource_name): static { if (isset($datasource_name) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Query/DatasourceRetrieve.php b/src/OpenSearch/Endpoints/Query/DatasourceRetrieve.php index f45d1adb..e0472558 100644 --- a/src/OpenSearch/Endpoints/Query/DatasourceRetrieve.php +++ b/src/OpenSearch/Endpoints/Query/DatasourceRetrieve.php @@ -50,7 +50,7 @@ public function getMethod(): string return 'GET'; } - public function setDatasourceName($datasource_name): DatasourceRetrieve + public function setDatasourceName($datasource_name): static { if (isset($datasource_name) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Query/DatasourcesCreate.php b/src/OpenSearch/Endpoints/Query/DatasourcesCreate.php index b2a47881..9f1c2d4e 100644 --- a/src/OpenSearch/Endpoints/Query/DatasourcesCreate.php +++ b/src/OpenSearch/Endpoints/Query/DatasourcesCreate.php @@ -43,7 +43,7 @@ public function getMethod(): string return 'POST'; } - public function setBody($body): DatasourcesCreate + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Query/DatasourcesUpdate.php b/src/OpenSearch/Endpoints/Query/DatasourcesUpdate.php index 4da38b36..6836d726 100644 --- a/src/OpenSearch/Endpoints/Query/DatasourcesUpdate.php +++ b/src/OpenSearch/Endpoints/Query/DatasourcesUpdate.php @@ -43,7 +43,7 @@ public function getMethod(): string return 'PUT'; } - public function setBody($body): DatasourcesUpdate + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/RankEval.php b/src/OpenSearch/Endpoints/RankEval.php index ee92c79f..4b1b23de 100644 --- a/src/OpenSearch/Endpoints/RankEval.php +++ b/src/OpenSearch/Endpoints/RankEval.php @@ -57,7 +57,7 @@ public function getMethod(): string return isset($this->body) ? 'POST' : 'GET'; } - public function setBody($body): RankEval + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Reindex.php b/src/OpenSearch/Endpoints/Reindex.php index 8aacbcda..85b19007 100644 --- a/src/OpenSearch/Endpoints/Reindex.php +++ b/src/OpenSearch/Endpoints/Reindex.php @@ -57,7 +57,7 @@ public function getMethod(): string return 'POST'; } - public function setBody($body): Reindex + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/ReindexRethrottle.php b/src/OpenSearch/Endpoints/ReindexRethrottle.php index 50d7bc45..fbbdb529 100644 --- a/src/OpenSearch/Endpoints/ReindexRethrottle.php +++ b/src/OpenSearch/Endpoints/ReindexRethrottle.php @@ -59,7 +59,7 @@ public function getMethod(): string return 'POST'; } - public function setTaskId($task_id): ReindexRethrottle + public function setTaskId($task_id): static { if (isset($task_id) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/RemoteStore/Restore.php b/src/OpenSearch/Endpoints/RemoteStore/Restore.php index d1c4630f..fb4c6c41 100644 --- a/src/OpenSearch/Endpoints/RemoteStore/Restore.php +++ b/src/OpenSearch/Endpoints/RemoteStore/Restore.php @@ -45,7 +45,7 @@ public function getMethod(): string return 'POST'; } - public function setBody($body): Restore + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/RenderSearchTemplate.php b/src/OpenSearch/Endpoints/RenderSearchTemplate.php index 80bea800..48e32042 100644 --- a/src/OpenSearch/Endpoints/RenderSearchTemplate.php +++ b/src/OpenSearch/Endpoints/RenderSearchTemplate.php @@ -53,7 +53,7 @@ public function getMethod(): string return isset($this->body) ? 'POST' : 'GET'; } - public function setBody($body): RenderSearchTemplate + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Rollups/Put.php b/src/OpenSearch/Endpoints/Rollups/Put.php index 6aa63aaf..dc8ec845 100644 --- a/src/OpenSearch/Endpoints/Rollups/Put.php +++ b/src/OpenSearch/Endpoints/Rollups/Put.php @@ -52,7 +52,7 @@ public function getMethod(): string return 'PUT'; } - public function setBody($body): Put + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/ScriptsPainlessExecute.php b/src/OpenSearch/Endpoints/ScriptsPainlessExecute.php index 5a6b8b71..1e3ecef2 100644 --- a/src/OpenSearch/Endpoints/ScriptsPainlessExecute.php +++ b/src/OpenSearch/Endpoints/ScriptsPainlessExecute.php @@ -49,7 +49,7 @@ public function getMethod(): string return isset($this->body) ? 'POST' : 'GET'; } - public function setBody($body): ScriptsPainlessExecute + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Scroll.php b/src/OpenSearch/Endpoints/Scroll.php index 907a555d..f4042d83 100644 --- a/src/OpenSearch/Endpoints/Scroll.php +++ b/src/OpenSearch/Endpoints/Scroll.php @@ -62,7 +62,7 @@ public function getMethod(): string return isset($this->body) ? 'POST' : 'GET'; } - public function setBody($body): Scroll + public function setBody($body): static { if (isset($body) !== true) { return $this; @@ -72,7 +72,7 @@ public function setBody($body): Scroll return $this; } - public function setScrollId($scroll_id): Scroll + public function setScrollId($scroll_id): static { if (isset($scroll_id) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Search.php b/src/OpenSearch/Endpoints/Search.php index 0bbdf51c..8380e3f5 100644 --- a/src/OpenSearch/Endpoints/Search.php +++ b/src/OpenSearch/Endpoints/Search.php @@ -99,7 +99,7 @@ public function getMethod(): string return isset($this->body) ? 'POST' : 'GET'; } - public function setBody($body): Search + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/SearchPipeline/Put.php b/src/OpenSearch/Endpoints/SearchPipeline/Put.php index c194a59d..dc0332a5 100644 --- a/src/OpenSearch/Endpoints/SearchPipeline/Put.php +++ b/src/OpenSearch/Endpoints/SearchPipeline/Put.php @@ -50,7 +50,7 @@ public function getMethod(): string return 'PUT'; } - public function setBody($body): Put + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/SearchTemplate.php b/src/OpenSearch/Endpoints/SearchTemplate.php index f297b183..e5236916 100644 --- a/src/OpenSearch/Endpoints/SearchTemplate.php +++ b/src/OpenSearch/Endpoints/SearchTemplate.php @@ -66,7 +66,7 @@ public function getMethod(): string return isset($this->body) ? 'POST' : 'GET'; } - public function setBody($body): SearchTemplate + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Security/ChangePassword.php b/src/OpenSearch/Endpoints/Security/ChangePassword.php index 12d2f7df..494921f5 100644 --- a/src/OpenSearch/Endpoints/Security/ChangePassword.php +++ b/src/OpenSearch/Endpoints/Security/ChangePassword.php @@ -43,7 +43,7 @@ public function getMethod(): string return 'PUT'; } - public function setBody($body): ChangePassword + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Security/ConfigUpgradePerform.php b/src/OpenSearch/Endpoints/Security/ConfigUpgradePerform.php index ad049f47..cc68e11f 100644 --- a/src/OpenSearch/Endpoints/Security/ConfigUpgradePerform.php +++ b/src/OpenSearch/Endpoints/Security/ConfigUpgradePerform.php @@ -43,7 +43,7 @@ public function getMethod(): string return 'POST'; } - public function setBody($body): ConfigUpgradePerform + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Security/CreateActionGroup.php b/src/OpenSearch/Endpoints/Security/CreateActionGroup.php index 22424f36..dfb844c0 100644 --- a/src/OpenSearch/Endpoints/Security/CreateActionGroup.php +++ b/src/OpenSearch/Endpoints/Security/CreateActionGroup.php @@ -52,7 +52,7 @@ public function getMethod(): string return 'PUT'; } - public function setBody($body): CreateActionGroup + public function setBody($body): static { if (isset($body) !== true) { return $this; @@ -62,7 +62,7 @@ public function setBody($body): CreateActionGroup return $this; } - public function setActionGroup($action_group): CreateActionGroup + public function setActionGroup($action_group): static { if (isset($action_group) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Security/CreateAllowlist.php b/src/OpenSearch/Endpoints/Security/CreateAllowlist.php index 7562eb98..1cccd618 100644 --- a/src/OpenSearch/Endpoints/Security/CreateAllowlist.php +++ b/src/OpenSearch/Endpoints/Security/CreateAllowlist.php @@ -43,7 +43,7 @@ public function getMethod(): string return 'PUT'; } - public function setBody($body): CreateAllowlist + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Security/CreateRole.php b/src/OpenSearch/Endpoints/Security/CreateRole.php index 7402b3e9..5bf8a7b5 100644 --- a/src/OpenSearch/Endpoints/Security/CreateRole.php +++ b/src/OpenSearch/Endpoints/Security/CreateRole.php @@ -52,7 +52,7 @@ public function getMethod(): string return 'PUT'; } - public function setBody($body): CreateRole + public function setBody($body): static { if (isset($body) !== true) { return $this; @@ -62,7 +62,7 @@ public function setBody($body): CreateRole return $this; } - public function setRole($role): CreateRole + public function setRole($role): static { if (isset($role) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Security/CreateRoleMapping.php b/src/OpenSearch/Endpoints/Security/CreateRoleMapping.php index 6fcd61b9..7acbb792 100644 --- a/src/OpenSearch/Endpoints/Security/CreateRoleMapping.php +++ b/src/OpenSearch/Endpoints/Security/CreateRoleMapping.php @@ -52,7 +52,7 @@ public function getMethod(): string return 'PUT'; } - public function setBody($body): CreateRoleMapping + public function setBody($body): static { if (isset($body) !== true) { return $this; @@ -62,7 +62,7 @@ public function setBody($body): CreateRoleMapping return $this; } - public function setRole($role): CreateRoleMapping + public function setRole($role): static { if (isset($role) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Security/CreateTenant.php b/src/OpenSearch/Endpoints/Security/CreateTenant.php index 54ce0ee0..5463d44d 100644 --- a/src/OpenSearch/Endpoints/Security/CreateTenant.php +++ b/src/OpenSearch/Endpoints/Security/CreateTenant.php @@ -52,7 +52,7 @@ public function getMethod(): string return 'PUT'; } - public function setBody($body): CreateTenant + public function setBody($body): static { if (isset($body) !== true) { return $this; @@ -62,7 +62,7 @@ public function setBody($body): CreateTenant return $this; } - public function setTenant($tenant): CreateTenant + public function setTenant($tenant): static { if (isset($tenant) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Security/CreateUpdateTenancyConfig.php b/src/OpenSearch/Endpoints/Security/CreateUpdateTenancyConfig.php index 3d60632f..15574d10 100644 --- a/src/OpenSearch/Endpoints/Security/CreateUpdateTenancyConfig.php +++ b/src/OpenSearch/Endpoints/Security/CreateUpdateTenancyConfig.php @@ -43,7 +43,7 @@ public function getMethod(): string return 'PUT'; } - public function setBody($body): CreateUpdateTenancyConfig + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Security/CreateUser.php b/src/OpenSearch/Endpoints/Security/CreateUser.php index b6934704..a4367738 100644 --- a/src/OpenSearch/Endpoints/Security/CreateUser.php +++ b/src/OpenSearch/Endpoints/Security/CreateUser.php @@ -52,7 +52,7 @@ public function getMethod(): string return 'PUT'; } - public function setBody($body): CreateUser + public function setBody($body): static { if (isset($body) !== true) { return $this; @@ -62,7 +62,7 @@ public function setBody($body): CreateUser return $this; } - public function setUsername($username): CreateUser + public function setUsername($username): static { if (isset($username) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Security/CreateUserLegacy.php b/src/OpenSearch/Endpoints/Security/CreateUserLegacy.php index e3f5ea21..4e2bd51f 100644 --- a/src/OpenSearch/Endpoints/Security/CreateUserLegacy.php +++ b/src/OpenSearch/Endpoints/Security/CreateUserLegacy.php @@ -52,7 +52,7 @@ public function getMethod(): string return 'PUT'; } - public function setBody($body): CreateUserLegacy + public function setBody($body): static { if (isset($body) !== true) { return $this; @@ -62,7 +62,7 @@ public function setBody($body): CreateUserLegacy return $this; } - public function setUsername($username): CreateUserLegacy + public function setUsername($username): static { if (isset($username) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Security/DeleteActionGroup.php b/src/OpenSearch/Endpoints/Security/DeleteActionGroup.php index 4257f964..9645e761 100644 --- a/src/OpenSearch/Endpoints/Security/DeleteActionGroup.php +++ b/src/OpenSearch/Endpoints/Security/DeleteActionGroup.php @@ -52,7 +52,7 @@ public function getMethod(): string return 'DELETE'; } - public function setActionGroup($action_group): DeleteActionGroup + public function setActionGroup($action_group): static { if (isset($action_group) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Security/DeleteDistinguishedName.php b/src/OpenSearch/Endpoints/Security/DeleteDistinguishedName.php index 8e892072..f80c7e9c 100644 --- a/src/OpenSearch/Endpoints/Security/DeleteDistinguishedName.php +++ b/src/OpenSearch/Endpoints/Security/DeleteDistinguishedName.php @@ -52,7 +52,7 @@ public function getMethod(): string return 'DELETE'; } - public function setClusterName($cluster_name): DeleteDistinguishedName + public function setClusterName($cluster_name): static { if (isset($cluster_name) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Security/DeleteRole.php b/src/OpenSearch/Endpoints/Security/DeleteRole.php index cea84504..aa906d66 100644 --- a/src/OpenSearch/Endpoints/Security/DeleteRole.php +++ b/src/OpenSearch/Endpoints/Security/DeleteRole.php @@ -52,7 +52,7 @@ public function getMethod(): string return 'DELETE'; } - public function setRole($role): DeleteRole + public function setRole($role): static { if (isset($role) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Security/DeleteRoleMapping.php b/src/OpenSearch/Endpoints/Security/DeleteRoleMapping.php index d1ec1f13..67b6d54a 100644 --- a/src/OpenSearch/Endpoints/Security/DeleteRoleMapping.php +++ b/src/OpenSearch/Endpoints/Security/DeleteRoleMapping.php @@ -52,7 +52,7 @@ public function getMethod(): string return 'DELETE'; } - public function setRole($role): DeleteRoleMapping + public function setRole($role): static { if (isset($role) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Security/DeleteTenant.php b/src/OpenSearch/Endpoints/Security/DeleteTenant.php index be3a5d84..d2e4d89e 100644 --- a/src/OpenSearch/Endpoints/Security/DeleteTenant.php +++ b/src/OpenSearch/Endpoints/Security/DeleteTenant.php @@ -52,7 +52,7 @@ public function getMethod(): string return 'DELETE'; } - public function setTenant($tenant): DeleteTenant + public function setTenant($tenant): static { if (isset($tenant) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Security/DeleteUser.php b/src/OpenSearch/Endpoints/Security/DeleteUser.php index 639dc4a9..10c3b593 100644 --- a/src/OpenSearch/Endpoints/Security/DeleteUser.php +++ b/src/OpenSearch/Endpoints/Security/DeleteUser.php @@ -52,7 +52,7 @@ public function getMethod(): string return 'DELETE'; } - public function setUsername($username): DeleteUser + public function setUsername($username): static { if (isset($username) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Security/DeleteUserLegacy.php b/src/OpenSearch/Endpoints/Security/DeleteUserLegacy.php index 590494f4..cdaf7315 100644 --- a/src/OpenSearch/Endpoints/Security/DeleteUserLegacy.php +++ b/src/OpenSearch/Endpoints/Security/DeleteUserLegacy.php @@ -52,7 +52,7 @@ public function getMethod(): string return 'DELETE'; } - public function setUsername($username): DeleteUserLegacy + public function setUsername($username): static { if (isset($username) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Security/GenerateOboToken.php b/src/OpenSearch/Endpoints/Security/GenerateOboToken.php index d9855ae2..503d3021 100644 --- a/src/OpenSearch/Endpoints/Security/GenerateOboToken.php +++ b/src/OpenSearch/Endpoints/Security/GenerateOboToken.php @@ -43,7 +43,7 @@ public function getMethod(): string return 'POST'; } - public function setBody($body): GenerateOboToken + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Security/GenerateUserToken.php b/src/OpenSearch/Endpoints/Security/GenerateUserToken.php index 476d259d..16d21456 100644 --- a/src/OpenSearch/Endpoints/Security/GenerateUserToken.php +++ b/src/OpenSearch/Endpoints/Security/GenerateUserToken.php @@ -52,7 +52,7 @@ public function getMethod(): string return 'POST'; } - public function setUsername($username): GenerateUserToken + public function setUsername($username): static { if (isset($username) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Security/GenerateUserTokenLegacy.php b/src/OpenSearch/Endpoints/Security/GenerateUserTokenLegacy.php index b62ecc6e..4ebdfecd 100644 --- a/src/OpenSearch/Endpoints/Security/GenerateUserTokenLegacy.php +++ b/src/OpenSearch/Endpoints/Security/GenerateUserTokenLegacy.php @@ -52,7 +52,7 @@ public function getMethod(): string return 'POST'; } - public function setUsername($username): GenerateUserTokenLegacy + public function setUsername($username): static { if (isset($username) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Security/GetActionGroup.php b/src/OpenSearch/Endpoints/Security/GetActionGroup.php index 2e117de7..c0c51c54 100644 --- a/src/OpenSearch/Endpoints/Security/GetActionGroup.php +++ b/src/OpenSearch/Endpoints/Security/GetActionGroup.php @@ -52,7 +52,7 @@ public function getMethod(): string return 'GET'; } - public function setActionGroup($action_group): GetActionGroup + public function setActionGroup($action_group): static { if (isset($action_group) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Security/GetDistinguishedName.php b/src/OpenSearch/Endpoints/Security/GetDistinguishedName.php index 29ebf9fa..e7dd3ee0 100644 --- a/src/OpenSearch/Endpoints/Security/GetDistinguishedName.php +++ b/src/OpenSearch/Endpoints/Security/GetDistinguishedName.php @@ -53,7 +53,7 @@ public function getMethod(): string return 'GET'; } - public function setClusterName($cluster_name): GetDistinguishedName + public function setClusterName($cluster_name): static { if (isset($cluster_name) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Security/GetNodeCertificates.php b/src/OpenSearch/Endpoints/Security/GetNodeCertificates.php index 7d66df31..a0013349 100644 --- a/src/OpenSearch/Endpoints/Security/GetNodeCertificates.php +++ b/src/OpenSearch/Endpoints/Security/GetNodeCertificates.php @@ -52,7 +52,7 @@ public function getMethod(): string return 'GET'; } - public function setNodeId($node_id): GetNodeCertificates + public function setNodeId($node_id): static { if (isset($node_id) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Security/GetRole.php b/src/OpenSearch/Endpoints/Security/GetRole.php index 21db28ce..de9dfc71 100644 --- a/src/OpenSearch/Endpoints/Security/GetRole.php +++ b/src/OpenSearch/Endpoints/Security/GetRole.php @@ -52,7 +52,7 @@ public function getMethod(): string return 'GET'; } - public function setRole($role): GetRole + public function setRole($role): static { if (isset($role) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Security/GetRoleMapping.php b/src/OpenSearch/Endpoints/Security/GetRoleMapping.php index 34656ac7..b58d74ec 100644 --- a/src/OpenSearch/Endpoints/Security/GetRoleMapping.php +++ b/src/OpenSearch/Endpoints/Security/GetRoleMapping.php @@ -52,7 +52,7 @@ public function getMethod(): string return 'GET'; } - public function setRole($role): GetRoleMapping + public function setRole($role): static { if (isset($role) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Security/GetTenant.php b/src/OpenSearch/Endpoints/Security/GetTenant.php index bbb46f22..dcfd3c00 100644 --- a/src/OpenSearch/Endpoints/Security/GetTenant.php +++ b/src/OpenSearch/Endpoints/Security/GetTenant.php @@ -52,7 +52,7 @@ public function getMethod(): string return 'GET'; } - public function setTenant($tenant): GetTenant + public function setTenant($tenant): static { if (isset($tenant) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Security/GetUser.php b/src/OpenSearch/Endpoints/Security/GetUser.php index 71616462..ec67393a 100644 --- a/src/OpenSearch/Endpoints/Security/GetUser.php +++ b/src/OpenSearch/Endpoints/Security/GetUser.php @@ -52,7 +52,7 @@ public function getMethod(): string return 'GET'; } - public function setUsername($username): GetUser + public function setUsername($username): static { if (isset($username) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Security/GetUserLegacy.php b/src/OpenSearch/Endpoints/Security/GetUserLegacy.php index 285bb353..f58bdf4d 100644 --- a/src/OpenSearch/Endpoints/Security/GetUserLegacy.php +++ b/src/OpenSearch/Endpoints/Security/GetUserLegacy.php @@ -52,7 +52,7 @@ public function getMethod(): string return 'GET'; } - public function setUsername($username): GetUserLegacy + public function setUsername($username): static { if (isset($username) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Security/PatchActionGroup.php b/src/OpenSearch/Endpoints/Security/PatchActionGroup.php index 23a7ae15..35e737aa 100644 --- a/src/OpenSearch/Endpoints/Security/PatchActionGroup.php +++ b/src/OpenSearch/Endpoints/Security/PatchActionGroup.php @@ -52,7 +52,7 @@ public function getMethod(): string return 'PATCH'; } - public function setBody($body): PatchActionGroup + public function setBody($body): static { if (isset($body) !== true) { return $this; @@ -62,7 +62,7 @@ public function setBody($body): PatchActionGroup return $this; } - public function setActionGroup($action_group): PatchActionGroup + public function setActionGroup($action_group): static { if (isset($action_group) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Security/PatchActionGroups.php b/src/OpenSearch/Endpoints/Security/PatchActionGroups.php index 1934ff7b..53e84258 100644 --- a/src/OpenSearch/Endpoints/Security/PatchActionGroups.php +++ b/src/OpenSearch/Endpoints/Security/PatchActionGroups.php @@ -43,7 +43,7 @@ public function getMethod(): string return 'PATCH'; } - public function setBody($body): PatchActionGroups + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Security/PatchAllowlist.php b/src/OpenSearch/Endpoints/Security/PatchAllowlist.php index 1bf9c04f..bbd76c6f 100644 --- a/src/OpenSearch/Endpoints/Security/PatchAllowlist.php +++ b/src/OpenSearch/Endpoints/Security/PatchAllowlist.php @@ -43,7 +43,7 @@ public function getMethod(): string return 'PATCH'; } - public function setBody($body): PatchAllowlist + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Security/PatchAuditConfiguration.php b/src/OpenSearch/Endpoints/Security/PatchAuditConfiguration.php index b20b9d43..3bcd2b91 100644 --- a/src/OpenSearch/Endpoints/Security/PatchAuditConfiguration.php +++ b/src/OpenSearch/Endpoints/Security/PatchAuditConfiguration.php @@ -43,7 +43,7 @@ public function getMethod(): string return 'PATCH'; } - public function setBody($body): PatchAuditConfiguration + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Security/PatchConfiguration.php b/src/OpenSearch/Endpoints/Security/PatchConfiguration.php index a1ab9a69..7fb935e2 100644 --- a/src/OpenSearch/Endpoints/Security/PatchConfiguration.php +++ b/src/OpenSearch/Endpoints/Security/PatchConfiguration.php @@ -43,7 +43,7 @@ public function getMethod(): string return 'PATCH'; } - public function setBody($body): PatchConfiguration + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Security/PatchDistinguishedName.php b/src/OpenSearch/Endpoints/Security/PatchDistinguishedName.php index 2a25baab..419d22cb 100644 --- a/src/OpenSearch/Endpoints/Security/PatchDistinguishedName.php +++ b/src/OpenSearch/Endpoints/Security/PatchDistinguishedName.php @@ -52,7 +52,7 @@ public function getMethod(): string return 'PATCH'; } - public function setBody($body): PatchDistinguishedName + public function setBody($body): static { if (isset($body) !== true) { return $this; @@ -62,7 +62,7 @@ public function setBody($body): PatchDistinguishedName return $this; } - public function setClusterName($cluster_name): PatchDistinguishedName + public function setClusterName($cluster_name): static { if (isset($cluster_name) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Security/PatchDistinguishedNames.php b/src/OpenSearch/Endpoints/Security/PatchDistinguishedNames.php index 26e488a3..280dd322 100644 --- a/src/OpenSearch/Endpoints/Security/PatchDistinguishedNames.php +++ b/src/OpenSearch/Endpoints/Security/PatchDistinguishedNames.php @@ -43,7 +43,7 @@ public function getMethod(): string return 'PATCH'; } - public function setBody($body): PatchDistinguishedNames + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Security/PatchRole.php b/src/OpenSearch/Endpoints/Security/PatchRole.php index 5d285ec3..432817e7 100644 --- a/src/OpenSearch/Endpoints/Security/PatchRole.php +++ b/src/OpenSearch/Endpoints/Security/PatchRole.php @@ -52,7 +52,7 @@ public function getMethod(): string return 'PATCH'; } - public function setBody($body): PatchRole + public function setBody($body): static { if (isset($body) !== true) { return $this; @@ -62,7 +62,7 @@ public function setBody($body): PatchRole return $this; } - public function setRole($role): PatchRole + public function setRole($role): static { if (isset($role) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Security/PatchRoleMapping.php b/src/OpenSearch/Endpoints/Security/PatchRoleMapping.php index f1e9bf4f..b593f2bc 100644 --- a/src/OpenSearch/Endpoints/Security/PatchRoleMapping.php +++ b/src/OpenSearch/Endpoints/Security/PatchRoleMapping.php @@ -52,7 +52,7 @@ public function getMethod(): string return 'PATCH'; } - public function setBody($body): PatchRoleMapping + public function setBody($body): static { if (isset($body) !== true) { return $this; @@ -62,7 +62,7 @@ public function setBody($body): PatchRoleMapping return $this; } - public function setRole($role): PatchRoleMapping + public function setRole($role): static { if (isset($role) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Security/PatchRoleMappings.php b/src/OpenSearch/Endpoints/Security/PatchRoleMappings.php index 0282e913..29ef48b5 100644 --- a/src/OpenSearch/Endpoints/Security/PatchRoleMappings.php +++ b/src/OpenSearch/Endpoints/Security/PatchRoleMappings.php @@ -43,7 +43,7 @@ public function getMethod(): string return 'PATCH'; } - public function setBody($body): PatchRoleMappings + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Security/PatchRoles.php b/src/OpenSearch/Endpoints/Security/PatchRoles.php index 66c12962..cb1bb3b4 100644 --- a/src/OpenSearch/Endpoints/Security/PatchRoles.php +++ b/src/OpenSearch/Endpoints/Security/PatchRoles.php @@ -43,7 +43,7 @@ public function getMethod(): string return 'PATCH'; } - public function setBody($body): PatchRoles + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Security/PatchTenant.php b/src/OpenSearch/Endpoints/Security/PatchTenant.php index b7efa65d..a3902d56 100644 --- a/src/OpenSearch/Endpoints/Security/PatchTenant.php +++ b/src/OpenSearch/Endpoints/Security/PatchTenant.php @@ -52,7 +52,7 @@ public function getMethod(): string return 'PATCH'; } - public function setBody($body): PatchTenant + public function setBody($body): static { if (isset($body) !== true) { return $this; @@ -62,7 +62,7 @@ public function setBody($body): PatchTenant return $this; } - public function setTenant($tenant): PatchTenant + public function setTenant($tenant): static { if (isset($tenant) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Security/PatchTenants.php b/src/OpenSearch/Endpoints/Security/PatchTenants.php index 41a3dbc2..1f6b71a8 100644 --- a/src/OpenSearch/Endpoints/Security/PatchTenants.php +++ b/src/OpenSearch/Endpoints/Security/PatchTenants.php @@ -43,7 +43,7 @@ public function getMethod(): string return 'PATCH'; } - public function setBody($body): PatchTenants + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Security/PatchUser.php b/src/OpenSearch/Endpoints/Security/PatchUser.php index 14738465..b15e8471 100644 --- a/src/OpenSearch/Endpoints/Security/PatchUser.php +++ b/src/OpenSearch/Endpoints/Security/PatchUser.php @@ -52,7 +52,7 @@ public function getMethod(): string return 'PATCH'; } - public function setBody($body): PatchUser + public function setBody($body): static { if (isset($body) !== true) { return $this; @@ -62,7 +62,7 @@ public function setBody($body): PatchUser return $this; } - public function setUsername($username): PatchUser + public function setUsername($username): static { if (isset($username) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Security/PatchUsers.php b/src/OpenSearch/Endpoints/Security/PatchUsers.php index dafff0a4..8b61f658 100644 --- a/src/OpenSearch/Endpoints/Security/PatchUsers.php +++ b/src/OpenSearch/Endpoints/Security/PatchUsers.php @@ -43,7 +43,7 @@ public function getMethod(): string return 'PATCH'; } - public function setBody($body): PatchUsers + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Security/UpdateAuditConfiguration.php b/src/OpenSearch/Endpoints/Security/UpdateAuditConfiguration.php index 00ff896f..c5e6824a 100644 --- a/src/OpenSearch/Endpoints/Security/UpdateAuditConfiguration.php +++ b/src/OpenSearch/Endpoints/Security/UpdateAuditConfiguration.php @@ -43,7 +43,7 @@ public function getMethod(): string return 'PUT'; } - public function setBody($body): UpdateAuditConfiguration + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Security/UpdateConfiguration.php b/src/OpenSearch/Endpoints/Security/UpdateConfiguration.php index b805d6d5..b0862fd1 100644 --- a/src/OpenSearch/Endpoints/Security/UpdateConfiguration.php +++ b/src/OpenSearch/Endpoints/Security/UpdateConfiguration.php @@ -43,7 +43,7 @@ public function getMethod(): string return 'PUT'; } - public function setBody($body): UpdateConfiguration + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Security/UpdateDistinguishedName.php b/src/OpenSearch/Endpoints/Security/UpdateDistinguishedName.php index b78551c6..25d8f138 100644 --- a/src/OpenSearch/Endpoints/Security/UpdateDistinguishedName.php +++ b/src/OpenSearch/Endpoints/Security/UpdateDistinguishedName.php @@ -52,7 +52,7 @@ public function getMethod(): string return 'PUT'; } - public function setBody($body): UpdateDistinguishedName + public function setBody($body): static { if (isset($body) !== true) { return $this; @@ -62,7 +62,7 @@ public function setBody($body): UpdateDistinguishedName return $this; } - public function setClusterName($cluster_name): UpdateDistinguishedName + public function setClusterName($cluster_name): static { if (isset($cluster_name) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Snapshot/CleanupRepository.php b/src/OpenSearch/Endpoints/Snapshot/CleanupRepository.php index 4f7b5d72..33800a06 100644 --- a/src/OpenSearch/Endpoints/Snapshot/CleanupRepository.php +++ b/src/OpenSearch/Endpoints/Snapshot/CleanupRepository.php @@ -59,7 +59,7 @@ public function getMethod(): string return 'POST'; } - public function setRepository($repository): CleanupRepository + public function setRepository($repository): static { if (isset($repository) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Snapshot/CloneSnapshot.php b/src/OpenSearch/Endpoints/Snapshot/CloneSnapshot.php index 9808f55c..2d452330 100644 --- a/src/OpenSearch/Endpoints/Snapshot/CloneSnapshot.php +++ b/src/OpenSearch/Endpoints/Snapshot/CloneSnapshot.php @@ -62,7 +62,7 @@ public function getMethod(): string return 'PUT'; } - public function setBody($body): CloneSnapshot + public function setBody($body): static { if (isset($body) !== true) { return $this; @@ -72,7 +72,7 @@ public function setBody($body): CloneSnapshot return $this; } - public function setRepository($repository): CloneSnapshot + public function setRepository($repository): static { if (isset($repository) !== true) { return $this; @@ -82,7 +82,7 @@ public function setRepository($repository): CloneSnapshot return $this; } - public function setSnapshot($snapshot): CloneSnapshot + public function setSnapshot($snapshot): static { if (isset($snapshot) !== true) { return $this; @@ -92,7 +92,7 @@ public function setSnapshot($snapshot): CloneSnapshot return $this; } - public function setTargetSnapshot($target_snapshot): CloneSnapshot + public function setTargetSnapshot($target_snapshot): static { if (isset($target_snapshot) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Snapshot/Create.php b/src/OpenSearch/Endpoints/Snapshot/Create.php index e46cbd48..63c5ea70 100644 --- a/src/OpenSearch/Endpoints/Snapshot/Create.php +++ b/src/OpenSearch/Endpoints/Snapshot/Create.php @@ -61,7 +61,7 @@ public function getMethod(): string return 'PUT'; } - public function setBody($body): Create + public function setBody($body): static { if (isset($body) !== true) { return $this; @@ -71,7 +71,7 @@ public function setBody($body): Create return $this; } - public function setRepository($repository): Create + public function setRepository($repository): static { if (isset($repository) !== true) { return $this; @@ -81,7 +81,7 @@ public function setRepository($repository): Create return $this; } - public function setSnapshot($snapshot): Create + public function setSnapshot($snapshot): static { if (isset($snapshot) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Snapshot/CreateRepository.php b/src/OpenSearch/Endpoints/Snapshot/CreateRepository.php index 1fef0bed..5d5f7ef6 100644 --- a/src/OpenSearch/Endpoints/Snapshot/CreateRepository.php +++ b/src/OpenSearch/Endpoints/Snapshot/CreateRepository.php @@ -60,7 +60,7 @@ public function getMethod(): string return 'PUT'; } - public function setBody($body): CreateRepository + public function setBody($body): static { if (isset($body) !== true) { return $this; @@ -70,7 +70,7 @@ public function setBody($body): CreateRepository return $this; } - public function setRepository($repository): CreateRepository + public function setRepository($repository): static { if (isset($repository) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Snapshot/Delete.php b/src/OpenSearch/Endpoints/Snapshot/Delete.php index f543d1a6..9dd2492a 100644 --- a/src/OpenSearch/Endpoints/Snapshot/Delete.php +++ b/src/OpenSearch/Endpoints/Snapshot/Delete.php @@ -60,7 +60,7 @@ public function getMethod(): string return 'DELETE'; } - public function setRepository($repository): Delete + public function setRepository($repository): static { if (isset($repository) !== true) { return $this; @@ -70,7 +70,7 @@ public function setRepository($repository): Delete return $this; } - public function setSnapshot($snapshot): Delete + public function setSnapshot($snapshot): static { if (isset($snapshot) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Snapshot/DeleteRepository.php b/src/OpenSearch/Endpoints/Snapshot/DeleteRepository.php index b4f7bd36..8e84c488 100644 --- a/src/OpenSearch/Endpoints/Snapshot/DeleteRepository.php +++ b/src/OpenSearch/Endpoints/Snapshot/DeleteRepository.php @@ -59,7 +59,7 @@ public function getMethod(): string return 'DELETE'; } - public function setRepository($repository): DeleteRepository + public function setRepository($repository): static { if (isset($repository) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Snapshot/Get.php b/src/OpenSearch/Endpoints/Snapshot/Get.php index 77facdee..6951e15f 100644 --- a/src/OpenSearch/Endpoints/Snapshot/Get.php +++ b/src/OpenSearch/Endpoints/Snapshot/Get.php @@ -62,7 +62,7 @@ public function getMethod(): string return 'GET'; } - public function setRepository($repository): Get + public function setRepository($repository): static { if (isset($repository) !== true) { return $this; @@ -72,7 +72,7 @@ public function setRepository($repository): Get return $this; } - public function setSnapshot($snapshot): Get + public function setSnapshot($snapshot): static { if (isset($snapshot) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Snapshot/GetRepository.php b/src/OpenSearch/Endpoints/Snapshot/GetRepository.php index d9b3442f..c4603a28 100644 --- a/src/OpenSearch/Endpoints/Snapshot/GetRepository.php +++ b/src/OpenSearch/Endpoints/Snapshot/GetRepository.php @@ -58,7 +58,7 @@ public function getMethod(): string return 'GET'; } - public function setRepository($repository): GetRepository + public function setRepository($repository): static { if (isset($repository) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Snapshot/Restore.php b/src/OpenSearch/Endpoints/Snapshot/Restore.php index 575cc343..9c30e67a 100644 --- a/src/OpenSearch/Endpoints/Snapshot/Restore.php +++ b/src/OpenSearch/Endpoints/Snapshot/Restore.php @@ -61,7 +61,7 @@ public function getMethod(): string return 'POST'; } - public function setBody($body): Restore + public function setBody($body): static { if (isset($body) !== true) { return $this; @@ -71,7 +71,7 @@ public function setBody($body): Restore return $this; } - public function setRepository($repository): Restore + public function setRepository($repository): static { if (isset($repository) !== true) { return $this; @@ -81,7 +81,7 @@ public function setRepository($repository): Restore return $this; } - public function setSnapshot($snapshot): Restore + public function setSnapshot($snapshot): static { if (isset($snapshot) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Snapshot/Status.php b/src/OpenSearch/Endpoints/Snapshot/Status.php index 183272cb..d894ce8c 100644 --- a/src/OpenSearch/Endpoints/Snapshot/Status.php +++ b/src/OpenSearch/Endpoints/Snapshot/Status.php @@ -63,7 +63,7 @@ public function getMethod(): string return 'GET'; } - public function setRepository($repository): Status + public function setRepository($repository): static { if (isset($repository) !== true) { return $this; @@ -73,7 +73,7 @@ public function setRepository($repository): Status return $this; } - public function setSnapshot($snapshot): Status + public function setSnapshot($snapshot): static { if (isset($snapshot) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Snapshot/VerifyRepository.php b/src/OpenSearch/Endpoints/Snapshot/VerifyRepository.php index 6203bc29..4c8b0f87 100644 --- a/src/OpenSearch/Endpoints/Snapshot/VerifyRepository.php +++ b/src/OpenSearch/Endpoints/Snapshot/VerifyRepository.php @@ -59,7 +59,7 @@ public function getMethod(): string return 'POST'; } - public function setRepository($repository): VerifyRepository + public function setRepository($repository): static { if (isset($repository) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Sql/Close.php b/src/OpenSearch/Endpoints/Sql/Close.php index 2ef15e00..dd9f8d32 100644 --- a/src/OpenSearch/Endpoints/Sql/Close.php +++ b/src/OpenSearch/Endpoints/Sql/Close.php @@ -45,7 +45,7 @@ public function getMethod(): string return 'POST'; } - public function setBody($body): Close + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Sql/Explain.php b/src/OpenSearch/Endpoints/Sql/Explain.php index 6291c3b3..c7380165 100644 --- a/src/OpenSearch/Endpoints/Sql/Explain.php +++ b/src/OpenSearch/Endpoints/Sql/Explain.php @@ -45,7 +45,7 @@ public function getMethod(): string return 'POST'; } - public function setBody($body): Explain + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Sql/PostStats.php b/src/OpenSearch/Endpoints/Sql/PostStats.php index 744ae997..4e1073dd 100644 --- a/src/OpenSearch/Endpoints/Sql/PostStats.php +++ b/src/OpenSearch/Endpoints/Sql/PostStats.php @@ -45,7 +45,7 @@ public function getMethod(): string return 'POST'; } - public function setBody($body): PostStats + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Sql/Query.php b/src/OpenSearch/Endpoints/Sql/Query.php index c92970e0..47d3699e 100644 --- a/src/OpenSearch/Endpoints/Sql/Query.php +++ b/src/OpenSearch/Endpoints/Sql/Query.php @@ -45,7 +45,7 @@ public function getMethod(): string return 'POST'; } - public function setBody($body): Query + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Sql/Settings.php b/src/OpenSearch/Endpoints/Sql/Settings.php index 78289826..5872d364 100644 --- a/src/OpenSearch/Endpoints/Sql/Settings.php +++ b/src/OpenSearch/Endpoints/Sql/Settings.php @@ -44,7 +44,7 @@ public function getMethod(): string return 'PUT'; } - public function setBody($body): Settings + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Tasks/Cancel.php b/src/OpenSearch/Endpoints/Tasks/Cancel.php index 83deffe9..2d578c53 100644 --- a/src/OpenSearch/Endpoints/Tasks/Cancel.php +++ b/src/OpenSearch/Endpoints/Tasks/Cancel.php @@ -59,7 +59,7 @@ public function getMethod(): string return 'POST'; } - public function setTaskId($task_id): Cancel + public function setTaskId($task_id): static { if (isset($task_id) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Tasks/Get.php b/src/OpenSearch/Endpoints/Tasks/Get.php index df8e113d..198941ab 100644 --- a/src/OpenSearch/Endpoints/Tasks/Get.php +++ b/src/OpenSearch/Endpoints/Tasks/Get.php @@ -58,7 +58,7 @@ public function getMethod(): string return 'GET'; } - public function setTaskId($task_id): Get + public function setTaskId($task_id): static { if (isset($task_id) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/TermVectors.php b/src/OpenSearch/Endpoints/TermVectors.php index c06aefdb..7a35caf1 100644 --- a/src/OpenSearch/Endpoints/TermVectors.php +++ b/src/OpenSearch/Endpoints/TermVectors.php @@ -71,7 +71,7 @@ public function getMethod(): string return isset($this->body) ? 'POST' : 'GET'; } - public function setBody($body): TermVectors + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Transforms/Preview.php b/src/OpenSearch/Endpoints/Transforms/Preview.php index ad9dc44a..167422e5 100644 --- a/src/OpenSearch/Endpoints/Transforms/Preview.php +++ b/src/OpenSearch/Endpoints/Transforms/Preview.php @@ -43,7 +43,7 @@ public function getMethod(): string return 'POST'; } - public function setBody($body): Preview + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Transforms/Put.php b/src/OpenSearch/Endpoints/Transforms/Put.php index 68c37191..5230fc88 100644 --- a/src/OpenSearch/Endpoints/Transforms/Put.php +++ b/src/OpenSearch/Endpoints/Transforms/Put.php @@ -50,7 +50,7 @@ public function getMethod(): string return 'PUT'; } - public function setBody($body): Put + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Update.php b/src/OpenSearch/Endpoints/Update.php index eedb3019..a45d4ee2 100644 --- a/src/OpenSearch/Endpoints/Update.php +++ b/src/OpenSearch/Endpoints/Update.php @@ -74,7 +74,7 @@ public function getMethod(): string return 'POST'; } - public function setBody($body): Update + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/UpdateByQuery.php b/src/OpenSearch/Endpoints/UpdateByQuery.php index f08a450e..627176dd 100644 --- a/src/OpenSearch/Endpoints/UpdateByQuery.php +++ b/src/OpenSearch/Endpoints/UpdateByQuery.php @@ -90,7 +90,7 @@ public function getMethod(): string return 'POST'; } - public function setBody($body): UpdateByQuery + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/UpdateByQueryRethrottle.php b/src/OpenSearch/Endpoints/UpdateByQueryRethrottle.php index 37d8f7ff..1281a1ab 100644 --- a/src/OpenSearch/Endpoints/UpdateByQueryRethrottle.php +++ b/src/OpenSearch/Endpoints/UpdateByQueryRethrottle.php @@ -59,7 +59,7 @@ public function getMethod(): string return 'POST'; } - public function setTaskId($task_id): UpdateByQueryRethrottle + public function setTaskId($task_id): static { if (isset($task_id) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Wlm/CreateQueryGroup.php b/src/OpenSearch/Endpoints/Wlm/CreateQueryGroup.php index 9dd6bcbe..299d9825 100644 --- a/src/OpenSearch/Endpoints/Wlm/CreateQueryGroup.php +++ b/src/OpenSearch/Endpoints/Wlm/CreateQueryGroup.php @@ -43,7 +43,7 @@ public function getMethod(): string return 'PUT'; } - public function setBody($body): CreateQueryGroup + public function setBody($body): static { if (isset($body) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Wlm/DeleteQueryGroup.php b/src/OpenSearch/Endpoints/Wlm/DeleteQueryGroup.php index a5a6bdf9..8a7cda79 100644 --- a/src/OpenSearch/Endpoints/Wlm/DeleteQueryGroup.php +++ b/src/OpenSearch/Endpoints/Wlm/DeleteQueryGroup.php @@ -50,7 +50,7 @@ public function getMethod(): string return 'DELETE'; } - public function setName($name): DeleteQueryGroup + public function setName($name): static { if (isset($name) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Wlm/GetQueryGroup.php b/src/OpenSearch/Endpoints/Wlm/GetQueryGroup.php index 506c83c5..5db7e031 100644 --- a/src/OpenSearch/Endpoints/Wlm/GetQueryGroup.php +++ b/src/OpenSearch/Endpoints/Wlm/GetQueryGroup.php @@ -49,7 +49,7 @@ public function getMethod(): string return 'GET'; } - public function setName($name): GetQueryGroup + public function setName($name): static { if (isset($name) !== true) { return $this; diff --git a/src/OpenSearch/Endpoints/Wlm/UpdateQueryGroup.php b/src/OpenSearch/Endpoints/Wlm/UpdateQueryGroup.php index beb335f1..2c437c42 100644 --- a/src/OpenSearch/Endpoints/Wlm/UpdateQueryGroup.php +++ b/src/OpenSearch/Endpoints/Wlm/UpdateQueryGroup.php @@ -50,7 +50,7 @@ public function getMethod(): string return 'PUT'; } - public function setBody($body): UpdateQueryGroup + public function setBody($body): static { if (isset($body) !== true) { return $this; @@ -60,7 +60,7 @@ public function setBody($body): UpdateQueryGroup return $this; } - public function setName($name): UpdateQueryGroup + public function setName($name): static { if (isset($name) !== true) { return $this;