aws-sdk-iotdataplane 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-iotdataplane.rb +2 -2
- data/lib/aws-sdk-iotdataplane/client.rb +277 -241
- data/lib/aws-sdk-iotdataplane/client_api.rb +139 -141
- data/lib/aws-sdk-iotdataplane/errors.rb +4 -13
- data/lib/aws-sdk-iotdataplane/resource.rb +12 -14
- data/lib/aws-sdk-iotdataplane/types.rb +119 -103
- 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: 2ee4fdcc612991ccf7709aa1f1b0b66eeb51c504
|
4
|
+
data.tar.gz: 594ea490225983958e4de95247765d285e86091b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c1414a54c202f49bd12341e019e537a106b39a51a635e5777af9a3ecded300f05308b26ee2ef9b8b58162188e4d381676591fb4558f77d16b3446e74f8c7863
|
7
|
+
data.tar.gz: 47cdad3f6dd31fa96523fab8a07476714dadbd74dab4953213a3aa21155cab269281e1fd1511afe7f8b3ada0bebe36f4126c68d541f91e01512efbcf78ff5316
|
data/lib/aws-sdk-iotdataplane.rb
CHANGED
@@ -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-iotdataplane/customizations'
|
|
42
42
|
# @service
|
43
43
|
module Aws::IoTDataPlane
|
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,268 +18,304 @@ 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/rest_json.rb'
|
23
24
|
|
24
25
|
Aws::Plugins::GlobalConfiguration.add_identifier(:iotdataplane)
|
25
26
|
|
26
|
-
module Aws
|
27
|
-
|
28
|
-
class Client < Seahorse::Client::Base
|
27
|
+
module Aws::IoTDataPlane
|
28
|
+
class Client < Seahorse::Client::Base
|
29
29
|
|
30
|
-
|
30
|
+
include Aws::ClientStubs
|
31
31
|
|
32
|
-
|
32
|
+
@identifier = :iotdataplane
|
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::RestJson)
|
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
|
-
|
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] :stub_responses (false)
|
130
|
+
# Causes the client to return stubbed responses. By default
|
131
|
+
# fake responses are generated and returned. You can specify
|
132
|
+
# the response data to return or errors to raise by calling
|
133
|
+
# {ClientStubs#stub_responses}. See {ClientStubs} for more information.
|
134
|
+
#
|
135
|
+
# ** Please note ** When response stubbing is enabled, no HTTP
|
136
|
+
# requests are made, and retries are disabled.
|
137
|
+
#
|
138
|
+
# @option options [Boolean] :validate_params (true)
|
139
|
+
# When `true`, request parameters are validated before
|
140
|
+
# sending the request.
|
141
|
+
#
|
142
|
+
def initialize(*args)
|
143
|
+
super
|
144
|
+
end
|
130
145
|
|
131
|
-
|
146
|
+
# @!group API Operations
|
132
147
|
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
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
|
-
# [1]: http://docs.aws.amazon.com/iot/latest/developerguide/API_GetThingShadow.html
|
169
|
-
# @option params [required, String] :thing_name
|
170
|
-
# The name of the thing.
|
171
|
-
# @return [Types::GetThingShadowResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
172
|
-
#
|
173
|
-
# * {Types::GetThingShadowResponse#payload #payload} => String
|
174
|
-
#
|
175
|
-
# @example Request syntax with placeholder values
|
176
|
-
# resp = client.get_thing_shadow({
|
177
|
-
# thing_name: "ThingName", # required
|
178
|
-
# })
|
179
|
-
#
|
180
|
-
# @example Response structure
|
181
|
-
# resp.payload #=> String
|
182
|
-
# @overload get_thing_shadow(params = {})
|
183
|
-
# @param [Hash] params ({})
|
184
|
-
def get_thing_shadow(params = {}, options = {})
|
185
|
-
req = build_request(:get_thing_shadow, params)
|
186
|
-
req.send_request(options)
|
187
|
-
end
|
148
|
+
# Deletes the thing shadow for the specified thing.
|
149
|
+
#
|
150
|
+
# For more information, see [DeleteThingShadow][1] in the *AWS IoT
|
151
|
+
# Developer Guide*.
|
152
|
+
#
|
153
|
+
#
|
154
|
+
#
|
155
|
+
# [1]: http://docs.aws.amazon.com/iot/latest/developerguide/API_DeleteThingShadow.html
|
156
|
+
#
|
157
|
+
# @option params [required, String] :thing_name
|
158
|
+
# The name of the thing.
|
159
|
+
#
|
160
|
+
# @return [Types::DeleteThingShadowResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
161
|
+
#
|
162
|
+
# * {Types::DeleteThingShadowResponse#payload #payload} => String
|
163
|
+
#
|
164
|
+
# @example Request syntax with placeholder values
|
165
|
+
#
|
166
|
+
# resp = client.delete_thing_shadow({
|
167
|
+
# thing_name: "ThingName", # required
|
168
|
+
# })
|
169
|
+
#
|
170
|
+
# @example Response structure
|
171
|
+
#
|
172
|
+
# resp.payload #=> String
|
173
|
+
#
|
174
|
+
# @overload delete_thing_shadow(params = {})
|
175
|
+
# @param [Hash] params ({})
|
176
|
+
def delete_thing_shadow(params = {}, options = {})
|
177
|
+
req = build_request(:delete_thing_shadow, params)
|
178
|
+
req.send_request(options)
|
179
|
+
end
|
188
180
|
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
181
|
+
# Gets the thing shadow for the specified thing.
|
182
|
+
#
|
183
|
+
# For more information, see [GetThingShadow][1] in the *AWS IoT
|
184
|
+
# Developer Guide*.
|
185
|
+
#
|
186
|
+
#
|
187
|
+
#
|
188
|
+
# [1]: http://docs.aws.amazon.com/iot/latest/developerguide/API_GetThingShadow.html
|
189
|
+
#
|
190
|
+
# @option params [required, String] :thing_name
|
191
|
+
# The name of the thing.
|
192
|
+
#
|
193
|
+
# @return [Types::GetThingShadowResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
194
|
+
#
|
195
|
+
# * {Types::GetThingShadowResponse#payload #payload} => String
|
196
|
+
#
|
197
|
+
# @example Request syntax with placeholder values
|
198
|
+
#
|
199
|
+
# resp = client.get_thing_shadow({
|
200
|
+
# thing_name: "ThingName", # required
|
201
|
+
# })
|
202
|
+
#
|
203
|
+
# @example Response structure
|
204
|
+
#
|
205
|
+
# resp.payload #=> String
|
206
|
+
#
|
207
|
+
# @overload get_thing_shadow(params = {})
|
208
|
+
# @param [Hash] params ({})
|
209
|
+
def get_thing_shadow(params = {}, options = {})
|
210
|
+
req = build_request(:get_thing_shadow, params)
|
211
|
+
req.send_request(options)
|
212
|
+
end
|
217
213
|
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
214
|
+
# Publishes state information.
|
215
|
+
#
|
216
|
+
# For more information, see [HTTP Protocol][1] in the *AWS IoT Developer
|
217
|
+
# Guide*.
|
218
|
+
#
|
219
|
+
#
|
220
|
+
#
|
221
|
+
# [1]: http://docs.aws.amazon.com/iot/latest/developerguide/protocols.html#http
|
222
|
+
#
|
223
|
+
# @option params [required, String] :topic
|
224
|
+
# The name of the MQTT topic.
|
225
|
+
#
|
226
|
+
# @option params [Integer] :qos
|
227
|
+
# The Quality of Service (QoS) level.
|
228
|
+
#
|
229
|
+
# @option params [String, IO] :payload
|
230
|
+
# The state information, in JSON format.
|
231
|
+
#
|
232
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
233
|
+
#
|
234
|
+
# @example Request syntax with placeholder values
|
235
|
+
#
|
236
|
+
# resp = client.publish({
|
237
|
+
# topic: "Topic", # required
|
238
|
+
# qos: 1,
|
239
|
+
# payload: "data",
|
240
|
+
# })
|
241
|
+
#
|
242
|
+
# @overload publish(params = {})
|
243
|
+
# @param [Hash] params ({})
|
244
|
+
def publish(params = {}, options = {})
|
245
|
+
req = build_request(:publish, params)
|
246
|
+
req.send_request(options)
|
247
|
+
end
|
248
248
|
|
249
|
-
|
249
|
+
# Updates the thing shadow for the specified thing.
|
250
|
+
#
|
251
|
+
# For more information, see [UpdateThingShadow][1] in the *AWS IoT
|
252
|
+
# Developer Guide*.
|
253
|
+
#
|
254
|
+
#
|
255
|
+
#
|
256
|
+
# [1]: http://docs.aws.amazon.com/iot/latest/developerguide/API_UpdateThingShadow.html
|
257
|
+
#
|
258
|
+
# @option params [required, String] :thing_name
|
259
|
+
# The name of the thing.
|
260
|
+
#
|
261
|
+
# @option params [required, String, IO] :payload
|
262
|
+
# The state information, in JSON format.
|
263
|
+
#
|
264
|
+
# @return [Types::UpdateThingShadowResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
265
|
+
#
|
266
|
+
# * {Types::UpdateThingShadowResponse#payload #payload} => String
|
267
|
+
#
|
268
|
+
# @example Request syntax with placeholder values
|
269
|
+
#
|
270
|
+
# resp = client.update_thing_shadow({
|
271
|
+
# thing_name: "ThingName", # required
|
272
|
+
# payload: "data", # required
|
273
|
+
# })
|
274
|
+
#
|
275
|
+
# @example Response structure
|
276
|
+
#
|
277
|
+
# resp.payload #=> String
|
278
|
+
#
|
279
|
+
# @overload update_thing_shadow(params = {})
|
280
|
+
# @param [Hash] params ({})
|
281
|
+
def update_thing_shadow(params = {}, options = {})
|
282
|
+
req = build_request(:update_thing_shadow, params)
|
283
|
+
req.send_request(options)
|
284
|
+
end
|
250
285
|
|
251
|
-
|
252
|
-
# @api private
|
253
|
-
def build_request(operation_name, params = {})
|
254
|
-
handlers = @handlers.for(operation_name)
|
255
|
-
context = Seahorse::Client::RequestContext.new(
|
256
|
-
operation_name: operation_name,
|
257
|
-
operation: config.api.operation(operation_name),
|
258
|
-
client: self,
|
259
|
-
params: params,
|
260
|
-
config: config)
|
261
|
-
context[:gem_name] = 'aws-sdk-iotdataplane'
|
262
|
-
context[:gem_version] = '1.0.0.rc1'
|
263
|
-
Seahorse::Client::Request.new(handlers, context)
|
264
|
-
end
|
286
|
+
# @!endgroup
|
265
287
|
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
288
|
+
# @param params ({})
|
289
|
+
# @api private
|
290
|
+
def build_request(operation_name, params = {})
|
291
|
+
handlers = @handlers.for(operation_name)
|
292
|
+
context = Seahorse::Client::RequestContext.new(
|
293
|
+
operation_name: operation_name,
|
294
|
+
operation: config.api.operation(operation_name),
|
295
|
+
client: self,
|
296
|
+
params: params,
|
297
|
+
config: config)
|
298
|
+
context[:gem_name] = 'aws-sdk-iotdataplane'
|
299
|
+
context[:gem_version] = '1.0.0.rc2'
|
300
|
+
Seahorse::Client::Request.new(handlers, context)
|
301
|
+
end
|
271
302
|
|
272
|
-
|
303
|
+
# @api private
|
304
|
+
# @deprecated
|
305
|
+
def waiter_names
|
306
|
+
[]
|
307
|
+
end
|
273
308
|
|
274
|
-
|
275
|
-
attr_reader :identifier
|
309
|
+
class << self
|
276
310
|
|
277
|
-
|
278
|
-
|
279
|
-
Errors
|
280
|
-
end
|
311
|
+
# @api private
|
312
|
+
attr_reader :identifier
|
281
313
|
|
314
|
+
# @api private
|
315
|
+
def errors_module
|
316
|
+
Errors
|
282
317
|
end
|
318
|
+
|
283
319
|
end
|
284
320
|
end
|
285
321
|
end
|
@@ -1,151 +1,149 @@
|
|
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
|
7
7
|
|
8
|
-
module Aws
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
# @api private
|
76
|
-
API = Seahorse::Model::Api.new.tap do |api|
|
77
|
-
|
78
|
-
api.version = "2015-05-28"
|
79
|
-
|
80
|
-
api.metadata = {
|
81
|
-
"protocol" => "rest-json",
|
82
|
-
"serviceFullName" => "AWS IoT Data Plane",
|
83
|
-
"signatureVersion" => "v4",
|
84
|
-
"signingName" => "iotdata",
|
85
|
-
}
|
86
|
-
|
87
|
-
api.add_operation(:delete_thing_shadow, Seahorse::Model::Operation.new.tap do |o|
|
88
|
-
o.name = "DeleteThingShadow"
|
89
|
-
o.http_method = "DELETE"
|
90
|
-
o.http_request_uri = "/things/{thingName}/shadow"
|
91
|
-
o.input = Shapes::ShapeRef.new(shape: DeleteThingShadowRequest)
|
92
|
-
o.output = Shapes::ShapeRef.new(shape: DeleteThingShadowResponse)
|
93
|
-
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
94
|
-
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
95
|
-
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
96
|
-
o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
|
97
|
-
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
98
|
-
o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
|
99
|
-
o.errors << Shapes::ShapeRef.new(shape: MethodNotAllowedException)
|
100
|
-
o.errors << Shapes::ShapeRef.new(shape: UnsupportedDocumentEncodingException)
|
101
|
-
end)
|
102
|
-
|
103
|
-
api.add_operation(:get_thing_shadow, Seahorse::Model::Operation.new.tap do |o|
|
104
|
-
o.name = "GetThingShadow"
|
105
|
-
o.http_method = "GET"
|
106
|
-
o.http_request_uri = "/things/{thingName}/shadow"
|
107
|
-
o.input = Shapes::ShapeRef.new(shape: GetThingShadowRequest)
|
108
|
-
o.output = Shapes::ShapeRef.new(shape: GetThingShadowResponse)
|
109
|
-
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
110
|
-
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
111
|
-
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
112
|
-
o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
|
113
|
-
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
114
|
-
o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
|
115
|
-
o.errors << Shapes::ShapeRef.new(shape: MethodNotAllowedException)
|
116
|
-
o.errors << Shapes::ShapeRef.new(shape: UnsupportedDocumentEncodingException)
|
117
|
-
end)
|
118
|
-
|
119
|
-
api.add_operation(:publish, Seahorse::Model::Operation.new.tap do |o|
|
120
|
-
o.name = "Publish"
|
121
|
-
o.http_method = "POST"
|
122
|
-
o.http_request_uri = "/topics/{topic}"
|
123
|
-
o.input = Shapes::ShapeRef.new(shape: PublishRequest)
|
124
|
-
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
125
|
-
o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
|
126
|
-
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
127
|
-
o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
|
128
|
-
o.errors << Shapes::ShapeRef.new(shape: MethodNotAllowedException)
|
129
|
-
end)
|
130
|
-
|
131
|
-
api.add_operation(:update_thing_shadow, Seahorse::Model::Operation.new.tap do |o|
|
132
|
-
o.name = "UpdateThingShadow"
|
133
|
-
o.http_method = "POST"
|
134
|
-
o.http_request_uri = "/things/{thingName}/shadow"
|
135
|
-
o.input = Shapes::ShapeRef.new(shape: UpdateThingShadowRequest)
|
136
|
-
o.output = Shapes::ShapeRef.new(shape: UpdateThingShadowResponse)
|
137
|
-
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
138
|
-
o.errors << Shapes::ShapeRef.new(shape: RequestEntityTooLargeException)
|
139
|
-
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
140
|
-
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
141
|
-
o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
|
142
|
-
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
143
|
-
o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
|
144
|
-
o.errors << Shapes::ShapeRef.new(shape: MethodNotAllowedException)
|
145
|
-
o.errors << Shapes::ShapeRef.new(shape: UnsupportedDocumentEncodingException)
|
146
|
-
end)
|
147
|
-
end
|
8
|
+
module Aws::IoTDataPlane
|
9
|
+
# @api private
|
10
|
+
module ClientApi
|
11
|
+
|
12
|
+
include Seahorse::Model
|
13
|
+
|
14
|
+
ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
|
15
|
+
DeleteThingShadowRequest = Shapes::StructureShape.new(name: 'DeleteThingShadowRequest')
|
16
|
+
DeleteThingShadowResponse = Shapes::StructureShape.new(name: 'DeleteThingShadowResponse')
|
17
|
+
ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
|
18
|
+
GetThingShadowRequest = Shapes::StructureShape.new(name: 'GetThingShadowRequest')
|
19
|
+
GetThingShadowResponse = Shapes::StructureShape.new(name: 'GetThingShadowResponse')
|
20
|
+
InternalFailureException = Shapes::StructureShape.new(name: 'InternalFailureException')
|
21
|
+
InvalidRequestException = Shapes::StructureShape.new(name: 'InvalidRequestException')
|
22
|
+
JsonDocument = Shapes::BlobShape.new(name: 'JsonDocument')
|
23
|
+
MethodNotAllowedException = Shapes::StructureShape.new(name: 'MethodNotAllowedException')
|
24
|
+
Payload = Shapes::BlobShape.new(name: 'Payload')
|
25
|
+
PublishRequest = Shapes::StructureShape.new(name: 'PublishRequest')
|
26
|
+
Qos = Shapes::IntegerShape.new(name: 'Qos')
|
27
|
+
RequestEntityTooLargeException = Shapes::StructureShape.new(name: 'RequestEntityTooLargeException')
|
28
|
+
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
29
|
+
ServiceUnavailableException = Shapes::StructureShape.new(name: 'ServiceUnavailableException')
|
30
|
+
ThingName = Shapes::StringShape.new(name: 'ThingName')
|
31
|
+
ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
|
32
|
+
Topic = Shapes::StringShape.new(name: 'Topic')
|
33
|
+
UnauthorizedException = Shapes::StructureShape.new(name: 'UnauthorizedException')
|
34
|
+
UnsupportedDocumentEncodingException = Shapes::StructureShape.new(name: 'UnsupportedDocumentEncodingException')
|
35
|
+
UpdateThingShadowRequest = Shapes::StructureShape.new(name: 'UpdateThingShadowRequest')
|
36
|
+
UpdateThingShadowResponse = Shapes::StructureShape.new(name: 'UpdateThingShadowResponse')
|
37
|
+
errorMessage = Shapes::StringShape.new(name: 'errorMessage')
|
38
|
+
|
39
|
+
DeleteThingShadowRequest.add_member(:thing_name, Shapes::ShapeRef.new(shape: ThingName, required: true, location: "uri", location_name: "thingName"))
|
40
|
+
DeleteThingShadowRequest.struct_class = Types::DeleteThingShadowRequest
|
41
|
+
|
42
|
+
DeleteThingShadowResponse.add_member(:payload, Shapes::ShapeRef.new(shape: JsonDocument, required: true, location_name: "payload"))
|
43
|
+
DeleteThingShadowResponse.struct_class = Types::DeleteThingShadowResponse
|
44
|
+
DeleteThingShadowResponse[:payload] = :payload
|
45
|
+
DeleteThingShadowResponse[:payload_member] = DeleteThingShadowResponse.member(:payload)
|
46
|
+
|
47
|
+
GetThingShadowRequest.add_member(:thing_name, Shapes::ShapeRef.new(shape: ThingName, required: true, location: "uri", location_name: "thingName"))
|
48
|
+
GetThingShadowRequest.struct_class = Types::GetThingShadowRequest
|
49
|
+
|
50
|
+
GetThingShadowResponse.add_member(:payload, Shapes::ShapeRef.new(shape: JsonDocument, location_name: "payload"))
|
51
|
+
GetThingShadowResponse.struct_class = Types::GetThingShadowResponse
|
52
|
+
GetThingShadowResponse[:payload] = :payload
|
53
|
+
GetThingShadowResponse[:payload_member] = GetThingShadowResponse.member(:payload)
|
54
|
+
|
55
|
+
PublishRequest.add_member(:topic, Shapes::ShapeRef.new(shape: Topic, required: true, location: "uri", location_name: "topic"))
|
56
|
+
PublishRequest.add_member(:qos, Shapes::ShapeRef.new(shape: Qos, location: "querystring", location_name: "qos"))
|
57
|
+
PublishRequest.add_member(:payload, Shapes::ShapeRef.new(shape: Payload, location_name: "payload"))
|
58
|
+
PublishRequest.struct_class = Types::PublishRequest
|
59
|
+
PublishRequest[:payload] = :payload
|
60
|
+
PublishRequest[:payload_member] = PublishRequest.member(:payload)
|
61
|
+
|
62
|
+
UpdateThingShadowRequest.add_member(:thing_name, Shapes::ShapeRef.new(shape: ThingName, required: true, location: "uri", location_name: "thingName"))
|
63
|
+
UpdateThingShadowRequest.add_member(:payload, Shapes::ShapeRef.new(shape: JsonDocument, required: true, location_name: "payload"))
|
64
|
+
UpdateThingShadowRequest.struct_class = Types::UpdateThingShadowRequest
|
65
|
+
UpdateThingShadowRequest[:payload] = :payload
|
66
|
+
UpdateThingShadowRequest[:payload_member] = UpdateThingShadowRequest.member(:payload)
|
67
|
+
|
68
|
+
UpdateThingShadowResponse.add_member(:payload, Shapes::ShapeRef.new(shape: JsonDocument, location_name: "payload"))
|
69
|
+
UpdateThingShadowResponse.struct_class = Types::UpdateThingShadowResponse
|
70
|
+
UpdateThingShadowResponse[:payload] = :payload
|
71
|
+
UpdateThingShadowResponse[:payload_member] = UpdateThingShadowResponse.member(:payload)
|
72
|
+
|
148
73
|
|
74
|
+
# @api private
|
75
|
+
API = Seahorse::Model::Api.new.tap do |api|
|
76
|
+
|
77
|
+
api.version = "2015-05-28"
|
78
|
+
|
79
|
+
api.metadata = {
|
80
|
+
"protocol" => "rest-json",
|
81
|
+
"serviceFullName" => "AWS IoT Data Plane",
|
82
|
+
"signatureVersion" => "v4",
|
83
|
+
"signingName" => "iotdata",
|
84
|
+
}
|
85
|
+
|
86
|
+
api.add_operation(:delete_thing_shadow, Seahorse::Model::Operation.new.tap do |o|
|
87
|
+
o.name = "DeleteThingShadow"
|
88
|
+
o.http_method = "DELETE"
|
89
|
+
o.http_request_uri = "/things/{thingName}/shadow"
|
90
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteThingShadowRequest)
|
91
|
+
o.output = Shapes::ShapeRef.new(shape: DeleteThingShadowResponse)
|
92
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
93
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
94
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
95
|
+
o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
|
96
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
97
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
|
98
|
+
o.errors << Shapes::ShapeRef.new(shape: MethodNotAllowedException)
|
99
|
+
o.errors << Shapes::ShapeRef.new(shape: UnsupportedDocumentEncodingException)
|
100
|
+
end)
|
101
|
+
|
102
|
+
api.add_operation(:get_thing_shadow, Seahorse::Model::Operation.new.tap do |o|
|
103
|
+
o.name = "GetThingShadow"
|
104
|
+
o.http_method = "GET"
|
105
|
+
o.http_request_uri = "/things/{thingName}/shadow"
|
106
|
+
o.input = Shapes::ShapeRef.new(shape: GetThingShadowRequest)
|
107
|
+
o.output = Shapes::ShapeRef.new(shape: GetThingShadowResponse)
|
108
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
109
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
110
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
111
|
+
o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
|
112
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
113
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
|
114
|
+
o.errors << Shapes::ShapeRef.new(shape: MethodNotAllowedException)
|
115
|
+
o.errors << Shapes::ShapeRef.new(shape: UnsupportedDocumentEncodingException)
|
116
|
+
end)
|
117
|
+
|
118
|
+
api.add_operation(:publish, Seahorse::Model::Operation.new.tap do |o|
|
119
|
+
o.name = "Publish"
|
120
|
+
o.http_method = "POST"
|
121
|
+
o.http_request_uri = "/topics/{topic}"
|
122
|
+
o.input = Shapes::ShapeRef.new(shape: PublishRequest)
|
123
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
124
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
|
125
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
126
|
+
o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
|
127
|
+
o.errors << Shapes::ShapeRef.new(shape: MethodNotAllowedException)
|
128
|
+
end)
|
129
|
+
|
130
|
+
api.add_operation(:update_thing_shadow, Seahorse::Model::Operation.new.tap do |o|
|
131
|
+
o.name = "UpdateThingShadow"
|
132
|
+
o.http_method = "POST"
|
133
|
+
o.http_request_uri = "/things/{thingName}/shadow"
|
134
|
+
o.input = Shapes::ShapeRef.new(shape: UpdateThingShadowRequest)
|
135
|
+
o.output = Shapes::ShapeRef.new(shape: UpdateThingShadowResponse)
|
136
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
137
|
+
o.errors << Shapes::ShapeRef.new(shape: RequestEntityTooLargeException)
|
138
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
139
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
140
|
+
o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
|
141
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
142
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
|
143
|
+
o.errors << Shapes::ShapeRef.new(shape: MethodNotAllowedException)
|
144
|
+
o.errors << Shapes::ShapeRef.new(shape: UnsupportedDocumentEncodingException)
|
145
|
+
end)
|
149
146
|
end
|
147
|
+
|
150
148
|
end
|
151
149
|
end
|
@@ -1,23 +1,14 @@
|
|
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
|
7
7
|
|
8
|
-
module Aws
|
9
|
-
module
|
10
|
-
module Errors
|
8
|
+
module Aws::IoTDataPlane
|
9
|
+
module Errors
|
11
10
|
|
12
|
-
|
11
|
+
extend Aws::Errors::DynamicErrors
|
13
12
|
|
14
|
-
# Raised when calling #load or #data on a resource class that can not be
|
15
|
-
# loaded. This can happen when:
|
16
|
-
#
|
17
|
-
# * A resource class has identifiers, but no data attributes.
|
18
|
-
# * Resource data is only available when making an API call that
|
19
|
-
# enumerates all resources of that type.
|
20
|
-
class ResourceNotLoadable < RuntimeError; end
|
21
|
-
end
|
22
13
|
end
|
23
14
|
end
|
@@ -1,25 +1,23 @@
|
|
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
|
7
7
|
|
8
|
-
module Aws
|
9
|
-
|
10
|
-
class Resource
|
8
|
+
module Aws::IoTDataPlane
|
9
|
+
class Resource
|
11
10
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
# @return [Client]
|
19
|
-
def client
|
20
|
-
@client
|
21
|
-
end
|
11
|
+
# @param options ({})
|
12
|
+
# @option options [Client] :client
|
13
|
+
def initialize(options = {})
|
14
|
+
@client = options[:client] || Client.new(options)
|
15
|
+
end
|
22
16
|
|
17
|
+
# @return [Client]
|
18
|
+
def client
|
19
|
+
@client
|
23
20
|
end
|
21
|
+
|
24
22
|
end
|
25
23
|
end
|
@@ -1,119 +1,135 @@
|
|
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
|
7
7
|
|
8
|
-
module Aws
|
9
|
-
module
|
10
|
-
module Types
|
8
|
+
module Aws::IoTDataPlane
|
9
|
+
module Types
|
11
10
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
# The state information, in JSON format.
|
30
|
-
# @return [String]
|
31
|
-
class DeleteThingShadowResponse < Struct.new(
|
32
|
-
:payload)
|
33
|
-
include Aws::Structure
|
34
|
-
end
|
11
|
+
# The input for the DeleteThingShadow operation.
|
12
|
+
#
|
13
|
+
# @note When making an API call, you may pass DeleteThingShadowRequest
|
14
|
+
# data as a hash:
|
15
|
+
#
|
16
|
+
# {
|
17
|
+
# thing_name: "ThingName", # required
|
18
|
+
# }
|
19
|
+
#
|
20
|
+
# @!attribute [rw] thing_name
|
21
|
+
# The name of the thing.
|
22
|
+
# @return [String]
|
23
|
+
#
|
24
|
+
class DeleteThingShadowRequest < Struct.new(
|
25
|
+
:thing_name)
|
26
|
+
include Aws::Structure
|
27
|
+
end
|
35
28
|
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
class GetThingShadowRequest < Struct.new(
|
47
|
-
:thing_name)
|
48
|
-
include Aws::Structure
|
49
|
-
end
|
29
|
+
# The output from the DeleteThingShadow operation.
|
30
|
+
#
|
31
|
+
# @!attribute [rw] payload
|
32
|
+
# The state information, in JSON format.
|
33
|
+
# @return [String]
|
34
|
+
#
|
35
|
+
class DeleteThingShadowResponse < Struct.new(
|
36
|
+
:payload)
|
37
|
+
include Aws::Structure
|
38
|
+
end
|
50
39
|
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
40
|
+
# The input for the GetThingShadow operation.
|
41
|
+
#
|
42
|
+
# @note When making an API call, you may pass GetThingShadowRequest
|
43
|
+
# data as a hash:
|
44
|
+
#
|
45
|
+
# {
|
46
|
+
# thing_name: "ThingName", # required
|
47
|
+
# }
|
48
|
+
#
|
49
|
+
# @!attribute [rw] thing_name
|
50
|
+
# The name of the thing.
|
51
|
+
# @return [String]
|
52
|
+
#
|
53
|
+
class GetThingShadowRequest < Struct.new(
|
54
|
+
:thing_name)
|
55
|
+
include Aws::Structure
|
56
|
+
end
|
59
57
|
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
# The name of the MQTT topic.
|
71
|
-
# @return [String]
|
72
|
-
#
|
73
|
-
# @!attribute [rw] qos
|
74
|
-
# The Quality of Service (QoS) level.
|
75
|
-
# @return [Integer]
|
76
|
-
#
|
77
|
-
# @!attribute [rw] payload
|
78
|
-
# The state information, in JSON format.
|
79
|
-
# @return [String]
|
80
|
-
class PublishRequest < Struct.new(
|
81
|
-
:topic,
|
82
|
-
:qos,
|
83
|
-
:payload)
|
84
|
-
include Aws::Structure
|
85
|
-
end
|
58
|
+
# The output from the GetThingShadow operation.
|
59
|
+
#
|
60
|
+
# @!attribute [rw] payload
|
61
|
+
# The state information, in JSON format.
|
62
|
+
# @return [String]
|
63
|
+
#
|
64
|
+
class GetThingShadowResponse < Struct.new(
|
65
|
+
:payload)
|
66
|
+
include Aws::Structure
|
67
|
+
end
|
86
68
|
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
69
|
+
# The input for the Publish operation.
|
70
|
+
#
|
71
|
+
# @note When making an API call, you may pass PublishRequest
|
72
|
+
# data as a hash:
|
73
|
+
#
|
74
|
+
# {
|
75
|
+
# topic: "Topic", # required
|
76
|
+
# qos: 1,
|
77
|
+
# payload: "data",
|
78
|
+
# }
|
79
|
+
#
|
80
|
+
# @!attribute [rw] topic
|
81
|
+
# The name of the MQTT topic.
|
82
|
+
# @return [String]
|
83
|
+
#
|
84
|
+
# @!attribute [rw] qos
|
85
|
+
# The Quality of Service (QoS) level.
|
86
|
+
# @return [Integer]
|
87
|
+
#
|
88
|
+
# @!attribute [rw] payload
|
89
|
+
# The state information, in JSON format.
|
90
|
+
# @return [String]
|
91
|
+
#
|
92
|
+
class PublishRequest < Struct.new(
|
93
|
+
:topic,
|
94
|
+
:qos,
|
95
|
+
:payload)
|
96
|
+
include Aws::Structure
|
97
|
+
end
|
107
98
|
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
99
|
+
# The input for the UpdateThingShadow operation.
|
100
|
+
#
|
101
|
+
# @note When making an API call, you may pass UpdateThingShadowRequest
|
102
|
+
# data as a hash:
|
103
|
+
#
|
104
|
+
# {
|
105
|
+
# thing_name: "ThingName", # required
|
106
|
+
# payload: "data", # required
|
107
|
+
# }
|
108
|
+
#
|
109
|
+
# @!attribute [rw] thing_name
|
110
|
+
# The name of the thing.
|
111
|
+
# @return [String]
|
112
|
+
#
|
113
|
+
# @!attribute [rw] payload
|
114
|
+
# The state information, in JSON format.
|
115
|
+
# @return [String]
|
116
|
+
#
|
117
|
+
class UpdateThingShadowRequest < Struct.new(
|
118
|
+
:thing_name,
|
119
|
+
:payload)
|
120
|
+
include Aws::Structure
|
121
|
+
end
|
116
122
|
|
123
|
+
# The output from the UpdateThingShadow operation.
|
124
|
+
#
|
125
|
+
# @!attribute [rw] payload
|
126
|
+
# The state information, in JSON format.
|
127
|
+
# @return [String]
|
128
|
+
#
|
129
|
+
class UpdateThingShadowResponse < Struct.new(
|
130
|
+
:payload)
|
131
|
+
include Aws::Structure
|
117
132
|
end
|
133
|
+
|
118
134
|
end
|
119
135
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-iotdataplane
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.rc2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-04-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|