zyphr 0.1.41 → 0.1.43
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 +37 -1
- data/docs/AuthUserDirectoryApi.md +57 -50
- data/docs/CloseWaaSEndpointCircuit200Response.md +20 -0
- data/docs/CloseWaaSEndpointCircuit200ResponseData.md +18 -0
- data/docs/DomainsApi.md +8 -7
- data/docs/GetEndUserById200Response.md +20 -0
- data/docs/GetEndUserClaims200Response.md +20 -0
- data/docs/GetEndUserClaims200ResponseData.md +18 -0
- data/docs/GetSubscriberInboxPreferences200Response.md +18 -0
- data/docs/GetSubscriberInboxPreferences200ResponseData.md +20 -0
- data/docs/GetSubscriberInboxPreferences200ResponseDataCategoriesInner.md +20 -0
- data/docs/GetSubscriberInboxPreferences200ResponseDataCategoriesInnerCategory.md +26 -0
- data/docs/GetSubscriberInboxPreferences200ResponseDataGlobal.md +18 -0
- data/docs/GetSubscriberInboxPreferences200ResponseDataGlobalChannelsInner.md +22 -0
- data/docs/GetSubscriberNotification200Response.md +18 -0
- data/docs/GetSubscriberUnreadCount200Response.md +18 -0
- data/docs/GetWaaSDelivery200Response.md +20 -0
- data/docs/GetWaaSEndpointCircuit200Response.md +20 -0
- data/docs/GetWaaSEndpointCircuit200ResponseData.md +28 -0
- data/docs/GetWaaSEndpointMetrics200Response.md +20 -0
- data/docs/GetWaaSEndpointMetrics200ResponseData.md +22 -0
- data/docs/GetWaaSEndpointMetrics200ResponseDataHealth.md +20 -0
- data/docs/GetWaaSEndpointMetrics200ResponseDataWindowsValue.md +30 -0
- data/docs/InboxApi.md +73 -64
- data/docs/InviteEndUser200Response.md +20 -0
- data/docs/InviteEndUser200ResponseData.md +22 -0
- data/docs/ListEndUsers200Response.md +20 -0
- data/docs/{ListWorkflowExecutions200ResponseMeta.md → ListEndUsers200ResponseMeta.md} +2 -2
- data/docs/ListWorkflowExecutions200Response.md +1 -1
- data/docs/MarkAllSubscriberNotificationsRead200Response.md +18 -0
- data/docs/RotateWaaSEndpointSecret200Response.md +20 -0
- data/docs/RotateWaaSEndpointSecret200ResponseData.md +18 -0
- data/docs/SendTemplateTestEmail202Response.md +20 -0
- data/docs/SendTemplateTestEmail202ResponseData.md +30 -0
- data/docs/SendTemplateTestEmail202ResponseMeta.md +18 -0
- data/docs/SetEndUserClaims200Response.md +18 -0
- data/docs/SetEndUserClaims200ResponseData.md +20 -0
- data/docs/SmsListResponse.md +1 -1
- data/docs/TemplatesApi.md +7 -6
- data/docs/UpdateSubscriberPreferences200Response.md +18 -0
- data/docs/UpdateSubscriberPreferences200ResponseData.md +20 -0
- data/docs/UpdateSubscriberPreferences200ResponseDataPreferencesInner.md +24 -0
- data/docs/UpdateWaaSEndpoint200Response.md +20 -0
- data/docs/UpdateWaaSEventType200Response.md +20 -0
- data/docs/WaaSDeliveriesApi.md +16 -14
- data/docs/WaaSEndpointsApi.md +40 -35
- data/docs/WaaSEventTypesApi.md +16 -14
- data/lib/zyphr/api/auth_user_directory_api.rb +51 -37
- data/lib/zyphr/api/domains_api.rb +7 -5
- data/lib/zyphr/api/inbox_api.rb +65 -47
- data/lib/zyphr/api/templates_api.rb +5 -5
- data/lib/zyphr/api/waa_s_deliveries_api.rb +14 -10
- data/lib/zyphr/api/waa_s_endpoints_api.rb +35 -25
- data/lib/zyphr/api/waa_s_event_types_api.rb +14 -10
- data/lib/zyphr/models/close_waa_s_endpoint_circuit200_response.rb +229 -0
- data/lib/zyphr/models/close_waa_s_endpoint_circuit200_response_data.rb +261 -0
- data/lib/zyphr/models/get_end_user_by_id200_response.rb +229 -0
- data/lib/zyphr/models/get_end_user_claims200_response.rb +229 -0
- data/lib/zyphr/models/get_end_user_claims200_response_data.rb +223 -0
- data/lib/zyphr/models/get_subscriber_inbox_preferences200_response.rb +220 -0
- data/lib/zyphr/models/get_subscriber_inbox_preferences200_response_data.rb +231 -0
- data/lib/zyphr/models/get_subscriber_inbox_preferences200_response_data_categories_inner.rb +231 -0
- data/lib/zyphr/models/get_subscriber_inbox_preferences200_response_data_categories_inner_category.rb +257 -0
- data/lib/zyphr/models/get_subscriber_inbox_preferences200_response_data_global.rb +222 -0
- data/lib/zyphr/models/get_subscriber_inbox_preferences200_response_data_global_channels_inner.rb +272 -0
- data/lib/zyphr/models/get_subscriber_notification200_response.rb +220 -0
- data/lib/zyphr/models/get_subscriber_unread_count200_response.rb +220 -0
- data/lib/zyphr/models/get_waa_s_delivery200_response.rb +229 -0
- data/lib/zyphr/models/get_waa_s_endpoint_circuit200_response.rb +229 -0
- data/lib/zyphr/models/get_waa_s_endpoint_circuit200_response_data.rb +349 -0
- data/lib/zyphr/models/get_waa_s_endpoint_metrics200_response.rb +229 -0
- data/lib/zyphr/models/get_waa_s_endpoint_metrics200_response_data.rb +292 -0
- data/lib/zyphr/models/get_waa_s_endpoint_metrics200_response_data_health.rb +287 -0
- data/lib/zyphr/models/get_waa_s_endpoint_metrics200_response_data_windows_value.rb +308 -0
- data/lib/zyphr/models/invite_end_user200_response.rb +229 -0
- data/lib/zyphr/models/invite_end_user200_response_data.rb +240 -0
- data/lib/zyphr/models/list_end_users200_response.rb +231 -0
- data/lib/zyphr/models/{list_workflow_executions200_response_meta.rb → list_end_users200_response_meta.rb} +3 -3
- data/lib/zyphr/models/list_workflow_executions200_response.rb +1 -1
- data/lib/zyphr/models/mark_all_subscriber_notifications_read200_response.rb +220 -0
- data/lib/zyphr/models/rotate_waa_s_endpoint_secret200_response.rb +229 -0
- data/lib/zyphr/models/rotate_waa_s_endpoint_secret200_response_data.rb +238 -0
- data/lib/zyphr/models/send_template_test_email202_response.rb +263 -0
- data/lib/zyphr/models/send_template_test_email202_response_data.rb +393 -0
- data/lib/zyphr/models/send_template_test_email202_response_meta.rb +237 -0
- data/lib/zyphr/models/set_end_user_claims200_response.rb +220 -0
- data/lib/zyphr/models/set_end_user_claims200_response_data.rb +230 -0
- data/lib/zyphr/models/sms_list_response.rb +1 -1
- data/lib/zyphr/models/update_subscriber_preferences200_response.rb +220 -0
- data/lib/zyphr/models/update_subscriber_preferences200_response_data.rb +231 -0
- data/lib/zyphr/models/update_subscriber_preferences200_response_data_preferences_inner.rb +282 -0
- data/lib/zyphr/models/update_waa_s_endpoint200_response.rb +229 -0
- data/lib/zyphr/models/update_waa_s_event_type200_response.rb +229 -0
- data/lib/zyphr.rb +37 -1
- data/spec/api/auth_user_directory_api_spec.rb +8 -8
- data/spec/api/domains_api_spec.rb +1 -1
- data/spec/api/inbox_api_spec.rb +10 -10
- data/spec/api/templates_api_spec.rb +1 -1
- data/spec/api/waa_s_deliveries_api_spec.rb +2 -2
- data/spec/api/waa_s_endpoints_api_spec.rb +5 -5
- data/spec/api/waa_s_event_types_api_spec.rb +2 -2
- data/spec/models/close_waa_s_endpoint_circuit200_response_data_spec.rb +40 -0
- data/spec/models/close_waa_s_endpoint_circuit200_response_spec.rb +42 -0
- data/spec/models/get_end_user_by_id200_response_spec.rb +42 -0
- data/spec/models/get_end_user_claims200_response_data_spec.rb +36 -0
- data/spec/models/get_end_user_claims200_response_spec.rb +42 -0
- data/spec/models/get_subscriber_inbox_preferences200_response_data_categories_inner_category_spec.rb +60 -0
- data/spec/models/get_subscriber_inbox_preferences200_response_data_categories_inner_spec.rb +42 -0
- data/spec/models/get_subscriber_inbox_preferences200_response_data_global_channels_inner_spec.rb +52 -0
- data/spec/models/get_subscriber_inbox_preferences200_response_data_global_spec.rb +36 -0
- data/spec/models/get_subscriber_inbox_preferences200_response_data_spec.rb +42 -0
- data/spec/models/get_subscriber_inbox_preferences200_response_spec.rb +36 -0
- data/spec/models/get_subscriber_notification200_response_spec.rb +36 -0
- data/spec/models/get_subscriber_unread_count200_response_spec.rb +36 -0
- data/spec/models/get_waa_s_delivery200_response_spec.rb +42 -0
- data/spec/models/get_waa_s_endpoint_circuit200_response_data_spec.rb +70 -0
- data/spec/models/get_waa_s_endpoint_circuit200_response_spec.rb +42 -0
- data/spec/models/get_waa_s_endpoint_metrics200_response_data_health_spec.rb +46 -0
- data/spec/models/get_waa_s_endpoint_metrics200_response_data_spec.rb +48 -0
- data/spec/models/get_waa_s_endpoint_metrics200_response_data_windows_value_spec.rb +76 -0
- data/spec/models/get_waa_s_endpoint_metrics200_response_spec.rb +42 -0
- data/spec/models/invite_end_user200_response_data_spec.rb +48 -0
- data/spec/models/invite_end_user200_response_spec.rb +42 -0
- data/spec/models/{list_workflow_executions200_response_meta_spec.rb → list_end_users200_response_meta_spec.rb} +6 -6
- data/spec/models/list_end_users200_response_spec.rb +42 -0
- data/spec/models/mark_all_subscriber_notifications_read200_response_spec.rb +36 -0
- data/spec/models/rotate_waa_s_endpoint_secret200_response_data_spec.rb +36 -0
- data/spec/models/rotate_waa_s_endpoint_secret200_response_spec.rb +42 -0
- data/spec/models/send_template_test_email202_response_data_spec.rb +72 -0
- data/spec/models/send_template_test_email202_response_meta_spec.rb +36 -0
- data/spec/models/send_template_test_email202_response_spec.rb +42 -0
- data/spec/models/set_end_user_claims200_response_data_spec.rb +42 -0
- data/spec/models/set_end_user_claims200_response_spec.rb +36 -0
- data/spec/models/update_subscriber_preferences200_response_data_preferences_inner_spec.rb +58 -0
- data/spec/models/update_subscriber_preferences200_response_data_spec.rb +42 -0
- data/spec/models/update_subscriber_preferences200_response_spec.rb +36 -0
- data/spec/models/update_waa_s_endpoint200_response_spec.rb +42 -0
- data/spec/models/update_waa_s_event_type200_response_spec.rb +42 -0
- data/zyphr.gemspec +1 -1
- metadata +150 -6
|
@@ -24,10 +24,10 @@ module Zyphr
|
|
|
24
24
|
# @param app_id [String]
|
|
25
25
|
# @param endpoint_id [String]
|
|
26
26
|
# @param [Hash] opts the optional parameters
|
|
27
|
-
# @return [
|
|
27
|
+
# @return [CloseWaaSEndpointCircuit200Response]
|
|
28
28
|
def close_waa_s_endpoint_circuit(app_id, endpoint_id, opts = {})
|
|
29
|
-
close_waa_s_endpoint_circuit_with_http_info(app_id, endpoint_id, opts)
|
|
30
|
-
|
|
29
|
+
data, _status_code, _headers = close_waa_s_endpoint_circuit_with_http_info(app_id, endpoint_id, opts)
|
|
30
|
+
data
|
|
31
31
|
end
|
|
32
32
|
|
|
33
33
|
# Force-close circuit breaker
|
|
@@ -35,7 +35,7 @@ module Zyphr
|
|
|
35
35
|
# @param app_id [String]
|
|
36
36
|
# @param endpoint_id [String]
|
|
37
37
|
# @param [Hash] opts the optional parameters
|
|
38
|
-
# @return [Array<(
|
|
38
|
+
# @return [Array<(CloseWaaSEndpointCircuit200Response, Integer, Hash)>] CloseWaaSEndpointCircuit200Response data, response status code and response headers
|
|
39
39
|
def close_waa_s_endpoint_circuit_with_http_info(app_id, endpoint_id, opts = {})
|
|
40
40
|
if @api_client.config.debugging
|
|
41
41
|
@api_client.config.logger.debug 'Calling API: WaaSEndpointsApi.close_waa_s_endpoint_circuit ...'
|
|
@@ -56,6 +56,8 @@ module Zyphr
|
|
|
56
56
|
|
|
57
57
|
# header parameters
|
|
58
58
|
header_params = opts[:header_params] || {}
|
|
59
|
+
# HTTP header 'Accept' (if needed)
|
|
60
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
59
61
|
|
|
60
62
|
# form parameters
|
|
61
63
|
form_params = opts[:form_params] || {}
|
|
@@ -64,7 +66,7 @@ module Zyphr
|
|
|
64
66
|
post_body = opts[:debug_body]
|
|
65
67
|
|
|
66
68
|
# return_type
|
|
67
|
-
return_type = opts[:debug_return_type]
|
|
69
|
+
return_type = opts[:debug_return_type] || 'CloseWaaSEndpointCircuit200Response'
|
|
68
70
|
|
|
69
71
|
# auth_names
|
|
70
72
|
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
@@ -299,10 +301,10 @@ module Zyphr
|
|
|
299
301
|
# @param app_id [String]
|
|
300
302
|
# @param endpoint_id [String]
|
|
301
303
|
# @param [Hash] opts the optional parameters
|
|
302
|
-
# @return [
|
|
304
|
+
# @return [GetWaaSEndpointCircuit200Response]
|
|
303
305
|
def get_waa_s_endpoint_circuit(app_id, endpoint_id, opts = {})
|
|
304
|
-
get_waa_s_endpoint_circuit_with_http_info(app_id, endpoint_id, opts)
|
|
305
|
-
|
|
306
|
+
data, _status_code, _headers = get_waa_s_endpoint_circuit_with_http_info(app_id, endpoint_id, opts)
|
|
307
|
+
data
|
|
306
308
|
end
|
|
307
309
|
|
|
308
310
|
# Get circuit breaker state
|
|
@@ -310,7 +312,7 @@ module Zyphr
|
|
|
310
312
|
# @param app_id [String]
|
|
311
313
|
# @param endpoint_id [String]
|
|
312
314
|
# @param [Hash] opts the optional parameters
|
|
313
|
-
# @return [Array<(
|
|
315
|
+
# @return [Array<(GetWaaSEndpointCircuit200Response, Integer, Hash)>] GetWaaSEndpointCircuit200Response data, response status code and response headers
|
|
314
316
|
def get_waa_s_endpoint_circuit_with_http_info(app_id, endpoint_id, opts = {})
|
|
315
317
|
if @api_client.config.debugging
|
|
316
318
|
@api_client.config.logger.debug 'Calling API: WaaSEndpointsApi.get_waa_s_endpoint_circuit ...'
|
|
@@ -331,6 +333,8 @@ module Zyphr
|
|
|
331
333
|
|
|
332
334
|
# header parameters
|
|
333
335
|
header_params = opts[:header_params] || {}
|
|
336
|
+
# HTTP header 'Accept' (if needed)
|
|
337
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
334
338
|
|
|
335
339
|
# form parameters
|
|
336
340
|
form_params = opts[:form_params] || {}
|
|
@@ -339,7 +343,7 @@ module Zyphr
|
|
|
339
343
|
post_body = opts[:debug_body]
|
|
340
344
|
|
|
341
345
|
# return_type
|
|
342
|
-
return_type = opts[:debug_return_type]
|
|
346
|
+
return_type = opts[:debug_return_type] || 'GetWaaSEndpointCircuit200Response'
|
|
343
347
|
|
|
344
348
|
# auth_names
|
|
345
349
|
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
@@ -366,10 +370,10 @@ module Zyphr
|
|
|
366
370
|
# @param app_id [String]
|
|
367
371
|
# @param endpoint_id [String]
|
|
368
372
|
# @param [Hash] opts the optional parameters
|
|
369
|
-
# @return [
|
|
373
|
+
# @return [GetWaaSEndpointMetrics200Response]
|
|
370
374
|
def get_waa_s_endpoint_metrics(app_id, endpoint_id, opts = {})
|
|
371
|
-
get_waa_s_endpoint_metrics_with_http_info(app_id, endpoint_id, opts)
|
|
372
|
-
|
|
375
|
+
data, _status_code, _headers = get_waa_s_endpoint_metrics_with_http_info(app_id, endpoint_id, opts)
|
|
376
|
+
data
|
|
373
377
|
end
|
|
374
378
|
|
|
375
379
|
# Get endpoint metrics
|
|
@@ -377,7 +381,7 @@ module Zyphr
|
|
|
377
381
|
# @param app_id [String]
|
|
378
382
|
# @param endpoint_id [String]
|
|
379
383
|
# @param [Hash] opts the optional parameters
|
|
380
|
-
# @return [Array<(
|
|
384
|
+
# @return [Array<(GetWaaSEndpointMetrics200Response, Integer, Hash)>] GetWaaSEndpointMetrics200Response data, response status code and response headers
|
|
381
385
|
def get_waa_s_endpoint_metrics_with_http_info(app_id, endpoint_id, opts = {})
|
|
382
386
|
if @api_client.config.debugging
|
|
383
387
|
@api_client.config.logger.debug 'Calling API: WaaSEndpointsApi.get_waa_s_endpoint_metrics ...'
|
|
@@ -398,6 +402,8 @@ module Zyphr
|
|
|
398
402
|
|
|
399
403
|
# header parameters
|
|
400
404
|
header_params = opts[:header_params] || {}
|
|
405
|
+
# HTTP header 'Accept' (if needed)
|
|
406
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
401
407
|
|
|
402
408
|
# form parameters
|
|
403
409
|
form_params = opts[:form_params] || {}
|
|
@@ -406,7 +412,7 @@ module Zyphr
|
|
|
406
412
|
post_body = opts[:debug_body]
|
|
407
413
|
|
|
408
414
|
# return_type
|
|
409
|
-
return_type = opts[:debug_return_type]
|
|
415
|
+
return_type = opts[:debug_return_type] || 'GetWaaSEndpointMetrics200Response'
|
|
410
416
|
|
|
411
417
|
# auth_names
|
|
412
418
|
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
@@ -512,10 +518,10 @@ module Zyphr
|
|
|
512
518
|
# @param app_id [String]
|
|
513
519
|
# @param endpoint_id [String]
|
|
514
520
|
# @param [Hash] opts the optional parameters
|
|
515
|
-
# @return [
|
|
521
|
+
# @return [RotateWaaSEndpointSecret200Response]
|
|
516
522
|
def rotate_waa_s_endpoint_secret(app_id, endpoint_id, opts = {})
|
|
517
|
-
rotate_waa_s_endpoint_secret_with_http_info(app_id, endpoint_id, opts)
|
|
518
|
-
|
|
523
|
+
data, _status_code, _headers = rotate_waa_s_endpoint_secret_with_http_info(app_id, endpoint_id, opts)
|
|
524
|
+
data
|
|
519
525
|
end
|
|
520
526
|
|
|
521
527
|
# Rotate endpoint secret
|
|
@@ -523,7 +529,7 @@ module Zyphr
|
|
|
523
529
|
# @param app_id [String]
|
|
524
530
|
# @param endpoint_id [String]
|
|
525
531
|
# @param [Hash] opts the optional parameters
|
|
526
|
-
# @return [Array<(
|
|
532
|
+
# @return [Array<(RotateWaaSEndpointSecret200Response, Integer, Hash)>] RotateWaaSEndpointSecret200Response data, response status code and response headers
|
|
527
533
|
def rotate_waa_s_endpoint_secret_with_http_info(app_id, endpoint_id, opts = {})
|
|
528
534
|
if @api_client.config.debugging
|
|
529
535
|
@api_client.config.logger.debug 'Calling API: WaaSEndpointsApi.rotate_waa_s_endpoint_secret ...'
|
|
@@ -544,6 +550,8 @@ module Zyphr
|
|
|
544
550
|
|
|
545
551
|
# header parameters
|
|
546
552
|
header_params = opts[:header_params] || {}
|
|
553
|
+
# HTTP header 'Accept' (if needed)
|
|
554
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
547
555
|
|
|
548
556
|
# form parameters
|
|
549
557
|
form_params = opts[:form_params] || {}
|
|
@@ -552,7 +560,7 @@ module Zyphr
|
|
|
552
560
|
post_body = opts[:debug_body]
|
|
553
561
|
|
|
554
562
|
# return_type
|
|
555
|
-
return_type = opts[:debug_return_type]
|
|
563
|
+
return_type = opts[:debug_return_type] || 'RotateWaaSEndpointSecret200Response'
|
|
556
564
|
|
|
557
565
|
# auth_names
|
|
558
566
|
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
@@ -579,10 +587,10 @@ module Zyphr
|
|
|
579
587
|
# @param endpoint_id [String]
|
|
580
588
|
# @param update_waa_s_endpoint_request [UpdateWaaSEndpointRequest]
|
|
581
589
|
# @param [Hash] opts the optional parameters
|
|
582
|
-
# @return [
|
|
590
|
+
# @return [UpdateWaaSEndpoint200Response]
|
|
583
591
|
def update_waa_s_endpoint(app_id, endpoint_id, update_waa_s_endpoint_request, opts = {})
|
|
584
|
-
update_waa_s_endpoint_with_http_info(app_id, endpoint_id, update_waa_s_endpoint_request, opts)
|
|
585
|
-
|
|
592
|
+
data, _status_code, _headers = update_waa_s_endpoint_with_http_info(app_id, endpoint_id, update_waa_s_endpoint_request, opts)
|
|
593
|
+
data
|
|
586
594
|
end
|
|
587
595
|
|
|
588
596
|
# Update an endpoint
|
|
@@ -590,7 +598,7 @@ module Zyphr
|
|
|
590
598
|
# @param endpoint_id [String]
|
|
591
599
|
# @param update_waa_s_endpoint_request [UpdateWaaSEndpointRequest]
|
|
592
600
|
# @param [Hash] opts the optional parameters
|
|
593
|
-
# @return [Array<(
|
|
601
|
+
# @return [Array<(UpdateWaaSEndpoint200Response, Integer, Hash)>] UpdateWaaSEndpoint200Response data, response status code and response headers
|
|
594
602
|
def update_waa_s_endpoint_with_http_info(app_id, endpoint_id, update_waa_s_endpoint_request, opts = {})
|
|
595
603
|
if @api_client.config.debugging
|
|
596
604
|
@api_client.config.logger.debug 'Calling API: WaaSEndpointsApi.update_waa_s_endpoint ...'
|
|
@@ -615,6 +623,8 @@ module Zyphr
|
|
|
615
623
|
|
|
616
624
|
# header parameters
|
|
617
625
|
header_params = opts[:header_params] || {}
|
|
626
|
+
# HTTP header 'Accept' (if needed)
|
|
627
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
618
628
|
# HTTP header 'Content-Type'
|
|
619
629
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
620
630
|
if !content_type.nil?
|
|
@@ -628,7 +638,7 @@ module Zyphr
|
|
|
628
638
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_waa_s_endpoint_request)
|
|
629
639
|
|
|
630
640
|
# return_type
|
|
631
|
-
return_type = opts[:debug_return_type]
|
|
641
|
+
return_type = opts[:debug_return_type] || 'UpdateWaaSEndpoint200Response'
|
|
632
642
|
|
|
633
643
|
# auth_names
|
|
634
644
|
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
@@ -165,10 +165,10 @@ module Zyphr
|
|
|
165
165
|
# @param app_id [String]
|
|
166
166
|
# @param event_type_id [String]
|
|
167
167
|
# @param [Hash] opts the optional parameters
|
|
168
|
-
# @return [
|
|
168
|
+
# @return [UpdateWaaSEventType200Response]
|
|
169
169
|
def deprecate_waa_s_event_type(app_id, event_type_id, opts = {})
|
|
170
|
-
deprecate_waa_s_event_type_with_http_info(app_id, event_type_id, opts)
|
|
171
|
-
|
|
170
|
+
data, _status_code, _headers = deprecate_waa_s_event_type_with_http_info(app_id, event_type_id, opts)
|
|
171
|
+
data
|
|
172
172
|
end
|
|
173
173
|
|
|
174
174
|
# Deprecate an event type
|
|
@@ -176,7 +176,7 @@ module Zyphr
|
|
|
176
176
|
# @param app_id [String]
|
|
177
177
|
# @param event_type_id [String]
|
|
178
178
|
# @param [Hash] opts the optional parameters
|
|
179
|
-
# @return [Array<(
|
|
179
|
+
# @return [Array<(UpdateWaaSEventType200Response, Integer, Hash)>] UpdateWaaSEventType200Response data, response status code and response headers
|
|
180
180
|
def deprecate_waa_s_event_type_with_http_info(app_id, event_type_id, opts = {})
|
|
181
181
|
if @api_client.config.debugging
|
|
182
182
|
@api_client.config.logger.debug 'Calling API: WaaSEventTypesApi.deprecate_waa_s_event_type ...'
|
|
@@ -197,6 +197,8 @@ module Zyphr
|
|
|
197
197
|
|
|
198
198
|
# header parameters
|
|
199
199
|
header_params = opts[:header_params] || {}
|
|
200
|
+
# HTTP header 'Accept' (if needed)
|
|
201
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
200
202
|
|
|
201
203
|
# form parameters
|
|
202
204
|
form_params = opts[:form_params] || {}
|
|
@@ -205,7 +207,7 @@ module Zyphr
|
|
|
205
207
|
post_body = opts[:debug_body]
|
|
206
208
|
|
|
207
209
|
# return_type
|
|
208
|
-
return_type = opts[:debug_return_type]
|
|
210
|
+
return_type = opts[:debug_return_type] || 'UpdateWaaSEventType200Response'
|
|
209
211
|
|
|
210
212
|
# auth_names
|
|
211
213
|
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
@@ -378,10 +380,10 @@ module Zyphr
|
|
|
378
380
|
# @param event_type_id [String]
|
|
379
381
|
# @param update_waa_s_event_type_request [UpdateWaaSEventTypeRequest]
|
|
380
382
|
# @param [Hash] opts the optional parameters
|
|
381
|
-
# @return [
|
|
383
|
+
# @return [UpdateWaaSEventType200Response]
|
|
382
384
|
def update_waa_s_event_type(app_id, event_type_id, update_waa_s_event_type_request, opts = {})
|
|
383
|
-
update_waa_s_event_type_with_http_info(app_id, event_type_id, update_waa_s_event_type_request, opts)
|
|
384
|
-
|
|
385
|
+
data, _status_code, _headers = update_waa_s_event_type_with_http_info(app_id, event_type_id, update_waa_s_event_type_request, opts)
|
|
386
|
+
data
|
|
385
387
|
end
|
|
386
388
|
|
|
387
389
|
# Update an event type
|
|
@@ -389,7 +391,7 @@ module Zyphr
|
|
|
389
391
|
# @param event_type_id [String]
|
|
390
392
|
# @param update_waa_s_event_type_request [UpdateWaaSEventTypeRequest]
|
|
391
393
|
# @param [Hash] opts the optional parameters
|
|
392
|
-
# @return [Array<(
|
|
394
|
+
# @return [Array<(UpdateWaaSEventType200Response, Integer, Hash)>] UpdateWaaSEventType200Response data, response status code and response headers
|
|
393
395
|
def update_waa_s_event_type_with_http_info(app_id, event_type_id, update_waa_s_event_type_request, opts = {})
|
|
394
396
|
if @api_client.config.debugging
|
|
395
397
|
@api_client.config.logger.debug 'Calling API: WaaSEventTypesApi.update_waa_s_event_type ...'
|
|
@@ -414,6 +416,8 @@ module Zyphr
|
|
|
414
416
|
|
|
415
417
|
# header parameters
|
|
416
418
|
header_params = opts[:header_params] || {}
|
|
419
|
+
# HTTP header 'Accept' (if needed)
|
|
420
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
417
421
|
# HTTP header 'Content-Type'
|
|
418
422
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
419
423
|
if !content_type.nil?
|
|
@@ -427,7 +431,7 @@ module Zyphr
|
|
|
427
431
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_waa_s_event_type_request)
|
|
428
432
|
|
|
429
433
|
# return_type
|
|
430
|
-
return_type = opts[:debug_return_type]
|
|
434
|
+
return_type = opts[:debug_return_type] || 'UpdateWaaSEventType200Response'
|
|
431
435
|
|
|
432
436
|
# auth_names
|
|
433
437
|
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Zyphr API
|
|
3
|
+
|
|
4
|
+
#Zyphr is a multi-channel notification platform that enables developers to send emails, push notifications, SMS, and in-app messages through a unified API. ## Authentication All API requests require authentication using an API key. Include your API key in the `X-API-Key` header: ``` X-API-Key: zy_live_xxxxxxxxxxxx ``` API keys can be created in the Zyphr Dashboard. Use `zy_test_*` keys for testing and `zy_live_*` keys for production. ## Rate Limiting The API implements rate limiting to ensure fair usage. Rate limit information is included in response headers: - `X-RateLimit-Limit`: Maximum requests per window - `X-RateLimit-Remaining`: Remaining requests in current window - `X-RateLimit-Reset`: Unix timestamp when the window resets ## Account Sending Status Every authenticated response carries the account's current sending state so you can surface it in your own tooling without a separate call: - `X-Account-Sending-Status`: `active`, `throttled`, or `frozen` - `X-Account-Sending-Status-Reason`: human-readable reason (present only when the status is `throttled` or `frozen`) This header is informational and non-blocking on non-send endpoints (reads, billing, and deliverability stay available). Send-capable endpoints additionally enforce the state: a frozen account receives `403 account_frozen` and a throttled account receives `429 account_throttled`, both with the reason in the error message. ## Errors All errors follow a consistent format: ```json { \"error\": { \"code\": \"error_code\", \"message\": \"Human readable message\", \"details\": {} }, \"meta\": { \"request_id\": \"req_xxxx\" } } ```
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
Contact: support@zyphr.dev
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.12.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module Zyphr
|
|
17
|
+
class CloseWaaSEndpointCircuit200Response
|
|
18
|
+
attr_accessor :data
|
|
19
|
+
|
|
20
|
+
attr_accessor :meta
|
|
21
|
+
|
|
22
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
23
|
+
def self.attribute_map
|
|
24
|
+
{
|
|
25
|
+
:'data' => :'data',
|
|
26
|
+
:'meta' => :'meta'
|
|
27
|
+
}
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# Returns attribute mapping this model knows about
|
|
31
|
+
def self.acceptable_attribute_map
|
|
32
|
+
attribute_map
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# Returns all the JSON keys this model knows about
|
|
36
|
+
def self.acceptable_attributes
|
|
37
|
+
acceptable_attribute_map.values
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
# Attribute type mapping.
|
|
41
|
+
def self.openapi_types
|
|
42
|
+
{
|
|
43
|
+
:'data' => :'CloseWaaSEndpointCircuit200ResponseData',
|
|
44
|
+
:'meta' => :'GetDomain200ResponseMeta'
|
|
45
|
+
}
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# List of attributes with nullable: true
|
|
49
|
+
def self.openapi_nullable
|
|
50
|
+
Set.new([
|
|
51
|
+
])
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
# Initializes the object
|
|
55
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
56
|
+
def initialize(attributes = {})
|
|
57
|
+
if (!attributes.is_a?(Hash))
|
|
58
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Zyphr::CloseWaaSEndpointCircuit200Response` initialize method"
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
62
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
63
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
64
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
65
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Zyphr::CloseWaaSEndpointCircuit200Response`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
66
|
+
end
|
|
67
|
+
h[k.to_sym] = v
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
if attributes.key?(:'data')
|
|
71
|
+
self.data = attributes[:'data']
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
if attributes.key?(:'meta')
|
|
75
|
+
self.meta = attributes[:'meta']
|
|
76
|
+
end
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
80
|
+
# @return Array for valid properties with the reasons
|
|
81
|
+
def list_invalid_properties
|
|
82
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
83
|
+
invalid_properties = Array.new
|
|
84
|
+
invalid_properties
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# Check to see if the all the properties in the model are valid
|
|
88
|
+
# @return true if the model is valid
|
|
89
|
+
def valid?
|
|
90
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
91
|
+
true
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
# Checks equality by comparing each attribute.
|
|
95
|
+
# @param [Object] Object to be compared
|
|
96
|
+
def ==(o)
|
|
97
|
+
return true if self.equal?(o)
|
|
98
|
+
self.class == o.class &&
|
|
99
|
+
data == o.data &&
|
|
100
|
+
meta == o.meta
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
# @see the `==` method
|
|
104
|
+
# @param [Object] Object to be compared
|
|
105
|
+
def eql?(o)
|
|
106
|
+
self == o
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
# Calculates hash code according to all attributes.
|
|
110
|
+
# @return [Integer] Hash code
|
|
111
|
+
def hash
|
|
112
|
+
[data, meta].hash
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
# Builds the object from hash
|
|
116
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
117
|
+
# @return [Object] Returns the model itself
|
|
118
|
+
def self.build_from_hash(attributes)
|
|
119
|
+
return nil unless attributes.is_a?(Hash)
|
|
120
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
121
|
+
transformed_hash = {}
|
|
122
|
+
openapi_types.each_pair do |key, type|
|
|
123
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
124
|
+
transformed_hash["#{key}"] = nil
|
|
125
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
126
|
+
# check to ensure the input is an array given that the attribute
|
|
127
|
+
# is documented as an array but the input is not
|
|
128
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
129
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
130
|
+
end
|
|
131
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
132
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
133
|
+
end
|
|
134
|
+
end
|
|
135
|
+
new(transformed_hash)
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
# Deserializes the data based on type
|
|
139
|
+
# @param string type Data type
|
|
140
|
+
# @param string value Value to be deserialized
|
|
141
|
+
# @return [Object] Deserialized data
|
|
142
|
+
def self._deserialize(type, value)
|
|
143
|
+
case type.to_sym
|
|
144
|
+
when :Time
|
|
145
|
+
Time.parse(value)
|
|
146
|
+
when :Date
|
|
147
|
+
Date.parse(value)
|
|
148
|
+
when :String
|
|
149
|
+
value.to_s
|
|
150
|
+
when :Integer
|
|
151
|
+
value.to_i
|
|
152
|
+
when :Float
|
|
153
|
+
value.to_f
|
|
154
|
+
when :Boolean
|
|
155
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
156
|
+
true
|
|
157
|
+
else
|
|
158
|
+
false
|
|
159
|
+
end
|
|
160
|
+
when :Object
|
|
161
|
+
# generic object (usually a Hash), return directly
|
|
162
|
+
value
|
|
163
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
164
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
165
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
166
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
167
|
+
k_type = Regexp.last_match[:k_type]
|
|
168
|
+
v_type = Regexp.last_match[:v_type]
|
|
169
|
+
{}.tap do |hash|
|
|
170
|
+
value.each do |k, v|
|
|
171
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
172
|
+
end
|
|
173
|
+
end
|
|
174
|
+
else # model
|
|
175
|
+
# models (e.g. Pet) or oneOf
|
|
176
|
+
klass = Zyphr.const_get(type)
|
|
177
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
178
|
+
end
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
# Returns the string representation of the object
|
|
182
|
+
# @return [String] String presentation of the object
|
|
183
|
+
def to_s
|
|
184
|
+
to_hash.to_s
|
|
185
|
+
end
|
|
186
|
+
|
|
187
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
188
|
+
# @return [Hash] Returns the object in the form of hash
|
|
189
|
+
def to_body
|
|
190
|
+
to_hash
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
# Returns the object in the form of hash
|
|
194
|
+
# @return [Hash] Returns the object in the form of hash
|
|
195
|
+
def to_hash
|
|
196
|
+
hash = {}
|
|
197
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
198
|
+
value = self.send(attr)
|
|
199
|
+
if value.nil?
|
|
200
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
201
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
hash[param] = _to_hash(value)
|
|
205
|
+
end
|
|
206
|
+
hash
|
|
207
|
+
end
|
|
208
|
+
|
|
209
|
+
# Outputs non-array value in the form of hash
|
|
210
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
211
|
+
# @param [Object] value Any valid value
|
|
212
|
+
# @return [Hash] Returns the value in the form of hash
|
|
213
|
+
def _to_hash(value)
|
|
214
|
+
if value.is_a?(Array)
|
|
215
|
+
value.compact.map { |v| _to_hash(v) }
|
|
216
|
+
elsif value.is_a?(Hash)
|
|
217
|
+
{}.tap do |hash|
|
|
218
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
219
|
+
end
|
|
220
|
+
elsif value.respond_to? :to_hash
|
|
221
|
+
value.to_hash
|
|
222
|
+
else
|
|
223
|
+
value
|
|
224
|
+
end
|
|
225
|
+
end
|
|
226
|
+
|
|
227
|
+
end
|
|
228
|
+
|
|
229
|
+
end
|