aws-sdk-greengrass 1.0.0 → 1.1.0
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-greengrass.rb +1 -1
- data/lib/aws-sdk-greengrass/client.rb +48 -4
- data/lib/aws-sdk-greengrass/client_api.rb +23 -0
- data/lib/aws-sdk-greengrass/types.rb +72 -10
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8495fc41ea55498f0a3d64f2a32ad10aa50f00a6
|
4
|
+
data.tar.gz: c97aba2bdd522e90138250b03ec9dde193540649
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b16818f7161e49abc8d80d0ede80ec555eb961fe4fffc6c4f7f510a5ebef64193d25b469696cd5a63e16b3ddd0b6c102ad5cde46893f789b02096475f308caea
|
7
|
+
data.tar.gz: b9856cddaf85d4e68dd49f1f8f2f8e04191c1a01b9c67802c38d6970dbe7608f72426d28d1eb5c6d0d9576f76f8b4d0d346dd5b095f5b3ee4d9b645243203059
|
data/lib/aws-sdk-greengrass.rb
CHANGED
@@ -323,7 +323,8 @@ module Aws::Greengrass
|
|
323
323
|
# Id of the deployment if you wish to redeploy a previous deployment.
|
324
324
|
#
|
325
325
|
# @option params [String] :deployment_type
|
326
|
-
# Type of deployment
|
326
|
+
# Type of deployment. When used in CreateDeployment, only NewDeployment
|
327
|
+
# and Redeployment are valid.
|
327
328
|
#
|
328
329
|
# @option params [required, String] :group_id
|
329
330
|
#
|
@@ -340,7 +341,7 @@ module Aws::Greengrass
|
|
340
341
|
# resp = client.create_deployment({
|
341
342
|
# amzn_client_token: "__string",
|
342
343
|
# deployment_id: "__string",
|
343
|
-
# deployment_type: "NewDeployment", # accepts NewDeployment, Redeployment
|
344
|
+
# deployment_type: "NewDeployment", # accepts NewDeployment, Redeployment, ResetDeployment, ForceResetDeployment
|
344
345
|
# group_id: "__string", # required
|
345
346
|
# group_version_id: "__string",
|
346
347
|
# })
|
@@ -1264,6 +1265,8 @@ module Aws::Greengrass
|
|
1264
1265
|
# @return [Types::GetDeploymentStatusResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1265
1266
|
#
|
1266
1267
|
# * {Types::GetDeploymentStatusResponse#deployment_status #deployment_status} => String
|
1268
|
+
# * {Types::GetDeploymentStatusResponse#deployment_type #deployment_type} => String
|
1269
|
+
# * {Types::GetDeploymentStatusResponse#error_details #error_details} => Array<Types::ErrorDetail>
|
1267
1270
|
# * {Types::GetDeploymentStatusResponse#error_message #error_message} => String
|
1268
1271
|
# * {Types::GetDeploymentStatusResponse#updated_at #updated_at} => String
|
1269
1272
|
#
|
@@ -1277,6 +1280,10 @@ module Aws::Greengrass
|
|
1277
1280
|
# @example Response structure
|
1278
1281
|
#
|
1279
1282
|
# resp.deployment_status #=> String
|
1283
|
+
# resp.deployment_type #=> String, one of "NewDeployment", "Redeployment", "ResetDeployment", "ForceResetDeployment"
|
1284
|
+
# resp.error_details #=> Array
|
1285
|
+
# resp.error_details[0].detailed_error_code #=> String
|
1286
|
+
# resp.error_details[0].detailed_error_message #=> String
|
1280
1287
|
# resp.error_message #=> String
|
1281
1288
|
# resp.updated_at #=> String
|
1282
1289
|
#
|
@@ -1895,6 +1902,7 @@ module Aws::Greengrass
|
|
1895
1902
|
# resp.deployments[0].created_at #=> String
|
1896
1903
|
# resp.deployments[0].deployment_arn #=> String
|
1897
1904
|
# resp.deployments[0].deployment_id #=> String
|
1905
|
+
# resp.deployments[0].deployment_type #=> String, one of "NewDeployment", "Redeployment", "ResetDeployment", "ForceResetDeployment"
|
1898
1906
|
# resp.deployments[0].group_arn #=> String
|
1899
1907
|
# resp.next_token #=> String
|
1900
1908
|
#
|
@@ -2326,12 +2334,48 @@ module Aws::Greengrass
|
|
2326
2334
|
req.send_request(options)
|
2327
2335
|
end
|
2328
2336
|
|
2337
|
+
# Resets a group's deployments.
|
2338
|
+
#
|
2339
|
+
# @option params [String] :amzn_client_token
|
2340
|
+
#
|
2341
|
+
# @option params [Boolean] :force
|
2342
|
+
# When set to true, perform a best-effort only core reset.
|
2343
|
+
#
|
2344
|
+
# @option params [required, String] :group_id
|
2345
|
+
#
|
2346
|
+
# @return [Types::ResetDeploymentsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2347
|
+
#
|
2348
|
+
# * {Types::ResetDeploymentsResponse#deployment_arn #deployment_arn} => String
|
2349
|
+
# * {Types::ResetDeploymentsResponse#deployment_id #deployment_id} => String
|
2350
|
+
#
|
2351
|
+
# @example Request syntax with placeholder values
|
2352
|
+
#
|
2353
|
+
# resp = client.reset_deployments({
|
2354
|
+
# amzn_client_token: "__string",
|
2355
|
+
# force: false,
|
2356
|
+
# group_id: "__string", # required
|
2357
|
+
# })
|
2358
|
+
#
|
2359
|
+
# @example Response structure
|
2360
|
+
#
|
2361
|
+
# resp.deployment_arn #=> String
|
2362
|
+
# resp.deployment_id #=> String
|
2363
|
+
#
|
2364
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ResetDeployments AWS API Documentation
|
2365
|
+
#
|
2366
|
+
# @overload reset_deployments(params = {})
|
2367
|
+
# @param [Hash] params ({})
|
2368
|
+
def reset_deployments(params = {}, options = {})
|
2369
|
+
req = build_request(:reset_deployments, params)
|
2370
|
+
req.send_request(options)
|
2371
|
+
end
|
2372
|
+
|
2329
2373
|
# Updates the connectivity information for the core. Any devices that
|
2330
2374
|
# belong to the group which has this core will receive this information
|
2331
2375
|
# in order to find the location of the core and connect to it.
|
2332
2376
|
#
|
2333
2377
|
# @option params [Array<Types::ConnectivityInfo>] :connectivity_info
|
2334
|
-
# Connectivity info
|
2378
|
+
# Connectivity info list
|
2335
2379
|
#
|
2336
2380
|
# @option params [required, String] :thing_name
|
2337
2381
|
#
|
@@ -2560,7 +2604,7 @@ module Aws::Greengrass
|
|
2560
2604
|
params: params,
|
2561
2605
|
config: config)
|
2562
2606
|
context[:gem_name] = 'aws-sdk-greengrass'
|
2563
|
-
context[:gem_version] = '1.
|
2607
|
+
context[:gem_version] = '1.1.0'
|
2564
2608
|
Seahorse::Client::Request.new(handlers, context)
|
2565
2609
|
end
|
2566
2610
|
|
@@ -164,6 +164,8 @@ module Aws::Greengrass
|
|
164
164
|
LoggerLevel = Shapes::StringShape.new(name: 'LoggerLevel')
|
165
165
|
LoggerType = Shapes::StringShape.new(name: 'LoggerType')
|
166
166
|
MapOf__string = Shapes::MapShape.new(name: 'MapOf__string')
|
167
|
+
ResetDeploymentsRequest = Shapes::StructureShape.new(name: 'ResetDeploymentsRequest')
|
168
|
+
ResetDeploymentsResponse = Shapes::StructureShape.new(name: 'ResetDeploymentsResponse')
|
167
169
|
Subscription = Shapes::StructureShape.new(name: 'Subscription')
|
168
170
|
SubscriptionDefinitionVersion = Shapes::StructureShape.new(name: 'SubscriptionDefinitionVersion')
|
169
171
|
UpdateConnectivityInfoRequest = Shapes::StructureShape.new(name: 'UpdateConnectivityInfoRequest')
|
@@ -431,6 +433,7 @@ module Aws::Greengrass
|
|
431
433
|
Deployment.add_member(:created_at, Shapes::ShapeRef.new(shape: __string, location_name: "CreatedAt"))
|
432
434
|
Deployment.add_member(:deployment_arn, Shapes::ShapeRef.new(shape: __string, location_name: "DeploymentArn"))
|
433
435
|
Deployment.add_member(:deployment_id, Shapes::ShapeRef.new(shape: __string, location_name: "DeploymentId"))
|
436
|
+
Deployment.add_member(:deployment_type, Shapes::ShapeRef.new(shape: DeploymentType, location_name: "DeploymentType"))
|
434
437
|
Deployment.add_member(:group_arn, Shapes::ShapeRef.new(shape: __string, location_name: "GroupArn"))
|
435
438
|
Deployment.struct_class = Types::Deployment
|
436
439
|
|
@@ -529,6 +532,8 @@ module Aws::Greengrass
|
|
529
532
|
GetDeploymentStatusRequest.struct_class = Types::GetDeploymentStatusRequest
|
530
533
|
|
531
534
|
GetDeploymentStatusResponse.add_member(:deployment_status, Shapes::ShapeRef.new(shape: __string, location_name: "DeploymentStatus"))
|
535
|
+
GetDeploymentStatusResponse.add_member(:deployment_type, Shapes::ShapeRef.new(shape: DeploymentType, location_name: "DeploymentType"))
|
536
|
+
GetDeploymentStatusResponse.add_member(:error_details, Shapes::ShapeRef.new(shape: ErrorDetails, location_name: "ErrorDetails"))
|
532
537
|
GetDeploymentStatusResponse.add_member(:error_message, Shapes::ShapeRef.new(shape: __string, location_name: "ErrorMessage"))
|
533
538
|
GetDeploymentStatusResponse.add_member(:updated_at, Shapes::ShapeRef.new(shape: __string, location_name: "UpdatedAt"))
|
534
539
|
GetDeploymentStatusResponse.struct_class = Types::GetDeploymentStatusResponse
|
@@ -854,6 +859,15 @@ module Aws::Greengrass
|
|
854
859
|
MapOf__string.key = Shapes::ShapeRef.new(shape: __string)
|
855
860
|
MapOf__string.value = Shapes::ShapeRef.new(shape: __string)
|
856
861
|
|
862
|
+
ResetDeploymentsRequest.add_member(:amzn_client_token, Shapes::ShapeRef.new(shape: __string, location: "header", location_name: "X-Amzn-Client-Token"))
|
863
|
+
ResetDeploymentsRequest.add_member(:force, Shapes::ShapeRef.new(shape: __boolean, location_name: "Force"))
|
864
|
+
ResetDeploymentsRequest.add_member(:group_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "GroupId"))
|
865
|
+
ResetDeploymentsRequest.struct_class = Types::ResetDeploymentsRequest
|
866
|
+
|
867
|
+
ResetDeploymentsResponse.add_member(:deployment_arn, Shapes::ShapeRef.new(shape: __string, location_name: "DeploymentArn"))
|
868
|
+
ResetDeploymentsResponse.add_member(:deployment_id, Shapes::ShapeRef.new(shape: __string, location_name: "DeploymentId"))
|
869
|
+
ResetDeploymentsResponse.struct_class = Types::ResetDeploymentsResponse
|
870
|
+
|
857
871
|
Subscription.add_member(:id, Shapes::ShapeRef.new(shape: __string, location_name: "Id"))
|
858
872
|
Subscription.add_member(:source, Shapes::ShapeRef.new(shape: __string, location_name: "Source"))
|
859
873
|
Subscription.add_member(:subject, Shapes::ShapeRef.new(shape: __string, location_name: "Subject"))
|
@@ -1444,6 +1458,15 @@ module Aws::Greengrass
|
|
1444
1458
|
o.output = Shapes::ShapeRef.new(shape: ListSubscriptionDefinitionsResponse)
|
1445
1459
|
end)
|
1446
1460
|
|
1461
|
+
api.add_operation(:reset_deployments, Seahorse::Model::Operation.new.tap do |o|
|
1462
|
+
o.name = "ResetDeployments"
|
1463
|
+
o.http_method = "POST"
|
1464
|
+
o.http_request_uri = "/greengrass/groups/{GroupId}/deployments/$reset"
|
1465
|
+
o.input = Shapes::ShapeRef.new(shape: ResetDeploymentsRequest)
|
1466
|
+
o.output = Shapes::ShapeRef.new(shape: ResetDeploymentsResponse)
|
1467
|
+
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
1468
|
+
end)
|
1469
|
+
|
1447
1470
|
api.add_operation(:update_connectivity_info, Seahorse::Model::Operation.new.tap do |o|
|
1448
1471
|
o.name = "UpdateConnectivityInfo"
|
1449
1472
|
o.http_method = "PUT"
|
@@ -310,7 +310,7 @@ module Aws::Greengrass
|
|
310
310
|
# {
|
311
311
|
# amzn_client_token: "__string",
|
312
312
|
# deployment_id: "__string",
|
313
|
-
# deployment_type: "NewDeployment", # accepts NewDeployment, Redeployment
|
313
|
+
# deployment_type: "NewDeployment", # accepts NewDeployment, Redeployment, ResetDeployment, ForceResetDeployment
|
314
314
|
# group_id: "__string", # required
|
315
315
|
# group_version_id: "__string",
|
316
316
|
# }
|
@@ -323,7 +323,8 @@ module Aws::Greengrass
|
|
323
323
|
# @return [String]
|
324
324
|
#
|
325
325
|
# @!attribute [rw] deployment_type
|
326
|
-
# Type of deployment
|
326
|
+
# Type of deployment. When used in CreateDeployment, only
|
327
|
+
# NewDeployment and Redeployment are valid.
|
327
328
|
# @return [String]
|
328
329
|
#
|
329
330
|
# @!attribute [rw] group_id
|
@@ -345,11 +346,11 @@ module Aws::Greengrass
|
|
345
346
|
end
|
346
347
|
|
347
348
|
# @!attribute [rw] deployment_arn
|
348
|
-
#
|
349
|
+
# The arn of the deployment.
|
349
350
|
# @return [String]
|
350
351
|
#
|
351
352
|
# @!attribute [rw] deployment_id
|
352
|
-
#
|
353
|
+
# The id of the deployment.
|
353
354
|
# @return [String]
|
354
355
|
#
|
355
356
|
# @see http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/CreateDeploymentResponse AWS API Documentation
|
@@ -1243,6 +1244,10 @@ module Aws::Greengrass
|
|
1243
1244
|
# Id of the deployment.
|
1244
1245
|
# @return [String]
|
1245
1246
|
#
|
1247
|
+
# @!attribute [rw] deployment_type
|
1248
|
+
# The type of deployment.
|
1249
|
+
# @return [String]
|
1250
|
+
#
|
1246
1251
|
# @!attribute [rw] group_arn
|
1247
1252
|
# Arn of the group for this deployment.
|
1248
1253
|
# @return [String]
|
@@ -1253,6 +1258,7 @@ module Aws::Greengrass
|
|
1253
1258
|
:created_at,
|
1254
1259
|
:deployment_arn,
|
1255
1260
|
:deployment_id,
|
1261
|
+
:deployment_type,
|
1256
1262
|
:group_arn)
|
1257
1263
|
include Aws::Structure
|
1258
1264
|
end
|
@@ -1557,7 +1563,7 @@ module Aws::Greengrass
|
|
1557
1563
|
# @return [Array<Types::ErrorDetail>]
|
1558
1564
|
#
|
1559
1565
|
# @!attribute [rw] message
|
1560
|
-
# Message
|
1566
|
+
# Message containing information about the error
|
1561
1567
|
# @return [String]
|
1562
1568
|
#
|
1563
1569
|
# @see http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GeneralError AWS API Documentation
|
@@ -1621,7 +1627,7 @@ module Aws::Greengrass
|
|
1621
1627
|
# connectivity info response
|
1622
1628
|
#
|
1623
1629
|
# @!attribute [rw] connectivity_info
|
1624
|
-
# Connectivity info
|
1630
|
+
# Connectivity info list
|
1625
1631
|
# @return [Array<Types::ConnectivityInfo>]
|
1626
1632
|
#
|
1627
1633
|
# @!attribute [rw] message
|
@@ -1767,6 +1773,14 @@ module Aws::Greengrass
|
|
1767
1773
|
# Status of the deployment.
|
1768
1774
|
# @return [String]
|
1769
1775
|
#
|
1776
|
+
# @!attribute [rw] deployment_type
|
1777
|
+
# The type of the deployment.
|
1778
|
+
# @return [String]
|
1779
|
+
#
|
1780
|
+
# @!attribute [rw] error_details
|
1781
|
+
# The error Details
|
1782
|
+
# @return [Array<Types::ErrorDetail>]
|
1783
|
+
#
|
1770
1784
|
# @!attribute [rw] error_message
|
1771
1785
|
# Error Message
|
1772
1786
|
# @return [String]
|
@@ -1779,6 +1793,8 @@ module Aws::Greengrass
|
|
1779
1793
|
#
|
1780
1794
|
class GetDeploymentStatusResponse < Struct.new(
|
1781
1795
|
:deployment_status,
|
1796
|
+
:deployment_type,
|
1797
|
+
:error_details,
|
1782
1798
|
:error_message,
|
1783
1799
|
:updated_at)
|
1784
1800
|
include Aws::Structure
|
@@ -2456,7 +2472,7 @@ module Aws::Greengrass
|
|
2456
2472
|
include Aws::Structure
|
2457
2473
|
end
|
2458
2474
|
|
2459
|
-
# Information
|
2475
|
+
# Information on the group
|
2460
2476
|
#
|
2461
2477
|
# @!attribute [rw] arn
|
2462
2478
|
# Arn of a group.
|
@@ -2620,7 +2636,7 @@ module Aws::Greengrass
|
|
2620
2636
|
include Aws::Structure
|
2621
2637
|
end
|
2622
2638
|
|
2623
|
-
# List of definition
|
2639
|
+
# List of definition responses
|
2624
2640
|
#
|
2625
2641
|
# @!attribute [rw] definitions
|
2626
2642
|
# Definitions
|
@@ -2667,7 +2683,7 @@ module Aws::Greengrass
|
|
2667
2683
|
end
|
2668
2684
|
|
2669
2685
|
# @!attribute [rw] deployments
|
2670
|
-
#
|
2686
|
+
# List of deployments for the requested groups
|
2671
2687
|
# @return [Array<Types::Deployment>]
|
2672
2688
|
#
|
2673
2689
|
# @!attribute [rw] next_token
|
@@ -3191,6 +3207,52 @@ module Aws::Greengrass
|
|
3191
3207
|
include Aws::Structure
|
3192
3208
|
end
|
3193
3209
|
|
3210
|
+
# Information needed to perform a reset of a group's deployments.
|
3211
|
+
#
|
3212
|
+
# @note When making an API call, you may pass ResetDeploymentsRequest
|
3213
|
+
# data as a hash:
|
3214
|
+
#
|
3215
|
+
# {
|
3216
|
+
# amzn_client_token: "__string",
|
3217
|
+
# force: false,
|
3218
|
+
# group_id: "__string", # required
|
3219
|
+
# }
|
3220
|
+
#
|
3221
|
+
# @!attribute [rw] amzn_client_token
|
3222
|
+
# @return [String]
|
3223
|
+
#
|
3224
|
+
# @!attribute [rw] force
|
3225
|
+
# When set to true, perform a best-effort only core reset.
|
3226
|
+
# @return [Boolean]
|
3227
|
+
#
|
3228
|
+
# @!attribute [rw] group_id
|
3229
|
+
# @return [String]
|
3230
|
+
#
|
3231
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ResetDeploymentsRequest AWS API Documentation
|
3232
|
+
#
|
3233
|
+
class ResetDeploymentsRequest < Struct.new(
|
3234
|
+
:amzn_client_token,
|
3235
|
+
:force,
|
3236
|
+
:group_id)
|
3237
|
+
include Aws::Structure
|
3238
|
+
end
|
3239
|
+
|
3240
|
+
# @!attribute [rw] deployment_arn
|
3241
|
+
# The arn of the reset deployment.
|
3242
|
+
# @return [String]
|
3243
|
+
#
|
3244
|
+
# @!attribute [rw] deployment_id
|
3245
|
+
# The id of the reset deployment.
|
3246
|
+
# @return [String]
|
3247
|
+
#
|
3248
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ResetDeploymentsResponse AWS API Documentation
|
3249
|
+
#
|
3250
|
+
class ResetDeploymentsResponse < Struct.new(
|
3251
|
+
:deployment_arn,
|
3252
|
+
:deployment_id)
|
3253
|
+
include Aws::Structure
|
3254
|
+
end
|
3255
|
+
|
3194
3256
|
# Information on subscription
|
3195
3257
|
#
|
3196
3258
|
# @note When making an API call, you may pass Subscription
|
@@ -3276,7 +3338,7 @@ module Aws::Greengrass
|
|
3276
3338
|
# }
|
3277
3339
|
#
|
3278
3340
|
# @!attribute [rw] connectivity_info
|
3279
|
-
# Connectivity info
|
3341
|
+
# Connectivity info list
|
3280
3342
|
# @return [Array<Types::ConnectivityInfo>]
|
3281
3343
|
#
|
3282
3344
|
# @!attribute [rw] thing_name
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-greengrass
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
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: 2017-
|
11
|
+
date: 2017-09-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -56,7 +56,9 @@ files:
|
|
56
56
|
homepage: http://github.com/aws/aws-sdk-ruby
|
57
57
|
licenses:
|
58
58
|
- Apache-2.0
|
59
|
-
metadata:
|
59
|
+
metadata:
|
60
|
+
source_code_uri: https://github.com/aws/aws-sdk-ruby/tree/master/gems/aws-sdk-greengrass
|
61
|
+
changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/master/gems/aws-sdk-greengrass/CHANGELOG.md
|
60
62
|
post_install_message:
|
61
63
|
rdoc_options: []
|
62
64
|
require_paths:
|