aws-sdk-chimesdkvoice 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +8 -0
- data/LICENSE.txt +202 -0
- data/VERSION +1 -0
- data/lib/aws-sdk-chimesdkvoice/client.rb +2917 -0
- data/lib/aws-sdk-chimesdkvoice/client_api.rb +2264 -0
- data/lib/aws-sdk-chimesdkvoice/customizations.rb +0 -0
- data/lib/aws-sdk-chimesdkvoice/endpoint_parameters.rb +66 -0
- data/lib/aws-sdk-chimesdkvoice/endpoint_provider.rb +111 -0
- data/lib/aws-sdk-chimesdkvoice/endpoints.rb +1051 -0
- data/lib/aws-sdk-chimesdkvoice/errors.rb +148 -0
- data/lib/aws-sdk-chimesdkvoice/plugins/endpoints.rb +216 -0
- data/lib/aws-sdk-chimesdkvoice/resource.rb +26 -0
- data/lib/aws-sdk-chimesdkvoice/types.rb +3517 -0
- data/lib/aws-sdk-chimesdkvoice.rb +57 -0
- metadata +94 -0
@@ -0,0 +1,148 @@
|
|
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
|
+
module Aws::ChimeSDKVoice
|
11
|
+
|
12
|
+
# When ChimeSDKVoice returns an error response, the Ruby SDK constructs and raises an error.
|
13
|
+
# These errors all extend Aws::ChimeSDKVoice::Errors::ServiceError < {Aws::Errors::ServiceError}
|
14
|
+
#
|
15
|
+
# You can rescue all ChimeSDKVoice errors using ServiceError:
|
16
|
+
#
|
17
|
+
# begin
|
18
|
+
# # do stuff
|
19
|
+
# rescue Aws::ChimeSDKVoice::Errors::ServiceError
|
20
|
+
# # rescues all ChimeSDKVoice API errors
|
21
|
+
# end
|
22
|
+
#
|
23
|
+
#
|
24
|
+
# ## Request Context
|
25
|
+
# ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
|
26
|
+
# information about the request that generated the error.
|
27
|
+
# See {Seahorse::Client::RequestContext} for more information.
|
28
|
+
#
|
29
|
+
# ## Error Classes
|
30
|
+
# * {AccessDeniedException}
|
31
|
+
# * {BadRequestException}
|
32
|
+
# * {ConflictException}
|
33
|
+
# * {ForbiddenException}
|
34
|
+
# * {NotFoundException}
|
35
|
+
# * {ResourceLimitExceededException}
|
36
|
+
# * {ServiceFailureException}
|
37
|
+
# * {ServiceUnavailableException}
|
38
|
+
# * {ThrottledClientException}
|
39
|
+
# * {UnauthorizedClientException}
|
40
|
+
#
|
41
|
+
# Additionally, error classes are dynamically generated for service errors based on the error code
|
42
|
+
# if they are not defined above.
|
43
|
+
module Errors
|
44
|
+
|
45
|
+
extend Aws::Errors::DynamicErrors
|
46
|
+
|
47
|
+
class AccessDeniedException < ServiceError
|
48
|
+
|
49
|
+
# @param [Seahorse::Client::RequestContext] context
|
50
|
+
# @param [String] message
|
51
|
+
# @param [Aws::ChimeSDKVoice::Types::AccessDeniedException] data
|
52
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
53
|
+
super(context, message, data)
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
class BadRequestException < ServiceError
|
58
|
+
|
59
|
+
# @param [Seahorse::Client::RequestContext] context
|
60
|
+
# @param [String] message
|
61
|
+
# @param [Aws::ChimeSDKVoice::Types::BadRequestException] data
|
62
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
63
|
+
super(context, message, data)
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
67
|
+
class ConflictException < ServiceError
|
68
|
+
|
69
|
+
# @param [Seahorse::Client::RequestContext] context
|
70
|
+
# @param [String] message
|
71
|
+
# @param [Aws::ChimeSDKVoice::Types::ConflictException] data
|
72
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
73
|
+
super(context, message, data)
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
class ForbiddenException < ServiceError
|
78
|
+
|
79
|
+
# @param [Seahorse::Client::RequestContext] context
|
80
|
+
# @param [String] message
|
81
|
+
# @param [Aws::ChimeSDKVoice::Types::ForbiddenException] data
|
82
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
83
|
+
super(context, message, data)
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
class NotFoundException < ServiceError
|
88
|
+
|
89
|
+
# @param [Seahorse::Client::RequestContext] context
|
90
|
+
# @param [String] message
|
91
|
+
# @param [Aws::ChimeSDKVoice::Types::NotFoundException] data
|
92
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
93
|
+
super(context, message, data)
|
94
|
+
end
|
95
|
+
end
|
96
|
+
|
97
|
+
class ResourceLimitExceededException < ServiceError
|
98
|
+
|
99
|
+
# @param [Seahorse::Client::RequestContext] context
|
100
|
+
# @param [String] message
|
101
|
+
# @param [Aws::ChimeSDKVoice::Types::ResourceLimitExceededException] data
|
102
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
103
|
+
super(context, message, data)
|
104
|
+
end
|
105
|
+
end
|
106
|
+
|
107
|
+
class ServiceFailureException < ServiceError
|
108
|
+
|
109
|
+
# @param [Seahorse::Client::RequestContext] context
|
110
|
+
# @param [String] message
|
111
|
+
# @param [Aws::ChimeSDKVoice::Types::ServiceFailureException] data
|
112
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
113
|
+
super(context, message, data)
|
114
|
+
end
|
115
|
+
end
|
116
|
+
|
117
|
+
class ServiceUnavailableException < ServiceError
|
118
|
+
|
119
|
+
# @param [Seahorse::Client::RequestContext] context
|
120
|
+
# @param [String] message
|
121
|
+
# @param [Aws::ChimeSDKVoice::Types::ServiceUnavailableException] data
|
122
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
123
|
+
super(context, message, data)
|
124
|
+
end
|
125
|
+
end
|
126
|
+
|
127
|
+
class ThrottledClientException < ServiceError
|
128
|
+
|
129
|
+
# @param [Seahorse::Client::RequestContext] context
|
130
|
+
# @param [String] message
|
131
|
+
# @param [Aws::ChimeSDKVoice::Types::ThrottledClientException] data
|
132
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
133
|
+
super(context, message, data)
|
134
|
+
end
|
135
|
+
end
|
136
|
+
|
137
|
+
class UnauthorizedClientException < ServiceError
|
138
|
+
|
139
|
+
# @param [Seahorse::Client::RequestContext] context
|
140
|
+
# @param [String] message
|
141
|
+
# @param [Aws::ChimeSDKVoice::Types::UnauthorizedClientException] data
|
142
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
143
|
+
super(context, message, data)
|
144
|
+
end
|
145
|
+
end
|
146
|
+
|
147
|
+
end
|
148
|
+
end
|
@@ -0,0 +1,216 @@
|
|
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
|
+
module Aws::ChimeSDKVoice
|
12
|
+
module Plugins
|
13
|
+
class Endpoints < Seahorse::Client::Plugin
|
14
|
+
option(
|
15
|
+
:endpoint_provider,
|
16
|
+
doc_type: 'Aws::ChimeSDKVoice::EndpointProvider',
|
17
|
+
docstring: 'The endpoint provider used to resolve endpoints. Any '\
|
18
|
+
'object that responds to `#resolve_endpoint(parameters)` '\
|
19
|
+
'where `parameters` is a Struct similar to '\
|
20
|
+
'`Aws::ChimeSDKVoice::EndpointParameters`'
|
21
|
+
) do |cfg|
|
22
|
+
Aws::ChimeSDKVoice::EndpointProvider.new
|
23
|
+
end
|
24
|
+
|
25
|
+
# @api private
|
26
|
+
class Handler < Seahorse::Client::Handler
|
27
|
+
def call(context)
|
28
|
+
# If endpoint was discovered, do not resolve or apply the endpoint.
|
29
|
+
unless context[:discovered_endpoint]
|
30
|
+
params = parameters_for_operation(context)
|
31
|
+
endpoint = context.config.endpoint_provider.resolve_endpoint(params)
|
32
|
+
|
33
|
+
context.http_request.endpoint = endpoint.url
|
34
|
+
apply_endpoint_headers(context, endpoint.headers)
|
35
|
+
end
|
36
|
+
|
37
|
+
context[:endpoint_params] = params
|
38
|
+
context[:auth_scheme] =
|
39
|
+
Aws::Endpoints.resolve_auth_scheme(context, endpoint)
|
40
|
+
|
41
|
+
@handler.call(context)
|
42
|
+
end
|
43
|
+
|
44
|
+
private
|
45
|
+
|
46
|
+
def apply_endpoint_headers(context, headers)
|
47
|
+
headers.each do |key, values|
|
48
|
+
value = values
|
49
|
+
.compact
|
50
|
+
.map { |s| Seahorse::Util.escape_header_list_string(s.to_s) }
|
51
|
+
.join(',')
|
52
|
+
|
53
|
+
context.http_request.headers[key] = value
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
def parameters_for_operation(context)
|
58
|
+
case context.operation_name
|
59
|
+
when :associate_phone_numbers_with_voice_connector
|
60
|
+
Aws::ChimeSDKVoice::Endpoints::AssociatePhoneNumbersWithVoiceConnector.build(context)
|
61
|
+
when :associate_phone_numbers_with_voice_connector_group
|
62
|
+
Aws::ChimeSDKVoice::Endpoints::AssociatePhoneNumbersWithVoiceConnectorGroup.build(context)
|
63
|
+
when :batch_delete_phone_number
|
64
|
+
Aws::ChimeSDKVoice::Endpoints::BatchDeletePhoneNumber.build(context)
|
65
|
+
when :batch_update_phone_number
|
66
|
+
Aws::ChimeSDKVoice::Endpoints::BatchUpdatePhoneNumber.build(context)
|
67
|
+
when :create_phone_number_order
|
68
|
+
Aws::ChimeSDKVoice::Endpoints::CreatePhoneNumberOrder.build(context)
|
69
|
+
when :create_proxy_session
|
70
|
+
Aws::ChimeSDKVoice::Endpoints::CreateProxySession.build(context)
|
71
|
+
when :create_sip_media_application
|
72
|
+
Aws::ChimeSDKVoice::Endpoints::CreateSipMediaApplication.build(context)
|
73
|
+
when :create_sip_media_application_call
|
74
|
+
Aws::ChimeSDKVoice::Endpoints::CreateSipMediaApplicationCall.build(context)
|
75
|
+
when :create_sip_rule
|
76
|
+
Aws::ChimeSDKVoice::Endpoints::CreateSipRule.build(context)
|
77
|
+
when :create_voice_connector
|
78
|
+
Aws::ChimeSDKVoice::Endpoints::CreateVoiceConnector.build(context)
|
79
|
+
when :create_voice_connector_group
|
80
|
+
Aws::ChimeSDKVoice::Endpoints::CreateVoiceConnectorGroup.build(context)
|
81
|
+
when :delete_phone_number
|
82
|
+
Aws::ChimeSDKVoice::Endpoints::DeletePhoneNumber.build(context)
|
83
|
+
when :delete_proxy_session
|
84
|
+
Aws::ChimeSDKVoice::Endpoints::DeleteProxySession.build(context)
|
85
|
+
when :delete_sip_media_application
|
86
|
+
Aws::ChimeSDKVoice::Endpoints::DeleteSipMediaApplication.build(context)
|
87
|
+
when :delete_sip_rule
|
88
|
+
Aws::ChimeSDKVoice::Endpoints::DeleteSipRule.build(context)
|
89
|
+
when :delete_voice_connector
|
90
|
+
Aws::ChimeSDKVoice::Endpoints::DeleteVoiceConnector.build(context)
|
91
|
+
when :delete_voice_connector_emergency_calling_configuration
|
92
|
+
Aws::ChimeSDKVoice::Endpoints::DeleteVoiceConnectorEmergencyCallingConfiguration.build(context)
|
93
|
+
when :delete_voice_connector_group
|
94
|
+
Aws::ChimeSDKVoice::Endpoints::DeleteVoiceConnectorGroup.build(context)
|
95
|
+
when :delete_voice_connector_origination
|
96
|
+
Aws::ChimeSDKVoice::Endpoints::DeleteVoiceConnectorOrigination.build(context)
|
97
|
+
when :delete_voice_connector_proxy
|
98
|
+
Aws::ChimeSDKVoice::Endpoints::DeleteVoiceConnectorProxy.build(context)
|
99
|
+
when :delete_voice_connector_streaming_configuration
|
100
|
+
Aws::ChimeSDKVoice::Endpoints::DeleteVoiceConnectorStreamingConfiguration.build(context)
|
101
|
+
when :delete_voice_connector_termination
|
102
|
+
Aws::ChimeSDKVoice::Endpoints::DeleteVoiceConnectorTermination.build(context)
|
103
|
+
when :delete_voice_connector_termination_credentials
|
104
|
+
Aws::ChimeSDKVoice::Endpoints::DeleteVoiceConnectorTerminationCredentials.build(context)
|
105
|
+
when :disassociate_phone_numbers_from_voice_connector
|
106
|
+
Aws::ChimeSDKVoice::Endpoints::DisassociatePhoneNumbersFromVoiceConnector.build(context)
|
107
|
+
when :disassociate_phone_numbers_from_voice_connector_group
|
108
|
+
Aws::ChimeSDKVoice::Endpoints::DisassociatePhoneNumbersFromVoiceConnectorGroup.build(context)
|
109
|
+
when :get_global_settings
|
110
|
+
Aws::ChimeSDKVoice::Endpoints::GetGlobalSettings.build(context)
|
111
|
+
when :get_phone_number
|
112
|
+
Aws::ChimeSDKVoice::Endpoints::GetPhoneNumber.build(context)
|
113
|
+
when :get_phone_number_order
|
114
|
+
Aws::ChimeSDKVoice::Endpoints::GetPhoneNumberOrder.build(context)
|
115
|
+
when :get_phone_number_settings
|
116
|
+
Aws::ChimeSDKVoice::Endpoints::GetPhoneNumberSettings.build(context)
|
117
|
+
when :get_proxy_session
|
118
|
+
Aws::ChimeSDKVoice::Endpoints::GetProxySession.build(context)
|
119
|
+
when :get_sip_media_application
|
120
|
+
Aws::ChimeSDKVoice::Endpoints::GetSipMediaApplication.build(context)
|
121
|
+
when :get_sip_media_application_alexa_skill_configuration
|
122
|
+
Aws::ChimeSDKVoice::Endpoints::GetSipMediaApplicationAlexaSkillConfiguration.build(context)
|
123
|
+
when :get_sip_media_application_logging_configuration
|
124
|
+
Aws::ChimeSDKVoice::Endpoints::GetSipMediaApplicationLoggingConfiguration.build(context)
|
125
|
+
when :get_sip_rule
|
126
|
+
Aws::ChimeSDKVoice::Endpoints::GetSipRule.build(context)
|
127
|
+
when :get_voice_connector
|
128
|
+
Aws::ChimeSDKVoice::Endpoints::GetVoiceConnector.build(context)
|
129
|
+
when :get_voice_connector_emergency_calling_configuration
|
130
|
+
Aws::ChimeSDKVoice::Endpoints::GetVoiceConnectorEmergencyCallingConfiguration.build(context)
|
131
|
+
when :get_voice_connector_group
|
132
|
+
Aws::ChimeSDKVoice::Endpoints::GetVoiceConnectorGroup.build(context)
|
133
|
+
when :get_voice_connector_logging_configuration
|
134
|
+
Aws::ChimeSDKVoice::Endpoints::GetVoiceConnectorLoggingConfiguration.build(context)
|
135
|
+
when :get_voice_connector_origination
|
136
|
+
Aws::ChimeSDKVoice::Endpoints::GetVoiceConnectorOrigination.build(context)
|
137
|
+
when :get_voice_connector_proxy
|
138
|
+
Aws::ChimeSDKVoice::Endpoints::GetVoiceConnectorProxy.build(context)
|
139
|
+
when :get_voice_connector_streaming_configuration
|
140
|
+
Aws::ChimeSDKVoice::Endpoints::GetVoiceConnectorStreamingConfiguration.build(context)
|
141
|
+
when :get_voice_connector_termination
|
142
|
+
Aws::ChimeSDKVoice::Endpoints::GetVoiceConnectorTermination.build(context)
|
143
|
+
when :get_voice_connector_termination_health
|
144
|
+
Aws::ChimeSDKVoice::Endpoints::GetVoiceConnectorTerminationHealth.build(context)
|
145
|
+
when :list_available_voice_connector_regions
|
146
|
+
Aws::ChimeSDKVoice::Endpoints::ListAvailableVoiceConnectorRegions.build(context)
|
147
|
+
when :list_phone_number_orders
|
148
|
+
Aws::ChimeSDKVoice::Endpoints::ListPhoneNumberOrders.build(context)
|
149
|
+
when :list_phone_numbers
|
150
|
+
Aws::ChimeSDKVoice::Endpoints::ListPhoneNumbers.build(context)
|
151
|
+
when :list_proxy_sessions
|
152
|
+
Aws::ChimeSDKVoice::Endpoints::ListProxySessions.build(context)
|
153
|
+
when :list_sip_media_applications
|
154
|
+
Aws::ChimeSDKVoice::Endpoints::ListSipMediaApplications.build(context)
|
155
|
+
when :list_sip_rules
|
156
|
+
Aws::ChimeSDKVoice::Endpoints::ListSipRules.build(context)
|
157
|
+
when :list_supported_phone_number_countries
|
158
|
+
Aws::ChimeSDKVoice::Endpoints::ListSupportedPhoneNumberCountries.build(context)
|
159
|
+
when :list_voice_connector_groups
|
160
|
+
Aws::ChimeSDKVoice::Endpoints::ListVoiceConnectorGroups.build(context)
|
161
|
+
when :list_voice_connector_termination_credentials
|
162
|
+
Aws::ChimeSDKVoice::Endpoints::ListVoiceConnectorTerminationCredentials.build(context)
|
163
|
+
when :list_voice_connectors
|
164
|
+
Aws::ChimeSDKVoice::Endpoints::ListVoiceConnectors.build(context)
|
165
|
+
when :put_sip_media_application_alexa_skill_configuration
|
166
|
+
Aws::ChimeSDKVoice::Endpoints::PutSipMediaApplicationAlexaSkillConfiguration.build(context)
|
167
|
+
when :put_sip_media_application_logging_configuration
|
168
|
+
Aws::ChimeSDKVoice::Endpoints::PutSipMediaApplicationLoggingConfiguration.build(context)
|
169
|
+
when :put_voice_connector_emergency_calling_configuration
|
170
|
+
Aws::ChimeSDKVoice::Endpoints::PutVoiceConnectorEmergencyCallingConfiguration.build(context)
|
171
|
+
when :put_voice_connector_logging_configuration
|
172
|
+
Aws::ChimeSDKVoice::Endpoints::PutVoiceConnectorLoggingConfiguration.build(context)
|
173
|
+
when :put_voice_connector_origination
|
174
|
+
Aws::ChimeSDKVoice::Endpoints::PutVoiceConnectorOrigination.build(context)
|
175
|
+
when :put_voice_connector_proxy
|
176
|
+
Aws::ChimeSDKVoice::Endpoints::PutVoiceConnectorProxy.build(context)
|
177
|
+
when :put_voice_connector_streaming_configuration
|
178
|
+
Aws::ChimeSDKVoice::Endpoints::PutVoiceConnectorStreamingConfiguration.build(context)
|
179
|
+
when :put_voice_connector_termination
|
180
|
+
Aws::ChimeSDKVoice::Endpoints::PutVoiceConnectorTermination.build(context)
|
181
|
+
when :put_voice_connector_termination_credentials
|
182
|
+
Aws::ChimeSDKVoice::Endpoints::PutVoiceConnectorTerminationCredentials.build(context)
|
183
|
+
when :restore_phone_number
|
184
|
+
Aws::ChimeSDKVoice::Endpoints::RestorePhoneNumber.build(context)
|
185
|
+
when :search_available_phone_numbers
|
186
|
+
Aws::ChimeSDKVoice::Endpoints::SearchAvailablePhoneNumbers.build(context)
|
187
|
+
when :update_global_settings
|
188
|
+
Aws::ChimeSDKVoice::Endpoints::UpdateGlobalSettings.build(context)
|
189
|
+
when :update_phone_number
|
190
|
+
Aws::ChimeSDKVoice::Endpoints::UpdatePhoneNumber.build(context)
|
191
|
+
when :update_phone_number_settings
|
192
|
+
Aws::ChimeSDKVoice::Endpoints::UpdatePhoneNumberSettings.build(context)
|
193
|
+
when :update_proxy_session
|
194
|
+
Aws::ChimeSDKVoice::Endpoints::UpdateProxySession.build(context)
|
195
|
+
when :update_sip_media_application
|
196
|
+
Aws::ChimeSDKVoice::Endpoints::UpdateSipMediaApplication.build(context)
|
197
|
+
when :update_sip_media_application_call
|
198
|
+
Aws::ChimeSDKVoice::Endpoints::UpdateSipMediaApplicationCall.build(context)
|
199
|
+
when :update_sip_rule
|
200
|
+
Aws::ChimeSDKVoice::Endpoints::UpdateSipRule.build(context)
|
201
|
+
when :update_voice_connector
|
202
|
+
Aws::ChimeSDKVoice::Endpoints::UpdateVoiceConnector.build(context)
|
203
|
+
when :update_voice_connector_group
|
204
|
+
Aws::ChimeSDKVoice::Endpoints::UpdateVoiceConnectorGroup.build(context)
|
205
|
+
when :validate_e911_address
|
206
|
+
Aws::ChimeSDKVoice::Endpoints::ValidateE911Address.build(context)
|
207
|
+
end
|
208
|
+
end
|
209
|
+
end
|
210
|
+
|
211
|
+
def add_handlers(handlers, _config)
|
212
|
+
handlers.add(Handler, step: :build, priority: 75)
|
213
|
+
end
|
214
|
+
end
|
215
|
+
end
|
216
|
+
end
|
@@ -0,0 +1,26 @@
|
|
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
|
+
module Aws::ChimeSDKVoice
|
11
|
+
|
12
|
+
class Resource
|
13
|
+
|
14
|
+
# @param options ({})
|
15
|
+
# @option options [Client] :client
|
16
|
+
def initialize(options = {})
|
17
|
+
@client = options[:client] || Client.new(options)
|
18
|
+
end
|
19
|
+
|
20
|
+
# @return [Client]
|
21
|
+
def client
|
22
|
+
@client
|
23
|
+
end
|
24
|
+
|
25
|
+
end
|
26
|
+
end
|