runtype 0.2.2 → 0.5.0
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
- data/CHANGELOG.md +169 -1
- data/README.md +188 -23
- data/generated/lib/runtype/agent_aliases/client.rb +202 -1
- data/generated/lib/runtype/agent_aliases/types/delete_v1agents_id_aliases_alias_bindings_request.rb +17 -0
- data/generated/lib/runtype/agent_aliases/types/delete_v1agents_id_aliases_alias_bindings_response.rb +19 -0
- data/generated/lib/runtype/agent_aliases/types/get_v1agent_aliases_request.rb +13 -0
- data/generated/lib/runtype/agent_aliases/types/get_v1agent_aliases_response.rb +11 -0
- data/generated/lib/runtype/agent_aliases/types/get_v1agent_aliases_response_data_item.rb +25 -0
- data/generated/lib/runtype/agent_aliases/types/get_v1agents_id_aliases_alias_bindings_request.rb +13 -0
- data/generated/lib/runtype/agent_aliases/types/get_v1agents_id_aliases_alias_bindings_response.rb +19 -0
- data/generated/lib/runtype/agent_aliases/types/get_v1agents_id_aliases_alias_response.rb +2 -0
- data/generated/lib/runtype/agent_aliases/types/get_v1agents_id_aliases_response_data_item.rb +2 -0
- data/generated/lib/runtype/agent_aliases/types/get_v1agents_id_deployments_response_data_item.rb +2 -0
- data/generated/lib/runtype/agent_aliases/types/post_v1agents_id_aliases_alias_rollback_response.rb +6 -0
- data/generated/lib/runtype/agent_aliases/types/put_v1agents_id_aliases_alias_bindings_request.rb +21 -0
- data/generated/lib/runtype/agent_aliases/types/put_v1agents_id_aliases_alias_bindings_response.rb +19 -0
- data/generated/lib/runtype/agent_aliases/types/put_v1agents_id_aliases_alias_request.rb +2 -0
- data/generated/lib/runtype/agent_aliases/types/put_v1agents_id_aliases_alias_response.rb +6 -0
- data/generated/lib/runtype/agent_versions/client.rb +13 -1
- data/generated/lib/runtype/agent_versions/types/post_v1agent_versions_agent_id_publish_request.rb +6 -0
- data/generated/lib/runtype/agent_versions/types/post_v1agent_versions_agent_id_publish_request_deployment.rb +11 -0
- data/generated/lib/runtype/agent_versions/types/post_v1agent_versions_agent_id_publish_request_deployment_action.rb +14 -0
- data/generated/lib/runtype/agent_versions/types/post_v1agent_versions_agent_id_publish_response.rb +1 -1
- data/generated/lib/runtype/agents/types/post_v1agents_ensure_request_definition_config_memory.rb +2 -0
- data/generated/lib/runtype/agents/types/post_v1agents_ensure_request_definition_config_memory_pointer_scope.rb +15 -0
- data/generated/lib/runtype/agents/types/post_v1agents_id_execute_request_x_runtype_concurrency.rb +1 -0
- data/generated/lib/runtype/agents/types/post_v1agents_request_config_memory.rb +2 -0
- data/generated/lib/runtype/agents/types/post_v1agents_request_config_memory_pointer_scope.rb +15 -0
- data/generated/lib/runtype/agents/types/put_v1agents_id_request_config_memory.rb +2 -0
- data/generated/lib/runtype/agents/types/put_v1agents_id_request_config_memory_pointer_scope.rb +15 -0
- data/generated/lib/runtype/batch/types/get_v1batch_batch_id_records_record_id_steps_response_data_item_execution_engine.rb +1 -0
- data/generated/lib/runtype/client.rb +5 -5
- data/generated/lib/runtype/client_runtime/client.rb +118 -1
- data/generated/lib/runtype/client_runtime/types/get_v1client_conversations_conversation_id_executions_execution_id_deliveries_delivery_id_request.rb +21 -0
- data/generated/lib/runtype/client_runtime/types/post_v1client_chat_request_submit_mode.rb +1 -0
- data/generated/lib/runtype/client_runtime/types/post_v1client_conversations_conversation_id_executions_execution_id_cancel_request.rb +19 -0
- data/generated/lib/runtype/client_runtime/types/post_v1client_conversations_conversation_id_executions_execution_id_cancel_response.rb +13 -0
- data/generated/lib/runtype/client_runtime/types/post_v1client_init_response_durable_recovery.rb +2 -0
- data/generated/lib/runtype/client_tokens/types/get_v1client_tokens_id_response_client_token.rb +4 -0
- data/generated/lib/runtype/client_tokens/types/get_v1client_tokens_response_client_tokens_item.rb +4 -0
- data/generated/lib/runtype/client_tokens/types/post_v1client_tokens_id_regenerate_response_client_token.rb +4 -0
- data/generated/lib/runtype/client_tokens/types/post_v1client_tokens_request.rb +4 -0
- data/generated/lib/runtype/client_tokens/types/post_v1client_tokens_response_client_token.rb +4 -0
- data/generated/lib/runtype/client_tokens/types/put_v1client_tokens_id_request.rb +4 -0
- data/generated/lib/runtype/client_tokens/types/put_v1client_tokens_id_response_client_token.rb +4 -0
- data/generated/lib/runtype/conversations/client.rb +28 -10
- data/generated/lib/runtype/conversations/types/get_v1conversations_id_response.rb +3 -1
- data/generated/lib/runtype/conversations/types/post_v1conversations_request.rb +6 -0
- data/generated/lib/runtype/conversations/types/post_v1conversations_response.rb +3 -1
- data/generated/lib/runtype/conversations/types/put_v1conversations_id_request.rb +7 -1
- data/generated/lib/runtype/conversations/types/{put_v1conversations_id_request_messages_item_content_one_item_asset_ref_ref_kind.rb → put_v1conversations_id_request_messages_mode.rb} +3 -3
- data/generated/lib/runtype/conversations/types/put_v1conversations_id_response.rb +3 -1
- data/generated/lib/runtype/dispatch/client.rb +5 -3
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_one.rb +2 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_one_agent_memory.rb +2 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_one_agent_memory_pointer_scope.rb +15 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_one_history.rb +14 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_one_messages_item.rb +4 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_one_messages_item_role.rb +1 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_one_messages_item_tool_calls_item.rb +17 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_one_messages_item_tool_results_item.rb +17 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_zero.rb +2 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_zero_agent_memory.rb +2 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_zero_agent_memory_pointer_scope.rb +15 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_zero_history.rb +14 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_zero_messages_item.rb +4 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_zero_messages_item_role.rb +1 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_zero_messages_item_tool_calls_item.rb +17 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_zero_messages_item_tool_results_item.rb +17 -0
- data/generated/lib/runtype/evals/types/get_v1eval_id_results_response.rb +10 -0
- data/generated/lib/runtype/evals/types/get_v1eval_id_results_response_agent_target_resolution.rb +15 -0
- data/generated/lib/runtype/evals/types/get_v1eval_id_results_response_results_by_record_value_item_execution_engine.rb +1 -0
- data/generated/lib/runtype/evals/types/post_v1eval_run_request.rb +2 -0
- data/generated/lib/runtype/evals/types/post_v1eval_run_request_agent.rb +15 -0
- data/generated/lib/runtype/evals/types/post_v1eval_submit_request.rb +2 -0
- data/generated/lib/runtype/evals/types/post_v1eval_submit_request_agent.rb +15 -0
- data/generated/lib/runtype/evals/types/post_v1eval_suites_id_run_request.rb +2 -0
- data/generated/lib/runtype/executions/client.rb +43 -0
- data/generated/lib/runtype/executions/types/get_v1executions_execution_id_deliveries_delivery_id_request.rb +13 -0
- data/generated/lib/runtype/flows/client.rb +3 -4
- data/generated/lib/runtype/flows/types/get_v1flows_id_step_results_response_data_item_execution_engine.rb +1 -0
- data/generated/lib/runtype/messaging_conversations/client.rb +2 -0
- data/generated/lib/runtype/messaging_conversations/types/get_v1messaging_conversations_request.rb +2 -0
- data/generated/lib/runtype/model_configs/types/post_v1model_configs_request_settings_custom_model.rb +2 -0
- data/generated/lib/runtype/model_configs/types/post_v1model_configs_request_settings_custom_model_mid_conversation_system_messages.rb +14 -0
- data/generated/lib/runtype/model_configs/types/put_v1model_configs_id_request_settings_custom_model.rb +2 -0
- data/generated/lib/runtype/model_configs/types/put_v1model_configs_id_request_settings_custom_model_mid_conversation_system_messages.rb +14 -0
- data/generated/lib/runtype/products/client.rb +45 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_request.rb +13 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response.rb +13 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data.rb +13 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data_agents_item.rb +17 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data_agents_item_data_item.rb +77 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data_agents_item_data_item_agent_target_resolution.rb +15 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data_agents_item_data_item_agent_version.rb +17 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data_agents_item_data_item_execution_mode.rb +14 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data_agents_item_data_item_notification_mode.rb +15 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data_agents_item_data_item_pending_approval.rb +27 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data_agents_item_data_item_status.rb +19 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data_agents_item_error.rb +11 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data_surfaces_item.rb +19 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data_surfaces_item_data_item.rb +15 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data_surfaces_item_data_item_agent_mode.rb +45 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data_surfaces_item_data_item_available_fields.rb +39 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data_surfaces_item_data_item_available_fields_metadata_schema.rb +11 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data_surfaces_item_error.rb +11 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data_surfaces_item_source.rb +14 -0
- data/generated/lib/runtype/provider_keys/types/post_v1provider_keys_id_sync_models_request_models_item.rb +2 -0
- data/generated/lib/runtype/provider_keys/types/post_v1provider_keys_id_sync_models_request_models_item_mid_conversation_system_messages.rb +14 -0
- data/generated/lib/runtype/records/types/get_v1records_id_results_response_data_item_execution_engine.rb +1 -0
- data/generated/lib/runtype/records/types/get_v1records_id_step_results_response_data_item_execution_engine.rb +1 -0
- data/generated/lib/runtype/schedules/types/get_v1schedules_batch_batch_id_results_response_data_item_execution_engine.rb +1 -0
- data/generated/lib/runtype/schedules/types/get_v1schedules_runs_run_id_results_response_data_item_execution_engine.rb +1 -0
- data/generated/lib/runtype/types/agent_deployment_promotion.rb +17 -0
- data/generated/lib/runtype/types/agent_ensure_deploy_target.rb +2 -0
- data/generated/lib/runtype/types/agent_ensure_preview_alias_limit.rb +19 -0
- data/generated/lib/runtype/types/agent_ensure_preview_alias_limit_code.rb +11 -0
- data/generated/lib/runtype/types/agent_ensure_preview_alias_limit_scope.rb +12 -0
- data/generated/lib/runtype/types/agent_pull_response_definition_config_memory.rb +2 -0
- data/generated/lib/runtype/types/agent_pull_response_definition_config_memory_pointer_scope.rb +13 -0
- data/generated/lib/runtype/types/async_dispatch_handle.rb +10 -0
- data/generated/lib/runtype/types/async_dispatch_handle_delivery_status.rb +14 -0
- data/generated/lib/runtype/types/async_dispatch_handle_status.rb +5 -0
- data/generated/lib/runtype/types/client_input_delivery_receipt.rb +19 -0
- data/generated/lib/runtype/types/client_input_delivery_receipt_status.rb +14 -0
- data/generated/lib/runtype/types/conflict_error_body_candidate_count.rb +21 -0
- data/generated/lib/runtype/types/conflict_error_body_candidate_count_code.rb +11 -0
- data/generated/lib/runtype/types/conversation_busy_error.rb +15 -0
- data/generated/lib/runtype/types/conversation_busy_error_code.rb +11 -0
- data/generated/lib/runtype/types/conversation_busy_error_phase.rb +14 -0
- data/generated/lib/runtype/types/conversation_message_author.rb +16 -0
- data/generated/lib/runtype/types/conversation_message_author_type.rb +14 -0
- data/generated/lib/runtype/types/conversation_modified_error.rb +13 -0
- data/generated/lib/runtype/types/conversation_modified_error_code.rb +11 -0
- data/generated/lib/runtype/types/conversation_source.rb +14 -0
- data/generated/lib/runtype/types/conversation_transcript_message.rb +23 -0
- data/generated/lib/runtype/types/conversation_transcript_message_content.rb +14 -0
- data/generated/lib/runtype/types/conversation_transcript_message_content_one_item.rb +21 -0
- data/generated/lib/runtype/types/conversation_transcript_message_content_one_item_asset_ref.rb +19 -0
- data/generated/lib/runtype/types/conversation_transcript_message_content_one_item_asset_ref_ref_kind.rb +12 -0
- data/generated/lib/runtype/types/conversation_transcript_message_content_one_item_file.rb +13 -0
- data/generated/lib/runtype/types/conversation_transcript_message_content_one_item_image.rb +11 -0
- data/generated/lib/runtype/types/conversation_transcript_message_content_one_item_reasoning.rb +11 -0
- data/generated/lib/runtype/types/conversation_transcript_message_content_one_item_text.rb +9 -0
- data/generated/lib/runtype/types/conversation_transcript_message_role.rb +14 -0
- data/generated/lib/runtype/types/conversation_transcript_message_tool_calls_item.rb +15 -0
- data/generated/lib/runtype/types/conversation_transcript_message_tool_results_item.rb +15 -0
- data/generated/lib/runtype/types/dispatch_agent_json_response.rb +12 -0
- data/generated/lib/runtype/types/dispatch_agent_json_response_delivery_status.rb +14 -0
- data/generated/lib/runtype/types/dispatch_agent_json_response_execution_mode.rb +1 -0
- data/generated/lib/runtype/types/eval_agent_selector.rb +13 -0
- data/generated/lib/runtype/types/eval_run_scores_response.rb +10 -0
- data/generated/lib/runtype/types/eval_run_scores_response_agent_target_resolution.rb +13 -0
- data/generated/lib/runtype/types/eval_run_scores_response_cases_item_execution_engine.rb +1 -0
- data/generated/lib/runtype/types/eval_suite_run_queued.rb +10 -0
- data/generated/lib/runtype/types/eval_suite_run_queued_agent_target_resolution.rb +13 -0
- data/generated/lib/runtype/types/input_delivery_receipt.rb +19 -0
- data/generated/lib/runtype/types/input_delivery_receipt_status.rb +14 -0
- data/generated/lib/runtype/types/preview_alias_limit_error.rb +21 -0
- data/generated/lib/runtype/types/preview_alias_limit_error_code.rb +11 -0
- data/generated/lib/runtype/types/preview_alias_limit_error_scope.rb +12 -0
- data/generated/lib/runtype/types/run_eval_response.rb +10 -0
- data/generated/lib/runtype/types/run_eval_response_agent_target_resolution.rb +13 -0
- data/generated/lib/runtype.rb +109 -26
- data/lib/runtype/agent_ensure.rb +68 -4
- data/lib/runtype/agent_release_aliases.rb +282 -0
- data/lib/runtype/client.rb +22 -1
- data/lib/runtype/errors.rb +14 -2
- data/lib/runtype/raw_client_timeout.rb +56 -0
- data/lib/runtype/sdk_version.rb +2 -1
- data/lib/runtype.rb +2 -0
- metadata +95 -10
- data/generated/lib/runtype/conversations/types/put_v1conversations_id_request_messages_item.rb +0 -17
- data/generated/lib/runtype/conversations/types/put_v1conversations_id_request_messages_item_content.rb +0 -15
- data/generated/lib/runtype/conversations/types/put_v1conversations_id_request_messages_item_content_one_item.rb +0 -21
- data/generated/lib/runtype/conversations/types/put_v1conversations_id_request_messages_item_content_one_item_asset_ref.rb +0 -21
- data/generated/lib/runtype/conversations/types/put_v1conversations_id_request_messages_item_content_one_item_file.rb +0 -15
- data/generated/lib/runtype/conversations/types/put_v1conversations_id_request_messages_item_content_one_item_image.rb +0 -13
- data/generated/lib/runtype/conversations/types/put_v1conversations_id_request_messages_item_content_one_item_text.rb +0 -11
- data/generated/lib/runtype/conversations/types/put_v1conversations_id_request_messages_item_role.rb +0 -15
|
@@ -10,6 +10,52 @@ module Runtype
|
|
|
10
10
|
@client = client
|
|
11
11
|
end
|
|
12
12
|
|
|
13
|
+
# Every agent in the caller's organization that carries a release alias with this name, with the pointer revision
|
|
14
|
+
# to quote back as `If-Match`. This is the read a "pull request closed" cleanup makes before archiving each
|
|
15
|
+
# pointer. Archived rows are omitted unless `includeArchived=true`; the built-in `live` alias is readable here
|
|
16
|
+
# like any other name.
|
|
17
|
+
#
|
|
18
|
+
# @param request_options [Hash]
|
|
19
|
+
# @param params [Hash]
|
|
20
|
+
# @option request_options [String] :base_url
|
|
21
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
22
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
23
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
24
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
25
|
+
# @option params [String] :alias_
|
|
26
|
+
# @option params [String, nil] :include_archived
|
|
27
|
+
#
|
|
28
|
+
# @example
|
|
29
|
+
# client.agent_aliases.list_release_aliases_with_one_name_across_the_organization(alias_: "alias")
|
|
30
|
+
#
|
|
31
|
+
# @return [Runtype::AgentAliases::Types::GetV1AgentAliasesResponse]
|
|
32
|
+
def list_release_aliases_with_one_name_across_the_organization(request_options: {}, **params)
|
|
33
|
+
params = Runtype::Internal::Types::Utils.normalize_keys(params)
|
|
34
|
+
query_params = {}
|
|
35
|
+
query_params["alias"] = params[:alias_] if params.key?(:alias_)
|
|
36
|
+
query_params["includeArchived"] = params[:include_archived] if params.key?(:include_archived)
|
|
37
|
+
|
|
38
|
+
request = Runtype::Internal::JSON::Request.new(
|
|
39
|
+
base_url: request_options[:base_url],
|
|
40
|
+
method: "GET",
|
|
41
|
+
path: "v1/agent-aliases",
|
|
42
|
+
query: query_params,
|
|
43
|
+
request_options: request_options
|
|
44
|
+
)
|
|
45
|
+
begin
|
|
46
|
+
response = @client.send(request)
|
|
47
|
+
rescue Net::HTTPRequestTimeout
|
|
48
|
+
raise Runtype::Errors::TimeoutError
|
|
49
|
+
end
|
|
50
|
+
code = response.code.to_i
|
|
51
|
+
if code.between?(200, 299)
|
|
52
|
+
Runtype::AgentAliases::Types::GetV1AgentAliasesResponse.load(response.body)
|
|
53
|
+
else
|
|
54
|
+
error_class = Runtype::Errors::ResponseError.subclass_for_code(code)
|
|
55
|
+
raise error_class.new(response.body, code: code)
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
|
|
13
59
|
# List the named pointers that select which immutable version of this agent runs. `live` sorts first, then the
|
|
14
60
|
# preview aliases by name. Archived aliases are omitted unless `includeArchived=true`. Omitting `limit` returns
|
|
15
61
|
# every pointer; supplying it pages through the same order with `cursor`.
|
|
@@ -108,7 +154,9 @@ module Runtype
|
|
|
108
154
|
# Aim one alias at one immutable version of the same agent, appending a deployment receipt in the same
|
|
109
155
|
# transaction. Moving an existing `live` pointer requires the AGENTS:DEPLOY:LIVE scope and an `If-Match` revision;
|
|
110
156
|
# preview aliases require AGENTS:DEPLOY:PREVIEW. Dependency references the version names are fingerprinted first,
|
|
111
|
-
# and an unresolvable reference refuses the activation.
|
|
157
|
+
# and an unresolvable reference refuses the activation. Activating a preview alias renews its 14-day expiry;
|
|
158
|
+
# `live` never expires. Creating a new preview alias past the active-preview quota answers 429 with code
|
|
159
|
+
# PREVIEW_ALIAS_LIMIT.
|
|
112
160
|
#
|
|
113
161
|
# @param request_options [Hash]
|
|
114
162
|
# @param params [Runtype::AgentAliases::Types::PutV1AgentsIDAliasesAliasRequest]
|
|
@@ -212,6 +260,159 @@ module Runtype
|
|
|
212
260
|
end
|
|
213
261
|
end
|
|
214
262
|
|
|
263
|
+
# The per-alias secret binding NAMES this pointer carries. A binding value is write-only: no read surface returns
|
|
264
|
+
# it, and it never appears on a receipt, an audit envelope or a log line.
|
|
265
|
+
#
|
|
266
|
+
# @param request_options [Hash]
|
|
267
|
+
# @param params [Hash]
|
|
268
|
+
# @option request_options [String] :base_url
|
|
269
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
270
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
271
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
272
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
273
|
+
# @option params [String] :id
|
|
274
|
+
# @option params [String] :alias_
|
|
275
|
+
#
|
|
276
|
+
# @example
|
|
277
|
+
# client.agent_aliases.read_the_secret_binding_names_of_a_release_alias(
|
|
278
|
+
# id: "id",
|
|
279
|
+
# alias_: "alias"
|
|
280
|
+
# )
|
|
281
|
+
#
|
|
282
|
+
# @return [Runtype::AgentAliases::Types::GetV1AgentsIDAliasesAliasBindingsResponse]
|
|
283
|
+
def read_the_secret_binding_names_of_a_release_alias(request_options: {}, **params)
|
|
284
|
+
params = Runtype::Internal::Types::Utils.normalize_keys(params)
|
|
285
|
+
request = Runtype::Internal::JSON::Request.new(
|
|
286
|
+
base_url: request_options[:base_url],
|
|
287
|
+
method: "GET",
|
|
288
|
+
path: "v1/agents/#{URI.encode_uri_component(params[:id].to_s)}/aliases/#{URI.encode_uri_component(params[:alias_].to_s)}/bindings",
|
|
289
|
+
request_options: request_options
|
|
290
|
+
)
|
|
291
|
+
begin
|
|
292
|
+
response = @client.send(request)
|
|
293
|
+
rescue Net::HTTPRequestTimeout
|
|
294
|
+
raise Runtype::Errors::TimeoutError
|
|
295
|
+
end
|
|
296
|
+
code = response.code.to_i
|
|
297
|
+
if code.between?(200, 299)
|
|
298
|
+
Runtype::AgentAliases::Types::GetV1AgentsIDAliasesAliasBindingsResponse.load(response.body)
|
|
299
|
+
else
|
|
300
|
+
error_class = Runtype::Errors::ResponseError.subclass_for_code(code)
|
|
301
|
+
raise error_class.new(response.body, code: code)
|
|
302
|
+
end
|
|
303
|
+
end
|
|
304
|
+
|
|
305
|
+
# Replace the complete set of `{{secret:NAME}}` values executions resolve when they reach this agent through this
|
|
306
|
+
# pointer. A binding wins over the organization secret of the same name, so one preview per pull request can aim
|
|
307
|
+
# its HTTP tools at that pull request environment while the version content stays byte-identical to what `live`
|
|
308
|
+
# runs. Whole-set replacement: a name you stop sending stops resolving. Values are encrypted at rest and never
|
|
309
|
+
# returned. Names beginning RUNTYPE_, PLATFORM_, CLOUDFLARE_ or INTERNAL_ are refused because they are
|
|
310
|
+
# platform-resolved before the alias plane. A change bumps the alias revision and appends a `bind` receipt; an
|
|
311
|
+
# identical set writes nothing. Requires the same deploy scope as activating this alias.
|
|
312
|
+
#
|
|
313
|
+
# @param request_options [Hash]
|
|
314
|
+
# @param params [Runtype::AgentAliases::Types::PutV1AgentsIDAliasesAliasBindingsRequest]
|
|
315
|
+
# @option request_options [String] :base_url
|
|
316
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
317
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
318
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
319
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
320
|
+
# @option params [String] :id
|
|
321
|
+
# @option params [String] :alias_
|
|
322
|
+
# @option params [String, nil] :if_match
|
|
323
|
+
# @option params [String, nil] :idempotency_key
|
|
324
|
+
#
|
|
325
|
+
# @example
|
|
326
|
+
# client.agent_aliases.replace_the_secret_bindings_of_a_release_alias(
|
|
327
|
+
# id: "id",
|
|
328
|
+
# alias_: "alias",
|
|
329
|
+
# bindings: {
|
|
330
|
+
# key: "value"
|
|
331
|
+
# }
|
|
332
|
+
# )
|
|
333
|
+
#
|
|
334
|
+
# @return [Runtype::AgentAliases::Types::PutV1AgentsIDAliasesAliasBindingsResponse]
|
|
335
|
+
def replace_the_secret_bindings_of_a_release_alias(request_options: {}, **params)
|
|
336
|
+
params = Runtype::Internal::Types::Utils.normalize_keys(params)
|
|
337
|
+
request_data = Runtype::AgentAliases::Types::PutV1AgentsIDAliasesAliasBindingsRequest.new(params).to_h
|
|
338
|
+
non_body_param_names = %w[id alias if-match idempotency-key]
|
|
339
|
+
body = request_data.except(*non_body_param_names)
|
|
340
|
+
|
|
341
|
+
headers = {}
|
|
342
|
+
headers["if-match"] = params[:if_match] if params[:if_match]
|
|
343
|
+
headers["idempotency-key"] = params[:idempotency_key] if params[:idempotency_key]
|
|
344
|
+
|
|
345
|
+
request = Runtype::Internal::JSON::Request.new(
|
|
346
|
+
base_url: request_options[:base_url],
|
|
347
|
+
method: "PUT",
|
|
348
|
+
path: "v1/agents/#{URI.encode_uri_component(params[:id].to_s)}/aliases/#{URI.encode_uri_component(params[:alias_].to_s)}/bindings",
|
|
349
|
+
headers: headers,
|
|
350
|
+
body: body,
|
|
351
|
+
request_options: request_options
|
|
352
|
+
)
|
|
353
|
+
begin
|
|
354
|
+
response = @client.send(request)
|
|
355
|
+
rescue Net::HTTPRequestTimeout
|
|
356
|
+
raise Runtype::Errors::TimeoutError
|
|
357
|
+
end
|
|
358
|
+
code = response.code.to_i
|
|
359
|
+
if code.between?(200, 299)
|
|
360
|
+
Runtype::AgentAliases::Types::PutV1AgentsIDAliasesAliasBindingsResponse.load(response.body)
|
|
361
|
+
else
|
|
362
|
+
error_class = Runtype::Errors::ResponseError.subclass_for_code(code)
|
|
363
|
+
raise error_class.new(response.body, code: code)
|
|
364
|
+
end
|
|
365
|
+
end
|
|
366
|
+
|
|
367
|
+
# Remove every per-alias secret binding from this pointer, so its executions fall back to the organization
|
|
368
|
+
# secrets. Equivalent to replacing the set with an empty object.
|
|
369
|
+
#
|
|
370
|
+
# @param request_options [Hash]
|
|
371
|
+
# @param params [Hash]
|
|
372
|
+
# @option request_options [String] :base_url
|
|
373
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
374
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
375
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
376
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
377
|
+
# @option params [String] :id
|
|
378
|
+
# @option params [String] :alias_
|
|
379
|
+
# @option params [String, nil] :if_match
|
|
380
|
+
# @option params [String, nil] :idempotency_key
|
|
381
|
+
#
|
|
382
|
+
# @example
|
|
383
|
+
# client.agent_aliases.clear_the_secret_bindings_of_a_release_alias(
|
|
384
|
+
# id: "id",
|
|
385
|
+
# alias_: "alias"
|
|
386
|
+
# )
|
|
387
|
+
#
|
|
388
|
+
# @return [Runtype::AgentAliases::Types::DeleteV1AgentsIDAliasesAliasBindingsResponse]
|
|
389
|
+
def clear_the_secret_bindings_of_a_release_alias(request_options: {}, **params)
|
|
390
|
+
params = Runtype::Internal::Types::Utils.normalize_keys(params)
|
|
391
|
+
headers = {}
|
|
392
|
+
headers["if-match"] = params[:if_match] if params[:if_match]
|
|
393
|
+
headers["idempotency-key"] = params[:idempotency_key] if params[:idempotency_key]
|
|
394
|
+
|
|
395
|
+
request = Runtype::Internal::JSON::Request.new(
|
|
396
|
+
base_url: request_options[:base_url],
|
|
397
|
+
method: "DELETE",
|
|
398
|
+
path: "v1/agents/#{URI.encode_uri_component(params[:id].to_s)}/aliases/#{URI.encode_uri_component(params[:alias_].to_s)}/bindings",
|
|
399
|
+
headers: headers,
|
|
400
|
+
request_options: request_options
|
|
401
|
+
)
|
|
402
|
+
begin
|
|
403
|
+
response = @client.send(request)
|
|
404
|
+
rescue Net::HTTPRequestTimeout
|
|
405
|
+
raise Runtype::Errors::TimeoutError
|
|
406
|
+
end
|
|
407
|
+
code = response.code.to_i
|
|
408
|
+
if code.between?(200, 299)
|
|
409
|
+
Runtype::AgentAliases::Types::DeleteV1AgentsIDAliasesAliasBindingsResponse.load(response.body)
|
|
410
|
+
else
|
|
411
|
+
error_class = Runtype::Errors::ResponseError.subclass_for_code(code)
|
|
412
|
+
raise error_class.new(response.body, code: code)
|
|
413
|
+
end
|
|
414
|
+
end
|
|
415
|
+
|
|
215
416
|
# Re-aim an alias at the version recorded as `previousVersionId` on its most recent pointer-moving receipt,
|
|
216
417
|
# walking `steps` receipts back. Writes a `rollback` receipt. Rolling back `live` follows the same scope and
|
|
217
418
|
# `If-Match` rules as activation, and restores configuration only: external data and side effects are not rolled
|
data/generated/lib/runtype/agent_aliases/types/delete_v1agents_id_aliases_alias_bindings_request.rb
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module AgentAliases
|
|
5
|
+
module Types
|
|
6
|
+
class DeleteV1AgentsIDAliasesAliasBindingsRequest < Internal::Types::Model
|
|
7
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :alias_, -> { String }, optional: false, nullable: false, api_name: "alias"
|
|
10
|
+
|
|
11
|
+
field :if_match, -> { String }, optional: true, nullable: false, api_name: "if-match"
|
|
12
|
+
|
|
13
|
+
field :idempotency_key, -> { String }, optional: true, nullable: false, api_name: "idempotency-key"
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
data/generated/lib/runtype/agent_aliases/types/delete_v1agents_id_aliases_alias_bindings_response.rb
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module AgentAliases
|
|
5
|
+
module Types
|
|
6
|
+
class DeleteV1AgentsIDAliasesAliasBindingsResponse < Internal::Types::Model
|
|
7
|
+
field :alias_, -> { String }, optional: false, nullable: false, api_name: "alias"
|
|
8
|
+
|
|
9
|
+
field :changed, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
10
|
+
|
|
11
|
+
field :names, -> { Internal::Types::Array[String] }, optional: false, nullable: false
|
|
12
|
+
|
|
13
|
+
field :receipt_id, -> { String }, optional: true, nullable: false, api_name: "receiptId"
|
|
14
|
+
|
|
15
|
+
field :revision, -> { Integer }, optional: false, nullable: false
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module AgentAliases
|
|
5
|
+
module Types
|
|
6
|
+
class GetV1AgentAliasesRequest < Internal::Types::Model
|
|
7
|
+
field :alias_, -> { String }, optional: false, nullable: false, api_name: "alias"
|
|
8
|
+
|
|
9
|
+
field :include_archived, -> { String }, optional: true, nullable: false, api_name: "includeArchived"
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module AgentAliases
|
|
5
|
+
module Types
|
|
6
|
+
class GetV1AgentAliasesResponse < Internal::Types::Model
|
|
7
|
+
field :data, -> { Internal::Types::Array[Runtype::AgentAliases::Types::GetV1AgentAliasesResponseDataItem] }, optional: false, nullable: false
|
|
8
|
+
end
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module AgentAliases
|
|
5
|
+
module Types
|
|
6
|
+
class GetV1AgentAliasesResponseDataItem < Internal::Types::Model
|
|
7
|
+
field :agent_id, -> { String }, optional: false, nullable: false, api_name: "agentId"
|
|
8
|
+
|
|
9
|
+
field :agent_name, -> { String }, optional: false, nullable: false, api_name: "agentName"
|
|
10
|
+
|
|
11
|
+
field :alias_, -> { String }, optional: false, nullable: false, api_name: "alias"
|
|
12
|
+
|
|
13
|
+
field :archived_at, -> { String }, optional: false, nullable: true, api_name: "archivedAt"
|
|
14
|
+
|
|
15
|
+
field :expires_at, -> { String }, optional: false, nullable: true, api_name: "expiresAt"
|
|
16
|
+
|
|
17
|
+
field :revision, -> { Integer }, optional: false, nullable: false
|
|
18
|
+
|
|
19
|
+
field :updated_at, -> { String }, optional: false, nullable: false, api_name: "updatedAt"
|
|
20
|
+
|
|
21
|
+
field :version_id, -> { String }, optional: false, nullable: false, api_name: "versionId"
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
data/generated/lib/runtype/agent_aliases/types/get_v1agents_id_aliases_alias_bindings_request.rb
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module AgentAliases
|
|
5
|
+
module Types
|
|
6
|
+
class GetV1AgentsIDAliasesAliasBindingsRequest < Internal::Types::Model
|
|
7
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :alias_, -> { String }, optional: false, nullable: false, api_name: "alias"
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
data/generated/lib/runtype/agent_aliases/types/get_v1agents_id_aliases_alias_bindings_response.rb
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module AgentAliases
|
|
5
|
+
module Types
|
|
6
|
+
class GetV1AgentsIDAliasesAliasBindingsResponse < Internal::Types::Model
|
|
7
|
+
field :alias_, -> { String }, optional: false, nullable: false, api_name: "alias"
|
|
8
|
+
|
|
9
|
+
field :changed, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
10
|
+
|
|
11
|
+
field :names, -> { Internal::Types::Array[String] }, optional: false, nullable: false
|
|
12
|
+
|
|
13
|
+
field :receipt_id, -> { String }, optional: true, nullable: false, api_name: "receiptId"
|
|
14
|
+
|
|
15
|
+
field :revision, -> { Integer }, optional: false, nullable: false
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -8,6 +8,8 @@ module Runtype
|
|
|
8
8
|
|
|
9
9
|
field :archived_at, -> { String }, optional: false, nullable: true, api_name: "archivedAt"
|
|
10
10
|
|
|
11
|
+
field :binding_names, -> { Internal::Types::Array[String] }, optional: false, nullable: false, api_name: "bindingNames"
|
|
12
|
+
|
|
11
13
|
field :content_hash, -> { String }, optional: false, nullable: true, api_name: "contentHash"
|
|
12
14
|
|
|
13
15
|
field :created_at, -> { String }, optional: false, nullable: false, api_name: "createdAt"
|
data/generated/lib/runtype/agent_aliases/types/get_v1agents_id_aliases_response_data_item.rb
CHANGED
|
@@ -8,6 +8,8 @@ module Runtype
|
|
|
8
8
|
|
|
9
9
|
field :archived_at, -> { String }, optional: false, nullable: true, api_name: "archivedAt"
|
|
10
10
|
|
|
11
|
+
field :binding_names, -> { Internal::Types::Array[String] }, optional: false, nullable: false, api_name: "bindingNames"
|
|
12
|
+
|
|
11
13
|
field :content_hash, -> { String }, optional: false, nullable: true, api_name: "contentHash"
|
|
12
14
|
|
|
13
15
|
field :created_at, -> { String }, optional: false, nullable: false, api_name: "createdAt"
|
data/generated/lib/runtype/agent_aliases/types/get_v1agents_id_deployments_response_data_item.rb
CHANGED
|
@@ -12,6 +12,8 @@ module Runtype
|
|
|
12
12
|
|
|
13
13
|
field :alias_revision, -> { Integer }, optional: false, nullable: false, api_name: "aliasRevision"
|
|
14
14
|
|
|
15
|
+
field :bindings, -> { Internal::Types::Hash[String, Object] }, optional: false, nullable: true
|
|
16
|
+
|
|
15
17
|
field :created_at, -> { String }, optional: false, nullable: false, api_name: "createdAt"
|
|
16
18
|
|
|
17
19
|
field :dependencies, -> { Internal::Types::Hash[String, Object] }, optional: false, nullable: true
|
data/generated/lib/runtype/agent_aliases/types/post_v1agents_id_aliases_alias_rollback_response.rb
CHANGED
|
@@ -4,10 +4,16 @@ module Runtype
|
|
|
4
4
|
module AgentAliases
|
|
5
5
|
module Types
|
|
6
6
|
class PostV1AgentsIDAliasesAliasRollbackResponse < Internal::Types::Model
|
|
7
|
+
field :active_preview_count, -> { Integer }, optional: false, nullable: true, api_name: "activePreviewCount"
|
|
8
|
+
|
|
7
9
|
field :alias_, -> { String }, optional: false, nullable: false, api_name: "alias"
|
|
8
10
|
|
|
11
|
+
field :binding_names, -> { Internal::Types::Array[String] }, optional: false, nullable: false, api_name: "bindingNames"
|
|
12
|
+
|
|
9
13
|
field :changed, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
10
14
|
|
|
15
|
+
field :preview_limit, -> { Integer }, optional: false, nullable: true, api_name: "previewLimit"
|
|
16
|
+
|
|
11
17
|
field :receipt_id, -> { String }, optional: false, nullable: false, api_name: "receiptId"
|
|
12
18
|
|
|
13
19
|
field :revision, -> { Integer }, optional: false, nullable: false
|
data/generated/lib/runtype/agent_aliases/types/put_v1agents_id_aliases_alias_bindings_request.rb
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module AgentAliases
|
|
5
|
+
module Types
|
|
6
|
+
class PutV1AgentsIDAliasesAliasBindingsRequest < Internal::Types::Model
|
|
7
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :alias_, -> { String }, optional: false, nullable: false, api_name: "alias"
|
|
10
|
+
|
|
11
|
+
field :if_match, -> { String }, optional: true, nullable: false, api_name: "if-match"
|
|
12
|
+
|
|
13
|
+
field :idempotency_key, -> { String }, optional: true, nullable: false, api_name: "idempotency-key"
|
|
14
|
+
|
|
15
|
+
field :bindings, -> { Internal::Types::Hash[String, String] }, optional: false, nullable: false
|
|
16
|
+
|
|
17
|
+
field :reason, -> { String }, optional: true, nullable: false
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
data/generated/lib/runtype/agent_aliases/types/put_v1agents_id_aliases_alias_bindings_response.rb
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module AgentAliases
|
|
5
|
+
module Types
|
|
6
|
+
class PutV1AgentsIDAliasesAliasBindingsResponse < Internal::Types::Model
|
|
7
|
+
field :alias_, -> { String }, optional: false, nullable: false, api_name: "alias"
|
|
8
|
+
|
|
9
|
+
field :changed, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
10
|
+
|
|
11
|
+
field :names, -> { Internal::Types::Array[String] }, optional: false, nullable: false
|
|
12
|
+
|
|
13
|
+
field :receipt_id, -> { String }, optional: true, nullable: false, api_name: "receiptId"
|
|
14
|
+
|
|
15
|
+
field :revision, -> { Integer }, optional: false, nullable: false
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -12,6 +12,8 @@ module Runtype
|
|
|
12
12
|
|
|
13
13
|
field :idempotency_key, -> { String }, optional: true, nullable: false, api_name: "idempotency-key"
|
|
14
14
|
|
|
15
|
+
field :promotion, -> { Runtype::Types::AgentDeploymentPromotion }, optional: true, nullable: false
|
|
16
|
+
|
|
15
17
|
field :reason, -> { String }, optional: true, nullable: false
|
|
16
18
|
|
|
17
19
|
field :version_id, -> { String }, optional: false, nullable: false, api_name: "versionId"
|
|
@@ -4,10 +4,16 @@ module Runtype
|
|
|
4
4
|
module AgentAliases
|
|
5
5
|
module Types
|
|
6
6
|
class PutV1AgentsIDAliasesAliasResponse < Internal::Types::Model
|
|
7
|
+
field :active_preview_count, -> { Integer }, optional: false, nullable: true, api_name: "activePreviewCount"
|
|
8
|
+
|
|
7
9
|
field :alias_, -> { String }, optional: false, nullable: false, api_name: "alias"
|
|
8
10
|
|
|
11
|
+
field :binding_names, -> { Internal::Types::Array[String] }, optional: false, nullable: false, api_name: "bindingNames"
|
|
12
|
+
|
|
9
13
|
field :changed, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
10
14
|
|
|
15
|
+
field :preview_limit, -> { Integer }, optional: false, nullable: true, api_name: "previewLimit"
|
|
16
|
+
|
|
11
17
|
field :receipt_id, -> { String }, optional: false, nullable: false, api_name: "receiptId"
|
|
12
18
|
|
|
13
19
|
field :revision, -> { Integer }, optional: false, nullable: false
|
|
@@ -50,6 +50,11 @@ module Runtype
|
|
|
50
50
|
end
|
|
51
51
|
end
|
|
52
52
|
|
|
53
|
+
# Apply an immutable version to the live agent row and move the `live` release alias, in one transaction. Until
|
|
54
|
+
# the omitted-selector cutover this is the writer that changes what actually executes, so it is the verb a live
|
|
55
|
+
# deployment uses; the alias activate route owns preview pointers. Supplying `If-Match` opts this call into the
|
|
56
|
+
# same protected-live compare-and-swap the alias routes enforce.
|
|
57
|
+
#
|
|
53
58
|
# @param request_options [Hash]
|
|
54
59
|
# @param params [Runtype::AgentVersions::Types::PostV1AgentVersionsAgentIDPublishRequest]
|
|
55
60
|
# @option request_options [String] :base_url
|
|
@@ -58,6 +63,8 @@ module Runtype
|
|
|
58
63
|
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
59
64
|
# @option request_options [Integer] :timeout_in_seconds
|
|
60
65
|
# @option params [String] :agent_id
|
|
66
|
+
# @option params [String, nil] :if_match
|
|
67
|
+
# @option params [String, nil] :idempotency_key
|
|
61
68
|
#
|
|
62
69
|
# @example
|
|
63
70
|
# client.agent_versions.publish_a_specific_agent_version(
|
|
@@ -69,13 +76,18 @@ module Runtype
|
|
|
69
76
|
def publish_a_specific_agent_version(request_options: {}, **params)
|
|
70
77
|
params = Runtype::Internal::Types::Utils.normalize_keys(params)
|
|
71
78
|
request_data = Runtype::AgentVersions::Types::PostV1AgentVersionsAgentIDPublishRequest.new(params).to_h
|
|
72
|
-
non_body_param_names = %w[agentId]
|
|
79
|
+
non_body_param_names = %w[agentId if-match idempotency-key]
|
|
73
80
|
body = request_data.except(*non_body_param_names)
|
|
74
81
|
|
|
82
|
+
headers = {}
|
|
83
|
+
headers["if-match"] = params[:if_match] if params[:if_match]
|
|
84
|
+
headers["idempotency-key"] = params[:idempotency_key] if params[:idempotency_key]
|
|
85
|
+
|
|
75
86
|
request = Runtype::Internal::JSON::Request.new(
|
|
76
87
|
base_url: request_options[:base_url],
|
|
77
88
|
method: "POST",
|
|
78
89
|
path: "v1/agent-versions/#{URI.encode_uri_component(params[:agent_id].to_s)}/publish",
|
|
90
|
+
headers: headers,
|
|
79
91
|
body: body,
|
|
80
92
|
request_options: request_options
|
|
81
93
|
)
|
data/generated/lib/runtype/agent_versions/types/post_v1agent_versions_agent_id_publish_request.rb
CHANGED
|
@@ -6,6 +6,12 @@ module Runtype
|
|
|
6
6
|
class PostV1AgentVersionsAgentIDPublishRequest < Internal::Types::Model
|
|
7
7
|
field :agent_id, -> { String }, optional: false, nullable: false, api_name: "agentId"
|
|
8
8
|
|
|
9
|
+
field :if_match, -> { String }, optional: true, nullable: false, api_name: "if-match"
|
|
10
|
+
|
|
11
|
+
field :idempotency_key, -> { String }, optional: true, nullable: false, api_name: "idempotency-key"
|
|
12
|
+
|
|
13
|
+
field :deployment, -> { Runtype::AgentVersions::Types::PostV1AgentVersionsAgentIDPublishRequestDeployment }, optional: true, nullable: false
|
|
14
|
+
|
|
9
15
|
field :on_conflict, -> { Runtype::AgentVersions::Types::PostV1AgentVersionsAgentIDPublishRequestOnConflict }, optional: true, nullable: false, api_name: "onConflict"
|
|
10
16
|
|
|
11
17
|
field :version_id, -> { String }, optional: false, nullable: false, api_name: "versionId"
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module AgentVersions
|
|
5
|
+
module Types
|
|
6
|
+
class PostV1AgentVersionsAgentIDPublishRequestDeployment < Internal::Types::Model
|
|
7
|
+
field :action, -> { Runtype::AgentVersions::Types::PostV1AgentVersionsAgentIDPublishRequestDeploymentAction }, optional: true, nullable: false
|
|
8
|
+
end
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module AgentVersions
|
|
5
|
+
module Types
|
|
6
|
+
module PostV1AgentVersionsAgentIDPublishRequestDeploymentAction
|
|
7
|
+
extend Runtype::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
ACTIVATE = "activate"
|
|
10
|
+
ROLLBACK = "rollback"
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
data/generated/lib/runtype/agent_versions/types/post_v1agent_versions_agent_id_publish_response.rb
CHANGED
|
@@ -6,7 +6,7 @@ module Runtype
|
|
|
6
6
|
class PostV1AgentVersionsAgentIDPublishResponse < Internal::Types::Model
|
|
7
7
|
field :agent_id, -> { String }, optional: false, nullable: false, api_name: "agentId"
|
|
8
8
|
|
|
9
|
-
field :applied, -> { Internal::Types::Hash[String, Internal::Types::Boolean] }, optional:
|
|
9
|
+
field :applied, -> { Internal::Types::Hash[String, Internal::Types::Boolean] }, optional: true, nullable: false
|
|
10
10
|
|
|
11
11
|
field :last_modified_source, -> { Runtype::AgentVersions::Types::PostV1AgentVersionsAgentIDPublishResponseLastModifiedSource }, optional: false, nullable: false, api_name: "lastModifiedSource"
|
|
12
12
|
|
data/generated/lib/runtype/agents/types/post_v1agents_ensure_request_definition_config_memory.rb
CHANGED
|
@@ -8,6 +8,8 @@ module Runtype
|
|
|
8
8
|
|
|
9
9
|
field :inject_summary, -> { Internal::Types::Boolean }, optional: true, nullable: false, api_name: "injectSummary"
|
|
10
10
|
|
|
11
|
+
field :pointer_scope, -> { Runtype::Agents::Types::PostV1AgentsEnsureRequestDefinitionConfigMemoryPointerScope }, optional: true, nullable: false, api_name: "pointerScope"
|
|
12
|
+
|
|
11
13
|
field :profile_template, -> { String }, optional: true, nullable: false, api_name: "profileTemplate"
|
|
12
14
|
end
|
|
13
15
|
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Agents
|
|
5
|
+
module Types
|
|
6
|
+
module PostV1AgentsEnsureRequestDefinitionConfigMemoryPointerScope
|
|
7
|
+
extend Runtype::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
SHARED = "shared"
|
|
10
|
+
ALIAS = "alias"
|
|
11
|
+
VERSION = "version"
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -8,6 +8,8 @@ module Runtype
|
|
|
8
8
|
|
|
9
9
|
field :inject_summary, -> { Internal::Types::Boolean }, optional: true, nullable: false, api_name: "injectSummary"
|
|
10
10
|
|
|
11
|
+
field :pointer_scope, -> { Runtype::Agents::Types::PostV1AgentsRequestConfigMemoryPointerScope }, optional: true, nullable: false, api_name: "pointerScope"
|
|
12
|
+
|
|
11
13
|
field :profile_template, -> { String }, optional: true, nullable: false, api_name: "profileTemplate"
|
|
12
14
|
end
|
|
13
15
|
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Agents
|
|
5
|
+
module Types
|
|
6
|
+
module PostV1AgentsRequestConfigMemoryPointerScope
|
|
7
|
+
extend Runtype::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
SHARED = "shared"
|
|
10
|
+
ALIAS = "alias"
|
|
11
|
+
VERSION = "version"
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -8,6 +8,8 @@ module Runtype
|
|
|
8
8
|
|
|
9
9
|
field :inject_summary, -> { Internal::Types::Boolean }, optional: true, nullable: false, api_name: "injectSummary"
|
|
10
10
|
|
|
11
|
+
field :pointer_scope, -> { Runtype::Agents::Types::PutV1AgentsIDRequestConfigMemoryPointerScope }, optional: true, nullable: false, api_name: "pointerScope"
|
|
12
|
+
|
|
11
13
|
field :profile_template, -> { String }, optional: true, nullable: false, api_name: "profileTemplate"
|
|
12
14
|
end
|
|
13
15
|
end
|
data/generated/lib/runtype/agents/types/put_v1agents_id_request_config_memory_pointer_scope.rb
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Agents
|
|
5
|
+
module Types
|
|
6
|
+
module PutV1AgentsIDRequestConfigMemoryPointerScope
|
|
7
|
+
extend Runtype::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
SHARED = "shared"
|
|
10
|
+
ALIAS = "alias"
|
|
11
|
+
VERSION = "version"
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|