api-sdk-rb 1.11.66 → 1.11.111
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 +192 -9
- data/docs/AdapterConnection.md +7 -1
- data/docs/BrandColor.md +22 -0
- data/docs/BrandFont.md +24 -0
- data/docs/BrandKitApi.md +593 -0
- data/docs/BrandKitAssetView.md +42 -0
- data/docs/BrandKitFigmaSource.md +26 -0
- data/docs/BrandKitTokens.md +24 -0
- data/docs/BrandKitTokensFonts.md +24 -0
- data/docs/BrandKitView.md +36 -0
- data/docs/BrandKitViewOwner.md +20 -0
- data/docs/BrandKitViewResponse.md +22 -0
- data/docs/BrandSpacing.md +32 -0
- data/docs/Composition.md +5 -1
- data/docs/CompositionLastEditedBy.md +20 -0
- data/docs/CompositionsApi.md +217 -135
- data/docs/ConfirmAdapterConnectionRequest.md +18 -0
- data/docs/CreateWidget201ResponseData.md +2 -4
- data/docs/CreateWorkspaceWorkflowFromPreset201Response.md +22 -0
- data/docs/CreateWorkspaceWorkflowFromPresetRequest.md +20 -0
- data/docs/CreateWorkspaceWorkflowRequest.md +22 -0
- data/docs/DeleteWorkspaceWorkflow200Response.md +22 -0
- data/docs/GetPublicCompositionEmbed200Response.md +7 -1
- data/docs/GetPublicCompositionEmbed200ResponseAdapters.md +20 -0
- data/docs/GetPublicCompositionEmbed200ResponseAdaptersCaptcha.md +18 -0
- data/docs/GetPublicCompositionEmbed200ResponseEntries.md +20 -0
- data/docs/GetPublicCompositionEmbed200ResponseMedia.md +18 -0
- data/docs/GetPublicWorkflow200Response.md +22 -0
- data/docs/GetWorkspaceWorkflowStats200Response.md +22 -0
- data/docs/GetWorkspaceWorkflowVersion200Response.md +22 -0
- data/docs/ListPartnerWorkflowPresets200Response.md +22 -0
- data/docs/ListWorkspaceWorkflowCompositionOptions200Response.md +22 -0
- data/docs/ListWorkspaceWorkflowPresets200Response.md +22 -0
- data/docs/ListWorkspaceWorkflowVersions200Response.md +22 -0
- data/docs/ListWorkspaceWorkflows200Response.md +22 -0
- data/docs/ManagedUsersApi.md +1 -1
- data/docs/NewComposition.md +1 -1
- data/docs/NewEditorSession.md +1 -1
- data/docs/OfferWorkflowPresetRequest.md +24 -0
- data/docs/OfferedWorkflowPreset.md +40 -0
- data/docs/OfferedWorkflowPresetList.md +18 -0
- data/docs/OfferedWorkflowPresetWidget.md +22 -0
- data/docs/PartnerApi.md +3360 -538
- data/docs/PartnerCustomization.md +2 -2
- data/docs/PartnerNotification.md +1 -1
- data/docs/PartnersApi.md +294 -2
- data/docs/PatchBrandKitAssetRequest.md +24 -0
- data/docs/PatchBrandKitRequest.md +28 -0
- data/docs/PatchBrandKitRequestFonts.md +24 -0
- data/docs/PatchBrandKitRequestSpacing.md +32 -0
- data/docs/PostBrandKitIconRequest.md +20 -0
- data/docs/PublicEmbedApi.md +270 -4
- data/docs/PublicWorkflow.md +36 -0
- data/docs/PublicWorkflowEventsAccepted.md +22 -0
- data/docs/PublicWorkflowEventsRequest.md +24 -0
- data/docs/PublicWorkflowEventsRequestEventsInner.md +22 -0
- data/docs/PublicWorkflowEventsRequestHeightsInner.md +20 -0
- data/docs/PublicWorkflowTranslation.md +20 -0
- data/docs/PublishWorkspaceWorkflow200Response.md +22 -0
- data/docs/PublishWorkspaceWorkflowRequest.md +18 -0
- data/docs/PutBrandKitRequest.md +22 -0
- data/docs/RemovePartnerWorkflowPreset200Response.md +22 -0
- data/docs/ReportPublicWorkflowEvents200Response.md +22 -0
- data/docs/SaveWorkspaceWorkflow200Response.md +22 -0
- data/docs/SaveWorkspaceWorkflowRequest.md +24 -0
- data/docs/SetAdapterConnectionRequest.md +1 -1
- data/docs/SetPartnerWorkflowPreset200Response.md +22 -0
- data/docs/UpdateComposition.md +1 -1
- data/docs/UsersApi.md +77 -1
- data/docs/Widget.md +2 -4
- data/docs/Workflow.md +50 -0
- data/docs/WorkflowCompositionAction.md +24 -0
- data/docs/WorkflowCompositionField.md +24 -0
- data/docs/WorkflowCompositionOption.md +30 -0
- data/docs/WorkflowCompositionOptionActions.md +22 -0
- data/docs/WorkflowCompositionOptionInputs.md +24 -0
- data/docs/WorkflowCompositionOptions.md +24 -0
- data/docs/WorkflowConditionCase.md +24 -0
- data/docs/WorkflowConditionTest.md +22 -0
- data/docs/WorkflowCounter.md +20 -0
- data/docs/WorkflowDetail.md +60 -0
- data/docs/WorkflowDetailAllOfLastEditedBy.md +20 -0
- data/docs/WorkflowEdge.md +24 -0
- data/docs/WorkflowFieldReference.md +22 -0
- data/docs/WorkflowGraph.md +22 -0
- data/docs/WorkflowIssue.md +28 -0
- data/docs/WorkflowList.md +24 -0
- data/docs/WorkflowNode.md +30 -0
- data/docs/WorkflowNodePosition.md +20 -0
- data/docs/WorkflowPresetChoice.md +26 -0
- data/docs/WorkflowPresetChoices.md +18 -0
- data/docs/WorkflowPresetRemoval.md +18 -0
- data/docs/WorkflowPresetWidget.md +20 -0
- data/docs/WorkflowPublishResult.md +22 -0
- data/docs/WorkflowRemoved.md +18 -0
- data/docs/WorkflowSchedule.md +24 -0
- data/docs/WorkflowStats.md +32 -0
- data/docs/WorkflowStatus.md +15 -0
- data/docs/WorkflowTrigger.md +28 -0
- data/docs/WorkflowTriggerValuesInner.md +20 -0
- data/docs/WorkflowVersion.md +28 -0
- data/docs/WorkflowVersionDetail.md +32 -0
- data/docs/WorkflowVersionList.md +18 -0
- data/docs/WorkflowVersionPublishedBy.md +20 -0
- data/docs/WorkflowsApi.md +1743 -0
- data/docs/WorkspacesApi.md +1527 -0
- data/lib/api-sdk-rb/api/brand_kit_api.rb +581 -0
- data/lib/api-sdk-rb/api/compositions_api.rb +237 -138
- data/lib/api-sdk-rb/api/managed_users_api.rb +2 -2
- data/lib/api-sdk-rb/api/partner_api.rb +3907 -809
- data/lib/api-sdk-rb/api/partners_api.rb +320 -4
- data/lib/api-sdk-rb/api/public_embed_api.rb +283 -6
- data/lib/api-sdk-rb/api/users_api.rb +96 -2
- data/lib/api-sdk-rb/api/workflows_api.rb +1997 -0
- data/lib/api-sdk-rb/api/workspaces_api.rb +1775 -0
- data/lib/api-sdk-rb/configuration.rb +50 -2
- data/lib/api-sdk-rb/models/adapter_connection.rb +48 -5
- data/lib/api-sdk-rb/models/brand_color.rb +329 -0
- data/lib/api-sdk-rb/models/brand_font.rb +357 -0
- data/lib/api-sdk-rb/models/brand_kit_asset_view.rb +409 -0
- data/lib/api-sdk-rb/models/brand_kit_figma_source.rb +277 -0
- data/lib/api-sdk-rb/models/brand_kit_tokens.rb +304 -0
- data/lib/api-sdk-rb/models/brand_kit_tokens_fonts.rb +241 -0
- data/lib/api-sdk-rb/models/brand_kit_view.rb +344 -0
- data/lib/api-sdk-rb/models/brand_kit_view_owner.rb +267 -0
- data/lib/api-sdk-rb/models/brand_kit_view_response.rb +247 -0
- data/lib/api-sdk-rb/models/brand_spacing.rb +557 -0
- data/lib/api-sdk-rb/models/composition.rb +26 -5
- data/lib/api-sdk-rb/models/composition_last_edited_by.rb +242 -0
- data/lib/api-sdk-rb/models/confirm_adapter_connection_request.rb +241 -0
- data/lib/api-sdk-rb/models/create_widget201_response_data.rb +9 -20
- data/lib/api-sdk-rb/models/create_workspace_workflow_from_preset201_response.rb +246 -0
- data/lib/api-sdk-rb/models/create_workspace_workflow_from_preset_request.rb +278 -0
- data/lib/api-sdk-rb/models/create_workspace_workflow_request.rb +271 -0
- data/lib/api-sdk-rb/models/delete_workspace_workflow200_response.rb +246 -0
- data/lib/api-sdk-rb/models/get_public_composition_embed200_response.rb +29 -2
- data/lib/api-sdk-rb/models/get_public_composition_embed200_response_adapters.rb +225 -0
- data/lib/api-sdk-rb/models/get_public_composition_embed200_response_adapters_captcha.rb +216 -0
- data/lib/api-sdk-rb/models/get_public_composition_embed200_response_entries.rb +224 -0
- data/lib/api-sdk-rb/models/get_public_composition_embed200_response_media.rb +216 -0
- data/lib/api-sdk-rb/models/get_public_workflow200_response.rb +246 -0
- data/lib/api-sdk-rb/models/get_workspace_workflow_stats200_response.rb +246 -0
- data/lib/api-sdk-rb/models/get_workspace_workflow_version200_response.rb +246 -0
- data/lib/api-sdk-rb/models/list_partner_workflow_presets200_response.rb +246 -0
- data/lib/api-sdk-rb/models/list_workspace_workflow_composition_options200_response.rb +246 -0
- data/lib/api-sdk-rb/models/list_workspace_workflow_presets200_response.rb +246 -0
- data/lib/api-sdk-rb/models/list_workspace_workflow_versions200_response.rb +246 -0
- data/lib/api-sdk-rb/models/list_workspace_workflows200_response.rb +246 -0
- data/lib/api-sdk-rb/models/new_composition.rb +1 -1
- data/lib/api-sdk-rb/models/new_editor_session.rb +1 -1
- data/lib/api-sdk-rb/models/offer_workflow_preset_request.rb +322 -0
- data/lib/api-sdk-rb/models/offered_workflow_preset.rb +423 -0
- data/lib/api-sdk-rb/models/offered_workflow_preset_list.rb +223 -0
- data/lib/api-sdk-rb/models/offered_workflow_preset_widget.rb +251 -0
- data/lib/api-sdk-rb/models/partner_notification.rb +1 -1
- data/lib/api-sdk-rb/models/partner_notification_event_type.rb +5 -1
- data/lib/api-sdk-rb/models/patch_brand_kit_asset_request.rb +289 -0
- data/lib/api-sdk-rb/models/patch_brand_kit_request.rb +332 -0
- data/lib/api-sdk-rb/models/patch_brand_kit_request_fonts.rb +242 -0
- data/lib/api-sdk-rb/models/patch_brand_kit_request_spacing.rb +502 -0
- data/lib/api-sdk-rb/models/post_brand_kit_icon_request.rb +237 -0
- data/lib/api-sdk-rb/models/public_workflow.rb +351 -0
- data/lib/api-sdk-rb/models/public_workflow_events_accepted.rb +242 -0
- data/lib/api-sdk-rb/models/public_workflow_events_request.rb +301 -0
- data/lib/api-sdk-rb/models/public_workflow_events_request_events_inner.rb +332 -0
- data/lib/api-sdk-rb/models/public_workflow_events_request_heights_inner.rb +267 -0
- data/lib/api-sdk-rb/models/public_workflow_translation.rb +242 -0
- data/lib/api-sdk-rb/models/publish_workspace_workflow200_response.rb +246 -0
- data/lib/api-sdk-rb/models/publish_workspace_workflow_request.rb +240 -0
- data/lib/api-sdk-rb/models/put_brand_kit_request.rb +239 -0
- data/lib/api-sdk-rb/models/remove_partner_workflow_preset200_response.rb +246 -0
- data/lib/api-sdk-rb/models/report_public_workflow_events200_response.rb +246 -0
- data/lib/api-sdk-rb/models/save_workspace_workflow200_response.rb +246 -0
- data/lib/api-sdk-rb/models/save_workspace_workflow_request.rb +296 -0
- data/lib/api-sdk-rb/models/set_adapter_connection_request.rb +1 -1
- data/lib/api-sdk-rb/models/set_partner_workflow_preset200_response.rb +246 -0
- data/lib/api-sdk-rb/models/update_composition.rb +1 -1
- data/lib/api-sdk-rb/models/widget.rb +9 -20
- data/lib/api-sdk-rb/models/workflow.rb +509 -0
- data/lib/api-sdk-rb/models/workflow_composition_action.rb +266 -0
- data/lib/api-sdk-rb/models/workflow_composition_field.rb +303 -0
- data/lib/api-sdk-rb/models/workflow_composition_option.rb +316 -0
- data/lib/api-sdk-rb/models/workflow_composition_option_actions.rb +284 -0
- data/lib/api-sdk-rb/models/workflow_composition_option_inputs.rb +304 -0
- data/lib/api-sdk-rb/models/workflow_composition_options.rb +271 -0
- data/lib/api-sdk-rb/models/workflow_condition_case.rb +322 -0
- data/lib/api-sdk-rb/models/workflow_condition_test.rb +284 -0
- data/lib/api-sdk-rb/models/workflow_counter.rb +238 -0
- data/lib/api-sdk-rb/models/workflow_detail.rb +580 -0
- data/lib/api-sdk-rb/models/workflow_detail_all_of_last_edited_by.rb +242 -0
- data/lib/api-sdk-rb/models/workflow_edge.rb +292 -0
- data/lib/api-sdk-rb/models/workflow_field_reference.rb +300 -0
- data/lib/api-sdk-rb/models/workflow_graph.rb +330 -0
- data/lib/api-sdk-rb/models/workflow_issue.rb +309 -0
- data/lib/api-sdk-rb/models/workflow_list.rb +271 -0
- data/lib/api-sdk-rb/models/workflow_node.rb +343 -0
- data/lib/api-sdk-rb/models/workflow_node_position.rb +238 -0
- data/lib/api-sdk-rb/models/workflow_preset_choice.rb +288 -0
- data/lib/api-sdk-rb/models/workflow_preset_choices.rb +224 -0
- data/lib/api-sdk-rb/models/workflow_preset_removal.rb +222 -0
- data/lib/api-sdk-rb/models/workflow_preset_widget.rb +234 -0
- data/lib/api-sdk-rb/models/workflow_publish_result.rb +256 -0
- data/lib/api-sdk-rb/models/workflow_removed.rb +221 -0
- data/lib/api-sdk-rb/models/workflow_schedule.rb +298 -0
- data/lib/api-sdk-rb/models/workflow_stats.rb +335 -0
- data/lib/api-sdk-rb/models/workflow_status.rb +42 -0
- data/lib/api-sdk-rb/models/workflow_trigger.rb +303 -0
- data/lib/api-sdk-rb/models/workflow_trigger_values_inner.rb +271 -0
- data/lib/api-sdk-rb/models/workflow_version.rb +316 -0
- data/lib/api-sdk-rb/models/workflow_version_detail.rb +354 -0
- data/lib/api-sdk-rb/models/workflow_version_list.rb +224 -0
- data/lib/api-sdk-rb/models/workflow_version_published_by.rb +225 -0
- data/lib/api-sdk-rb/version.rb +1 -1
- data/lib/api-sdk-rb.rb +88 -0
- data/spec/api/brand_kit_api_spec.rb +136 -0
- data/spec/api/compositions_api_spec.rb +86 -69
- data/spec/api/managed_users_api_spec.rb +1 -1
- data/spec/api/partner_api_spec.rb +624 -82
- data/spec/api/partners_api_spec.rb +56 -2
- data/spec/api/public_embed_api_spec.rb +54 -3
- data/spec/api/users_api_spec.rb +16 -1
- data/spec/api/workflows_api_spec.rb +378 -0
- data/spec/api/workspaces_api_spec.rb +339 -0
- data/spec/models/adapter_connection_spec.rb +18 -0
- data/spec/models/brand_color_spec.rb +52 -0
- data/spec/models/brand_font_spec.rb +62 -0
- data/spec/models/brand_kit_asset_view_spec.rb +120 -0
- data/spec/models/brand_kit_figma_source_spec.rb +60 -0
- data/spec/models/brand_kit_tokens_fonts_spec.rb +54 -0
- data/spec/models/brand_kit_tokens_spec.rb +54 -0
- data/spec/models/brand_kit_view_owner_spec.rb +46 -0
- data/spec/models/brand_kit_view_response_spec.rb +48 -0
- data/spec/models/brand_kit_view_spec.rb +90 -0
- data/spec/models/brand_spacing_spec.rb +78 -0
- data/spec/models/composition_last_edited_by_spec.rb +42 -0
- data/spec/models/composition_spec.rb +12 -0
- data/spec/models/confirm_adapter_connection_request_spec.rb +36 -0
- data/spec/models/create_widget201_response_data_spec.rb +1 -7
- data/spec/models/create_workspace_workflow_from_preset201_response_spec.rb +48 -0
- data/spec/models/create_workspace_workflow_from_preset_request_spec.rb +42 -0
- data/spec/models/create_workspace_workflow_request_spec.rb +48 -0
- data/spec/models/delete_workspace_workflow200_response_spec.rb +48 -0
- data/spec/models/editor_session_spec.rb +1 -1
- data/spec/models/get_public_composition_embed200_response_adapters_captcha_spec.rb +36 -0
- data/spec/models/get_public_composition_embed200_response_adapters_spec.rb +42 -0
- data/spec/models/get_public_composition_embed200_response_entries_spec.rb +42 -0
- data/spec/models/get_public_composition_embed200_response_media_spec.rb +36 -0
- data/spec/models/get_public_composition_embed200_response_spec.rb +18 -0
- data/spec/models/get_public_workflow200_response_spec.rb +48 -0
- data/spec/models/get_workspace_workflow_stats200_response_spec.rb +48 -0
- data/spec/models/get_workspace_workflow_version200_response_spec.rb +48 -0
- data/spec/models/list_partner_workflow_presets200_response_spec.rb +48 -0
- data/spec/models/list_workspace_workflow_composition_options200_response_spec.rb +48 -0
- data/spec/models/list_workspace_workflow_presets200_response_spec.rb +48 -0
- data/spec/models/list_workspace_workflow_versions200_response_spec.rb +48 -0
- data/spec/models/list_workspace_workflows200_response_spec.rb +48 -0
- data/spec/models/new_editor_session_spec.rb +1 -1
- data/spec/models/offer_workflow_preset_request_spec.rb +54 -0
- data/spec/models/offered_workflow_preset_list_spec.rb +36 -0
- data/spec/models/offered_workflow_preset_spec.rb +106 -0
- data/spec/models/offered_workflow_preset_widget_spec.rb +48 -0
- data/spec/models/patch_brand_kit_asset_request_spec.rb +62 -0
- data/spec/models/patch_brand_kit_request_fonts_spec.rb +54 -0
- data/spec/models/patch_brand_kit_request_spacing_spec.rb +78 -0
- data/spec/models/patch_brand_kit_request_spec.rb +66 -0
- data/spec/models/post_brand_kit_icon_request_spec.rb +42 -0
- data/spec/models/public_workflow_events_accepted_spec.rb +48 -0
- data/spec/models/public_workflow_events_request_events_inner_spec.rb +52 -0
- data/spec/models/public_workflow_events_request_heights_inner_spec.rb +42 -0
- data/spec/models/public_workflow_events_request_spec.rb +54 -0
- data/spec/models/public_workflow_spec.rb +94 -0
- data/spec/models/public_workflow_translation_spec.rb +42 -0
- data/spec/models/publish_workspace_workflow200_response_spec.rb +48 -0
- data/spec/models/publish_workspace_workflow_request_spec.rb +36 -0
- data/spec/models/put_brand_kit_request_spec.rb +48 -0
- data/spec/models/remove_partner_workflow_preset200_response_spec.rb +48 -0
- data/spec/models/report_public_workflow_events200_response_spec.rb +48 -0
- data/spec/models/save_workspace_workflow200_response_spec.rb +48 -0
- data/spec/models/save_workspace_workflow_request_spec.rb +54 -0
- data/spec/models/set_partner_workflow_preset200_response_spec.rb +48 -0
- data/spec/models/widget_spec.rb +1 -7
- data/spec/models/workflow_composition_action_spec.rb +54 -0
- data/spec/models/workflow_composition_field_spec.rb +58 -0
- data/spec/models/workflow_composition_option_actions_spec.rb +52 -0
- data/spec/models/workflow_composition_option_inputs_spec.rb +58 -0
- data/spec/models/workflow_composition_option_spec.rb +72 -0
- data/spec/models/workflow_composition_options_spec.rb +54 -0
- data/spec/models/workflow_condition_case_spec.rb +58 -0
- data/spec/models/workflow_condition_test_spec.rb +52 -0
- data/spec/models/workflow_counter_spec.rb +42 -0
- data/spec/models/workflow_detail_all_of_last_edited_by_spec.rb +42 -0
- data/spec/models/workflow_detail_spec.rb +162 -0
- data/spec/models/workflow_edge_spec.rb +54 -0
- data/spec/models/workflow_field_reference_spec.rb +56 -0
- data/spec/models/workflow_graph_spec.rb +52 -0
- data/spec/models/workflow_issue_spec.rb +70 -0
- data/spec/models/workflow_list_spec.rb +54 -0
- data/spec/models/workflow_node_position_spec.rb +42 -0
- data/spec/models/workflow_node_spec.rb +76 -0
- data/spec/models/workflow_preset_choice_spec.rb +60 -0
- data/spec/models/workflow_preset_choices_spec.rb +36 -0
- data/spec/models/workflow_preset_removal_spec.rb +36 -0
- data/spec/models/workflow_preset_widget_spec.rb +42 -0
- data/spec/models/workflow_publish_result_spec.rb +48 -0
- data/spec/models/workflow_removed_spec.rb +36 -0
- data/spec/models/workflow_schedule_spec.rb +62 -0
- data/spec/models/workflow_spec.rb +132 -0
- data/spec/models/workflow_stats_spec.rb +78 -0
- data/spec/models/workflow_status_spec.rb +30 -0
- data/spec/models/workflow_trigger_spec.rb +70 -0
- data/spec/models/workflow_trigger_values_inner_spec.rb +46 -0
- data/spec/models/workflow_version_detail_spec.rb +78 -0
- data/spec/models/workflow_version_list_spec.rb +36 -0
- data/spec/models/workflow_version_published_by_spec.rb +42 -0
- data/spec/models/workflow_version_spec.rb +66 -0
- metadata +364 -12
|
@@ -0,0 +1,557 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Widgetic API Gateway
|
|
3
|
+
|
|
4
|
+
#API documentation for the Widgetic API Gateway
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.9.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module ApiSdkRb
|
|
17
|
+
class BrandSpacing
|
|
18
|
+
attr_accessor :xs
|
|
19
|
+
|
|
20
|
+
attr_accessor :s
|
|
21
|
+
|
|
22
|
+
attr_accessor :m
|
|
23
|
+
|
|
24
|
+
attr_accessor :l
|
|
25
|
+
|
|
26
|
+
attr_accessor :xl
|
|
27
|
+
|
|
28
|
+
attr_accessor :radius_s
|
|
29
|
+
|
|
30
|
+
attr_accessor :radius_m
|
|
31
|
+
|
|
32
|
+
attr_accessor :radius_l
|
|
33
|
+
|
|
34
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
35
|
+
def self.attribute_map
|
|
36
|
+
{
|
|
37
|
+
:'xs' => :'xs',
|
|
38
|
+
:'s' => :'s',
|
|
39
|
+
:'m' => :'m',
|
|
40
|
+
:'l' => :'l',
|
|
41
|
+
:'xl' => :'xl',
|
|
42
|
+
:'radius_s' => :'radiusS',
|
|
43
|
+
:'radius_m' => :'radiusM',
|
|
44
|
+
:'radius_l' => :'radiusL'
|
|
45
|
+
}
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# Returns all the JSON keys this model knows about
|
|
49
|
+
def self.acceptable_attributes
|
|
50
|
+
attribute_map.values
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# Attribute type mapping.
|
|
54
|
+
def self.openapi_types
|
|
55
|
+
{
|
|
56
|
+
:'xs' => :'Integer',
|
|
57
|
+
:'s' => :'Integer',
|
|
58
|
+
:'m' => :'Integer',
|
|
59
|
+
:'l' => :'Integer',
|
|
60
|
+
:'xl' => :'Integer',
|
|
61
|
+
:'radius_s' => :'Integer',
|
|
62
|
+
:'radius_m' => :'Integer',
|
|
63
|
+
:'radius_l' => :'Integer'
|
|
64
|
+
}
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
# List of attributes with nullable: true
|
|
68
|
+
def self.openapi_nullable
|
|
69
|
+
Set.new([
|
|
70
|
+
])
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# Initializes the object
|
|
74
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
75
|
+
def initialize(attributes = {})
|
|
76
|
+
if (!attributes.is_a?(Hash))
|
|
77
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `ApiSdkRb::BrandSpacing` initialize method"
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
81
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
82
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
83
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `ApiSdkRb::BrandSpacing`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
84
|
+
end
|
|
85
|
+
h[k.to_sym] = v
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
if attributes.key?(:'xs')
|
|
89
|
+
self.xs = attributes[:'xs']
|
|
90
|
+
else
|
|
91
|
+
self.xs = nil
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
if attributes.key?(:'s')
|
|
95
|
+
self.s = attributes[:'s']
|
|
96
|
+
else
|
|
97
|
+
self.s = nil
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
if attributes.key?(:'m')
|
|
101
|
+
self.m = attributes[:'m']
|
|
102
|
+
else
|
|
103
|
+
self.m = nil
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
if attributes.key?(:'l')
|
|
107
|
+
self.l = attributes[:'l']
|
|
108
|
+
else
|
|
109
|
+
self.l = nil
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
if attributes.key?(:'xl')
|
|
113
|
+
self.xl = attributes[:'xl']
|
|
114
|
+
else
|
|
115
|
+
self.xl = nil
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
if attributes.key?(:'radius_s')
|
|
119
|
+
self.radius_s = attributes[:'radius_s']
|
|
120
|
+
else
|
|
121
|
+
self.radius_s = nil
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
if attributes.key?(:'radius_m')
|
|
125
|
+
self.radius_m = attributes[:'radius_m']
|
|
126
|
+
else
|
|
127
|
+
self.radius_m = nil
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
if attributes.key?(:'radius_l')
|
|
131
|
+
self.radius_l = attributes[:'radius_l']
|
|
132
|
+
else
|
|
133
|
+
self.radius_l = nil
|
|
134
|
+
end
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
138
|
+
# @return Array for valid properties with the reasons
|
|
139
|
+
def list_invalid_properties
|
|
140
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
141
|
+
invalid_properties = Array.new
|
|
142
|
+
if @xs.nil?
|
|
143
|
+
invalid_properties.push('invalid value for "xs", xs cannot be nil.')
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
if @xs > 128
|
|
147
|
+
invalid_properties.push('invalid value for "xs", must be smaller than or equal to 128.')
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
if @xs < 0
|
|
151
|
+
invalid_properties.push('invalid value for "xs", must be greater than or equal to 0.')
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
if @s.nil?
|
|
155
|
+
invalid_properties.push('invalid value for "s", s cannot be nil.')
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
if @s > 128
|
|
159
|
+
invalid_properties.push('invalid value for "s", must be smaller than or equal to 128.')
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
if @s < 0
|
|
163
|
+
invalid_properties.push('invalid value for "s", must be greater than or equal to 0.')
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
if @m.nil?
|
|
167
|
+
invalid_properties.push('invalid value for "m", m cannot be nil.')
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
if @m > 128
|
|
171
|
+
invalid_properties.push('invalid value for "m", must be smaller than or equal to 128.')
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
if @m < 0
|
|
175
|
+
invalid_properties.push('invalid value for "m", must be greater than or equal to 0.')
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
if @l.nil?
|
|
179
|
+
invalid_properties.push('invalid value for "l", l cannot be nil.')
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
if @l > 128
|
|
183
|
+
invalid_properties.push('invalid value for "l", must be smaller than or equal to 128.')
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
if @l < 0
|
|
187
|
+
invalid_properties.push('invalid value for "l", must be greater than or equal to 0.')
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
if @xl.nil?
|
|
191
|
+
invalid_properties.push('invalid value for "xl", xl cannot be nil.')
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
if @xl > 128
|
|
195
|
+
invalid_properties.push('invalid value for "xl", must be smaller than or equal to 128.')
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
if @xl < 0
|
|
199
|
+
invalid_properties.push('invalid value for "xl", must be greater than or equal to 0.')
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
if @radius_s.nil?
|
|
203
|
+
invalid_properties.push('invalid value for "radius_s", radius_s cannot be nil.')
|
|
204
|
+
end
|
|
205
|
+
|
|
206
|
+
if @radius_s > 64
|
|
207
|
+
invalid_properties.push('invalid value for "radius_s", must be smaller than or equal to 64.')
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
if @radius_s < 0
|
|
211
|
+
invalid_properties.push('invalid value for "radius_s", must be greater than or equal to 0.')
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
if @radius_m.nil?
|
|
215
|
+
invalid_properties.push('invalid value for "radius_m", radius_m cannot be nil.')
|
|
216
|
+
end
|
|
217
|
+
|
|
218
|
+
if @radius_m > 64
|
|
219
|
+
invalid_properties.push('invalid value for "radius_m", must be smaller than or equal to 64.')
|
|
220
|
+
end
|
|
221
|
+
|
|
222
|
+
if @radius_m < 0
|
|
223
|
+
invalid_properties.push('invalid value for "radius_m", must be greater than or equal to 0.')
|
|
224
|
+
end
|
|
225
|
+
|
|
226
|
+
if @radius_l.nil?
|
|
227
|
+
invalid_properties.push('invalid value for "radius_l", radius_l cannot be nil.')
|
|
228
|
+
end
|
|
229
|
+
|
|
230
|
+
if @radius_l > 64
|
|
231
|
+
invalid_properties.push('invalid value for "radius_l", must be smaller than or equal to 64.')
|
|
232
|
+
end
|
|
233
|
+
|
|
234
|
+
if @radius_l < 0
|
|
235
|
+
invalid_properties.push('invalid value for "radius_l", must be greater than or equal to 0.')
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
invalid_properties
|
|
239
|
+
end
|
|
240
|
+
|
|
241
|
+
# Check to see if the all the properties in the model are valid
|
|
242
|
+
# @return true if the model is valid
|
|
243
|
+
def valid?
|
|
244
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
245
|
+
return false if @xs.nil?
|
|
246
|
+
return false if @xs > 128
|
|
247
|
+
return false if @xs < 0
|
|
248
|
+
return false if @s.nil?
|
|
249
|
+
return false if @s > 128
|
|
250
|
+
return false if @s < 0
|
|
251
|
+
return false if @m.nil?
|
|
252
|
+
return false if @m > 128
|
|
253
|
+
return false if @m < 0
|
|
254
|
+
return false if @l.nil?
|
|
255
|
+
return false if @l > 128
|
|
256
|
+
return false if @l < 0
|
|
257
|
+
return false if @xl.nil?
|
|
258
|
+
return false if @xl > 128
|
|
259
|
+
return false if @xl < 0
|
|
260
|
+
return false if @radius_s.nil?
|
|
261
|
+
return false if @radius_s > 64
|
|
262
|
+
return false if @radius_s < 0
|
|
263
|
+
return false if @radius_m.nil?
|
|
264
|
+
return false if @radius_m > 64
|
|
265
|
+
return false if @radius_m < 0
|
|
266
|
+
return false if @radius_l.nil?
|
|
267
|
+
return false if @radius_l > 64
|
|
268
|
+
return false if @radius_l < 0
|
|
269
|
+
true
|
|
270
|
+
end
|
|
271
|
+
|
|
272
|
+
# Custom attribute writer method with validation
|
|
273
|
+
# @param [Object] xs Value to be assigned
|
|
274
|
+
def xs=(xs)
|
|
275
|
+
if xs.nil?
|
|
276
|
+
fail ArgumentError, 'xs cannot be nil'
|
|
277
|
+
end
|
|
278
|
+
|
|
279
|
+
if xs > 128
|
|
280
|
+
fail ArgumentError, 'invalid value for "xs", must be smaller than or equal to 128.'
|
|
281
|
+
end
|
|
282
|
+
|
|
283
|
+
if xs < 0
|
|
284
|
+
fail ArgumentError, 'invalid value for "xs", must be greater than or equal to 0.'
|
|
285
|
+
end
|
|
286
|
+
|
|
287
|
+
@xs = xs
|
|
288
|
+
end
|
|
289
|
+
|
|
290
|
+
# Custom attribute writer method with validation
|
|
291
|
+
# @param [Object] s Value to be assigned
|
|
292
|
+
def s=(s)
|
|
293
|
+
if s.nil?
|
|
294
|
+
fail ArgumentError, 's cannot be nil'
|
|
295
|
+
end
|
|
296
|
+
|
|
297
|
+
if s > 128
|
|
298
|
+
fail ArgumentError, 'invalid value for "s", must be smaller than or equal to 128.'
|
|
299
|
+
end
|
|
300
|
+
|
|
301
|
+
if s < 0
|
|
302
|
+
fail ArgumentError, 'invalid value for "s", must be greater than or equal to 0.'
|
|
303
|
+
end
|
|
304
|
+
|
|
305
|
+
@s = s
|
|
306
|
+
end
|
|
307
|
+
|
|
308
|
+
# Custom attribute writer method with validation
|
|
309
|
+
# @param [Object] m Value to be assigned
|
|
310
|
+
def m=(m)
|
|
311
|
+
if m.nil?
|
|
312
|
+
fail ArgumentError, 'm cannot be nil'
|
|
313
|
+
end
|
|
314
|
+
|
|
315
|
+
if m > 128
|
|
316
|
+
fail ArgumentError, 'invalid value for "m", must be smaller than or equal to 128.'
|
|
317
|
+
end
|
|
318
|
+
|
|
319
|
+
if m < 0
|
|
320
|
+
fail ArgumentError, 'invalid value for "m", must be greater than or equal to 0.'
|
|
321
|
+
end
|
|
322
|
+
|
|
323
|
+
@m = m
|
|
324
|
+
end
|
|
325
|
+
|
|
326
|
+
# Custom attribute writer method with validation
|
|
327
|
+
# @param [Object] l Value to be assigned
|
|
328
|
+
def l=(l)
|
|
329
|
+
if l.nil?
|
|
330
|
+
fail ArgumentError, 'l cannot be nil'
|
|
331
|
+
end
|
|
332
|
+
|
|
333
|
+
if l > 128
|
|
334
|
+
fail ArgumentError, 'invalid value for "l", must be smaller than or equal to 128.'
|
|
335
|
+
end
|
|
336
|
+
|
|
337
|
+
if l < 0
|
|
338
|
+
fail ArgumentError, 'invalid value for "l", must be greater than or equal to 0.'
|
|
339
|
+
end
|
|
340
|
+
|
|
341
|
+
@l = l
|
|
342
|
+
end
|
|
343
|
+
|
|
344
|
+
# Custom attribute writer method with validation
|
|
345
|
+
# @param [Object] xl Value to be assigned
|
|
346
|
+
def xl=(xl)
|
|
347
|
+
if xl.nil?
|
|
348
|
+
fail ArgumentError, 'xl cannot be nil'
|
|
349
|
+
end
|
|
350
|
+
|
|
351
|
+
if xl > 128
|
|
352
|
+
fail ArgumentError, 'invalid value for "xl", must be smaller than or equal to 128.'
|
|
353
|
+
end
|
|
354
|
+
|
|
355
|
+
if xl < 0
|
|
356
|
+
fail ArgumentError, 'invalid value for "xl", must be greater than or equal to 0.'
|
|
357
|
+
end
|
|
358
|
+
|
|
359
|
+
@xl = xl
|
|
360
|
+
end
|
|
361
|
+
|
|
362
|
+
# Custom attribute writer method with validation
|
|
363
|
+
# @param [Object] radius_s Value to be assigned
|
|
364
|
+
def radius_s=(radius_s)
|
|
365
|
+
if radius_s.nil?
|
|
366
|
+
fail ArgumentError, 'radius_s cannot be nil'
|
|
367
|
+
end
|
|
368
|
+
|
|
369
|
+
if radius_s > 64
|
|
370
|
+
fail ArgumentError, 'invalid value for "radius_s", must be smaller than or equal to 64.'
|
|
371
|
+
end
|
|
372
|
+
|
|
373
|
+
if radius_s < 0
|
|
374
|
+
fail ArgumentError, 'invalid value for "radius_s", must be greater than or equal to 0.'
|
|
375
|
+
end
|
|
376
|
+
|
|
377
|
+
@radius_s = radius_s
|
|
378
|
+
end
|
|
379
|
+
|
|
380
|
+
# Custom attribute writer method with validation
|
|
381
|
+
# @param [Object] radius_m Value to be assigned
|
|
382
|
+
def radius_m=(radius_m)
|
|
383
|
+
if radius_m.nil?
|
|
384
|
+
fail ArgumentError, 'radius_m cannot be nil'
|
|
385
|
+
end
|
|
386
|
+
|
|
387
|
+
if radius_m > 64
|
|
388
|
+
fail ArgumentError, 'invalid value for "radius_m", must be smaller than or equal to 64.'
|
|
389
|
+
end
|
|
390
|
+
|
|
391
|
+
if radius_m < 0
|
|
392
|
+
fail ArgumentError, 'invalid value for "radius_m", must be greater than or equal to 0.'
|
|
393
|
+
end
|
|
394
|
+
|
|
395
|
+
@radius_m = radius_m
|
|
396
|
+
end
|
|
397
|
+
|
|
398
|
+
# Custom attribute writer method with validation
|
|
399
|
+
# @param [Object] radius_l Value to be assigned
|
|
400
|
+
def radius_l=(radius_l)
|
|
401
|
+
if radius_l.nil?
|
|
402
|
+
fail ArgumentError, 'radius_l cannot be nil'
|
|
403
|
+
end
|
|
404
|
+
|
|
405
|
+
if radius_l > 64
|
|
406
|
+
fail ArgumentError, 'invalid value for "radius_l", must be smaller than or equal to 64.'
|
|
407
|
+
end
|
|
408
|
+
|
|
409
|
+
if radius_l < 0
|
|
410
|
+
fail ArgumentError, 'invalid value for "radius_l", must be greater than or equal to 0.'
|
|
411
|
+
end
|
|
412
|
+
|
|
413
|
+
@radius_l = radius_l
|
|
414
|
+
end
|
|
415
|
+
|
|
416
|
+
# Checks equality by comparing each attribute.
|
|
417
|
+
# @param [Object] Object to be compared
|
|
418
|
+
def ==(o)
|
|
419
|
+
return true if self.equal?(o)
|
|
420
|
+
self.class == o.class &&
|
|
421
|
+
xs == o.xs &&
|
|
422
|
+
s == o.s &&
|
|
423
|
+
m == o.m &&
|
|
424
|
+
l == o.l &&
|
|
425
|
+
xl == o.xl &&
|
|
426
|
+
radius_s == o.radius_s &&
|
|
427
|
+
radius_m == o.radius_m &&
|
|
428
|
+
radius_l == o.radius_l
|
|
429
|
+
end
|
|
430
|
+
|
|
431
|
+
# @see the `==` method
|
|
432
|
+
# @param [Object] Object to be compared
|
|
433
|
+
def eql?(o)
|
|
434
|
+
self == o
|
|
435
|
+
end
|
|
436
|
+
|
|
437
|
+
# Calculates hash code according to all attributes.
|
|
438
|
+
# @return [Integer] Hash code
|
|
439
|
+
def hash
|
|
440
|
+
[xs, s, m, l, xl, radius_s, radius_m, radius_l].hash
|
|
441
|
+
end
|
|
442
|
+
|
|
443
|
+
# Builds the object from hash
|
|
444
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
445
|
+
# @return [Object] Returns the model itself
|
|
446
|
+
def self.build_from_hash(attributes)
|
|
447
|
+
return nil unless attributes.is_a?(Hash)
|
|
448
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
449
|
+
transformed_hash = {}
|
|
450
|
+
openapi_types.each_pair do |key, type|
|
|
451
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
452
|
+
transformed_hash["#{key}"] = nil
|
|
453
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
454
|
+
# check to ensure the input is an array given that the attribute
|
|
455
|
+
# is documented as an array but the input is not
|
|
456
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
457
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
458
|
+
end
|
|
459
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
460
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
461
|
+
end
|
|
462
|
+
end
|
|
463
|
+
new(transformed_hash)
|
|
464
|
+
end
|
|
465
|
+
|
|
466
|
+
# Deserializes the data based on type
|
|
467
|
+
# @param string type Data type
|
|
468
|
+
# @param string value Value to be deserialized
|
|
469
|
+
# @return [Object] Deserialized data
|
|
470
|
+
def self._deserialize(type, value)
|
|
471
|
+
case type.to_sym
|
|
472
|
+
when :Time
|
|
473
|
+
Time.parse(value)
|
|
474
|
+
when :Date
|
|
475
|
+
Date.parse(value)
|
|
476
|
+
when :String
|
|
477
|
+
value.to_s
|
|
478
|
+
when :Integer
|
|
479
|
+
value.to_i
|
|
480
|
+
when :Float
|
|
481
|
+
value.to_f
|
|
482
|
+
when :Boolean
|
|
483
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
484
|
+
true
|
|
485
|
+
else
|
|
486
|
+
false
|
|
487
|
+
end
|
|
488
|
+
when :Object
|
|
489
|
+
# generic object (usually a Hash), return directly
|
|
490
|
+
value
|
|
491
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
492
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
493
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
494
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
495
|
+
k_type = Regexp.last_match[:k_type]
|
|
496
|
+
v_type = Regexp.last_match[:v_type]
|
|
497
|
+
{}.tap do |hash|
|
|
498
|
+
value.each do |k, v|
|
|
499
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
500
|
+
end
|
|
501
|
+
end
|
|
502
|
+
else # model
|
|
503
|
+
# models (e.g. Pet) or oneOf
|
|
504
|
+
klass = ApiSdkRb.const_get(type)
|
|
505
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
506
|
+
end
|
|
507
|
+
end
|
|
508
|
+
|
|
509
|
+
# Returns the string representation of the object
|
|
510
|
+
# @return [String] String presentation of the object
|
|
511
|
+
def to_s
|
|
512
|
+
to_hash.to_s
|
|
513
|
+
end
|
|
514
|
+
|
|
515
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
516
|
+
# @return [Hash] Returns the object in the form of hash
|
|
517
|
+
def to_body
|
|
518
|
+
to_hash
|
|
519
|
+
end
|
|
520
|
+
|
|
521
|
+
# Returns the object in the form of hash
|
|
522
|
+
# @return [Hash] Returns the object in the form of hash
|
|
523
|
+
def to_hash
|
|
524
|
+
hash = {}
|
|
525
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
526
|
+
value = self.send(attr)
|
|
527
|
+
if value.nil?
|
|
528
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
529
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
530
|
+
end
|
|
531
|
+
|
|
532
|
+
hash[param] = _to_hash(value)
|
|
533
|
+
end
|
|
534
|
+
hash
|
|
535
|
+
end
|
|
536
|
+
|
|
537
|
+
# Outputs non-array value in the form of hash
|
|
538
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
539
|
+
# @param [Object] value Any valid value
|
|
540
|
+
# @return [Hash] Returns the value in the form of hash
|
|
541
|
+
def _to_hash(value)
|
|
542
|
+
if value.is_a?(Array)
|
|
543
|
+
value.compact.map { |v| _to_hash(v) }
|
|
544
|
+
elsif value.is_a?(Hash)
|
|
545
|
+
{}.tap do |hash|
|
|
546
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
547
|
+
end
|
|
548
|
+
elsif value.respond_to? :to_hash
|
|
549
|
+
value.to_hash
|
|
550
|
+
else
|
|
551
|
+
value
|
|
552
|
+
end
|
|
553
|
+
end
|
|
554
|
+
|
|
555
|
+
end
|
|
556
|
+
|
|
557
|
+
end
|
|
@@ -60,6 +60,11 @@ module ApiSdkRb
|
|
|
60
60
|
# Whether the widget the composition is made from is drawn straight into the page, without a frame (`true`), or inside a frame (`false`). `null` when the widget has no published version yet. It is a fact about the widget's published version, so every composition of one widget answers the same, and it changes when you publish another version. It cannot be set. Only `getCompositionById` returns it: the other calls that return a composition leave it out, and so does that one on the rare occasion the answer could not be worked out just then (ask again).
|
|
61
61
|
attr_accessor :direct
|
|
62
62
|
|
|
63
|
+
attr_accessor :last_edited_by
|
|
64
|
+
|
|
65
|
+
# When that latest change was made. Present whenever `lastEditedBy` is.
|
|
66
|
+
attr_accessor :last_edited_at
|
|
67
|
+
|
|
63
68
|
class EnumAttributeValidator
|
|
64
69
|
attr_reader :datatype
|
|
65
70
|
attr_reader :allowable_values
|
|
@@ -99,7 +104,9 @@ module ApiSdkRb
|
|
|
99
104
|
:'database_id' => :'databaseId',
|
|
100
105
|
:'project_id' => :'projectId',
|
|
101
106
|
:'managed_user_id' => :'managedUserId',
|
|
102
|
-
:'direct' => :'direct'
|
|
107
|
+
:'direct' => :'direct',
|
|
108
|
+
:'last_edited_by' => :'lastEditedBy',
|
|
109
|
+
:'last_edited_at' => :'lastEditedAt'
|
|
103
110
|
}
|
|
104
111
|
end
|
|
105
112
|
|
|
@@ -125,7 +132,9 @@ module ApiSdkRb
|
|
|
125
132
|
:'database_id' => :'String',
|
|
126
133
|
:'project_id' => :'String',
|
|
127
134
|
:'managed_user_id' => :'String',
|
|
128
|
-
:'direct' => :'Boolean'
|
|
135
|
+
:'direct' => :'Boolean',
|
|
136
|
+
:'last_edited_by' => :'CompositionLastEditedBy',
|
|
137
|
+
:'last_edited_at' => :'Time'
|
|
129
138
|
}
|
|
130
139
|
end
|
|
131
140
|
|
|
@@ -133,7 +142,9 @@ module ApiSdkRb
|
|
|
133
142
|
def self.openapi_nullable
|
|
134
143
|
Set.new([
|
|
135
144
|
:'managed_user_id',
|
|
136
|
-
:'direct'
|
|
145
|
+
:'direct',
|
|
146
|
+
:'last_edited_by',
|
|
147
|
+
:'last_edited_at'
|
|
137
148
|
])
|
|
138
149
|
end
|
|
139
150
|
|
|
@@ -227,6 +238,14 @@ module ApiSdkRb
|
|
|
227
238
|
if attributes.key?(:'direct')
|
|
228
239
|
self.direct = attributes[:'direct']
|
|
229
240
|
end
|
|
241
|
+
|
|
242
|
+
if attributes.key?(:'last_edited_by')
|
|
243
|
+
self.last_edited_by = attributes[:'last_edited_by']
|
|
244
|
+
end
|
|
245
|
+
|
|
246
|
+
if attributes.key?(:'last_edited_at')
|
|
247
|
+
self.last_edited_at = attributes[:'last_edited_at']
|
|
248
|
+
end
|
|
230
249
|
end
|
|
231
250
|
|
|
232
251
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -315,7 +334,9 @@ module ApiSdkRb
|
|
|
315
334
|
database_id == o.database_id &&
|
|
316
335
|
project_id == o.project_id &&
|
|
317
336
|
managed_user_id == o.managed_user_id &&
|
|
318
|
-
direct == o.direct
|
|
337
|
+
direct == o.direct &&
|
|
338
|
+
last_edited_by == o.last_edited_by &&
|
|
339
|
+
last_edited_at == o.last_edited_at
|
|
319
340
|
end
|
|
320
341
|
|
|
321
342
|
# @see the `==` method
|
|
@@ -327,7 +348,7 @@ module ApiSdkRb
|
|
|
327
348
|
# Calculates hash code according to all attributes.
|
|
328
349
|
# @return [Integer] Hash code
|
|
329
350
|
def hash
|
|
330
|
-
[id, creator_id, widget_id, name, content, content_version, status, created_at, updated_at, embed_settings, design, database_id, project_id, managed_user_id, direct].hash
|
|
351
|
+
[id, creator_id, widget_id, name, content, content_version, status, created_at, updated_at, embed_settings, design, database_id, project_id, managed_user_id, direct, last_edited_by, last_edited_at].hash
|
|
331
352
|
end
|
|
332
353
|
|
|
333
354
|
# Builds the object from hash
|