aws-sdk-sagemakertrainingsessionruntime 1.0.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.
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ require 'aws-sdk-core/waiters'
11
+
12
+ module Aws::SageMakerTrainingSessionRuntime
13
+ module Waiters
14
+ end
15
+ end
@@ -0,0 +1,79 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+
11
+ require 'aws-sdk-core'
12
+ require 'aws-sigv4'
13
+
14
+ Aws::Plugins::GlobalConfiguration.add_identifier(:sagemakertrainingsessionruntime)
15
+
16
+ # This module provides support for SageMaker Training Session Runtime. This module is available in the
17
+ # `aws-sdk-sagemakertrainingsessionruntime` gem.
18
+ #
19
+ # # Client
20
+ #
21
+ # The {Client} class provides one method for each API operation. Operation
22
+ # methods each accept a hash of request parameters and return a response
23
+ # structure.
24
+ #
25
+ # sage_maker_training_session_runtime = Aws::SageMakerTrainingSessionRuntime::Client.new
26
+ # resp = sage_maker_training_session_runtime.execute_sampling_operation(params)
27
+ #
28
+ # See {Client} for more information.
29
+ #
30
+ # # Async Client
31
+ #
32
+ # The {AsyncClient} class provides one asynchronous method for each API operation.
33
+ # Operation methods each accept a hash of request parameters and return an async
34
+ # response. For streaming operations, you can signal input events and register
35
+ # output event callbacks before waiting on the response.
36
+ #
37
+ # sage_maker_training_session_runtime = Aws::SageMakerTrainingSessionRuntime::AsyncClient.new
38
+ # resp = sage_maker_training_session_runtime.execute_sampling_operation(
39
+ # # params and input stream
40
+ # ) do |output_stream|
41
+ # # register callbacks for events
42
+ # end
43
+ #
44
+ # See {AsyncClient} for more information.
45
+ #
46
+ # # Errors
47
+ #
48
+ # Errors returned from SageMaker Training Session Runtime are defined in the
49
+ # {Errors} module and all extend {Errors::ServiceError}.
50
+ #
51
+ # begin
52
+ # # do stuff
53
+ # rescue Aws::SageMakerTrainingSessionRuntime::Errors::ServiceError
54
+ # # rescues all SageMaker Training Session Runtime API errors
55
+ # end
56
+ #
57
+ # See {Errors} for more information.
58
+ #
59
+ # @!group service
60
+ module Aws::SageMakerTrainingSessionRuntime
61
+ autoload :Types, 'aws-sdk-sagemakertrainingsessionruntime/types'
62
+ autoload :ClientApi, 'aws-sdk-sagemakertrainingsessionruntime/client_api'
63
+ module Plugins
64
+ autoload :Endpoints, 'aws-sdk-sagemakertrainingsessionruntime/plugins/endpoints.rb'
65
+ end
66
+ autoload :Client, 'aws-sdk-sagemakertrainingsessionruntime/client'
67
+ autoload :Errors, 'aws-sdk-sagemakertrainingsessionruntime/errors'
68
+ autoload :Waiters, 'aws-sdk-sagemakertrainingsessionruntime/waiters'
69
+ autoload :Resource, 'aws-sdk-sagemakertrainingsessionruntime/resource'
70
+ autoload :EndpointParameters, 'aws-sdk-sagemakertrainingsessionruntime/endpoint_parameters'
71
+ autoload :EndpointProvider, 'aws-sdk-sagemakertrainingsessionruntime/endpoint_provider'
72
+ autoload :Endpoints, 'aws-sdk-sagemakertrainingsessionruntime/endpoints'
73
+ autoload :AsyncClient, 'aws-sdk-sagemakertrainingsessionruntime/async_client'
74
+
75
+ GEM_VERSION = '1.0.0'
76
+
77
+ end
78
+
79
+ require_relative 'aws-sdk-sagemakertrainingsessionruntime/customizations'
@@ -0,0 +1,68 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module SageMakerTrainingSessionRuntime
10
+ class AsyncClient < ::Seahorse::Client::AsyncBase
11
+ include ::Aws::AsyncClientStubs
12
+
13
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SageMakerTrainingSessionRuntime/AsyncClient.html#initialize-instance_method
14
+ def self.new: (
15
+ ?credentials: untyped,
16
+ ?region: String,
17
+ ?access_key_id: String,
18
+ ?account_id: String,
19
+ ?adaptive_retry_wait_to_fill: bool,
20
+ ?auth_scheme_preference: Array[String],
21
+ ?convert_params: bool,
22
+ ?correct_clock_skew: bool,
23
+ ?defaults_mode: String,
24
+ ?disable_request_compression: bool,
25
+ ?endpoint: String,
26
+ ?ignore_configured_endpoint_urls: bool,
27
+ ?log_formatter: untyped,
28
+ ?log_level: Symbol,
29
+ ?logger: untyped,
30
+ ?max_attempts: Integer,
31
+ ?profile: String,
32
+ ?request_checksum_calculation: String,
33
+ ?request_min_compression_size_bytes: Integer,
34
+ ?response_checksum_validation: String,
35
+ ?retry_backoff: Proc,
36
+ ?retry_base_delay: Float,
37
+ ?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
38
+ ?retry_limit: Integer,
39
+ ?retry_max_delay: Integer,
40
+ ?retry_mode: ("legacy" | "standard" | "adaptive"),
41
+ ?sdk_ua_app_id: String,
42
+ ?secret_access_key: String,
43
+ ?session_token: String,
44
+ ?sigv4a_signing_region_set: Array[String],
45
+ ?stub_responses: untyped,
46
+ ?telemetry_provider: Aws::Telemetry::TelemetryProviderBase,
47
+ ?token_provider: untyped,
48
+ ?use_dualstack_endpoint: bool,
49
+ ?use_fips_endpoint: bool,
50
+ ?validate_params: bool,
51
+ ?endpoint_provider: untyped,
52
+ ?connection_read_timeout: (Float | Integer),
53
+ ?connection_timeout: (Float | Integer),
54
+ ?enable_alpn: bool,
55
+ ?max_concurrent_streams: (Float | Integer),
56
+ ?read_chunk_size: (Float | Integer),
57
+ ?http_wire_trace: bool,
58
+ ?ssl_verify_peer: bool,
59
+ ?ssl_ca_bundle: String,
60
+ ?ssl_ca_directory: String,
61
+ ?ssl_ca_store: String,
62
+ ?raise_response_errors: bool
63
+ ) -> instance
64
+ | (?Hash[Symbol, untyped]) -> instance
65
+
66
+ end
67
+ end
68
+ end
data/sig/client.rbs ADDED
@@ -0,0 +1,240 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module SageMakerTrainingSessionRuntime
10
+ class Client < ::Seahorse::Client::Base
11
+ include ::Aws::ClientStubs
12
+
13
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SageMakerTrainingSessionRuntime/Client.html#initialize-instance_method
14
+ def self.new: (
15
+ ?credentials: untyped,
16
+ ?region: String,
17
+ ?access_key_id: String,
18
+ ?account_id: String,
19
+ ?active_endpoint_cache: bool,
20
+ ?adaptive_retry_wait_to_fill: bool,
21
+ ?auth_scheme_preference: Array[String],
22
+ ?client_side_monitoring: bool,
23
+ ?client_side_monitoring_client_id: String,
24
+ ?client_side_monitoring_host: String,
25
+ ?client_side_monitoring_port: Integer,
26
+ ?client_side_monitoring_publisher: untyped,
27
+ ?convert_params: bool,
28
+ ?correct_clock_skew: bool,
29
+ ?defaults_mode: String,
30
+ ?disable_host_prefix_injection: bool,
31
+ ?disable_request_compression: bool,
32
+ ?endpoint: String,
33
+ ?endpoint_cache_max_entries: Integer,
34
+ ?endpoint_cache_max_threads: Integer,
35
+ ?endpoint_cache_poll_interval: Integer,
36
+ ?endpoint_discovery: bool,
37
+ ?ignore_configured_endpoint_urls: bool,
38
+ ?log_formatter: untyped,
39
+ ?log_level: Symbol,
40
+ ?logger: untyped,
41
+ ?max_attempts: Integer,
42
+ ?profile: String,
43
+ ?request_checksum_calculation: String,
44
+ ?request_min_compression_size_bytes: Integer,
45
+ ?response_checksum_validation: String,
46
+ ?retry_backoff: Proc,
47
+ ?retry_base_delay: Float,
48
+ ?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
49
+ ?retry_limit: Integer,
50
+ ?retry_max_delay: Integer,
51
+ ?retry_mode: ("legacy" | "standard" | "adaptive"),
52
+ ?sdk_ua_app_id: String,
53
+ ?secret_access_key: String,
54
+ ?session_token: String,
55
+ ?sigv4a_signing_region_set: Array[String],
56
+ ?stub_responses: untyped,
57
+ ?telemetry_provider: Aws::Telemetry::TelemetryProviderBase,
58
+ ?token_provider: untyped,
59
+ ?use_dualstack_endpoint: bool,
60
+ ?use_fips_endpoint: bool,
61
+ ?validate_params: bool,
62
+ ?endpoint_provider: untyped,
63
+ ?http_proxy: String,
64
+ ?http_open_timeout: (Float | Integer),
65
+ ?http_read_timeout: (Float | Integer),
66
+ ?http_idle_timeout: (Float | Integer),
67
+ ?http_continue_timeout: (Float | Integer),
68
+ ?ssl_timeout: (Float | Integer | nil),
69
+ ?http_wire_trace: bool,
70
+ ?ssl_verify_peer: bool,
71
+ ?ssl_ca_bundle: String,
72
+ ?ssl_ca_directory: String,
73
+ ?ssl_ca_store: String,
74
+ ?on_chunk_received: Proc,
75
+ ?on_chunk_sent: Proc,
76
+ ?raise_response_errors: bool
77
+ ) -> instance
78
+ | (?Hash[Symbol, untyped]) -> instance
79
+
80
+
81
+ interface _ExecuteSamplingOperationResponseSuccess
82
+ include ::Seahorse::Client::_ResponseSuccess[Types::ExecuteSamplingOperationOutput]
83
+ def operation_id: () -> ::String
84
+ end
85
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SageMakerTrainingSessionRuntime/Client.html#execute_sampling_operation-instance_method
86
+ def execute_sampling_operation: (
87
+ training_session_name: ::String,
88
+ operation_config: {
89
+ sample: {
90
+ prompt: {
91
+ chunks: Array[
92
+ {
93
+ tokens: Array[::Integer],
94
+ type: ("encoded_text")
95
+ }
96
+ ]
97
+ },
98
+ num_samples: ::Integer,
99
+ sampling_params: {
100
+ max_tokens: ::Integer,
101
+ temperature: ::Float?,
102
+ top_k: ::Integer?,
103
+ top_p: ::Float?,
104
+ seed: ::Integer?,
105
+ stop: Array[::String]?
106
+ },
107
+ include_prompt_logprobs: bool?,
108
+ topk_prompt_logprobs: ::Integer?,
109
+ model_package_arn: ::String?
110
+ }?,
111
+ compute_logprobs: {
112
+ prompt: {
113
+ chunks: Array[
114
+ {
115
+ tokens: Array[::Integer],
116
+ type: ("encoded_text")
117
+ }
118
+ ]
119
+ },
120
+ model_package_arn: ::String?
121
+ }?,
122
+ load_weights_for_sampling: {
123
+ model_package_arn: ::String
124
+ }?
125
+ }
126
+ ) -> _ExecuteSamplingOperationResponseSuccess
127
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ExecuteSamplingOperationResponseSuccess
128
+
129
+ interface _ExecuteTrainingOperationResponseSuccess
130
+ include ::Seahorse::Client::_ResponseSuccess[Types::ExecuteTrainingOperationOutput]
131
+ def operation_id: () -> ::String
132
+ end
133
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SageMakerTrainingSessionRuntime/Client.html#execute_training_operation-instance_method
134
+ def execute_training_operation: (
135
+ training_session_name: ::String,
136
+ sequence_number: ::Integer,
137
+ ?client_token: ::String,
138
+ operation_config: {
139
+ forward: {
140
+ loss_fn_name: ("cross_entropy" | "importance_sampling" | "ppo" | "cispo"),
141
+ datum_list: Array[
142
+ Params::datum
143
+ ],
144
+ loss_fn_config: {
145
+ }?
146
+ }?,
147
+ forward_backward: {
148
+ loss_fn_name: ("cross_entropy" | "importance_sampling" | "ppo" | "cispo"),
149
+ datum_list: Array[
150
+ Params::datum
151
+ ],
152
+ loss_fn_config: {
153
+ }?
154
+ }?,
155
+ optimizer_step: {
156
+ adam_params_config: {
157
+ learning_rate: ::Float,
158
+ beta1: ::Float?,
159
+ beta2: ::Float?,
160
+ eps: ::Float?,
161
+ weight_decay: ::Float?,
162
+ grad_clip_norm: ::Float?,
163
+ lora_plus_lr_ratio: ::Float?
164
+ }
165
+ }?,
166
+ save_weights: {
167
+ merge_weights: bool?,
168
+ description: ::String?
169
+ }?,
170
+ save_state: {
171
+ description: ::String?
172
+ }?,
173
+ load_state: {
174
+ model_package_arn: ::String,
175
+ load_optimizer: bool
176
+ }?
177
+ }
178
+ ) -> _ExecuteTrainingOperationResponseSuccess
179
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ExecuteTrainingOperationResponseSuccess
180
+
181
+ interface _GetSamplingOperationResultResponseSuccess
182
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetSamplingOperationResultOutput]
183
+ def status: () -> ("Pending" | "InProgress" | "Completed" | "Failed" | "Skipped")
184
+ def operation_result: () -> Types::SampleOperationResult
185
+ def error_details: () -> ::String
186
+ end
187
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SageMakerTrainingSessionRuntime/Client.html#get_sampling_operation_result-instance_method
188
+ def get_sampling_operation_result: (
189
+ training_session_name: ::String,
190
+ operation_id: ::String
191
+ ) -> _GetSamplingOperationResultResponseSuccess
192
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetSamplingOperationResultResponseSuccess
193
+
194
+ interface _GetTrainingOperationResultResponseSuccess
195
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetTrainingOperationResultOutput]
196
+ def status: () -> ("Pending" | "InProgress" | "Completed" | "Failed" | "Skipped")
197
+ def operation_result: () -> Types::OperationResult
198
+ def error_details: () -> ::String
199
+ def token_usage: () -> Types::TrainingTokenUsage
200
+ end
201
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SageMakerTrainingSessionRuntime/Client.html#get_training_operation_result-instance_method
202
+ def get_training_operation_result: (
203
+ training_session_name: ::String,
204
+ operation_id: ::String
205
+ ) -> _GetTrainingOperationResultResponseSuccess
206
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetTrainingOperationResultResponseSuccess
207
+
208
+ interface _SampleTrainingSessionResponseSuccess
209
+ include ::Seahorse::Client::_ResponseSuccess[Types::SampleTrainingSessionOutput]
210
+ def content_type: () -> ::String
211
+ def body: () -> ::String
212
+ end
213
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SageMakerTrainingSessionRuntime/Client.html#sample_training_session-instance_method
214
+ def sample_training_session: (
215
+ training_session_name: ::String,
216
+ ?content_type: ::String,
217
+ ?accept: ::String,
218
+ ?model_package_arn: ::String,
219
+ ?body: ::String
220
+ ) -> _SampleTrainingSessionResponseSuccess
221
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _SampleTrainingSessionResponseSuccess
222
+
223
+ interface _SampleTrainingSessionWithResponseStreamResponseSuccess
224
+ include ::Seahorse::Client::_ResponseSuccess[Types::SampleTrainingSessionWithResponseStreamOutput]
225
+ def content_type: () -> ::String
226
+ def body: () -> ::IO
227
+ end
228
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SageMakerTrainingSessionRuntime/Client.html#sample_training_session_with_response_stream-instance_method
229
+ def sample_training_session_with_response_stream: (
230
+ training_session_name: ::String,
231
+ ?content_type: ::String,
232
+ ?accept: ::String,
233
+ ?model_package_arn: ::String,
234
+ ?body: ::String
235
+ ) ?{ (*untyped) -> void } -> _SampleTrainingSessionWithResponseStreamResponseSuccess
236
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) ?{ (*untyped) -> void } -> _SampleTrainingSessionWithResponseStreamResponseSuccess
237
+ end
238
+ end
239
+ end
240
+
data/sig/errors.rbs ADDED
@@ -0,0 +1,31 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module SageMakerTrainingSessionRuntime
10
+ module Errors
11
+ class ServiceError < ::Aws::Errors::ServiceError
12
+ end
13
+
14
+ class ConflictException < ::Aws::Errors::ServiceError
15
+ def message: () -> ::String
16
+ end
17
+ class InternalServerException < ::Aws::Errors::ServiceError
18
+ def message: () -> ::String
19
+ end
20
+ class ResourceNotFoundException < ::Aws::Errors::ServiceError
21
+ def message: () -> ::String
22
+ end
23
+ class ThrottlingException < ::Aws::Errors::ServiceError
24
+ def message: () -> ::String
25
+ end
26
+ class ValidationException < ::Aws::Errors::ServiceError
27
+ def message: () -> ::String
28
+ end
29
+ end
30
+ end
31
+ end
data/sig/params.rbs ADDED
@@ -0,0 +1,30 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module SageMakerTrainingSessionRuntime
10
+ module Params
11
+ type datum = {
12
+ model_input: {
13
+ chunks: Array[
14
+ {
15
+ tokens: Array[::Integer],
16
+ type: ("encoded_text")
17
+ }
18
+ ]
19
+ },
20
+ loss_fn_inputs: Hash[::String, {
21
+ data: {
22
+ },
23
+ dtype: ::String,
24
+ shape: Array[::Integer]?
25
+ }]?
26
+ }
27
+
28
+ end
29
+ end
30
+ end
data/sig/resource.rbs ADDED
@@ -0,0 +1,85 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module SageMakerTrainingSessionRuntime
10
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SageMakerTrainingSessionRuntime/Resource.html
11
+ class Resource
12
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SageMakerTrainingSessionRuntime/Resource.html#initialize-instance_method
13
+ def initialize: (
14
+ ?client: Client,
15
+ ?credentials: untyped,
16
+ ?region: String,
17
+ ?access_key_id: String,
18
+ ?account_id: String,
19
+ ?active_endpoint_cache: bool,
20
+ ?adaptive_retry_wait_to_fill: bool,
21
+ ?auth_scheme_preference: Array[String],
22
+ ?client_side_monitoring: bool,
23
+ ?client_side_monitoring_client_id: String,
24
+ ?client_side_monitoring_host: String,
25
+ ?client_side_monitoring_port: Integer,
26
+ ?client_side_monitoring_publisher: untyped,
27
+ ?convert_params: bool,
28
+ ?correct_clock_skew: bool,
29
+ ?defaults_mode: String,
30
+ ?disable_host_prefix_injection: bool,
31
+ ?disable_request_compression: bool,
32
+ ?endpoint: String,
33
+ ?endpoint_cache_max_entries: Integer,
34
+ ?endpoint_cache_max_threads: Integer,
35
+ ?endpoint_cache_poll_interval: Integer,
36
+ ?endpoint_discovery: bool,
37
+ ?ignore_configured_endpoint_urls: bool,
38
+ ?log_formatter: untyped,
39
+ ?log_level: Symbol,
40
+ ?logger: untyped,
41
+ ?max_attempts: Integer,
42
+ ?profile: String,
43
+ ?request_checksum_calculation: String,
44
+ ?request_min_compression_size_bytes: Integer,
45
+ ?response_checksum_validation: String,
46
+ ?retry_backoff: Proc,
47
+ ?retry_base_delay: Float,
48
+ ?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
49
+ ?retry_limit: Integer,
50
+ ?retry_max_delay: Integer,
51
+ ?retry_mode: ("legacy" | "standard" | "adaptive"),
52
+ ?sdk_ua_app_id: String,
53
+ ?secret_access_key: String,
54
+ ?session_token: String,
55
+ ?sigv4a_signing_region_set: Array[String],
56
+ ?stub_responses: untyped,
57
+ ?telemetry_provider: Aws::Telemetry::TelemetryProviderBase,
58
+ ?token_provider: untyped,
59
+ ?use_dualstack_endpoint: bool,
60
+ ?use_fips_endpoint: bool,
61
+ ?validate_params: bool,
62
+ ?endpoint_provider: untyped,
63
+ ?http_proxy: String,
64
+ ?http_open_timeout: (Float | Integer),
65
+ ?http_read_timeout: (Float | Integer),
66
+ ?http_idle_timeout: (Float | Integer),
67
+ ?http_continue_timeout: (Float | Integer),
68
+ ?ssl_timeout: (Float | Integer | nil),
69
+ ?http_wire_trace: bool,
70
+ ?ssl_verify_peer: bool,
71
+ ?ssl_ca_bundle: String,
72
+ ?ssl_ca_directory: String,
73
+ ?ssl_ca_store: String,
74
+ ?on_chunk_received: Proc,
75
+ ?on_chunk_sent: Proc,
76
+ ?raise_response_errors: bool
77
+ ) -> void
78
+ | (?Hash[Symbol, untyped]) -> void
79
+
80
+ def client: () -> Client
81
+
82
+
83
+ end
84
+ end
85
+ end