opensearch-ruby 4.0.0.pre.beta.1 → 4.0.0.pre.beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/USER_GUIDE.md +23 -5
- data/lib/opensearch/api/actions/asynchronous_search/delete.rb +2 -4
- data/lib/opensearch/api/actions/asynchronous_search/get.rb +1 -1
- data/lib/opensearch/api/actions/asynchronous_search/search.rb +4 -4
- data/lib/opensearch/api/actions/asynchronous_search/stats.rb +1 -1
- data/lib/opensearch/api/actions/cat/aliases.rb +8 -8
- data/lib/opensearch/api/actions/cat/all_pit_segments.rb +7 -7
- data/lib/opensearch/api/actions/cat/allocation.rb +10 -10
- data/lib/opensearch/api/actions/cat/cluster_manager.rb +8 -8
- data/lib/opensearch/api/actions/cat/count.rb +6 -6
- data/lib/opensearch/api/actions/cat/fielddata.rb +7 -7
- data/lib/opensearch/api/actions/cat/health.rb +6 -6
- data/lib/opensearch/api/actions/cat/indices.rb +16 -16
- data/lib/opensearch/api/actions/cat/master.rb +8 -8
- data/lib/opensearch/api/actions/cat/nodeattrs.rb +8 -8
- data/lib/opensearch/api/actions/cat/nodes.rb +12 -12
- data/lib/opensearch/api/actions/cat/pending_tasks.rb +10 -10
- data/lib/opensearch/api/actions/cat/pit_segments.rb +7 -7
- data/lib/opensearch/api/actions/cat/plugins.rb +9 -9
- data/lib/opensearch/api/actions/cat/recovery.rb +10 -10
- data/lib/opensearch/api/actions/cat/repositories.rb +9 -9
- data/lib/opensearch/api/actions/cat/segment_replication.rb +19 -18
- data/lib/opensearch/api/actions/cat/segments.rb +8 -8
- data/lib/opensearch/api/actions/cat/shards.rb +11 -11
- data/lib/opensearch/api/actions/cat/snapshots.rb +10 -10
- data/lib/opensearch/api/actions/cat/tasks.rb +9 -9
- data/lib/opensearch/api/actions/cat/templates.rb +9 -9
- data/lib/opensearch/api/actions/cat/thread_pool.rb +9 -9
- data/lib/opensearch/api/actions/clear_scroll.rb +1 -3
- data/lib/opensearch/api/actions/cluster/allocation_explain.rb +4 -4
- data/lib/opensearch/api/actions/cluster/delete_component_template.rb +5 -7
- data/lib/opensearch/api/actions/cluster/delete_decommission_awareness.rb +2 -4
- data/lib/opensearch/api/actions/cluster/delete_voting_config_exclusions.rb +3 -5
- data/lib/opensearch/api/actions/cluster/delete_weighted_routing.rb +1 -3
- data/lib/opensearch/api/actions/cluster/exists_component_template.rb +4 -4
- data/lib/opensearch/api/actions/cluster/get_component_template.rb +6 -4
- data/lib/opensearch/api/actions/cluster/get_decommission_awareness.rb +2 -2
- data/lib/opensearch/api/actions/cluster/get_settings.rb +5 -5
- data/lib/opensearch/api/actions/cluster/get_weighted_routing.rb +1 -1
- data/lib/opensearch/api/actions/cluster/health.rb +14 -14
- data/lib/opensearch/api/actions/cluster/pending_tasks.rb +5 -5
- data/lib/opensearch/api/actions/cluster/post_voting_config_exclusions.rb +4 -4
- data/lib/opensearch/api/actions/cluster/put_component_template.rb +6 -6
- data/lib/opensearch/api/actions/cluster/put_decommission_awareness.rb +3 -3
- data/lib/opensearch/api/actions/cluster/put_settings.rb +5 -5
- data/lib/opensearch/api/actions/cluster/put_weighted_routing.rb +1 -1
- data/lib/opensearch/api/actions/cluster/reroute.rb +6 -6
- data/lib/opensearch/api/actions/cluster/state.rb +10 -10
- data/lib/opensearch/api/actions/cluster/stats.rb +5 -5
- data/lib/opensearch/api/actions/count.rb +1 -1
- data/lib/opensearch/api/actions/dangling_indices/delete_dangling_index.rb +1 -3
- data/lib/opensearch/api/actions/delete.rb +1 -3
- data/lib/opensearch/api/actions/delete_all_pits.rb +1 -3
- data/lib/opensearch/api/actions/delete_by_query.rb +2 -2
- data/lib/opensearch/api/actions/delete_by_query_rethrottle.rb +1 -1
- data/lib/opensearch/api/actions/delete_pit.rb +1 -3
- data/lib/opensearch/api/actions/delete_script.rb +1 -3
- data/lib/opensearch/api/actions/flow_framework/delete.rb +1 -3
- data/lib/opensearch/api/actions/indices/delete.rb +1 -3
- data/lib/opensearch/api/actions/indices/delete_alias.rb +1 -3
- data/lib/opensearch/api/actions/indices/delete_data_stream.rb +1 -3
- data/lib/opensearch/api/actions/indices/delete_index_template.rb +1 -3
- data/lib/opensearch/api/actions/indices/delete_template.rb +1 -3
- data/lib/opensearch/api/actions/indices/forcemerge.rb +1 -1
- data/lib/opensearch/api/actions/indices/put_template.rb +1 -1
- data/lib/opensearch/api/actions/indices/upgrade.rb +0 -1
- data/lib/opensearch/api/actions/ingest/delete_pipeline.rb +5 -7
- data/lib/opensearch/api/actions/ingest/get_pipeline.rb +3 -3
- data/lib/opensearch/api/actions/ingest/processor_grok.rb +2 -2
- data/lib/opensearch/api/actions/ingest/put_pipeline.rb +5 -5
- data/lib/opensearch/api/actions/ingest/simulate.rb +3 -3
- data/lib/opensearch/api/actions/ism/delete_policy.rb +1 -3
- data/lib/opensearch/api/actions/knn/delete_model.rb +1 -3
- data/lib/opensearch/api/actions/ltr/stats.rb +41 -0
- data/lib/opensearch/api/actions/ml/chunk_model.rb +40 -0
- data/lib/opensearch/api/actions/ml/create_controller.rb +37 -0
- data/lib/opensearch/api/actions/ml/create_memory.rb +32 -0
- data/lib/opensearch/api/actions/ml/create_message.rb +37 -0
- data/lib/opensearch/api/actions/ml/create_model_meta.rb +32 -0
- data/lib/opensearch/api/actions/ml/delete_agent.rb +1 -3
- data/lib/opensearch/api/actions/ml/delete_connector.rb +1 -3
- data/lib/opensearch/api/actions/ml/delete_controller.rb +36 -0
- data/lib/opensearch/api/actions/ml/delete_memory.rb +36 -0
- data/lib/opensearch/api/actions/ml/delete_model.rb +1 -3
- data/lib/opensearch/api/actions/ml/delete_model_group.rb +1 -3
- data/lib/opensearch/api/actions/ml/delete_task.rb +1 -3
- data/lib/opensearch/api/actions/ml/execute_agent.rb +37 -0
- data/lib/opensearch/api/actions/ml/execute_algorithm.rb +37 -0
- data/lib/opensearch/api/actions/ml/get_agent.rb +36 -0
- data/lib/opensearch/api/actions/ml/get_all_memories.rb +38 -0
- data/lib/opensearch/api/actions/ml/get_all_messages.rb +43 -0
- data/lib/opensearch/api/actions/ml/get_all_tools.rb +31 -0
- data/lib/opensearch/api/actions/ml/get_connector.rb +36 -0
- data/lib/opensearch/api/actions/ml/get_controller.rb +36 -0
- data/lib/opensearch/api/actions/ml/get_memory.rb +36 -0
- data/lib/opensearch/api/actions/ml/get_message.rb +36 -0
- data/lib/opensearch/api/actions/ml/get_message_traces.rb +43 -0
- data/lib/opensearch/api/actions/ml/get_model.rb +36 -0
- data/lib/opensearch/api/actions/ml/get_profile.rb +32 -0
- data/lib/opensearch/api/actions/ml/get_profile_models.rb +35 -0
- data/lib/opensearch/api/actions/ml/get_profile_tasks.rb +35 -0
- data/lib/opensearch/api/actions/ml/get_stats.rb +36 -0
- data/lib/opensearch/api/actions/ml/get_tool.rb +36 -0
- data/lib/opensearch/api/actions/ml/load_model.rb +36 -0
- data/lib/opensearch/api/actions/ml/predict.rb +40 -0
- data/lib/opensearch/api/actions/ml/predict_model.rb +37 -0
- data/lib/opensearch/api/actions/ml/register_model_meta.rb +32 -0
- data/lib/opensearch/api/actions/ml/search_agents.rb +32 -0
- data/lib/opensearch/api/actions/ml/search_connectors.rb +32 -0
- data/lib/opensearch/api/actions/ml/search_memory.rb +32 -0
- data/lib/opensearch/api/actions/ml/search_message.rb +37 -0
- data/lib/opensearch/api/actions/ml/search_model_group.rb +32 -0
- data/lib/opensearch/api/actions/ml/search_models.rb +1 -1
- data/lib/opensearch/api/actions/ml/search_tasks.rb +32 -0
- data/lib/opensearch/api/actions/ml/train.rb +37 -0
- data/lib/opensearch/api/actions/ml/train_predict.rb +37 -0
- data/lib/opensearch/api/actions/ml/undeploy_model.rb +2 -3
- data/lib/opensearch/api/actions/ml/unload_model.rb +35 -0
- data/lib/opensearch/api/actions/ml/update_connector.rb +37 -0
- data/lib/opensearch/api/actions/ml/update_controller.rb +37 -0
- data/lib/opensearch/api/actions/ml/update_memory.rb +37 -0
- data/lib/opensearch/api/actions/ml/update_message.rb +37 -0
- data/lib/opensearch/api/actions/ml/update_model.rb +37 -0
- data/lib/opensearch/api/actions/ml/update_model_group.rb +37 -0
- data/lib/opensearch/api/actions/ml/upload_chunk.rb +40 -0
- data/lib/opensearch/api/actions/ml/upload_model.rb +32 -0
- data/lib/opensearch/api/actions/notifications/delete_config.rb +1 -3
- data/lib/opensearch/api/actions/notifications/delete_configs.rb +1 -3
- data/lib/opensearch/api/actions/observability/delete_object.rb +1 -3
- data/lib/opensearch/api/actions/observability/delete_objects.rb +1 -3
- data/lib/opensearch/api/actions/query/datasource_delete.rb +1 -3
- data/lib/opensearch/api/actions/reindex.rb +3 -1
- data/lib/opensearch/api/actions/reindex_rethrottle.rb +1 -1
- data/lib/opensearch/api/actions/replication/delete_replication_rule.rb +1 -3
- data/lib/opensearch/api/actions/rollups/delete.rb +1 -3
- data/lib/opensearch/api/actions/scroll.rb +1 -1
- data/lib/opensearch/api/actions/search_pipeline/delete.rb +1 -3
- data/lib/opensearch/api/actions/search_shards.rb +0 -1
- data/lib/opensearch/api/actions/security/authinfo.rb +3 -3
- data/lib/opensearch/api/actions/security/authtoken.rb +1 -1
- data/lib/opensearch/api/actions/security/config_upgrade_check.rb +1 -1
- data/lib/opensearch/api/actions/security/config_upgrade_perform.rb +1 -1
- data/lib/opensearch/api/actions/security/create_allowlist.rb +1 -1
- data/lib/opensearch/api/actions/security/create_role.rb +1 -1
- data/lib/opensearch/api/actions/security/create_role_mapping.rb +1 -1
- data/lib/opensearch/api/actions/security/create_tenant.rb +1 -1
- data/lib/opensearch/api/actions/security/create_update_tenancy_config.rb +1 -1
- data/lib/opensearch/api/actions/security/create_user.rb +1 -1
- data/lib/opensearch/api/actions/security/create_user_legacy.rb +1 -1
- data/lib/opensearch/api/actions/security/delete_action_group.rb +2 -4
- data/lib/opensearch/api/actions/security/delete_distinguished_name.rb +3 -5
- data/lib/opensearch/api/actions/security/delete_role.rb +2 -4
- data/lib/opensearch/api/actions/security/delete_role_mapping.rb +2 -4
- data/lib/opensearch/api/actions/security/delete_tenant.rb +2 -4
- data/lib/opensearch/api/actions/security/delete_user.rb +2 -4
- data/lib/opensearch/api/actions/security/delete_user_legacy.rb +1 -3
- data/lib/opensearch/api/actions/security/flush_cache.rb +2 -4
- data/lib/opensearch/api/actions/security/generate_obo_token.rb +1 -1
- data/lib/opensearch/api/actions/security/generate_user_token.rb +2 -2
- data/lib/opensearch/api/actions/security/generate_user_token_legacy.rb +1 -1
- data/lib/opensearch/api/actions/security/get_account_details.rb +1 -1
- data/lib/opensearch/api/actions/security/get_all_certificates.rb +2 -2
- data/lib/opensearch/api/actions/security/get_allowlist.rb +1 -1
- data/lib/opensearch/api/actions/security/get_configuration.rb +1 -1
- data/lib/opensearch/api/actions/security/get_dashboards_info.rb +1 -1
- data/lib/opensearch/api/actions/security/get_distinguished_name.rb +3 -3
- data/lib/opensearch/api/actions/security/get_distinguished_names.rb +2 -2
- data/lib/opensearch/api/actions/security/get_node_certificates.rb +4 -4
- data/lib/opensearch/api/actions/security/get_permissions_info.rb +1 -1
- data/lib/opensearch/api/actions/security/get_role.rb +1 -1
- data/lib/opensearch/api/actions/security/get_role_mapping.rb +2 -2
- data/lib/opensearch/api/actions/security/get_sslinfo.rb +2 -2
- data/lib/opensearch/api/actions/security/get_tenancy_config.rb +1 -1
- data/lib/opensearch/api/actions/security/get_tenant.rb +1 -1
- data/lib/opensearch/api/actions/security/get_user.rb +1 -1
- data/lib/opensearch/api/actions/security/health.rb +2 -2
- data/lib/opensearch/api/actions/security/migrate.rb +1 -1
- data/lib/opensearch/api/actions/security/patch_action_group.rb +1 -1
- data/lib/opensearch/api/actions/security/patch_action_groups.rb +1 -1
- data/lib/opensearch/api/actions/security/patch_allowlist.rb +1 -1
- data/lib/opensearch/api/actions/security/patch_audit_configuration.rb +1 -1
- data/lib/opensearch/api/actions/security/patch_configuration.rb +1 -1
- data/lib/opensearch/api/actions/security/patch_distinguished_name.rb +5 -5
- data/lib/opensearch/api/actions/security/patch_distinguished_names.rb +1 -1
- data/lib/opensearch/api/actions/security/patch_role.rb +1 -1
- data/lib/opensearch/api/actions/security/patch_role_mapping.rb +2 -2
- data/lib/opensearch/api/actions/security/patch_role_mappings.rb +1 -1
- data/lib/opensearch/api/actions/security/patch_tenant.rb +1 -1
- data/lib/opensearch/api/actions/security/patch_tenants.rb +1 -1
- data/lib/opensearch/api/actions/security/patch_user.rb +1 -1
- data/lib/opensearch/api/actions/security/patch_users.rb +1 -1
- data/lib/opensearch/api/actions/security/post_dashboards_info.rb +1 -1
- data/lib/opensearch/api/actions/security/reload_http_certificates.rb +1 -1
- data/lib/opensearch/api/actions/security/reload_transport_certificates.rb +1 -1
- data/lib/opensearch/api/actions/security/tenant_info.rb +1 -1
- data/lib/opensearch/api/actions/security/update_configuration.rb +1 -1
- data/lib/opensearch/api/actions/security/update_distinguished_name.rb +2 -2
- data/lib/opensearch/api/actions/security/validate.rb +1 -1
- data/lib/opensearch/api/actions/security/who_am_i.rb +1 -1
- data/lib/opensearch/api/actions/security/who_am_i_protected.rb +1 -1
- data/lib/opensearch/api/actions/sm/create_policy.rb +1 -1
- data/lib/opensearch/api/actions/sm/delete_policy.rb +2 -4
- data/lib/opensearch/api/actions/sm/explain_policy.rb +1 -1
- data/lib/opensearch/api/actions/sm/get_policies.rb +5 -5
- data/lib/opensearch/api/actions/sm/get_policy.rb +1 -1
- data/lib/opensearch/api/actions/sm/start_policy.rb +1 -1
- data/lib/opensearch/api/actions/sm/stop_policy.rb +1 -1
- data/lib/opensearch/api/actions/sm/update_policy.rb +1 -1
- data/lib/opensearch/api/actions/snapshot/cleanup_repository.rb +3 -3
- data/lib/opensearch/api/actions/snapshot/clone.rb +6 -6
- data/lib/opensearch/api/actions/snapshot/create.rb +6 -6
- data/lib/opensearch/api/actions/snapshot/create_repository.rb +6 -6
- data/lib/opensearch/api/actions/snapshot/delete.rb +4 -6
- data/lib/opensearch/api/actions/snapshot/delete_repository.rb +5 -7
- data/lib/opensearch/api/actions/snapshot/get.rb +5 -5
- data/lib/opensearch/api/actions/snapshot/get_repository.rb +4 -4
- data/lib/opensearch/api/actions/snapshot/restore.rb +5 -5
- data/lib/opensearch/api/actions/snapshot/status.rb +4 -4
- data/lib/opensearch/api/actions/snapshot/verify_repository.rb +3 -3
- data/lib/opensearch/api/actions/tasks/cancel.rb +5 -5
- data/lib/opensearch/api/actions/tasks/get.rb +3 -3
- data/lib/opensearch/api/actions/tasks/list.rb +7 -7
- data/lib/opensearch/api/actions/transforms/delete.rb +1 -3
- data/lib/opensearch/api/actions/update_by_query.rb +2 -2
- data/lib/opensearch/api/actions/wlm/delete_query_group.rb +1 -3
- data/lib/opensearch/api/utils.rb +1 -1
- data/lib/opensearch/transport/client.rb +21 -6
- data/lib/opensearch/transport/transport/base.rb +3 -8
- data/lib/opensearch/version.rb +1 -1
- data/lib/opensearch.rb +4 -0
- data/opensearch-ruby.gemspec +1 -0
- data/test/transport/unit/transport_base_test.rb +0 -26
- data.tar.gz.sig +0 -0
- metadata +62 -2
- metadata.gz.sig +0 -0
@@ -20,8 +20,9 @@ module OpenSearch
|
|
20
20
|
# @option args [Integer] :max_docs Maximum number of documents to process. By default, all documents.
|
21
21
|
# @option args [Boolean, String] :refresh If `true`, the request refreshes affected shards to make this operation visible to search.
|
22
22
|
# @option args [Float] :requests_per_second (default: 0) The throttle for this request in sub-requests per second. Defaults to no throttle.
|
23
|
+
# @option args [Boolean] :require_alias
|
23
24
|
# @option args [String] :scroll Specifies how long a consistent view of the index should be maintained for scrolled search.
|
24
|
-
# @option args [
|
25
|
+
# @option args [Integer, String] :slices The number of slices this task should be divided into. Defaults to 1 slice, meaning the task isn't sliced into subtasks.
|
25
26
|
# @option args [String] :timeout Period each indexing waits for automatic index creation, dynamic mapping updates, and waiting for active shards.
|
26
27
|
# @option args [Integer, String] :wait_for_active_shards The number of shard copies that must be active before proceeding with the operation. Set to `all` or any positive integer up to the total number of shards in the index (`number_of_replicas+1`).
|
27
28
|
# @option args [Boolean] :wait_for_completion (default: true) If `true`, the request blocks until the operation is complete.
|
@@ -43,6 +44,7 @@ module OpenSearch
|
|
43
44
|
max_docs
|
44
45
|
refresh
|
45
46
|
requests_per_second
|
47
|
+
require_alias
|
46
48
|
scroll
|
47
49
|
slices
|
48
50
|
timeout
|
@@ -13,7 +13,7 @@ module OpenSearch
|
|
13
13
|
module API
|
14
14
|
module Root
|
15
15
|
module Actions
|
16
|
-
# Changes the number of requests per second for a particular
|
16
|
+
# Changes the number of requests per second for a particular reindex operation.
|
17
17
|
#
|
18
18
|
# @option args [String] :task_id *Required* Identifier for the task.
|
19
19
|
# @option args [Float] :requests_per_second The throttle for this request in sub-requests per second.
|
@@ -16,19 +16,17 @@ module OpenSearch
|
|
16
16
|
# Deletes the specified replication rule.
|
17
17
|
#
|
18
18
|
# @option args [Hash] :body *Required*
|
19
|
-
# @option args [List] :ignore set to [404] to ignore server's NOT FOUND error for this request
|
20
19
|
def delete_replication_rule(args = {})
|
21
20
|
args = Utils.clone_and_normalize_arguments(args)
|
22
21
|
raise ArgumentError, "Required argument 'body' missing" if args['body'].nil?
|
23
22
|
|
24
|
-
ignore = args.delete('ignore') || []
|
25
23
|
headers = args.delete('headers') || {}
|
26
24
|
body = args.delete('body')
|
27
25
|
method = 'DELETE'
|
28
26
|
url = '_plugins/_replication/_autofollow'
|
29
27
|
|
30
28
|
Utils.validate_query_params! args
|
31
|
-
transport.perform_delete_request method, url, args, body, headers
|
29
|
+
transport.perform_delete_request method, url, args, body, headers
|
32
30
|
end
|
33
31
|
end
|
34
32
|
end
|
@@ -16,21 +16,19 @@ module OpenSearch
|
|
16
16
|
# Delete index rollup.
|
17
17
|
#
|
18
18
|
# @option args [String] :id *Required* Rollup to access
|
19
|
-
# @option args [List] :ignore set to [404] to ignore server's NOT FOUND error for this request
|
20
19
|
def delete(args = {})
|
21
20
|
args = Utils.clone_and_normalize_arguments(args)
|
22
21
|
raise ArgumentError, "Required argument 'id' missing" if args['id'].nil?
|
23
22
|
|
24
23
|
_id = args.delete('id')
|
25
24
|
|
26
|
-
ignore = args.delete('ignore') || []
|
27
25
|
headers = args.delete('headers') || {}
|
28
26
|
body = args.delete('body')
|
29
27
|
method = 'DELETE'
|
30
28
|
url = Utils.build_url('_plugins/_rollup/jobs', _id)
|
31
29
|
|
32
30
|
Utils.validate_query_params! args
|
33
|
-
transport.perform_delete_request method, url, args, body, headers
|
31
|
+
transport.perform_delete_request method, url, args, body, headers
|
34
32
|
end
|
35
33
|
end
|
36
34
|
end
|
@@ -18,7 +18,7 @@ module OpenSearch
|
|
18
18
|
# @option args [Boolean] :rest_total_hits_as_int If `true`, the API response's `hit.total` property is returned as an integer. If `false`, the API response's `hit.total` property is returned as an object.
|
19
19
|
# @option args [String] :scroll Period to retain the search context for scrolling.
|
20
20
|
# @option args [String] :scroll_id DEPRECATED The scroll ID for scrolled search
|
21
|
-
# @option args [Hash] :body
|
21
|
+
# @option args [Hash] :body
|
22
22
|
def scroll(args = {})
|
23
23
|
args = Utils.clone_and_normalize_arguments(args)
|
24
24
|
_scroll_id = args.delete('scroll_id')
|
@@ -18,21 +18,19 @@ module OpenSearch
|
|
18
18
|
# @option args [String] :id *Required* Pipeline ID.
|
19
19
|
# @option args [String] :cluster_manager_timeout Operation timeout for connection to cluster-manager node.
|
20
20
|
# @option args [String] :timeout Operation timeout.
|
21
|
-
# @option args [List] :ignore set to [404] to ignore server's NOT FOUND error for this request
|
22
21
|
def delete(args = {})
|
23
22
|
args = Utils.clone_and_normalize_arguments(args)
|
24
23
|
raise ArgumentError, "Required argument 'id' missing" if args['id'].nil?
|
25
24
|
|
26
25
|
_id = args.delete('id')
|
27
26
|
|
28
|
-
ignore = args.delete('ignore') || []
|
29
27
|
headers = args.delete('headers') || {}
|
30
28
|
body = args.delete('body')
|
31
29
|
method = 'DELETE'
|
32
30
|
url = Utils.build_url('_search/pipeline', _id)
|
33
31
|
|
34
32
|
Utils.validate_query_params! args, DELETE_QUERY_PARAMS
|
35
|
-
transport.perform_delete_request method, url, args, body, headers
|
33
|
+
transport.perform_delete_request method, url, args, body, headers
|
36
34
|
end
|
37
35
|
|
38
36
|
DELETE_QUERY_PARAMS = Set.new(%w[
|
@@ -22,7 +22,6 @@ module OpenSearch
|
|
22
22
|
# @option args [String] :preference (default: random) Specifies the node or shard the operation should be performed on. Random by default.
|
23
23
|
# @option args [Enumerable<String>, String] :routing Custom value used to route operations to a specific shard.
|
24
24
|
# @option args [Enumerable<String>, String] :index Returns the indexes and shards that a search request would be executed against.
|
25
|
-
# @option args [Hash] :body Defines the parameters that can be used in the `search_shards` endpoint request. See documentation for supported query syntax.
|
26
25
|
def search_shards(args = {})
|
27
26
|
args = Utils.clone_and_normalize_arguments(args)
|
28
27
|
_index = args.delete('index')
|
@@ -13,10 +13,10 @@ module OpenSearch
|
|
13
13
|
module API
|
14
14
|
module Security
|
15
15
|
module Actions
|
16
|
-
# Returns
|
16
|
+
# Returns or updates authentication information for the currently authenticated user.
|
17
17
|
#
|
18
|
-
# @option args [String] :auth_type The type of current authentication request.
|
19
|
-
# @option args [Boolean] :verbose
|
18
|
+
# @option args [String] :auth_type The type of the current authentication request.
|
19
|
+
# @option args [Boolean] :verbose Whether to return a verbose response.
|
20
20
|
def authinfo(args = {})
|
21
21
|
args = Utils.clone_and_normalize_arguments(args)
|
22
22
|
headers = args.delete('headers') || {}
|
@@ -13,7 +13,7 @@ module OpenSearch
|
|
13
13
|
module API
|
14
14
|
module Security
|
15
15
|
module Actions
|
16
|
-
#
|
16
|
+
# Checks whether or not an upgrade can be performed and which security resources can be updated.
|
17
17
|
#
|
18
18
|
def config_upgrade_check(args = {})
|
19
19
|
args = Utils.clone_and_normalize_arguments(args)
|
@@ -13,7 +13,7 @@ module OpenSearch
|
|
13
13
|
module API
|
14
14
|
module Security
|
15
15
|
module Actions
|
16
|
-
#
|
16
|
+
# Assists the cluster operator with upgrading missing default values and stale default definitions.
|
17
17
|
#
|
18
18
|
# @option args [Hash] :body
|
19
19
|
def config_upgrade_perform(args = {})
|
@@ -13,7 +13,7 @@ module OpenSearch
|
|
13
13
|
module API
|
14
14
|
module Security
|
15
15
|
module Actions
|
16
|
-
# Creates or replaces
|
16
|
+
# Creates or replaces APIs permitted for users on the allow list. Requires a super admin certificate or REST API permissions.
|
17
17
|
#
|
18
18
|
# @option args [Hash] :body *Required*
|
19
19
|
def create_allowlist(args = {})
|
@@ -15,7 +15,7 @@ module OpenSearch
|
|
15
15
|
module Actions
|
16
16
|
# Creates or replaces the specified role.
|
17
17
|
#
|
18
|
-
# @option args [String] :role *Required* The name of the role to
|
18
|
+
# @option args [String] :role *Required* The name of the role to create.
|
19
19
|
# @option args [Hash] :body *Required*
|
20
20
|
def create_role(args = {})
|
21
21
|
args = Utils.clone_and_normalize_arguments(args)
|
@@ -15,7 +15,7 @@ module OpenSearch
|
|
15
15
|
module Actions
|
16
16
|
# Creates or replaces the specified role mapping.
|
17
17
|
#
|
18
|
-
# @option args [String] :role *Required* The name of the role to create a role mapping
|
18
|
+
# @option args [String] :role *Required* The name of the role for which to create a role mapping.
|
19
19
|
# @option args [Hash] :body *Required*
|
20
20
|
def create_role_mapping(args = {})
|
21
21
|
args = Utils.clone_and_normalize_arguments(args)
|
@@ -15,7 +15,7 @@ module OpenSearch
|
|
15
15
|
module Actions
|
16
16
|
# Creates or replaces the specified tenant.
|
17
17
|
#
|
18
|
-
# @option args [String] :tenant *Required* The name of the tenant to
|
18
|
+
# @option args [String] :tenant *Required* The name of the tenant to create.
|
19
19
|
# @option args [Hash] :body *Required*
|
20
20
|
def create_tenant(args = {})
|
21
21
|
args = Utils.clone_and_normalize_arguments(args)
|
@@ -13,7 +13,7 @@ module OpenSearch
|
|
13
13
|
module API
|
14
14
|
module Security
|
15
15
|
module Actions
|
16
|
-
# Creates or replaces the multi-tenancy configuration.
|
16
|
+
# Creates or replaces the multi-tenancy configuration. Requires super admin or REST API permissions.
|
17
17
|
#
|
18
18
|
# @option args [Hash] :body *Required*
|
19
19
|
def create_update_tenancy_config(args = {})
|
@@ -15,7 +15,7 @@ module OpenSearch
|
|
15
15
|
module Actions
|
16
16
|
# Creates or replaces the specified user.
|
17
17
|
#
|
18
|
-
# @option args [String] :username *Required* The name of the user to
|
18
|
+
# @option args [String] :username *Required* The name of the user to create.
|
19
19
|
# @option args [Hash] :body *Required*
|
20
20
|
def create_user(args = {})
|
21
21
|
args = Utils.clone_and_normalize_arguments(args)
|
@@ -15,7 +15,7 @@ module OpenSearch
|
|
15
15
|
module Actions
|
16
16
|
# Creates or replaces the specified user. Legacy API.
|
17
17
|
#
|
18
|
-
# @option args [String] :username *Required* The name of the user to
|
18
|
+
# @option args [String] :username *Required* The name of the user to create.
|
19
19
|
# @option args [Hash] :body *Required*
|
20
20
|
def create_user_legacy(args = {})
|
21
21
|
args = Utils.clone_and_normalize_arguments(args)
|
@@ -13,24 +13,22 @@ module OpenSearch
|
|
13
13
|
module API
|
14
14
|
module Security
|
15
15
|
module Actions
|
16
|
-
#
|
16
|
+
# Deletes the specified action group.
|
17
17
|
#
|
18
18
|
# @option args [String] :action_group *Required* The name of the action group to delete.
|
19
|
-
# @option args [List] :ignore set to [404] to ignore server's NOT FOUND error for this request
|
20
19
|
def delete_action_group(args = {})
|
21
20
|
args = Utils.clone_and_normalize_arguments(args)
|
22
21
|
raise ArgumentError, "Required argument 'action_group' missing" if args['action_group'].nil?
|
23
22
|
|
24
23
|
_action_group = args.delete('action_group')
|
25
24
|
|
26
|
-
ignore = args.delete('ignore') || []
|
27
25
|
headers = args.delete('headers') || {}
|
28
26
|
body = args.delete('body')
|
29
27
|
method = 'DELETE'
|
30
28
|
url = Utils.build_url('_plugins/_security/api/actiongroups', _action_group)
|
31
29
|
|
32
30
|
Utils.validate_query_params! args
|
33
|
-
transport.perform_delete_request method, url, args, body, headers
|
31
|
+
transport.perform_delete_request method, url, args, body, headers
|
34
32
|
end
|
35
33
|
end
|
36
34
|
end
|
@@ -13,24 +13,22 @@ module OpenSearch
|
|
13
13
|
module API
|
14
14
|
module Security
|
15
15
|
module Actions
|
16
|
-
# Deletes all distinguished names in the specified cluster or node
|
16
|
+
# Deletes all distinguished names in the specified cluster or node allowlist. Requires super admin or REST API permissions.
|
17
17
|
#
|
18
|
-
# @option args [String] :cluster_name *Required* The cluster
|
19
|
-
# @option args [List] :ignore set to [404] to ignore server's NOT FOUND error for this request
|
18
|
+
# @option args [String] :cluster_name *Required* The cluster name to delete from list of distinguished names.
|
20
19
|
def delete_distinguished_name(args = {})
|
21
20
|
args = Utils.clone_and_normalize_arguments(args)
|
22
21
|
raise ArgumentError, "Required argument 'cluster_name' missing" if args['cluster_name'].nil?
|
23
22
|
|
24
23
|
_cluster_name = args.delete('cluster_name')
|
25
24
|
|
26
|
-
ignore = args.delete('ignore') || []
|
27
25
|
headers = args.delete('headers') || {}
|
28
26
|
body = args.delete('body')
|
29
27
|
method = 'DELETE'
|
30
28
|
url = Utils.build_url('_plugins/_security/api/nodesdn', _cluster_name)
|
31
29
|
|
32
30
|
Utils.validate_query_params! args
|
33
|
-
transport.perform_delete_request method, url, args, body, headers
|
31
|
+
transport.perform_delete_request method, url, args, body, headers
|
34
32
|
end
|
35
33
|
end
|
36
34
|
end
|
@@ -13,24 +13,22 @@ module OpenSearch
|
|
13
13
|
module API
|
14
14
|
module Security
|
15
15
|
module Actions
|
16
|
-
#
|
16
|
+
# Deletes the specified role.
|
17
17
|
#
|
18
18
|
# @option args [String] :role *Required* The name of the role to delete.
|
19
|
-
# @option args [List] :ignore set to [404] to ignore server's NOT FOUND error for this request
|
20
19
|
def delete_role(args = {})
|
21
20
|
args = Utils.clone_and_normalize_arguments(args)
|
22
21
|
raise ArgumentError, "Required argument 'role' missing" if args['role'].nil?
|
23
22
|
|
24
23
|
_role = args.delete('role')
|
25
24
|
|
26
|
-
ignore = args.delete('ignore') || []
|
27
25
|
headers = args.delete('headers') || {}
|
28
26
|
body = args.delete('body')
|
29
27
|
method = 'DELETE'
|
30
28
|
url = Utils.build_url('_plugins/_security/api/roles', _role)
|
31
29
|
|
32
30
|
Utils.validate_query_params! args
|
33
|
-
transport.perform_delete_request method, url, args, body, headers
|
31
|
+
transport.perform_delete_request method, url, args, body, headers
|
34
32
|
end
|
35
33
|
end
|
36
34
|
end
|
@@ -15,22 +15,20 @@ module OpenSearch
|
|
15
15
|
module Actions
|
16
16
|
# Deletes the specified role mapping.
|
17
17
|
#
|
18
|
-
# @option args [String] :role *Required* The name of the role
|
19
|
-
# @option args [List] :ignore set to [404] to ignore server's NOT FOUND error for this request
|
18
|
+
# @option args [String] :role *Required* The name of the role for which to delete the role's mappings.
|
20
19
|
def delete_role_mapping(args = {})
|
21
20
|
args = Utils.clone_and_normalize_arguments(args)
|
22
21
|
raise ArgumentError, "Required argument 'role' missing" if args['role'].nil?
|
23
22
|
|
24
23
|
_role = args.delete('role')
|
25
24
|
|
26
|
-
ignore = args.delete('ignore') || []
|
27
25
|
headers = args.delete('headers') || {}
|
28
26
|
body = args.delete('body')
|
29
27
|
method = 'DELETE'
|
30
28
|
url = Utils.build_url('_plugins/_security/api/rolesmapping', _role)
|
31
29
|
|
32
30
|
Utils.validate_query_params! args
|
33
|
-
transport.perform_delete_request method, url, args, body, headers
|
31
|
+
transport.perform_delete_request method, url, args, body, headers
|
34
32
|
end
|
35
33
|
end
|
36
34
|
end
|
@@ -13,24 +13,22 @@ module OpenSearch
|
|
13
13
|
module API
|
14
14
|
module Security
|
15
15
|
module Actions
|
16
|
-
#
|
16
|
+
# Deletes the specified tenant.
|
17
17
|
#
|
18
18
|
# @option args [String] :tenant *Required* The name of the tenant to delete.
|
19
|
-
# @option args [List] :ignore set to [404] to ignore server's NOT FOUND error for this request
|
20
19
|
def delete_tenant(args = {})
|
21
20
|
args = Utils.clone_and_normalize_arguments(args)
|
22
21
|
raise ArgumentError, "Required argument 'tenant' missing" if args['tenant'].nil?
|
23
22
|
|
24
23
|
_tenant = args.delete('tenant')
|
25
24
|
|
26
|
-
ignore = args.delete('ignore') || []
|
27
25
|
headers = args.delete('headers') || {}
|
28
26
|
body = args.delete('body')
|
29
27
|
method = 'DELETE'
|
30
28
|
url = Utils.build_url('_plugins/_security/api/tenants', _tenant)
|
31
29
|
|
32
30
|
Utils.validate_query_params! args
|
33
|
-
transport.perform_delete_request method, url, args, body, headers
|
31
|
+
transport.perform_delete_request method, url, args, body, headers
|
34
32
|
end
|
35
33
|
end
|
36
34
|
end
|
@@ -13,24 +13,22 @@ module OpenSearch
|
|
13
13
|
module API
|
14
14
|
module Security
|
15
15
|
module Actions
|
16
|
-
#
|
16
|
+
# Deletes the specified internal user.
|
17
17
|
#
|
18
18
|
# @option args [String] :username *Required* The name of the user to delete.
|
19
|
-
# @option args [List] :ignore set to [404] to ignore server's NOT FOUND error for this request
|
20
19
|
def delete_user(args = {})
|
21
20
|
args = Utils.clone_and_normalize_arguments(args)
|
22
21
|
raise ArgumentError, "Required argument 'username' missing" if args['username'].nil?
|
23
22
|
|
24
23
|
_username = args.delete('username')
|
25
24
|
|
26
|
-
ignore = args.delete('ignore') || []
|
27
25
|
headers = args.delete('headers') || {}
|
28
26
|
body = args.delete('body')
|
29
27
|
method = 'DELETE'
|
30
28
|
url = Utils.build_url('_plugins/_security/api/internalusers', _username)
|
31
29
|
|
32
30
|
Utils.validate_query_params! args
|
33
|
-
transport.perform_delete_request method, url, args, body, headers
|
31
|
+
transport.perform_delete_request method, url, args, body, headers
|
34
32
|
end
|
35
33
|
end
|
36
34
|
end
|
@@ -16,21 +16,19 @@ module OpenSearch
|
|
16
16
|
# Delete the specified user. Legacy API.
|
17
17
|
#
|
18
18
|
# @option args [String] :username *Required* The name of the user to delete.
|
19
|
-
# @option args [List] :ignore set to [404] to ignore server's NOT FOUND error for this request
|
20
19
|
def delete_user_legacy(args = {})
|
21
20
|
args = Utils.clone_and_normalize_arguments(args)
|
22
21
|
raise ArgumentError, "Required argument 'username' missing" if args['username'].nil?
|
23
22
|
|
24
23
|
_username = args.delete('username')
|
25
24
|
|
26
|
-
ignore = args.delete('ignore') || []
|
27
25
|
headers = args.delete('headers') || {}
|
28
26
|
body = args.delete('body')
|
29
27
|
method = 'DELETE'
|
30
28
|
url = Utils.build_url('_plugins/_security/api/user', _username)
|
31
29
|
|
32
30
|
Utils.validate_query_params! args
|
33
|
-
transport.perform_delete_request method, url, args, body, headers
|
31
|
+
transport.perform_delete_request method, url, args, body, headers
|
34
32
|
end
|
35
33
|
end
|
36
34
|
end
|
@@ -13,19 +13,17 @@ module OpenSearch
|
|
13
13
|
module API
|
14
14
|
module Security
|
15
15
|
module Actions
|
16
|
-
# Flushes the Security plugin user, authentication, and authorization cache.
|
16
|
+
# Flushes the Security plugin's user, authentication, and authorization cache.
|
17
17
|
#
|
18
|
-
# @option args [List] :ignore set to [404] to ignore server's NOT FOUND error for this request
|
19
18
|
def flush_cache(args = {})
|
20
19
|
args = Utils.clone_and_normalize_arguments(args)
|
21
|
-
ignore = args.delete('ignore') || []
|
22
20
|
headers = args.delete('headers') || {}
|
23
21
|
body = args.delete('body')
|
24
22
|
method = 'DELETE'
|
25
23
|
url = '_plugins/_security/api/cache'
|
26
24
|
|
27
25
|
Utils.validate_query_params! args
|
28
|
-
transport.perform_delete_request method, url, args, body, headers
|
26
|
+
transport.perform_delete_request method, url, args, body, headers
|
29
27
|
end
|
30
28
|
end
|
31
29
|
end
|
@@ -13,7 +13,7 @@ module OpenSearch
|
|
13
13
|
module API
|
14
14
|
module Security
|
15
15
|
module Actions
|
16
|
-
# Generates On-Behalf-Of token for the current user.
|
16
|
+
# Generates a `On-Behalf-Of` token for the current user.
|
17
17
|
#
|
18
18
|
# @option args [Hash] :body *Required*
|
19
19
|
def generate_obo_token(args = {})
|
@@ -13,9 +13,9 @@ module OpenSearch
|
|
13
13
|
module API
|
14
14
|
module Security
|
15
15
|
module Actions
|
16
|
-
# Generates authorization token for the
|
16
|
+
# Generates an authorization token for the specified user.
|
17
17
|
#
|
18
|
-
# @option args [String] :username *Required* The name of the user for whom an
|
18
|
+
# @option args [String] :username *Required* The name of the user for whom to issue an authorization token.
|
19
19
|
def generate_user_token(args = {})
|
20
20
|
args = Utils.clone_and_normalize_arguments(args)
|
21
21
|
raise ArgumentError, "Required argument 'username' missing" if args['username'].nil?
|
@@ -15,7 +15,7 @@ module OpenSearch
|
|
15
15
|
module Actions
|
16
16
|
# Generates authorization token for the given user. Legacy API. Not Implemented.
|
17
17
|
#
|
18
|
-
# @option args [String] :username *Required* The name of the user for whom an
|
18
|
+
# @option args [String] :username *Required* The name of the user for whom to issue an authorization token.
|
19
19
|
def generate_user_token_legacy(args = {})
|
20
20
|
args = Utils.clone_and_normalize_arguments(args)
|
21
21
|
raise ArgumentError, "Required argument 'username' missing" if args['username'].nil?
|
@@ -13,7 +13,7 @@ module OpenSearch
|
|
13
13
|
module API
|
14
14
|
module Security
|
15
15
|
module Actions
|
16
|
-
# Returns account
|
16
|
+
# Returns account information for the current user.
|
17
17
|
#
|
18
18
|
def get_account_details(args = {})
|
19
19
|
args = Utils.clone_and_normalize_arguments(args)
|
@@ -15,8 +15,8 @@ module OpenSearch
|
|
15
15
|
module Actions
|
16
16
|
# Retrieves the cluster security certificates.
|
17
17
|
#
|
18
|
-
# @option args [String] :cert_type The type of certificates (HTTP
|
19
|
-
# @option args [String] :timeout The maximum duration, in seconds, to
|
18
|
+
# @option args [String] :cert_type The type of certificates (`HTTP`, `TRANSPORT`, or `ALL`) to retrieve from all nodes.
|
19
|
+
# @option args [String] :timeout The maximum duration, in seconds, to spend retrieving certificates from all nodes before a timeout.
|
20
20
|
def get_all_certificates(args = {})
|
21
21
|
args = Utils.clone_and_normalize_arguments(args)
|
22
22
|
headers = args.delete('headers') || {}
|
@@ -13,7 +13,7 @@ module OpenSearch
|
|
13
13
|
module API
|
14
14
|
module Security
|
15
15
|
module Actions
|
16
|
-
# Retrieves the current list of allowed
|
16
|
+
# Retrieves the current list of allowed APIs accessible to a normal user.
|
17
17
|
#
|
18
18
|
def get_allowlist(args = {})
|
19
19
|
args = Utils.clone_and_normalize_arguments(args)
|
@@ -13,7 +13,7 @@ module OpenSearch
|
|
13
13
|
module API
|
14
14
|
module Security
|
15
15
|
module Actions
|
16
|
-
# Returns the current Security plugin configuration in JSON format.
|
16
|
+
# Returns the current Security plugin configuration in a JSON format.
|
17
17
|
#
|
18
18
|
def get_configuration(args = {})
|
19
19
|
args = Utils.clone_and_normalize_arguments(args)
|
@@ -13,7 +13,7 @@ module OpenSearch
|
|
13
13
|
module API
|
14
14
|
module Security
|
15
15
|
module Actions
|
16
|
-
# Retrieves the current security
|
16
|
+
# Retrieves the current values for dynamic security settings for OpenSearch Dashboards.
|
17
17
|
#
|
18
18
|
def get_dashboards_info(args = {})
|
19
19
|
args = Utils.clone_and_normalize_arguments(args)
|
@@ -13,10 +13,10 @@ module OpenSearch
|
|
13
13
|
module API
|
14
14
|
module Security
|
15
15
|
module Actions
|
16
|
-
# Retrieves distinguished names.
|
16
|
+
# Retrieves all node distinguished names. Requires super admin or REST API permissions.
|
17
17
|
#
|
18
|
-
# @option args [String] :cluster_name *Required* The
|
19
|
-
# @option args [Boolean] :show_all
|
18
|
+
# @option args [String] :cluster_name *Required* The name of the cluster to retrieve that cluster's nodes DN settings.
|
19
|
+
# @option args [Boolean] :show_all Whether to include or exclude any static node's DN settings from the final result.
|
20
20
|
def get_distinguished_name(args = {})
|
21
21
|
args = Utils.clone_and_normalize_arguments(args)
|
22
22
|
raise ArgumentError, "Required argument 'cluster_name' missing" if args['cluster_name'].nil?
|
@@ -13,9 +13,9 @@ module OpenSearch
|
|
13
13
|
module API
|
14
14
|
module Security
|
15
15
|
module Actions
|
16
|
-
# Retrieves distinguished names.
|
16
|
+
# Retrieves all node distinguished names. Requires super admin or REST API permissions.
|
17
17
|
#
|
18
|
-
# @option args [Boolean] :show_all
|
18
|
+
# @option args [Boolean] :show_all Whether to include or exclude any static node's DN settings from the final result.
|
19
19
|
def get_distinguished_names(args = {})
|
20
20
|
args = Utils.clone_and_normalize_arguments(args)
|
21
21
|
headers = args.delete('headers') || {}
|
@@ -13,11 +13,11 @@ module OpenSearch
|
|
13
13
|
module API
|
14
14
|
module Security
|
15
15
|
module Actions
|
16
|
-
# Retrieves the
|
16
|
+
# Retrieves the specified node's security certificates.
|
17
17
|
#
|
18
|
-
# @option args [String] :node_id *Required* The
|
19
|
-
# @option args [String] :cert_type The type of certificates (HTTP
|
20
|
-
# @option args [String] :timeout The maximum duration, in seconds, to
|
18
|
+
# @option args [String] :node_id *Required* The node ID to retrieve certificates for.
|
19
|
+
# @option args [String] :cert_type The type of certificates (`HTTP`, `TRANSPORT`, or `ALL`) to retrieve from a node.
|
20
|
+
# @option args [String] :timeout The maximum duration, in seconds, to spend retrieving certificates from all nodes before a timeout.
|
21
21
|
def get_node_certificates(args = {})
|
22
22
|
args = Utils.clone_and_normalize_arguments(args)
|
23
23
|
raise ArgumentError, "Required argument 'node_id' missing" if args['node_id'].nil?
|
@@ -13,7 +13,7 @@ module OpenSearch
|
|
13
13
|
module API
|
14
14
|
module Security
|
15
15
|
module Actions
|
16
|
-
#
|
16
|
+
# Retrieves the evaluated REST API permissions for the currently logged in user.
|
17
17
|
#
|
18
18
|
def get_permissions_info(args = {})
|
19
19
|
args = Utils.clone_and_normalize_arguments(args)
|
@@ -15,7 +15,7 @@ module OpenSearch
|
|
15
15
|
module Actions
|
16
16
|
# Retrieves one role.
|
17
17
|
#
|
18
|
-
# @option args [String] :role *Required*
|
18
|
+
# @option args [String] :role *Required* The name of the role to retrieve.
|
19
19
|
def get_role(args = {})
|
20
20
|
args = Utils.clone_and_normalize_arguments(args)
|
21
21
|
raise ArgumentError, "Required argument 'role' missing" if args['role'].nil?
|
@@ -13,9 +13,9 @@ module OpenSearch
|
|
13
13
|
module API
|
14
14
|
module Security
|
15
15
|
module Actions
|
16
|
-
# Retrieves
|
16
|
+
# Retrieves the specified role mapping.
|
17
17
|
#
|
18
|
-
# @option args [String] :role *Required*
|
18
|
+
# @option args [String] :role *Required* The name of the role mapping to retrieve.
|
19
19
|
def get_role_mapping(args = {})
|
20
20
|
args = Utils.clone_and_normalize_arguments(args)
|
21
21
|
raise ArgumentError, "Required argument 'role' missing" if args['role'].nil?
|