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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f17e523197dfa0a52318c3c2a83b21178fe8a07a
4
- data.tar.gz: 6518cd539e28ebb194e7bec5faf13a3cc659b9b9
3
+ metadata.gz: f93e445f5c4c1ac6fa1779bb4fb7dad6b3c9bfc8
4
+ data.tar.gz: 1a2c2dc638926907ab2efea593f2382fcd2a0247
5
5
  SHA512:
6
- metadata.gz: c4f493a4d721b05873c049f3541dce408d65a70a917dc9e91c0d1a40a8e218024c4d6f2bf88694a786985d56752b812bd4942e7021e2fbd250d1649e18182767
7
- data.tar.gz: 8686541d1d142932536399950379ba59f0fb56623f84b4823df18e711d3d45d973ab8f4412921b1b46cd0aa098de3c62236a4a99815787b3607ac157d71eff09
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 info on making contributions:
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.rc1'
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 info on making contributions:
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
- module MarketplaceMetering
28
- class Client < Seahorse::Client::Base
27
+ module Aws::MarketplaceMetering
28
+ class Client < Seahorse::Client::Base
29
29
 
30
- include Aws::ClientStubs
30
+ include Aws::ClientStubs
31
31
 
32
- @identifier = :marketplacemetering
32
+ @identifier = :marketplacemetering
33
33
 
34
- set_api(ClientApi::API)
34
+ set_api(ClientApi::API)
35
35
 
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::SignatureV4)
50
- add_plugin(Aws::Plugins::Protocols::JsonRpc)
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
- # @option options [required, Aws::CredentialProvider] :credentials
53
- # Your AWS credentials. This can be an instance of any one of the
54
- # following classes:
55
- #
56
- # * `Aws::Credentials` - Used for configuring static, non-refreshing
57
- # credentials.
58
- #
59
- # * `Aws::InstanceProfileCredentials` - Used for loading credentials
60
- # from an EC2 IMDS on an EC2 instance.
61
- #
62
- # * `Aws::SharedCredentials` - Used for loading credentials from a
63
- # shared file, such as `~/.aws/config`.
64
- #
65
- # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
66
- #
67
- # When `:credentials` are not configured directly, the following
68
- # locations will be searched for credentials:
69
- #
70
- # * `Aws.config[:credentials]`
71
- # * The `:access_key_id`, `:secret_access_key`, and `:session_token` options.
72
- # * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
73
- # * `~/.aws/credentials`
74
- # * `~/.aws/config`
75
- # * EC2 IMDS instance profile - When used by default, the timeouts are
76
- # very aggressive. Construct and pass an instance of
77
- # `Aws::InstanceProfileCredentails` to enable retries and extended
78
- # timeouts.
79
- # @option options [required, String] :region
80
- # The AWS region to connect to. The configured `:region` is
81
- # used to determine the service `:endpoint`. When not passed,
82
- # a default `:region` is search for in the following locations:
83
- #
84
- # * `Aws.config[:region]`
85
- # * `ENV['AWS_REGION']`
86
- # * `ENV['AMAZON_REGION']`
87
- # * `ENV['AWS_DEFAULT_REGION']`
88
- # * `~/.aws/credentials`
89
- # * `~/.aws/config`
90
- # @option options [String] :access_key_id
91
- # @option options [Boolean] :convert_params (true)
92
- # When `true`, an attempt is made to coerce request parameters into
93
- # the required types.
94
- # @option options [String] :endpoint
95
- # The client endpoint is normally constructed from the `:region`
96
- # option. You should only configure an `:endpoint` when connecting
97
- # to test endpoints. This should be avalid HTTP(S) URI.
98
- # @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
99
- # The log formatter.
100
- # @option options [Symbol] :log_level (:info)
101
- # The log level to send messages to the `:logger` at.
102
- # @option options [Logger] :logger
103
- # The Logger instance to send log messages to. If this option
104
- # is not set, logging will be disabled.
105
- # @option options [String] :profile ("default")
106
- # Used when loading credentials from the shared credentials file
107
- # at HOME/.aws/credentials. When not specified, 'default' is used.
108
- # @option options [Integer] :retry_limit (3)
109
- # The maximum number of times to retry failed requests. Only
110
- # ~ 500 level server errors and certain ~ 400 level client errors
111
- # are retried. Generally, these are throttling errors, data
112
- # checksum errors, networking errors, timeout errors and auth
113
- # errors from expired credentials.
114
- # @option options [String] :secret_access_key
115
- # @option options [String] :session_token
116
- # @option options [Boolean] :simple_json (false)
117
- # Disables request parameter conversion, validation, and formatting.
118
- # Also disable response data type conversions. This option is useful
119
- # when you want to ensure the highest level of performance by
120
- # avoiding overhead of walking request parameters and response data
121
- # structures.
122
- #
123
- # When `:simple_json` is enabled, the request parameters hash must
124
- # be formatted exactly as the DynamoDB API expects.
125
- # @option options [Boolean] :stub_responses (false)
126
- # Causes the client to return stubbed responses. By default
127
- # fake responses are generated and returned. You can specify
128
- # the response data to return or errors to raise by calling
129
- # {ClientStubs#stub_responses}. See {ClientStubs} for more information.
130
- #
131
- # ** Please note ** When response stubbing is enabled, no HTTP
132
- # requests are made, and retries are disabled.
133
- # @option options [Boolean] :validate_params (true)
134
- # When `true`, request parameters are validated before
135
- # sending the request.
136
- def initialize(*args)
137
- super
138
- end
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
- # @!group API Operations
156
+ # @!group API Operations
141
157
 
