rocket_stack_sdk 1.0.2 → 1.0.4
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/README.md +31 -13
- data/docs/CreateCronJob201ResponseData.md +3 -1
- data/docs/CreateCronJobRequestDeliveryTarget.md +9 -9
- data/docs/CreateCronJobRequestDeliveryTargetAnyOf.md +30 -0
- data/docs/CreateCronJobRequestDeliveryTargetAnyOf1.md +30 -0
- data/docs/CreateCronJobRequestSchedule.md +1 -1
- data/docs/CreateDownloadUrlRequest.md +1 -1
- data/docs/CreateQueueRequestDeliveryTarget.md +9 -9
- data/docs/CreateQueueRequestDeliveryTargetAnyOf.md +30 -0
- data/docs/CreateQueueRequestDeliveryTargetAnyOf1.md +30 -0
- data/docs/CreateScheduleRequest.md +1 -1
- data/docs/CronApi.md +85 -7
- data/docs/DeleteCronJob200Response.md +22 -0
- data/docs/DeleteCronJob200ResponseData.md +20 -0
- data/docs/FinalizeUploadRequest.md +1 -1
- data/docs/FunctionsApi.md +72 -2
- data/docs/GetFunctionCode200Response.md +22 -0
- data/docs/GetFunctionCode200ResponseData.md +28 -0
- data/docs/GetFunctionCode200ResponseDataFilesInner.md +20 -0
- data/docs/GetMessageStatus200Response.md +1 -1
- data/docs/GetMessageStatus200ResponseData.md +2 -2
- data/docs/InvokeFunctionRequest.md +2 -2
- data/docs/KvApi.md +26 -26
- data/docs/ListCronInvocations200Response.md +22 -0
- data/docs/ListCronInvocations200ResponseData.md +20 -0
- data/docs/ListCronInvocations200ResponseDataItemsInner.md +42 -0
- data/docs/ListQueueMessages200Response.md +22 -0
- data/docs/ListQueueMessages200ResponseData.md +20 -0
- data/docs/ListQueueMessages200ResponseDataItemsInner.md +32 -0
- data/docs/PutKvItemRequest.md +3 -3
- data/docs/QueuesApi.md +80 -2
- data/docs/ResourcesApi.md +1 -1
- data/docs/SchedulerApi.md +81 -3
- data/docs/StorageApi.md +5 -5
- data/docs/UpdateCronJobRequestSchedule.md +1 -1
- data/docs/UpdateScheduleRequest.md +1 -1
- data/lib/rocket_stack_sdk/api/cron_api.rb +92 -8
- data/lib/rocket_stack_sdk/api/functions_api.rb +68 -5
- data/lib/rocket_stack_sdk/api/kv_api.rb +38 -50
- data/lib/rocket_stack_sdk/api/queues_api.rb +89 -5
- data/lib/rocket_stack_sdk/api/resources_api.rb +3 -3
- data/lib/rocket_stack_sdk/api/scheduler_api.rb +89 -5
- data/lib/rocket_stack_sdk/api/storage_api.rb +9 -9
- data/lib/rocket_stack_sdk/api_client.rb +3 -3
- data/lib/rocket_stack_sdk/api_error.rb +3 -3
- data/lib/rocket_stack_sdk/api_model_base.rb +3 -3
- data/lib/rocket_stack_sdk/configuration.rb +5 -5
- data/lib/rocket_stack_sdk/models/create_cron_job201_response.rb +3 -3
- data/lib/rocket_stack_sdk/models/create_cron_job201_response_data.rb +33 -7
- data/lib/rocket_stack_sdk/models/create_cron_job_request.rb +3 -3
- data/lib/rocket_stack_sdk/models/create_cron_job_request_delivery_target.rb +79 -319
- data/lib/rocket_stack_sdk/models/create_cron_job_request_delivery_target_any_of.rb +351 -0
- data/lib/rocket_stack_sdk/models/create_cron_job_request_delivery_target_any_of1.rb +351 -0
- data/lib/rocket_stack_sdk/models/create_cron_job_request_schedule.rb +3 -5
- data/lib/rocket_stack_sdk/models/create_download_url200_response.rb +3 -3
- data/lib/rocket_stack_sdk/models/create_download_url200_response_data.rb +3 -3
- data/lib/rocket_stack_sdk/models/create_download_url_request.rb +4 -3
- data/lib/rocket_stack_sdk/models/create_function202_response.rb +3 -3
- data/lib/rocket_stack_sdk/models/create_function202_response_data.rb +3 -3
- data/lib/rocket_stack_sdk/models/create_queue201_response.rb +3 -3
- data/lib/rocket_stack_sdk/models/create_queue201_response_data.rb +3 -3
- data/lib/rocket_stack_sdk/models/create_queue_request.rb +3 -3
- data/lib/rocket_stack_sdk/models/create_queue_request_delivery_target.rb +79 -319
- data/lib/rocket_stack_sdk/models/create_queue_request_delivery_target_any_of.rb +351 -0
- data/lib/rocket_stack_sdk/models/create_queue_request_delivery_target_any_of1.rb +351 -0
- data/lib/rocket_stack_sdk/models/create_schedule201_response.rb +3 -3
- data/lib/rocket_stack_sdk/models/create_schedule201_response_data.rb +3 -3
- data/lib/rocket_stack_sdk/models/create_schedule_request.rb +4 -3
- data/lib/rocket_stack_sdk/models/delete_cron_job200_response.rb +182 -0
- data/lib/rocket_stack_sdk/models/delete_cron_job200_response_data.rb +190 -0
- data/lib/rocket_stack_sdk/models/delete_kv_item200_response.rb +3 -3
- data/lib/rocket_stack_sdk/models/delete_kv_item200_response_data.rb +3 -3
- data/lib/rocket_stack_sdk/models/enqueue_message201_response.rb +3 -3
- data/lib/rocket_stack_sdk/models/enqueue_message201_response_data.rb +3 -3
- data/lib/rocket_stack_sdk/models/enqueue_message_request.rb +3 -3
- data/lib/rocket_stack_sdk/models/finalize_upload200_response.rb +3 -3
- data/lib/rocket_stack_sdk/models/finalize_upload200_response_data.rb +3 -3
- data/lib/rocket_stack_sdk/models/finalize_upload_request.rb +4 -3
- data/lib/rocket_stack_sdk/models/get_cron_job200_response.rb +3 -3
- data/lib/rocket_stack_sdk/models/get_function200_response.rb +3 -3
- data/lib/rocket_stack_sdk/models/get_function_code200_response.rb +182 -0
- data/lib/rocket_stack_sdk/models/get_function_code200_response_data.rb +290 -0
- data/lib/rocket_stack_sdk/models/get_function_code200_response_data_files_inner.rb +190 -0
- data/lib/rocket_stack_sdk/models/get_kv_item200_response.rb +3 -3
- data/lib/rocket_stack_sdk/models/get_kv_item200_response_data.rb +3 -3
- data/lib/rocket_stack_sdk/models/get_message_status200_response.rb +4 -4
- data/lib/rocket_stack_sdk/models/get_message_status200_response_data.rb +4 -4
- data/lib/rocket_stack_sdk/models/get_queue200_response.rb +3 -3
- data/lib/rocket_stack_sdk/models/get_schedule200_response.rb +3 -3
- data/lib/rocket_stack_sdk/models/get_schedule_status200_response.rb +3 -3
- data/lib/rocket_stack_sdk/models/get_schedule_status200_response_data.rb +3 -3
- data/lib/rocket_stack_sdk/models/get_template200_response.rb +3 -3
- data/lib/rocket_stack_sdk/models/invoke_function200_response.rb +3 -3
- data/lib/rocket_stack_sdk/models/invoke_function200_response_data.rb +3 -3
- data/lib/rocket_stack_sdk/models/invoke_function_request.rb +3 -7
- data/lib/rocket_stack_sdk/models/list_capabilities200_response.rb +3 -3
- data/lib/rocket_stack_sdk/models/list_capabilities200_response_data_inner.rb +3 -3
- data/lib/rocket_stack_sdk/models/list_cron_invocations200_response.rb +182 -0
- data/lib/rocket_stack_sdk/models/list_cron_invocations200_response_data.rb +176 -0
- data/lib/rocket_stack_sdk/models/list_cron_invocations200_response_data_items_inner.rb +347 -0
- data/lib/rocket_stack_sdk/models/list_cron_jobs200_response.rb +3 -3
- data/lib/rocket_stack_sdk/models/list_cron_jobs200_response_data.rb +3 -3
- data/lib/rocket_stack_sdk/models/list_cron_jobs200_response_data_items_inner.rb +3 -3
- data/lib/rocket_stack_sdk/models/list_cron_jobs200_response_data_items_inner_schedule.rb +3 -3
- data/lib/rocket_stack_sdk/models/list_functions200_response.rb +3 -3
- data/lib/rocket_stack_sdk/models/list_functions200_response_data.rb +3 -3
- data/lib/rocket_stack_sdk/models/list_functions200_response_data_items_inner.rb +3 -3
- data/lib/rocket_stack_sdk/models/list_functions200_response_data_items_inner_actual_spec.rb +3 -3
- data/lib/rocket_stack_sdk/models/list_functions200_response_data_items_inner_desired_spec.rb +3 -3
- data/lib/rocket_stack_sdk/models/list_functions200_response_data_items_inner_desired_spec_code.rb +3 -3
- data/lib/rocket_stack_sdk/models/list_functions200_response_error.rb +3 -3
- data/lib/rocket_stack_sdk/models/list_functions401_response.rb +3 -3
- data/lib/rocket_stack_sdk/models/list_kv_items200_response.rb +3 -3
- data/lib/rocket_stack_sdk/models/list_kv_items200_response_data.rb +3 -3
- data/lib/rocket_stack_sdk/models/list_kv_items200_response_data_items_inner.rb +3 -3
- data/lib/rocket_stack_sdk/models/list_queue_messages200_response.rb +182 -0
- data/lib/rocket_stack_sdk/models/list_queue_messages200_response_data.rb +176 -0
- data/lib/rocket_stack_sdk/models/list_queue_messages200_response_data_items_inner.rb +312 -0
- data/lib/rocket_stack_sdk/models/list_queues200_response.rb +3 -3
- data/lib/rocket_stack_sdk/models/list_queues200_response_data.rb +3 -3
- data/lib/rocket_stack_sdk/models/list_queues200_response_data_items_inner.rb +3 -3
- data/lib/rocket_stack_sdk/models/list_queues200_response_data_items_inner_delivery_target.rb +3 -3
- data/lib/rocket_stack_sdk/models/list_schedules200_response.rb +3 -3
- data/lib/rocket_stack_sdk/models/list_schedules200_response_data.rb +3 -3
- data/lib/rocket_stack_sdk/models/list_schedules200_response_data_items_inner.rb +3 -3
- data/lib/rocket_stack_sdk/models/list_snippets200_response.rb +3 -3
- data/lib/rocket_stack_sdk/models/list_snippets200_response_data_inner.rb +3 -3
- data/lib/rocket_stack_sdk/models/list_storage_objects200_response.rb +3 -3
- data/lib/rocket_stack_sdk/models/list_storage_objects200_response_data.rb +3 -3
- data/lib/rocket_stack_sdk/models/list_storage_objects200_response_data_items_inner.rb +3 -3
- data/lib/rocket_stack_sdk/models/list_templates200_response.rb +3 -3
- data/lib/rocket_stack_sdk/models/list_templates200_response_data_inner.rb +3 -3
- data/lib/rocket_stack_sdk/models/put_kv_item200_response.rb +3 -3
- data/lib/rocket_stack_sdk/models/put_kv_item200_response_data.rb +3 -3
- data/lib/rocket_stack_sdk/models/put_kv_item_request.rb +7 -4
- data/lib/rocket_stack_sdk/models/put_kv_item_request_if_version.rb +4 -3
- data/lib/rocket_stack_sdk/models/update_cron_job200_response.rb +3 -3
- data/lib/rocket_stack_sdk/models/update_cron_job200_response_data.rb +3 -3
- data/lib/rocket_stack_sdk/models/update_cron_job_request.rb +3 -3
- data/lib/rocket_stack_sdk/models/update_cron_job_request_schedule.rb +3 -5
- data/lib/rocket_stack_sdk/models/update_function_request.rb +3 -3
- data/lib/rocket_stack_sdk/models/update_queue200_response.rb +3 -3
- data/lib/rocket_stack_sdk/models/update_queue200_response_data.rb +3 -3
- data/lib/rocket_stack_sdk/models/update_queue_request.rb +3 -3
- data/lib/rocket_stack_sdk/models/update_schedule200_response.rb +3 -3
- data/lib/rocket_stack_sdk/models/update_schedule200_response_data.rb +3 -3
- data/lib/rocket_stack_sdk/models/update_schedule_request.rb +4 -3
- data/lib/rocket_stack_sdk/models/upload_object201_response.rb +3 -3
- data/lib/rocket_stack_sdk/models/upload_object201_response_data.rb +3 -3
- data/lib/rocket_stack_sdk/version.rb +4 -4
- data/lib/rocket_stack_sdk.rb +18 -4
- data/rocket_stack_sdk.gemspec +5 -5
- data/spec/models/create_cron_job_request_delivery_target_any_of1_spec.rb +76 -0
- data/spec/models/create_cron_job_request_delivery_target_any_of_spec.rb +76 -0
- data/spec/models/create_queue_request_delivery_target_any_of1_spec.rb +76 -0
- data/spec/models/create_queue_request_delivery_target_any_of_spec.rb +76 -0
- data/spec/models/delete_cron_job200_response_data_spec.rb +42 -0
- data/spec/models/delete_cron_job200_response_spec.rb +48 -0
- data/spec/models/get_function_code200_response_data_files_inner_spec.rb +42 -0
- data/spec/models/get_function_code200_response_data_spec.rb +74 -0
- data/spec/models/get_function_code200_response_spec.rb +48 -0
- data/spec/models/list_cron_invocations200_response_data_items_inner_spec.rb +112 -0
- data/spec/models/list_cron_invocations200_response_data_spec.rb +42 -0
- data/spec/models/list_cron_invocations200_response_spec.rb +48 -0
- data/spec/models/list_queue_messages200_response_data_items_inner_spec.rb +78 -0
- data/spec/models/list_queue_messages200_response_data_spec.rb +42 -0
- data/spec/models/list_queue_messages200_response_spec.rb +48 -0
- data/spec/spec_helper.rb +3 -3
- metadata +141 -81
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
=begin
|
|
2
|
-
#Rocketstack API
|
|
2
|
+
#Rocketstack Control Plane API
|
|
3
3
|
|
|
4
|
-
#API for Functions, Queues, KV, Storage, Cron, and Scheduler.
|
|
4
|
+
#Combined API for Functions, Queues, KV, Storage, Cron, and Scheduler.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.0.
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.19.0
|
|
@@ -352,10 +352,94 @@ module RocketStackSdk
|
|
|
352
352
|
return data, status_code, headers
|
|
353
353
|
end
|
|
354
354
|
|
|
355
|
+
# List queue messages
|
|
356
|
+
# Returns a paginated list of message metadata for a queue. Payload content is not stored.
|
|
357
|
+
# @param id [String]
|
|
358
|
+
# @param [Hash] opts the optional parameters
|
|
359
|
+
# @option opts [Float] :limit
|
|
360
|
+
# @option opts [String] :cursor
|
|
361
|
+
# @option opts [String] :status
|
|
362
|
+
# @return [ListQueueMessages200Response]
|
|
363
|
+
def list_queue_messages(id, opts = {})
|
|
364
|
+
data, _status_code, _headers = list_queue_messages_with_http_info(id, opts)
|
|
365
|
+
data
|
|
366
|
+
end
|
|
367
|
+
|
|
368
|
+
# List queue messages
|
|
369
|
+
# Returns a paginated list of message metadata for a queue. Payload content is not stored.
|
|
370
|
+
# @param id [String]
|
|
371
|
+
# @param [Hash] opts the optional parameters
|
|
372
|
+
# @option opts [Float] :limit
|
|
373
|
+
# @option opts [String] :cursor
|
|
374
|
+
# @option opts [String] :status
|
|
375
|
+
# @return [Array<(ListQueueMessages200Response, Integer, Hash)>] ListQueueMessages200Response data, response status code and response headers
|
|
376
|
+
def list_queue_messages_with_http_info(id, opts = {})
|
|
377
|
+
if @api_client.config.debugging
|
|
378
|
+
@api_client.config.logger.debug 'Calling API: QueuesApi.list_queue_messages ...'
|
|
379
|
+
end
|
|
380
|
+
# verify the required parameter 'id' is set
|
|
381
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
382
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling QueuesApi.list_queue_messages"
|
|
383
|
+
end
|
|
384
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
|
|
385
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling QueuesApi.list_queue_messages, must be smaller than or equal to 100.'
|
|
386
|
+
end
|
|
387
|
+
|
|
388
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
389
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling QueuesApi.list_queue_messages, must be greater than or equal to 1.'
|
|
390
|
+
end
|
|
391
|
+
|
|
392
|
+
allowable_values = ["enqueued", "delivering", "delivered", "dead_lettered"]
|
|
393
|
+
if @api_client.config.client_side_validation && opts[:'status'] && !allowable_values.include?(opts[:'status'])
|
|
394
|
+
fail ArgumentError, "invalid value for \"status\", must be one of #{allowable_values}"
|
|
395
|
+
end
|
|
396
|
+
# resource path
|
|
397
|
+
local_var_path = '/queues/{id}/messages'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
398
|
+
|
|
399
|
+
# query parameters
|
|
400
|
+
query_params = opts[:query_params] || {}
|
|
401
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
402
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
403
|
+
query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
|
|
404
|
+
|
|
405
|
+
# header parameters
|
|
406
|
+
header_params = opts[:header_params] || {}
|
|
407
|
+
# HTTP header 'Accept' (if needed)
|
|
408
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
409
|
+
|
|
410
|
+
# form parameters
|
|
411
|
+
form_params = opts[:form_params] || {}
|
|
412
|
+
|
|
413
|
+
# http body (model)
|
|
414
|
+
post_body = opts[:debug_body]
|
|
415
|
+
|
|
416
|
+
# return_type
|
|
417
|
+
return_type = opts[:debug_return_type] || 'ListQueueMessages200Response'
|
|
418
|
+
|
|
419
|
+
# auth_names
|
|
420
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
421
|
+
|
|
422
|
+
new_options = opts.merge(
|
|
423
|
+
:operation => :"QueuesApi.list_queue_messages",
|
|
424
|
+
:header_params => header_params,
|
|
425
|
+
:query_params => query_params,
|
|
426
|
+
:form_params => form_params,
|
|
427
|
+
:body => post_body,
|
|
428
|
+
:auth_names => auth_names,
|
|
429
|
+
:return_type => return_type
|
|
430
|
+
)
|
|
431
|
+
|
|
432
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
433
|
+
if @api_client.config.debugging
|
|
434
|
+
@api_client.config.logger.debug "API called: QueuesApi#list_queue_messages\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
435
|
+
end
|
|
436
|
+
return data, status_code, headers
|
|
437
|
+
end
|
|
438
|
+
|
|
355
439
|
# List queues
|
|
356
440
|
# Returns a paginated list of queues for the tenant.
|
|
357
441
|
# @param [Hash] opts the optional parameters
|
|
358
|
-
# @option opts [Float] :limit
|
|
442
|
+
# @option opts [Float] :limit
|
|
359
443
|
# @option opts [String] :cursor
|
|
360
444
|
# @return [ListQueues200Response]
|
|
361
445
|
def list_queues(opts = {})
|
|
@@ -366,7 +450,7 @@ module RocketStackSdk
|
|
|
366
450
|
# List queues
|
|
367
451
|
# Returns a paginated list of queues for the tenant.
|
|
368
452
|
# @param [Hash] opts the optional parameters
|
|
369
|
-
# @option opts [Float] :limit
|
|
453
|
+
# @option opts [Float] :limit
|
|
370
454
|
# @option opts [String] :cursor
|
|
371
455
|
# @return [Array<(ListQueues200Response, Integer, Hash)>] ListQueues200Response data, response status code and response headers
|
|
372
456
|
def list_queues_with_http_info(opts = {})
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
=begin
|
|
2
|
-
#Rocketstack API
|
|
2
|
+
#Rocketstack Control Plane API
|
|
3
3
|
|
|
4
|
-
#API for Functions, Queues, KV, Storage, Cron, and Scheduler.
|
|
4
|
+
#Combined API for Functions, Queues, KV, Storage, Cron, and Scheduler.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.0.
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.19.0
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
=begin
|
|
2
|
-
#Rocketstack API
|
|
2
|
+
#Rocketstack Control Plane API
|
|
3
3
|
|
|
4
|
-
#API for Functions, Queues, KV, Storage, Cron, and Scheduler.
|
|
4
|
+
#Combined API for Functions, Queues, KV, Storage, Cron, and Scheduler.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.0.
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.19.0
|
|
@@ -339,10 +339,94 @@ module RocketStackSdk
|
|
|
339
339
|
return data, status_code, headers
|
|
340
340
|
end
|
|
341
341
|
|
|
342
|
+
# List schedule invocation history
|
|
343
|
+
# Returns a paginated list of delivery attempts and outcomes for a one-off schedule.
|
|
344
|
+
# @param id [String]
|
|
345
|
+
# @param [Hash] opts the optional parameters
|
|
346
|
+
# @option opts [Float] :limit
|
|
347
|
+
# @option opts [String] :cursor
|
|
348
|
+
# @option opts [String] :outcome
|
|
349
|
+
# @return [ListCronInvocations200Response]
|
|
350
|
+
def list_schedule_invocations(id, opts = {})
|
|
351
|
+
data, _status_code, _headers = list_schedule_invocations_with_http_info(id, opts)
|
|
352
|
+
data
|
|
353
|
+
end
|
|
354
|
+
|
|
355
|
+
# List schedule invocation history
|
|
356
|
+
# Returns a paginated list of delivery attempts and outcomes for a one-off schedule.
|
|
357
|
+
# @param id [String]
|
|
358
|
+
# @param [Hash] opts the optional parameters
|
|
359
|
+
# @option opts [Float] :limit
|
|
360
|
+
# @option opts [String] :cursor
|
|
361
|
+
# @option opts [String] :outcome
|
|
362
|
+
# @return [Array<(ListCronInvocations200Response, Integer, Hash)>] ListCronInvocations200Response data, response status code and response headers
|
|
363
|
+
def list_schedule_invocations_with_http_info(id, opts = {})
|
|
364
|
+
if @api_client.config.debugging
|
|
365
|
+
@api_client.config.logger.debug 'Calling API: SchedulerApi.list_schedule_invocations ...'
|
|
366
|
+
end
|
|
367
|
+
# verify the required parameter 'id' is set
|
|
368
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
369
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling SchedulerApi.list_schedule_invocations"
|
|
370
|
+
end
|
|
371
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
|
|
372
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling SchedulerApi.list_schedule_invocations, must be smaller than or equal to 100.'
|
|
373
|
+
end
|
|
374
|
+
|
|
375
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
376
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling SchedulerApi.list_schedule_invocations, must be greater than or equal to 1.'
|
|
377
|
+
end
|
|
378
|
+
|
|
379
|
+
allowable_values = ["delivered", "retrying", "discarded", "abandoned", "enqueued"]
|
|
380
|
+
if @api_client.config.client_side_validation && opts[:'outcome'] && !allowable_values.include?(opts[:'outcome'])
|
|
381
|
+
fail ArgumentError, "invalid value for \"outcome\", must be one of #{allowable_values}"
|
|
382
|
+
end
|
|
383
|
+
# resource path
|
|
384
|
+
local_var_path = '/schedules/{id}/invocations'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
385
|
+
|
|
386
|
+
# query parameters
|
|
387
|
+
query_params = opts[:query_params] || {}
|
|
388
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
389
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
390
|
+
query_params[:'outcome'] = opts[:'outcome'] if !opts[:'outcome'].nil?
|
|
391
|
+
|
|
392
|
+
# header parameters
|
|
393
|
+
header_params = opts[:header_params] || {}
|
|
394
|
+
# HTTP header 'Accept' (if needed)
|
|
395
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
396
|
+
|
|
397
|
+
# form parameters
|
|
398
|
+
form_params = opts[:form_params] || {}
|
|
399
|
+
|
|
400
|
+
# http body (model)
|
|
401
|
+
post_body = opts[:debug_body]
|
|
402
|
+
|
|
403
|
+
# return_type
|
|
404
|
+
return_type = opts[:debug_return_type] || 'ListCronInvocations200Response'
|
|
405
|
+
|
|
406
|
+
# auth_names
|
|
407
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
408
|
+
|
|
409
|
+
new_options = opts.merge(
|
|
410
|
+
:operation => :"SchedulerApi.list_schedule_invocations",
|
|
411
|
+
:header_params => header_params,
|
|
412
|
+
:query_params => query_params,
|
|
413
|
+
:form_params => form_params,
|
|
414
|
+
:body => post_body,
|
|
415
|
+
:auth_names => auth_names,
|
|
416
|
+
:return_type => return_type
|
|
417
|
+
)
|
|
418
|
+
|
|
419
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
420
|
+
if @api_client.config.debugging
|
|
421
|
+
@api_client.config.logger.debug "API called: SchedulerApi#list_schedule_invocations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
422
|
+
end
|
|
423
|
+
return data, status_code, headers
|
|
424
|
+
end
|
|
425
|
+
|
|
342
426
|
# List schedules
|
|
343
427
|
# Returns a paginated list of one-off schedules for the tenant.
|
|
344
428
|
# @param [Hash] opts the optional parameters
|
|
345
|
-
# @option opts [Float] :limit
|
|
429
|
+
# @option opts [Float] :limit
|
|
346
430
|
# @option opts [String] :cursor
|
|
347
431
|
# @return [ListSchedules200Response]
|
|
348
432
|
def list_schedules(opts = {})
|
|
@@ -353,7 +437,7 @@ module RocketStackSdk
|
|
|
353
437
|
# List schedules
|
|
354
438
|
# Returns a paginated list of one-off schedules for the tenant.
|
|
355
439
|
# @param [Hash] opts the optional parameters
|
|
356
|
-
# @option opts [Float] :limit
|
|
440
|
+
# @option opts [Float] :limit
|
|
357
441
|
# @option opts [String] :cursor
|
|
358
442
|
# @return [Array<(ListSchedules200Response, Integer, Hash)>] ListSchedules200Response data, response status code and response headers
|
|
359
443
|
def list_schedules_with_http_info(opts = {})
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
=begin
|
|
2
|
-
#Rocketstack API
|
|
2
|
+
#Rocketstack Control Plane API
|
|
3
3
|
|
|
4
|
-
#API for Functions, Queues, KV, Storage, Cron, and Scheduler.
|
|
4
|
+
#Combined API for Functions, Queues, KV, Storage, Cron, and Scheduler.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.0.
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.19.0
|
|
@@ -89,7 +89,7 @@ module RocketStackSdk
|
|
|
89
89
|
|
|
90
90
|
# Delete a storage object
|
|
91
91
|
# Deletes an object by path.
|
|
92
|
-
# @param path [String]
|
|
92
|
+
# @param path [String] Object path without leading slash. Segments: letters, digits, dots, underscores, hyphens only.
|
|
93
93
|
# @param [Hash] opts the optional parameters
|
|
94
94
|
# @option opts [Boolean] :public
|
|
95
95
|
# @return [DeleteKvItem200Response]
|
|
@@ -100,7 +100,7 @@ module RocketStackSdk
|
|
|
100
100
|
|
|
101
101
|
# Delete a storage object
|
|
102
102
|
# Deletes an object by path.
|
|
103
|
-
# @param path [String]
|
|
103
|
+
# @param path [String] Object path without leading slash. Segments: letters, digits, dots, underscores, hyphens only.
|
|
104
104
|
# @param [Hash] opts the optional parameters
|
|
105
105
|
# @option opts [Boolean] :public
|
|
106
106
|
# @return [Array<(DeleteKvItem200Response, Integer, Hash)>] DeleteKvItem200Response data, response status code and response headers
|
|
@@ -303,8 +303,8 @@ module RocketStackSdk
|
|
|
303
303
|
# Returns a paginated list of objects in storage, optionally filtered by prefix.
|
|
304
304
|
# @param [Hash] opts the optional parameters
|
|
305
305
|
# @option opts [String] :prefix
|
|
306
|
-
# @option opts [String] :visibility
|
|
307
|
-
# @option opts [Integer] :limit
|
|
306
|
+
# @option opts [String] :visibility
|
|
307
|
+
# @option opts [Integer] :limit
|
|
308
308
|
# @option opts [String] :cursor
|
|
309
309
|
# @return [ListStorageObjects200Response]
|
|
310
310
|
def list_storage_objects(opts = {})
|
|
@@ -316,8 +316,8 @@ module RocketStackSdk
|
|
|
316
316
|
# Returns a paginated list of objects in storage, optionally filtered by prefix.
|
|
317
317
|
# @param [Hash] opts the optional parameters
|
|
318
318
|
# @option opts [String] :prefix
|
|
319
|
-
# @option opts [String] :visibility
|
|
320
|
-
# @option opts [Integer] :limit
|
|
319
|
+
# @option opts [String] :visibility
|
|
320
|
+
# @option opts [Integer] :limit
|
|
321
321
|
# @option opts [String] :cursor
|
|
322
322
|
# @return [Array<(ListStorageObjects200Response, Integer, Hash)>] ListStorageObjects200Response data, response status code and response headers
|
|
323
323
|
def list_storage_objects_with_http_info(opts = {})
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
=begin
|
|
2
|
-
#Rocketstack API
|
|
2
|
+
#Rocketstack Control Plane API
|
|
3
3
|
|
|
4
|
-
#API for Functions, Queues, KV, Storage, Cron, and Scheduler.
|
|
4
|
+
#Combined API for Functions, Queues, KV, Storage, Cron, and Scheduler.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.0.
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.19.0
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
=begin
|
|
2
|
-
#Rocketstack API
|
|
2
|
+
#Rocketstack Control Plane API
|
|
3
3
|
|
|
4
|
-
#API for Functions, Queues, KV, Storage, Cron, and Scheduler.
|
|
4
|
+
#Combined API for Functions, Queues, KV, Storage, Cron, and Scheduler.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.0.
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.19.0
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
=begin
|
|
2
|
-
#Rocketstack API
|
|
2
|
+
#Rocketstack Control Plane API
|
|
3
3
|
|
|
4
|
-
#API for Functions, Queues, KV, Storage, Cron, and Scheduler.
|
|
4
|
+
#Combined API for Functions, Queues, KV, Storage, Cron, and Scheduler.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.0.
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.19.0
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
=begin
|
|
2
|
-
#Rocketstack API
|
|
2
|
+
#Rocketstack Control Plane API
|
|
3
3
|
|
|
4
|
-
#API for Functions, Queues, KV, Storage, Cron, and Scheduler.
|
|
4
|
+
#Combined API for Functions, Queues, KV, Storage, Cron, and Scheduler.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.0.
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.19.0
|
|
@@ -158,7 +158,7 @@ module RocketStackSdk
|
|
|
158
158
|
|
|
159
159
|
def initialize
|
|
160
160
|
@scheme = 'https'
|
|
161
|
-
@host = '
|
|
161
|
+
@host = 'ctrl.rocketstack.sh'
|
|
162
162
|
@base_path = ''
|
|
163
163
|
@server_index = nil
|
|
164
164
|
@server_operation_index = {}
|
|
@@ -259,7 +259,7 @@ module RocketStackSdk
|
|
|
259
259
|
def server_settings
|
|
260
260
|
[
|
|
261
261
|
{
|
|
262
|
-
url: "https://
|
|
262
|
+
url: "https://ctrl.rocketstack.sh",
|
|
263
263
|
description: "No description provided",
|
|
264
264
|
}
|
|
265
265
|
]
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
=begin
|
|
2
|
-
#Rocketstack API
|
|
2
|
+
#Rocketstack Control Plane API
|
|
3
3
|
|
|
4
|
-
#API for Functions, Queues, KV, Storage, Cron, and Scheduler.
|
|
4
|
+
#Combined API for Functions, Queues, KV, Storage, Cron, and Scheduler.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.0.
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.19.0
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
=begin
|
|
2
|
-
#Rocketstack API
|
|
2
|
+
#Rocketstack Control Plane API
|
|
3
3
|
|
|
4
|
-
#API for Functions, Queues, KV, Storage, Cron, and Scheduler.
|
|
4
|
+
#Combined API for Functions, Queues, KV, Storage, Cron, and Scheduler.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.0.
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.19.0
|
|
@@ -19,11 +19,14 @@ module RocketStackSdk
|
|
|
19
19
|
|
|
20
20
|
attr_accessor :status
|
|
21
21
|
|
|
22
|
+
attr_accessor :schedule
|
|
23
|
+
|
|
22
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
23
25
|
def self.attribute_map
|
|
24
26
|
{
|
|
25
27
|
:'cron_job_id' => :'cronJobId',
|
|
26
|
-
:'status' => :'status'
|
|
28
|
+
:'status' => :'status',
|
|
29
|
+
:'schedule' => :'schedule'
|
|
27
30
|
}
|
|
28
31
|
end
|
|
29
32
|
|
|
@@ -41,7 +44,8 @@ module RocketStackSdk
|
|
|
41
44
|
def self.openapi_types
|
|
42
45
|
{
|
|
43
46
|
:'cron_job_id' => :'String',
|
|
44
|
-
:'status' => :'String'
|
|
47
|
+
:'status' => :'String',
|
|
48
|
+
:'schedule' => :'ListCronJobs200ResponseDataItemsInnerSchedule'
|
|
45
49
|
}
|
|
46
50
|
end
|
|
47
51
|
|
|
@@ -78,6 +82,12 @@ module RocketStackSdk
|
|
|
78
82
|
else
|
|
79
83
|
self.status = nil
|
|
80
84
|
end
|
|
85
|
+
|
|
86
|
+
if attributes.key?(:'schedule')
|
|
87
|
+
self.schedule = attributes[:'schedule']
|
|
88
|
+
else
|
|
89
|
+
self.schedule = nil
|
|
90
|
+
end
|
|
81
91
|
end
|
|
82
92
|
|
|
83
93
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -93,6 +103,10 @@ module RocketStackSdk
|
|
|
93
103
|
invalid_properties.push('invalid value for "status", status cannot be nil.')
|
|
94
104
|
end
|
|
95
105
|
|
|
106
|
+
if @schedule.nil?
|
|
107
|
+
invalid_properties.push('invalid value for "schedule", schedule cannot be nil.')
|
|
108
|
+
end
|
|
109
|
+
|
|
96
110
|
invalid_properties
|
|
97
111
|
end
|
|
98
112
|
|
|
@@ -102,6 +116,7 @@ module RocketStackSdk
|
|
|
102
116
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
103
117
|
return false if @cron_job_id.nil?
|
|
104
118
|
return false if @status.nil?
|
|
119
|
+
return false if @schedule.nil?
|
|
105
120
|
true
|
|
106
121
|
end
|
|
107
122
|
|
|
@@ -125,13 +140,24 @@ module RocketStackSdk
|
|
|
125
140
|
@status = status
|
|
126
141
|
end
|
|
127
142
|
|
|
143
|
+
# Custom attribute writer method with validation
|
|
144
|
+
# @param [Object] schedule Value to be assigned
|
|
145
|
+
def schedule=(schedule)
|
|
146
|
+
if schedule.nil?
|
|
147
|
+
fail ArgumentError, 'schedule cannot be nil'
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
@schedule = schedule
|
|
151
|
+
end
|
|
152
|
+
|
|
128
153
|
# Checks equality by comparing each attribute.
|
|
129
154
|
# @param [Object] Object to be compared
|
|
130
155
|
def ==(o)
|
|
131
156
|
return true if self.equal?(o)
|
|
132
157
|
self.class == o.class &&
|
|
133
158
|
cron_job_id == o.cron_job_id &&
|
|
134
|
-
status == o.status
|
|
159
|
+
status == o.status &&
|
|
160
|
+
schedule == o.schedule
|
|
135
161
|
end
|
|
136
162
|
|
|
137
163
|
# @see the `==` method
|
|
@@ -143,7 +169,7 @@ module RocketStackSdk
|
|
|
143
169
|
# Calculates hash code according to all attributes.
|
|
144
170
|
# @return [Integer] Hash code
|
|
145
171
|
def hash
|
|
146
|
-
[cron_job_id, status].hash
|
|
172
|
+
[cron_job_id, status, schedule].hash
|
|
147
173
|
end
|
|
148
174
|
|
|
149
175
|
# Builds the object from hash
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
=begin
|
|
2
|
-
#Rocketstack API
|
|
2
|
+
#Rocketstack Control Plane API
|
|
3
3
|
|
|
4
|
-
#API for Functions, Queues, KV, Storage, Cron, and Scheduler.
|
|
4
|
+
#Combined API for Functions, Queues, KV, Storage, Cron, and Scheduler.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.0.
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.19.0
|