rocket_stack_sdk 1.0.1
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 +7 -0
- data/Gemfile +9 -0
- data/README.md +226 -0
- data/Rakefile +10 -0
- data/docs/CreateCronJob201Response.md +22 -0
- data/docs/CreateCronJob201ResponseData.md +20 -0
- data/docs/CreateCronJobRequest.md +26 -0
- data/docs/CreateCronJobRequestDeliveryTarget.md +32 -0
- data/docs/CreateCronJobRequestSchedule.md +22 -0
- data/docs/CreateDownloadUrl200Response.md +22 -0
- data/docs/CreateDownloadUrl200ResponseData.md +24 -0
- data/docs/CreateDownloadUrlRequest.md +22 -0
- data/docs/CreateFunction202Response.md +22 -0
- data/docs/CreateFunction202ResponseData.md +20 -0
- data/docs/CreateQueue201Response.md +22 -0
- data/docs/CreateQueue201ResponseData.md +20 -0
- data/docs/CreateQueueRequest.md +26 -0
- data/docs/CreateQueueRequestDeliveryTarget.md +32 -0
- data/docs/CreateSchedule201Response.md +22 -0
- data/docs/CreateSchedule201ResponseData.md +20 -0
- data/docs/CreateScheduleRequest.md +26 -0
- data/docs/CronApi.md +365 -0
- data/docs/DeleteKvItem200Response.md +22 -0
- data/docs/DeleteKvItem200ResponseData.md +18 -0
- data/docs/EnqueueMessage201Response.md +22 -0
- data/docs/EnqueueMessage201ResponseData.md +20 -0
- data/docs/EnqueueMessageRequest.md +22 -0
- data/docs/FinalizeUpload200Response.md +22 -0
- data/docs/FinalizeUpload200ResponseData.md +24 -0
- data/docs/FinalizeUploadRequest.md +18 -0
- data/docs/FunctionsApi.md +463 -0
- data/docs/GetCronJob200Response.md +22 -0
- data/docs/GetFunction200Response.md +22 -0
- data/docs/GetKvItem200Response.md +22 -0
- data/docs/GetKvItem200ResponseData.md +24 -0
- data/docs/GetMessageStatus200Response.md +22 -0
- data/docs/GetMessageStatus200ResponseData.md +30 -0
- data/docs/GetQueue200Response.md +22 -0
- data/docs/GetSchedule200Response.md +22 -0
- data/docs/GetScheduleStatus200Response.md +22 -0
- data/docs/GetScheduleStatus200ResponseData.md +26 -0
- data/docs/GetTemplate200Response.md +22 -0
- data/docs/InvokeFunction200Response.md +22 -0
- data/docs/InvokeFunction200ResponseData.md +26 -0
- data/docs/InvokeFunctionRequest.md +22 -0
- data/docs/KvApi.md +297 -0
- data/docs/ListCapabilities200Response.md +22 -0
- data/docs/ListCapabilities200ResponseDataInner.md +22 -0
- data/docs/ListCronJobs200Response.md +22 -0
- data/docs/ListCronJobs200ResponseData.md +20 -0
- data/docs/ListCronJobs200ResponseDataItemsInner.md +36 -0
- data/docs/ListCronJobs200ResponseDataItemsInnerSchedule.md +24 -0
- data/docs/ListFunctions200Response.md +22 -0
- data/docs/ListFunctions200ResponseData.md +20 -0
- data/docs/ListFunctions200ResponseDataItemsInner.md +38 -0
- data/docs/ListFunctions200ResponseDataItemsInnerActualSpec.md +18 -0
- data/docs/ListFunctions200ResponseDataItemsInnerDesiredSpec.md +36 -0
- data/docs/ListFunctions200ResponseDataItemsInnerDesiredSpecCode.md +20 -0
- data/docs/ListFunctions200ResponseError.md +22 -0
- data/docs/ListFunctions401Response.md +20 -0
- data/docs/ListKvItems200Response.md +22 -0
- data/docs/ListKvItems200ResponseData.md +20 -0
- data/docs/ListKvItems200ResponseDataItemsInner.md +24 -0
- data/docs/ListQueues200Response.md +22 -0
- data/docs/ListQueues200ResponseData.md +20 -0
- data/docs/ListQueues200ResponseDataItemsInner.md +36 -0
- data/docs/ListQueues200ResponseDataItemsInnerDeliveryTarget.md +28 -0
- data/docs/ListSchedules200Response.md +22 -0
- data/docs/ListSchedules200ResponseData.md +20 -0
- data/docs/ListSchedules200ResponseDataItemsInner.md +36 -0
- data/docs/ListSnippets200Response.md +22 -0
- data/docs/ListSnippets200ResponseDataInner.md +28 -0
- data/docs/ListStorageObjects200Response.md +22 -0
- data/docs/ListStorageObjects200ResponseData.md +20 -0
- data/docs/ListStorageObjects200ResponseDataItemsInner.md +28 -0
- data/docs/ListTemplates200Response.md +22 -0
- data/docs/ListTemplates200ResponseDataInner.md +28 -0
- data/docs/PutKvItem200Response.md +22 -0
- data/docs/PutKvItem200ResponseData.md +22 -0
- data/docs/PutKvItemRequest.md +24 -0
- data/docs/PutKvItemRequestIfVersion.md +15 -0
- data/docs/QueuesApi.md +511 -0
- data/docs/ResourcesApi.md +290 -0
- data/docs/SchedulerApi.md +505 -0
- data/docs/StorageApi.md +447 -0
- data/docs/UpdateCronJob200Response.md +22 -0
- data/docs/UpdateCronJob200ResponseData.md +22 -0
- data/docs/UpdateCronJobRequest.md +24 -0
- data/docs/UpdateCronJobRequestSchedule.md +22 -0
- data/docs/UpdateFunctionRequest.md +30 -0
- data/docs/UpdateQueue200Response.md +22 -0
- data/docs/UpdateQueue200ResponseData.md +22 -0
- data/docs/UpdateQueueRequest.md +24 -0
- data/docs/UpdateSchedule200Response.md +22 -0
- data/docs/UpdateSchedule200ResponseData.md +22 -0
- data/docs/UpdateScheduleRequest.md +24 -0
- data/docs/UploadObject201Response.md +22 -0
- data/docs/UploadObject201ResponseData.md +26 -0
- data/git_push.sh +57 -0
- data/lib/rocket_stack_sdk/api/cron_api.rb +357 -0
- data/lib/rocket_stack_sdk/api/functions_api.rb +536 -0
- data/lib/rocket_stack_sdk/api/kv_api.rb +308 -0
- data/lib/rocket_stack_sdk/api/queues_api.rb +496 -0
- data/lib/rocket_stack_sdk/api/resources_api.rb +277 -0
- data/lib/rocket_stack_sdk/api/scheduler_api.rb +483 -0
- data/lib/rocket_stack_sdk/api/storage_api.rb +474 -0
- data/lib/rocket_stack_sdk/api_client.rb +397 -0
- data/lib/rocket_stack_sdk/api_error.rb +58 -0
- data/lib/rocket_stack_sdk/api_model_base.rb +88 -0
- data/lib/rocket_stack_sdk/configuration.rb +309 -0
- data/lib/rocket_stack_sdk/models/create_cron_job201_response.rb +182 -0
- data/lib/rocket_stack_sdk/models/create_cron_job201_response_data.rb +190 -0
- data/lib/rocket_stack_sdk/models/create_cron_job_request.rb +265 -0
- data/lib/rocket_stack_sdk/models/create_cron_job_request_delivery_target.rb +343 -0
- data/lib/rocket_stack_sdk/models/create_cron_job_request_schedule.rb +227 -0
- data/lib/rocket_stack_sdk/models/create_download_url200_response.rb +182 -0
- data/lib/rocket_stack_sdk/models/create_download_url200_response_data.rb +211 -0
- data/lib/rocket_stack_sdk/models/create_download_url_request.rb +228 -0
- data/lib/rocket_stack_sdk/models/create_function202_response.rb +182 -0
- data/lib/rocket_stack_sdk/models/create_function202_response_data.rb +190 -0
- data/lib/rocket_stack_sdk/models/create_queue201_response.rb +182 -0
- data/lib/rocket_stack_sdk/models/create_queue201_response_data.rb +190 -0
- data/lib/rocket_stack_sdk/models/create_queue_request.rb +313 -0
- data/lib/rocket_stack_sdk/models/create_queue_request_delivery_target.rb +343 -0
- data/lib/rocket_stack_sdk/models/create_schedule201_response.rb +182 -0
- data/lib/rocket_stack_sdk/models/create_schedule201_response_data.rb +190 -0
- data/lib/rocket_stack_sdk/models/create_schedule_request.rb +265 -0
- data/lib/rocket_stack_sdk/models/delete_kv_item200_response.rb +182 -0
- data/lib/rocket_stack_sdk/models/delete_kv_item200_response_data.rb +164 -0
- data/lib/rocket_stack_sdk/models/enqueue_message201_response.rb +182 -0
- data/lib/rocket_stack_sdk/models/enqueue_message201_response_data.rb +190 -0
- data/lib/rocket_stack_sdk/models/enqueue_message_request.rb +213 -0
- data/lib/rocket_stack_sdk/models/finalize_upload200_response.rb +182 -0
- data/lib/rocket_stack_sdk/models/finalize_upload200_response_data.rb +242 -0
- data/lib/rocket_stack_sdk/models/finalize_upload_request.rb +182 -0
- data/lib/rocket_stack_sdk/models/get_cron_job200_response.rb +182 -0
- data/lib/rocket_stack_sdk/models/get_function200_response.rb +182 -0
- data/lib/rocket_stack_sdk/models/get_kv_item200_response.rb +182 -0
- data/lib/rocket_stack_sdk/models/get_kv_item200_response_data.rb +212 -0
- data/lib/rocket_stack_sdk/models/get_message_status200_response.rb +182 -0
- data/lib/rocket_stack_sdk/models/get_message_status200_response_data.rb +303 -0
- data/lib/rocket_stack_sdk/models/get_queue200_response.rb +182 -0
- data/lib/rocket_stack_sdk/models/get_schedule200_response.rb +182 -0
- data/lib/rocket_stack_sdk/models/get_schedule_status200_response.rb +182 -0
- data/lib/rocket_stack_sdk/models/get_schedule_status200_response_data.rb +240 -0
- data/lib/rocket_stack_sdk/models/get_template200_response.rb +182 -0
- data/lib/rocket_stack_sdk/models/invoke_function200_response.rb +182 -0
- data/lib/rocket_stack_sdk/models/invoke_function200_response_data.rb +201 -0
- data/lib/rocket_stack_sdk/models/invoke_function_request.rb +204 -0
- data/lib/rocket_stack_sdk/models/list_capabilities200_response.rb +184 -0
- data/lib/rocket_stack_sdk/models/list_capabilities200_response_data_inner.rb +216 -0
- data/lib/rocket_stack_sdk/models/list_cron_jobs200_response.rb +182 -0
- data/lib/rocket_stack_sdk/models/list_cron_jobs200_response_data.rb +176 -0
- data/lib/rocket_stack_sdk/models/list_cron_jobs200_response_data_items_inner.rb +384 -0
- data/lib/rocket_stack_sdk/models/list_cron_jobs200_response_data_items_inner_schedule.rb +249 -0
- data/lib/rocket_stack_sdk/models/list_functions200_response.rb +182 -0
- data/lib/rocket_stack_sdk/models/list_functions200_response_data.rb +176 -0
- data/lib/rocket_stack_sdk/models/list_functions200_response_data_items_inner.rb +393 -0
- data/lib/rocket_stack_sdk/models/list_functions200_response_data_items_inner_actual_spec.rb +164 -0
- data/lib/rocket_stack_sdk/models/list_functions200_response_data_items_inner_desired_spec.rb +352 -0
- data/lib/rocket_stack_sdk/models/list_functions200_response_data_items_inner_desired_spec_code.rb +174 -0
- data/lib/rocket_stack_sdk/models/list_functions200_response_error.rb +201 -0
- data/lib/rocket_stack_sdk/models/list_functions401_response.rb +190 -0
- data/lib/rocket_stack_sdk/models/list_kv_items200_response.rb +182 -0
- data/lib/rocket_stack_sdk/models/list_kv_items200_response_data.rb +178 -0
- data/lib/rocket_stack_sdk/models/list_kv_items200_response_data_items_inner.rb +228 -0
- data/lib/rocket_stack_sdk/models/list_queues200_response.rb +182 -0
- data/lib/rocket_stack_sdk/models/list_queues200_response_data.rb +176 -0
- data/lib/rocket_stack_sdk/models/list_queues200_response_data_items_inner.rb +381 -0
- data/lib/rocket_stack_sdk/models/list_queues200_response_data_items_inner_delivery_target.rb +267 -0
- data/lib/rocket_stack_sdk/models/list_schedules200_response.rb +182 -0
- data/lib/rocket_stack_sdk/models/list_schedules200_response_data.rb +176 -0
- data/lib/rocket_stack_sdk/models/list_schedules200_response_data_items_inner.rb +384 -0
- data/lib/rocket_stack_sdk/models/list_snippets200_response.rb +184 -0
- data/lib/rocket_stack_sdk/models/list_snippets200_response_data_inner.rb +294 -0
- data/lib/rocket_stack_sdk/models/list_storage_objects200_response.rb +182 -0
- data/lib/rocket_stack_sdk/models/list_storage_objects200_response_data.rb +178 -0
- data/lib/rocket_stack_sdk/models/list_storage_objects200_response_data_items_inner.rb +260 -0
- data/lib/rocket_stack_sdk/models/list_templates200_response.rb +184 -0
- data/lib/rocket_stack_sdk/models/list_templates200_response_data_inner.rb +262 -0
- data/lib/rocket_stack_sdk/models/put_kv_item200_response.rb +182 -0
- data/lib/rocket_stack_sdk/models/put_kv_item200_response_data.rb +202 -0
- data/lib/rocket_stack_sdk/models/put_kv_item_request.rb +203 -0
- data/lib/rocket_stack_sdk/models/put_kv_item_request_if_version.rb +103 -0
- data/lib/rocket_stack_sdk/models/update_cron_job200_response.rb +182 -0
- data/lib/rocket_stack_sdk/models/update_cron_job200_response_data.rb +216 -0
- data/lib/rocket_stack_sdk/models/update_cron_job_request.rb +177 -0
- data/lib/rocket_stack_sdk/models/update_cron_job_request_schedule.rb +220 -0
- data/lib/rocket_stack_sdk/models/update_function_request.rb +337 -0
- data/lib/rocket_stack_sdk/models/update_queue200_response.rb +182 -0
- data/lib/rocket_stack_sdk/models/update_queue200_response_data.rb +216 -0
- data/lib/rocket_stack_sdk/models/update_queue_request.rb +258 -0
- data/lib/rocket_stack_sdk/models/update_schedule200_response.rb +182 -0
- data/lib/rocket_stack_sdk/models/update_schedule200_response_data.rb +216 -0
- data/lib/rocket_stack_sdk/models/update_schedule_request.rb +177 -0
- data/lib/rocket_stack_sdk/models/upload_object201_response.rb +182 -0
- data/lib/rocket_stack_sdk/models/upload_object201_response_data.rb +251 -0
- data/lib/rocket_stack_sdk/version.rb +15 -0
- data/lib/rocket_stack_sdk.rb +134 -0
- data/rocket_stack_sdk.gemspec +39 -0
- data/spec/api/cron_api_spec.rb +97 -0
- data/spec/api/functions_api_spec.rb +121 -0
- data/spec/api/kv_api_spec.rb +86 -0
- data/spec/api/queues_api_spec.rb +123 -0
- data/spec/api/resources_api_spec.rb +83 -0
- data/spec/api/scheduler_api_spec.rb +121 -0
- data/spec/api/storage_api_spec.rb +114 -0
- data/spec/models/create_cron_job201_response_data_spec.rb +42 -0
- data/spec/models/create_cron_job201_response_spec.rb +48 -0
- data/spec/models/create_cron_job_request_delivery_target_spec.rb +82 -0
- data/spec/models/create_cron_job_request_schedule_spec.rb +52 -0
- data/spec/models/create_cron_job_request_spec.rb +60 -0
- data/spec/models/create_download_url200_response_data_spec.rb +54 -0
- data/spec/models/create_download_url200_response_spec.rb +48 -0
- data/spec/models/create_download_url_request_spec.rb +48 -0
- data/spec/models/create_function202_response_data_spec.rb +42 -0
- data/spec/models/create_function202_response_spec.rb +48 -0
- data/spec/models/create_queue201_response_data_spec.rb +42 -0
- data/spec/models/create_queue201_response_spec.rb +48 -0
- data/spec/models/create_queue_request_delivery_target_spec.rb +82 -0
- data/spec/models/create_queue_request_spec.rb +60 -0
- data/spec/models/create_schedule201_response_data_spec.rb +42 -0
- data/spec/models/create_schedule201_response_spec.rb +48 -0
- data/spec/models/create_schedule_request_spec.rb +60 -0
- data/spec/models/delete_kv_item200_response_data_spec.rb +36 -0
- data/spec/models/delete_kv_item200_response_spec.rb +48 -0
- data/spec/models/enqueue_message201_response_data_spec.rb +42 -0
- data/spec/models/enqueue_message201_response_spec.rb +48 -0
- data/spec/models/enqueue_message_request_spec.rb +48 -0
- data/spec/models/finalize_upload200_response_data_spec.rb +54 -0
- data/spec/models/finalize_upload200_response_spec.rb +48 -0
- data/spec/models/finalize_upload_request_spec.rb +36 -0
- data/spec/models/get_cron_job200_response_spec.rb +48 -0
- data/spec/models/get_function200_response_spec.rb +48 -0
- data/spec/models/get_kv_item200_response_data_spec.rb +54 -0
- data/spec/models/get_kv_item200_response_spec.rb +48 -0
- data/spec/models/get_message_status200_response_data_spec.rb +72 -0
- data/spec/models/get_message_status200_response_spec.rb +48 -0
- data/spec/models/get_queue200_response_spec.rb +48 -0
- data/spec/models/get_schedule200_response_spec.rb +48 -0
- data/spec/models/get_schedule_status200_response_data_spec.rb +60 -0
- data/spec/models/get_schedule_status200_response_spec.rb +48 -0
- data/spec/models/get_template200_response_spec.rb +48 -0
- data/spec/models/invoke_function200_response_data_spec.rb +60 -0
- data/spec/models/invoke_function200_response_spec.rb +48 -0
- data/spec/models/invoke_function_request_spec.rb +52 -0
- data/spec/models/list_capabilities200_response_data_inner_spec.rb +48 -0
- data/spec/models/list_capabilities200_response_spec.rb +48 -0
- data/spec/models/list_cron_jobs200_response_data_items_inner_schedule_spec.rb +58 -0
- data/spec/models/list_cron_jobs200_response_data_items_inner_spec.rb +90 -0
- data/spec/models/list_cron_jobs200_response_data_spec.rb +42 -0
- data/spec/models/list_cron_jobs200_response_spec.rb +48 -0
- data/spec/models/list_functions200_response_data_items_inner_actual_spec_spec.rb +36 -0
- data/spec/models/list_functions200_response_data_items_inner_desired_spec_code_spec.rb +42 -0
- data/spec/models/list_functions200_response_data_items_inner_desired_spec_spec.rb +98 -0
- data/spec/models/list_functions200_response_data_items_inner_spec.rb +96 -0
- data/spec/models/list_functions200_response_data_spec.rb +42 -0
- data/spec/models/list_functions200_response_error_spec.rb +48 -0
- data/spec/models/list_functions200_response_spec.rb +48 -0
- data/spec/models/list_functions401_response_spec.rb +42 -0
- data/spec/models/list_kv_items200_response_data_items_inner_spec.rb +54 -0
- data/spec/models/list_kv_items200_response_data_spec.rb +42 -0
- data/spec/models/list_kv_items200_response_spec.rb +48 -0
- data/spec/models/list_queues200_response_data_items_inner_delivery_target_spec.rb +70 -0
- data/spec/models/list_queues200_response_data_items_inner_spec.rb +90 -0
- data/spec/models/list_queues200_response_data_spec.rb +42 -0
- data/spec/models/list_queues200_response_spec.rb +48 -0
- data/spec/models/list_schedules200_response_data_items_inner_spec.rb +90 -0
- data/spec/models/list_schedules200_response_data_spec.rb +42 -0
- data/spec/models/list_schedules200_response_spec.rb +48 -0
- data/spec/models/list_snippets200_response_data_inner_spec.rb +66 -0
- data/spec/models/list_snippets200_response_spec.rb +48 -0
- data/spec/models/list_storage_objects200_response_data_items_inner_spec.rb +66 -0
- data/spec/models/list_storage_objects200_response_data_spec.rb +42 -0
- data/spec/models/list_storage_objects200_response_spec.rb +48 -0
- data/spec/models/list_templates200_response_data_inner_spec.rb +66 -0
- data/spec/models/list_templates200_response_spec.rb +48 -0
- data/spec/models/put_kv_item200_response_data_spec.rb +48 -0
- data/spec/models/put_kv_item200_response_spec.rb +48 -0
- data/spec/models/put_kv_item_request_if_version_spec.rb +21 -0
- data/spec/models/put_kv_item_request_spec.rb +54 -0
- data/spec/models/update_cron_job200_response_data_spec.rb +48 -0
- data/spec/models/update_cron_job200_response_spec.rb +48 -0
- data/spec/models/update_cron_job_request_schedule_spec.rb +52 -0
- data/spec/models/update_cron_job_request_spec.rb +54 -0
- data/spec/models/update_function_request_spec.rb +76 -0
- data/spec/models/update_queue200_response_data_spec.rb +48 -0
- data/spec/models/update_queue200_response_spec.rb +48 -0
- data/spec/models/update_queue_request_spec.rb +54 -0
- data/spec/models/update_schedule200_response_data_spec.rb +48 -0
- data/spec/models/update_schedule200_response_spec.rb +48 -0
- data/spec/models/update_schedule_request_spec.rb +54 -0
- data/spec/models/upload_object201_response_data_spec.rb +60 -0
- data/spec/models/upload_object201_response_spec.rb +48 -0
- data/spec/spec_helper.rb +111 -0
- metadata +472 -0
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Rocketstack API
|
|
3
|
+
|
|
4
|
+
#API for Functions, Queues, KV, Storage, Cron, and Scheduler.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.1
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.19.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module RocketStackSdk
|
|
17
|
+
class UpdateQueue200Response < ApiModelBase
|
|
18
|
+
attr_accessor :request_id
|
|
19
|
+
|
|
20
|
+
attr_accessor :data
|
|
21
|
+
|
|
22
|
+
attr_accessor :error
|
|
23
|
+
|
|
24
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
25
|
+
def self.attribute_map
|
|
26
|
+
{
|
|
27
|
+
:'request_id' => :'requestId',
|
|
28
|
+
:'data' => :'data',
|
|
29
|
+
:'error' => :'error'
|
|
30
|
+
}
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# Returns attribute mapping this model knows about
|
|
34
|
+
def self.acceptable_attribute_map
|
|
35
|
+
attribute_map
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# Returns all the JSON keys this model knows about
|
|
39
|
+
def self.acceptable_attributes
|
|
40
|
+
acceptable_attribute_map.values
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# Attribute type mapping.
|
|
44
|
+
def self.openapi_types
|
|
45
|
+
{
|
|
46
|
+
:'request_id' => :'String',
|
|
47
|
+
:'data' => :'UpdateQueue200ResponseData',
|
|
48
|
+
:'error' => :'ListFunctions200ResponseError'
|
|
49
|
+
}
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# List of attributes with nullable: true
|
|
53
|
+
def self.openapi_nullable
|
|
54
|
+
Set.new([
|
|
55
|
+
])
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# Initializes the object
|
|
59
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
60
|
+
def initialize(attributes = {})
|
|
61
|
+
if (!attributes.is_a?(Hash))
|
|
62
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `RocketStackSdk::UpdateQueue200Response` initialize method"
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
66
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
67
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
68
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
69
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `RocketStackSdk::UpdateQueue200Response`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
70
|
+
end
|
|
71
|
+
h[k.to_sym] = v
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
if attributes.key?(:'request_id')
|
|
75
|
+
self.request_id = attributes[:'request_id']
|
|
76
|
+
else
|
|
77
|
+
self.request_id = nil
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
if attributes.key?(:'data')
|
|
81
|
+
self.data = attributes[:'data']
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
if attributes.key?(:'error')
|
|
85
|
+
self.error = attributes[:'error']
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
90
|
+
# @return Array for valid properties with the reasons
|
|
91
|
+
def list_invalid_properties
|
|
92
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
93
|
+
invalid_properties = Array.new
|
|
94
|
+
if @request_id.nil?
|
|
95
|
+
invalid_properties.push('invalid value for "request_id", request_id cannot be nil.')
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
invalid_properties
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# Check to see if the all the properties in the model are valid
|
|
102
|
+
# @return true if the model is valid
|
|
103
|
+
def valid?
|
|
104
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
105
|
+
return false if @request_id.nil?
|
|
106
|
+
true
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
# Custom attribute writer method with validation
|
|
110
|
+
# @param [Object] request_id Value to be assigned
|
|
111
|
+
def request_id=(request_id)
|
|
112
|
+
if request_id.nil?
|
|
113
|
+
fail ArgumentError, 'request_id cannot be nil'
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
@request_id = request_id
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
# Checks equality by comparing each attribute.
|
|
120
|
+
# @param [Object] Object to be compared
|
|
121
|
+
def ==(o)
|
|
122
|
+
return true if self.equal?(o)
|
|
123
|
+
self.class == o.class &&
|
|
124
|
+
request_id == o.request_id &&
|
|
125
|
+
data == o.data &&
|
|
126
|
+
error == o.error
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
# @see the `==` method
|
|
130
|
+
# @param [Object] Object to be compared
|
|
131
|
+
def eql?(o)
|
|
132
|
+
self == o
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
# Calculates hash code according to all attributes.
|
|
136
|
+
# @return [Integer] Hash code
|
|
137
|
+
def hash
|
|
138
|
+
[request_id, data, error].hash
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
# Builds the object from hash
|
|
142
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
143
|
+
# @return [Object] Returns the model itself
|
|
144
|
+
def self.build_from_hash(attributes)
|
|
145
|
+
return nil unless attributes.is_a?(Hash)
|
|
146
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
147
|
+
transformed_hash = {}
|
|
148
|
+
openapi_types.each_pair do |key, type|
|
|
149
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
150
|
+
transformed_hash["#{key}"] = nil
|
|
151
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
152
|
+
# check to ensure the input is an array given that the attribute
|
|
153
|
+
# is documented as an array but the input is not
|
|
154
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
155
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
156
|
+
end
|
|
157
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
158
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
159
|
+
end
|
|
160
|
+
end
|
|
161
|
+
new(transformed_hash)
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
# Returns the object in the form of hash
|
|
165
|
+
# @return [Hash] Returns the object in the form of hash
|
|
166
|
+
def to_hash
|
|
167
|
+
hash = {}
|
|
168
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
169
|
+
value = self.send(attr)
|
|
170
|
+
if value.nil?
|
|
171
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
172
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
hash[param] = _to_hash(value)
|
|
176
|
+
end
|
|
177
|
+
hash
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
end
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Rocketstack API
|
|
3
|
+
|
|
4
|
+
#API for Functions, Queues, KV, Storage, Cron, and Scheduler.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.1
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.19.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module RocketStackSdk
|
|
17
|
+
class UpdateQueue200ResponseData < ApiModelBase
|
|
18
|
+
attr_accessor :queue_id
|
|
19
|
+
|
|
20
|
+
attr_accessor :status
|
|
21
|
+
|
|
22
|
+
attr_accessor :provisioning_required
|
|
23
|
+
|
|
24
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
25
|
+
def self.attribute_map
|
|
26
|
+
{
|
|
27
|
+
:'queue_id' => :'queueId',
|
|
28
|
+
:'status' => :'status',
|
|
29
|
+
:'provisioning_required' => :'provisioningRequired'
|
|
30
|
+
}
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# Returns attribute mapping this model knows about
|
|
34
|
+
def self.acceptable_attribute_map
|
|
35
|
+
attribute_map
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# Returns all the JSON keys this model knows about
|
|
39
|
+
def self.acceptable_attributes
|
|
40
|
+
acceptable_attribute_map.values
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# Attribute type mapping.
|
|
44
|
+
def self.openapi_types
|
|
45
|
+
{
|
|
46
|
+
:'queue_id' => :'String',
|
|
47
|
+
:'status' => :'String',
|
|
48
|
+
:'provisioning_required' => :'Boolean'
|
|
49
|
+
}
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# List of attributes with nullable: true
|
|
53
|
+
def self.openapi_nullable
|
|
54
|
+
Set.new([
|
|
55
|
+
])
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# Initializes the object
|
|
59
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
60
|
+
def initialize(attributes = {})
|
|
61
|
+
if (!attributes.is_a?(Hash))
|
|
62
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `RocketStackSdk::UpdateQueue200ResponseData` initialize method"
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
66
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
67
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
68
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
69
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `RocketStackSdk::UpdateQueue200ResponseData`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
70
|
+
end
|
|
71
|
+
h[k.to_sym] = v
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
if attributes.key?(:'queue_id')
|
|
75
|
+
self.queue_id = attributes[:'queue_id']
|
|
76
|
+
else
|
|
77
|
+
self.queue_id = nil
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
if attributes.key?(:'status')
|
|
81
|
+
self.status = attributes[:'status']
|
|
82
|
+
else
|
|
83
|
+
self.status = nil
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
if attributes.key?(:'provisioning_required')
|
|
87
|
+
self.provisioning_required = attributes[:'provisioning_required']
|
|
88
|
+
else
|
|
89
|
+
self.provisioning_required = nil
|
|
90
|
+
end
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
94
|
+
# @return Array for valid properties with the reasons
|
|
95
|
+
def list_invalid_properties
|
|
96
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
97
|
+
invalid_properties = Array.new
|
|
98
|
+
if @queue_id.nil?
|
|
99
|
+
invalid_properties.push('invalid value for "queue_id", queue_id cannot be nil.')
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
if @status.nil?
|
|
103
|
+
invalid_properties.push('invalid value for "status", status cannot be nil.')
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
if @provisioning_required.nil?
|
|
107
|
+
invalid_properties.push('invalid value for "provisioning_required", provisioning_required cannot be nil.')
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
invalid_properties
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
# Check to see if the all the properties in the model are valid
|
|
114
|
+
# @return true if the model is valid
|
|
115
|
+
def valid?
|
|
116
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
117
|
+
return false if @queue_id.nil?
|
|
118
|
+
return false if @status.nil?
|
|
119
|
+
return false if @provisioning_required.nil?
|
|
120
|
+
true
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
# Custom attribute writer method with validation
|
|
124
|
+
# @param [Object] queue_id Value to be assigned
|
|
125
|
+
def queue_id=(queue_id)
|
|
126
|
+
if queue_id.nil?
|
|
127
|
+
fail ArgumentError, 'queue_id cannot be nil'
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
@queue_id = queue_id
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
# Custom attribute writer method with validation
|
|
134
|
+
# @param [Object] status Value to be assigned
|
|
135
|
+
def status=(status)
|
|
136
|
+
if status.nil?
|
|
137
|
+
fail ArgumentError, 'status cannot be nil'
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
@status = status
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
# Custom attribute writer method with validation
|
|
144
|
+
# @param [Object] provisioning_required Value to be assigned
|
|
145
|
+
def provisioning_required=(provisioning_required)
|
|
146
|
+
if provisioning_required.nil?
|
|
147
|
+
fail ArgumentError, 'provisioning_required cannot be nil'
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
@provisioning_required = provisioning_required
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
# Checks equality by comparing each attribute.
|
|
154
|
+
# @param [Object] Object to be compared
|
|
155
|
+
def ==(o)
|
|
156
|
+
return true if self.equal?(o)
|
|
157
|
+
self.class == o.class &&
|
|
158
|
+
queue_id == o.queue_id &&
|
|
159
|
+
status == o.status &&
|
|
160
|
+
provisioning_required == o.provisioning_required
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
# @see the `==` method
|
|
164
|
+
# @param [Object] Object to be compared
|
|
165
|
+
def eql?(o)
|
|
166
|
+
self == o
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
# Calculates hash code according to all attributes.
|
|
170
|
+
# @return [Integer] Hash code
|
|
171
|
+
def hash
|
|
172
|
+
[queue_id, status, provisioning_required].hash
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
# Builds the object from hash
|
|
176
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
177
|
+
# @return [Object] Returns the model itself
|
|
178
|
+
def self.build_from_hash(attributes)
|
|
179
|
+
return nil unless attributes.is_a?(Hash)
|
|
180
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
181
|
+
transformed_hash = {}
|
|
182
|
+
openapi_types.each_pair do |key, type|
|
|
183
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
184
|
+
transformed_hash["#{key}"] = nil
|
|
185
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
186
|
+
# check to ensure the input is an array given that the attribute
|
|
187
|
+
# is documented as an array but the input is not
|
|
188
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
189
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
190
|
+
end
|
|
191
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
192
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
193
|
+
end
|
|
194
|
+
end
|
|
195
|
+
new(transformed_hash)
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
# Returns the object in the form of hash
|
|
199
|
+
# @return [Hash] Returns the object in the form of hash
|
|
200
|
+
def to_hash
|
|
201
|
+
hash = {}
|
|
202
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
203
|
+
value = self.send(attr)
|
|
204
|
+
if value.nil?
|
|
205
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
206
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
207
|
+
end
|
|
208
|
+
|
|
209
|
+
hash[param] = _to_hash(value)
|
|
210
|
+
end
|
|
211
|
+
hash
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
end
|
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Rocketstack API
|
|
3
|
+
|
|
4
|
+
#API for Functions, Queues, KV, Storage, Cron, and Scheduler.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.1
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.19.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module RocketStackSdk
|
|
17
|
+
class UpdateQueueRequest < ApiModelBase
|
|
18
|
+
attr_accessor :visibility_timeout_seconds
|
|
19
|
+
|
|
20
|
+
attr_accessor :retention_seconds
|
|
21
|
+
|
|
22
|
+
attr_accessor :max_receive_count
|
|
23
|
+
|
|
24
|
+
attr_accessor :delivery_target
|
|
25
|
+
|
|
26
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
27
|
+
def self.attribute_map
|
|
28
|
+
{
|
|
29
|
+
:'visibility_timeout_seconds' => :'visibilityTimeoutSeconds',
|
|
30
|
+
:'retention_seconds' => :'retentionSeconds',
|
|
31
|
+
:'max_receive_count' => :'maxReceiveCount',
|
|
32
|
+
:'delivery_target' => :'deliveryTarget'
|
|
33
|
+
}
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
# Returns attribute mapping this model knows about
|
|
37
|
+
def self.acceptable_attribute_map
|
|
38
|
+
attribute_map
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# Returns all the JSON keys this model knows about
|
|
42
|
+
def self.acceptable_attributes
|
|
43
|
+
acceptable_attribute_map.values
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# Attribute type mapping.
|
|
47
|
+
def self.openapi_types
|
|
48
|
+
{
|
|
49
|
+
:'visibility_timeout_seconds' => :'Float',
|
|
50
|
+
:'retention_seconds' => :'Float',
|
|
51
|
+
:'max_receive_count' => :'Float',
|
|
52
|
+
:'delivery_target' => :'CreateQueueRequestDeliveryTarget'
|
|
53
|
+
}
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# List of attributes with nullable: true
|
|
57
|
+
def self.openapi_nullable
|
|
58
|
+
Set.new([
|
|
59
|
+
])
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# Initializes the object
|
|
63
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
64
|
+
def initialize(attributes = {})
|
|
65
|
+
if (!attributes.is_a?(Hash))
|
|
66
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `RocketStackSdk::UpdateQueueRequest` initialize method"
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
70
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
71
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
72
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
73
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `RocketStackSdk::UpdateQueueRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
74
|
+
end
|
|
75
|
+
h[k.to_sym] = v
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
if attributes.key?(:'visibility_timeout_seconds')
|
|
79
|
+
self.visibility_timeout_seconds = attributes[:'visibility_timeout_seconds']
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
if attributes.key?(:'retention_seconds')
|
|
83
|
+
self.retention_seconds = attributes[:'retention_seconds']
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
if attributes.key?(:'max_receive_count')
|
|
87
|
+
self.max_receive_count = attributes[:'max_receive_count']
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
if attributes.key?(:'delivery_target')
|
|
91
|
+
self.delivery_target = attributes[:'delivery_target']
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
96
|
+
# @return Array for valid properties with the reasons
|
|
97
|
+
def list_invalid_properties
|
|
98
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
99
|
+
invalid_properties = Array.new
|
|
100
|
+
if !@visibility_timeout_seconds.nil? && @visibility_timeout_seconds > 43200
|
|
101
|
+
invalid_properties.push('invalid value for "visibility_timeout_seconds", must be smaller than or equal to 43200.')
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
if !@visibility_timeout_seconds.nil? && @visibility_timeout_seconds < 0
|
|
105
|
+
invalid_properties.push('invalid value for "visibility_timeout_seconds", must be greater than or equal to 0.')
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
if !@retention_seconds.nil? && @retention_seconds > 1209600
|
|
109
|
+
invalid_properties.push('invalid value for "retention_seconds", must be smaller than or equal to 1209600.')
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
if !@retention_seconds.nil? && @retention_seconds < 60
|
|
113
|
+
invalid_properties.push('invalid value for "retention_seconds", must be greater than or equal to 60.')
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
if !@max_receive_count.nil? && @max_receive_count > 100
|
|
117
|
+
invalid_properties.push('invalid value for "max_receive_count", must be smaller than or equal to 100.')
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
if !@max_receive_count.nil? && @max_receive_count < 1
|
|
121
|
+
invalid_properties.push('invalid value for "max_receive_count", must be greater than or equal to 1.')
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
invalid_properties
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
# Check to see if the all the properties in the model are valid
|
|
128
|
+
# @return true if the model is valid
|
|
129
|
+
def valid?
|
|
130
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
131
|
+
return false if !@visibility_timeout_seconds.nil? && @visibility_timeout_seconds > 43200
|
|
132
|
+
return false if !@visibility_timeout_seconds.nil? && @visibility_timeout_seconds < 0
|
|
133
|
+
return false if !@retention_seconds.nil? && @retention_seconds > 1209600
|
|
134
|
+
return false if !@retention_seconds.nil? && @retention_seconds < 60
|
|
135
|
+
return false if !@max_receive_count.nil? && @max_receive_count > 100
|
|
136
|
+
return false if !@max_receive_count.nil? && @max_receive_count < 1
|
|
137
|
+
true
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
# Custom attribute writer method with validation
|
|
141
|
+
# @param [Object] visibility_timeout_seconds Value to be assigned
|
|
142
|
+
def visibility_timeout_seconds=(visibility_timeout_seconds)
|
|
143
|
+
if visibility_timeout_seconds.nil?
|
|
144
|
+
fail ArgumentError, 'visibility_timeout_seconds cannot be nil'
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
if visibility_timeout_seconds > 43200
|
|
148
|
+
fail ArgumentError, 'invalid value for "visibility_timeout_seconds", must be smaller than or equal to 43200.'
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
if visibility_timeout_seconds < 0
|
|
152
|
+
fail ArgumentError, 'invalid value for "visibility_timeout_seconds", must be greater than or equal to 0.'
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
@visibility_timeout_seconds = visibility_timeout_seconds
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
# Custom attribute writer method with validation
|
|
159
|
+
# @param [Object] retention_seconds Value to be assigned
|
|
160
|
+
def retention_seconds=(retention_seconds)
|
|
161
|
+
if retention_seconds.nil?
|
|
162
|
+
fail ArgumentError, 'retention_seconds cannot be nil'
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
if retention_seconds > 1209600
|
|
166
|
+
fail ArgumentError, 'invalid value for "retention_seconds", must be smaller than or equal to 1209600.'
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
if retention_seconds < 60
|
|
170
|
+
fail ArgumentError, 'invalid value for "retention_seconds", must be greater than or equal to 60.'
|
|
171
|
+
end
|
|
172
|
+
|
|
173
|
+
@retention_seconds = retention_seconds
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
# Custom attribute writer method with validation
|
|
177
|
+
# @param [Object] max_receive_count Value to be assigned
|
|
178
|
+
def max_receive_count=(max_receive_count)
|
|
179
|
+
if max_receive_count.nil?
|
|
180
|
+
fail ArgumentError, 'max_receive_count cannot be nil'
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
if max_receive_count > 100
|
|
184
|
+
fail ArgumentError, 'invalid value for "max_receive_count", must be smaller than or equal to 100.'
|
|
185
|
+
end
|
|
186
|
+
|
|
187
|
+
if max_receive_count < 1
|
|
188
|
+
fail ArgumentError, 'invalid value for "max_receive_count", must be greater than or equal to 1.'
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
@max_receive_count = max_receive_count
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
# Checks equality by comparing each attribute.
|
|
195
|
+
# @param [Object] Object to be compared
|
|
196
|
+
def ==(o)
|
|
197
|
+
return true if self.equal?(o)
|
|
198
|
+
self.class == o.class &&
|
|
199
|
+
visibility_timeout_seconds == o.visibility_timeout_seconds &&
|
|
200
|
+
retention_seconds == o.retention_seconds &&
|
|
201
|
+
max_receive_count == o.max_receive_count &&
|
|
202
|
+
delivery_target == o.delivery_target
|
|
203
|
+
end
|
|
204
|
+
|
|
205
|
+
# @see the `==` method
|
|
206
|
+
# @param [Object] Object to be compared
|
|
207
|
+
def eql?(o)
|
|
208
|
+
self == o
|
|
209
|
+
end
|
|
210
|
+
|
|
211
|
+
# Calculates hash code according to all attributes.
|
|
212
|
+
# @return [Integer] Hash code
|
|
213
|
+
def hash
|
|
214
|
+
[visibility_timeout_seconds, retention_seconds, max_receive_count, delivery_target].hash
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
# Builds the object from hash
|
|
218
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
219
|
+
# @return [Object] Returns the model itself
|
|
220
|
+
def self.build_from_hash(attributes)
|
|
221
|
+
return nil unless attributes.is_a?(Hash)
|
|
222
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
223
|
+
transformed_hash = {}
|
|
224
|
+
openapi_types.each_pair do |key, type|
|
|
225
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
226
|
+
transformed_hash["#{key}"] = nil
|
|
227
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
228
|
+
# check to ensure the input is an array given that the attribute
|
|
229
|
+
# is documented as an array but the input is not
|
|
230
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
231
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
232
|
+
end
|
|
233
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
234
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
235
|
+
end
|
|
236
|
+
end
|
|
237
|
+
new(transformed_hash)
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
# Returns the object in the form of hash
|
|
241
|
+
# @return [Hash] Returns the object in the form of hash
|
|
242
|
+
def to_hash
|
|
243
|
+
hash = {}
|
|
244
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
245
|
+
value = self.send(attr)
|
|
246
|
+
if value.nil?
|
|
247
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
248
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
249
|
+
end
|
|
250
|
+
|
|
251
|
+
hash[param] = _to_hash(value)
|
|
252
|
+
end
|
|
253
|
+
hash
|
|
254
|
+
end
|
|
255
|
+
|
|
256
|
+
end
|
|
257
|
+
|
|
258
|
+
end
|