test-test-ignore-123123 0.0.1.pre.alpha.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.
Files changed (244) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +128 -0
  3. data/lib/sink/base_client.rb +383 -0
  4. data/lib/sink/base_model.rb +203 -0
  5. data/lib/sink/client.rb +381 -0
  6. data/lib/sink/fake_page.rb +39 -0
  7. data/lib/sink/models/allof_base_parent.rb +11 -0
  8. data/lib/sink/models/allof_multiple_inline_entries.rb +15 -0
  9. data/lib/sink/models/api_status.rb +11 -0
  10. data/lib/sink/models/array_float_items_response.rb +6 -0
  11. data/lib/sink/models/array_missing_items_response.rb +11 -0
  12. data/lib/sink/models/array_object_items.rb +11 -0
  13. data/lib/sink/models/array_object_items_response.rb +11 -0
  14. data/lib/sink/models/array_recursion.rb +6 -0
  15. data/lib/sink/models/balance.rb +11 -0
  16. data/lib/sink/models/basic_shared_model_object.rb +15 -0
  17. data/lib/sink/models/body_param_top_level_all_of_response.rb +20 -0
  18. data/lib/sink/models/body_param_union_overlapping_prop_response.rb +11 -0
  19. data/lib/sink/models/card.rb +144 -0
  20. data/lib/sink/models/card_list_response.rb +26 -0
  21. data/lib/sink/models/card_provision_foo_response.rb +11 -0
  22. data/lib/sink/models/child_inlined_response_response.rb +11 -0
  23. data/lib/sink/models/child_model.rb +21 -0
  24. data/lib/sink/models/class_.rb +11 -0
  25. data/lib/sink/models/client.rb +15 -0
  26. data/lib/sink/models/company.rb +11 -0
  27. data/lib/sink/models/company_payment.rb +11 -0
  28. data/lib/sink/models/complex_query_array_query_response.rb +22 -0
  29. data/lib/sink/models/config_tool_model_ref_from_nested_response_body_response.rb +17 -0
  30. data/lib/sink/models/currency.rb +23 -0
  31. data/lib/sink/models/decorator_test_keep_me_response.rb +11 -0
  32. data/lib/sink/models/docstring_leading_double_quote_response.rb +12 -0
  33. data/lib/sink/models/docstring_trailing_double_quote_response.rb +22 -0
  34. data/lib/sink/models/documents.rb +15 -0
  35. data/lib/sink/models/eeoc.rb +11 -0
  36. data/lib/sink/models/employment_data.rb +11 -0
  37. data/lib/sink/models/enum_basic_response.rb +51 -0
  38. data/lib/sink/models/export.rb +12 -0
  39. data/lib/sink/models/funding_account.rb +73 -0
  40. data/lib/sink/models/import.rb +11 -0
  41. data/lib/sink/models/interface.rb +11 -0
  42. data/lib/sink/models/keep_this_resource_keep_this_method_response.rb +11 -0
  43. data/lib/sink/models/make_ambiguous_schemas_explicit_make_ambiguous_schemas_explicit_response.rb +31 -0
  44. data/lib/sink/models/make_ambiguous_schemas_looser_make_ambiguous_schemas_looser_response.rb +31 -0
  45. data/lib/sink/models/map_nullable_items_response.rb +19 -0
  46. data/lib/sink/models/method_config_skipped_tests_all_response.rb +11 -0
  47. data/lib/sink/models/method_config_skipped_tests_go_response.rb +11 -0
  48. data/lib/sink/models/method_config_skipped_tests_java_response.rb +11 -0
  49. data/lib/sink/models/method_config_skipped_tests_kotlin_response.rb +11 -0
  50. data/lib/sink/models/method_config_skipped_tests_node_and_python_response.rb +11 -0
  51. data/lib/sink/models/method_config_skipped_tests_node_response.rb +11 -0
  52. data/lib/sink/models/method_config_skipped_tests_python_response.rb +11 -0
  53. data/lib/sink/models/method_config_skipped_tests_ruby_response.rb +11 -0
  54. data/lib/sink/models/model_from_nested_path.rb +30 -0
  55. data/lib/sink/models/model_from_nested_response_body_ref.rb +11 -0
  56. data/lib/sink/models/model_from_schemas_ref.rb +11 -0
  57. data/lib/sink/models/model_from_schemas_ref_openapi_uri.rb +11 -0
  58. data/lib/sink/models/model_from_schemas_ref_openapi_uri_jmespath.rb +11 -0
  59. data/lib/sink/models/model_from_schemas_ref_openapi_uri_jsonpath.rb +11 -0
  60. data/lib/sink/models/model_level_1.rb +15 -0
  61. data/lib/sink/models/model_level_2.rb +15 -0
  62. data/lib/sink/models/model_level_3.rb +15 -0
  63. data/lib/sink/models/model_referenced_in_parent_and_child.rb +11 -0
  64. data/lib/sink/models/model_with_nested_model.rb +16 -0
  65. data/lib/sink/models/my_model.rb +11 -0
  66. data/lib/sink/models/name_child_prop_import_clash_response.rb +21 -0
  67. data/lib/sink/models/name_properties_common_conflicts_response.rb +59 -0
  68. data/lib/sink/models/name_properties_illegal_javascript_identifiers_response.rb +6 -0
  69. data/lib/sink/models/name_response_property_clashes_model_import_response.rb +15 -0
  70. data/lib/sink/models/name_response_shadows_pydantic_response.rb +15 -0
  71. data/lib/sink/models/nested_request_model_a.rb +11 -0
  72. data/lib/sink/models/nested_request_model_b.rb +11 -0
  73. data/lib/sink/models/nested_request_model_c.rb +17 -0
  74. data/lib/sink/models/object_missing_items_response.rb +11 -0
  75. data/lib/sink/models/object_mixed_known_and_unknown_response.rb +11 -0
  76. data/lib/sink/models/object_multiple_array_properties_same_ref_response.rb +42 -0
  77. data/lib/sink/models/object_multiple_properties_same_model_response.rb +19 -0
  78. data/lib/sink/models/object_multiple_properties_same_ref_response.rb +37 -0
  79. data/lib/sink/models/object_skipped_props.rb +27 -0
  80. data/lib/sink/models/object_two_dimensional_array_primitive_property_response.rb +23 -0
  81. data/lib/sink/models/object_with_any_of_null_property.rb +17 -0
  82. data/lib/sink/models/object_with_child_ref.rb +15 -0
  83. data/lib/sink/models/object_with_one_of_null_property.rb +17 -0
  84. data/lib/sink/models/object_with_union_properties.rb +15 -0
  85. data/lib/sink/models/openapi_format_array_type_one_entry_response.rb +11 -0
  86. data/lib/sink/models/openapi_format_array_type_one_entry_with_null_response.rb +11 -0
  87. data/lib/sink/models/openapi_special_used_used_as_property_name_response.rb +11 -0
  88. data/lib/sink/models/page_cursor_shared_ref_pagination.rb +15 -0
  89. data/lib/sink/models/parent_model_with_child_ref.rb +19 -0
  90. data/lib/sink/models/path_param_colon_suffix_response.rb +11 -0
  91. data/lib/sink/models/path_param_file_extension_response.rb +11 -0
  92. data/lib/sink/models/path_param_multiple_response.rb +11 -0
  93. data/lib/sink/models/path_param_query_param_response.rb +11 -0
  94. data/lib/sink/models/path_param_singular_response.rb +11 -0
  95. data/lib/sink/models/primitive_strings_response.rb +11 -0
  96. data/lib/sink/models/private.rb +11 -0
  97. data/lib/sink/models/public.rb +11 -0
  98. data/lib/sink/models/recursion_create_envelope_response.rb +11 -0
  99. data/lib/sink/models/response_allof_simple_response.rb +15 -0
  100. data/lib/sink/models/response_array_object_with_union_properties_response.rb +6 -0
  101. data/lib/sink/models/response_array_response_response.rb +6 -0
  102. data/lib/sink/models/response_missing_required_response.rb +15 -0
  103. data/lib/sink/models/response_nested_array_response.rb +21 -0
  104. data/lib/sink/models/response_object_all_properties_response.rb +49 -0
  105. data/lib/sink/models/response_object_no_properties_response.rb +8 -0
  106. data/lib/sink/models/response_object_with_additional_properties_prop_response.rb +17 -0
  107. data/lib/sink/models/response_object_with_heavily_nested_union_response.rb +11 -0
  108. data/lib/sink/models/response_only_read_only_properties_response.rb +16 -0
  109. data/lib/sink/models/responses_allof_cross_object.rb +15 -0
  110. data/lib/sink/models/return_.rb +11 -0
  111. data/lib/sink/models/root_response.rb +19 -0
  112. data/lib/sink/models/self_recursion.rb +15 -0
  113. data/lib/sink/models/shared_cursor_nested_response_prop_meta.rb +18 -0
  114. data/lib/sink/models/shared_self_recursion.rb +15 -0
  115. data/lib/sink/models/shipping_address.rb +62 -0
  116. data/lib/sink/models/simple_allof.rb +20 -0
  117. data/lib/sink/models/simple_object.rb +19 -0
  118. data/lib/sink/models/skip_this_resource_i_never_appear_response.rb +11 -0
  119. data/lib/sink/models/streaming_basic_response.rb +15 -0
  120. data/lib/sink/models/streaming_nested_params_response.rb +15 -0
  121. data/lib/sink/models/streaming_no_discriminator_response.rb +15 -0
  122. data/lib/sink/models/streaming_query_param_discriminator_response.rb +15 -0
  123. data/lib/sink/models/streaming_with_unrelated_default_param_response.rb +15 -0
  124. data/lib/sink/models/type_dates_response.rb +27 -0
  125. data/lib/sink/models/type_datetimes_response.rb +27 -0
  126. data/lib/sink/models/union_discriminated_variant_a.rb +19 -0
  127. data/lib/sink/models/union_discriminated_variant_b.rb +19 -0
  128. data/lib/sink/models/union_response_discriminated_by_property_name_response.rb +6 -0
  129. data/lib/sink/models/union_response_discriminated_with_basic_mapping_response.rb +6 -0
  130. data/lib/sink/models/union_type_mixed_types_response.rb +6 -0
  131. data/lib/sink/models/union_type_nullable_union_response.rb +6 -0
  132. data/lib/sink/models/union_type_objects_response.rb +6 -0
  133. data/lib/sink/models/union_type_super_mixed_types_response.rb +6 -0
  134. data/lib/sink/models/union_type_unknown_variant_response.rb +6 -0
  135. data/lib/sink/models/version_1_30_name_create_response.rb +11 -0
  136. data/lib/sink/models/widget.rb +12 -0
  137. data/lib/sink/models/write_only_response_simple_response.rb +12 -0
  138. data/lib/sink/page_cursor.rb +49 -0
  139. data/lib/sink/page_cursor_from_headers.rb +49 -0
  140. data/lib/sink/page_cursor_id.rb +45 -0
  141. data/lib/sink/page_cursor_nested_items.rb +65 -0
  142. data/lib/sink/page_cursor_nested_object_ref.rb +59 -0
  143. data/lib/sink/page_cursor_shared_ref.rb +59 -0
  144. data/lib/sink/page_cursor_top_level_array.rb +46 -0
  145. data/lib/sink/page_cursor_url.rb +46 -0
  146. data/lib/sink/page_offset.rb +49 -0
  147. data/lib/sink/page_offset_no_start_field.rb +45 -0
  148. data/lib/sink/page_offset_total_count.rb +53 -0
  149. data/lib/sink/page_page_number.rb +53 -0
  150. data/lib/sink/page_page_number_without_current_page_response.rb +45 -0
  151. data/lib/sink/pooled_net_requester.rb +63 -0
  152. data/lib/sink/request_options.rb +84 -0
  153. data/lib/sink/resources/body_params/objects.rb +31 -0
  154. data/lib/sink/resources/body_params/unions.rb +31 -0
  155. data/lib/sink/resources/body_params.rb +475 -0
  156. data/lib/sink/resources/cards.rb +488 -0
  157. data/lib/sink/resources/casing/eeoc.rb +32 -0
  158. data/lib/sink/resources/casing.rb +15 -0
  159. data/lib/sink/resources/clients.rb +27 -0
  160. data/lib/sink/resources/company/payments.rb +28 -0
  161. data/lib/sink/resources/company.rb +17 -0
  162. data/lib/sink/resources/complex_queries.rb +56 -0
  163. data/lib/sink/resources/config_tools/parent_with_skip_node_python/child_only_skip_python.rb +96 -0
  164. data/lib/sink/resources/config_tools/parent_with_skip_node_python.rb +98 -0
  165. data/lib/sink/resources/config_tools.rb +37 -0
  166. data/lib/sink/resources/decorator_tests/keep_this_resource.rb +27 -0
  167. data/lib/sink/resources/decorator_tests/languages.rb +55 -0
  168. data/lib/sink/resources/decorator_tests/skip_this_resource.rb +26 -0
  169. data/lib/sink/resources/decorator_tests.rb +36 -0
  170. data/lib/sink/resources/deeply_nested/level_one/level_two/level_three.rb +31 -0
  171. data/lib/sink/resources/deeply_nested/level_one/level_two.rb +33 -0
  172. data/lib/sink/resources/deeply_nested/level_one.rb +31 -0
  173. data/lib/sink/resources/deeply_nested.rb +15 -0
  174. data/lib/sink/resources/docstrings.rb +77 -0
  175. data/lib/sink/resources/empty_body.rb +55 -0
  176. data/lib/sink/resources/header_params.rb +33 -0
  177. data/lib/sink/resources/invalid_schemas/arrays.rb +24 -0
  178. data/lib/sink/resources/invalid_schemas/objects.rb +24 -0
  179. data/lib/sink/resources/invalid_schemas.rb +19 -0
  180. data/lib/sink/resources/make_ambiguous_schemas_explicit.rb +24 -0
  181. data/lib/sink/resources/make_ambiguous_schemas_looser.rb +24 -0
  182. data/lib/sink/resources/method_config.rb +156 -0
  183. data/lib/sink/resources/mixed_params/duplicates.rb +73 -0
  184. data/lib/sink/resources/mixed_params.rb +81 -0
  185. data/lib/sink/resources/model_referenced_in_parent_and_child/child.rb +24 -0
  186. data/lib/sink/resources/model_referenced_in_parent_and_child.rb +26 -0
  187. data/lib/sink/resources/names/can_cause_clashes/employment_data.rb +15 -0
  188. data/lib/sink/resources/names/can_cause_clashes/response.rb +30 -0
  189. data/lib/sink/resources/names/can_cause_clashes.rb +22 -0
  190. data/lib/sink/resources/names/documents.rb +26 -0
  191. data/lib/sink/resources/names/openapi_specials.rb +24 -0
  192. data/lib/sink/resources/names/params.rb +47 -0
  193. data/lib/sink/resources/names/reserved_names/import.rb +29 -0
  194. data/lib/sink/resources/names/reserved_names/methods.rb +37 -0
  195. data/lib/sink/resources/names/reserved_names/public/class_.rb +28 -0
  196. data/lib/sink/resources/names/reserved_names/public/interface.rb +28 -0
  197. data/lib/sink/resources/names/reserved_names/public/private.rb +28 -0
  198. data/lib/sink/resources/names/reserved_names/public.rb +38 -0
  199. data/lib/sink/resources/names/reserved_names.rb +43 -0
  200. data/lib/sink/resources/names.rb +139 -0
  201. data/lib/sink/resources/openapi_formats.rb +48 -0
  202. data/lib/sink/resources/pagination_tests/cursor.rb +32 -0
  203. data/lib/sink/resources/pagination_tests/items_types.rb +32 -0
  204. data/lib/sink/resources/pagination_tests/nested_items.rb +32 -0
  205. data/lib/sink/resources/pagination_tests/offset.rb +70 -0
  206. data/lib/sink/resources/pagination_tests/schema_types.rb +51 -0
  207. data/lib/sink/resources/pagination_tests.rb +31 -0
  208. data/lib/sink/resources/parent/child.rb +28 -0
  209. data/lib/sink/resources/parent.rb +17 -0
  210. data/lib/sink/resources/path_params.rb +196 -0
  211. data/lib/sink/resources/positional_params.rb +219 -0
  212. data/lib/sink/resources/query_params.rb +157 -0
  213. data/lib/sink/resources/recursion/shared_responses.rb +24 -0
  214. data/lib/sink/resources/recursion.rb +61 -0
  215. data/lib/sink/resources/resource_refs/paginated_model_first_ref.rb +13 -0
  216. data/lib/sink/resources/resource_refs/paginated_model_second_ref.rb +13 -0
  217. data/lib/sink/resources/resource_refs/parent/child.rb +29 -0
  218. data/lib/sink/resources/resource_refs/parent.rb +30 -0
  219. data/lib/sink/resources/resource_refs.rb +23 -0
  220. data/lib/sink/resources/resources.rb +24 -0
  221. data/lib/sink/resources/responses/union_types.rb +91 -0
  222. data/lib/sink/resources/responses.rb +297 -0
  223. data/lib/sink/resources/shared_query_params.rb +45 -0
  224. data/lib/sink/resources/streaming.rb +96 -0
  225. data/lib/sink/resources/testing.rb +22 -0
  226. data/lib/sink/resources/tests.rb +24 -0
  227. data/lib/sink/resources/tools.rb +30 -0
  228. data/lib/sink/resources/types/allofs.rb +13 -0
  229. data/lib/sink/resources/types/arrays.rb +57 -0
  230. data/lib/sink/resources/types/enums.rb +86 -0
  231. data/lib/sink/resources/types/maps.rb +27 -0
  232. data/lib/sink/resources/types/objects.rb +98 -0
  233. data/lib/sink/resources/types/primitives.rb +31 -0
  234. data/lib/sink/resources/types/read_only_params.rb +31 -0
  235. data/lib/sink/resources/types/unions.rb +115 -0
  236. data/lib/sink/resources/types/write_only_responses.rb +26 -0
  237. data/lib/sink/resources/types.rb +90 -0
  238. data/lib/sink/resources/undocumented_resource.rb +44 -0
  239. data/lib/sink/resources/version_1_30_names.rb +38 -0
  240. data/lib/sink/resources/widgets.rb +28 -0
  241. data/lib/sink/util.rb +78 -0
  242. data/lib/sink/version.rb +5 -0
  243. data/lib/sink.rb +253 -0
  244. metadata +301 -0
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sink
4
+ module Resources
5
+ class InvalidSchemas
6
+ class Arrays
7
+ def initialize(client:)
8
+ @client = client
9
+ end
10
+
11
+ # @param opts [Hash, Sink::RequestOptions] Options to specify HTTP behaviour for this request.
12
+ #
13
+ # @return [Sink::Models::ArrayMissingItemsResponse]
14
+ def missing_items(opts = {})
15
+ req = {}
16
+ req[:method] = :get
17
+ req[:path] = "/invalid_schemas/arrays/missing_items"
18
+ req[:model] = Sink::Models::ArrayMissingItemsResponse
19
+ @client.request(req, opts)
20
+ end
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sink
4
+ module Resources
5
+ class InvalidSchemas
6
+ class Objects
7
+ def initialize(client:)
8
+ @client = client
9
+ end
10
+
11
+ # @param opts [Hash, Sink::RequestOptions] Options to specify HTTP behaviour for this request.
12
+ #
13
+ # @return [Sink::Models::ObjectMissingItemsResponse]
14
+ def missing_items(opts = {})
15
+ req = {}
16
+ req[:method] = :get
17
+ req[:path] = "/invalid_schemas/objects/property_missing_def"
18
+ req[:model] = Sink::Models::ObjectMissingItemsResponse
19
+ @client.request(req, opts)
20
+ end
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sink
4
+ module Resources
5
+ class InvalidSchemas
6
+ # @return [Sink::Resources::InvalidSchemas::Arrays]
7
+ attr_reader :arrays
8
+
9
+ # @return [Sink::Resources::InvalidSchemas::Objects]
10
+ attr_reader :objects
11
+
12
+ def initialize(client:)
13
+ @client = client
14
+ @arrays = Sink::Resources::InvalidSchemas::Arrays.new(client: client)
15
+ @objects = Sink::Resources::InvalidSchemas::Objects.new(client: client)
16
+ end
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sink
4
+ module Resources
5
+ class MakeAmbiguousSchemasExplicit
6
+ def initialize(client:)
7
+ @client = client
8
+ end
9
+
10
+ # Test case for makeAmbiguousSchemasExplicit
11
+ #
12
+ # @param opts [Hash, Sink::RequestOptions] Options to specify HTTP behaviour for this request.
13
+ #
14
+ # @return [Sink::Models::MakeAmbiguousSchemasExplicitMakeAmbiguousSchemasExplicitResponse]
15
+ def make_ambiguous_schemas_explicit(opts = {})
16
+ req = {}
17
+ req[:method] = :get
18
+ req[:path] = "/make-ambiguous-schemas-explicit"
19
+ req[:model] = Sink::Models::MakeAmbiguousSchemasExplicitMakeAmbiguousSchemasExplicitResponse
20
+ @client.request(req, opts)
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sink
4
+ module Resources
5
+ class MakeAmbiguousSchemasLooser
6
+ def initialize(client:)
7
+ @client = client
8
+ end
9
+
10
+ # Test case for makeAmbiguousSchemasLooser
11
+ #
12
+ # @param opts [Hash, Sink::RequestOptions] Options to specify HTTP behaviour for this request.
13
+ #
14
+ # @return [Sink::Models::MakeAmbiguousSchemasLooserMakeAmbiguousSchemasLooserResponse]
15
+ def make_ambiguous_schemas_looser(opts = {})
16
+ req = {}
17
+ req[:method] = :get
18
+ req[:path] = "/make-ambiguous-schemas-looser"
19
+ req[:model] = Sink::Models::MakeAmbiguousSchemasLooserMakeAmbiguousSchemasLooserResponse
20
+ @client.request(req, opts)
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,156 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sink
4
+ module Resources
5
+ class MethodConfig
6
+ def initialize(client:)
7
+ @client = client
8
+ end
9
+
10
+ # Initiate print and shipment of a duplicate card.
11
+ #
12
+ # Only applies to cards of type `PHYSICAL` [beta].
13
+ #
14
+ # @param card_token [String]
15
+ #
16
+ # @param params [Hash] Attributes to send in this request.
17
+ # @option params [String, nil] :product_id Specifies the configuration (e.g. physical card art) that the card should be
18
+ # manufactured with, and only applies to cards of type `PHYSICAL` [beta]. This
19
+ # must be configured with Lithic before use.
20
+ # @option params [Symbol, ShippingMethod, nil] :shipping_method Shipping method for the card. Use of options besides `STANDARD` require
21
+ # additional permissions.
22
+ #
23
+ # - `STANDARD` - USPS regular mail or similar international option, with no
24
+ # tracking
25
+ # - `STANDARD_WITH_TRACKING` - USPS regular mail or similar international option,
26
+ # with tracking
27
+ # - `EXPEDITED` - FedEx Standard Overnight or similar international option, with
28
+ # tracking
29
+ # @option params [Sink::Models::ShippingAddress, nil] :shipping_address If omitted, the previous shipping address will be used.
30
+ #
31
+ # @param opts [Hash, Sink::RequestOptions] Options to specify HTTP behaviour for this request.
32
+ #
33
+ # @return [Sink::Models::Card]
34
+ def should_not_show_up_in_api_docs(card_token, params = {}, opts = {})
35
+ req = {}
36
+ req[:method] = :post
37
+ req[:path] = "/cards/#{card_token}/reissue"
38
+ req[:body] = params
39
+ req[:model] = Sink::Models::Card
40
+ @client.request(req, opts)
41
+ end
42
+
43
+ # Used to test skipping generated unit tests.
44
+ #
45
+ # @param id [String]
46
+ # @param opts [Hash, Sink::RequestOptions] Options to specify HTTP behaviour for this request.
47
+ #
48
+ # @return [Sink::Models::MethodConfigSkippedTestsAllResponse]
49
+ def skipped_tests_all(id, opts = {})
50
+ req = {}
51
+ req[:method] = :get
52
+ req[:path] = "/method_config/skipped_tests/#{id}"
53
+ req[:model] = Sink::Models::MethodConfigSkippedTestsAllResponse
54
+ @client.request(req, opts)
55
+ end
56
+
57
+ # Used to test skipping generated unit tests.
58
+ #
59
+ # @param id [String]
60
+ # @param opts [Hash, Sink::RequestOptions] Options to specify HTTP behaviour for this request.
61
+ #
62
+ # @return [Sink::Models::MethodConfigSkippedTestsGoResponse]
63
+ def skipped_tests_go(id, opts = {})
64
+ req = {}
65
+ req[:method] = :get
66
+ req[:path] = "/method_config/skipped_tests/#{id}"
67
+ req[:model] = Sink::Models::MethodConfigSkippedTestsGoResponse
68
+ @client.request(req, opts)
69
+ end
70
+
71
+ # Used to test skipping generated unit tests.
72
+ #
73
+ # @param id [String]
74
+ # @param opts [Hash, Sink::RequestOptions] Options to specify HTTP behaviour for this request.
75
+ #
76
+ # @return [Sink::Models::MethodConfigSkippedTestsJavaResponse]
77
+ def skipped_tests_java(id, opts = {})
78
+ req = {}
79
+ req[:method] = :get
80
+ req[:path] = "/method_config/skipped_tests/#{id}"
81
+ req[:model] = Sink::Models::MethodConfigSkippedTestsJavaResponse
82
+ @client.request(req, opts)
83
+ end
84
+
85
+ # Used to test skipping generated unit tests.
86
+ #
87
+ # @param id [String]
88
+ # @param opts [Hash, Sink::RequestOptions] Options to specify HTTP behaviour for this request.
89
+ #
90
+ # @return [Sink::Models::MethodConfigSkippedTestsKotlinResponse]
91
+ def skipped_tests_kotlin(id, opts = {})
92
+ req = {}
93
+ req[:method] = :get
94
+ req[:path] = "/method_config/skipped_tests/#{id}"
95
+ req[:model] = Sink::Models::MethodConfigSkippedTestsKotlinResponse
96
+ @client.request(req, opts)
97
+ end
98
+
99
+ # Used to test skipping generated unit tests.
100
+ #
101
+ # @param id [String]
102
+ # @param opts [Hash, Sink::RequestOptions] Options to specify HTTP behaviour for this request.
103
+ #
104
+ # @return [Sink::Models::MethodConfigSkippedTestsNodeResponse]
105
+ def skipped_tests_node(id, opts = {})
106
+ req = {}
107
+ req[:method] = :get
108
+ req[:path] = "/method_config/skipped_tests/#{id}"
109
+ req[:model] = Sink::Models::MethodConfigSkippedTestsNodeResponse
110
+ @client.request(req, opts)
111
+ end
112
+
113
+ # Used to test skipping generated unit tests.
114
+ #
115
+ # @param id [String]
116
+ # @param opts [Hash, Sink::RequestOptions] Options to specify HTTP behaviour for this request.
117
+ #
118
+ # @return [Sink::Models::MethodConfigSkippedTestsNodeAndPythonResponse]
119
+ def skipped_tests_node_and_python(id, opts = {})
120
+ req = {}
121
+ req[:method] = :get
122
+ req[:path] = "/method_config/skipped_tests/#{id}"
123
+ req[:model] = Sink::Models::MethodConfigSkippedTestsNodeAndPythonResponse
124
+ @client.request(req, opts)
125
+ end
126
+
127
+ # Used to test skipping generated unit tests.
128
+ #
129
+ # @param id [String]
130
+ # @param opts [Hash, Sink::RequestOptions] Options to specify HTTP behaviour for this request.
131
+ #
132
+ # @return [Sink::Models::MethodConfigSkippedTestsPythonResponse]
133
+ def skipped_tests_python(id, opts = {})
134
+ req = {}
135
+ req[:method] = :get
136
+ req[:path] = "/method_config/skipped_tests/#{id}"
137
+ req[:model] = Sink::Models::MethodConfigSkippedTestsPythonResponse
138
+ @client.request(req, opts)
139
+ end
140
+
141
+ # Used to test skipping generated unit tests.
142
+ #
143
+ # @param id [String]
144
+ # @param opts [Hash, Sink::RequestOptions] Options to specify HTTP behaviour for this request.
145
+ #
146
+ # @return [Sink::Models::MethodConfigSkippedTestsRubyResponse]
147
+ def skipped_tests_ruby(id, opts = {})
148
+ req = {}
149
+ req[:method] = :get
150
+ req[:path] = "/method_config/skipped_tests/#{id}"
151
+ req[:model] = Sink::Models::MethodConfigSkippedTestsRubyResponse
152
+ @client.request(req, opts)
153
+ end
154
+ end
155
+ end
156
+ end
@@ -0,0 +1,73 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sink
4
+ module Resources
5
+ class MixedParams
6
+ class Duplicates
7
+ def initialize(client:)
8
+ @client = client
9
+ end
10
+
11
+ # Endpoint with a `requestBody` that defines a param with the same name in path
12
+ # and body params
13
+ #
14
+ # @param path_id [String] Path param description
15
+ #
16
+ # @param params [Hash] Attributes to send in this request.
17
+ # @option params [String] :body_id Body param description
18
+ #
19
+ # @param opts [Hash, Sink::RequestOptions] Options to specify HTTP behaviour for this request.
20
+ #
21
+ # @return [Sink::Models::BasicSharedModelObject]
22
+ def body_and_path(_path_id = nil, params = {}, opts = {})
23
+ req = {}
24
+ req[:method] = :post
25
+ req[:path] = "/mixed_params/duplicates/body_and_path/#{params.fetch(:path_id)}"
26
+ req[:body] = params
27
+ req[:model] = Sink::Models::BasicSharedModelObject
28
+ @client.request(req, opts)
29
+ end
30
+
31
+ # Endpoint with a `requestBody` that defines a param with the same name in query
32
+ # and body params
33
+ #
34
+ # @param params [Hash] Attributes to send in this request.
35
+ # @option params [String] :body_id Body param: Body param description
36
+ #
37
+ # @param opts [Hash, Sink::RequestOptions] Options to specify HTTP behaviour for this request.
38
+ #
39
+ # @return [Sink::Models::BasicSharedModelObject]
40
+ def query_and_body(params = {}, opts = {})
41
+ req = {}
42
+ req[:method] = :post
43
+ req[:path] = "/mixed_params/duplicates/query_and_body"
44
+ query_params = [:query_id]
45
+ req[:query] = params.slice(*query_params)
46
+ req[:body] = params.except(*query_params)
47
+ req[:model] = Sink::Models::BasicSharedModelObject
48
+ @client.request(req, opts)
49
+ end
50
+
51
+ # Endpoint with a `requestBody` that defines a param with the same name in path
52
+ # and query params
53
+ #
54
+ # @param path_id [String] Path param description
55
+ #
56
+ # @param params [Hash] Attributes to send in this request.
57
+ # @option params [String] :query_id Query param description
58
+ #
59
+ # @param opts [Hash, Sink::RequestOptions] Options to specify HTTP behaviour for this request.
60
+ #
61
+ # @return [Sink::Models::BasicSharedModelObject]
62
+ def query_and_path(_path_id = nil, params = {}, opts = {})
63
+ req = {}
64
+ req[:method] = :post
65
+ req[:path] = "/mixed_params/duplicates/query_and_path/#{params.fetch(:path_id)}"
66
+ req[:query] = params
67
+ req[:model] = Sink::Models::BasicSharedModelObject
68
+ @client.request(req, opts)
69
+ end
70
+ end
71
+ end
72
+ end
73
+ end
@@ -0,0 +1,81 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sink
4
+ module Resources
5
+ class MixedParams
6
+ # @return [Sink::Resources::MixedParams::Duplicates]
7
+ attr_reader :duplicates
8
+
9
+ def initialize(client:)
10
+ @client = client
11
+ @duplicates = Sink::Resources::MixedParams::Duplicates.new(client: client)
12
+ end
13
+
14
+ # Endpoint with a `requestBody` making use of oneOf, and a path param.
15
+ #
16
+ # See
17
+ # https://linear.app/stainless/issue/STA-4902/orb-java-unresolved-reference-customerid-externalcustomerid
18
+ #
19
+ # @param path_param [String]
20
+ #
21
+ # @param params [Hash] Attributes to send in this request.
22
+ # @option params [Symbol, Kind] :kind
23
+ # @option params [String] :bar
24
+ # @option params [String] :foo
25
+ #
26
+ # @param opts [Hash, Sink::RequestOptions] Options to specify HTTP behaviour for this request.
27
+ #
28
+ # @return [nil]
29
+ def body_with_top_level_one_of_and_path(path_param, params = {}, opts = {})
30
+ req = {}
31
+ req[:method] = :post
32
+ req[:path] = "/mixed_params/body_with_top_level_one_of_and_path/#{path_param}"
33
+ req[:body] = params
34
+ req[:model] = NilClass
35
+ @client.request(req, opts)
36
+ end
37
+
38
+ # Endpoint with a `requestBody` that defines both query and body params
39
+ #
40
+ # @param params [Hash] Attributes to send in this request.
41
+ # @option params [String, nil] :query_param Query param: Query param description
42
+ # @option params [String, nil] :body_param Body param: Body param description
43
+ #
44
+ # @param opts [Hash, Sink::RequestOptions] Options to specify HTTP behaviour for this request.
45
+ #
46
+ # @return [Sink::Models::BasicSharedModelObject]
47
+ def query_and_body(params = {}, opts = {})
48
+ req = {}
49
+ req[:method] = :post
50
+ req[:path] = "/mixed_params/query_and_body"
51
+ query_params = [:query_param]
52
+ req[:query] = params.slice(*query_params)
53
+ req[:body] = params.except(*query_params)
54
+ req[:model] = Sink::Models::BasicSharedModelObject
55
+ @client.request(req, opts)
56
+ end
57
+
58
+ # Endpoint with a `requestBody` that defines query, body and path params
59
+ #
60
+ # @param path_param [String] Path param: Path param description
61
+ #
62
+ # @param params [Hash] Attributes to send in this request.
63
+ # @option params [String, nil] :query_param Query param: Query param description
64
+ # @option params [String, nil] :body_param Body param: Body param description
65
+ #
66
+ # @param opts [Hash, Sink::RequestOptions] Options to specify HTTP behaviour for this request.
67
+ #
68
+ # @return [Sink::Models::BasicSharedModelObject]
69
+ def query_body_and_path(path_param = nil, params = {}, opts = {})
70
+ req = {}
71
+ req[:method] = :post
72
+ req[:path] = "/mixed_params/query_body_and_path/#{path_param}"
73
+ query_params = [:query_param]
74
+ req[:query] = params.slice(*query_params)
75
+ req[:body] = params.except(*query_params)
76
+ req[:model] = Sink::Models::BasicSharedModelObject
77
+ @client.request(req, opts)
78
+ end
79
+ end
80
+ end
81
+ end
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sink
4
+ module Resources
5
+ class ModelReferencedInParentAndChild
6
+ class Child
7
+ def initialize(client:)
8
+ @client = client
9
+ end
10
+
11
+ # @param opts [Hash, Sink::RequestOptions] Options to specify HTTP behaviour for this request.
12
+ #
13
+ # @return [Sink::Models::ModelReferencedInParentAndChild]
14
+ def retrieve(opts = {})
15
+ req = {}
16
+ req[:method] = :get
17
+ req[:path] = "/model_referenced_in_parent_and_child/child"
18
+ req[:model] = Sink::Models::ModelReferencedInParentAndChild
19
+ @client.request(req, opts)
20
+ end
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,26 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sink
4
+ module Resources
5
+ class ModelReferencedInParentAndChild
6
+ # @return [Sink::Resources::ModelReferencedInParentAndChild::Child]
7
+ attr_reader :child
8
+
9
+ def initialize(client:)
10
+ @client = client
11
+ @child = Sink::Resources::ModelReferencedInParentAndChild::Child.new(client: client)
12
+ end
13
+
14
+ # @param opts [Hash, Sink::RequestOptions] Options to specify HTTP behaviour for this request.
15
+ #
16
+ # @return [Sink::Models::ModelReferencedInParentAndChild]
17
+ def retrieve(opts = {})
18
+ req = {}
19
+ req[:method] = :get
20
+ req[:path] = "/model_referenced_in_parent_and_child"
21
+ req[:model] = Sink::Models::ModelReferencedInParentAndChild
22
+ @client.request(req, opts)
23
+ end
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sink
4
+ module Resources
5
+ class Names
6
+ class CanCauseClashes
7
+ class EmploymentData
8
+ def initialize(client:)
9
+ @client = client
10
+ end
11
+ end
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,30 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sink
4
+ module Resources
5
+ class Names
6
+ class CanCauseClashes
7
+ # The `Response` class name can cause clashes with imports.
8
+ class Response
9
+ def initialize(client:)
10
+ @client = client
11
+ end
12
+
13
+ # Return a binary response.
14
+ #
15
+ # @param opts [Hash, Sink::RequestOptions] Options to specify HTTP behaviour for this request.
16
+ #
17
+ # @return [Object]
18
+ def binary_return(opts = {})
19
+ req = {}
20
+ req[:method] = :get
21
+ req[:path] = "/binaries/return_binary"
22
+ req[:headers] = {"Accept" => "audio/mpeg"}
23
+ req[:model] = Sink::Unknown
24
+ @client.request(req, opts)
25
+ end
26
+ end
27
+ end
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sink
4
+ module Resources
5
+ class Names
6
+ class CanCauseClashes
7
+ # @return [Sink::Resources::Names::CanCauseClashes::EmploymentData]
8
+ attr_reader :employment_data
9
+
10
+ # The `Response` class name can cause clashes with imports.
11
+ # @return [Sink::Resources::Names::CanCauseClashes::Response]
12
+ attr_reader :response
13
+
14
+ def initialize(client:)
15
+ @client = client
16
+ @employment_data = Sink::Resources::Names::CanCauseClashes::EmploymentData.new(client: client)
17
+ @response = Sink::Resources::Names::CanCauseClashes::Response.new(client: client)
18
+ end
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,26 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sink
4
+ module Resources
5
+ class Names
6
+ class Documents
7
+ def initialize(client:)
8
+ @client = client
9
+ end
10
+
11
+ # Endpoint with a response model that can clash with the resource class in Python.
12
+ #
13
+ # @param opts [Hash, Sink::RequestOptions] Options to specify HTTP behaviour for this request.
14
+ #
15
+ # @return [Sink::Models::Documents]
16
+ def retrieve(opts = {})
17
+ req = {}
18
+ req[:method] = :post
19
+ req[:path] = "/names/model_import_clash_with_resource"
20
+ req[:model] = Sink::Models::Documents
21
+ @client.request(req, opts)
22
+ end
23
+ end
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sink
4
+ module Resources
5
+ class Names
6
+ class OpenAPISpecials
7
+ def initialize(client:)
8
+ @client = client
9
+ end
10
+
11
+ # @param opts [Hash, Sink::RequestOptions] Options to specify HTTP behaviour for this request.
12
+ #
13
+ # @return [Sink::Models::OpenAPISpecialUsedUsedAsPropertyNameResponse]
14
+ def used_used_as_property_name(opts = {})
15
+ req = {}
16
+ req[:method] = :get
17
+ req[:path] = "/names/openapi_specials/used_used_as_property_name"
18
+ req[:model] = Sink::Models::OpenAPISpecialUsedUsedAsPropertyNameResponse
19
+ @client.request(req, opts)
20
+ end
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,47 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sink
4
+ module Resources
5
+ class Names
6
+ class Params
7
+ def initialize(client:)
8
+ @client = client
9
+ end
10
+
11
+ # Endpoint with a `requestBody` that has a property named `options`
12
+ #
13
+ # @param params [Hash] Attributes to send in this request.
14
+ # @option params [String, nil] :options my options request parameter
15
+ #
16
+ # @param opts [Hash, Sink::RequestOptions] Options to specify HTTP behaviour for this request.
17
+ #
18
+ # @return [nil]
19
+ def options_param(params = {}, opts = {})
20
+ req = {}
21
+ req[:method] = :post
22
+ req[:path] = "/names/body_params/options"
23
+ req[:body] = params
24
+ req[:model] = NilClass
25
+ @client.request(req, opts)
26
+ end
27
+
28
+ # Endpoint with a `requestBody` that has a property named `timeout`
29
+ #
30
+ # @param params [Hash] Attributes to send in this request.
31
+ # @option params [Float, nil] :timeout my timeout request parameter
32
+ #
33
+ # @param opts [Hash, Sink::RequestOptions] Options to specify HTTP behaviour for this request.
34
+ #
35
+ # @return [nil]
36
+ def timeout_param(params = {}, opts = {})
37
+ req = {}
38
+ req[:method] = :post
39
+ req[:path] = "/names/body_params/timeout"
40
+ req[:body] = params
41
+ req[:model] = NilClass
42
+ @client.request(req, opts)
43
+ end
44
+ end
45
+ end
46
+ end
47
+ end
@@ -0,0 +1,29 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sink
4
+ module Resources
5
+ class Names
6
+ class ReservedNames
7
+ class Import
8
+ def initialize(client:)
9
+ @client = client
10
+ end
11
+
12
+ # Endpoint that is named `import` in the config which can cause issues in certain
13
+ # languages.
14
+ #
15
+ # @param opts [Hash, Sink::RequestOptions] Options to specify HTTP behaviour for this request.
16
+ #
17
+ # @return [Sink::Models::Import]
18
+ def import(opts = {})
19
+ req = {}
20
+ req[:method] = :get
21
+ req[:path] = "/names/reserved_names/import"
22
+ req[:model] = Sink::Models::Import
23
+ @client.request(req, opts)
24
+ end
25
+ end
26
+ end
27
+ end
28
+ end
29
+ end