aws-sdk-marketplacemetering 1.0.0.rc1 → 1.0.0.rc2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-marketplacemetering.rb +2 -2
- data/lib/aws-sdk-marketplacemetering/client.rb +305 -264
- data/lib/aws-sdk-marketplacemetering/client_api.rb +134 -136
- data/lib/aws-sdk-marketplacemetering/errors.rb +4 -13
- data/lib/aws-sdk-marketplacemetering/resource.rb +12 -14
- data/lib/aws-sdk-marketplacemetering/types.rb +247 -215
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f93e445f5c4c1ac6fa1779bb4fb7dad6b3c9bfc8
|
4
|
+
data.tar.gz: 1a2c2dc638926907ab2efea593f2382fcd2a0247
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d6c596b9f361185b5ff63a929faa0c1b09a8e7ffbaff54f080ef00c2edbd93fd9f53cfdb7a4e44738789c8f532426d7dc0e1af9d4fd0983bf820eae3f4fd6aa
|
7
|
+
data.tar.gz: 8f07ea7ded26d120071303ed2a06081fe07af1f33f059f6a2210313fb87fd7e6ea35862dc5477814b4a21b6addc30a055e462143882c81bb82a6ae7a3989f4c7
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# WARNING ABOUT GENERATED CODE
|
2
2
|
#
|
3
|
-
# This file is generated. See the contributing for
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
4
|
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
5
5
|
#
|
6
6
|
# WARNING ABOUT GENERATED CODE
|
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-marketplacemetering/customizations'
|
|
42
42
|
# @service
|
43
43
|
module Aws::MarketplaceMetering
|
44
44
|
|
45
|
-
GEM_VERSION = '1.0.0.
|
45
|
+
GEM_VERSION = '1.0.0.rc2'
|
46
46
|
|
47
47
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# WARNING ABOUT GENERATED CODE
|
2
2
|
#
|
3
|
-
# This file is generated. See the contributing for
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
4
|
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
5
5
|
#
|
6
6
|
# WARNING ABOUT GENERATED CODE
|
@@ -18,290 +18,331 @@ require 'aws-sdk-core/plugins/regional_endpoint.rb'
|
|
18
18
|
require 'aws-sdk-core/plugins/response_paging.rb'
|
19
19
|
require 'aws-sdk-core/plugins/stub_responses.rb'
|
20
20
|
require 'aws-sdk-core/plugins/idempotency_token.rb'
|
21
|
+
require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
|
21
22
|
require 'aws-sdk-core/plugins/signature_v4.rb'
|
22
23
|
require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
|
23
24
|
|
24
25
|
Aws::Plugins::GlobalConfiguration.add_identifier(:marketplacemetering)
|
25
26
|
|
26
|
-
module Aws
|
27
|
-
|
28
|
-
class Client < Seahorse::Client::Base
|
27
|
+
module Aws::MarketplaceMetering
|
28
|
+
class Client < Seahorse::Client::Base
|
29
29
|
|
30
|
-
|
30
|
+
include Aws::ClientStubs
|
31
31
|
|
32
|
-
|
32
|
+
@identifier = :marketplacemetering
|
33
33
|
|
34
|
-
|
34
|
+
set_api(ClientApi::API)
|
35
35
|
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
36
|
+
add_plugin(Seahorse::Client::Plugins::ContentLength)
|
37
|
+
add_plugin(Aws::Plugins::CredentialsConfiguration)
|
38
|
+
add_plugin(Aws::Plugins::Logging)
|
39
|
+
add_plugin(Aws::Plugins::ParamConverter)
|
40
|
+
add_plugin(Aws::Plugins::ParamValidator)
|
41
|
+
add_plugin(Aws::Plugins::UserAgent)
|
42
|
+
add_plugin(Aws::Plugins::HelpfulSocketErrors)
|
43
|
+
add_plugin(Aws::Plugins::RetryErrors)
|
44
|
+
add_plugin(Aws::Plugins::GlobalConfiguration)
|
45
|
+
add_plugin(Aws::Plugins::RegionalEndpoint)
|
46
|
+
add_plugin(Aws::Plugins::ResponsePaging)
|
47
|
+
add_plugin(Aws::Plugins::StubResponses)
|
48
|
+
add_plugin(Aws::Plugins::IdempotencyToken)
|
49
|
+
add_plugin(Aws::Plugins::JsonvalueConverter)
|
50
|
+
add_plugin(Aws::Plugins::SignatureV4)
|
51
|
+
add_plugin(Aws::Plugins::Protocols::JsonRpc)
|
51
52
|
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
53
|
+
# @option options [required, Aws::CredentialProvider] :credentials
|
54
|
+
# Your AWS credentials. This can be an instance of any one of the
|
55
|
+
# following classes:
|
56
|
+
#
|
57
|
+
# * `Aws::Credentials` - Used for configuring static, non-refreshing
|
58
|
+
# credentials.
|
59
|
+
#
|
60
|
+
# * `Aws::InstanceProfileCredentials` - Used for loading credentials
|
61
|
+
# from an EC2 IMDS on an EC2 instance.
|
62
|
+
#
|
63
|
+
# * `Aws::SharedCredentials` - Used for loading credentials from a
|
64
|
+
# shared file, such as `~/.aws/config`.
|
65
|
+
#
|
66
|
+
# * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
|
67
|
+
#
|
68
|
+
# When `:credentials` are not configured directly, the following
|
69
|
+
# locations will be searched for credentials:
|
70
|
+
#
|
71
|
+
# * `Aws.config[:credentials]`
|
72
|
+
# * The `:access_key_id`, `:secret_access_key`, and `:session_token` options.
|
73
|
+
# * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
|
74
|
+
# * `~/.aws/credentials`
|
75
|
+
# * `~/.aws/config`
|
76
|
+
# * EC2 IMDS instance profile - When used by default, the timeouts are
|
77
|
+
# very aggressive. Construct and pass an instance of
|
78
|
+
# `Aws::InstanceProfileCredentails` to enable retries and extended
|
79
|
+
# timeouts.
|
80
|
+
#
|
81
|
+
# @option options [required, String] :region
|
82
|
+
# The AWS region to connect to. The configured `:region` is
|
83
|
+
# used to determine the service `:endpoint`. When not passed,
|
84
|
+
# a default `:region` is search for in the following locations:
|
85
|
+
#
|
86
|
+
# * `Aws.config[:region]`
|
87
|
+
# * `ENV['AWS_REGION']`
|
88
|
+
# * `ENV['AMAZON_REGION']`
|
89
|
+
# * `ENV['AWS_DEFAULT_REGION']`
|
90
|
+
# * `~/.aws/credentials`
|
91
|
+
# * `~/.aws/config`
|
92
|
+
#
|
93
|
+
# @option options [String] :access_key_id
|
94
|
+
#
|
95
|
+
# @option options [Boolean] :convert_params (true)
|
96
|
+
# When `true`, an attempt is made to coerce request parameters into
|
97
|
+
# the required types.
|
98
|
+
#
|
99
|
+
# @option options [String] :endpoint
|
100
|
+
# The client endpoint is normally constructed from the `:region`
|
101
|
+
# option. You should only configure an `:endpoint` when connecting
|
102
|
+
# to test endpoints. This should be avalid HTTP(S) URI.
|
103
|
+
#
|
104
|
+
# @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
|
105
|
+
# The log formatter.
|
106
|
+
#
|
107
|
+
# @option options [Symbol] :log_level (:info)
|
108
|
+
# The log level to send messages to the `:logger` at.
|
109
|
+
#
|
110
|
+
# @option options [Logger] :logger
|
111
|
+
# The Logger instance to send log messages to. If this option
|
112
|
+
# is not set, logging will be disabled.
|
113
|
+
#
|
114
|
+
# @option options [String] :profile ("default")
|
115
|
+
# Used when loading credentials from the shared credentials file
|
116
|
+
# at HOME/.aws/credentials. When not specified, 'default' is used.
|
117
|
+
#
|
118
|
+
# @option options [Integer] :retry_limit (3)
|
119
|
+
# The maximum number of times to retry failed requests. Only
|
120
|
+
# ~ 500 level server errors and certain ~ 400 level client errors
|
121
|
+
# are retried. Generally, these are throttling errors, data
|
122
|
+
# checksum errors, networking errors, timeout errors and auth
|
123
|
+
# errors from expired credentials.
|
124
|
+
#
|
125
|
+
# @option options [String] :secret_access_key
|
126
|
+
#
|
127
|
+
# @option options [String] :session_token
|
128
|
+
#
|
129
|
+
# @option options [Boolean] :simple_json (false)
|
130
|
+
# Disables request parameter conversion, validation, and formatting.
|
131
|
+
# Also disable response data type conversions. This option is useful
|
132
|
+
# when you want to ensure the highest level of performance by
|
133
|
+
# avoiding overhead of walking request parameters and response data
|
134
|
+
# structures.
|
135
|
+
#
|
136
|
+
# When `:simple_json` is enabled, the request parameters hash must
|
137
|
+
# be formatted exactly as the DynamoDB API expects.
|
138
|
+
#
|
139
|
+
# @option options [Boolean] :stub_responses (false)
|
140
|
+
# Causes the client to return stubbed responses. By default
|
141
|
+
# fake responses are generated and returned. You can specify
|
142
|
+
# the response data to return or errors to raise by calling
|
143
|
+
# {ClientStubs#stub_responses}. See {ClientStubs} for more information.
|
144
|
+
#
|
145
|
+
# ** Please note ** When response stubbing is enabled, no HTTP
|
146
|
+
# requests are made, and retries are disabled.
|
147
|
+
#
|
148
|
+
# @option options [Boolean] :validate_params (true)
|
149
|
+
# When `true`, request parameters are validated before
|
150
|
+
# sending the request.
|
151
|
+
#
|
152
|
+
def initialize(*args)
|
153
|
+
super
|
154
|
+
end
|
139
155
|
|
140
|
-
|
156
|
+
# @!group API Operations
|
141
157
|
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
# Marketplace. The product code should be the same as the one used
|
206
|
-
# during the publishing of a new product.
|
207
|
-
# @option params [required, Time,DateTime,Date,Integer,String] :timestamp
|
208
|
-
# Timestamp of the hour, recorded in UTC. The seconds and milliseconds
|
209
|
-
# portions of the timestamp will be ignored.
|
210
|
-
# @option params [required, String] :usage_dimension
|
211
|
-
# It will be one of the fcp dimension name provided during the
|
212
|
-
# publishing of the product.
|
213
|
-
# @option params [required, Integer] :usage_quantity
|
214
|
-
# Consumption value for the hour.
|
215
|
-
# @option params [required, Boolean] :dry_run
|
216
|
-
# Checks whether you have the permissions required for the action, but
|
217
|
-
# does not make the request. If you have the permissions, the request
|
218
|
-
# returns DryRunOperation; otherwise, it returns UnauthorizedException.
|
219
|
-
# @return [Types::MeterUsageResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
220
|
-
#
|
221
|
-
# * {Types::MeterUsageResult#metering_record_id #MeteringRecordId} => String
|
222
|
-
#
|
223
|
-
# @example Request syntax with placeholder values
|
224
|
-
# resp = client.meter_usage({
|
225
|
-
# product_code: "ProductCode", # required
|
226
|
-
# timestamp: Time.now, # required
|
227
|
-
# usage_dimension: "UsageDimension", # required
|
228
|
-
# usage_quantity: 1, # required
|
229
|
-
# dry_run: false, # required
|
230
|
-
# })
|
231
|
-
#
|
232
|
-
# @example Response structure
|
233
|
-
# resp.metering_record_id #=> String
|
234
|
-
# @overload meter_usage(params = {})
|
235
|
-
# @param [Hash] params ({})
|
236
|
-
def meter_usage(params = {}, options = {})
|
237
|
-
req = build_request(:meter_usage, params)
|
238
|
-
req.send_request(options)
|
239
|
-
end
|
158
|
+
# BatchMeterUsage is called from a SaaS application listed on the AWS
|
159
|
+
# Marketplace to post metering records for a set of customers.
|
160
|
+
#
|
161
|
+
# For identical requests, the API is idempotent; requests can be retried
|
162
|
+
# with the same records or a subset of the input records.
|
163
|
+
#
|
164
|
+
# Every request to BatchMeterUsage is for one product. If you need to
|
165
|
+
# meter usage for multiple products, you must make multiple calls to
|
166
|
+
# BatchMeterUsage.
|
167
|
+
#
|
168
|
+
# BatchMeterUsage can process up to 25 UsageRecords at a time.
|
169
|
+
#
|
170
|
+
# @option params [required, Array<Types::UsageRecord>] :usage_records
|
171
|
+
# The set of UsageRecords to submit. BatchMeterUsage accepts up to 25
|
172
|
+
# UsageRecords at a time.
|
173
|
+
#
|
174
|
+
# @option params [required, String] :product_code
|
175
|
+
# Product code is used to uniquely identify a product in AWS
|
176
|
+
# Marketplace. The product code should be the same as the one used
|
177
|
+
# during the publishing of a new product.
|
178
|
+
#
|
179
|
+
# @return [Types::BatchMeterUsageResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
180
|
+
#
|
181
|
+
# * {Types::BatchMeterUsageResult#results #results} => Array<Types::UsageRecordResult>
|
182
|
+
# * {Types::BatchMeterUsageResult#unprocessed_records #unprocessed_records} => Array<Types::UsageRecord>
|
183
|
+
#
|
184
|
+
# @example Request syntax with placeholder values
|
185
|
+
#
|
186
|
+
# resp = client.batch_meter_usage({
|
187
|
+
# usage_records: [ # required
|
188
|
+
# {
|
189
|
+
# timestamp: Time.now, # required
|
190
|
+
# customer_identifier: "CustomerIdentifier", # required
|
191
|
+
# dimension: "UsageDimension", # required
|
192
|
+
# quantity: 1, # required
|
193
|
+
# },
|
194
|
+
# ],
|
195
|
+
# product_code: "ProductCode", # required
|
196
|
+
# })
|
197
|
+
#
|
198
|
+
# @example Response structure
|
199
|
+
#
|
200
|
+
# resp.results #=> Array
|
201
|
+
# resp.results[0].usage_record.timestamp #=> Time
|
202
|
+
# resp.results[0].usage_record.customer_identifier #=> String
|
203
|
+
# resp.results[0].usage_record.dimension #=> String
|
204
|
+
# resp.results[0].usage_record.quantity #=> Integer
|
205
|
+
# resp.results[0].metering_record_id #=> String
|
206
|
+
# resp.results[0].status #=> String, one of "Success", "CustomerNotSubscribed", "DuplicateRecord"
|
207
|
+
# resp.unprocessed_records #=> Array
|
208
|
+
# resp.unprocessed_records[0].timestamp #=> Time
|
209
|
+
# resp.unprocessed_records[0].customer_identifier #=> String
|
210
|
+
# resp.unprocessed_records[0].dimension #=> String
|
211
|
+
# resp.unprocessed_records[0].quantity #=> Integer
|
212
|
+
#
|
213
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/meteringmarketplace-2016-01-14/BatchMeterUsage AWS API Documentation
|
214
|
+
#
|
215
|
+
# @overload batch_meter_usage(params = {})
|
216
|
+
# @param [Hash] params ({})
|
217
|
+
def batch_meter_usage(params = {}, options = {})
|
218
|
+
req = build_request(:batch_meter_usage, params)
|
219
|
+
req.send_request(options)
|
220
|
+
end
|
240
221
|
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
222
|
+
# API to emit metering records. For identical requests, the API is
|
223
|
+
# idempotent. It simply returns the metering record ID.
|
224
|
+
#
|
225
|
+
# MeterUsage is authenticated on the buyer's AWS account, generally
|
226
|
+
# when running from an EC2 instance on the AWS Marketplace.
|
227
|
+
#
|
228
|
+
# @option params [required, String] :product_code
|
229
|
+
# Product code is used to uniquely identify a product in AWS
|
230
|
+
# Marketplace. The product code should be the same as the one used
|
231
|
+
# during the publishing of a new product.
|
232
|
+
#
|
233
|
+
# @option params [required, Time,DateTime,Date,Integer,String] :timestamp
|
234
|
+
# Timestamp of the hour, recorded in UTC. The seconds and milliseconds
|
235
|
+
# portions of the timestamp will be ignored.
|
236
|
+
#
|
237
|
+
# @option params [required, String] :usage_dimension
|
238
|
+
# It will be one of the fcp dimension name provided during the
|
239
|
+
# publishing of the product.
|
240
|
+
#
|
241
|
+
# @option params [required, Integer] :usage_quantity
|
242
|
+
# Consumption value for the hour.
|
243
|
+
#
|
244
|
+
# @option params [required, Boolean] :dry_run
|
245
|
+
# Checks whether you have the permissions required for the action, but
|
246
|
+
# does not make the request. If you have the permissions, the request
|
247
|
+
# returns DryRunOperation; otherwise, it returns UnauthorizedException.
|
248
|
+
#
|
249
|
+
# @return [Types::MeterUsageResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
250
|
+
#
|
251
|
+
# * {Types::MeterUsageResult#metering_record_id #metering_record_id} => String
|
252
|
+
#
|
253
|
+
# @example Request syntax with placeholder values
|
254
|
+
#
|
255
|
+
# resp = client.meter_usage({
|
256
|
+
# product_code: "ProductCode", # required
|
257
|
+
# timestamp: Time.now, # required
|
258
|
+
# usage_dimension: "UsageDimension", # required
|
259
|
+
# usage_quantity: 1, # required
|
260
|
+
# dry_run: false, # required
|
261
|
+
# })
|
262
|
+
#
|
263
|
+
# @example Response structure
|
264
|
+
#
|
265
|
+
# resp.metering_record_id #=> String
|
266
|
+
#
|
267
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/meteringmarketplace-2016-01-14/MeterUsage AWS API Documentation
|
268
|
+
#
|
269
|
+
# @overload meter_usage(params = {})
|
270
|
+
# @param [Hash] params ({})
|
271
|
+
def meter_usage(params = {}, options = {})
|
272
|
+
req = build_request(:meter_usage, params)
|
273
|
+
req.send_request(options)
|
274
|
+
end
|
270
275
|
|
271
|
-
|
276
|
+
# ResolveCustomer is called by a SaaS application during the
|
277
|
+
# registration process. When a buyer visits your website during the
|
278
|
+
# registration process, the buyer submits a registration token through
|
279
|
+
# their browser. The registration token is resolved through this API to
|
280
|
+
# obtain a CustomerIdentifier and product code.
|
281
|
+
#
|
282
|
+
# @option params [required, String] :registration_token
|
283
|
+
# When a buyer visits your website during the registration process, the
|
284
|
+
# buyer submits a registration token through the browser. The
|
285
|
+
# registration token is resolved to obtain a CustomerIdentifier and
|
286
|
+
# product code.
|
287
|
+
#
|
288
|
+
# @return [Types::ResolveCustomerResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
289
|
+
#
|
290
|
+
# * {Types::ResolveCustomerResult#customer_identifier #customer_identifier} => String
|
291
|
+
# * {Types::ResolveCustomerResult#product_code #product_code} => String
|
292
|
+
#
|
293
|
+
# @example Request syntax with placeholder values
|
294
|
+
#
|
295
|
+
# resp = client.resolve_customer({
|
296
|
+
# registration_token: "NonEmptyString", # required
|
297
|
+
# })
|
298
|
+
#
|
299
|
+
# @example Response structure
|
300
|
+
#
|
301
|
+
# resp.customer_identifier #=> String
|
302
|
+
# resp.product_code #=> String
|
303
|
+
#
|
304
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/meteringmarketplace-2016-01-14/ResolveCustomer AWS API Documentation
|
305
|
+
#
|
306
|
+
# @overload resolve_customer(params = {})
|
307
|
+
# @param [Hash] params ({})
|
308
|
+
def resolve_customer(params = {}, options = {})
|
309
|
+
req = build_request(:resolve_customer, params)
|
310
|
+
req.send_request(options)
|
311
|
+
end
|
272
312
|
|
273
|
-
|
274
|
-
# @api private
|
275
|
-
def build_request(operation_name, params = {})
|
276
|
-
handlers = @handlers.for(operation_name)
|
277
|
-
context = Seahorse::Client::RequestContext.new(
|
278
|
-
operation_name: operation_name,
|
279
|
-
operation: config.api.operation(operation_name),
|
280
|
-
client: self,
|
281
|
-
params: params,
|
282
|
-
config: config)
|
283
|
-
context[:gem_name] = 'aws-sdk-marketplacemetering'
|
284
|
-
context[:gem_version] = '1.0.0.rc1'
|
285
|
-
Seahorse::Client::Request.new(handlers, context)
|
286
|
-
end
|
313
|
+
# @!endgroup
|
287
314
|
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
315
|
+
# @param params ({})
|
316
|
+
# @api private
|
317
|
+
def build_request(operation_name, params = {})
|
318
|
+
handlers = @handlers.for(operation_name)
|
319
|
+
context = Seahorse::Client::RequestContext.new(
|
320
|
+
operation_name: operation_name,
|
321
|
+
operation: config.api.operation(operation_name),
|
322
|
+
client: self,
|
323
|
+
params: params,
|
324
|
+
config: config)
|
325
|
+
context[:gem_name] = 'aws-sdk-marketplacemetering'
|
326
|
+
context[:gem_version] = '1.0.0.rc2'
|
327
|
+
Seahorse::Client::Request.new(handlers, context)
|
328
|
+
end
|
293
329
|
|
294
|
-
|
330
|
+
# @api private
|
331
|
+
# @deprecated
|
332
|
+
def waiter_names
|
333
|
+
[]
|
334
|
+
end
|
295
335
|
|
296
|
-
|
297
|
-
attr_reader :identifier
|
336
|
+
class << self
|
298
337
|
|
299
|
-
|
300
|
-
|
301
|
-
Errors
|
302
|
-
end
|
338
|
+
# @api private
|
339
|
+
attr_reader :identifier
|
303
340
|
|
341
|
+
# @api private
|
342
|
+
def errors_module
|
343
|
+
Errors
|
304
344
|
end
|
345
|
+
|
305
346
|
end
|
306
347
|
end
|
307
348
|
end
|