seatschart 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE +21 -0
- data/README.md +552 -0
- data/lib/seatschart/api/api_keys_api.rb +364 -0
- data/lib/seatschart/api/assets_api.rb +95 -0
- data/lib/seatschart/api/audit_api.rb +88 -0
- data/lib/seatschart/api/auth_api.rb +1187 -0
- data/lib/seatschart/api/billing_api.rb +355 -0
- data/lib/seatschart/api/charts_api.rb +4195 -0
- data/lib/seatschart/api/default_api.rb +763 -0
- data/lib/seatschart/api/embed_api.rb +407 -0
- data/lib/seatschart/api/embed_origins_api.rb +281 -0
- data/lib/seatschart/api/event_log_api.rb +148 -0
- data/lib/seatschart/api/events_api.rb +6608 -0
- data/lib/seatschart/api/health_api.rb +77 -0
- data/lib/seatschart/api/map_designer_api.rb +135 -0
- data/lib/seatschart/api/object_status_api.rb +805 -0
- data/lib/seatschart/api/orders_api.rb +166 -0
- data/lib/seatschart/api/public_api.rb +455 -0
- data/lib/seatschart/api/quotes_api.rb +103 -0
- data/lib/seatschart/api/seasons_api.rb +5543 -0
- data/lib/seatschart/api/seats_api.rb +1103 -0
- data/lib/seatschart/api/sse_api.rb +83 -0
- data/lib/seatschart/api/team_api.rb +428 -0
- data/lib/seatschart/api/usage_api.rb +540 -0
- data/lib/seatschart/api/webhooks_api.rb +771 -0
- data/lib/seatschart/api/workspace_api.rb +1244 -0
- data/lib/seatschart/api_client.rb +394 -0
- data/lib/seatschart/api_error.rb +58 -0
- data/lib/seatschart/configuration.rb +316 -0
- data/lib/seatschart/models/delete_api_workspaces_by_workspace_id200_response.rb +283 -0
- data/lib/seatschart/models/get_api_charts_by_chart_id_versions200_response.rb +247 -0
- data/lib/seatschart/models/get_api_charts_by_chart_id_versions200_response_items_inner.rb +473 -0
- data/lib/seatschart/models/get_api_charts_by_chart_id_versions200_response_items_inner_published_by.rb +280 -0
- data/lib/seatschart/models/get_api_events_by_event_id_map_versions200_response.rb +247 -0
- data/lib/seatschart/models/get_api_events_by_event_id_map_versions200_response_items_inner.rb +444 -0
- data/lib/seatschart/models/get_api_events_by_event_id_seat_views200_response.rb +267 -0
- data/lib/seatschart/models/get_api_events_by_event_id_seat_views200_response_views_value.rb +273 -0
- data/lib/seatschart/models/get_api_events_by_event_id_seat_views404_response.rb +237 -0
- data/lib/seatschart/models/get_api_monitoring_requests200_response.rb +388 -0
- data/lib/seatschart/models/get_api_monitoring_requests200_response_lanes.rb +237 -0
- data/lib/seatschart/models/get_api_monitoring_requests200_response_lanes_sales.rb +256 -0
- data/lib/seatschart/models/get_api_monitoring_requests200_response_points_inner.rb +286 -0
- data/lib/seatschart/models/get_api_workspace_integration200_response.rb +287 -0
- data/lib/seatschart/models/get_api_workspace_settings200_response.rb +329 -0
- data/lib/seatschart/models/get_api_workspace_settings200_response_bounds.rb +237 -0
- data/lib/seatschart/models/get_api_workspace_settings200_response_bounds_hold_period_minutes.rb +237 -0
- data/lib/seatschart/models/get_api_workspace_settings200_response_effective.rb +269 -0
- data/lib/seatschart/models/get_api_workspace_settings200_response_overrides.rb +241 -0
- data/lib/seatschart/models/get_api_workspace_settings200_response_sources.rb +339 -0
- data/lib/seatschart/models/get_api_workspaces200_response.rb +223 -0
- data/lib/seatschart/models/get_api_workspaces200_response_items_inner.rb +423 -0
- data/lib/seatschart/models/patch_api_charts_by_chart_id_categories_by_category_id_request.rb +304 -0
- data/lib/seatschart/models/patch_api_charts_by_chart_id_request.rb +288 -0
- data/lib/seatschart/models/patch_api_events_by_event_id_inventory_channels_by_channel_key_id_request.rb +272 -0
- data/lib/seatschart/models/patch_api_events_by_event_id_request.rb +448 -0
- data/lib/seatschart/models/patch_api_events_by_event_id_request_categories_inner.rb +343 -0
- data/lib/seatschart/models/patch_api_events_by_event_id_request_table_booking_config.rb +266 -0
- data/lib/seatschart/models/patch_api_keys_by_id_request.rb +292 -0
- data/lib/seatschart/models/patch_api_seasons_by_season_id_events_by_event_id_request.rb +221 -0
- data/lib/seatschart/models/patch_api_seasons_by_season_id_request.rb +276 -0
- data/lib/seatschart/models/patch_api_team_members_by_user_id_request.rb +255 -0
- data/lib/seatschart/models/patch_api_webhooks_by_id_request.rb +291 -0
- data/lib/seatschart/models/patch_api_workspace_chart_validation_request.rb +224 -0
- data/lib/seatschart/models/patch_api_workspace_chart_validation_request_severities.rb +543 -0
- data/lib/seatschart/models/patch_api_workspace_integration_request.rb +257 -0
- data/lib/seatschart/models/patch_api_workspace_request.rb +249 -0
- data/lib/seatschart/models/patch_api_workspace_settings_request.rb +307 -0
- data/lib/seatschart/models/post_api_auth2fa_disable_request.rb +281 -0
- data/lib/seatschart/models/post_api_auth2fa_enable_request.rb +250 -0
- data/lib/seatschart/models/post_api_auth2fa_enroll_confirm_request.rb +295 -0
- data/lib/seatschart/models/post_api_auth2fa_enroll_start_request.rb +250 -0
- data/lib/seatschart/models/post_api_auth2fa_verify_request.rb +326 -0
- data/lib/seatschart/models/post_api_auth_accept_invite_request.rb +293 -0
- data/lib/seatschart/models/post_api_auth_login_request.rb +293 -0
- data/lib/seatschart/models/post_api_auth_logout_request.rb +242 -0
- data/lib/seatschart/models/post_api_auth_refresh_request.rb +292 -0
- data/lib/seatschart/models/post_api_auth_signup_request.rb +321 -0
- data/lib/seatschart/models/post_api_auth_switch_workspace_request.rb +249 -0
- data/lib/seatschart/models/post_api_billing_checkout_session_request.rb +249 -0
- data/lib/seatschart/models/post_api_billing_confirm_checkout_request.rb +249 -0
- data/lib/seatschart/models/post_api_charts_by_chart_id_actions_archive200_response.rb +221 -0
- data/lib/seatschart/models/post_api_charts_by_chart_id_actions_archive200_response_chart.rb +249 -0
- data/lib/seatschart/models/post_api_charts_by_chart_id_actions_copy_to_workspace_request.rb +287 -0
- data/lib/seatschart/models/post_api_charts_by_chart_id_actions_validate_request.rb +348 -0
- data/lib/seatschart/models/post_api_charts_by_chart_id_actions_validate_request_seats_inner.rb +555 -0
- data/lib/seatschart/models/post_api_charts_by_chart_id_actions_validate_request_seats_inner_accessibility.rb +356 -0
- data/lib/seatschart/models/post_api_charts_by_chart_id_categories_request.rb +361 -0
- data/lib/seatschart/models/post_api_charts_by_chart_id_categories_request_ticket_types_inner.rb +448 -0
- data/lib/seatschart/models/post_api_charts_by_chart_id_duplicate_request.rb +233 -0
- data/lib/seatschart/models/post_api_charts_by_chart_id_map_publish422_response.rb +289 -0
- data/lib/seatschart/models/post_api_charts_by_chart_id_map_publish422_response_issues_inner.rb +402 -0
- data/lib/seatschart/models/post_api_charts_by_chart_id_map_publish_request.rb +244 -0
- data/lib/seatschart/models/post_api_charts_by_chart_id_preview_link_request.rb +243 -0
- data/lib/seatschart/models/post_api_charts_by_chart_id_versions_by_version_actions_copy_request.rb +242 -0
- data/lib/seatschart/models/post_api_charts_request.rb +372 -0
- data/lib/seatschart/models/post_api_charts_request_categories_inner.rb +346 -0
- data/lib/seatschart/models/post_api_embed_origins_request.rb +249 -0
- data/lib/seatschart/models/post_api_embed_tokens_request.rb +394 -0
- data/lib/seatschart/models/post_api_events_actions_change_object_status_request.rb +251 -0
- data/lib/seatschart/models/post_api_events_actions_change_object_status_request_status_changes_inner.rb +737 -0
- data/lib/seatschart/models/post_api_events_actions_change_object_status_request_status_changes_inner_objects_inner.rb +104 -0
- data/lib/seatschart/models/post_api_events_actions_change_object_status_request_status_changes_inner_objects_inner_any_of.rb +335 -0
- data/lib/seatschart/models/post_api_events_bulk_request.rb +332 -0
- data/lib/seatschart/models/post_api_events_bulk_request_events_inner.rb +398 -0
- data/lib/seatschart/models/post_api_events_by_event_id_actions_change_object_status_request.rb +824 -0
- data/lib/seatschart/models/post_api_events_by_event_id_actions_override_season_status_request.rb +272 -0
- data/lib/seatschart/models/post_api_events_by_event_id_actions_update_extra_data_request.rb +260 -0
- data/lib/seatschart/models/post_api_events_by_event_id_actions_update_extra_data_request_objects_inner.rb +263 -0
- data/lib/seatschart/models/post_api_events_by_event_id_actions_use_season_status_request.rb +252 -0
- data/lib/seatschart/models/post_api_events_by_event_id_duplicate_request.rb +261 -0
- data/lib/seatschart/models/post_api_events_by_event_id_inventory_channels_assign_request.rb +321 -0
- data/lib/seatschart/models/post_api_events_by_event_id_inventory_channels_request.rb +323 -0
- data/lib/seatschart/models/post_api_events_by_event_id_inventory_for_sale_apply_request.rb +333 -0
- data/lib/seatschart/models/post_api_events_by_event_id_objects_actions_retrieve_request.rb +252 -0
- data/lib/seatschart/models/post_api_events_request.rb +502 -0
- data/lib/seatschart/models/post_api_events_request_category_overrides_value.rb +276 -0
- data/lib/seatschart/models/post_api_events_request_channels_inner.rb +360 -0
- data/lib/seatschart/models/post_api_events_request_for_sale_config.rb +295 -0
- data/lib/seatschart/models/post_api_events_request_table_booking_config.rb +267 -0
- data/lib/seatschart/models/post_api_extract_seats_request.rb +279 -0
- data/lib/seatschart/models/post_api_ga_confirm409_response.rb +271 -0
- data/lib/seatschart/models/post_api_ga_confirm_request.rb +687 -0
- data/lib/seatschart/models/post_api_ga_release_request.rb +385 -0
- data/lib/seatschart/models/post_api_ga_reserve_request.rb +527 -0
- data/lib/seatschart/models/post_api_hold_tokens_by_token_request.rb +249 -0
- data/lib/seatschart/models/post_api_hold_tokens_request.rb +391 -0
- data/lib/seatschart/models/post_api_keys_request.rb +299 -0
- data/lib/seatschart/models/post_api_orders_by_order_id_cancel_request.rb +249 -0
- data/lib/seatschart/models/post_api_quotes_request.rb +351 -0
- data/lib/seatschart/models/post_api_seasons_by_season_id_actions_add_events_request.rb +261 -0
- data/lib/seatschart/models/post_api_seasons_by_season_id_actions_create_events_request.rb +322 -0
- data/lib/seatschart/models/post_api_seasons_by_season_id_actions_create_events_request_events_inner.rb +289 -0
- data/lib/seatschart/models/post_api_seasons_by_season_id_actions_remove_events_request.rb +251 -0
- data/lib/seatschart/models/post_api_seasons_by_season_id_events_request.rb +267 -0
- data/lib/seatschart/models/post_api_seasons_by_season_id_inventory_sync_request.rb +235 -0
- data/lib/seatschart/models/post_api_seasons_by_season_id_partial_seasons_request.rb +279 -0
- data/lib/seatschart/models/post_api_seasons_request.rb +395 -0
- data/lib/seatschart/models/post_api_seats_best_available_request.rb +809 -0
- data/lib/seatschart/models/post_api_seats_confirm409_response.rb +271 -0
- data/lib/seatschart/models/post_api_seats_confirm_request.rb +711 -0
- data/lib/seatschart/models/post_api_seats_holds_renew_request.rb +249 -0
- data/lib/seatschart/models/post_api_seats_release_request.rb +387 -0
- data/lib/seatschart/models/post_api_seats_reserve_request.rb +561 -0
- data/lib/seatschart/models/post_api_team_invitations_request.rb +299 -0
- data/lib/seatschart/models/post_api_ticket_buyers_request.rb +252 -0
- data/lib/seatschart/models/post_api_viewer_tokens_request.rb +292 -0
- data/lib/seatschart/models/post_api_webhooks_request.rb +298 -0
- data/lib/seatschart/models/post_api_workspaces_request.rb +269 -0
- data/lib/seatschart/models/put_api_charts_by_chart_id_tags_request.rb +243 -0
- data/lib/seatschart/models/put_api_charts_by_chart_id_versions_by_version_thumbnail_request.rb +261 -0
- data/lib/seatschart/models/put_api_events_by_event_id_inventory_channels_definitions_request.rb +242 -0
- data/lib/seatschart/models/put_api_events_by_event_id_inventory_channels_definitions_request_channels_inner.rb +405 -0
- data/lib/seatschart/models/put_api_events_by_event_id_inventory_channels_request.rb +242 -0
- data/lib/seatschart/models/put_api_events_by_event_id_inventory_channels_request_assignments_inner.rb +320 -0
- data/lib/seatschart/models/put_api_events_by_event_id_inventory_for_sale_request.rb +333 -0
- data/lib/seatschart/models/put_api_events_by_event_id_pricing_request.rb +297 -0
- data/lib/seatschart/models/put_api_events_by_event_id_pricing_request_categories_inner.rb +295 -0
- data/lib/seatschart/models/put_api_events_by_event_id_pricing_request_categories_inner_ticket_types_inner.rb +425 -0
- data/lib/seatschart/models/put_api_events_by_event_id_sales_rules_request.rb +320 -0
- data/lib/seatschart/models/put_api_events_by_event_id_sales_rules_request_buyer_limit.rb +259 -0
- data/lib/seatschart/models/put_api_events_by_event_id_sales_rules_request_lot_plans_inner.rb +374 -0
- data/lib/seatschart/models/put_api_events_by_event_id_sales_rules_request_lot_plans_inner_lots_inner.rb +364 -0
- data/lib/seatschart/models/put_api_events_by_event_id_sales_rules_request_quotas_inner.rb +418 -0
- data/lib/seatschart/retry.rb +118 -0
- data/lib/seatschart/version.rb +15 -0
- data/lib/seatschart.rb +198 -0
- metadata +254 -0
|
@@ -0,0 +1,763 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#SeatsChart API
|
|
3
|
+
|
|
4
|
+
#Seat inventory and locking API for B2B2C integrations. Authenticate using `x-api-key` (partners) or `Authorization: Bearer` with an HS256 JWT.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.11.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module SeatsChart
|
|
16
|
+
class DefaultApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# @param chart_id [String]
|
|
23
|
+
# @param category_id [String]
|
|
24
|
+
# @param [Hash] opts the optional parameters
|
|
25
|
+
# @option opts [String] :reassign_to Category id that receives the seats/GA areas of the deleted category.
|
|
26
|
+
# @option opts [String] :idempotency_key Required on transactional routes. Reuse the same key for every retry of one logical operation; the API replays the stored outcome.
|
|
27
|
+
# @return [nil]
|
|
28
|
+
def delete_api_charts_by_chart_id_categories_by_category_id(chart_id, category_id, opts = {})
|
|
29
|
+
delete_api_charts_by_chart_id_categories_by_category_id_with_http_info(chart_id, category_id, opts)
|
|
30
|
+
nil
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# @param chart_id [String]
|
|
34
|
+
# @param category_id [String]
|
|
35
|
+
# @param [Hash] opts the optional parameters
|
|
36
|
+
# @option opts [String] :reassign_to Category id that receives the seats/GA areas of the deleted category.
|
|
37
|
+
# @option opts [String] :idempotency_key Required on transactional routes. Reuse the same key for every retry of one logical operation; the API replays the stored outcome.
|
|
38
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
39
|
+
def delete_api_charts_by_chart_id_categories_by_category_id_with_http_info(chart_id, category_id, opts = {})
|
|
40
|
+
if @api_client.config.debugging
|
|
41
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.delete_api_charts_by_chart_id_categories_by_category_id ...'
|
|
42
|
+
end
|
|
43
|
+
# verify the required parameter 'chart_id' is set
|
|
44
|
+
if @api_client.config.client_side_validation && chart_id.nil?
|
|
45
|
+
fail ArgumentError, "Missing the required parameter 'chart_id' when calling DefaultApi.delete_api_charts_by_chart_id_categories_by_category_id"
|
|
46
|
+
end
|
|
47
|
+
pattern = Regexp.new(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/)
|
|
48
|
+
if @api_client.config.client_side_validation && chart_id !~ pattern
|
|
49
|
+
fail ArgumentError, "invalid value for 'chart_id' when calling DefaultApi.delete_api_charts_by_chart_id_categories_by_category_id, must conform to the pattern #{pattern}."
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# verify the required parameter 'category_id' is set
|
|
53
|
+
if @api_client.config.client_side_validation && category_id.nil?
|
|
54
|
+
fail ArgumentError, "Missing the required parameter 'category_id' when calling DefaultApi.delete_api_charts_by_chart_id_categories_by_category_id"
|
|
55
|
+
end
|
|
56
|
+
if @api_client.config.client_side_validation && category_id.to_s.length > 64
|
|
57
|
+
fail ArgumentError, 'invalid value for "category_id" when calling DefaultApi.delete_api_charts_by_chart_id_categories_by_category_id, the character length must be smaller than or equal to 64.'
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
if @api_client.config.client_side_validation && category_id.to_s.length < 1
|
|
61
|
+
fail ArgumentError, 'invalid value for "category_id" when calling DefaultApi.delete_api_charts_by_chart_id_categories_by_category_id, the character length must be great than or equal to 1.'
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
if @api_client.config.client_side_validation && !opts[:'reassign_to'].nil? && opts[:'reassign_to'].to_s.length > 64
|
|
65
|
+
fail ArgumentError, 'invalid value for "opts[:"reassign_to"]" when calling DefaultApi.delete_api_charts_by_chart_id_categories_by_category_id, the character length must be smaller than or equal to 64.'
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
if @api_client.config.client_side_validation && !opts[:'reassign_to'].nil? && opts[:'reassign_to'].to_s.length < 1
|
|
69
|
+
fail ArgumentError, 'invalid value for "opts[:"reassign_to"]" when calling DefaultApi.delete_api_charts_by_chart_id_categories_by_category_id, the character length must be great than or equal to 1.'
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255
|
|
73
|
+
fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling DefaultApi.delete_api_charts_by_chart_id_categories_by_category_id, the character length must be smaller than or equal to 255.'
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1
|
|
77
|
+
fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling DefaultApi.delete_api_charts_by_chart_id_categories_by_category_id, the character length must be great than or equal to 1.'
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# resource path
|
|
81
|
+
local_var_path = '/api/charts/{chartId}/categories/{categoryId}'.sub('{' + 'chartId' + '}', CGI.escape(chart_id.to_s)).sub('{' + 'categoryId' + '}', CGI.escape(category_id.to_s))
|
|
82
|
+
|
|
83
|
+
# query parameters
|
|
84
|
+
query_params = opts[:query_params] || {}
|
|
85
|
+
query_params[:'reassignTo'] = opts[:'reassign_to'] if !opts[:'reassign_to'].nil?
|
|
86
|
+
|
|
87
|
+
# header parameters
|
|
88
|
+
header_params = opts[:header_params] || {}
|
|
89
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
90
|
+
|
|
91
|
+
# form parameters
|
|
92
|
+
form_params = opts[:form_params] || {}
|
|
93
|
+
|
|
94
|
+
# http body (model)
|
|
95
|
+
post_body = opts[:debug_body]
|
|
96
|
+
|
|
97
|
+
# return_type
|
|
98
|
+
return_type = opts[:debug_return_type]
|
|
99
|
+
|
|
100
|
+
# auth_names
|
|
101
|
+
auth_names = opts[:debug_auth_names] || []
|
|
102
|
+
|
|
103
|
+
new_options = opts.merge(
|
|
104
|
+
:operation => :"DefaultApi.delete_api_charts_by_chart_id_categories_by_category_id",
|
|
105
|
+
:header_params => header_params,
|
|
106
|
+
:query_params => query_params,
|
|
107
|
+
:form_params => form_params,
|
|
108
|
+
:body => post_body,
|
|
109
|
+
:auth_names => auth_names,
|
|
110
|
+
:return_type => return_type
|
|
111
|
+
)
|
|
112
|
+
|
|
113
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
114
|
+
if @api_client.config.debugging
|
|
115
|
+
@api_client.config.logger.debug "API called: DefaultApi#delete_api_charts_by_chart_id_categories_by_category_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
116
|
+
end
|
|
117
|
+
return data, status_code, headers
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
# @param event_id [String]
|
|
121
|
+
# @param hash [String]
|
|
122
|
+
# @param [Hash] opts the optional parameters
|
|
123
|
+
# @return [nil]
|
|
124
|
+
def get_api_events_by_event_id_geometry_by_hash(event_id, hash, opts = {})
|
|
125
|
+
get_api_events_by_event_id_geometry_by_hash_with_http_info(event_id, hash, opts)
|
|
126
|
+
nil
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
# @param event_id [String]
|
|
130
|
+
# @param hash [String]
|
|
131
|
+
# @param [Hash] opts the optional parameters
|
|
132
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
133
|
+
def get_api_events_by_event_id_geometry_by_hash_with_http_info(event_id, hash, opts = {})
|
|
134
|
+
if @api_client.config.debugging
|
|
135
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.get_api_events_by_event_id_geometry_by_hash ...'
|
|
136
|
+
end
|
|
137
|
+
# verify the required parameter 'event_id' is set
|
|
138
|
+
if @api_client.config.client_side_validation && event_id.nil?
|
|
139
|
+
fail ArgumentError, "Missing the required parameter 'event_id' when calling DefaultApi.get_api_events_by_event_id_geometry_by_hash"
|
|
140
|
+
end
|
|
141
|
+
# verify the required parameter 'hash' is set
|
|
142
|
+
if @api_client.config.client_side_validation && hash.nil?
|
|
143
|
+
fail ArgumentError, "Missing the required parameter 'hash' when calling DefaultApi.get_api_events_by_event_id_geometry_by_hash"
|
|
144
|
+
end
|
|
145
|
+
pattern = Regexp.new(/^[a-f0-9]{64}$/)
|
|
146
|
+
if @api_client.config.client_side_validation && hash !~ pattern
|
|
147
|
+
fail ArgumentError, "invalid value for 'hash' when calling DefaultApi.get_api_events_by_event_id_geometry_by_hash, must conform to the pattern #{pattern}."
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
# resource path
|
|
151
|
+
local_var_path = '/api/events/{eventId}/geometry/{hash}'.sub('{' + 'eventId' + '}', CGI.escape(event_id.to_s)).sub('{' + 'hash' + '}', CGI.escape(hash.to_s))
|
|
152
|
+
|
|
153
|
+
# query parameters
|
|
154
|
+
query_params = opts[:query_params] || {}
|
|
155
|
+
|
|
156
|
+
# header parameters
|
|
157
|
+
header_params = opts[:header_params] || {}
|
|
158
|
+
|
|
159
|
+
# form parameters
|
|
160
|
+
form_params = opts[:form_params] || {}
|
|
161
|
+
|
|
162
|
+
# http body (model)
|
|
163
|
+
post_body = opts[:debug_body]
|
|
164
|
+
|
|
165
|
+
# return_type
|
|
166
|
+
return_type = opts[:debug_return_type]
|
|
167
|
+
|
|
168
|
+
# auth_names
|
|
169
|
+
auth_names = opts[:debug_auth_names] || []
|
|
170
|
+
|
|
171
|
+
new_options = opts.merge(
|
|
172
|
+
:operation => :"DefaultApi.get_api_events_by_event_id_geometry_by_hash",
|
|
173
|
+
:header_params => header_params,
|
|
174
|
+
:query_params => query_params,
|
|
175
|
+
:form_params => form_params,
|
|
176
|
+
:body => post_body,
|
|
177
|
+
:auth_names => auth_names,
|
|
178
|
+
:return_type => return_type
|
|
179
|
+
)
|
|
180
|
+
|
|
181
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
182
|
+
if @api_client.config.debugging
|
|
183
|
+
@api_client.config.logger.debug "API called: DefaultApi#get_api_events_by_event_id_geometry_by_hash\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
184
|
+
end
|
|
185
|
+
return data, status_code, headers
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
# @param event_id [String]
|
|
189
|
+
# @param [Hash] opts the optional parameters
|
|
190
|
+
# @return [nil]
|
|
191
|
+
def get_api_events_by_event_id_manifest(event_id, opts = {})
|
|
192
|
+
get_api_events_by_event_id_manifest_with_http_info(event_id, opts)
|
|
193
|
+
nil
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
# @param event_id [String]
|
|
197
|
+
# @param [Hash] opts the optional parameters
|
|
198
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
199
|
+
def get_api_events_by_event_id_manifest_with_http_info(event_id, opts = {})
|
|
200
|
+
if @api_client.config.debugging
|
|
201
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.get_api_events_by_event_id_manifest ...'
|
|
202
|
+
end
|
|
203
|
+
# verify the required parameter 'event_id' is set
|
|
204
|
+
if @api_client.config.client_side_validation && event_id.nil?
|
|
205
|
+
fail ArgumentError, "Missing the required parameter 'event_id' when calling DefaultApi.get_api_events_by_event_id_manifest"
|
|
206
|
+
end
|
|
207
|
+
# resource path
|
|
208
|
+
local_var_path = '/api/events/{eventId}/manifest'.sub('{' + 'eventId' + '}', CGI.escape(event_id.to_s))
|
|
209
|
+
|
|
210
|
+
# query parameters
|
|
211
|
+
query_params = opts[:query_params] || {}
|
|
212
|
+
|
|
213
|
+
# header parameters
|
|
214
|
+
header_params = opts[:header_params] || {}
|
|
215
|
+
|
|
216
|
+
# form parameters
|
|
217
|
+
form_params = opts[:form_params] || {}
|
|
218
|
+
|
|
219
|
+
# http body (model)
|
|
220
|
+
post_body = opts[:debug_body]
|
|
221
|
+
|
|
222
|
+
# return_type
|
|
223
|
+
return_type = opts[:debug_return_type]
|
|
224
|
+
|
|
225
|
+
# auth_names
|
|
226
|
+
auth_names = opts[:debug_auth_names] || []
|
|
227
|
+
|
|
228
|
+
new_options = opts.merge(
|
|
229
|
+
:operation => :"DefaultApi.get_api_events_by_event_id_manifest",
|
|
230
|
+
:header_params => header_params,
|
|
231
|
+
:query_params => query_params,
|
|
232
|
+
:form_params => form_params,
|
|
233
|
+
:body => post_body,
|
|
234
|
+
:auth_names => auth_names,
|
|
235
|
+
:return_type => return_type
|
|
236
|
+
)
|
|
237
|
+
|
|
238
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
239
|
+
if @api_client.config.debugging
|
|
240
|
+
@api_client.config.logger.debug "API called: DefaultApi#get_api_events_by_event_id_manifest\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
241
|
+
end
|
|
242
|
+
return data, status_code, headers
|
|
243
|
+
end
|
|
244
|
+
|
|
245
|
+
# @param [Hash] opts the optional parameters
|
|
246
|
+
# @return [nil]
|
|
247
|
+
def get_health_live(opts = {})
|
|
248
|
+
get_health_live_with_http_info(opts)
|
|
249
|
+
nil
|
|
250
|
+
end
|
|
251
|
+
|
|
252
|
+
# @param [Hash] opts the optional parameters
|
|
253
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
254
|
+
def get_health_live_with_http_info(opts = {})
|
|
255
|
+
if @api_client.config.debugging
|
|
256
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.get_health_live ...'
|
|
257
|
+
end
|
|
258
|
+
# resource path
|
|
259
|
+
local_var_path = '/health/live'
|
|
260
|
+
|
|
261
|
+
# query parameters
|
|
262
|
+
query_params = opts[:query_params] || {}
|
|
263
|
+
|
|
264
|
+
# header parameters
|
|
265
|
+
header_params = opts[:header_params] || {}
|
|
266
|
+
|
|
267
|
+
# form parameters
|
|
268
|
+
form_params = opts[:form_params] || {}
|
|
269
|
+
|
|
270
|
+
# http body (model)
|
|
271
|
+
post_body = opts[:debug_body]
|
|
272
|
+
|
|
273
|
+
# return_type
|
|
274
|
+
return_type = opts[:debug_return_type]
|
|
275
|
+
|
|
276
|
+
# auth_names
|
|
277
|
+
auth_names = opts[:debug_auth_names] || []
|
|
278
|
+
|
|
279
|
+
new_options = opts.merge(
|
|
280
|
+
:operation => :"DefaultApi.get_health_live",
|
|
281
|
+
:header_params => header_params,
|
|
282
|
+
:query_params => query_params,
|
|
283
|
+
:form_params => form_params,
|
|
284
|
+
:body => post_body,
|
|
285
|
+
:auth_names => auth_names,
|
|
286
|
+
:return_type => return_type
|
|
287
|
+
)
|
|
288
|
+
|
|
289
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
290
|
+
if @api_client.config.debugging
|
|
291
|
+
@api_client.config.logger.debug "API called: DefaultApi#get_health_live\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
292
|
+
end
|
|
293
|
+
return data, status_code, headers
|
|
294
|
+
end
|
|
295
|
+
|
|
296
|
+
# @param [Hash] opts the optional parameters
|
|
297
|
+
# @return [nil]
|
|
298
|
+
def get_internal_metrics(opts = {})
|
|
299
|
+
get_internal_metrics_with_http_info(opts)
|
|
300
|
+
nil
|
|
301
|
+
end
|
|
302
|
+
|
|
303
|
+
# @param [Hash] opts the optional parameters
|
|
304
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
305
|
+
def get_internal_metrics_with_http_info(opts = {})
|
|
306
|
+
if @api_client.config.debugging
|
|
307
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.get_internal_metrics ...'
|
|
308
|
+
end
|
|
309
|
+
# resource path
|
|
310
|
+
local_var_path = '/internal/metrics'
|
|
311
|
+
|
|
312
|
+
# query parameters
|
|
313
|
+
query_params = opts[:query_params] || {}
|
|
314
|
+
|
|
315
|
+
# header parameters
|
|
316
|
+
header_params = opts[:header_params] || {}
|
|
317
|
+
|
|
318
|
+
# form parameters
|
|
319
|
+
form_params = opts[:form_params] || {}
|
|
320
|
+
|
|
321
|
+
# http body (model)
|
|
322
|
+
post_body = opts[:debug_body]
|
|
323
|
+
|
|
324
|
+
# return_type
|
|
325
|
+
return_type = opts[:debug_return_type]
|
|
326
|
+
|
|
327
|
+
# auth_names
|
|
328
|
+
auth_names = opts[:debug_auth_names] || []
|
|
329
|
+
|
|
330
|
+
new_options = opts.merge(
|
|
331
|
+
:operation => :"DefaultApi.get_internal_metrics",
|
|
332
|
+
:header_params => header_params,
|
|
333
|
+
:query_params => query_params,
|
|
334
|
+
:form_params => form_params,
|
|
335
|
+
:body => post_body,
|
|
336
|
+
:auth_names => auth_names,
|
|
337
|
+
:return_type => return_type
|
|
338
|
+
)
|
|
339
|
+
|
|
340
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
341
|
+
if @api_client.config.debugging
|
|
342
|
+
@api_client.config.logger.debug "API called: DefaultApi#get_internal_metrics\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
343
|
+
end
|
|
344
|
+
return data, status_code, headers
|
|
345
|
+
end
|
|
346
|
+
|
|
347
|
+
# @param chart_id [String]
|
|
348
|
+
# @param category_id [String]
|
|
349
|
+
# @param patch_api_charts_by_chart_id_categories_by_category_id_request [PatchApiChartsByChartIdCategoriesByCategoryIdRequest]
|
|
350
|
+
# @param [Hash] opts the optional parameters
|
|
351
|
+
# @option opts [String] :idempotency_key Required on transactional routes. Reuse the same key for every retry of one logical operation; the API replays the stored outcome.
|
|
352
|
+
# @return [nil]
|
|
353
|
+
def patch_api_charts_by_chart_id_categories_by_category_id(chart_id, category_id, patch_api_charts_by_chart_id_categories_by_category_id_request, opts = {})
|
|
354
|
+
patch_api_charts_by_chart_id_categories_by_category_id_with_http_info(chart_id, category_id, patch_api_charts_by_chart_id_categories_by_category_id_request, opts)
|
|
355
|
+
nil
|
|
356
|
+
end
|
|
357
|
+
|
|
358
|
+
# @param chart_id [String]
|
|
359
|
+
# @param category_id [String]
|
|
360
|
+
# @param patch_api_charts_by_chart_id_categories_by_category_id_request [PatchApiChartsByChartIdCategoriesByCategoryIdRequest]
|
|
361
|
+
# @param [Hash] opts the optional parameters
|
|
362
|
+
# @option opts [String] :idempotency_key Required on transactional routes. Reuse the same key for every retry of one logical operation; the API replays the stored outcome.
|
|
363
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
364
|
+
def patch_api_charts_by_chart_id_categories_by_category_id_with_http_info(chart_id, category_id, patch_api_charts_by_chart_id_categories_by_category_id_request, opts = {})
|
|
365
|
+
if @api_client.config.debugging
|
|
366
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.patch_api_charts_by_chart_id_categories_by_category_id ...'
|
|
367
|
+
end
|
|
368
|
+
# verify the required parameter 'chart_id' is set
|
|
369
|
+
if @api_client.config.client_side_validation && chart_id.nil?
|
|
370
|
+
fail ArgumentError, "Missing the required parameter 'chart_id' when calling DefaultApi.patch_api_charts_by_chart_id_categories_by_category_id"
|
|
371
|
+
end
|
|
372
|
+
pattern = Regexp.new(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/)
|
|
373
|
+
if @api_client.config.client_side_validation && chart_id !~ pattern
|
|
374
|
+
fail ArgumentError, "invalid value for 'chart_id' when calling DefaultApi.patch_api_charts_by_chart_id_categories_by_category_id, must conform to the pattern #{pattern}."
|
|
375
|
+
end
|
|
376
|
+
|
|
377
|
+
# verify the required parameter 'category_id' is set
|
|
378
|
+
if @api_client.config.client_side_validation && category_id.nil?
|
|
379
|
+
fail ArgumentError, "Missing the required parameter 'category_id' when calling DefaultApi.patch_api_charts_by_chart_id_categories_by_category_id"
|
|
380
|
+
end
|
|
381
|
+
if @api_client.config.client_side_validation && category_id.to_s.length > 64
|
|
382
|
+
fail ArgumentError, 'invalid value for "category_id" when calling DefaultApi.patch_api_charts_by_chart_id_categories_by_category_id, the character length must be smaller than or equal to 64.'
|
|
383
|
+
end
|
|
384
|
+
|
|
385
|
+
if @api_client.config.client_side_validation && category_id.to_s.length < 1
|
|
386
|
+
fail ArgumentError, 'invalid value for "category_id" when calling DefaultApi.patch_api_charts_by_chart_id_categories_by_category_id, the character length must be great than or equal to 1.'
|
|
387
|
+
end
|
|
388
|
+
|
|
389
|
+
# verify the required parameter 'patch_api_charts_by_chart_id_categories_by_category_id_request' is set
|
|
390
|
+
if @api_client.config.client_side_validation && patch_api_charts_by_chart_id_categories_by_category_id_request.nil?
|
|
391
|
+
fail ArgumentError, "Missing the required parameter 'patch_api_charts_by_chart_id_categories_by_category_id_request' when calling DefaultApi.patch_api_charts_by_chart_id_categories_by_category_id"
|
|
392
|
+
end
|
|
393
|
+
if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255
|
|
394
|
+
fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling DefaultApi.patch_api_charts_by_chart_id_categories_by_category_id, the character length must be smaller than or equal to 255.'
|
|
395
|
+
end
|
|
396
|
+
|
|
397
|
+
if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1
|
|
398
|
+
fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling DefaultApi.patch_api_charts_by_chart_id_categories_by_category_id, the character length must be great than or equal to 1.'
|
|
399
|
+
end
|
|
400
|
+
|
|
401
|
+
# resource path
|
|
402
|
+
local_var_path = '/api/charts/{chartId}/categories/{categoryId}'.sub('{' + 'chartId' + '}', CGI.escape(chart_id.to_s)).sub('{' + 'categoryId' + '}', CGI.escape(category_id.to_s))
|
|
403
|
+
|
|
404
|
+
# query parameters
|
|
405
|
+
query_params = opts[:query_params] || {}
|
|
406
|
+
|
|
407
|
+
# header parameters
|
|
408
|
+
header_params = opts[:header_params] || {}
|
|
409
|
+
# HTTP header 'Content-Type'
|
|
410
|
+
content_type = @api_client.select_header_content_type(['application/json', 'multipart/form-data', 'text/plain'])
|
|
411
|
+
if !content_type.nil?
|
|
412
|
+
header_params['Content-Type'] = content_type
|
|
413
|
+
end
|
|
414
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
415
|
+
|
|
416
|
+
# form parameters
|
|
417
|
+
form_params = opts[:form_params] || {}
|
|
418
|
+
|
|
419
|
+
# http body (model)
|
|
420
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(patch_api_charts_by_chart_id_categories_by_category_id_request)
|
|
421
|
+
|
|
422
|
+
# return_type
|
|
423
|
+
return_type = opts[:debug_return_type]
|
|
424
|
+
|
|
425
|
+
# auth_names
|
|
426
|
+
auth_names = opts[:debug_auth_names] || []
|
|
427
|
+
|
|
428
|
+
new_options = opts.merge(
|
|
429
|
+
:operation => :"DefaultApi.patch_api_charts_by_chart_id_categories_by_category_id",
|
|
430
|
+
:header_params => header_params,
|
|
431
|
+
:query_params => query_params,
|
|
432
|
+
:form_params => form_params,
|
|
433
|
+
:body => post_body,
|
|
434
|
+
:auth_names => auth_names,
|
|
435
|
+
:return_type => return_type
|
|
436
|
+
)
|
|
437
|
+
|
|
438
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
439
|
+
if @api_client.config.debugging
|
|
440
|
+
@api_client.config.logger.debug "API called: DefaultApi#patch_api_charts_by_chart_id_categories_by_category_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
441
|
+
end
|
|
442
|
+
return data, status_code, headers
|
|
443
|
+
end
|
|
444
|
+
|
|
445
|
+
# @param chart_id [String]
|
|
446
|
+
# @param [Hash] opts the optional parameters
|
|
447
|
+
# @option opts [String] :idempotency_key Required on transactional routes. Reuse the same key for every retry of one logical operation; the API replays the stored outcome.
|
|
448
|
+
# @return [nil]
|
|
449
|
+
def post_api_charts_by_chart_id_actions_scan_chart(chart_id, opts = {})
|
|
450
|
+
post_api_charts_by_chart_id_actions_scan_chart_with_http_info(chart_id, opts)
|
|
451
|
+
nil
|
|
452
|
+
end
|
|
453
|
+
|
|
454
|
+
# @param chart_id [String]
|
|
455
|
+
# @param [Hash] opts the optional parameters
|
|
456
|
+
# @option opts [String] :idempotency_key Required on transactional routes. Reuse the same key for every retry of one logical operation; the API replays the stored outcome.
|
|
457
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
458
|
+
def post_api_charts_by_chart_id_actions_scan_chart_with_http_info(chart_id, opts = {})
|
|
459
|
+
if @api_client.config.debugging
|
|
460
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.post_api_charts_by_chart_id_actions_scan_chart ...'
|
|
461
|
+
end
|
|
462
|
+
# verify the required parameter 'chart_id' is set
|
|
463
|
+
if @api_client.config.client_side_validation && chart_id.nil?
|
|
464
|
+
fail ArgumentError, "Missing the required parameter 'chart_id' when calling DefaultApi.post_api_charts_by_chart_id_actions_scan_chart"
|
|
465
|
+
end
|
|
466
|
+
if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255
|
|
467
|
+
fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling DefaultApi.post_api_charts_by_chart_id_actions_scan_chart, the character length must be smaller than or equal to 255.'
|
|
468
|
+
end
|
|
469
|
+
|
|
470
|
+
if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1
|
|
471
|
+
fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling DefaultApi.post_api_charts_by_chart_id_actions_scan_chart, the character length must be great than or equal to 1.'
|
|
472
|
+
end
|
|
473
|
+
|
|
474
|
+
# resource path
|
|
475
|
+
local_var_path = '/api/charts/{chartId}/actions/scan-chart'.sub('{' + 'chartId' + '}', CGI.escape(chart_id.to_s))
|
|
476
|
+
|
|
477
|
+
# query parameters
|
|
478
|
+
query_params = opts[:query_params] || {}
|
|
479
|
+
|
|
480
|
+
# header parameters
|
|
481
|
+
header_params = opts[:header_params] || {}
|
|
482
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
483
|
+
|
|
484
|
+
# form parameters
|
|
485
|
+
form_params = opts[:form_params] || {}
|
|
486
|
+
|
|
487
|
+
# http body (model)
|
|
488
|
+
post_body = opts[:debug_body]
|
|
489
|
+
|
|
490
|
+
# return_type
|
|
491
|
+
return_type = opts[:debug_return_type]
|
|
492
|
+
|
|
493
|
+
# auth_names
|
|
494
|
+
auth_names = opts[:debug_auth_names] || []
|
|
495
|
+
|
|
496
|
+
new_options = opts.merge(
|
|
497
|
+
:operation => :"DefaultApi.post_api_charts_by_chart_id_actions_scan_chart",
|
|
498
|
+
:header_params => header_params,
|
|
499
|
+
:query_params => query_params,
|
|
500
|
+
:form_params => form_params,
|
|
501
|
+
:body => post_body,
|
|
502
|
+
:auth_names => auth_names,
|
|
503
|
+
:return_type => return_type
|
|
504
|
+
)
|
|
505
|
+
|
|
506
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
507
|
+
if @api_client.config.debugging
|
|
508
|
+
@api_client.config.logger.debug "API called: DefaultApi#post_api_charts_by_chart_id_actions_scan_chart\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
509
|
+
end
|
|
510
|
+
return data, status_code, headers
|
|
511
|
+
end
|
|
512
|
+
|
|
513
|
+
# @param chart_id [String]
|
|
514
|
+
# @param post_api_charts_by_chart_id_categories_request [PostApiChartsByChartIdCategoriesRequest]
|
|
515
|
+
# @param [Hash] opts the optional parameters
|
|
516
|
+
# @option opts [String] :idempotency_key Required on transactional routes. Reuse the same key for every retry of one logical operation; the API replays the stored outcome.
|
|
517
|
+
# @return [nil]
|
|
518
|
+
def post_api_charts_by_chart_id_categories(chart_id, post_api_charts_by_chart_id_categories_request, opts = {})
|
|
519
|
+
post_api_charts_by_chart_id_categories_with_http_info(chart_id, post_api_charts_by_chart_id_categories_request, opts)
|
|
520
|
+
nil
|
|
521
|
+
end
|
|
522
|
+
|
|
523
|
+
# @param chart_id [String]
|
|
524
|
+
# @param post_api_charts_by_chart_id_categories_request [PostApiChartsByChartIdCategoriesRequest]
|
|
525
|
+
# @param [Hash] opts the optional parameters
|
|
526
|
+
# @option opts [String] :idempotency_key Required on transactional routes. Reuse the same key for every retry of one logical operation; the API replays the stored outcome.
|
|
527
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
528
|
+
def post_api_charts_by_chart_id_categories_with_http_info(chart_id, post_api_charts_by_chart_id_categories_request, opts = {})
|
|
529
|
+
if @api_client.config.debugging
|
|
530
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.post_api_charts_by_chart_id_categories ...'
|
|
531
|
+
end
|
|
532
|
+
# verify the required parameter 'chart_id' is set
|
|
533
|
+
if @api_client.config.client_side_validation && chart_id.nil?
|
|
534
|
+
fail ArgumentError, "Missing the required parameter 'chart_id' when calling DefaultApi.post_api_charts_by_chart_id_categories"
|
|
535
|
+
end
|
|
536
|
+
pattern = Regexp.new(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/)
|
|
537
|
+
if @api_client.config.client_side_validation && chart_id !~ pattern
|
|
538
|
+
fail ArgumentError, "invalid value for 'chart_id' when calling DefaultApi.post_api_charts_by_chart_id_categories, must conform to the pattern #{pattern}."
|
|
539
|
+
end
|
|
540
|
+
|
|
541
|
+
# verify the required parameter 'post_api_charts_by_chart_id_categories_request' is set
|
|
542
|
+
if @api_client.config.client_side_validation && post_api_charts_by_chart_id_categories_request.nil?
|
|
543
|
+
fail ArgumentError, "Missing the required parameter 'post_api_charts_by_chart_id_categories_request' when calling DefaultApi.post_api_charts_by_chart_id_categories"
|
|
544
|
+
end
|
|
545
|
+
if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255
|
|
546
|
+
fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling DefaultApi.post_api_charts_by_chart_id_categories, the character length must be smaller than or equal to 255.'
|
|
547
|
+
end
|
|
548
|
+
|
|
549
|
+
if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1
|
|
550
|
+
fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling DefaultApi.post_api_charts_by_chart_id_categories, the character length must be great than or equal to 1.'
|
|
551
|
+
end
|
|
552
|
+
|
|
553
|
+
# resource path
|
|
554
|
+
local_var_path = '/api/charts/{chartId}/categories'.sub('{' + 'chartId' + '}', CGI.escape(chart_id.to_s))
|
|
555
|
+
|
|
556
|
+
# query parameters
|
|
557
|
+
query_params = opts[:query_params] || {}
|
|
558
|
+
|
|
559
|
+
# header parameters
|
|
560
|
+
header_params = opts[:header_params] || {}
|
|
561
|
+
# HTTP header 'Content-Type'
|
|
562
|
+
content_type = @api_client.select_header_content_type(['application/json', 'multipart/form-data', 'text/plain'])
|
|
563
|
+
if !content_type.nil?
|
|
564
|
+
header_params['Content-Type'] = content_type
|
|
565
|
+
end
|
|
566
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
567
|
+
|
|
568
|
+
# form parameters
|
|
569
|
+
form_params = opts[:form_params] || {}
|
|
570
|
+
|
|
571
|
+
# http body (model)
|
|
572
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(post_api_charts_by_chart_id_categories_request)
|
|
573
|
+
|
|
574
|
+
# return_type
|
|
575
|
+
return_type = opts[:debug_return_type]
|
|
576
|
+
|
|
577
|
+
# auth_names
|
|
578
|
+
auth_names = opts[:debug_auth_names] || []
|
|
579
|
+
|
|
580
|
+
new_options = opts.merge(
|
|
581
|
+
:operation => :"DefaultApi.post_api_charts_by_chart_id_categories",
|
|
582
|
+
:header_params => header_params,
|
|
583
|
+
:query_params => query_params,
|
|
584
|
+
:form_params => form_params,
|
|
585
|
+
:body => post_body,
|
|
586
|
+
:auth_names => auth_names,
|
|
587
|
+
:return_type => return_type
|
|
588
|
+
)
|
|
589
|
+
|
|
590
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
591
|
+
if @api_client.config.debugging
|
|
592
|
+
@api_client.config.logger.debug "API called: DefaultApi#post_api_charts_by_chart_id_categories\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
593
|
+
end
|
|
594
|
+
return data, status_code, headers
|
|
595
|
+
end
|
|
596
|
+
|
|
597
|
+
# @param chart_id [String]
|
|
598
|
+
# @param version [Float]
|
|
599
|
+
# @param post_api_charts_by_chart_id_versions_by_version_actions_copy_request [PostApiChartsByChartIdVersionsByVersionActionsCopyRequest]
|
|
600
|
+
# @param [Hash] opts the optional parameters
|
|
601
|
+
# @option opts [String] :idempotency_key Required on transactional routes. Reuse the same key for every retry of one logical operation; the API replays the stored outcome.
|
|
602
|
+
# @return [nil]
|
|
603
|
+
def post_api_charts_by_chart_id_versions_by_version_actions_copy(chart_id, version, post_api_charts_by_chart_id_versions_by_version_actions_copy_request, opts = {})
|
|
604
|
+
post_api_charts_by_chart_id_versions_by_version_actions_copy_with_http_info(chart_id, version, post_api_charts_by_chart_id_versions_by_version_actions_copy_request, opts)
|
|
605
|
+
nil
|
|
606
|
+
end
|
|
607
|
+
|
|
608
|
+
# @param chart_id [String]
|
|
609
|
+
# @param version [Float]
|
|
610
|
+
# @param post_api_charts_by_chart_id_versions_by_version_actions_copy_request [PostApiChartsByChartIdVersionsByVersionActionsCopyRequest]
|
|
611
|
+
# @param [Hash] opts the optional parameters
|
|
612
|
+
# @option opts [String] :idempotency_key Required on transactional routes. Reuse the same key for every retry of one logical operation; the API replays the stored outcome.
|
|
613
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
614
|
+
def post_api_charts_by_chart_id_versions_by_version_actions_copy_with_http_info(chart_id, version, post_api_charts_by_chart_id_versions_by_version_actions_copy_request, opts = {})
|
|
615
|
+
if @api_client.config.debugging
|
|
616
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.post_api_charts_by_chart_id_versions_by_version_actions_copy ...'
|
|
617
|
+
end
|
|
618
|
+
# verify the required parameter 'chart_id' is set
|
|
619
|
+
if @api_client.config.client_side_validation && chart_id.nil?
|
|
620
|
+
fail ArgumentError, "Missing the required parameter 'chart_id' when calling DefaultApi.post_api_charts_by_chart_id_versions_by_version_actions_copy"
|
|
621
|
+
end
|
|
622
|
+
pattern = Regexp.new(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/)
|
|
623
|
+
if @api_client.config.client_side_validation && chart_id !~ pattern
|
|
624
|
+
fail ArgumentError, "invalid value for 'chart_id' when calling DefaultApi.post_api_charts_by_chart_id_versions_by_version_actions_copy, must conform to the pattern #{pattern}."
|
|
625
|
+
end
|
|
626
|
+
|
|
627
|
+
# verify the required parameter 'version' is set
|
|
628
|
+
if @api_client.config.client_side_validation && version.nil?
|
|
629
|
+
fail ArgumentError, "Missing the required parameter 'version' when calling DefaultApi.post_api_charts_by_chart_id_versions_by_version_actions_copy"
|
|
630
|
+
end
|
|
631
|
+
if @api_client.config.client_side_validation && version > 2147483647
|
|
632
|
+
fail ArgumentError, 'invalid value for "version" when calling DefaultApi.post_api_charts_by_chart_id_versions_by_version_actions_copy, must be smaller than or equal to 2147483647.'
|
|
633
|
+
end
|
|
634
|
+
|
|
635
|
+
if @api_client.config.client_side_validation && version < 1
|
|
636
|
+
fail ArgumentError, 'invalid value for "version" when calling DefaultApi.post_api_charts_by_chart_id_versions_by_version_actions_copy, must be greater than or equal to 1.'
|
|
637
|
+
end
|
|
638
|
+
|
|
639
|
+
# verify the required parameter 'post_api_charts_by_chart_id_versions_by_version_actions_copy_request' is set
|
|
640
|
+
if @api_client.config.client_side_validation && post_api_charts_by_chart_id_versions_by_version_actions_copy_request.nil?
|
|
641
|
+
fail ArgumentError, "Missing the required parameter 'post_api_charts_by_chart_id_versions_by_version_actions_copy_request' when calling DefaultApi.post_api_charts_by_chart_id_versions_by_version_actions_copy"
|
|
642
|
+
end
|
|
643
|
+
if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255
|
|
644
|
+
fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling DefaultApi.post_api_charts_by_chart_id_versions_by_version_actions_copy, the character length must be smaller than or equal to 255.'
|
|
645
|
+
end
|
|
646
|
+
|
|
647
|
+
if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1
|
|
648
|
+
fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling DefaultApi.post_api_charts_by_chart_id_versions_by_version_actions_copy, the character length must be great than or equal to 1.'
|
|
649
|
+
end
|
|
650
|
+
|
|
651
|
+
# resource path
|
|
652
|
+
local_var_path = '/api/charts/{chartId}/versions/{version}/actions/copy'.sub('{' + 'chartId' + '}', CGI.escape(chart_id.to_s)).sub('{' + 'version' + '}', CGI.escape(version.to_s))
|
|
653
|
+
|
|
654
|
+
# query parameters
|
|
655
|
+
query_params = opts[:query_params] || {}
|
|
656
|
+
|
|
657
|
+
# header parameters
|
|
658
|
+
header_params = opts[:header_params] || {}
|
|
659
|
+
# HTTP header 'Content-Type'
|
|
660
|
+
content_type = @api_client.select_header_content_type(['application/json', 'multipart/form-data', 'text/plain'])
|
|
661
|
+
if !content_type.nil?
|
|
662
|
+
header_params['Content-Type'] = content_type
|
|
663
|
+
end
|
|
664
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
665
|
+
|
|
666
|
+
# form parameters
|
|
667
|
+
form_params = opts[:form_params] || {}
|
|
668
|
+
|
|
669
|
+
# http body (model)
|
|
670
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(post_api_charts_by_chart_id_versions_by_version_actions_copy_request)
|
|
671
|
+
|
|
672
|
+
# return_type
|
|
673
|
+
return_type = opts[:debug_return_type]
|
|
674
|
+
|
|
675
|
+
# auth_names
|
|
676
|
+
auth_names = opts[:debug_auth_names] || []
|
|
677
|
+
|
|
678
|
+
new_options = opts.merge(
|
|
679
|
+
:operation => :"DefaultApi.post_api_charts_by_chart_id_versions_by_version_actions_copy",
|
|
680
|
+
:header_params => header_params,
|
|
681
|
+
:query_params => query_params,
|
|
682
|
+
:form_params => form_params,
|
|
683
|
+
:body => post_body,
|
|
684
|
+
:auth_names => auth_names,
|
|
685
|
+
:return_type => return_type
|
|
686
|
+
)
|
|
687
|
+
|
|
688
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
689
|
+
if @api_client.config.debugging
|
|
690
|
+
@api_client.config.logger.debug "API called: DefaultApi#post_api_charts_by_chart_id_versions_by_version_actions_copy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
691
|
+
end
|
|
692
|
+
return data, status_code, headers
|
|
693
|
+
end
|
|
694
|
+
|
|
695
|
+
# @param event_id [String]
|
|
696
|
+
# @param [Hash] opts the optional parameters
|
|
697
|
+
# @option opts [String] :idempotency_key Required on transactional routes. Reuse the same key for every retry of one logical operation; the API replays the stored outcome.
|
|
698
|
+
# @return [nil]
|
|
699
|
+
def post_api_events_by_event_id_actions_scan_chart(event_id, opts = {})
|
|
700
|
+
post_api_events_by_event_id_actions_scan_chart_with_http_info(event_id, opts)
|
|
701
|
+
nil
|
|
702
|
+
end
|
|
703
|
+
|
|
704
|
+
# @param event_id [String]
|
|
705
|
+
# @param [Hash] opts the optional parameters
|
|
706
|
+
# @option opts [String] :idempotency_key Required on transactional routes. Reuse the same key for every retry of one logical operation; the API replays the stored outcome.
|
|
707
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
708
|
+
def post_api_events_by_event_id_actions_scan_chart_with_http_info(event_id, opts = {})
|
|
709
|
+
if @api_client.config.debugging
|
|
710
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.post_api_events_by_event_id_actions_scan_chart ...'
|
|
711
|
+
end
|
|
712
|
+
# verify the required parameter 'event_id' is set
|
|
713
|
+
if @api_client.config.client_side_validation && event_id.nil?
|
|
714
|
+
fail ArgumentError, "Missing the required parameter 'event_id' when calling DefaultApi.post_api_events_by_event_id_actions_scan_chart"
|
|
715
|
+
end
|
|
716
|
+
if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255
|
|
717
|
+
fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling DefaultApi.post_api_events_by_event_id_actions_scan_chart, the character length must be smaller than or equal to 255.'
|
|
718
|
+
end
|
|
719
|
+
|
|
720
|
+
if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1
|
|
721
|
+
fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling DefaultApi.post_api_events_by_event_id_actions_scan_chart, the character length must be great than or equal to 1.'
|
|
722
|
+
end
|
|
723
|
+
|
|
724
|
+
# resource path
|
|
725
|
+
local_var_path = '/api/events/{eventId}/actions/scan-chart'.sub('{' + 'eventId' + '}', CGI.escape(event_id.to_s))
|
|
726
|
+
|
|
727
|
+
# query parameters
|
|
728
|
+
query_params = opts[:query_params] || {}
|
|
729
|
+
|
|
730
|
+
# header parameters
|
|
731
|
+
header_params = opts[:header_params] || {}
|
|
732
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
733
|
+
|
|
734
|
+
# form parameters
|
|
735
|
+
form_params = opts[:form_params] || {}
|
|
736
|
+
|
|
737
|
+
# http body (model)
|
|
738
|
+
post_body = opts[:debug_body]
|
|
739
|
+
|
|
740
|
+
# return_type
|
|
741
|
+
return_type = opts[:debug_return_type]
|
|
742
|
+
|
|
743
|
+
# auth_names
|
|
744
|
+
auth_names = opts[:debug_auth_names] || []
|
|
745
|
+
|
|
746
|
+
new_options = opts.merge(
|
|
747
|
+
:operation => :"DefaultApi.post_api_events_by_event_id_actions_scan_chart",
|
|
748
|
+
:header_params => header_params,
|
|
749
|
+
:query_params => query_params,
|
|
750
|
+
:form_params => form_params,
|
|
751
|
+
:body => post_body,
|
|
752
|
+
:auth_names => auth_names,
|
|
753
|
+
:return_type => return_type
|
|
754
|
+
)
|
|
755
|
+
|
|
756
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
757
|
+
if @api_client.config.debugging
|
|
758
|
+
@api_client.config.logger.debug "API called: DefaultApi#post_api_events_by_event_id_actions_scan_chart\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
759
|
+
end
|
|
760
|
+
return data, status_code, headers
|
|
761
|
+
end
|
|
762
|
+
end
|
|
763
|
+
end
|