api-sdk-rb 1.11.111 → 1.11.133
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 +207 -381
- data/docs/{GetPartnerCreditTransactions200Response.md → AccountCreditTransactionListResponse.md} +2 -2
- data/docs/{GetUserAdapterConnections200Response.md → AdapterConnectionListResponse.md} +2 -2
- data/docs/{RemoveUserAdapterConnection200Response.md → AdapterConnectionRemovalResponse.md} +2 -2
- data/docs/{SetUserAdapterConnection200Response.md → AdapterConnectionResponse.md} +2 -2
- data/docs/{AddAiAnswersKnowledgeDocument201Response.md → AiAnswersKnowledgeDocumentResponse.md} +2 -2
- data/docs/BrandKitApi.md +74 -74
- data/docs/BrandKitTokens.md +2 -0
- data/docs/BrandKitView.md +1 -1
- data/docs/BrandTextStyle.md +22 -0
- data/docs/CanvasesApi.md +45 -45
- data/docs/{CreateCompositionDatabaseRecord201Response.md → CompositionDatabaseRecordResponse.md} +2 -2
- data/docs/CompositionsApi.md +615 -349
- data/docs/{CreateCompositionContentItem201Response.md → ContentItemWriteResultResponse.md} +2 -2
- data/docs/CreditsApi.md +20 -20
- data/docs/{CreateCompositionFromWidget201Response.md → DeleteUpload200Response.md} +3 -3
- data/docs/{UploadsIdDelete200ResponseData.md → DeleteUpload200ResponseData.md} +2 -2
- data/docs/{GetPartnerDesignDefaults200Response.md → DesignDefaultsResponse.md} +2 -2
- data/docs/EntitlementsApi.md +18 -18
- data/docs/{OperationsIdGetResponse.md → GetOperationResponse.md} +3 -3
- data/docs/{OperationsIdGetResponseData.md → GetOperationResponseData.md} +3 -3
- data/docs/GetOperationResponseDataMetadata.md +24 -0
- data/docs/InvoicesApi.md +9 -9
- data/docs/{UploadsGet200Response.md → ListUploads200Response.md} +2 -2
- data/docs/{GetManagedUserLimits200Response.md → ManagedUserLimitsResponse.md} +2 -2
- data/docs/{DeleteManagedUser200Response.md → ManagedUserRemovalResponse.md} +2 -2
- data/docs/ManagedUsersApi.md +261 -171
- data/docs/OperationsApi.md +11 -11
- data/docs/PartnersApi.md +388 -388
- data/docs/PatchBrandKitRequest.md +2 -0
- data/docs/PublicEmbedApi.md +95 -95
- data/docs/PublicWorkflowEventsRequestEventsInner.md +3 -1
- data/docs/{GetPublicWorkflow200Response.md → PublicWorkflowResponse.md} +2 -2
- data/docs/TokensApi.md +11 -9
- data/docs/Upload.md +1 -1
- data/docs/UploadLimits.md +3 -3
- data/docs/UploadsApi.md +85 -85
- data/docs/UsersApi.md +125 -125
- data/docs/WidgetClarification.md +22 -0
- data/docs/WidgetClarificationOption.md +22 -0
- data/docs/WidgetClarificationQuestion.md +26 -0
- data/docs/WidgetNextStep.md +24 -0
- data/docs/WidgetPlan.md +26 -0
- data/docs/WidgetPlanDecisions.md +32 -0
- data/docs/WidgetPlanDecisionsAdaptersInner.md +20 -0
- data/docs/WidgetPlanDecisionsLibrariesInner.md +22 -0
- data/docs/WidgetPlanDecisionsResponsive.md +22 -0
- data/docs/WidgetPlanTask.md +24 -0
- data/docs/WidgetsApi.md +38 -38
- data/docs/{CreateWorkspaceWorkflowFromPreset201Response.md → WorkflowDetailResponse.md} +2 -2
- data/docs/WorkflowFailureReason.md +15 -0
- data/docs/WorkflowFailureReasonCounter.md +22 -0
- data/docs/{SaveWorkspaceWorkflow200Response.md → WorkflowResponse.md} +2 -2
- data/docs/WorkflowStats.md +4 -2
- data/docs/WorkflowsApi.md +197 -413
- data/lib/api-sdk-rb/api/brand_kit_api.rb +61 -61
- data/lib/api-sdk-rb/api/canvases_api.rb +39 -39
- data/lib/api-sdk-rb/api/compositions_api.rb +770 -441
- data/lib/api-sdk-rb/api/credits_api.rb +20 -20
- data/lib/api-sdk-rb/api/entitlements_api.rb +14 -14
- data/lib/api-sdk-rb/api/invoices_api.rb +10 -10
- data/lib/api-sdk-rb/api/managed_users_api.rb +278 -172
- data/lib/api-sdk-rb/api/operations_api.rb +10 -10
- data/lib/api-sdk-rb/api/partners_api.rb +389 -389
- data/lib/api-sdk-rb/api/public_embed_api.rb +95 -95
- data/lib/api-sdk-rb/api/tokens_api.rb +8 -6
- data/lib/api-sdk-rb/api/uploads_api.rb +96 -96
- data/lib/api-sdk-rb/api/users_api.rb +132 -132
- data/lib/api-sdk-rb/api/widgets_api.rb +40 -40
- data/lib/api-sdk-rb/api/workflows_api.rb +246 -468
- data/lib/api-sdk-rb/configuration.rb +0 -60
- data/lib/api-sdk-rb/models/{get_user_adapter_connections200_response.rb → account_credit_transaction_list_response.rb} +4 -4
- data/lib/api-sdk-rb/models/{get_partner_credit_transactions200_response.rb → adapter_connection_list_response.rb} +4 -4
- data/lib/api-sdk-rb/models/{save_workspace_workflow200_response.rb → adapter_connection_removal_response.rb} +4 -4
- data/lib/api-sdk-rb/models/{set_user_adapter_connection200_response.rb → adapter_connection_response.rb} +3 -3
- data/lib/api-sdk-rb/models/{add_ai_answers_knowledge_document201_response.rb → ai_answers_knowledge_document_response.rb} +3 -3
- data/lib/api-sdk-rb/models/brand_kit_tokens.rb +33 -2
- data/lib/api-sdk-rb/models/brand_kit_view.rb +1 -1
- data/lib/api-sdk-rb/models/brand_text_style.rb +344 -0
- data/lib/api-sdk-rb/models/{create_composition_database_record201_response.rb → composition_database_record_response.rb} +3 -3
- data/lib/api-sdk-rb/models/{create_composition_content_item201_response.rb → content_item_write_result_response.rb} +3 -3
- data/lib/api-sdk-rb/models/{operations_id_get_response.rb → delete_upload200_response.rb} +4 -5
- data/lib/api-sdk-rb/models/{uploads_id_delete200_response_data.rb → delete_upload200_response_data.rb} +3 -3
- data/lib/api-sdk-rb/models/{get_partner_design_defaults200_response.rb → design_defaults_response.rb} +3 -3
- data/lib/api-sdk-rb/models/get_operation_response.rb +247 -0
- data/lib/api-sdk-rb/models/{operations_id_get_response_data.rb → get_operation_response_data.rb} +5 -8
- data/lib/api-sdk-rb/models/get_operation_response_data_metadata.rb +283 -0
- data/lib/api-sdk-rb/models/{uploads_get200_response.rb → list_uploads200_response.rb} +3 -3
- data/lib/api-sdk-rb/models/{get_managed_user_limits200_response.rb → managed_user_limits_response.rb} +3 -3
- data/lib/api-sdk-rb/models/{uploads_id_delete200_response.rb → managed_user_removal_response.rb} +4 -4
- data/lib/api-sdk-rb/models/patch_brand_kit_request.rb +32 -1
- data/lib/api-sdk-rb/models/public_workflow_events_request_events_inner.rb +26 -4
- data/lib/api-sdk-rb/models/{get_public_workflow200_response.rb → public_workflow_response.rb} +3 -3
- data/lib/api-sdk-rb/models/upload.rb +1 -1
- data/lib/api-sdk-rb/models/upload_limits.rb +3 -3
- data/lib/api-sdk-rb/models/widget_clarification.rb +279 -0
- data/lib/api-sdk-rb/models/{create_composition_from_widget201_response.rb → widget_clarification_option.rb} +40 -30
- data/lib/api-sdk-rb/models/widget_clarification_question.rb +329 -0
- data/lib/api-sdk-rb/models/widget_next_step.rb +307 -0
- data/lib/api-sdk-rb/models/widget_plan.rb +306 -0
- data/lib/api-sdk-rb/models/widget_plan_decisions.rb +346 -0
- data/lib/api-sdk-rb/models/widget_plan_decisions_adapters_inner.rb +237 -0
- data/lib/api-sdk-rb/models/{create_workspace_workflow_from_preset201_response.rb → widget_plan_decisions_libraries_inner.rb} +39 -30
- data/lib/api-sdk-rb/models/widget_plan_decisions_responsive.rb +311 -0
- data/lib/api-sdk-rb/models/widget_plan_task.rb +320 -0
- data/lib/api-sdk-rb/models/{delete_managed_user200_response.rb → workflow_detail_response.rb} +4 -4
- data/lib/api-sdk-rb/models/workflow_failure_reason.rb +42 -0
- data/lib/api-sdk-rb/models/workflow_failure_reason_counter.rb +277 -0
- data/lib/api-sdk-rb/models/workflow_response.rb +246 -0
- data/lib/api-sdk-rb/models/workflow_stats.rb +17 -5
- data/lib/api-sdk-rb/version.rb +1 -1
- data/lib/api-sdk-rb.rb +32 -21
- data/spec/api/brand_kit_api_spec.rb +18 -18
- data/spec/api/canvases_api_spec.rb +10 -10
- data/spec/api/compositions_api_spec.rb +144 -83
- data/spec/api/credits_api_spec.rb +5 -5
- data/spec/api/entitlements_api_spec.rb +4 -4
- data/spec/api/invoices_api_spec.rb +2 -2
- data/spec/api/managed_users_api_spec.rb +63 -42
- data/spec/api/operations_api_spec.rb +3 -3
- data/spec/api/partners_api_spec.rb +91 -91
- data/spec/api/public_embed_api_spec.rb +23 -23
- data/spec/api/tokens_api_spec.rb +3 -2
- data/spec/api/uploads_api_spec.rb +24 -24
- data/spec/api/users_api_spec.rb +30 -30
- data/spec/api/widgets_api_spec.rb +9 -9
- data/spec/api/workflows_api_spec.rb +50 -89
- data/spec/models/{get_user_adapter_connections200_response_spec.rb → account_credit_transaction_list_response_spec.rb} +6 -6
- data/spec/models/{get_public_workflow200_response_spec.rb → adapter_connection_list_response_spec.rb} +6 -6
- data/spec/models/{save_workspace_workflow200_response_spec.rb → adapter_connection_removal_response_spec.rb} +6 -6
- data/spec/models/{delete_managed_user200_response_spec.rb → adapter_connection_response_spec.rb} +6 -6
- data/spec/models/ai_answers_knowledge_document_response_spec.rb +48 -0
- data/spec/models/brand_kit_tokens_spec.rb +6 -0
- data/spec/models/{create_composition_from_widget201_response_spec.rb → brand_text_style_spec.rb} +13 -9
- data/spec/models/{get_managed_user_limits200_response_spec.rb → composition_database_record_response_spec.rb} +6 -6
- data/spec/models/content_item_write_result_response_spec.rb +48 -0
- data/spec/models/{uploads_id_delete200_response_data_spec.rb → delete_upload200_response_data_spec.rb} +6 -6
- data/spec/models/{operations_id_get_response_spec.rb → delete_upload200_response_spec.rb} +6 -6
- data/spec/models/design_defaults_response_spec.rb +48 -0
- data/spec/models/get_operation_response_data_metadata_spec.rb +58 -0
- data/spec/models/{operations_id_get_response_data_spec.rb → get_operation_response_data_spec.rb} +6 -6
- data/spec/models/{uploads_get200_response_spec.rb → get_operation_response_spec.rb} +6 -6
- data/spec/models/list_uploads200_response_spec.rb +48 -0
- data/spec/models/managed_user_limits_response_spec.rb +48 -0
- data/spec/models/{uploads_id_delete200_response_spec.rb → managed_user_removal_response_spec.rb} +6 -6
- data/spec/models/patch_brand_kit_request_spec.rb +6 -0
- data/spec/models/public_workflow_events_request_events_inner_spec.rb +10 -0
- data/spec/models/public_workflow_response_spec.rb +48 -0
- data/spec/models/widget_clarification_option_spec.rb +48 -0
- data/spec/models/widget_clarification_question_spec.rb +60 -0
- data/spec/models/widget_clarification_spec.rb +48 -0
- data/spec/models/widget_next_step_spec.rb +58 -0
- data/spec/models/widget_plan_decisions_adapters_inner_spec.rb +42 -0
- data/spec/models/widget_plan_decisions_libraries_inner_spec.rb +48 -0
- data/spec/models/widget_plan_decisions_responsive_spec.rb +48 -0
- data/spec/models/widget_plan_decisions_spec.rb +78 -0
- data/spec/models/{create_composition_database_record201_response_spec.rb → widget_plan_spec.rb} +21 -9
- data/spec/models/widget_plan_task_spec.rb +62 -0
- data/spec/models/workflow_detail_response_spec.rb +48 -0
- data/spec/models/workflow_failure_reason_counter_spec.rb +48 -0
- data/spec/models/workflow_failure_reason_spec.rb +30 -0
- data/spec/models/workflow_response_spec.rb +48 -0
- data/spec/models/workflow_stats_spec.rb +6 -0
- metadata +130 -86
- data/docs/PartnerApi.md +0 -12714
- data/docs/UploadsIdDelete200Response.md +0 -22
- data/docs/WorkspacesApi.md +0 -1527
- data/lib/api-sdk-rb/api/partner_api.rb +0 -13791
- data/lib/api-sdk-rb/api/workspaces_api.rb +0 -1775
- data/lib/api-sdk-rb/models/remove_user_adapter_connection200_response.rb +0 -246
- data/spec/api/partner_api_spec.rb +0 -2437
- data/spec/api/workspaces_api_spec.rb +0 -339
- data/spec/models/add_ai_answers_knowledge_document201_response_spec.rb +0 -48
- data/spec/models/create_composition_content_item201_response_spec.rb +0 -48
- data/spec/models/create_workspace_workflow_from_preset201_response_spec.rb +0 -48
- data/spec/models/get_partner_credit_transactions200_response_spec.rb +0 -48
- data/spec/models/get_partner_design_defaults200_response_spec.rb +0 -48
- data/spec/models/remove_user_adapter_connection200_response_spec.rb +0 -48
- data/spec/models/set_user_adapter_connection200_response_spec.rb +0 -48
|
@@ -26,9 +26,9 @@ module ApiSdkRb
|
|
|
26
26
|
# @param [Hash] opts the optional parameters
|
|
27
27
|
# @option opts [String] :x_managed_user_id The id Widgetic gave the managed user (`POST /managed-users`). Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
28
28
|
# @option opts [String] :x_managed_user_external_id Your own id for the managed user (its `externalId`), when you do not keep Widgetic's. Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
29
|
-
# @return [
|
|
30
|
-
def
|
|
31
|
-
data, _status_code, _headers =
|
|
29
|
+
# @return [WorkflowResponse]
|
|
30
|
+
def archive_workspace_workflow(workspace_id, workflow_id, opts = {})
|
|
31
|
+
data, _status_code, _headers = archive_workspace_workflow_with_http_info(workspace_id, workflow_id, opts)
|
|
32
32
|
data
|
|
33
33
|
end
|
|
34
34
|
|
|
@@ -39,25 +39,25 @@ module ApiSdkRb
|
|
|
39
39
|
# @param [Hash] opts the optional parameters
|
|
40
40
|
# @option opts [String] :x_managed_user_id The id Widgetic gave the managed user (`POST /managed-users`). Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
41
41
|
# @option opts [String] :x_managed_user_external_id Your own id for the managed user (its `externalId`), when you do not keep Widgetic's. Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
42
|
-
# @return [Array<(
|
|
43
|
-
def
|
|
42
|
+
# @return [Array<(WorkflowResponse, Integer, Hash)>] WorkflowResponse data, response status code and response headers
|
|
43
|
+
def archive_workspace_workflow_with_http_info(workspace_id, workflow_id, opts = {})
|
|
44
44
|
if @api_client.config.debugging
|
|
45
|
-
@api_client.config.logger.debug 'Calling API: WorkflowsApi.
|
|
45
|
+
@api_client.config.logger.debug 'Calling API: WorkflowsApi.archive_workspace_workflow ...'
|
|
46
46
|
end
|
|
47
47
|
# verify the required parameter 'workspace_id' is set
|
|
48
48
|
if @api_client.config.client_side_validation && workspace_id.nil?
|
|
49
|
-
fail ArgumentError, "Missing the required parameter 'workspace_id' when calling WorkflowsApi.
|
|
49
|
+
fail ArgumentError, "Missing the required parameter 'workspace_id' when calling WorkflowsApi.archive_workspace_workflow"
|
|
50
50
|
end
|
|
51
51
|
# verify the required parameter 'workflow_id' is set
|
|
52
52
|
if @api_client.config.client_side_validation && workflow_id.nil?
|
|
53
|
-
fail ArgumentError, "Missing the required parameter 'workflow_id' when calling WorkflowsApi.
|
|
53
|
+
fail ArgumentError, "Missing the required parameter 'workflow_id' when calling WorkflowsApi.archive_workspace_workflow"
|
|
54
54
|
end
|
|
55
55
|
if @api_client.config.client_side_validation && !opts[:'x_managed_user_external_id'].nil? && opts[:'x_managed_user_external_id'].to_s.length > 255
|
|
56
|
-
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.
|
|
56
|
+
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.archive_workspace_workflow, the character length must be smaller than or equal to 255.'
|
|
57
57
|
end
|
|
58
58
|
|
|
59
59
|
if @api_client.config.client_side_validation && !opts[:'x_managed_user_external_id'].nil? && opts[:'x_managed_user_external_id'].to_s.length < 1
|
|
60
|
-
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.
|
|
60
|
+
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.archive_workspace_workflow, the character length must be great than or equal to 1.'
|
|
61
61
|
end
|
|
62
62
|
|
|
63
63
|
# resource path
|
|
@@ -80,13 +80,13 @@ module ApiSdkRb
|
|
|
80
80
|
post_body = opts[:debug_body]
|
|
81
81
|
|
|
82
82
|
# return_type
|
|
83
|
-
return_type = opts[:debug_return_type] || '
|
|
83
|
+
return_type = opts[:debug_return_type] || 'WorkflowResponse'
|
|
84
84
|
|
|
85
85
|
# auth_names
|
|
86
86
|
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
87
87
|
|
|
88
88
|
new_options = opts.merge(
|
|
89
|
-
:operation => :"WorkflowsApi.
|
|
89
|
+
:operation => :"WorkflowsApi.archive_workspace_workflow",
|
|
90
90
|
:header_params => header_params,
|
|
91
91
|
:query_params => query_params,
|
|
92
92
|
:form_params => form_params,
|
|
@@ -97,7 +97,7 @@ module ApiSdkRb
|
|
|
97
97
|
|
|
98
98
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
99
99
|
if @api_client.config.debugging
|
|
100
|
-
@api_client.config.logger.debug "API called: WorkflowsApi#
|
|
100
|
+
@api_client.config.logger.debug "API called: WorkflowsApi#archive_workspace_workflow\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
101
101
|
end
|
|
102
102
|
return data, status_code, headers
|
|
103
103
|
end
|
|
@@ -110,9 +110,9 @@ module ApiSdkRb
|
|
|
110
110
|
# @param [Hash] opts the optional parameters
|
|
111
111
|
# @option opts [String] :x_managed_user_id The id Widgetic gave the managed user (`POST /managed-users`). Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
112
112
|
# @option opts [String] :x_managed_user_external_id Your own id for the managed user (its `externalId`), when you do not keep Widgetic's. Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
113
|
-
# @return [
|
|
114
|
-
def
|
|
115
|
-
data, _status_code, _headers =
|
|
113
|
+
# @return [WorkflowDetailResponse]
|
|
114
|
+
def create_workspace_workflow(workspace_id, idempotency_key, create_workspace_workflow_request, opts = {})
|
|
115
|
+
data, _status_code, _headers = create_workspace_workflow_with_http_info(workspace_id, idempotency_key, create_workspace_workflow_request, opts)
|
|
116
116
|
data
|
|
117
117
|
end
|
|
118
118
|
|
|
@@ -124,42 +124,42 @@ module ApiSdkRb
|
|
|
124
124
|
# @param [Hash] opts the optional parameters
|
|
125
125
|
# @option opts [String] :x_managed_user_id The id Widgetic gave the managed user (`POST /managed-users`). Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
126
126
|
# @option opts [String] :x_managed_user_external_id Your own id for the managed user (its `externalId`), when you do not keep Widgetic's. Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
127
|
-
# @return [Array<(
|
|
128
|
-
def
|
|
127
|
+
# @return [Array<(WorkflowDetailResponse, Integer, Hash)>] WorkflowDetailResponse data, response status code and response headers
|
|
128
|
+
def create_workspace_workflow_with_http_info(workspace_id, idempotency_key, create_workspace_workflow_request, opts = {})
|
|
129
129
|
if @api_client.config.debugging
|
|
130
|
-
@api_client.config.logger.debug 'Calling API: WorkflowsApi.
|
|
130
|
+
@api_client.config.logger.debug 'Calling API: WorkflowsApi.create_workspace_workflow ...'
|
|
131
131
|
end
|
|
132
132
|
# verify the required parameter 'workspace_id' is set
|
|
133
133
|
if @api_client.config.client_side_validation && workspace_id.nil?
|
|
134
|
-
fail ArgumentError, "Missing the required parameter 'workspace_id' when calling WorkflowsApi.
|
|
134
|
+
fail ArgumentError, "Missing the required parameter 'workspace_id' when calling WorkflowsApi.create_workspace_workflow"
|
|
135
135
|
end
|
|
136
136
|
# verify the required parameter 'idempotency_key' is set
|
|
137
137
|
if @api_client.config.client_side_validation && idempotency_key.nil?
|
|
138
|
-
fail ArgumentError, "Missing the required parameter 'idempotency_key' when calling WorkflowsApi.
|
|
138
|
+
fail ArgumentError, "Missing the required parameter 'idempotency_key' when calling WorkflowsApi.create_workspace_workflow"
|
|
139
139
|
end
|
|
140
140
|
if @api_client.config.client_side_validation && idempotency_key.to_s.length > 50
|
|
141
|
-
fail ArgumentError, 'invalid value for "idempotency_key" when calling WorkflowsApi.
|
|
141
|
+
fail ArgumentError, 'invalid value for "idempotency_key" when calling WorkflowsApi.create_workspace_workflow, the character length must be smaller than or equal to 50.'
|
|
142
142
|
end
|
|
143
143
|
|
|
144
144
|
if @api_client.config.client_side_validation && idempotency_key.to_s.length < 8
|
|
145
|
-
fail ArgumentError, 'invalid value for "idempotency_key" when calling WorkflowsApi.
|
|
145
|
+
fail ArgumentError, 'invalid value for "idempotency_key" when calling WorkflowsApi.create_workspace_workflow, the character length must be great than or equal to 8.'
|
|
146
146
|
end
|
|
147
147
|
|
|
148
148
|
pattern = Regexp.new(/^[a-zA-Z0-9_-]{8,50}$/)
|
|
149
149
|
if @api_client.config.client_side_validation && idempotency_key !~ pattern
|
|
150
|
-
fail ArgumentError, "invalid value for 'idempotency_key' when calling WorkflowsApi.
|
|
150
|
+
fail ArgumentError, "invalid value for 'idempotency_key' when calling WorkflowsApi.create_workspace_workflow, must conform to the pattern #{pattern}."
|
|
151
151
|
end
|
|
152
152
|
|
|
153
153
|
# verify the required parameter 'create_workspace_workflow_request' is set
|
|
154
154
|
if @api_client.config.client_side_validation && create_workspace_workflow_request.nil?
|
|
155
|
-
fail ArgumentError, "Missing the required parameter 'create_workspace_workflow_request' when calling WorkflowsApi.
|
|
155
|
+
fail ArgumentError, "Missing the required parameter 'create_workspace_workflow_request' when calling WorkflowsApi.create_workspace_workflow"
|
|
156
156
|
end
|
|
157
157
|
if @api_client.config.client_side_validation && !opts[:'x_managed_user_external_id'].nil? && opts[:'x_managed_user_external_id'].to_s.length > 255
|
|
158
|
-
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.
|
|
158
|
+
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.create_workspace_workflow, the character length must be smaller than or equal to 255.'
|
|
159
159
|
end
|
|
160
160
|
|
|
161
161
|
if @api_client.config.client_side_validation && !opts[:'x_managed_user_external_id'].nil? && opts[:'x_managed_user_external_id'].to_s.length < 1
|
|
162
|
-
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.
|
|
162
|
+
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.create_workspace_workflow, the character length must be great than or equal to 1.'
|
|
163
163
|
end
|
|
164
164
|
|
|
165
165
|
# resource path
|
|
@@ -188,13 +188,13 @@ module ApiSdkRb
|
|
|
188
188
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_workspace_workflow_request)
|
|
189
189
|
|
|
190
190
|
# return_type
|
|
191
|
-
return_type = opts[:debug_return_type] || '
|
|
191
|
+
return_type = opts[:debug_return_type] || 'WorkflowDetailResponse'
|
|
192
192
|
|
|
193
193
|
# auth_names
|
|
194
194
|
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
195
195
|
|
|
196
196
|
new_options = opts.merge(
|
|
197
|
-
:operation => :"WorkflowsApi.
|
|
197
|
+
:operation => :"WorkflowsApi.create_workspace_workflow",
|
|
198
198
|
:header_params => header_params,
|
|
199
199
|
:query_params => query_params,
|
|
200
200
|
:form_params => form_params,
|
|
@@ -205,7 +205,7 @@ module ApiSdkRb
|
|
|
205
205
|
|
|
206
206
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
207
207
|
if @api_client.config.debugging
|
|
208
|
-
@api_client.config.logger.debug "API called: WorkflowsApi#
|
|
208
|
+
@api_client.config.logger.debug "API called: WorkflowsApi#create_workspace_workflow\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
209
209
|
end
|
|
210
210
|
return data, status_code, headers
|
|
211
211
|
end
|
|
@@ -218,9 +218,9 @@ module ApiSdkRb
|
|
|
218
218
|
# @param [Hash] opts the optional parameters
|
|
219
219
|
# @option opts [String] :x_managed_user_id The id Widgetic gave the managed user (`POST /managed-users`). Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
220
220
|
# @option opts [String] :x_managed_user_external_id Your own id for the managed user (its `externalId`), when you do not keep Widgetic's. Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
221
|
-
# @return [
|
|
222
|
-
def
|
|
223
|
-
data, _status_code, _headers =
|
|
221
|
+
# @return [WorkflowDetailResponse]
|
|
222
|
+
def create_workspace_workflow_from_preset(workspace_id, idempotency_key, create_workspace_workflow_from_preset_request, opts = {})
|
|
223
|
+
data, _status_code, _headers = create_workspace_workflow_from_preset_with_http_info(workspace_id, idempotency_key, create_workspace_workflow_from_preset_request, opts)
|
|
224
224
|
data
|
|
225
225
|
end
|
|
226
226
|
|
|
@@ -232,42 +232,42 @@ module ApiSdkRb
|
|
|
232
232
|
# @param [Hash] opts the optional parameters
|
|
233
233
|
# @option opts [String] :x_managed_user_id The id Widgetic gave the managed user (`POST /managed-users`). Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
234
234
|
# @option opts [String] :x_managed_user_external_id Your own id for the managed user (its `externalId`), when you do not keep Widgetic's. Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
235
|
-
# @return [Array<(
|
|
236
|
-
def
|
|
235
|
+
# @return [Array<(WorkflowDetailResponse, Integer, Hash)>] WorkflowDetailResponse data, response status code and response headers
|
|
236
|
+
def create_workspace_workflow_from_preset_with_http_info(workspace_id, idempotency_key, create_workspace_workflow_from_preset_request, opts = {})
|
|
237
237
|
if @api_client.config.debugging
|
|
238
|
-
@api_client.config.logger.debug 'Calling API: WorkflowsApi.
|
|
238
|
+
@api_client.config.logger.debug 'Calling API: WorkflowsApi.create_workspace_workflow_from_preset ...'
|
|
239
239
|
end
|
|
240
240
|
# verify the required parameter 'workspace_id' is set
|
|
241
241
|
if @api_client.config.client_side_validation && workspace_id.nil?
|
|
242
|
-
fail ArgumentError, "Missing the required parameter 'workspace_id' when calling WorkflowsApi.
|
|
242
|
+
fail ArgumentError, "Missing the required parameter 'workspace_id' when calling WorkflowsApi.create_workspace_workflow_from_preset"
|
|
243
243
|
end
|
|
244
244
|
# verify the required parameter 'idempotency_key' is set
|
|
245
245
|
if @api_client.config.client_side_validation && idempotency_key.nil?
|
|
246
|
-
fail ArgumentError, "Missing the required parameter 'idempotency_key' when calling WorkflowsApi.
|
|
246
|
+
fail ArgumentError, "Missing the required parameter 'idempotency_key' when calling WorkflowsApi.create_workspace_workflow_from_preset"
|
|
247
247
|
end
|
|
248
248
|
if @api_client.config.client_side_validation && idempotency_key.to_s.length > 50
|
|
249
|
-
fail ArgumentError, 'invalid value for "idempotency_key" when calling WorkflowsApi.
|
|
249
|
+
fail ArgumentError, 'invalid value for "idempotency_key" when calling WorkflowsApi.create_workspace_workflow_from_preset, the character length must be smaller than or equal to 50.'
|
|
250
250
|
end
|
|
251
251
|
|
|
252
252
|
if @api_client.config.client_side_validation && idempotency_key.to_s.length < 8
|
|
253
|
-
fail ArgumentError, 'invalid value for "idempotency_key" when calling WorkflowsApi.
|
|
253
|
+
fail ArgumentError, 'invalid value for "idempotency_key" when calling WorkflowsApi.create_workspace_workflow_from_preset, the character length must be great than or equal to 8.'
|
|
254
254
|
end
|
|
255
255
|
|
|
256
256
|
pattern = Regexp.new(/^[a-zA-Z0-9_-]{8,50}$/)
|
|
257
257
|
if @api_client.config.client_side_validation && idempotency_key !~ pattern
|
|
258
|
-
fail ArgumentError, "invalid value for 'idempotency_key' when calling WorkflowsApi.
|
|
258
|
+
fail ArgumentError, "invalid value for 'idempotency_key' when calling WorkflowsApi.create_workspace_workflow_from_preset, must conform to the pattern #{pattern}."
|
|
259
259
|
end
|
|
260
260
|
|
|
261
261
|
# verify the required parameter 'create_workspace_workflow_from_preset_request' is set
|
|
262
262
|
if @api_client.config.client_side_validation && create_workspace_workflow_from_preset_request.nil?
|
|
263
|
-
fail ArgumentError, "Missing the required parameter 'create_workspace_workflow_from_preset_request' when calling WorkflowsApi.
|
|
263
|
+
fail ArgumentError, "Missing the required parameter 'create_workspace_workflow_from_preset_request' when calling WorkflowsApi.create_workspace_workflow_from_preset"
|
|
264
264
|
end
|
|
265
265
|
if @api_client.config.client_side_validation && !opts[:'x_managed_user_external_id'].nil? && opts[:'x_managed_user_external_id'].to_s.length > 255
|
|
266
|
-
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.
|
|
266
|
+
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.create_workspace_workflow_from_preset, the character length must be smaller than or equal to 255.'
|
|
267
267
|
end
|
|
268
268
|
|
|
269
269
|
if @api_client.config.client_side_validation && !opts[:'x_managed_user_external_id'].nil? && opts[:'x_managed_user_external_id'].to_s.length < 1
|
|
270
|
-
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.
|
|
270
|
+
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.create_workspace_workflow_from_preset, the character length must be great than or equal to 1.'
|
|
271
271
|
end
|
|
272
272
|
|
|
273
273
|
# resource path
|
|
@@ -296,13 +296,13 @@ module ApiSdkRb
|
|
|
296
296
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_workspace_workflow_from_preset_request)
|
|
297
297
|
|
|
298
298
|
# return_type
|
|
299
|
-
return_type = opts[:debug_return_type] || '
|
|
299
|
+
return_type = opts[:debug_return_type] || 'WorkflowDetailResponse'
|
|
300
300
|
|
|
301
301
|
# auth_names
|
|
302
302
|
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
303
303
|
|
|
304
304
|
new_options = opts.merge(
|
|
305
|
-
:operation => :"WorkflowsApi.
|
|
305
|
+
:operation => :"WorkflowsApi.create_workspace_workflow_from_preset",
|
|
306
306
|
:header_params => header_params,
|
|
307
307
|
:query_params => query_params,
|
|
308
308
|
:form_params => form_params,
|
|
@@ -313,7 +313,7 @@ module ApiSdkRb
|
|
|
313
313
|
|
|
314
314
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
315
315
|
if @api_client.config.debugging
|
|
316
|
-
@api_client.config.logger.debug "API called: WorkflowsApi#
|
|
316
|
+
@api_client.config.logger.debug "API called: WorkflowsApi#create_workspace_workflow_from_preset\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
317
317
|
end
|
|
318
318
|
return data, status_code, headers
|
|
319
319
|
end
|
|
@@ -326,8 +326,8 @@ module ApiSdkRb
|
|
|
326
326
|
# @option opts [String] :x_managed_user_id The id Widgetic gave the managed user (`POST /managed-users`). Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
327
327
|
# @option opts [String] :x_managed_user_external_id Your own id for the managed user (its `externalId`), when you do not keep Widgetic's. Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
328
328
|
# @return [DeleteWorkspaceWorkflow200Response]
|
|
329
|
-
def
|
|
330
|
-
data, _status_code, _headers =
|
|
329
|
+
def delete_workspace_workflow(workspace_id, workflow_id, opts = {})
|
|
330
|
+
data, _status_code, _headers = delete_workspace_workflow_with_http_info(workspace_id, workflow_id, opts)
|
|
331
331
|
data
|
|
332
332
|
end
|
|
333
333
|
|
|
@@ -339,24 +339,24 @@ module ApiSdkRb
|
|
|
339
339
|
# @option opts [String] :x_managed_user_id The id Widgetic gave the managed user (`POST /managed-users`). Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
340
340
|
# @option opts [String] :x_managed_user_external_id Your own id for the managed user (its `externalId`), when you do not keep Widgetic's. Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
341
341
|
# @return [Array<(DeleteWorkspaceWorkflow200Response, Integer, Hash)>] DeleteWorkspaceWorkflow200Response data, response status code and response headers
|
|
342
|
-
def
|
|
342
|
+
def delete_workspace_workflow_with_http_info(workspace_id, workflow_id, opts = {})
|
|
343
343
|
if @api_client.config.debugging
|
|
344
|
-
@api_client.config.logger.debug 'Calling API: WorkflowsApi.
|
|
344
|
+
@api_client.config.logger.debug 'Calling API: WorkflowsApi.delete_workspace_workflow ...'
|
|
345
345
|
end
|
|
346
346
|
# verify the required parameter 'workspace_id' is set
|
|
347
347
|
if @api_client.config.client_side_validation && workspace_id.nil?
|
|
348
|
-
fail ArgumentError, "Missing the required parameter 'workspace_id' when calling WorkflowsApi.
|
|
348
|
+
fail ArgumentError, "Missing the required parameter 'workspace_id' when calling WorkflowsApi.delete_workspace_workflow"
|
|
349
349
|
end
|
|
350
350
|
# verify the required parameter 'workflow_id' is set
|
|
351
351
|
if @api_client.config.client_side_validation && workflow_id.nil?
|
|
352
|
-
fail ArgumentError, "Missing the required parameter 'workflow_id' when calling WorkflowsApi.
|
|
352
|
+
fail ArgumentError, "Missing the required parameter 'workflow_id' when calling WorkflowsApi.delete_workspace_workflow"
|
|
353
353
|
end
|
|
354
354
|
if @api_client.config.client_side_validation && !opts[:'x_managed_user_external_id'].nil? && opts[:'x_managed_user_external_id'].to_s.length > 255
|
|
355
|
-
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.
|
|
355
|
+
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.delete_workspace_workflow, the character length must be smaller than or equal to 255.'
|
|
356
356
|
end
|
|
357
357
|
|
|
358
358
|
if @api_client.config.client_side_validation && !opts[:'x_managed_user_external_id'].nil? && opts[:'x_managed_user_external_id'].to_s.length < 1
|
|
359
|
-
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.
|
|
359
|
+
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.delete_workspace_workflow, the character length must be great than or equal to 1.'
|
|
360
360
|
end
|
|
361
361
|
|
|
362
362
|
# resource path
|
|
@@ -385,7 +385,7 @@ module ApiSdkRb
|
|
|
385
385
|
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
386
386
|
|
|
387
387
|
new_options = opts.merge(
|
|
388
|
-
:operation => :"WorkflowsApi.
|
|
388
|
+
:operation => :"WorkflowsApi.delete_workspace_workflow",
|
|
389
389
|
:header_params => header_params,
|
|
390
390
|
:query_params => query_params,
|
|
391
391
|
:form_params => form_params,
|
|
@@ -396,7 +396,7 @@ module ApiSdkRb
|
|
|
396
396
|
|
|
397
397
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
398
398
|
if @api_client.config.debugging
|
|
399
|
-
@api_client.config.logger.debug "API called: WorkflowsApi#
|
|
399
|
+
@api_client.config.logger.debug "API called: WorkflowsApi#delete_workspace_workflow\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
400
400
|
end
|
|
401
401
|
return data, status_code, headers
|
|
402
402
|
end
|
|
@@ -409,9 +409,9 @@ module ApiSdkRb
|
|
|
409
409
|
# @param [Hash] opts the optional parameters
|
|
410
410
|
# @option opts [String] :x_managed_user_id The id Widgetic gave the managed user (`POST /managed-users`). Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
411
411
|
# @option opts [String] :x_managed_user_external_id Your own id for the managed user (its `externalId`), when you do not keep Widgetic's. Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
412
|
-
# @return [
|
|
413
|
-
def
|
|
414
|
-
data, _status_code, _headers =
|
|
412
|
+
# @return [WorkflowDetailResponse]
|
|
413
|
+
def discard_workspace_workflow_changes(workspace_id, workflow_id, publish_workspace_workflow_request, opts = {})
|
|
414
|
+
data, _status_code, _headers = discard_workspace_workflow_changes_with_http_info(workspace_id, workflow_id, publish_workspace_workflow_request, opts)
|
|
415
415
|
data
|
|
416
416
|
end
|
|
417
417
|
|
|
@@ -423,29 +423,29 @@ module ApiSdkRb
|
|
|
423
423
|
# @param [Hash] opts the optional parameters
|
|
424
424
|
# @option opts [String] :x_managed_user_id The id Widgetic gave the managed user (`POST /managed-users`). Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
425
425
|
# @option opts [String] :x_managed_user_external_id Your own id for the managed user (its `externalId`), when you do not keep Widgetic's. Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
426
|
-
# @return [Array<(
|
|
427
|
-
def
|
|
426
|
+
# @return [Array<(WorkflowDetailResponse, Integer, Hash)>] WorkflowDetailResponse data, response status code and response headers
|
|
427
|
+
def discard_workspace_workflow_changes_with_http_info(workspace_id, workflow_id, publish_workspace_workflow_request, opts = {})
|
|
428
428
|
if @api_client.config.debugging
|
|
429
|
-
@api_client.config.logger.debug 'Calling API: WorkflowsApi.
|
|
429
|
+
@api_client.config.logger.debug 'Calling API: WorkflowsApi.discard_workspace_workflow_changes ...'
|
|
430
430
|
end
|
|
431
431
|
# verify the required parameter 'workspace_id' is set
|
|
432
432
|
if @api_client.config.client_side_validation && workspace_id.nil?
|
|
433
|
-
fail ArgumentError, "Missing the required parameter 'workspace_id' when calling WorkflowsApi.
|
|
433
|
+
fail ArgumentError, "Missing the required parameter 'workspace_id' when calling WorkflowsApi.discard_workspace_workflow_changes"
|
|
434
434
|
end
|
|
435
435
|
# verify the required parameter 'workflow_id' is set
|
|
436
436
|
if @api_client.config.client_side_validation && workflow_id.nil?
|
|
437
|
-
fail ArgumentError, "Missing the required parameter 'workflow_id' when calling WorkflowsApi.
|
|
437
|
+
fail ArgumentError, "Missing the required parameter 'workflow_id' when calling WorkflowsApi.discard_workspace_workflow_changes"
|
|
438
438
|
end
|
|
439
439
|
# verify the required parameter 'publish_workspace_workflow_request' is set
|
|
440
440
|
if @api_client.config.client_side_validation && publish_workspace_workflow_request.nil?
|
|
441
|
-
fail ArgumentError, "Missing the required parameter 'publish_workspace_workflow_request' when calling WorkflowsApi.
|
|
441
|
+
fail ArgumentError, "Missing the required parameter 'publish_workspace_workflow_request' when calling WorkflowsApi.discard_workspace_workflow_changes"
|
|
442
442
|
end
|
|
443
443
|
if @api_client.config.client_side_validation && !opts[:'x_managed_user_external_id'].nil? && opts[:'x_managed_user_external_id'].to_s.length > 255
|
|
444
|
-
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.
|
|
444
|
+
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.discard_workspace_workflow_changes, the character length must be smaller than or equal to 255.'
|
|
445
445
|
end
|
|
446
446
|
|
|
447
447
|
if @api_client.config.client_side_validation && !opts[:'x_managed_user_external_id'].nil? && opts[:'x_managed_user_external_id'].to_s.length < 1
|
|
448
|
-
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.
|
|
448
|
+
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.discard_workspace_workflow_changes, the character length must be great than or equal to 1.'
|
|
449
449
|
end
|
|
450
450
|
|
|
451
451
|
# resource path
|
|
@@ -473,13 +473,13 @@ module ApiSdkRb
|
|
|
473
473
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(publish_workspace_workflow_request)
|
|
474
474
|
|
|
475
475
|
# return_type
|
|
476
|
-
return_type = opts[:debug_return_type] || '
|
|
476
|
+
return_type = opts[:debug_return_type] || 'WorkflowDetailResponse'
|
|
477
477
|
|
|
478
478
|
# auth_names
|
|
479
479
|
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
480
480
|
|
|
481
481
|
new_options = opts.merge(
|
|
482
|
-
:operation => :"WorkflowsApi.
|
|
482
|
+
:operation => :"WorkflowsApi.discard_workspace_workflow_changes",
|
|
483
483
|
:header_params => header_params,
|
|
484
484
|
:query_params => query_params,
|
|
485
485
|
:form_params => form_params,
|
|
@@ -490,7 +490,7 @@ module ApiSdkRb
|
|
|
490
490
|
|
|
491
491
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
492
492
|
if @api_client.config.debugging
|
|
493
|
-
@api_client.config.logger.debug "API called: WorkflowsApi#
|
|
493
|
+
@api_client.config.logger.debug "API called: WorkflowsApi#discard_workspace_workflow_changes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
494
494
|
end
|
|
495
495
|
return data, status_code, headers
|
|
496
496
|
end
|
|
@@ -503,9 +503,9 @@ module ApiSdkRb
|
|
|
503
503
|
# @param [Hash] opts the optional parameters
|
|
504
504
|
# @option opts [String] :x_managed_user_id The id Widgetic gave the managed user (`POST /managed-users`). Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
505
505
|
# @option opts [String] :x_managed_user_external_id Your own id for the managed user (its `externalId`), when you do not keep Widgetic's. Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
506
|
-
# @return [
|
|
507
|
-
def
|
|
508
|
-
data, _status_code, _headers =
|
|
506
|
+
# @return [WorkflowDetailResponse]
|
|
507
|
+
def duplicate_workspace_workflow(workspace_id, workflow_id, idempotency_key, opts = {})
|
|
508
|
+
data, _status_code, _headers = duplicate_workspace_workflow_with_http_info(workspace_id, workflow_id, idempotency_key, opts)
|
|
509
509
|
data
|
|
510
510
|
end
|
|
511
511
|
|
|
@@ -517,42 +517,42 @@ module ApiSdkRb
|
|
|
517
517
|
# @param [Hash] opts the optional parameters
|
|
518
518
|
# @option opts [String] :x_managed_user_id The id Widgetic gave the managed user (`POST /managed-users`). Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
519
519
|
# @option opts [String] :x_managed_user_external_id Your own id for the managed user (its `externalId`), when you do not keep Widgetic's. Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
520
|
-
# @return [Array<(
|
|
521
|
-
def
|
|
520
|
+
# @return [Array<(WorkflowDetailResponse, Integer, Hash)>] WorkflowDetailResponse data, response status code and response headers
|
|
521
|
+
def duplicate_workspace_workflow_with_http_info(workspace_id, workflow_id, idempotency_key, opts = {})
|
|
522
522
|
if @api_client.config.debugging
|
|
523
|
-
@api_client.config.logger.debug 'Calling API: WorkflowsApi.
|
|
523
|
+
@api_client.config.logger.debug 'Calling API: WorkflowsApi.duplicate_workspace_workflow ...'
|
|
524
524
|
end
|
|
525
525
|
# verify the required parameter 'workspace_id' is set
|
|
526
526
|
if @api_client.config.client_side_validation && workspace_id.nil?
|
|
527
|
-
fail ArgumentError, "Missing the required parameter 'workspace_id' when calling WorkflowsApi.
|
|
527
|
+
fail ArgumentError, "Missing the required parameter 'workspace_id' when calling WorkflowsApi.duplicate_workspace_workflow"
|
|
528
528
|
end
|
|
529
529
|
# verify the required parameter 'workflow_id' is set
|
|
530
530
|
if @api_client.config.client_side_validation && workflow_id.nil?
|
|
531
|
-
fail ArgumentError, "Missing the required parameter 'workflow_id' when calling WorkflowsApi.
|
|
531
|
+
fail ArgumentError, "Missing the required parameter 'workflow_id' when calling WorkflowsApi.duplicate_workspace_workflow"
|
|
532
532
|
end
|
|
533
533
|
# verify the required parameter 'idempotency_key' is set
|
|
534
534
|
if @api_client.config.client_side_validation && idempotency_key.nil?
|
|
535
|
-
fail ArgumentError, "Missing the required parameter 'idempotency_key' when calling WorkflowsApi.
|
|
535
|
+
fail ArgumentError, "Missing the required parameter 'idempotency_key' when calling WorkflowsApi.duplicate_workspace_workflow"
|
|
536
536
|
end
|
|
537
537
|
if @api_client.config.client_side_validation && idempotency_key.to_s.length > 50
|
|
538
|
-
fail ArgumentError, 'invalid value for "idempotency_key" when calling WorkflowsApi.
|
|
538
|
+
fail ArgumentError, 'invalid value for "idempotency_key" when calling WorkflowsApi.duplicate_workspace_workflow, the character length must be smaller than or equal to 50.'
|
|
539
539
|
end
|
|
540
540
|
|
|
541
541
|
if @api_client.config.client_side_validation && idempotency_key.to_s.length < 8
|
|
542
|
-
fail ArgumentError, 'invalid value for "idempotency_key" when calling WorkflowsApi.
|
|
542
|
+
fail ArgumentError, 'invalid value for "idempotency_key" when calling WorkflowsApi.duplicate_workspace_workflow, the character length must be great than or equal to 8.'
|
|
543
543
|
end
|
|
544
544
|
|
|
545
545
|
pattern = Regexp.new(/^[a-zA-Z0-9_-]{8,50}$/)
|
|
546
546
|
if @api_client.config.client_side_validation && idempotency_key !~ pattern
|
|
547
|
-
fail ArgumentError, "invalid value for 'idempotency_key' when calling WorkflowsApi.
|
|
547
|
+
fail ArgumentError, "invalid value for 'idempotency_key' when calling WorkflowsApi.duplicate_workspace_workflow, must conform to the pattern #{pattern}."
|
|
548
548
|
end
|
|
549
549
|
|
|
550
550
|
if @api_client.config.client_side_validation && !opts[:'x_managed_user_external_id'].nil? && opts[:'x_managed_user_external_id'].to_s.length > 255
|
|
551
|
-
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.
|
|
551
|
+
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.duplicate_workspace_workflow, the character length must be smaller than or equal to 255.'
|
|
552
552
|
end
|
|
553
553
|
|
|
554
554
|
if @api_client.config.client_side_validation && !opts[:'x_managed_user_external_id'].nil? && opts[:'x_managed_user_external_id'].to_s.length < 1
|
|
555
|
-
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.
|
|
555
|
+
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.duplicate_workspace_workflow, the character length must be great than or equal to 1.'
|
|
556
556
|
end
|
|
557
557
|
|
|
558
558
|
# resource path
|
|
@@ -576,13 +576,13 @@ module ApiSdkRb
|
|
|
576
576
|
post_body = opts[:debug_body]
|
|
577
577
|
|
|
578
578
|
# return_type
|
|
579
|
-
return_type = opts[:debug_return_type] || '
|
|
579
|
+
return_type = opts[:debug_return_type] || 'WorkflowDetailResponse'
|
|
580
580
|
|
|
581
581
|
# auth_names
|
|
582
582
|
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
583
583
|
|
|
584
584
|
new_options = opts.merge(
|
|
585
|
-
:operation => :"WorkflowsApi.
|
|
585
|
+
:operation => :"WorkflowsApi.duplicate_workspace_workflow",
|
|
586
586
|
:header_params => header_params,
|
|
587
587
|
:query_params => query_params,
|
|
588
588
|
:form_params => form_params,
|
|
@@ -593,7 +593,7 @@ module ApiSdkRb
|
|
|
593
593
|
|
|
594
594
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
595
595
|
if @api_client.config.debugging
|
|
596
|
-
@api_client.config.logger.debug "API called: WorkflowsApi#
|
|
596
|
+
@api_client.config.logger.debug "API called: WorkflowsApi#duplicate_workspace_workflow\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
597
597
|
end
|
|
598
598
|
return data, status_code, headers
|
|
599
599
|
end
|
|
@@ -605,9 +605,9 @@ module ApiSdkRb
|
|
|
605
605
|
# @param [Hash] opts the optional parameters
|
|
606
606
|
# @option opts [String] :x_managed_user_id The id Widgetic gave the managed user (`POST /managed-users`). Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
607
607
|
# @option opts [String] :x_managed_user_external_id Your own id for the managed user (its `externalId`), when you do not keep Widgetic's. Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
608
|
-
# @return [
|
|
609
|
-
def
|
|
610
|
-
data, _status_code, _headers =
|
|
608
|
+
# @return [WorkflowDetailResponse]
|
|
609
|
+
def get_workspace_workflow(workspace_id, workflow_id, opts = {})
|
|
610
|
+
data, _status_code, _headers = get_workspace_workflow_with_http_info(workspace_id, workflow_id, opts)
|
|
611
611
|
data
|
|
612
612
|
end
|
|
613
613
|
|
|
@@ -618,25 +618,25 @@ module ApiSdkRb
|
|
|
618
618
|
# @param [Hash] opts the optional parameters
|
|
619
619
|
# @option opts [String] :x_managed_user_id The id Widgetic gave the managed user (`POST /managed-users`). Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
620
620
|
# @option opts [String] :x_managed_user_external_id Your own id for the managed user (its `externalId`), when you do not keep Widgetic's. Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
621
|
-
# @return [Array<(
|
|
622
|
-
def
|
|
621
|
+
# @return [Array<(WorkflowDetailResponse, Integer, Hash)>] WorkflowDetailResponse data, response status code and response headers
|
|
622
|
+
def get_workspace_workflow_with_http_info(workspace_id, workflow_id, opts = {})
|
|
623
623
|
if @api_client.config.debugging
|
|
624
|
-
@api_client.config.logger.debug 'Calling API: WorkflowsApi.
|
|
624
|
+
@api_client.config.logger.debug 'Calling API: WorkflowsApi.get_workspace_workflow ...'
|
|
625
625
|
end
|
|
626
626
|
# verify the required parameter 'workspace_id' is set
|
|
627
627
|
if @api_client.config.client_side_validation && workspace_id.nil?
|
|
628
|
-
fail ArgumentError, "Missing the required parameter 'workspace_id' when calling WorkflowsApi.
|
|
628
|
+
fail ArgumentError, "Missing the required parameter 'workspace_id' when calling WorkflowsApi.get_workspace_workflow"
|
|
629
629
|
end
|
|
630
630
|
# verify the required parameter 'workflow_id' is set
|
|
631
631
|
if @api_client.config.client_side_validation && workflow_id.nil?
|
|
632
|
-
fail ArgumentError, "Missing the required parameter 'workflow_id' when calling WorkflowsApi.
|
|
632
|
+
fail ArgumentError, "Missing the required parameter 'workflow_id' when calling WorkflowsApi.get_workspace_workflow"
|
|
633
633
|
end
|
|
634
634
|
if @api_client.config.client_side_validation && !opts[:'x_managed_user_external_id'].nil? && opts[:'x_managed_user_external_id'].to_s.length > 255
|
|
635
|
-
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.
|
|
635
|
+
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.get_workspace_workflow, the character length must be smaller than or equal to 255.'
|
|
636
636
|
end
|
|
637
637
|
|
|
638
638
|
if @api_client.config.client_side_validation && !opts[:'x_managed_user_external_id'].nil? && opts[:'x_managed_user_external_id'].to_s.length < 1
|
|
639
|
-
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.
|
|
639
|
+
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.get_workspace_workflow, the character length must be great than or equal to 1.'
|
|
640
640
|
end
|
|
641
641
|
|
|
642
642
|
# resource path
|
|
@@ -659,13 +659,13 @@ module ApiSdkRb
|
|
|
659
659
|
post_body = opts[:debug_body]
|
|
660
660
|
|
|
661
661
|
# return_type
|
|
662
|
-
return_type = opts[:debug_return_type] || '
|
|
662
|
+
return_type = opts[:debug_return_type] || 'WorkflowDetailResponse'
|
|
663
663
|
|
|
664
664
|
# auth_names
|
|
665
665
|
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
666
666
|
|
|
667
667
|
new_options = opts.merge(
|
|
668
|
-
:operation => :"WorkflowsApi.
|
|
668
|
+
:operation => :"WorkflowsApi.get_workspace_workflow",
|
|
669
669
|
:header_params => header_params,
|
|
670
670
|
:query_params => query_params,
|
|
671
671
|
:form_params => form_params,
|
|
@@ -676,13 +676,13 @@ module ApiSdkRb
|
|
|
676
676
|
|
|
677
677
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
678
678
|
if @api_client.config.debugging
|
|
679
|
-
@api_client.config.logger.debug "API called: WorkflowsApi#
|
|
679
|
+
@api_client.config.logger.debug "API called: WorkflowsApi#get_workspace_workflow\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
680
680
|
end
|
|
681
681
|
return data, status_code, headers
|
|
682
682
|
end
|
|
683
683
|
|
|
684
684
|
# Get what Visitors Did in a Workflow
|
|
685
|
-
# Counts per block and per connection over a range of UTC days (the last 30 days when not given, up to 366), for one version or for all of them. Only counts: how many visitors reached a block, took a connection, or could not be moved on. No visitor and no value a visitor typed is ever stored. For personal workspace, use 'personal' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can read.
|
|
685
|
+
# Counts per block and per connection over a range of UTC days (the last 30 days when not given, up to 366), for one version or for all of them. Only counts: how many visitors reached a block, took a connection, or could not be moved on, and, where the visitor's browser said why a block could not be shown, how many of those failures had each reason (`failedReasons`: a timeout, an error of the widget, a build that failed, or another reason). No visitor and no value a visitor typed is ever stored. For personal workspace, use 'personal' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can read.
|
|
686
686
|
# @param workspace_id [String] The workspace: 'personal' for your own workspace, or the UUID of an organization. A call made for one of your managed users (`X-Managed-User-Id`) always uses 'personal': a managed user has no other workspace, and a call that names an organization is refused with 403.
|
|
687
687
|
# @param workflow_id [String] The workflow's id
|
|
688
688
|
# @param [Hash] opts the optional parameters
|
|
@@ -692,13 +692,13 @@ module ApiSdkRb
|
|
|
692
692
|
# @option opts [String] :x_managed_user_id The id Widgetic gave the managed user (`POST /managed-users`). Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
693
693
|
# @option opts [String] :x_managed_user_external_id Your own id for the managed user (its `externalId`), when you do not keep Widgetic's. Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
694
694
|
# @return [GetWorkspaceWorkflowStats200Response]
|
|
695
|
-
def
|
|
696
|
-
data, _status_code, _headers =
|
|
695
|
+
def get_workspace_workflow_stats(workspace_id, workflow_id, opts = {})
|
|
696
|
+
data, _status_code, _headers = get_workspace_workflow_stats_with_http_info(workspace_id, workflow_id, opts)
|
|
697
697
|
data
|
|
698
698
|
end
|
|
699
699
|
|
|
700
700
|
# Get what Visitors Did in a Workflow
|
|
701
|
-
# Counts per block and per connection over a range of UTC days (the last 30 days when not given, up to 366), for one version or for all of them. Only counts: how many visitors reached a block, took a connection, or could not be moved on. No visitor and no value a visitor typed is ever stored. For personal workspace, use 'personal' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can read.
|
|
701
|
+
# Counts per block and per connection over a range of UTC days (the last 30 days when not given, up to 366), for one version or for all of them. Only counts: how many visitors reached a block, took a connection, or could not be moved on, and, where the visitor's browser said why a block could not be shown, how many of those failures had each reason (`failedReasons`: a timeout, an error of the widget, a build that failed, or another reason). No visitor and no value a visitor typed is ever stored. For personal workspace, use 'personal' as workspaceId. For organization workspace, use the organization UUID as workspaceId. Any active member can read.
|
|
702
702
|
# @param workspace_id [String] The workspace: 'personal' for your own workspace, or the UUID of an organization. A call made for one of your managed users (`X-Managed-User-Id`) always uses 'personal': a managed user has no other workspace, and a call that names an organization is refused with 403.
|
|
703
703
|
# @param workflow_id [String] The workflow's id
|
|
704
704
|
# @param [Hash] opts the optional parameters
|
|
@@ -708,24 +708,24 @@ module ApiSdkRb
|
|
|
708
708
|
# @option opts [String] :x_managed_user_id The id Widgetic gave the managed user (`POST /managed-users`). Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
709
709
|
# @option opts [String] :x_managed_user_external_id Your own id for the managed user (its `externalId`), when you do not keep Widgetic's. Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
710
710
|
# @return [Array<(GetWorkspaceWorkflowStats200Response, Integer, Hash)>] GetWorkspaceWorkflowStats200Response data, response status code and response headers
|
|
711
|
-
def
|
|
711
|
+
def get_workspace_workflow_stats_with_http_info(workspace_id, workflow_id, opts = {})
|
|
712
712
|
if @api_client.config.debugging
|
|
713
|
-
@api_client.config.logger.debug 'Calling API: WorkflowsApi.
|
|
713
|
+
@api_client.config.logger.debug 'Calling API: WorkflowsApi.get_workspace_workflow_stats ...'
|
|
714
714
|
end
|
|
715
715
|
# verify the required parameter 'workspace_id' is set
|
|
716
716
|
if @api_client.config.client_side_validation && workspace_id.nil?
|
|
717
|
-
fail ArgumentError, "Missing the required parameter 'workspace_id' when calling WorkflowsApi.
|
|
717
|
+
fail ArgumentError, "Missing the required parameter 'workspace_id' when calling WorkflowsApi.get_workspace_workflow_stats"
|
|
718
718
|
end
|
|
719
719
|
# verify the required parameter 'workflow_id' is set
|
|
720
720
|
if @api_client.config.client_side_validation && workflow_id.nil?
|
|
721
|
-
fail ArgumentError, "Missing the required parameter 'workflow_id' when calling WorkflowsApi.
|
|
721
|
+
fail ArgumentError, "Missing the required parameter 'workflow_id' when calling WorkflowsApi.get_workspace_workflow_stats"
|
|
722
722
|
end
|
|
723
723
|
if @api_client.config.client_side_validation && !opts[:'x_managed_user_external_id'].nil? && opts[:'x_managed_user_external_id'].to_s.length > 255
|
|
724
|
-
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.
|
|
724
|
+
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.get_workspace_workflow_stats, the character length must be smaller than or equal to 255.'
|
|
725
725
|
end
|
|
726
726
|
|
|
727
727
|
if @api_client.config.client_side_validation && !opts[:'x_managed_user_external_id'].nil? && opts[:'x_managed_user_external_id'].to_s.length < 1
|
|
728
|
-
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.
|
|
728
|
+
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.get_workspace_workflow_stats, the character length must be great than or equal to 1.'
|
|
729
729
|
end
|
|
730
730
|
|
|
731
731
|
# resource path
|
|
@@ -757,7 +757,7 @@ module ApiSdkRb
|
|
|
757
757
|
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
758
758
|
|
|
759
759
|
new_options = opts.merge(
|
|
760
|
-
:operation => :"WorkflowsApi.
|
|
760
|
+
:operation => :"WorkflowsApi.get_workspace_workflow_stats",
|
|
761
761
|
:header_params => header_params,
|
|
762
762
|
:query_params => query_params,
|
|
763
763
|
:form_params => form_params,
|
|
@@ -768,7 +768,7 @@ module ApiSdkRb
|
|
|
768
768
|
|
|
769
769
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
770
770
|
if @api_client.config.debugging
|
|
771
|
-
@api_client.config.logger.debug "API called: WorkflowsApi#
|
|
771
|
+
@api_client.config.logger.debug "API called: WorkflowsApi#get_workspace_workflow_stats\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
772
772
|
end
|
|
773
773
|
return data, status_code, headers
|
|
774
774
|
end
|
|
@@ -782,8 +782,8 @@ module ApiSdkRb
|
|
|
782
782
|
# @option opts [String] :x_managed_user_id The id Widgetic gave the managed user (`POST /managed-users`). Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
783
783
|
# @option opts [String] :x_managed_user_external_id Your own id for the managed user (its `externalId`), when you do not keep Widgetic's. Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
784
784
|
# @return [GetWorkspaceWorkflowVersion200Response]
|
|
785
|
-
def
|
|
786
|
-
data, _status_code, _headers =
|
|
785
|
+
def get_workspace_workflow_version(workspace_id, workflow_id, version_id, opts = {})
|
|
786
|
+
data, _status_code, _headers = get_workspace_workflow_version_with_http_info(workspace_id, workflow_id, version_id, opts)
|
|
787
787
|
data
|
|
788
788
|
end
|
|
789
789
|
|
|
@@ -796,28 +796,28 @@ module ApiSdkRb
|
|
|
796
796
|
# @option opts [String] :x_managed_user_id The id Widgetic gave the managed user (`POST /managed-users`). Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
797
797
|
# @option opts [String] :x_managed_user_external_id Your own id for the managed user (its `externalId`), when you do not keep Widgetic's. Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
798
798
|
# @return [Array<(GetWorkspaceWorkflowVersion200Response, Integer, Hash)>] GetWorkspaceWorkflowVersion200Response data, response status code and response headers
|
|
799
|
-
def
|
|
799
|
+
def get_workspace_workflow_version_with_http_info(workspace_id, workflow_id, version_id, opts = {})
|
|
800
800
|
if @api_client.config.debugging
|
|
801
|
-
@api_client.config.logger.debug 'Calling API: WorkflowsApi.
|
|
801
|
+
@api_client.config.logger.debug 'Calling API: WorkflowsApi.get_workspace_workflow_version ...'
|
|
802
802
|
end
|
|
803
803
|
# verify the required parameter 'workspace_id' is set
|
|
804
804
|
if @api_client.config.client_side_validation && workspace_id.nil?
|
|
805
|
-
fail ArgumentError, "Missing the required parameter 'workspace_id' when calling WorkflowsApi.
|
|
805
|
+
fail ArgumentError, "Missing the required parameter 'workspace_id' when calling WorkflowsApi.get_workspace_workflow_version"
|
|
806
806
|
end
|
|
807
807
|
# verify the required parameter 'workflow_id' is set
|
|
808
808
|
if @api_client.config.client_side_validation && workflow_id.nil?
|
|
809
|
-
fail ArgumentError, "Missing the required parameter 'workflow_id' when calling WorkflowsApi.
|
|
809
|
+
fail ArgumentError, "Missing the required parameter 'workflow_id' when calling WorkflowsApi.get_workspace_workflow_version"
|
|
810
810
|
end
|
|
811
811
|
# verify the required parameter 'version_id' is set
|
|
812
812
|
if @api_client.config.client_side_validation && version_id.nil?
|
|
813
|
-
fail ArgumentError, "Missing the required parameter 'version_id' when calling WorkflowsApi.
|
|
813
|
+
fail ArgumentError, "Missing the required parameter 'version_id' when calling WorkflowsApi.get_workspace_workflow_version"
|
|
814
814
|
end
|
|
815
815
|
if @api_client.config.client_side_validation && !opts[:'x_managed_user_external_id'].nil? && opts[:'x_managed_user_external_id'].to_s.length > 255
|
|
816
|
-
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.
|
|
816
|
+
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.get_workspace_workflow_version, the character length must be smaller than or equal to 255.'
|
|
817
817
|
end
|
|
818
818
|
|
|
819
819
|
if @api_client.config.client_side_validation && !opts[:'x_managed_user_external_id'].nil? && opts[:'x_managed_user_external_id'].to_s.length < 1
|
|
820
|
-
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.
|
|
820
|
+
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.get_workspace_workflow_version, the character length must be great than or equal to 1.'
|
|
821
821
|
end
|
|
822
822
|
|
|
823
823
|
# resource path
|
|
@@ -846,7 +846,7 @@ module ApiSdkRb
|
|
|
846
846
|
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
847
847
|
|
|
848
848
|
new_options = opts.merge(
|
|
849
|
-
:operation => :"WorkflowsApi.
|
|
849
|
+
:operation => :"WorkflowsApi.get_workspace_workflow_version",
|
|
850
850
|
:header_params => header_params,
|
|
851
851
|
:query_params => query_params,
|
|
852
852
|
:form_params => form_params,
|
|
@@ -857,70 +857,7 @@ module ApiSdkRb
|
|
|
857
857
|
|
|
858
858
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
859
859
|
if @api_client.config.debugging
|
|
860
|
-
@api_client.config.logger.debug "API called: WorkflowsApi#
|
|
861
|
-
end
|
|
862
|
-
return data, status_code, headers
|
|
863
|
-
end
|
|
864
|
-
|
|
865
|
-
# List the workflows a partner offers as places to start
|
|
866
|
-
# The partner's starting points, ordered by `position` and then by `key`: the published workflows it offers its managed users when they make a new workflow. Each says whether people can start from it now and, when they cannot, why. The list is the same for every managed user, and a managed user is shown only what is available. A starting point is one of the partner account's own published workflows, built from compositions the account made for itself (not for a customer or a team) and from widgets the partner already offers as presets (`setPartnerPreset`), and it uses at most 10 widgets. A partner offers up to 50. The caller must be the person who administers the partner (an API key of that account works), or a Widgetic administrator.
|
|
867
|
-
# @param partner_id [String] The partner whose starting points to list
|
|
868
|
-
# @param [Hash] opts the optional parameters
|
|
869
|
-
# @return [ListPartnerWorkflowPresets200Response]
|
|
870
|
-
def list_partner_workflow_presets_1(partner_id, opts = {})
|
|
871
|
-
data, _status_code, _headers = list_partner_workflow_presets_1_with_http_info(partner_id, opts)
|
|
872
|
-
data
|
|
873
|
-
end
|
|
874
|
-
|
|
875
|
-
# List the workflows a partner offers as places to start
|
|
876
|
-
# The partner's starting points, ordered by `position` and then by `key`: the published workflows it offers its managed users when they make a new workflow. Each says whether people can start from it now and, when they cannot, why. The list is the same for every managed user, and a managed user is shown only what is available. A starting point is one of the partner account's own published workflows, built from compositions the account made for itself (not for a customer or a team) and from widgets the partner already offers as presets (`setPartnerPreset`), and it uses at most 10 widgets. A partner offers up to 50. The caller must be the person who administers the partner (an API key of that account works), or a Widgetic administrator.
|
|
877
|
-
# @param partner_id [String] The partner whose starting points to list
|
|
878
|
-
# @param [Hash] opts the optional parameters
|
|
879
|
-
# @return [Array<(ListPartnerWorkflowPresets200Response, Integer, Hash)>] ListPartnerWorkflowPresets200Response data, response status code and response headers
|
|
880
|
-
def list_partner_workflow_presets_1_with_http_info(partner_id, opts = {})
|
|
881
|
-
if @api_client.config.debugging
|
|
882
|
-
@api_client.config.logger.debug 'Calling API: WorkflowsApi.list_partner_workflow_presets_1 ...'
|
|
883
|
-
end
|
|
884
|
-
# verify the required parameter 'partner_id' is set
|
|
885
|
-
if @api_client.config.client_side_validation && partner_id.nil?
|
|
886
|
-
fail ArgumentError, "Missing the required parameter 'partner_id' when calling WorkflowsApi.list_partner_workflow_presets_1"
|
|
887
|
-
end
|
|
888
|
-
# resource path
|
|
889
|
-
local_var_path = '/partners/{partnerId}/workflow-presets'.sub('{' + 'partnerId' + '}', CGI.escape(partner_id.to_s))
|
|
890
|
-
|
|
891
|
-
# query parameters
|
|
892
|
-
query_params = opts[:query_params] || {}
|
|
893
|
-
|
|
894
|
-
# header parameters
|
|
895
|
-
header_params = opts[:header_params] || {}
|
|
896
|
-
# HTTP header 'Accept' (if needed)
|
|
897
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
898
|
-
|
|
899
|
-
# form parameters
|
|
900
|
-
form_params = opts[:form_params] || {}
|
|
901
|
-
|
|
902
|
-
# http body (model)
|
|
903
|
-
post_body = opts[:debug_body]
|
|
904
|
-
|
|
905
|
-
# return_type
|
|
906
|
-
return_type = opts[:debug_return_type] || 'ListPartnerWorkflowPresets200Response'
|
|
907
|
-
|
|
908
|
-
# auth_names
|
|
909
|
-
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
910
|
-
|
|
911
|
-
new_options = opts.merge(
|
|
912
|
-
:operation => :"WorkflowsApi.list_partner_workflow_presets_1",
|
|
913
|
-
:header_params => header_params,
|
|
914
|
-
:query_params => query_params,
|
|
915
|
-
:form_params => form_params,
|
|
916
|
-
:body => post_body,
|
|
917
|
-
:auth_names => auth_names,
|
|
918
|
-
:return_type => return_type
|
|
919
|
-
)
|
|
920
|
-
|
|
921
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
922
|
-
if @api_client.config.debugging
|
|
923
|
-
@api_client.config.logger.debug "API called: WorkflowsApi#list_partner_workflow_presets_1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
860
|
+
@api_client.config.logger.debug "API called: WorkflowsApi#get_workspace_workflow_version\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
924
861
|
end
|
|
925
862
|
return data, status_code, headers
|
|
926
863
|
end
|
|
@@ -936,8 +873,8 @@ module ApiSdkRb
|
|
|
936
873
|
# @option opts [String] :x_managed_user_id The id Widgetic gave the managed user (`POST /managed-users`). Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
937
874
|
# @option opts [String] :x_managed_user_external_id Your own id for the managed user (its `externalId`), when you do not keep Widgetic's. Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
938
875
|
# @return [ListWorkspaceWorkflowCompositionOptions200Response]
|
|
939
|
-
def
|
|
940
|
-
data, _status_code, _headers =
|
|
876
|
+
def list_workspace_workflow_composition_options(workspace_id, opts = {})
|
|
877
|
+
data, _status_code, _headers = list_workspace_workflow_composition_options_with_http_info(workspace_id, opts)
|
|
941
878
|
data
|
|
942
879
|
end
|
|
943
880
|
|
|
@@ -952,24 +889,24 @@ module ApiSdkRb
|
|
|
952
889
|
# @option opts [String] :x_managed_user_id The id Widgetic gave the managed user (`POST /managed-users`). Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
953
890
|
# @option opts [String] :x_managed_user_external_id Your own id for the managed user (its `externalId`), when you do not keep Widgetic's. Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
954
891
|
# @return [Array<(ListWorkspaceWorkflowCompositionOptions200Response, Integer, Hash)>] ListWorkspaceWorkflowCompositionOptions200Response data, response status code and response headers
|
|
955
|
-
def
|
|
892
|
+
def list_workspace_workflow_composition_options_with_http_info(workspace_id, opts = {})
|
|
956
893
|
if @api_client.config.debugging
|
|
957
|
-
@api_client.config.logger.debug 'Calling API: WorkflowsApi.
|
|
894
|
+
@api_client.config.logger.debug 'Calling API: WorkflowsApi.list_workspace_workflow_composition_options ...'
|
|
958
895
|
end
|
|
959
896
|
# verify the required parameter 'workspace_id' is set
|
|
960
897
|
if @api_client.config.client_side_validation && workspace_id.nil?
|
|
961
|
-
fail ArgumentError, "Missing the required parameter 'workspace_id' when calling WorkflowsApi.
|
|
898
|
+
fail ArgumentError, "Missing the required parameter 'workspace_id' when calling WorkflowsApi.list_workspace_workflow_composition_options"
|
|
962
899
|
end
|
|
963
900
|
if @api_client.config.client_side_validation && !opts[:'search'].nil? && opts[:'search'].to_s.length > 120
|
|
964
|
-
fail ArgumentError, 'invalid value for "opts[:"search"]" when calling WorkflowsApi.
|
|
901
|
+
fail ArgumentError, 'invalid value for "opts[:"search"]" when calling WorkflowsApi.list_workspace_workflow_composition_options, the character length must be smaller than or equal to 120.'
|
|
965
902
|
end
|
|
966
903
|
|
|
967
904
|
if @api_client.config.client_side_validation && !opts[:'x_managed_user_external_id'].nil? && opts[:'x_managed_user_external_id'].to_s.length > 255
|
|
968
|
-
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.
|
|
905
|
+
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.list_workspace_workflow_composition_options, the character length must be smaller than or equal to 255.'
|
|
969
906
|
end
|
|
970
907
|
|
|
971
908
|
if @api_client.config.client_side_validation && !opts[:'x_managed_user_external_id'].nil? && opts[:'x_managed_user_external_id'].to_s.length < 1
|
|
972
|
-
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.
|
|
909
|
+
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.list_workspace_workflow_composition_options, the character length must be great than or equal to 1.'
|
|
973
910
|
end
|
|
974
911
|
|
|
975
912
|
# resource path
|
|
@@ -1002,7 +939,7 @@ module ApiSdkRb
|
|
|
1002
939
|
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
1003
940
|
|
|
1004
941
|
new_options = opts.merge(
|
|
1005
|
-
:operation => :"WorkflowsApi.
|
|
942
|
+
:operation => :"WorkflowsApi.list_workspace_workflow_composition_options",
|
|
1006
943
|
:header_params => header_params,
|
|
1007
944
|
:query_params => query_params,
|
|
1008
945
|
:form_params => form_params,
|
|
@@ -1013,7 +950,7 @@ module ApiSdkRb
|
|
|
1013
950
|
|
|
1014
951
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1015
952
|
if @api_client.config.debugging
|
|
1016
|
-
@api_client.config.logger.debug "API called: WorkflowsApi#
|
|
953
|
+
@api_client.config.logger.debug "API called: WorkflowsApi#list_workspace_workflow_composition_options\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1017
954
|
end
|
|
1018
955
|
return data, status_code, headers
|
|
1019
956
|
end
|
|
@@ -1025,8 +962,8 @@ module ApiSdkRb
|
|
|
1025
962
|
# @option opts [String] :x_managed_user_id The id Widgetic gave the managed user (`POST /managed-users`). Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
1026
963
|
# @option opts [String] :x_managed_user_external_id Your own id for the managed user (its `externalId`), when you do not keep Widgetic's. Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
1027
964
|
# @return [ListWorkspaceWorkflowPresets200Response]
|
|
1028
|
-
def
|
|
1029
|
-
data, _status_code, _headers =
|
|
965
|
+
def list_workspace_workflow_presets(workspace_id, opts = {})
|
|
966
|
+
data, _status_code, _headers = list_workspace_workflow_presets_with_http_info(workspace_id, opts)
|
|
1030
967
|
data
|
|
1031
968
|
end
|
|
1032
969
|
|
|
@@ -1037,20 +974,20 @@ module ApiSdkRb
|
|
|
1037
974
|
# @option opts [String] :x_managed_user_id The id Widgetic gave the managed user (`POST /managed-users`). Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
1038
975
|
# @option opts [String] :x_managed_user_external_id Your own id for the managed user (its `externalId`), when you do not keep Widgetic's. Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
1039
976
|
# @return [Array<(ListWorkspaceWorkflowPresets200Response, Integer, Hash)>] ListWorkspaceWorkflowPresets200Response data, response status code and response headers
|
|
1040
|
-
def
|
|
977
|
+
def list_workspace_workflow_presets_with_http_info(workspace_id, opts = {})
|
|
1041
978
|
if @api_client.config.debugging
|
|
1042
|
-
@api_client.config.logger.debug 'Calling API: WorkflowsApi.
|
|
979
|
+
@api_client.config.logger.debug 'Calling API: WorkflowsApi.list_workspace_workflow_presets ...'
|
|
1043
980
|
end
|
|
1044
981
|
# verify the required parameter 'workspace_id' is set
|
|
1045
982
|
if @api_client.config.client_side_validation && workspace_id.nil?
|
|
1046
|
-
fail ArgumentError, "Missing the required parameter 'workspace_id' when calling WorkflowsApi.
|
|
983
|
+
fail ArgumentError, "Missing the required parameter 'workspace_id' when calling WorkflowsApi.list_workspace_workflow_presets"
|
|
1047
984
|
end
|
|
1048
985
|
if @api_client.config.client_side_validation && !opts[:'x_managed_user_external_id'].nil? && opts[:'x_managed_user_external_id'].to_s.length > 255
|
|
1049
|
-
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.
|
|
986
|
+
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.list_workspace_workflow_presets, the character length must be smaller than or equal to 255.'
|
|
1050
987
|
end
|
|
1051
988
|
|
|
1052
989
|
if @api_client.config.client_side_validation && !opts[:'x_managed_user_external_id'].nil? && opts[:'x_managed_user_external_id'].to_s.length < 1
|
|
1053
|
-
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.
|
|
990
|
+
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.list_workspace_workflow_presets, the character length must be great than or equal to 1.'
|
|
1054
991
|
end
|
|
1055
992
|
|
|
1056
993
|
# resource path
|
|
@@ -1079,7 +1016,7 @@ module ApiSdkRb
|
|
|
1079
1016
|
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
1080
1017
|
|
|
1081
1018
|
new_options = opts.merge(
|
|
1082
|
-
:operation => :"WorkflowsApi.
|
|
1019
|
+
:operation => :"WorkflowsApi.list_workspace_workflow_presets",
|
|
1083
1020
|
:header_params => header_params,
|
|
1084
1021
|
:query_params => query_params,
|
|
1085
1022
|
:form_params => form_params,
|
|
@@ -1090,7 +1027,7 @@ module ApiSdkRb
|
|
|
1090
1027
|
|
|
1091
1028
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1092
1029
|
if @api_client.config.debugging
|
|
1093
|
-
@api_client.config.logger.debug "API called: WorkflowsApi#
|
|
1030
|
+
@api_client.config.logger.debug "API called: WorkflowsApi#list_workspace_workflow_presets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1094
1031
|
end
|
|
1095
1032
|
return data, status_code, headers
|
|
1096
1033
|
end
|
|
@@ -1103,8 +1040,8 @@ module ApiSdkRb
|
|
|
1103
1040
|
# @option opts [String] :x_managed_user_id The id Widgetic gave the managed user (`POST /managed-users`). Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
1104
1041
|
# @option opts [String] :x_managed_user_external_id Your own id for the managed user (its `externalId`), when you do not keep Widgetic's. Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
1105
1042
|
# @return [ListWorkspaceWorkflowVersions200Response]
|
|
1106
|
-
def
|
|
1107
|
-
data, _status_code, _headers =
|
|
1043
|
+
def list_workspace_workflow_versions(workspace_id, workflow_id, opts = {})
|
|
1044
|
+
data, _status_code, _headers = list_workspace_workflow_versions_with_http_info(workspace_id, workflow_id, opts)
|
|
1108
1045
|
data
|
|
1109
1046
|
end
|
|
1110
1047
|
|
|
@@ -1116,24 +1053,24 @@ module ApiSdkRb
|
|
|
1116
1053
|
# @option opts [String] :x_managed_user_id The id Widgetic gave the managed user (`POST /managed-users`). Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
1117
1054
|
# @option opts [String] :x_managed_user_external_id Your own id for the managed user (its `externalId`), when you do not keep Widgetic's. Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
1118
1055
|
# @return [Array<(ListWorkspaceWorkflowVersions200Response, Integer, Hash)>] ListWorkspaceWorkflowVersions200Response data, response status code and response headers
|
|
1119
|
-
def
|
|
1056
|
+
def list_workspace_workflow_versions_with_http_info(workspace_id, workflow_id, opts = {})
|
|
1120
1057
|
if @api_client.config.debugging
|
|
1121
|
-
@api_client.config.logger.debug 'Calling API: WorkflowsApi.
|
|
1058
|
+
@api_client.config.logger.debug 'Calling API: WorkflowsApi.list_workspace_workflow_versions ...'
|
|
1122
1059
|
end
|
|
1123
1060
|
# verify the required parameter 'workspace_id' is set
|
|
1124
1061
|
if @api_client.config.client_side_validation && workspace_id.nil?
|
|
1125
|
-
fail ArgumentError, "Missing the required parameter 'workspace_id' when calling WorkflowsApi.
|
|
1062
|
+
fail ArgumentError, "Missing the required parameter 'workspace_id' when calling WorkflowsApi.list_workspace_workflow_versions"
|
|
1126
1063
|
end
|
|
1127
1064
|
# verify the required parameter 'workflow_id' is set
|
|
1128
1065
|
if @api_client.config.client_side_validation && workflow_id.nil?
|
|
1129
|
-
fail ArgumentError, "Missing the required parameter 'workflow_id' when calling WorkflowsApi.
|
|
1066
|
+
fail ArgumentError, "Missing the required parameter 'workflow_id' when calling WorkflowsApi.list_workspace_workflow_versions"
|
|
1130
1067
|
end
|
|
1131
1068
|
if @api_client.config.client_side_validation && !opts[:'x_managed_user_external_id'].nil? && opts[:'x_managed_user_external_id'].to_s.length > 255
|
|
1132
|
-
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.
|
|
1069
|
+
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.list_workspace_workflow_versions, the character length must be smaller than or equal to 255.'
|
|
1133
1070
|
end
|
|
1134
1071
|
|
|
1135
1072
|
if @api_client.config.client_side_validation && !opts[:'x_managed_user_external_id'].nil? && opts[:'x_managed_user_external_id'].to_s.length < 1
|
|
1136
|
-
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.
|
|
1073
|
+
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.list_workspace_workflow_versions, the character length must be great than or equal to 1.'
|
|
1137
1074
|
end
|
|
1138
1075
|
|
|
1139
1076
|
# resource path
|
|
@@ -1162,7 +1099,7 @@ module ApiSdkRb
|
|
|
1162
1099
|
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
1163
1100
|
|
|
1164
1101
|
new_options = opts.merge(
|
|
1165
|
-
:operation => :"WorkflowsApi.
|
|
1102
|
+
:operation => :"WorkflowsApi.list_workspace_workflow_versions",
|
|
1166
1103
|
:header_params => header_params,
|
|
1167
1104
|
:query_params => query_params,
|
|
1168
1105
|
:form_params => form_params,
|
|
@@ -1173,7 +1110,7 @@ module ApiSdkRb
|
|
|
1173
1110
|
|
|
1174
1111
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1175
1112
|
if @api_client.config.debugging
|
|
1176
|
-
@api_client.config.logger.debug "API called: WorkflowsApi#
|
|
1113
|
+
@api_client.config.logger.debug "API called: WorkflowsApi#list_workspace_workflow_versions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1177
1114
|
end
|
|
1178
1115
|
return data, status_code, headers
|
|
1179
1116
|
end
|
|
@@ -1190,8 +1127,8 @@ module ApiSdkRb
|
|
|
1190
1127
|
# @option opts [String] :x_managed_user_id The id Widgetic gave the managed user (`POST /managed-users`). Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
1191
1128
|
# @option opts [String] :x_managed_user_external_id Your own id for the managed user (its `externalId`), when you do not keep Widgetic's. Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
1192
1129
|
# @return [ListWorkspaceWorkflows200Response]
|
|
1193
|
-
def
|
|
1194
|
-
data, _status_code, _headers =
|
|
1130
|
+
def list_workspace_workflows(workspace_id, opts = {})
|
|
1131
|
+
data, _status_code, _headers = list_workspace_workflows_with_http_info(workspace_id, opts)
|
|
1195
1132
|
data
|
|
1196
1133
|
end
|
|
1197
1134
|
|
|
@@ -1207,16 +1144,16 @@ module ApiSdkRb
|
|
|
1207
1144
|
# @option opts [String] :x_managed_user_id The id Widgetic gave the managed user (`POST /managed-users`). Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
1208
1145
|
# @option opts [String] :x_managed_user_external_id Your own id for the managed user (its `externalId`), when you do not keep Widgetic's. Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
1209
1146
|
# @return [Array<(ListWorkspaceWorkflows200Response, Integer, Hash)>] ListWorkspaceWorkflows200Response data, response status code and response headers
|
|
1210
|
-
def
|
|
1147
|
+
def list_workspace_workflows_with_http_info(workspace_id, opts = {})
|
|
1211
1148
|
if @api_client.config.debugging
|
|
1212
|
-
@api_client.config.logger.debug 'Calling API: WorkflowsApi.
|
|
1149
|
+
@api_client.config.logger.debug 'Calling API: WorkflowsApi.list_workspace_workflows ...'
|
|
1213
1150
|
end
|
|
1214
1151
|
# verify the required parameter 'workspace_id' is set
|
|
1215
1152
|
if @api_client.config.client_side_validation && workspace_id.nil?
|
|
1216
|
-
fail ArgumentError, "Missing the required parameter 'workspace_id' when calling WorkflowsApi.
|
|
1153
|
+
fail ArgumentError, "Missing the required parameter 'workspace_id' when calling WorkflowsApi.list_workspace_workflows"
|
|
1217
1154
|
end
|
|
1218
1155
|
if @api_client.config.client_side_validation && !opts[:'search'].nil? && opts[:'search'].to_s.length > 120
|
|
1219
|
-
fail ArgumentError, 'invalid value for "opts[:"search"]" when calling WorkflowsApi.
|
|
1156
|
+
fail ArgumentError, 'invalid value for "opts[:"search"]" when calling WorkflowsApi.list_workspace_workflows, the character length must be smaller than or equal to 120.'
|
|
1220
1157
|
end
|
|
1221
1158
|
|
|
1222
1159
|
allowable_values = ["draft", "live", "paused", "archived", "all"]
|
|
@@ -1224,11 +1161,11 @@ module ApiSdkRb
|
|
|
1224
1161
|
fail ArgumentError, "invalid value for \"status\", must be one of #{allowable_values}"
|
|
1225
1162
|
end
|
|
1226
1163
|
if @api_client.config.client_side_validation && !opts[:'x_managed_user_external_id'].nil? && opts[:'x_managed_user_external_id'].to_s.length > 255
|
|
1227
|
-
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.
|
|
1164
|
+
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.list_workspace_workflows, the character length must be smaller than or equal to 255.'
|
|
1228
1165
|
end
|
|
1229
1166
|
|
|
1230
1167
|
if @api_client.config.client_side_validation && !opts[:'x_managed_user_external_id'].nil? && opts[:'x_managed_user_external_id'].to_s.length < 1
|
|
1231
|
-
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.
|
|
1168
|
+
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.list_workspace_workflows, the character length must be great than or equal to 1.'
|
|
1232
1169
|
end
|
|
1233
1170
|
|
|
1234
1171
|
# resource path
|
|
@@ -1262,7 +1199,7 @@ module ApiSdkRb
|
|
|
1262
1199
|
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
1263
1200
|
|
|
1264
1201
|
new_options = opts.merge(
|
|
1265
|
-
:operation => :"WorkflowsApi.
|
|
1202
|
+
:operation => :"WorkflowsApi.list_workspace_workflows",
|
|
1266
1203
|
:header_params => header_params,
|
|
1267
1204
|
:query_params => query_params,
|
|
1268
1205
|
:form_params => form_params,
|
|
@@ -1273,7 +1210,7 @@ module ApiSdkRb
|
|
|
1273
1210
|
|
|
1274
1211
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1275
1212
|
if @api_client.config.debugging
|
|
1276
|
-
@api_client.config.logger.debug "API called: WorkflowsApi#
|
|
1213
|
+
@api_client.config.logger.debug "API called: WorkflowsApi#list_workspace_workflows\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1277
1214
|
end
|
|
1278
1215
|
return data, status_code, headers
|
|
1279
1216
|
end
|
|
@@ -1285,9 +1222,9 @@ module ApiSdkRb
|
|
|
1285
1222
|
# @param [Hash] opts the optional parameters
|
|
1286
1223
|
# @option opts [String] :x_managed_user_id The id Widgetic gave the managed user (`POST /managed-users`). Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
1287
1224
|
# @option opts [String] :x_managed_user_external_id Your own id for the managed user (its `externalId`), when you do not keep Widgetic's. Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
1288
|
-
# @return [
|
|
1289
|
-
def
|
|
1290
|
-
data, _status_code, _headers =
|
|
1225
|
+
# @return [WorkflowResponse]
|
|
1226
|
+
def pause_workspace_workflow(workspace_id, workflow_id, opts = {})
|
|
1227
|
+
data, _status_code, _headers = pause_workspace_workflow_with_http_info(workspace_id, workflow_id, opts)
|
|
1291
1228
|
data
|
|
1292
1229
|
end
|
|
1293
1230
|
|
|
@@ -1298,25 +1235,25 @@ module ApiSdkRb
|
|
|
1298
1235
|
# @param [Hash] opts the optional parameters
|
|
1299
1236
|
# @option opts [String] :x_managed_user_id The id Widgetic gave the managed user (`POST /managed-users`). Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
1300
1237
|
# @option opts [String] :x_managed_user_external_id Your own id for the managed user (its `externalId`), when you do not keep Widgetic's. Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
1301
|
-
# @return [Array<(
|
|
1302
|
-
def
|
|
1238
|
+
# @return [Array<(WorkflowResponse, Integer, Hash)>] WorkflowResponse data, response status code and response headers
|
|
1239
|
+
def pause_workspace_workflow_with_http_info(workspace_id, workflow_id, opts = {})
|
|
1303
1240
|
if @api_client.config.debugging
|
|
1304
|
-
@api_client.config.logger.debug 'Calling API: WorkflowsApi.
|
|
1241
|
+
@api_client.config.logger.debug 'Calling API: WorkflowsApi.pause_workspace_workflow ...'
|
|
1305
1242
|
end
|
|
1306
1243
|
# verify the required parameter 'workspace_id' is set
|
|
1307
1244
|
if @api_client.config.client_side_validation && workspace_id.nil?
|
|
1308
|
-
fail ArgumentError, "Missing the required parameter 'workspace_id' when calling WorkflowsApi.
|
|
1245
|
+
fail ArgumentError, "Missing the required parameter 'workspace_id' when calling WorkflowsApi.pause_workspace_workflow"
|
|
1309
1246
|
end
|
|
1310
1247
|
# verify the required parameter 'workflow_id' is set
|
|
1311
1248
|
if @api_client.config.client_side_validation && workflow_id.nil?
|
|
1312
|
-
fail ArgumentError, "Missing the required parameter 'workflow_id' when calling WorkflowsApi.
|
|
1249
|
+
fail ArgumentError, "Missing the required parameter 'workflow_id' when calling WorkflowsApi.pause_workspace_workflow"
|
|
1313
1250
|
end
|
|
1314
1251
|
if @api_client.config.client_side_validation && !opts[:'x_managed_user_external_id'].nil? && opts[:'x_managed_user_external_id'].to_s.length > 255
|
|
1315
|
-
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.
|
|
1252
|
+
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.pause_workspace_workflow, the character length must be smaller than or equal to 255.'
|
|
1316
1253
|
end
|
|
1317
1254
|
|
|
1318
1255
|
if @api_client.config.client_side_validation && !opts[:'x_managed_user_external_id'].nil? && opts[:'x_managed_user_external_id'].to_s.length < 1
|
|
1319
|
-
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.
|
|
1256
|
+
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.pause_workspace_workflow, the character length must be great than or equal to 1.'
|
|
1320
1257
|
end
|
|
1321
1258
|
|
|
1322
1259
|
# resource path
|
|
@@ -1339,13 +1276,13 @@ module ApiSdkRb
|
|
|
1339
1276
|
post_body = opts[:debug_body]
|
|
1340
1277
|
|
|
1341
1278
|
# return_type
|
|
1342
|
-
return_type = opts[:debug_return_type] || '
|
|
1279
|
+
return_type = opts[:debug_return_type] || 'WorkflowResponse'
|
|
1343
1280
|
|
|
1344
1281
|
# auth_names
|
|
1345
1282
|
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
1346
1283
|
|
|
1347
1284
|
new_options = opts.merge(
|
|
1348
|
-
:operation => :"WorkflowsApi.
|
|
1285
|
+
:operation => :"WorkflowsApi.pause_workspace_workflow",
|
|
1349
1286
|
:header_params => header_params,
|
|
1350
1287
|
:query_params => query_params,
|
|
1351
1288
|
:form_params => form_params,
|
|
@@ -1356,7 +1293,7 @@ module ApiSdkRb
|
|
|
1356
1293
|
|
|
1357
1294
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1358
1295
|
if @api_client.config.debugging
|
|
1359
|
-
@api_client.config.logger.debug "API called: WorkflowsApi#
|
|
1296
|
+
@api_client.config.logger.debug "API called: WorkflowsApi#pause_workspace_workflow\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1360
1297
|
end
|
|
1361
1298
|
return data, status_code, headers
|
|
1362
1299
|
end
|
|
@@ -1371,8 +1308,8 @@ module ApiSdkRb
|
|
|
1371
1308
|
# @option opts [String] :x_managed_user_id The id Widgetic gave the managed user (`POST /managed-users`). Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
1372
1309
|
# @option opts [String] :x_managed_user_external_id Your own id for the managed user (its `externalId`), when you do not keep Widgetic's. Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
1373
1310
|
# @return [PublishWorkspaceWorkflow200Response]
|
|
1374
|
-
def
|
|
1375
|
-
data, _status_code, _headers =
|
|
1311
|
+
def publish_workspace_workflow(workspace_id, workflow_id, idempotency_key, publish_workspace_workflow_request, opts = {})
|
|
1312
|
+
data, _status_code, _headers = publish_workspace_workflow_with_http_info(workspace_id, workflow_id, idempotency_key, publish_workspace_workflow_request, opts)
|
|
1376
1313
|
data
|
|
1377
1314
|
end
|
|
1378
1315
|
|
|
@@ -1386,45 +1323,45 @@ module ApiSdkRb
|
|
|
1386
1323
|
# @option opts [String] :x_managed_user_id The id Widgetic gave the managed user (`POST /managed-users`). Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
1387
1324
|
# @option opts [String] :x_managed_user_external_id Your own id for the managed user (its `externalId`), when you do not keep Widgetic's. Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
1388
1325
|
# @return [Array<(PublishWorkspaceWorkflow200Response, Integer, Hash)>] PublishWorkspaceWorkflow200Response data, response status code and response headers
|
|
1389
|
-
def
|
|
1326
|
+
def publish_workspace_workflow_with_http_info(workspace_id, workflow_id, idempotency_key, publish_workspace_workflow_request, opts = {})
|
|
1390
1327
|
if @api_client.config.debugging
|
|
1391
|
-
@api_client.config.logger.debug 'Calling API: WorkflowsApi.
|
|
1328
|
+
@api_client.config.logger.debug 'Calling API: WorkflowsApi.publish_workspace_workflow ...'
|
|
1392
1329
|
end
|
|
1393
1330
|
# verify the required parameter 'workspace_id' is set
|
|
1394
1331
|
if @api_client.config.client_side_validation && workspace_id.nil?
|
|
1395
|
-
fail ArgumentError, "Missing the required parameter 'workspace_id' when calling WorkflowsApi.
|
|
1332
|
+
fail ArgumentError, "Missing the required parameter 'workspace_id' when calling WorkflowsApi.publish_workspace_workflow"
|
|
1396
1333
|
end
|
|
1397
1334
|
# verify the required parameter 'workflow_id' is set
|
|
1398
1335
|
if @api_client.config.client_side_validation && workflow_id.nil?
|
|
1399
|
-
fail ArgumentError, "Missing the required parameter 'workflow_id' when calling WorkflowsApi.
|
|
1336
|
+
fail ArgumentError, "Missing the required parameter 'workflow_id' when calling WorkflowsApi.publish_workspace_workflow"
|
|
1400
1337
|
end
|
|
1401
1338
|
# verify the required parameter 'idempotency_key' is set
|
|
1402
1339
|
if @api_client.config.client_side_validation && idempotency_key.nil?
|
|
1403
|
-
fail ArgumentError, "Missing the required parameter 'idempotency_key' when calling WorkflowsApi.
|
|
1340
|
+
fail ArgumentError, "Missing the required parameter 'idempotency_key' when calling WorkflowsApi.publish_workspace_workflow"
|
|
1404
1341
|
end
|
|
1405
1342
|
if @api_client.config.client_side_validation && idempotency_key.to_s.length > 50
|
|
1406
|
-
fail ArgumentError, 'invalid value for "idempotency_key" when calling WorkflowsApi.
|
|
1343
|
+
fail ArgumentError, 'invalid value for "idempotency_key" when calling WorkflowsApi.publish_workspace_workflow, the character length must be smaller than or equal to 50.'
|
|
1407
1344
|
end
|
|
1408
1345
|
|
|
1409
1346
|
if @api_client.config.client_side_validation && idempotency_key.to_s.length < 8
|
|
1410
|
-
fail ArgumentError, 'invalid value for "idempotency_key" when calling WorkflowsApi.
|
|
1347
|
+
fail ArgumentError, 'invalid value for "idempotency_key" when calling WorkflowsApi.publish_workspace_workflow, the character length must be great than or equal to 8.'
|
|
1411
1348
|
end
|
|
1412
1349
|
|
|
1413
1350
|
pattern = Regexp.new(/^[a-zA-Z0-9_-]{8,50}$/)
|
|
1414
1351
|
if @api_client.config.client_side_validation && idempotency_key !~ pattern
|
|
1415
|
-
fail ArgumentError, "invalid value for 'idempotency_key' when calling WorkflowsApi.
|
|
1352
|
+
fail ArgumentError, "invalid value for 'idempotency_key' when calling WorkflowsApi.publish_workspace_workflow, must conform to the pattern #{pattern}."
|
|
1416
1353
|
end
|
|
1417
1354
|
|
|
1418
1355
|
# verify the required parameter 'publish_workspace_workflow_request' is set
|
|
1419
1356
|
if @api_client.config.client_side_validation && publish_workspace_workflow_request.nil?
|
|
1420
|
-
fail ArgumentError, "Missing the required parameter 'publish_workspace_workflow_request' when calling WorkflowsApi.
|
|
1357
|
+
fail ArgumentError, "Missing the required parameter 'publish_workspace_workflow_request' when calling WorkflowsApi.publish_workspace_workflow"
|
|
1421
1358
|
end
|
|
1422
1359
|
if @api_client.config.client_side_validation && !opts[:'x_managed_user_external_id'].nil? && opts[:'x_managed_user_external_id'].to_s.length > 255
|
|
1423
|
-
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.
|
|
1360
|
+
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.publish_workspace_workflow, the character length must be smaller than or equal to 255.'
|
|
1424
1361
|
end
|
|
1425
1362
|
|
|
1426
1363
|
if @api_client.config.client_side_validation && !opts[:'x_managed_user_external_id'].nil? && opts[:'x_managed_user_external_id'].to_s.length < 1
|
|
1427
|
-
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.
|
|
1364
|
+
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.publish_workspace_workflow, the character length must be great than or equal to 1.'
|
|
1428
1365
|
end
|
|
1429
1366
|
|
|
1430
1367
|
# resource path
|
|
@@ -1459,7 +1396,7 @@ module ApiSdkRb
|
|
|
1459
1396
|
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
1460
1397
|
|
|
1461
1398
|
new_options = opts.merge(
|
|
1462
|
-
:operation => :"WorkflowsApi.
|
|
1399
|
+
:operation => :"WorkflowsApi.publish_workspace_workflow",
|
|
1463
1400
|
:header_params => header_params,
|
|
1464
1401
|
:query_params => query_params,
|
|
1465
1402
|
:form_params => form_params,
|
|
@@ -1470,81 +1407,7 @@ module ApiSdkRb
|
|
|
1470
1407
|
|
|
1471
1408
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1472
1409
|
if @api_client.config.debugging
|
|
1473
|
-
@api_client.config.logger.debug "API called: WorkflowsApi#
|
|
1474
|
-
end
|
|
1475
|
-
return data, status_code, headers
|
|
1476
|
-
end
|
|
1477
|
-
|
|
1478
|
-
# Stop offering a workflow as a place to start
|
|
1479
|
-
# Removes the starting point under `key`. The workflow itself is not touched, and neither are the workflows people already started from it. Removing a starting point the partner does not offer is not an error: the answer is `removed: false`.
|
|
1480
|
-
# @param partner_id [String] The partner whose starting point to remove
|
|
1481
|
-
# @param key [String] The key of the starting point to remove
|
|
1482
|
-
# @param [Hash] opts the optional parameters
|
|
1483
|
-
# @return [RemovePartnerWorkflowPreset200Response]
|
|
1484
|
-
def remove_partner_workflow_preset_1(partner_id, key, opts = {})
|
|
1485
|
-
data, _status_code, _headers = remove_partner_workflow_preset_1_with_http_info(partner_id, key, opts)
|
|
1486
|
-
data
|
|
1487
|
-
end
|
|
1488
|
-
|
|
1489
|
-
# Stop offering a workflow as a place to start
|
|
1490
|
-
# Removes the starting point under `key`. The workflow itself is not touched, and neither are the workflows people already started from it. Removing a starting point the partner does not offer is not an error: the answer is `removed: false`.
|
|
1491
|
-
# @param partner_id [String] The partner whose starting point to remove
|
|
1492
|
-
# @param key [String] The key of the starting point to remove
|
|
1493
|
-
# @param [Hash] opts the optional parameters
|
|
1494
|
-
# @return [Array<(RemovePartnerWorkflowPreset200Response, Integer, Hash)>] RemovePartnerWorkflowPreset200Response data, response status code and response headers
|
|
1495
|
-
def remove_partner_workflow_preset_1_with_http_info(partner_id, key, opts = {})
|
|
1496
|
-
if @api_client.config.debugging
|
|
1497
|
-
@api_client.config.logger.debug 'Calling API: WorkflowsApi.remove_partner_workflow_preset_1 ...'
|
|
1498
|
-
end
|
|
1499
|
-
# verify the required parameter 'partner_id' is set
|
|
1500
|
-
if @api_client.config.client_side_validation && partner_id.nil?
|
|
1501
|
-
fail ArgumentError, "Missing the required parameter 'partner_id' when calling WorkflowsApi.remove_partner_workflow_preset_1"
|
|
1502
|
-
end
|
|
1503
|
-
# verify the required parameter 'key' is set
|
|
1504
|
-
if @api_client.config.client_side_validation && key.nil?
|
|
1505
|
-
fail ArgumentError, "Missing the required parameter 'key' when calling WorkflowsApi.remove_partner_workflow_preset_1"
|
|
1506
|
-
end
|
|
1507
|
-
pattern = Regexp.new(/^[a-z0-9][a-z0-9_-]{0,63}$/)
|
|
1508
|
-
if @api_client.config.client_side_validation && key !~ pattern
|
|
1509
|
-
fail ArgumentError, "invalid value for 'key' when calling WorkflowsApi.remove_partner_workflow_preset_1, must conform to the pattern #{pattern}."
|
|
1510
|
-
end
|
|
1511
|
-
|
|
1512
|
-
# resource path
|
|
1513
|
-
local_var_path = '/partners/{partnerId}/workflow-presets/{key}'.sub('{' + 'partnerId' + '}', CGI.escape(partner_id.to_s)).sub('{' + 'key' + '}', CGI.escape(key.to_s))
|
|
1514
|
-
|
|
1515
|
-
# query parameters
|
|
1516
|
-
query_params = opts[:query_params] || {}
|
|
1517
|
-
|
|
1518
|
-
# header parameters
|
|
1519
|
-
header_params = opts[:header_params] || {}
|
|
1520
|
-
# HTTP header 'Accept' (if needed)
|
|
1521
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1522
|
-
|
|
1523
|
-
# form parameters
|
|
1524
|
-
form_params = opts[:form_params] || {}
|
|
1525
|
-
|
|
1526
|
-
# http body (model)
|
|
1527
|
-
post_body = opts[:debug_body]
|
|
1528
|
-
|
|
1529
|
-
# return_type
|
|
1530
|
-
return_type = opts[:debug_return_type] || 'RemovePartnerWorkflowPreset200Response'
|
|
1531
|
-
|
|
1532
|
-
# auth_names
|
|
1533
|
-
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
1534
|
-
|
|
1535
|
-
new_options = opts.merge(
|
|
1536
|
-
:operation => :"WorkflowsApi.remove_partner_workflow_preset_1",
|
|
1537
|
-
:header_params => header_params,
|
|
1538
|
-
:query_params => query_params,
|
|
1539
|
-
:form_params => form_params,
|
|
1540
|
-
:body => post_body,
|
|
1541
|
-
:auth_names => auth_names,
|
|
1542
|
-
:return_type => return_type
|
|
1543
|
-
)
|
|
1544
|
-
|
|
1545
|
-
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
1546
|
-
if @api_client.config.debugging
|
|
1547
|
-
@api_client.config.logger.debug "API called: WorkflowsApi#remove_partner_workflow_preset_1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1410
|
+
@api_client.config.logger.debug "API called: WorkflowsApi#publish_workspace_workflow\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1548
1411
|
end
|
|
1549
1412
|
return data, status_code, headers
|
|
1550
1413
|
end
|
|
@@ -1558,9 +1421,9 @@ module ApiSdkRb
|
|
|
1558
1421
|
# @param [Hash] opts the optional parameters
|
|
1559
1422
|
# @option opts [String] :x_managed_user_id The id Widgetic gave the managed user (`POST /managed-users`). Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
1560
1423
|
# @option opts [String] :x_managed_user_external_id Your own id for the managed user (its `externalId`), when you do not keep Widgetic's. Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
1561
|
-
# @return [
|
|
1562
|
-
def
|
|
1563
|
-
data, _status_code, _headers =
|
|
1424
|
+
# @return [WorkflowDetailResponse]
|
|
1425
|
+
def restore_workspace_workflow_version(workspace_id, workflow_id, version_id, publish_workspace_workflow_request, opts = {})
|
|
1426
|
+
data, _status_code, _headers = restore_workspace_workflow_version_with_http_info(workspace_id, workflow_id, version_id, publish_workspace_workflow_request, opts)
|
|
1564
1427
|
data
|
|
1565
1428
|
end
|
|
1566
1429
|
|
|
@@ -1573,33 +1436,33 @@ module ApiSdkRb
|
|
|
1573
1436
|
# @param [Hash] opts the optional parameters
|
|
1574
1437
|
# @option opts [String] :x_managed_user_id The id Widgetic gave the managed user (`POST /managed-users`). Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
1575
1438
|
# @option opts [String] :x_managed_user_external_id Your own id for the managed user (its `externalId`), when you do not keep Widgetic's. Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
1576
|
-
# @return [Array<(
|
|
1577
|
-
def
|
|
1439
|
+
# @return [Array<(WorkflowDetailResponse, Integer, Hash)>] WorkflowDetailResponse data, response status code and response headers
|
|
1440
|
+
def restore_workspace_workflow_version_with_http_info(workspace_id, workflow_id, version_id, publish_workspace_workflow_request, opts = {})
|
|
1578
1441
|
if @api_client.config.debugging
|
|
1579
|
-
@api_client.config.logger.debug 'Calling API: WorkflowsApi.
|
|
1442
|
+
@api_client.config.logger.debug 'Calling API: WorkflowsApi.restore_workspace_workflow_version ...'
|
|
1580
1443
|
end
|
|
1581
1444
|
# verify the required parameter 'workspace_id' is set
|
|
1582
1445
|
if @api_client.config.client_side_validation && workspace_id.nil?
|
|
1583
|
-
fail ArgumentError, "Missing the required parameter 'workspace_id' when calling WorkflowsApi.
|
|
1446
|
+
fail ArgumentError, "Missing the required parameter 'workspace_id' when calling WorkflowsApi.restore_workspace_workflow_version"
|
|
1584
1447
|
end
|
|
1585
1448
|
# verify the required parameter 'workflow_id' is set
|
|
1586
1449
|
if @api_client.config.client_side_validation && workflow_id.nil?
|
|
1587
|
-
fail ArgumentError, "Missing the required parameter 'workflow_id' when calling WorkflowsApi.
|
|
1450
|
+
fail ArgumentError, "Missing the required parameter 'workflow_id' when calling WorkflowsApi.restore_workspace_workflow_version"
|
|
1588
1451
|
end
|
|
1589
1452
|
# verify the required parameter 'version_id' is set
|
|
1590
1453
|
if @api_client.config.client_side_validation && version_id.nil?
|
|
1591
|
-
fail ArgumentError, "Missing the required parameter 'version_id' when calling WorkflowsApi.
|
|
1454
|
+
fail ArgumentError, "Missing the required parameter 'version_id' when calling WorkflowsApi.restore_workspace_workflow_version"
|
|
1592
1455
|
end
|
|
1593
1456
|
# verify the required parameter 'publish_workspace_workflow_request' is set
|
|
1594
1457
|
if @api_client.config.client_side_validation && publish_workspace_workflow_request.nil?
|
|
1595
|
-
fail ArgumentError, "Missing the required parameter 'publish_workspace_workflow_request' when calling WorkflowsApi.
|
|
1458
|
+
fail ArgumentError, "Missing the required parameter 'publish_workspace_workflow_request' when calling WorkflowsApi.restore_workspace_workflow_version"
|
|
1596
1459
|
end
|
|
1597
1460
|
if @api_client.config.client_side_validation && !opts[:'x_managed_user_external_id'].nil? && opts[:'x_managed_user_external_id'].to_s.length > 255
|
|
1598
|
-
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.
|
|
1461
|
+
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.restore_workspace_workflow_version, the character length must be smaller than or equal to 255.'
|
|
1599
1462
|
end
|
|
1600
1463
|
|
|
1601
1464
|
if @api_client.config.client_side_validation && !opts[:'x_managed_user_external_id'].nil? && opts[:'x_managed_user_external_id'].to_s.length < 1
|
|
1602
|
-
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.
|
|
1465
|
+
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.restore_workspace_workflow_version, the character length must be great than or equal to 1.'
|
|
1603
1466
|
end
|
|
1604
1467
|
|
|
1605
1468
|
# resource path
|
|
@@ -1627,13 +1490,13 @@ module ApiSdkRb
|
|
|
1627
1490
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(publish_workspace_workflow_request)
|
|
1628
1491
|
|
|
1629
1492
|
# return_type
|
|
1630
|
-
return_type = opts[:debug_return_type] || '
|
|
1493
|
+
return_type = opts[:debug_return_type] || 'WorkflowDetailResponse'
|
|
1631
1494
|
|
|
1632
1495
|
# auth_names
|
|
1633
1496
|
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
1634
1497
|
|
|
1635
1498
|
new_options = opts.merge(
|
|
1636
|
-
:operation => :"WorkflowsApi.
|
|
1499
|
+
:operation => :"WorkflowsApi.restore_workspace_workflow_version",
|
|
1637
1500
|
:header_params => header_params,
|
|
1638
1501
|
:query_params => query_params,
|
|
1639
1502
|
:form_params => form_params,
|
|
@@ -1644,7 +1507,7 @@ module ApiSdkRb
|
|
|
1644
1507
|
|
|
1645
1508
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1646
1509
|
if @api_client.config.debugging
|
|
1647
|
-
@api_client.config.logger.debug "API called: WorkflowsApi#
|
|
1510
|
+
@api_client.config.logger.debug "API called: WorkflowsApi#restore_workspace_workflow_version\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1648
1511
|
end
|
|
1649
1512
|
return data, status_code, headers
|
|
1650
1513
|
end
|
|
@@ -1656,9 +1519,9 @@ module ApiSdkRb
|
|
|
1656
1519
|
# @param [Hash] opts the optional parameters
|
|
1657
1520
|
# @option opts [String] :x_managed_user_id The id Widgetic gave the managed user (`POST /managed-users`). Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
1658
1521
|
# @option opts [String] :x_managed_user_external_id Your own id for the managed user (its `externalId`), when you do not keep Widgetic's. Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
1659
|
-
# @return [
|
|
1660
|
-
def
|
|
1661
|
-
data, _status_code, _headers =
|
|
1522
|
+
# @return [WorkflowResponse]
|
|
1523
|
+
def resume_workspace_workflow(workspace_id, workflow_id, opts = {})
|
|
1524
|
+
data, _status_code, _headers = resume_workspace_workflow_with_http_info(workspace_id, workflow_id, opts)
|
|
1662
1525
|
data
|
|
1663
1526
|
end
|
|
1664
1527
|
|
|
@@ -1669,25 +1532,25 @@ module ApiSdkRb
|
|
|
1669
1532
|
# @param [Hash] opts the optional parameters
|
|
1670
1533
|
# @option opts [String] :x_managed_user_id The id Widgetic gave the managed user (`POST /managed-users`). Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
1671
1534
|
# @option opts [String] :x_managed_user_external_id Your own id for the managed user (its `externalId`), when you do not keep Widgetic's. Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
1672
|
-
# @return [Array<(
|
|
1673
|
-
def
|
|
1535
|
+
# @return [Array<(WorkflowResponse, Integer, Hash)>] WorkflowResponse data, response status code and response headers
|
|
1536
|
+
def resume_workspace_workflow_with_http_info(workspace_id, workflow_id, opts = {})
|
|
1674
1537
|
if @api_client.config.debugging
|
|
1675
|
-
@api_client.config.logger.debug 'Calling API: WorkflowsApi.
|
|
1538
|
+
@api_client.config.logger.debug 'Calling API: WorkflowsApi.resume_workspace_workflow ...'
|
|
1676
1539
|
end
|
|
1677
1540
|
# verify the required parameter 'workspace_id' is set
|
|
1678
1541
|
if @api_client.config.client_side_validation && workspace_id.nil?
|
|
1679
|
-
fail ArgumentError, "Missing the required parameter 'workspace_id' when calling WorkflowsApi.
|
|
1542
|
+
fail ArgumentError, "Missing the required parameter 'workspace_id' when calling WorkflowsApi.resume_workspace_workflow"
|
|
1680
1543
|
end
|
|
1681
1544
|
# verify the required parameter 'workflow_id' is set
|
|
1682
1545
|
if @api_client.config.client_side_validation && workflow_id.nil?
|
|
1683
|
-
fail ArgumentError, "Missing the required parameter 'workflow_id' when calling WorkflowsApi.
|
|
1546
|
+
fail ArgumentError, "Missing the required parameter 'workflow_id' when calling WorkflowsApi.resume_workspace_workflow"
|
|
1684
1547
|
end
|
|
1685
1548
|
if @api_client.config.client_side_validation && !opts[:'x_managed_user_external_id'].nil? && opts[:'x_managed_user_external_id'].to_s.length > 255
|
|
1686
|
-
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.
|
|
1549
|
+
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.resume_workspace_workflow, the character length must be smaller than or equal to 255.'
|
|
1687
1550
|
end
|
|
1688
1551
|
|
|
1689
1552
|
if @api_client.config.client_side_validation && !opts[:'x_managed_user_external_id'].nil? && opts[:'x_managed_user_external_id'].to_s.length < 1
|
|
1690
|
-
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.
|
|
1553
|
+
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.resume_workspace_workflow, the character length must be great than or equal to 1.'
|
|
1691
1554
|
end
|
|
1692
1555
|
|
|
1693
1556
|
# resource path
|
|
@@ -1710,13 +1573,13 @@ module ApiSdkRb
|
|
|
1710
1573
|
post_body = opts[:debug_body]
|
|
1711
1574
|
|
|
1712
1575
|
# return_type
|
|
1713
|
-
return_type = opts[:debug_return_type] || '
|
|
1576
|
+
return_type = opts[:debug_return_type] || 'WorkflowResponse'
|
|
1714
1577
|
|
|
1715
1578
|
# auth_names
|
|
1716
1579
|
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
1717
1580
|
|
|
1718
1581
|
new_options = opts.merge(
|
|
1719
|
-
:operation => :"WorkflowsApi.
|
|
1582
|
+
:operation => :"WorkflowsApi.resume_workspace_workflow",
|
|
1720
1583
|
:header_params => header_params,
|
|
1721
1584
|
:query_params => query_params,
|
|
1722
1585
|
:form_params => form_params,
|
|
@@ -1727,7 +1590,7 @@ module ApiSdkRb
|
|
|
1727
1590
|
|
|
1728
1591
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1729
1592
|
if @api_client.config.debugging
|
|
1730
|
-
@api_client.config.logger.debug "API called: WorkflowsApi#
|
|
1593
|
+
@api_client.config.logger.debug "API called: WorkflowsApi#resume_workspace_workflow\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1731
1594
|
end
|
|
1732
1595
|
return data, status_code, headers
|
|
1733
1596
|
end
|
|
@@ -1740,9 +1603,9 @@ module ApiSdkRb
|
|
|
1740
1603
|
# @param [Hash] opts the optional parameters
|
|
1741
1604
|
# @option opts [String] :x_managed_user_id The id Widgetic gave the managed user (`POST /managed-users`). Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
1742
1605
|
# @option opts [String] :x_managed_user_external_id Your own id for the managed user (its `externalId`), when you do not keep Widgetic's. Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
1743
|
-
# @return [
|
|
1744
|
-
def
|
|
1745
|
-
data, _status_code, _headers =
|
|
1606
|
+
# @return [WorkflowResponse]
|
|
1607
|
+
def save_workspace_workflow(workspace_id, workflow_id, save_workspace_workflow_request, opts = {})
|
|
1608
|
+
data, _status_code, _headers = save_workspace_workflow_with_http_info(workspace_id, workflow_id, save_workspace_workflow_request, opts)
|
|
1746
1609
|
data
|
|
1747
1610
|
end
|
|
1748
1611
|
|
|
@@ -1754,29 +1617,29 @@ module ApiSdkRb
|
|
|
1754
1617
|
# @param [Hash] opts the optional parameters
|
|
1755
1618
|
# @option opts [String] :x_managed_user_id The id Widgetic gave the managed user (`POST /managed-users`). Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
1756
1619
|
# @option opts [String] :x_managed_user_external_id Your own id for the managed user (its `externalId`), when you do not keep Widgetic's. Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
1757
|
-
# @return [Array<(
|
|
1758
|
-
def
|
|
1620
|
+
# @return [Array<(WorkflowResponse, Integer, Hash)>] WorkflowResponse data, response status code and response headers
|
|
1621
|
+
def save_workspace_workflow_with_http_info(workspace_id, workflow_id, save_workspace_workflow_request, opts = {})
|
|
1759
1622
|
if @api_client.config.debugging
|
|
1760
|
-
@api_client.config.logger.debug 'Calling API: WorkflowsApi.
|
|
1623
|
+
@api_client.config.logger.debug 'Calling API: WorkflowsApi.save_workspace_workflow ...'
|
|
1761
1624
|
end
|
|
1762
1625
|
# verify the required parameter 'workspace_id' is set
|
|
1763
1626
|
if @api_client.config.client_side_validation && workspace_id.nil?
|
|
1764
|
-
fail ArgumentError, "Missing the required parameter 'workspace_id' when calling WorkflowsApi.
|
|
1627
|
+
fail ArgumentError, "Missing the required parameter 'workspace_id' when calling WorkflowsApi.save_workspace_workflow"
|
|
1765
1628
|
end
|
|
1766
1629
|
# verify the required parameter 'workflow_id' is set
|
|
1767
1630
|
if @api_client.config.client_side_validation && workflow_id.nil?
|
|
1768
|
-
fail ArgumentError, "Missing the required parameter 'workflow_id' when calling WorkflowsApi.
|
|
1631
|
+
fail ArgumentError, "Missing the required parameter 'workflow_id' when calling WorkflowsApi.save_workspace_workflow"
|
|
1769
1632
|
end
|
|
1770
1633
|
# verify the required parameter 'save_workspace_workflow_request' is set
|
|
1771
1634
|
if @api_client.config.client_side_validation && save_workspace_workflow_request.nil?
|
|
1772
|
-
fail ArgumentError, "Missing the required parameter 'save_workspace_workflow_request' when calling WorkflowsApi.
|
|
1635
|
+
fail ArgumentError, "Missing the required parameter 'save_workspace_workflow_request' when calling WorkflowsApi.save_workspace_workflow"
|
|
1773
1636
|
end
|
|
1774
1637
|
if @api_client.config.client_side_validation && !opts[:'x_managed_user_external_id'].nil? && opts[:'x_managed_user_external_id'].to_s.length > 255
|
|
1775
|
-
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.
|
|
1638
|
+
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.save_workspace_workflow, the character length must be smaller than or equal to 255.'
|
|
1776
1639
|
end
|
|
1777
1640
|
|
|
1778
1641
|
if @api_client.config.client_side_validation && !opts[:'x_managed_user_external_id'].nil? && opts[:'x_managed_user_external_id'].to_s.length < 1
|
|
1779
|
-
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.
|
|
1642
|
+
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.save_workspace_workflow, the character length must be great than or equal to 1.'
|
|
1780
1643
|
end
|
|
1781
1644
|
|
|
1782
1645
|
# resource path
|
|
@@ -1804,98 +1667,13 @@ module ApiSdkRb
|
|
|
1804
1667
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(save_workspace_workflow_request)
|
|
1805
1668
|
|
|
1806
1669
|
# return_type
|
|
1807
|
-
return_type = opts[:debug_return_type] || '
|
|
1808
|
-
|
|
1809
|
-
# auth_names
|
|
1810
|
-
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
1811
|
-
|
|
1812
|
-
new_options = opts.merge(
|
|
1813
|
-
:operation => :"WorkflowsApi.save_workspace_workflow_0",
|
|
1814
|
-
:header_params => header_params,
|
|
1815
|
-
:query_params => query_params,
|
|
1816
|
-
:form_params => form_params,
|
|
1817
|
-
:body => post_body,
|
|
1818
|
-
:auth_names => auth_names,
|
|
1819
|
-
:return_type => return_type
|
|
1820
|
-
)
|
|
1821
|
-
|
|
1822
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
1823
|
-
if @api_client.config.debugging
|
|
1824
|
-
@api_client.config.logger.debug "API called: WorkflowsApi#save_workspace_workflow_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1825
|
-
end
|
|
1826
|
-
return data, status_code, headers
|
|
1827
|
-
end
|
|
1828
|
-
|
|
1829
|
-
# Offer a workflow as a place to start, or replace what a key offers
|
|
1830
|
-
# Offers one of the partner account's own published workflows to its managed users under `key`. If the partner already offers something under that key it is replaced, so sending the same request twice is safe. Saving replaces the whole starting point: a `title`, `description` or `position` you leave out goes back to its default. Keys are 1 to 64 characters: lowercase letters, digits, hyphens and underscores, the first a letter or a digit. A workflow is offered once. What people get is the workflow's live version as it is when they start, so publishing the workflow changes what new starts get; workflows people already started are never touched. The offer is refused, and `error.details.reason` says why, when the workflow: - is not the partner account's own (a workflow of a team or of a customer, or of somebody else), or does not exist: 404, the same for both; - is archived (409 `workflow_archived`), or was never published (409 `workflow_not_published`); - shows no composition (422 `workflow_empty`), or a block shows a composition made for a customer or a team (422 `composition_not_own`); - chains more than 10 widgets (422 `too_many_widgets`), or a widget that the partner does not offer as a preset (422 `widget_not_preset`; `error.details.widgets` lists them, each with its `id` and `name`, so they can be offered first with `setPartnerPreset`); - is already offered under another key (409 `workflow_already_offered`; `error.details.key` says which), or the partner already offers 50 (409 `too_many_presets`). The caller must be the person who administers the partner (an API key of that account works), or a Widgetic administrator, who offers the partner's workflow on its behalf.
|
|
1831
|
-
# @param partner_id [String] The partner whose starting point to set
|
|
1832
|
-
# @param key [String] The name your code and the picker use for the starting point
|
|
1833
|
-
# @param offer_workflow_preset_request [OfferWorkflowPresetRequest]
|
|
1834
|
-
# @param [Hash] opts the optional parameters
|
|
1835
|
-
# @return [SetPartnerWorkflowPreset200Response]
|
|
1836
|
-
def set_partner_workflow_preset_1(partner_id, key, offer_workflow_preset_request, opts = {})
|
|
1837
|
-
data, _status_code, _headers = set_partner_workflow_preset_1_with_http_info(partner_id, key, offer_workflow_preset_request, opts)
|
|
1838
|
-
data
|
|
1839
|
-
end
|
|
1840
|
-
|
|
1841
|
-
# Offer a workflow as a place to start, or replace what a key offers
|
|
1842
|
-
# Offers one of the partner account's own published workflows to its managed users under `key`. If the partner already offers something under that key it is replaced, so sending the same request twice is safe. Saving replaces the whole starting point: a `title`, `description` or `position` you leave out goes back to its default. Keys are 1 to 64 characters: lowercase letters, digits, hyphens and underscores, the first a letter or a digit. A workflow is offered once. What people get is the workflow's live version as it is when they start, so publishing the workflow changes what new starts get; workflows people already started are never touched. The offer is refused, and `error.details.reason` says why, when the workflow: - is not the partner account's own (a workflow of a team or of a customer, or of somebody else), or does not exist: 404, the same for both; - is archived (409 `workflow_archived`), or was never published (409 `workflow_not_published`); - shows no composition (422 `workflow_empty`), or a block shows a composition made for a customer or a team (422 `composition_not_own`); - chains more than 10 widgets (422 `too_many_widgets`), or a widget that the partner does not offer as a preset (422 `widget_not_preset`; `error.details.widgets` lists them, each with its `id` and `name`, so they can be offered first with `setPartnerPreset`); - is already offered under another key (409 `workflow_already_offered`; `error.details.key` says which), or the partner already offers 50 (409 `too_many_presets`). The caller must be the person who administers the partner (an API key of that account works), or a Widgetic administrator, who offers the partner's workflow on its behalf.
|
|
1843
|
-
# @param partner_id [String] The partner whose starting point to set
|
|
1844
|
-
# @param key [String] The name your code and the picker use for the starting point
|
|
1845
|
-
# @param offer_workflow_preset_request [OfferWorkflowPresetRequest]
|
|
1846
|
-
# @param [Hash] opts the optional parameters
|
|
1847
|
-
# @return [Array<(SetPartnerWorkflowPreset200Response, Integer, Hash)>] SetPartnerWorkflowPreset200Response data, response status code and response headers
|
|
1848
|
-
def set_partner_workflow_preset_1_with_http_info(partner_id, key, offer_workflow_preset_request, opts = {})
|
|
1849
|
-
if @api_client.config.debugging
|
|
1850
|
-
@api_client.config.logger.debug 'Calling API: WorkflowsApi.set_partner_workflow_preset_1 ...'
|
|
1851
|
-
end
|
|
1852
|
-
# verify the required parameter 'partner_id' is set
|
|
1853
|
-
if @api_client.config.client_side_validation && partner_id.nil?
|
|
1854
|
-
fail ArgumentError, "Missing the required parameter 'partner_id' when calling WorkflowsApi.set_partner_workflow_preset_1"
|
|
1855
|
-
end
|
|
1856
|
-
# verify the required parameter 'key' is set
|
|
1857
|
-
if @api_client.config.client_side_validation && key.nil?
|
|
1858
|
-
fail ArgumentError, "Missing the required parameter 'key' when calling WorkflowsApi.set_partner_workflow_preset_1"
|
|
1859
|
-
end
|
|
1860
|
-
pattern = Regexp.new(/^[a-z0-9][a-z0-9_-]{0,63}$/)
|
|
1861
|
-
if @api_client.config.client_side_validation && key !~ pattern
|
|
1862
|
-
fail ArgumentError, "invalid value for 'key' when calling WorkflowsApi.set_partner_workflow_preset_1, must conform to the pattern #{pattern}."
|
|
1863
|
-
end
|
|
1864
|
-
|
|
1865
|
-
# verify the required parameter 'offer_workflow_preset_request' is set
|
|
1866
|
-
if @api_client.config.client_side_validation && offer_workflow_preset_request.nil?
|
|
1867
|
-
fail ArgumentError, "Missing the required parameter 'offer_workflow_preset_request' when calling WorkflowsApi.set_partner_workflow_preset_1"
|
|
1868
|
-
end
|
|
1869
|
-
# resource path
|
|
1870
|
-
local_var_path = '/partners/{partnerId}/workflow-presets/{key}'.sub('{' + 'partnerId' + '}', CGI.escape(partner_id.to_s)).sub('{' + 'key' + '}', CGI.escape(key.to_s))
|
|
1871
|
-
|
|
1872
|
-
# query parameters
|
|
1873
|
-
query_params = opts[:query_params] || {}
|
|
1874
|
-
|
|
1875
|
-
# header parameters
|
|
1876
|
-
header_params = opts[:header_params] || {}
|
|
1877
|
-
# HTTP header 'Accept' (if needed)
|
|
1878
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1879
|
-
# HTTP header 'Content-Type'
|
|
1880
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1881
|
-
if !content_type.nil?
|
|
1882
|
-
header_params['Content-Type'] = content_type
|
|
1883
|
-
end
|
|
1884
|
-
|
|
1885
|
-
# form parameters
|
|
1886
|
-
form_params = opts[:form_params] || {}
|
|
1887
|
-
|
|
1888
|
-
# http body (model)
|
|
1889
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(offer_workflow_preset_request)
|
|
1890
|
-
|
|
1891
|
-
# return_type
|
|
1892
|
-
return_type = opts[:debug_return_type] || 'SetPartnerWorkflowPreset200Response'
|
|
1670
|
+
return_type = opts[:debug_return_type] || 'WorkflowResponse'
|
|
1893
1671
|
|
|
1894
1672
|
# auth_names
|
|
1895
1673
|
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
1896
1674
|
|
|
1897
1675
|
new_options = opts.merge(
|
|
1898
|
-
:operation => :"WorkflowsApi.
|
|
1676
|
+
:operation => :"WorkflowsApi.save_workspace_workflow",
|
|
1899
1677
|
:header_params => header_params,
|
|
1900
1678
|
:query_params => query_params,
|
|
1901
1679
|
:form_params => form_params,
|
|
@@ -1906,7 +1684,7 @@ module ApiSdkRb
|
|
|
1906
1684
|
|
|
1907
1685
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
1908
1686
|
if @api_client.config.debugging
|
|
1909
|
-
@api_client.config.logger.debug "API called: WorkflowsApi#
|
|
1687
|
+
@api_client.config.logger.debug "API called: WorkflowsApi#save_workspace_workflow\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1910
1688
|
end
|
|
1911
1689
|
return data, status_code, headers
|
|
1912
1690
|
end
|
|
@@ -1918,9 +1696,9 @@ module ApiSdkRb
|
|
|
1918
1696
|
# @param [Hash] opts the optional parameters
|
|
1919
1697
|
# @option opts [String] :x_managed_user_id The id Widgetic gave the managed user (`POST /managed-users`). Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
1920
1698
|
# @option opts [String] :x_managed_user_external_id Your own id for the managed user (its `externalId`), when you do not keep Widgetic's. Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
1921
|
-
# @return [
|
|
1922
|
-
def
|
|
1923
|
-
data, _status_code, _headers =
|
|
1699
|
+
# @return [WorkflowResponse]
|
|
1700
|
+
def unarchive_workspace_workflow(workspace_id, workflow_id, opts = {})
|
|
1701
|
+
data, _status_code, _headers = unarchive_workspace_workflow_with_http_info(workspace_id, workflow_id, opts)
|
|
1924
1702
|
data
|
|
1925
1703
|
end
|
|
1926
1704
|
|
|
@@ -1931,25 +1709,25 @@ module ApiSdkRb
|
|
|
1931
1709
|
# @param [Hash] opts the optional parameters
|
|
1932
1710
|
# @option opts [String] :x_managed_user_id The id Widgetic gave the managed user (`POST /managed-users`). Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
1933
1711
|
# @option opts [String] :x_managed_user_external_id Your own id for the managed user (its `externalId`), when you do not keep Widgetic's. Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions and workflows: a list shows only theirs, a composition or a workflow the call makes is filed under them, and one of another user, or one that does not exist, answers `404` (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers `404` with `MANAGED_USER_NOT_FOUND`. An empty, repeated or malformed header is `400` with `MANAGED_USER_SCOPE_INVALID`; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with `403` and `MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE`: send it without the header. Only your API key can send it. The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An `Idempotency-Key` is kept apart for each managed user.
|
|
1934
|
-
# @return [Array<(
|
|
1935
|
-
def
|
|
1712
|
+
# @return [Array<(WorkflowResponse, Integer, Hash)>] WorkflowResponse data, response status code and response headers
|
|
1713
|
+
def unarchive_workspace_workflow_with_http_info(workspace_id, workflow_id, opts = {})
|
|
1936
1714
|
if @api_client.config.debugging
|
|
1937
|
-
@api_client.config.logger.debug 'Calling API: WorkflowsApi.
|
|
1715
|
+
@api_client.config.logger.debug 'Calling API: WorkflowsApi.unarchive_workspace_workflow ...'
|
|
1938
1716
|
end
|
|
1939
1717
|
# verify the required parameter 'workspace_id' is set
|
|
1940
1718
|
if @api_client.config.client_side_validation && workspace_id.nil?
|
|
1941
|
-
fail ArgumentError, "Missing the required parameter 'workspace_id' when calling WorkflowsApi.
|
|
1719
|
+
fail ArgumentError, "Missing the required parameter 'workspace_id' when calling WorkflowsApi.unarchive_workspace_workflow"
|
|
1942
1720
|
end
|
|
1943
1721
|
# verify the required parameter 'workflow_id' is set
|
|
1944
1722
|
if @api_client.config.client_side_validation && workflow_id.nil?
|
|
1945
|
-
fail ArgumentError, "Missing the required parameter 'workflow_id' when calling WorkflowsApi.
|
|
1723
|
+
fail ArgumentError, "Missing the required parameter 'workflow_id' when calling WorkflowsApi.unarchive_workspace_workflow"
|
|
1946
1724
|
end
|
|
1947
1725
|
if @api_client.config.client_side_validation && !opts[:'x_managed_user_external_id'].nil? && opts[:'x_managed_user_external_id'].to_s.length > 255
|
|
1948
|
-
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.
|
|
1726
|
+
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.unarchive_workspace_workflow, the character length must be smaller than or equal to 255.'
|
|
1949
1727
|
end
|
|
1950
1728
|
|
|
1951
1729
|
if @api_client.config.client_side_validation && !opts[:'x_managed_user_external_id'].nil? && opts[:'x_managed_user_external_id'].to_s.length < 1
|
|
1952
|
-
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.
|
|
1730
|
+
fail ArgumentError, 'invalid value for "opts[:"x_managed_user_external_id"]" when calling WorkflowsApi.unarchive_workspace_workflow, the character length must be great than or equal to 1.'
|
|
1953
1731
|
end
|
|
1954
1732
|
|
|
1955
1733
|
# resource path
|
|
@@ -1972,13 +1750,13 @@ module ApiSdkRb
|
|
|
1972
1750
|
post_body = opts[:debug_body]
|
|
1973
1751
|
|
|
1974
1752
|
# return_type
|
|
1975
|
-
return_type = opts[:debug_return_type] || '
|
|
1753
|
+
return_type = opts[:debug_return_type] || 'WorkflowResponse'
|
|
1976
1754
|
|
|
1977
1755
|
# auth_names
|
|
1978
1756
|
auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
|
|
1979
1757
|
|
|
1980
1758
|
new_options = opts.merge(
|
|
1981
|
-
:operation => :"WorkflowsApi.
|
|
1759
|
+
:operation => :"WorkflowsApi.unarchive_workspace_workflow",
|
|
1982
1760
|
:header_params => header_params,
|
|
1983
1761
|
:query_params => query_params,
|
|
1984
1762
|
:form_params => form_params,
|
|
@@ -1989,7 +1767,7 @@ module ApiSdkRb
|
|
|
1989
1767
|
|
|
1990
1768
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1991
1769
|
if @api_client.config.debugging
|
|
1992
|
-
@api_client.config.logger.debug "API called: WorkflowsApi#
|
|
1770
|
+
@api_client.config.logger.debug "API called: WorkflowsApi#unarchive_workspace_workflow\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1993
1771
|
end
|
|
1994
1772
|
return data, status_code, headers
|
|
1995
1773
|
end
|