aws-sdk-mobile 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/aws-sdk-mobile.rb +47 -0
- data/lib/aws-sdk-mobile/client.rb +564 -0
- data/lib/aws-sdk-mobile/client_api.rb +343 -0
- data/lib/aws-sdk-mobile/customizations.rb +0 -0
- data/lib/aws-sdk-mobile/errors.rb +14 -0
- data/lib/aws-sdk-mobile/resource.rb +23 -0
- data/lib/aws-sdk-mobile/types.rb +566 -0
- metadata +82 -0
@@ -0,0 +1,343 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
module Aws::Mobile
|
9
|
+
# @api private
|
10
|
+
module ClientApi
|
11
|
+
|
12
|
+
include Seahorse::Model
|
13
|
+
|
14
|
+
AccountActionRequiredException = Shapes::StructureShape.new(name: 'AccountActionRequiredException')
|
15
|
+
AttributeKey = Shapes::StringShape.new(name: 'AttributeKey')
|
16
|
+
AttributeValue = Shapes::StringShape.new(name: 'AttributeValue')
|
17
|
+
Attributes = Shapes::MapShape.new(name: 'Attributes')
|
18
|
+
BadRequestException = Shapes::StructureShape.new(name: 'BadRequestException')
|
19
|
+
Boolean = Shapes::BooleanShape.new(name: 'Boolean')
|
20
|
+
BundleDescription = Shapes::StringShape.new(name: 'BundleDescription')
|
21
|
+
BundleDetails = Shapes::StructureShape.new(name: 'BundleDetails')
|
22
|
+
BundleId = Shapes::StringShape.new(name: 'BundleId')
|
23
|
+
BundleList = Shapes::ListShape.new(name: 'BundleList')
|
24
|
+
BundleTitle = Shapes::StringShape.new(name: 'BundleTitle')
|
25
|
+
BundleVersion = Shapes::StringShape.new(name: 'BundleVersion')
|
26
|
+
ConsoleUrl = Shapes::StringShape.new(name: 'ConsoleUrl')
|
27
|
+
Contents = Shapes::BlobShape.new(name: 'Contents')
|
28
|
+
CreateProjectRequest = Shapes::StructureShape.new(name: 'CreateProjectRequest')
|
29
|
+
CreateProjectResult = Shapes::StructureShape.new(name: 'CreateProjectResult')
|
30
|
+
Date = Shapes::TimestampShape.new(name: 'Date')
|
31
|
+
DeleteProjectRequest = Shapes::StructureShape.new(name: 'DeleteProjectRequest')
|
32
|
+
DeleteProjectResult = Shapes::StructureShape.new(name: 'DeleteProjectResult')
|
33
|
+
DescribeBundleRequest = Shapes::StructureShape.new(name: 'DescribeBundleRequest')
|
34
|
+
DescribeBundleResult = Shapes::StructureShape.new(name: 'DescribeBundleResult')
|
35
|
+
DescribeProjectRequest = Shapes::StructureShape.new(name: 'DescribeProjectRequest')
|
36
|
+
DescribeProjectResult = Shapes::StructureShape.new(name: 'DescribeProjectResult')
|
37
|
+
DownloadUrl = Shapes::StringShape.new(name: 'DownloadUrl')
|
38
|
+
ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
|
39
|
+
ExportBundleRequest = Shapes::StructureShape.new(name: 'ExportBundleRequest')
|
40
|
+
ExportBundleResult = Shapes::StructureShape.new(name: 'ExportBundleResult')
|
41
|
+
ExportProjectRequest = Shapes::StructureShape.new(name: 'ExportProjectRequest')
|
42
|
+
ExportProjectResult = Shapes::StructureShape.new(name: 'ExportProjectResult')
|
43
|
+
Feature = Shapes::StringShape.new(name: 'Feature')
|
44
|
+
IconUrl = Shapes::StringShape.new(name: 'IconUrl')
|
45
|
+
InternalFailureException = Shapes::StructureShape.new(name: 'InternalFailureException')
|
46
|
+
LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
|
47
|
+
ListBundlesRequest = Shapes::StructureShape.new(name: 'ListBundlesRequest')
|
48
|
+
ListBundlesResult = Shapes::StructureShape.new(name: 'ListBundlesResult')
|
49
|
+
ListProjectsRequest = Shapes::StructureShape.new(name: 'ListProjectsRequest')
|
50
|
+
ListProjectsResult = Shapes::StructureShape.new(name: 'ListProjectsResult')
|
51
|
+
MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
|
52
|
+
NextToken = Shapes::StringShape.new(name: 'NextToken')
|
53
|
+
NotFoundException = Shapes::StructureShape.new(name: 'NotFoundException')
|
54
|
+
Platform = Shapes::StringShape.new(name: 'Platform')
|
55
|
+
Platforms = Shapes::ListShape.new(name: 'Platforms')
|
56
|
+
ProjectDetails = Shapes::StructureShape.new(name: 'ProjectDetails')
|
57
|
+
ProjectId = Shapes::StringShape.new(name: 'ProjectId')
|
58
|
+
ProjectName = Shapes::StringShape.new(name: 'ProjectName')
|
59
|
+
ProjectRegion = Shapes::StringShape.new(name: 'ProjectRegion')
|
60
|
+
ProjectState = Shapes::StringShape.new(name: 'ProjectState')
|
61
|
+
ProjectSummaries = Shapes::ListShape.new(name: 'ProjectSummaries')
|
62
|
+
ProjectSummary = Shapes::StructureShape.new(name: 'ProjectSummary')
|
63
|
+
Resource = Shapes::StructureShape.new(name: 'Resource')
|
64
|
+
ResourceArn = Shapes::StringShape.new(name: 'ResourceArn')
|
65
|
+
ResourceName = Shapes::StringShape.new(name: 'ResourceName')
|
66
|
+
ResourceType = Shapes::StringShape.new(name: 'ResourceType')
|
67
|
+
Resources = Shapes::ListShape.new(name: 'Resources')
|
68
|
+
ServiceUnavailableException = Shapes::StructureShape.new(name: 'ServiceUnavailableException')
|
69
|
+
ShareUrl = Shapes::StringShape.new(name: 'ShareUrl')
|
70
|
+
SnapshotId = Shapes::StringShape.new(name: 'SnapshotId')
|
71
|
+
TooManyRequestsException = Shapes::StructureShape.new(name: 'TooManyRequestsException')
|
72
|
+
UnauthorizedException = Shapes::StructureShape.new(name: 'UnauthorizedException')
|
73
|
+
UpdateProjectRequest = Shapes::StructureShape.new(name: 'UpdateProjectRequest')
|
74
|
+
UpdateProjectResult = Shapes::StructureShape.new(name: 'UpdateProjectResult')
|
75
|
+
|
76
|
+
Attributes.key = Shapes::ShapeRef.new(shape: AttributeKey)
|
77
|
+
Attributes.value = Shapes::ShapeRef.new(shape: AttributeValue)
|
78
|
+
|
79
|
+
BundleDetails.add_member(:bundle_id, Shapes::ShapeRef.new(shape: BundleId, location_name: "bundleId"))
|
80
|
+
BundleDetails.add_member(:title, Shapes::ShapeRef.new(shape: BundleTitle, location_name: "title"))
|
81
|
+
BundleDetails.add_member(:version, Shapes::ShapeRef.new(shape: BundleVersion, location_name: "version"))
|
82
|
+
BundleDetails.add_member(:description, Shapes::ShapeRef.new(shape: BundleDescription, location_name: "description"))
|
83
|
+
BundleDetails.add_member(:icon_url, Shapes::ShapeRef.new(shape: IconUrl, location_name: "iconUrl"))
|
84
|
+
BundleDetails.add_member(:available_platforms, Shapes::ShapeRef.new(shape: Platforms, location_name: "availablePlatforms"))
|
85
|
+
BundleDetails.struct_class = Types::BundleDetails
|
86
|
+
|
87
|
+
BundleList.member = Shapes::ShapeRef.new(shape: BundleDetails)
|
88
|
+
|
89
|
+
CreateProjectRequest.add_member(:name, Shapes::ShapeRef.new(shape: ProjectName, location: "querystring", location_name: "name"))
|
90
|
+
CreateProjectRequest.add_member(:region, Shapes::ShapeRef.new(shape: ProjectRegion, location: "querystring", location_name: "region"))
|
91
|
+
CreateProjectRequest.add_member(:contents, Shapes::ShapeRef.new(shape: Contents, location_name: "contents"))
|
92
|
+
CreateProjectRequest.add_member(:snapshot_id, Shapes::ShapeRef.new(shape: SnapshotId, location: "querystring", location_name: "snapshotId"))
|
93
|
+
CreateProjectRequest.struct_class = Types::CreateProjectRequest
|
94
|
+
CreateProjectRequest[:payload] = :contents
|
95
|
+
CreateProjectRequest[:payload_member] = CreateProjectRequest.member(:contents)
|
96
|
+
|
97
|
+
CreateProjectResult.add_member(:details, Shapes::ShapeRef.new(shape: ProjectDetails, location_name: "details"))
|
98
|
+
CreateProjectResult.struct_class = Types::CreateProjectResult
|
99
|
+
|
100
|
+
DeleteProjectRequest.add_member(:project_id, Shapes::ShapeRef.new(shape: ProjectId, required: true, location: "uri", location_name: "projectId"))
|
101
|
+
DeleteProjectRequest.struct_class = Types::DeleteProjectRequest
|
102
|
+
|
103
|
+
DeleteProjectResult.add_member(:deleted_resources, Shapes::ShapeRef.new(shape: Resources, location_name: "deletedResources"))
|
104
|
+
DeleteProjectResult.add_member(:orphaned_resources, Shapes::ShapeRef.new(shape: Resources, location_name: "orphanedResources"))
|
105
|
+
DeleteProjectResult.struct_class = Types::DeleteProjectResult
|
106
|
+
|
107
|
+
DescribeBundleRequest.add_member(:bundle_id, Shapes::ShapeRef.new(shape: BundleId, required: true, location: "uri", location_name: "bundleId"))
|
108
|
+
DescribeBundleRequest.struct_class = Types::DescribeBundleRequest
|
109
|
+
|
110
|
+
DescribeBundleResult.add_member(:details, Shapes::ShapeRef.new(shape: BundleDetails, location_name: "details"))
|
111
|
+
DescribeBundleResult.struct_class = Types::DescribeBundleResult
|
112
|
+
|
113
|
+
DescribeProjectRequest.add_member(:project_id, Shapes::ShapeRef.new(shape: ProjectId, required: true, location: "querystring", location_name: "projectId"))
|
114
|
+
DescribeProjectRequest.add_member(:sync_from_resources, Shapes::ShapeRef.new(shape: Boolean, location: "querystring", location_name: "syncFromResources"))
|
115
|
+
DescribeProjectRequest.struct_class = Types::DescribeProjectRequest
|
116
|
+
|
117
|
+
DescribeProjectResult.add_member(:details, Shapes::ShapeRef.new(shape: ProjectDetails, location_name: "details"))
|
118
|
+
DescribeProjectResult.struct_class = Types::DescribeProjectResult
|
119
|
+
|
120
|
+
ExportBundleRequest.add_member(:bundle_id, Shapes::ShapeRef.new(shape: BundleId, required: true, location: "uri", location_name: "bundleId"))
|
121
|
+
ExportBundleRequest.add_member(:project_id, Shapes::ShapeRef.new(shape: ProjectId, location: "querystring", location_name: "projectId"))
|
122
|
+
ExportBundleRequest.add_member(:platform, Shapes::ShapeRef.new(shape: Platform, location: "querystring", location_name: "platform"))
|
123
|
+
ExportBundleRequest.struct_class = Types::ExportBundleRequest
|
124
|
+
|
125
|
+
ExportBundleResult.add_member(:download_url, Shapes::ShapeRef.new(shape: DownloadUrl, location_name: "downloadUrl"))
|
126
|
+
ExportBundleResult.struct_class = Types::ExportBundleResult
|
127
|
+
|
128
|
+
ExportProjectRequest.add_member(:project_id, Shapes::ShapeRef.new(shape: ProjectId, required: true, location: "uri", location_name: "projectId"))
|
129
|
+
ExportProjectRequest.struct_class = Types::ExportProjectRequest
|
130
|
+
|
131
|
+
ExportProjectResult.add_member(:download_url, Shapes::ShapeRef.new(shape: DownloadUrl, location_name: "downloadUrl"))
|
132
|
+
ExportProjectResult.add_member(:share_url, Shapes::ShapeRef.new(shape: ShareUrl, location_name: "shareUrl"))
|
133
|
+
ExportProjectResult.add_member(:snapshot_id, Shapes::ShapeRef.new(shape: SnapshotId, location_name: "snapshotId"))
|
134
|
+
ExportProjectResult.struct_class = Types::ExportProjectResult
|
135
|
+
|
136
|
+
ListBundlesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
|
137
|
+
ListBundlesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "nextToken"))
|
138
|
+
ListBundlesRequest.struct_class = Types::ListBundlesRequest
|
139
|
+
|
140
|
+
ListBundlesResult.add_member(:bundle_list, Shapes::ShapeRef.new(shape: BundleList, location_name: "bundleList"))
|
141
|
+
ListBundlesResult.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
|
142
|
+
ListBundlesResult.struct_class = Types::ListBundlesResult
|
143
|
+
|
144
|
+
ListProjectsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
|
145
|
+
ListProjectsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "nextToken"))
|
146
|
+
ListProjectsRequest.struct_class = Types::ListProjectsRequest
|
147
|
+
|
148
|
+
ListProjectsResult.add_member(:projects, Shapes::ShapeRef.new(shape: ProjectSummaries, location_name: "projects"))
|
149
|
+
ListProjectsResult.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
|
150
|
+
ListProjectsResult.struct_class = Types::ListProjectsResult
|
151
|
+
|
152
|
+
Platforms.member = Shapes::ShapeRef.new(shape: Platform)
|
153
|
+
|
154
|
+
ProjectDetails.add_member(:name, Shapes::ShapeRef.new(shape: ProjectName, location_name: "name"))
|
155
|
+
ProjectDetails.add_member(:project_id, Shapes::ShapeRef.new(shape: ProjectId, location_name: "projectId"))
|
156
|
+
ProjectDetails.add_member(:region, Shapes::ShapeRef.new(shape: ProjectRegion, location_name: "region"))
|
157
|
+
ProjectDetails.add_member(:state, Shapes::ShapeRef.new(shape: ProjectState, location_name: "state"))
|
158
|
+
ProjectDetails.add_member(:created_date, Shapes::ShapeRef.new(shape: Date, location_name: "createdDate"))
|
159
|
+
ProjectDetails.add_member(:last_updated_date, Shapes::ShapeRef.new(shape: Date, location_name: "lastUpdatedDate"))
|
160
|
+
ProjectDetails.add_member(:console_url, Shapes::ShapeRef.new(shape: ConsoleUrl, location_name: "consoleUrl"))
|
161
|
+
ProjectDetails.add_member(:resources, Shapes::ShapeRef.new(shape: Resources, location_name: "resources"))
|
162
|
+
ProjectDetails.struct_class = Types::ProjectDetails
|
163
|
+
|
164
|
+
ProjectSummaries.member = Shapes::ShapeRef.new(shape: ProjectSummary)
|
165
|
+
|
166
|
+
ProjectSummary.add_member(:name, Shapes::ShapeRef.new(shape: ProjectName, location_name: "name"))
|
167
|
+
ProjectSummary.add_member(:project_id, Shapes::ShapeRef.new(shape: ProjectId, location_name: "projectId"))
|
168
|
+
ProjectSummary.struct_class = Types::ProjectSummary
|
169
|
+
|
170
|
+
Resource.add_member(:type, Shapes::ShapeRef.new(shape: ResourceType, location_name: "type"))
|
171
|
+
Resource.add_member(:name, Shapes::ShapeRef.new(shape: ResourceName, location_name: "name"))
|
172
|
+
Resource.add_member(:arn, Shapes::ShapeRef.new(shape: ResourceArn, location_name: "arn"))
|
173
|
+
Resource.add_member(:feature, Shapes::ShapeRef.new(shape: Feature, location_name: "feature"))
|
174
|
+
Resource.add_member(:attributes, Shapes::ShapeRef.new(shape: Attributes, location_name: "attributes"))
|
175
|
+
Resource.struct_class = Types::Resource
|
176
|
+
|
177
|
+
Resources.member = Shapes::ShapeRef.new(shape: Resource)
|
178
|
+
|
179
|
+
UpdateProjectRequest.add_member(:contents, Shapes::ShapeRef.new(shape: Contents, location_name: "contents"))
|
180
|
+
UpdateProjectRequest.add_member(:project_id, Shapes::ShapeRef.new(shape: ProjectId, required: true, location: "querystring", location_name: "projectId"))
|
181
|
+
UpdateProjectRequest.struct_class = Types::UpdateProjectRequest
|
182
|
+
UpdateProjectRequest[:payload] = :contents
|
183
|
+
UpdateProjectRequest[:payload_member] = UpdateProjectRequest.member(:contents)
|
184
|
+
|
185
|
+
UpdateProjectResult.add_member(:details, Shapes::ShapeRef.new(shape: ProjectDetails, location_name: "details"))
|
186
|
+
UpdateProjectResult.struct_class = Types::UpdateProjectResult
|
187
|
+
|
188
|
+
|
189
|
+
# @api private
|
190
|
+
API = Seahorse::Model::Api.new.tap do |api|
|
191
|
+
|
192
|
+
api.version = "2017-07-01"
|
193
|
+
|
194
|
+
api.metadata = {
|
195
|
+
"endpointPrefix" => "mobile",
|
196
|
+
"jsonVersion" => "1.1",
|
197
|
+
"protocol" => "rest-json",
|
198
|
+
"serviceFullName" => "AWS Mobile",
|
199
|
+
"signatureVersion" => "v4",
|
200
|
+
"signingName" => "AWSMobileHubService",
|
201
|
+
}
|
202
|
+
|
203
|
+
api.add_operation(:create_project, Seahorse::Model::Operation.new.tap do |o|
|
204
|
+
o.name = "CreateProject"
|
205
|
+
o.http_method = "POST"
|
206
|
+
o.http_request_uri = "/projects"
|
207
|
+
o.input = Shapes::ShapeRef.new(shape: CreateProjectRequest)
|
208
|
+
o.output = Shapes::ShapeRef.new(shape: CreateProjectResult)
|
209
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
|
210
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
211
|
+
o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
|
212
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
213
|
+
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
214
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
215
|
+
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
216
|
+
end)
|
217
|
+
|
218
|
+
api.add_operation(:delete_project, Seahorse::Model::Operation.new.tap do |o|
|
219
|
+
o.name = "DeleteProject"
|
220
|
+
o.http_method = "DELETE"
|
221
|
+
o.http_request_uri = "/projects/{projectId}"
|
222
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteProjectRequest)
|
223
|
+
o.output = Shapes::ShapeRef.new(shape: DeleteProjectResult)
|
224
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
|
225
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
226
|
+
o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
|
227
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
228
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
229
|
+
end)
|
230
|
+
|
231
|
+
api.add_operation(:describe_bundle, Seahorse::Model::Operation.new.tap do |o|
|
232
|
+
o.name = "DescribeBundle"
|
233
|
+
o.http_method = "GET"
|
234
|
+
o.http_request_uri = "/bundles/{bundleId}"
|
235
|
+
o.input = Shapes::ShapeRef.new(shape: DescribeBundleRequest)
|
236
|
+
o.output = Shapes::ShapeRef.new(shape: DescribeBundleResult)
|
237
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
|
238
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
239
|
+
o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
|
240
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
241
|
+
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
242
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
243
|
+
end)
|
244
|
+
|
245
|
+
api.add_operation(:describe_project, Seahorse::Model::Operation.new.tap do |o|
|
246
|
+
o.name = "DescribeProject"
|
247
|
+
o.http_method = "GET"
|
248
|
+
o.http_request_uri = "/project"
|
249
|
+
o.input = Shapes::ShapeRef.new(shape: DescribeProjectRequest)
|
250
|
+
o.output = Shapes::ShapeRef.new(shape: DescribeProjectResult)
|
251
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
|
252
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
253
|
+
o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
|
254
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
255
|
+
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
256
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
257
|
+
end)
|
258
|
+
|
259
|
+
api.add_operation(:export_bundle, Seahorse::Model::Operation.new.tap do |o|
|
260
|
+
o.name = "ExportBundle"
|
261
|
+
o.http_method = "POST"
|
262
|
+
o.http_request_uri = "/bundles/{bundleId}"
|
263
|
+
o.input = Shapes::ShapeRef.new(shape: ExportBundleRequest)
|
264
|
+
o.output = Shapes::ShapeRef.new(shape: ExportBundleResult)
|
265
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
|
266
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
267
|
+
o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
|
268
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
269
|
+
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
270
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
271
|
+
end)
|
272
|
+
|
273
|
+
api.add_operation(:export_project, Seahorse::Model::Operation.new.tap do |o|
|
274
|
+
o.name = "ExportProject"
|
275
|
+
o.http_method = "POST"
|
276
|
+
o.http_request_uri = "/exports/{projectId}"
|
277
|
+
o.input = Shapes::ShapeRef.new(shape: ExportProjectRequest)
|
278
|
+
o.output = Shapes::ShapeRef.new(shape: ExportProjectResult)
|
279
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
|
280
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
281
|
+
o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
|
282
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
283
|
+
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
284
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
285
|
+
end)
|
286
|
+
|
287
|
+
api.add_operation(:list_bundles, Seahorse::Model::Operation.new.tap do |o|
|
288
|
+
o.name = "ListBundles"
|
289
|
+
o.http_method = "GET"
|
290
|
+
o.http_request_uri = "/bundles"
|
291
|
+
o.input = Shapes::ShapeRef.new(shape: ListBundlesRequest)
|
292
|
+
o.output = Shapes::ShapeRef.new(shape: ListBundlesResult)
|
293
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
|
294
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
295
|
+
o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
|
296
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
297
|
+
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
298
|
+
o[:pager] = Aws::Pager.new(
|
299
|
+
limit_key: "max_results",
|
300
|
+
tokens: {
|
301
|
+
"next_token" => "next_token"
|
302
|
+
}
|
303
|
+
)
|
304
|
+
end)
|
305
|
+
|
306
|
+
api.add_operation(:list_projects, Seahorse::Model::Operation.new.tap do |o|
|
307
|
+
o.name = "ListProjects"
|
308
|
+
o.http_method = "GET"
|
309
|
+
o.http_request_uri = "/projects"
|
310
|
+
o.input = Shapes::ShapeRef.new(shape: ListProjectsRequest)
|
311
|
+
o.output = Shapes::ShapeRef.new(shape: ListProjectsResult)
|
312
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
|
313
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
314
|
+
o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
|
315
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
316
|
+
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
317
|
+
o[:pager] = Aws::Pager.new(
|
318
|
+
limit_key: "max_results",
|
319
|
+
tokens: {
|
320
|
+
"next_token" => "next_token"
|
321
|
+
}
|
322
|
+
)
|
323
|
+
end)
|
324
|
+
|
325
|
+
api.add_operation(:update_project, Seahorse::Model::Operation.new.tap do |o|
|
326
|
+
o.name = "UpdateProject"
|
327
|
+
o.http_method = "POST"
|
328
|
+
o.http_request_uri = "/update"
|
329
|
+
o.input = Shapes::ShapeRef.new(shape: UpdateProjectRequest)
|
330
|
+
o.output = Shapes::ShapeRef.new(shape: UpdateProjectResult)
|
331
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
|
332
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
333
|
+
o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
|
334
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
335
|
+
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
336
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
337
|
+
o.errors << Shapes::ShapeRef.new(shape: AccountActionRequiredException)
|
338
|
+
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
339
|
+
end)
|
340
|
+
end
|
341
|
+
|
342
|
+
end
|
343
|
+
end
|
File without changes
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
module Aws::Mobile
|
9
|
+
module Errors
|
10
|
+
|
11
|
+
extend Aws::Errors::DynamicErrors
|
12
|
+
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
module Aws::Mobile
|
9
|
+
class Resource
|
10
|
+
|
11
|
+
# @param options ({})
|
12
|
+
# @option options [Client] :client
|
13
|
+
def initialize(options = {})
|
14
|
+
@client = options[:client] || Client.new(options)
|
15
|
+
end
|
16
|
+
|
17
|
+
# @return [Client]
|
18
|
+
def client
|
19
|
+
@client
|
20
|
+
end
|
21
|
+
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,566 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
module Aws::Mobile
|
9
|
+
module Types
|
10
|
+
|
11
|
+
# The details of the bundle.
|
12
|
+
#
|
13
|
+
# @!attribute [rw] bundle_id
|
14
|
+
# Unique bundle identifier.
|
15
|
+
# @return [String]
|
16
|
+
#
|
17
|
+
# @!attribute [rw] title
|
18
|
+
# Title of the download bundle.
|
19
|
+
# @return [String]
|
20
|
+
#
|
21
|
+
# @!attribute [rw] version
|
22
|
+
# Version of the download bundle.
|
23
|
+
# @return [String]
|
24
|
+
#
|
25
|
+
# @!attribute [rw] description
|
26
|
+
# Description of the download bundle.
|
27
|
+
# @return [String]
|
28
|
+
#
|
29
|
+
# @!attribute [rw] icon_url
|
30
|
+
# Icon for the download bundle.
|
31
|
+
# @return [String]
|
32
|
+
#
|
33
|
+
# @!attribute [rw] available_platforms
|
34
|
+
# Developer desktop or mobile app or website platforms.
|
35
|
+
# @return [Array<String>]
|
36
|
+
#
|
37
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/BundleDetails AWS API Documentation
|
38
|
+
#
|
39
|
+
class BundleDetails < Struct.new(
|
40
|
+
:bundle_id,
|
41
|
+
:title,
|
42
|
+
:version,
|
43
|
+
:description,
|
44
|
+
:icon_url,
|
45
|
+
:available_platforms)
|
46
|
+
include Aws::Structure
|
47
|
+
end
|
48
|
+
|
49
|
+
# Request structure used to request a project be created.
|
50
|
+
#
|
51
|
+
# @note When making an API call, you may pass CreateProjectRequest
|
52
|
+
# data as a hash:
|
53
|
+
#
|
54
|
+
# {
|
55
|
+
# name: "ProjectName",
|
56
|
+
# region: "ProjectRegion",
|
57
|
+
# contents: "data",
|
58
|
+
# snapshot_id: "SnapshotId",
|
59
|
+
# }
|
60
|
+
#
|
61
|
+
# @!attribute [rw] name
|
62
|
+
# Name of the project.
|
63
|
+
# @return [String]
|
64
|
+
#
|
65
|
+
# @!attribute [rw] region
|
66
|
+
# Default region where project resources should be created.
|
67
|
+
# @return [String]
|
68
|
+
#
|
69
|
+
# @!attribute [rw] contents
|
70
|
+
# ZIP or YAML file which contains configuration settings to be used
|
71
|
+
# when creating the project. This may be the contents of the file
|
72
|
+
# downloaded from the URL provided in an export project operation.
|
73
|
+
# @return [String]
|
74
|
+
#
|
75
|
+
# @!attribute [rw] snapshot_id
|
76
|
+
# Unique identifier for an exported snapshot of project configuration.
|
77
|
+
# This snapshot identifier is included in the share URL when a project
|
78
|
+
# is exported.
|
79
|
+
# @return [String]
|
80
|
+
#
|
81
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/CreateProjectRequest AWS API Documentation
|
82
|
+
#
|
83
|
+
class CreateProjectRequest < Struct.new(
|
84
|
+
:name,
|
85
|
+
:region,
|
86
|
+
:contents,
|
87
|
+
:snapshot_id)
|
88
|
+
include Aws::Structure
|
89
|
+
end
|
90
|
+
|
91
|
+
# Result structure used in response to a request to create a project.
|
92
|
+
#
|
93
|
+
# @!attribute [rw] details
|
94
|
+
# Detailed information about the created AWS Mobile Hub project.
|
95
|
+
# @return [Types::ProjectDetails]
|
96
|
+
#
|
97
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/CreateProjectResult AWS API Documentation
|
98
|
+
#
|
99
|
+
class CreateProjectResult < Struct.new(
|
100
|
+
:details)
|
101
|
+
include Aws::Structure
|
102
|
+
end
|
103
|
+
|
104
|
+
# Request structure used to request a project be deleted.
|
105
|
+
#
|
106
|
+
# @note When making an API call, you may pass DeleteProjectRequest
|
107
|
+
# data as a hash:
|
108
|
+
#
|
109
|
+
# {
|
110
|
+
# project_id: "ProjectId", # required
|
111
|
+
# }
|
112
|
+
#
|
113
|
+
# @!attribute [rw] project_id
|
114
|
+
# Unique project identifier.
|
115
|
+
# @return [String]
|
116
|
+
#
|
117
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/DeleteProjectRequest AWS API Documentation
|
118
|
+
#
|
119
|
+
class DeleteProjectRequest < Struct.new(
|
120
|
+
:project_id)
|
121
|
+
include Aws::Structure
|
122
|
+
end
|
123
|
+
|
124
|
+
# Result structure used in response to request to delete a project.
|
125
|
+
#
|
126
|
+
# @!attribute [rw] deleted_resources
|
127
|
+
# Resources which were deleted.
|
128
|
+
# @return [Array<Types::Resource>]
|
129
|
+
#
|
130
|
+
# @!attribute [rw] orphaned_resources
|
131
|
+
# Resources which were not deleted, due to a risk of losing
|
132
|
+
# potentially important data or files.
|
133
|
+
# @return [Array<Types::Resource>]
|
134
|
+
#
|
135
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/DeleteProjectResult AWS API Documentation
|
136
|
+
#
|
137
|
+
class DeleteProjectResult < Struct.new(
|
138
|
+
:deleted_resources,
|
139
|
+
:orphaned_resources)
|
140
|
+
include Aws::Structure
|
141
|
+
end
|
142
|
+
|
143
|
+
# Request structure to request the details of a specific bundle.
|
144
|
+
#
|
145
|
+
# @note When making an API call, you may pass DescribeBundleRequest
|
146
|
+
# data as a hash:
|
147
|
+
#
|
148
|
+
# {
|
149
|
+
# bundle_id: "BundleId", # required
|
150
|
+
# }
|
151
|
+
#
|
152
|
+
# @!attribute [rw] bundle_id
|
153
|
+
# Unique bundle identifier.
|
154
|
+
# @return [String]
|
155
|
+
#
|
156
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/DescribeBundleRequest AWS API Documentation
|
157
|
+
#
|
158
|
+
class DescribeBundleRequest < Struct.new(
|
159
|
+
:bundle_id)
|
160
|
+
include Aws::Structure
|
161
|
+
end
|
162
|
+
|
163
|
+
# Result structure contains the details of the bundle.
|
164
|
+
#
|
165
|
+
# @!attribute [rw] details
|
166
|
+
# The details of the bundle.
|
167
|
+
# @return [Types::BundleDetails]
|
168
|
+
#
|
169
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/DescribeBundleResult AWS API Documentation
|
170
|
+
#
|
171
|
+
class DescribeBundleResult < Struct.new(
|
172
|
+
:details)
|
173
|
+
include Aws::Structure
|
174
|
+
end
|
175
|
+
|
176
|
+
# Request structure used to request details about a project.
|
177
|
+
#
|
178
|
+
# @note When making an API call, you may pass DescribeProjectRequest
|
179
|
+
# data as a hash:
|
180
|
+
#
|
181
|
+
# {
|
182
|
+
# project_id: "ProjectId", # required
|
183
|
+
# sync_from_resources: false,
|
184
|
+
# }
|
185
|
+
#
|
186
|
+
# @!attribute [rw] project_id
|
187
|
+
# Unique project identifier.
|
188
|
+
# @return [String]
|
189
|
+
#
|
190
|
+
# @!attribute [rw] sync_from_resources
|
191
|
+
# If set to true, causes AWS Mobile Hub to synchronize information
|
192
|
+
# from other services, e.g., update state of AWS CloudFormation stacks
|
193
|
+
# in the AWS Mobile Hub project.
|
194
|
+
# @return [Boolean]
|
195
|
+
#
|
196
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/DescribeProjectRequest AWS API Documentation
|
197
|
+
#
|
198
|
+
class DescribeProjectRequest < Struct.new(
|
199
|
+
:project_id,
|
200
|
+
:sync_from_resources)
|
201
|
+
include Aws::Structure
|
202
|
+
end
|
203
|
+
|
204
|
+
# Result structure used for requests of project details.
|
205
|
+
#
|
206
|
+
# @!attribute [rw] details
|
207
|
+
# Detailed information about an AWS Mobile Hub project.
|
208
|
+
# @return [Types::ProjectDetails]
|
209
|
+
#
|
210
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/DescribeProjectResult AWS API Documentation
|
211
|
+
#
|
212
|
+
class DescribeProjectResult < Struct.new(
|
213
|
+
:details)
|
214
|
+
include Aws::Structure
|
215
|
+
end
|
216
|
+
|
217
|
+
# Request structure used to request generation of custom SDK and tool
|
218
|
+
# packages required to integrate mobile web or app clients with backed
|
219
|
+
# AWS resources.
|
220
|
+
#
|
221
|
+
# @note When making an API call, you may pass ExportBundleRequest
|
222
|
+
# data as a hash:
|
223
|
+
#
|
224
|
+
# {
|
225
|
+
# bundle_id: "BundleId", # required
|
226
|
+
# project_id: "ProjectId",
|
227
|
+
# platform: "OSX", # accepts OSX, WINDOWS, LINUX, OBJC, SWIFT, ANDROID, JAVASCRIPT
|
228
|
+
# }
|
229
|
+
#
|
230
|
+
# @!attribute [rw] bundle_id
|
231
|
+
# Unique bundle identifier.
|
232
|
+
# @return [String]
|
233
|
+
#
|
234
|
+
# @!attribute [rw] project_id
|
235
|
+
# Unique project identifier.
|
236
|
+
# @return [String]
|
237
|
+
#
|
238
|
+
# @!attribute [rw] platform
|
239
|
+
# Developer desktop or target application platform.
|
240
|
+
# @return [String]
|
241
|
+
#
|
242
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/ExportBundleRequest AWS API Documentation
|
243
|
+
#
|
244
|
+
class ExportBundleRequest < Struct.new(
|
245
|
+
:bundle_id,
|
246
|
+
:project_id,
|
247
|
+
:platform)
|
248
|
+
include Aws::Structure
|
249
|
+
end
|
250
|
+
|
251
|
+
# Result structure which contains link to download custom-generated SDK
|
252
|
+
# and tool packages used to integrate mobile web or app clients with
|
253
|
+
# backed AWS resources.
|
254
|
+
#
|
255
|
+
# @!attribute [rw] download_url
|
256
|
+
# URL which contains the custom-generated SDK and tool packages used
|
257
|
+
# to integrate the client mobile app or web app with the AWS resources
|
258
|
+
# created by the AWS Mobile Hub project.
|
259
|
+
# @return [String]
|
260
|
+
#
|
261
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/ExportBundleResult AWS API Documentation
|
262
|
+
#
|
263
|
+
class ExportBundleResult < Struct.new(
|
264
|
+
:download_url)
|
265
|
+
include Aws::Structure
|
266
|
+
end
|
267
|
+
|
268
|
+
# Request structure used in requests to export project configuration
|
269
|
+
# details.
|
270
|
+
#
|
271
|
+
# @note When making an API call, you may pass ExportProjectRequest
|
272
|
+
# data as a hash:
|
273
|
+
#
|
274
|
+
# {
|
275
|
+
# project_id: "ProjectId", # required
|
276
|
+
# }
|
277
|
+
#
|
278
|
+
# @!attribute [rw] project_id
|
279
|
+
# Unique project identifier.
|
280
|
+
# @return [String]
|
281
|
+
#
|
282
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/ExportProjectRequest AWS API Documentation
|
283
|
+
#
|
284
|
+
class ExportProjectRequest < Struct.new(
|
285
|
+
:project_id)
|
286
|
+
include Aws::Structure
|
287
|
+
end
|
288
|
+
|
289
|
+
# Result structure used for requests to export project configuration
|
290
|
+
# details.
|
291
|
+
#
|
292
|
+
# @!attribute [rw] download_url
|
293
|
+
# URL which can be used to download the exported project configuation
|
294
|
+
# file(s).
|
295
|
+
# @return [String]
|
296
|
+
#
|
297
|
+
# @!attribute [rw] share_url
|
298
|
+
# URL which can be shared to allow other AWS users to create their own
|
299
|
+
# project in AWS Mobile Hub with the same configuration as the
|
300
|
+
# specified project. This URL pertains to a snapshot in time of the
|
301
|
+
# project configuration that is created when this API is called. If
|
302
|
+
# you want to share additional changes to your project configuration,
|
303
|
+
# then you will need to create and share a new snapshot by calling
|
304
|
+
# this method again.
|
305
|
+
# @return [String]
|
306
|
+
#
|
307
|
+
# @!attribute [rw] snapshot_id
|
308
|
+
# Unique identifier for the exported snapshot of the project
|
309
|
+
# configuration. This snapshot identifier is included in the share
|
310
|
+
# URL.
|
311
|
+
# @return [String]
|
312
|
+
#
|
313
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/ExportProjectResult AWS API Documentation
|
314
|
+
#
|
315
|
+
class ExportProjectResult < Struct.new(
|
316
|
+
:download_url,
|
317
|
+
:share_url,
|
318
|
+
:snapshot_id)
|
319
|
+
include Aws::Structure
|
320
|
+
end
|
321
|
+
|
322
|
+
# Request structure to request all available bundles.
|
323
|
+
#
|
324
|
+
# @note When making an API call, you may pass ListBundlesRequest
|
325
|
+
# data as a hash:
|
326
|
+
#
|
327
|
+
# {
|
328
|
+
# max_results: 1,
|
329
|
+
# next_token: "NextToken",
|
330
|
+
# }
|
331
|
+
#
|
332
|
+
# @!attribute [rw] max_results
|
333
|
+
# Maximum number of records to list in a single response.
|
334
|
+
# @return [Integer]
|
335
|
+
#
|
336
|
+
# @!attribute [rw] next_token
|
337
|
+
# Pagination token. Set to null to start listing bundles from start.
|
338
|
+
# If non-null pagination token is returned in a result, then pass its
|
339
|
+
# value in here in another request to list more bundles.
|
340
|
+
# @return [String]
|
341
|
+
#
|
342
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/ListBundlesRequest AWS API Documentation
|
343
|
+
#
|
344
|
+
class ListBundlesRequest < Struct.new(
|
345
|
+
:max_results,
|
346
|
+
:next_token)
|
347
|
+
include Aws::Structure
|
348
|
+
end
|
349
|
+
|
350
|
+
# Result structure contains a list of all available bundles with
|
351
|
+
# details.
|
352
|
+
#
|
353
|
+
# @!attribute [rw] bundle_list
|
354
|
+
# A list of bundles.
|
355
|
+
# @return [Array<Types::BundleDetails>]
|
356
|
+
#
|
357
|
+
# @!attribute [rw] next_token
|
358
|
+
# Pagination token. If non-null pagination token is returned in a
|
359
|
+
# result, then pass its value in another request to fetch more
|
360
|
+
# entries.
|
361
|
+
# @return [String]
|
362
|
+
#
|
363
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/ListBundlesResult AWS API Documentation
|
364
|
+
#
|
365
|
+
class ListBundlesResult < Struct.new(
|
366
|
+
:bundle_list,
|
367
|
+
:next_token)
|
368
|
+
include Aws::Structure
|
369
|
+
end
|
370
|
+
|
371
|
+
# Request structure used to request projects list in AWS Mobile Hub.
|
372
|
+
#
|
373
|
+
# @note When making an API call, you may pass ListProjectsRequest
|
374
|
+
# data as a hash:
|
375
|
+
#
|
376
|
+
# {
|
377
|
+
# max_results: 1,
|
378
|
+
# next_token: "NextToken",
|
379
|
+
# }
|
380
|
+
#
|
381
|
+
# @!attribute [rw] max_results
|
382
|
+
# Maximum number of records to list in a single response.
|
383
|
+
# @return [Integer]
|
384
|
+
#
|
385
|
+
# @!attribute [rw] next_token
|
386
|
+
# Pagination token. Set to null to start listing projects from start.
|
387
|
+
# If non-null pagination token is returned in a result, then pass its
|
388
|
+
# value in here in another request to list more projects.
|
389
|
+
# @return [String]
|
390
|
+
#
|
391
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/ListProjectsRequest AWS API Documentation
|
392
|
+
#
|
393
|
+
class ListProjectsRequest < Struct.new(
|
394
|
+
:max_results,
|
395
|
+
:next_token)
|
396
|
+
include Aws::Structure
|
397
|
+
end
|
398
|
+
|
399
|
+
# Result structure used for requests to list projects in AWS Mobile Hub.
|
400
|
+
#
|
401
|
+
# @!attribute [rw] projects
|
402
|
+
# List of projects.
|
403
|
+
# @return [Array<Types::ProjectSummary>]
|
404
|
+
#
|
405
|
+
# @!attribute [rw] next_token
|
406
|
+
# Pagination token. Set to null to start listing records from start.
|
407
|
+
# If non-null pagination token is returned in a result, then pass its
|
408
|
+
# value in here in another request to list more entries.
|
409
|
+
# @return [String]
|
410
|
+
#
|
411
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/ListProjectsResult AWS API Documentation
|
412
|
+
#
|
413
|
+
class ListProjectsResult < Struct.new(
|
414
|
+
:projects,
|
415
|
+
:next_token)
|
416
|
+
include Aws::Structure
|
417
|
+
end
|
418
|
+
|
419
|
+
# Detailed information about an AWS Mobile Hub project.
|
420
|
+
#
|
421
|
+
# @!attribute [rw] name
|
422
|
+
# Name of the project.
|
423
|
+
# @return [String]
|
424
|
+
#
|
425
|
+
# @!attribute [rw] project_id
|
426
|
+
# Unique project identifier.
|
427
|
+
# @return [String]
|
428
|
+
#
|
429
|
+
# @!attribute [rw] region
|
430
|
+
# Default region to use for AWS resource creation in the AWS Mobile
|
431
|
+
# Hub project.
|
432
|
+
# @return [String]
|
433
|
+
#
|
434
|
+
# @!attribute [rw] state
|
435
|
+
# Synchronization state for a project.
|
436
|
+
# @return [String]
|
437
|
+
#
|
438
|
+
# @!attribute [rw] created_date
|
439
|
+
# Date the project was created.
|
440
|
+
# @return [Time]
|
441
|
+
#
|
442
|
+
# @!attribute [rw] last_updated_date
|
443
|
+
# Date of the last modification of the project.
|
444
|
+
# @return [Time]
|
445
|
+
#
|
446
|
+
# @!attribute [rw] console_url
|
447
|
+
# Website URL for this project in the AWS Mobile Hub console.
|
448
|
+
# @return [String]
|
449
|
+
#
|
450
|
+
# @!attribute [rw] resources
|
451
|
+
# List of AWS resources associated with a project.
|
452
|
+
# @return [Array<Types::Resource>]
|
453
|
+
#
|
454
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/ProjectDetails AWS API Documentation
|
455
|
+
#
|
456
|
+
class ProjectDetails < Struct.new(
|
457
|
+
:name,
|
458
|
+
:project_id,
|
459
|
+
:region,
|
460
|
+
:state,
|
461
|
+
:created_date,
|
462
|
+
:last_updated_date,
|
463
|
+
:console_url,
|
464
|
+
:resources)
|
465
|
+
include Aws::Structure
|
466
|
+
end
|
467
|
+
|
468
|
+
# Summary information about an AWS Mobile Hub project.
|
469
|
+
#
|
470
|
+
# @!attribute [rw] name
|
471
|
+
# Name of the project.
|
472
|
+
# @return [String]
|
473
|
+
#
|
474
|
+
# @!attribute [rw] project_id
|
475
|
+
# Unique project identifier.
|
476
|
+
# @return [String]
|
477
|
+
#
|
478
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/ProjectSummary AWS API Documentation
|
479
|
+
#
|
480
|
+
class ProjectSummary < Struct.new(
|
481
|
+
:name,
|
482
|
+
:project_id)
|
483
|
+
include Aws::Structure
|
484
|
+
end
|
485
|
+
|
486
|
+
# Information about an instance of an AWS resource associated with a
|
487
|
+
# project.
|
488
|
+
#
|
489
|
+
# @!attribute [rw] type
|
490
|
+
# Simplified name for type of AWS resource (e.g., bucket is an Amazon
|
491
|
+
# S3 bucket).
|
492
|
+
# @return [String]
|
493
|
+
#
|
494
|
+
# @!attribute [rw] name
|
495
|
+
# Name of the AWS resource (e.g., for an Amazon S3 bucket this is the
|
496
|
+
# name of the bucket).
|
497
|
+
# @return [String]
|
498
|
+
#
|
499
|
+
# @!attribute [rw] arn
|
500
|
+
# AWS resource name which uniquely identifies the resource in AWS
|
501
|
+
# systems.
|
502
|
+
# @return [String]
|
503
|
+
#
|
504
|
+
# @!attribute [rw] feature
|
505
|
+
# Identifies which feature in AWS Mobile Hub is associated with this
|
506
|
+
# AWS resource.
|
507
|
+
# @return [String]
|
508
|
+
#
|
509
|
+
# @!attribute [rw] attributes
|
510
|
+
# Key-value attribute pairs.
|
511
|
+
# @return [Hash<String,String>]
|
512
|
+
#
|
513
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/Resource AWS API Documentation
|
514
|
+
#
|
515
|
+
class Resource < Struct.new(
|
516
|
+
:type,
|
517
|
+
:name,
|
518
|
+
:arn,
|
519
|
+
:feature,
|
520
|
+
:attributes)
|
521
|
+
include Aws::Structure
|
522
|
+
end
|
523
|
+
|
524
|
+
# Request structure used for requests to update project configuration.
|
525
|
+
#
|
526
|
+
# @note When making an API call, you may pass UpdateProjectRequest
|
527
|
+
# data as a hash:
|
528
|
+
#
|
529
|
+
# {
|
530
|
+
# contents: "data",
|
531
|
+
# project_id: "ProjectId", # required
|
532
|
+
# }
|
533
|
+
#
|
534
|
+
# @!attribute [rw] contents
|
535
|
+
# ZIP or YAML file which contains project configuration to be updated.
|
536
|
+
# This should be the contents of the file downloaded from the URL
|
537
|
+
# provided in an export project operation.
|
538
|
+
# @return [String]
|
539
|
+
#
|
540
|
+
# @!attribute [rw] project_id
|
541
|
+
# Unique project identifier.
|
542
|
+
# @return [String]
|
543
|
+
#
|
544
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/UpdateProjectRequest AWS API Documentation
|
545
|
+
#
|
546
|
+
class UpdateProjectRequest < Struct.new(
|
547
|
+
:contents,
|
548
|
+
:project_id)
|
549
|
+
include Aws::Structure
|
550
|
+
end
|
551
|
+
|
552
|
+
# Result structure used for requests to updated project configuration.
|
553
|
+
#
|
554
|
+
# @!attribute [rw] details
|
555
|
+
# Detailed information about the updated AWS Mobile Hub project.
|
556
|
+
# @return [Types::ProjectDetails]
|
557
|
+
#
|
558
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/UpdateProjectResult AWS API Documentation
|
559
|
+
#
|
560
|
+
class UpdateProjectResult < Struct.new(
|
561
|
+
:details)
|
562
|
+
include Aws::Structure
|
563
|
+
end
|
564
|
+
|
565
|
+
end
|
566
|
+
end
|