142
- # BatchMeterUsage is called from a SaaS application listed on the AWS
143
- # Marketplace to post metering records for a set of customers.
144
- #
145
- # For identical requests, the API is idempotent; requests can be retried
146
- # with the same records or a subset of the input records.
147
- #
148
- # Every request to BatchMeterUsage is for one product. If you need to
149
- # meter usage for multiple products, you must make multiple calls to
150
- # BatchMeterUsage.
151
- #
152
- # BatchMeterUsage can process up to 25 UsageRecords at a time.
153
- # @option params [required, Array<Types::UsageRecord>] :usage_records
154
- # The set of UsageRecords to submit. BatchMeterUsage accepts up to 25
155
- # UsageRecords at a time.
156
- # @option params [required, String] :product_code
157
- # Product code is used to uniquely identify a product in AWS
158
- # Marketplace. The product code should be the same as the one used
159
- # during the publishing of a new product.
160
- # @return [Types::BatchMeterUsageResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
161
- #
162
- # * {Types::BatchMeterUsageResult#results #Results} => Array&lt;Types::UsageRecordResult&gt;
163
- # * {Types::BatchMeterUsageResult#unprocessed_records #UnprocessedRecords} => Array&lt;Types::UsageRecord&gt;
164
- #
165
- # @example Request syntax with placeholder values
166
- # resp = client.batch_meter_usage({
167
- # usage_records: [ # required
168
- # {
169
- # timestamp: Time.now, # required
170
- # customer_identifier: "CustomerIdentifier", # required
171
- # dimension: "UsageDimension", # required
172
- # quantity: 1, # required
173
- # },
174
- # ],
175
- # product_code: "ProductCode", # required
176
- # })
177
- #
178
- # @example Response structure
179
- # resp.results #=> Array
180
- # resp.results[0].usage_record.timestamp #=> Time
181
- # resp.results[0].usage_record.customer_identifier #=> String
182
- # resp.results[0].usage_record.dimension #=> String
183
- # resp.results[0].usage_record.quantity #=> Integer
184
- # resp.results[0].metering_record_id #=> String
185
- # resp.results[0].status #=> String, one of "Success", "CustomerNotSubscribed", "DuplicateRecord"
186
- # resp.unprocessed_records #=> Array
187
- # resp.unprocessed_records[0].timestamp #=> Time
188
- # resp.unprocessed_records[0].customer_identifier #=> String
189
- # resp.unprocessed_records[0].dimension #=> String
190
- # resp.unprocessed_records[0].quantity #=> Integer
191
- # @overload batch_meter_usage(params = {})
192
- # @param [Hash] params ({})
193
- def batch_meter_usage(params = {}, options = {})
194
- req = build_request(:batch_meter_usage, params)
195
- req.send_request(options)
196
- end
197
-
198
- # API to emit metering records. For identical requests, the API is
199
- # idempotent. It simply returns the metering record ID.
200
- #
201
- # MeterUsage is authenticated on the buyer's AWS account, generally
202
- # when running from an EC2 instance on the AWS Marketplace.
203
- # @option params [required, String] :product_code
204
- # Product code is used to uniquely identify a product in AWS
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&lt;Types::UsageRecordResult&gt;
182
+ # * {Types::BatchMeterUsageResult#unprocessed_records #unprocessed_records} => Array&lt;Types::UsageRecord&gt;
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
- # ResolveCustomer is called by a SaaS application during the
242
- # registration process. When a buyer visits your website during the
243
- # registration process, the buyer submits a registration token through
244
- # their browser. The registration token is resolved through this API to
245
- # obtain a CustomerIdentifier and product code.
246
- # @option params [required, String] :registration_token
247
- # When a buyer visits your website during the registration process, the
248
- # buyer submits a registration token through the browser. The
249
- # registration token is resolved to obtain a CustomerIdentifier and
250
- # product code.
251
- # @return [Types::ResolveCustomerResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
252
- #
253
- # * {Types::ResolveCustomerResult#customer_identifier #CustomerIdentifier} => String
254
- # * {Types::ResolveCustomerResult#product_code #ProductCode} => String
255
- #
256
- # @example Request syntax with placeholder values
257
- # resp = client.resolve_customer({
258
- # registration_token: "NonEmptyString", # required
259
- # })
260
- #
261
- # @example Response structure
262
- # resp.customer_identifier #=> String
263
- # resp.product_code #=> String
264
- # @overload resolve_customer(params = {})
265
- # @param [Hash] params ({})
266
- def resolve_customer(params = {}, options = {})
267
- req = build_request(:resolve_customer, params)
268
- req.send_request(options)
269
- end
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
- # @!endgroup
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
- # @param params ({})
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
- # @api private
289
- # @deprecated
290
- def waiter_names
291
- []
292
- end
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
- class << self
330
+ # @api private
331
+ # @deprecated
332
+ def waiter_names
333
+ []
334
+ end
295
335
 
296
- # @api private
297
- attr_reader :identifier
336
+ class << self
298
337
 
299
- # @api private
300
- def errors_module
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