aws-sdk-lookoutforvision 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-lookoutforvision.rb +53 -0
- data/lib/aws-sdk-lookoutforvision/client.rb +1311 -0
- data/lib/aws-sdk-lookoutforvision/client_api.rb +645 -0
- data/lib/aws-sdk-lookoutforvision/customizations.rb +0 -0
- data/lib/aws-sdk-lookoutforvision/errors.rb +210 -0
- data/lib/aws-sdk-lookoutforvision/resource.rb +26 -0
- data/lib/aws-sdk-lookoutforvision/types.rb +1660 -0
- metadata +88 -0
@@ -0,0 +1,645 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
module Aws::LookoutforVision
|
11
|
+
# @api private
|
12
|
+
module ClientApi
|
13
|
+
|
14
|
+
include Seahorse::Model
|
15
|
+
|
16
|
+
AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
|
17
|
+
AnomalyClassFilter = Shapes::StringShape.new(name: 'AnomalyClassFilter')
|
18
|
+
Boolean = Shapes::BooleanShape.new(name: 'Boolean')
|
19
|
+
ClientToken = Shapes::StringShape.new(name: 'ClientToken')
|
20
|
+
ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
|
21
|
+
ContentType = Shapes::StringShape.new(name: 'ContentType')
|
22
|
+
CreateDatasetRequest = Shapes::StructureShape.new(name: 'CreateDatasetRequest')
|
23
|
+
CreateDatasetResponse = Shapes::StructureShape.new(name: 'CreateDatasetResponse')
|
24
|
+
CreateModelRequest = Shapes::StructureShape.new(name: 'CreateModelRequest')
|
25
|
+
CreateModelResponse = Shapes::StructureShape.new(name: 'CreateModelResponse')
|
26
|
+
CreateProjectRequest = Shapes::StructureShape.new(name: 'CreateProjectRequest')
|
27
|
+
CreateProjectResponse = Shapes::StructureShape.new(name: 'CreateProjectResponse')
|
28
|
+
DatasetChanges = Shapes::BlobShape.new(name: 'DatasetChanges')
|
29
|
+
DatasetDescription = Shapes::StructureShape.new(name: 'DatasetDescription')
|
30
|
+
DatasetEntry = Shapes::StringShape.new(name: 'DatasetEntry')
|
31
|
+
DatasetEntryList = Shapes::ListShape.new(name: 'DatasetEntryList')
|
32
|
+
DatasetGroundTruthManifest = Shapes::StructureShape.new(name: 'DatasetGroundTruthManifest')
|
33
|
+
DatasetImageStats = Shapes::StructureShape.new(name: 'DatasetImageStats')
|
34
|
+
DatasetMetadata = Shapes::StructureShape.new(name: 'DatasetMetadata')
|
35
|
+
DatasetMetadataList = Shapes::ListShape.new(name: 'DatasetMetadataList')
|
36
|
+
DatasetSource = Shapes::StructureShape.new(name: 'DatasetSource')
|
37
|
+
DatasetStatus = Shapes::StringShape.new(name: 'DatasetStatus')
|
38
|
+
DatasetStatusMessage = Shapes::StringShape.new(name: 'DatasetStatusMessage')
|
39
|
+
DatasetType = Shapes::StringShape.new(name: 'DatasetType')
|
40
|
+
DateTime = Shapes::TimestampShape.new(name: 'DateTime')
|
41
|
+
DeleteDatasetRequest = Shapes::StructureShape.new(name: 'DeleteDatasetRequest')
|
42
|
+
DeleteDatasetResponse = Shapes::StructureShape.new(name: 'DeleteDatasetResponse')
|
43
|
+
DeleteModelRequest = Shapes::StructureShape.new(name: 'DeleteModelRequest')
|
44
|
+
DeleteModelResponse = Shapes::StructureShape.new(name: 'DeleteModelResponse')
|
45
|
+
DeleteProjectRequest = Shapes::StructureShape.new(name: 'DeleteProjectRequest')
|
46
|
+
DeleteProjectResponse = Shapes::StructureShape.new(name: 'DeleteProjectResponse')
|
47
|
+
DescribeDatasetRequest = Shapes::StructureShape.new(name: 'DescribeDatasetRequest')
|
48
|
+
DescribeDatasetResponse = Shapes::StructureShape.new(name: 'DescribeDatasetResponse')
|
49
|
+
DescribeModelRequest = Shapes::StructureShape.new(name: 'DescribeModelRequest')
|
50
|
+
DescribeModelResponse = Shapes::StructureShape.new(name: 'DescribeModelResponse')
|
51
|
+
DescribeProjectRequest = Shapes::StructureShape.new(name: 'DescribeProjectRequest')
|
52
|
+
DescribeProjectResponse = Shapes::StructureShape.new(name: 'DescribeProjectResponse')
|
53
|
+
DetectAnomaliesRequest = Shapes::StructureShape.new(name: 'DetectAnomaliesRequest')
|
54
|
+
DetectAnomaliesResponse = Shapes::StructureShape.new(name: 'DetectAnomaliesResponse')
|
55
|
+
DetectAnomalyResult = Shapes::StructureShape.new(name: 'DetectAnomalyResult')
|
56
|
+
ExceptionString = Shapes::StringShape.new(name: 'ExceptionString')
|
57
|
+
Float = Shapes::FloatShape.new(name: 'Float')
|
58
|
+
ImageSource = Shapes::StructureShape.new(name: 'ImageSource')
|
59
|
+
ImageSourceType = Shapes::StringShape.new(name: 'ImageSourceType')
|
60
|
+
InferenceUnits = Shapes::IntegerShape.new(name: 'InferenceUnits')
|
61
|
+
InputS3Object = Shapes::StructureShape.new(name: 'InputS3Object')
|
62
|
+
Integer = Shapes::IntegerShape.new(name: 'Integer')
|
63
|
+
InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
|
64
|
+
IsLabeled = Shapes::BooleanShape.new(name: 'IsLabeled')
|
65
|
+
KmsKeyId = Shapes::StringShape.new(name: 'KmsKeyId')
|
66
|
+
ListDatasetEntriesRequest = Shapes::StructureShape.new(name: 'ListDatasetEntriesRequest')
|
67
|
+
ListDatasetEntriesResponse = Shapes::StructureShape.new(name: 'ListDatasetEntriesResponse')
|
68
|
+
ListModelsRequest = Shapes::StructureShape.new(name: 'ListModelsRequest')
|
69
|
+
ListModelsResponse = Shapes::StructureShape.new(name: 'ListModelsResponse')
|
70
|
+
ListProjectsRequest = Shapes::StructureShape.new(name: 'ListProjectsRequest')
|
71
|
+
ListProjectsResponse = Shapes::StructureShape.new(name: 'ListProjectsResponse')
|
72
|
+
ModelArn = Shapes::StringShape.new(name: 'ModelArn')
|
73
|
+
ModelDescription = Shapes::StructureShape.new(name: 'ModelDescription')
|
74
|
+
ModelDescriptionMessage = Shapes::StringShape.new(name: 'ModelDescriptionMessage')
|
75
|
+
ModelHostingStatus = Shapes::StringShape.new(name: 'ModelHostingStatus')
|
76
|
+
ModelMetadata = Shapes::StructureShape.new(name: 'ModelMetadata')
|
77
|
+
ModelMetadataList = Shapes::ListShape.new(name: 'ModelMetadataList')
|
78
|
+
ModelPerformance = Shapes::StructureShape.new(name: 'ModelPerformance')
|
79
|
+
ModelStatus = Shapes::StringShape.new(name: 'ModelStatus')
|
80
|
+
ModelStatusMessage = Shapes::StringShape.new(name: 'ModelStatusMessage')
|
81
|
+
ModelVersion = Shapes::StringShape.new(name: 'ModelVersion')
|
82
|
+
OutputConfig = Shapes::StructureShape.new(name: 'OutputConfig')
|
83
|
+
OutputS3Object = Shapes::StructureShape.new(name: 'OutputS3Object')
|
84
|
+
PageSize = Shapes::IntegerShape.new(name: 'PageSize')
|
85
|
+
PaginationToken = Shapes::StringShape.new(name: 'PaginationToken')
|
86
|
+
ProjectArn = Shapes::StringShape.new(name: 'ProjectArn')
|
87
|
+
ProjectDescription = Shapes::StructureShape.new(name: 'ProjectDescription')
|
88
|
+
ProjectMetadata = Shapes::StructureShape.new(name: 'ProjectMetadata')
|
89
|
+
ProjectMetadataList = Shapes::ListShape.new(name: 'ProjectMetadataList')
|
90
|
+
ProjectName = Shapes::StringShape.new(name: 'ProjectName')
|
91
|
+
QueryString = Shapes::StringShape.new(name: 'QueryString')
|
92
|
+
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
93
|
+
ResourceType = Shapes::StringShape.new(name: 'ResourceType')
|
94
|
+
RetryAfterSeconds = Shapes::IntegerShape.new(name: 'RetryAfterSeconds')
|
95
|
+
S3BucketName = Shapes::StringShape.new(name: 'S3BucketName')
|
96
|
+
S3KeyPrefix = Shapes::StringShape.new(name: 'S3KeyPrefix')
|
97
|
+
S3Location = Shapes::StructureShape.new(name: 'S3Location')
|
98
|
+
S3ObjectKey = Shapes::StringShape.new(name: 'S3ObjectKey')
|
99
|
+
S3ObjectVersion = Shapes::StringShape.new(name: 'S3ObjectVersion')
|
100
|
+
ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
|
101
|
+
StartModelRequest = Shapes::StructureShape.new(name: 'StartModelRequest')
|
102
|
+
StartModelResponse = Shapes::StructureShape.new(name: 'StartModelResponse')
|
103
|
+
StopModelRequest = Shapes::StructureShape.new(name: 'StopModelRequest')
|
104
|
+
StopModelResponse = Shapes::StructureShape.new(name: 'StopModelResponse')
|
105
|
+
Stream = Shapes::BlobShape.new(name: 'Stream', requiresLength: true, streaming: true)
|
106
|
+
ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
|
107
|
+
UpdateDatasetEntriesRequest = Shapes::StructureShape.new(name: 'UpdateDatasetEntriesRequest')
|
108
|
+
UpdateDatasetEntriesResponse = Shapes::StructureShape.new(name: 'UpdateDatasetEntriesResponse')
|
109
|
+
ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
|
110
|
+
|
111
|
+
AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionString, required: true, location_name: "Message"))
|
112
|
+
AccessDeniedException.struct_class = Types::AccessDeniedException
|
113
|
+
|
114
|
+
ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionString, required: true, location_name: "Message"))
|
115
|
+
ConflictException.add_member(:resource_id, Shapes::ShapeRef.new(shape: ExceptionString, required: true, location_name: "ResourceId"))
|
116
|
+
ConflictException.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, required: true, location_name: "ResourceType"))
|
117
|
+
ConflictException.struct_class = Types::ConflictException
|
118
|
+
|
119
|
+
CreateDatasetRequest.add_member(:project_name, Shapes::ShapeRef.new(shape: ProjectName, required: true, location: "uri", location_name: "projectName"))
|
120
|
+
CreateDatasetRequest.add_member(:dataset_type, Shapes::ShapeRef.new(shape: DatasetType, required: true, location_name: "DatasetType"))
|
121
|
+
CreateDatasetRequest.add_member(:dataset_source, Shapes::ShapeRef.new(shape: DatasetSource, location_name: "DatasetSource"))
|
122
|
+
CreateDatasetRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location: "header", location_name: "X-Amzn-Client-Token", metadata: {"idempotencyToken"=>true}))
|
123
|
+
CreateDatasetRequest.struct_class = Types::CreateDatasetRequest
|
124
|
+
|
125
|
+
CreateDatasetResponse.add_member(:dataset_metadata, Shapes::ShapeRef.new(shape: DatasetMetadata, location_name: "DatasetMetadata"))
|
126
|
+
CreateDatasetResponse.struct_class = Types::CreateDatasetResponse
|
127
|
+
|
128
|
+
CreateModelRequest.add_member(:project_name, Shapes::ShapeRef.new(shape: ProjectName, required: true, location: "uri", location_name: "projectName"))
|
129
|
+
CreateModelRequest.add_member(:description, Shapes::ShapeRef.new(shape: ModelDescription, location_name: "Description"))
|
130
|
+
CreateModelRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location: "header", location_name: "X-Amzn-Client-Token", metadata: {"idempotencyToken"=>true}))
|
131
|
+
CreateModelRequest.add_member(:output_config, Shapes::ShapeRef.new(shape: OutputConfig, required: true, location_name: "OutputConfig"))
|
132
|
+
CreateModelRequest.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: KmsKeyId, location_name: "KmsKeyId"))
|
133
|
+
CreateModelRequest.struct_class = Types::CreateModelRequest
|
134
|
+
|
135
|
+
CreateModelResponse.add_member(:model_metadata, Shapes::ShapeRef.new(shape: ModelMetadata, location_name: "ModelMetadata"))
|
136
|
+
CreateModelResponse.struct_class = Types::CreateModelResponse
|
137
|
+
|
138
|
+
CreateProjectRequest.add_member(:project_name, Shapes::ShapeRef.new(shape: ProjectName, required: true, location_name: "ProjectName"))
|
139
|
+
CreateProjectRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location: "header", location_name: "X-Amzn-Client-Token", metadata: {"idempotencyToken"=>true}))
|
140
|
+
CreateProjectRequest.struct_class = Types::CreateProjectRequest
|
141
|
+
|
142
|
+
CreateProjectResponse.add_member(:project_metadata, Shapes::ShapeRef.new(shape: ProjectMetadata, location_name: "ProjectMetadata"))
|
143
|
+
CreateProjectResponse.struct_class = Types::CreateProjectResponse
|
144
|
+
|
145
|
+
DatasetDescription.add_member(:project_name, Shapes::ShapeRef.new(shape: ProjectName, location_name: "ProjectName"))
|
146
|
+
DatasetDescription.add_member(:dataset_type, Shapes::ShapeRef.new(shape: DatasetType, location_name: "DatasetType"))
|
147
|
+
DatasetDescription.add_member(:creation_timestamp, Shapes::ShapeRef.new(shape: DateTime, location_name: "CreationTimestamp"))
|
148
|
+
DatasetDescription.add_member(:last_updated_timestamp, Shapes::ShapeRef.new(shape: DateTime, location_name: "LastUpdatedTimestamp"))
|
149
|
+
DatasetDescription.add_member(:status, Shapes::ShapeRef.new(shape: DatasetStatus, location_name: "Status"))
|
150
|
+
DatasetDescription.add_member(:status_message, Shapes::ShapeRef.new(shape: DatasetStatusMessage, location_name: "StatusMessage"))
|
151
|
+
DatasetDescription.add_member(:image_stats, Shapes::ShapeRef.new(shape: DatasetImageStats, location_name: "ImageStats"))
|
152
|
+
DatasetDescription.struct_class = Types::DatasetDescription
|
153
|
+
|
154
|
+
DatasetEntryList.member = Shapes::ShapeRef.new(shape: DatasetEntry)
|
155
|
+
|
156
|
+
DatasetGroundTruthManifest.add_member(:s3_object, Shapes::ShapeRef.new(shape: InputS3Object, location_name: "S3Object"))
|
157
|
+
DatasetGroundTruthManifest.struct_class = Types::DatasetGroundTruthManifest
|
158
|
+
|
159
|
+
DatasetImageStats.add_member(:total, Shapes::ShapeRef.new(shape: Integer, location_name: "Total"))
|
160
|
+
DatasetImageStats.add_member(:labeled, Shapes::ShapeRef.new(shape: Integer, location_name: "Labeled"))
|
161
|
+
DatasetImageStats.add_member(:normal, Shapes::ShapeRef.new(shape: Integer, location_name: "Normal"))
|
162
|
+
DatasetImageStats.add_member(:anomaly, Shapes::ShapeRef.new(shape: Integer, location_name: "Anomaly"))
|
163
|
+
DatasetImageStats.struct_class = Types::DatasetImageStats
|
164
|
+
|
165
|
+
DatasetMetadata.add_member(:dataset_type, Shapes::ShapeRef.new(shape: DatasetType, location_name: "DatasetType"))
|
166
|
+
DatasetMetadata.add_member(:creation_timestamp, Shapes::ShapeRef.new(shape: DateTime, location_name: "CreationTimestamp"))
|
167
|
+
DatasetMetadata.add_member(:status, Shapes::ShapeRef.new(shape: DatasetStatus, location_name: "Status"))
|
168
|
+
DatasetMetadata.add_member(:status_message, Shapes::ShapeRef.new(shape: DatasetStatusMessage, location_name: "StatusMessage"))
|
169
|
+
DatasetMetadata.struct_class = Types::DatasetMetadata
|
170
|
+
|
171
|
+
DatasetMetadataList.member = Shapes::ShapeRef.new(shape: DatasetMetadata)
|
172
|
+
|
173
|
+
DatasetSource.add_member(:ground_truth_manifest, Shapes::ShapeRef.new(shape: DatasetGroundTruthManifest, location_name: "GroundTruthManifest"))
|
174
|
+
DatasetSource.struct_class = Types::DatasetSource
|
175
|
+
|
176
|
+
DeleteDatasetRequest.add_member(:project_name, Shapes::ShapeRef.new(shape: ProjectName, required: true, location: "uri", location_name: "projectName"))
|
177
|
+
DeleteDatasetRequest.add_member(:dataset_type, Shapes::ShapeRef.new(shape: DatasetType, required: true, location: "uri", location_name: "datasetType"))
|
178
|
+
DeleteDatasetRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location: "header", location_name: "X-Amzn-Client-Token", metadata: {"idempotencyToken"=>true}))
|
179
|
+
DeleteDatasetRequest.struct_class = Types::DeleteDatasetRequest
|
180
|
+
|
181
|
+
DeleteDatasetResponse.struct_class = Types::DeleteDatasetResponse
|
182
|
+
|
183
|
+
DeleteModelRequest.add_member(:project_name, Shapes::ShapeRef.new(shape: ProjectName, required: true, location: "uri", location_name: "projectName"))
|
184
|
+
DeleteModelRequest.add_member(:model_version, Shapes::ShapeRef.new(shape: ModelVersion, required: true, location: "uri", location_name: "modelVersion"))
|
185
|
+
DeleteModelRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location: "header", location_name: "X-Amzn-Client-Token", metadata: {"idempotencyToken"=>true}))
|
186
|
+
DeleteModelRequest.struct_class = Types::DeleteModelRequest
|
187
|
+
|
188
|
+
DeleteModelResponse.add_member(:model_arn, Shapes::ShapeRef.new(shape: ModelArn, location_name: "ModelArn"))
|
189
|
+
DeleteModelResponse.struct_class = Types::DeleteModelResponse
|
190
|
+
|
191
|
+
DeleteProjectRequest.add_member(:project_name, Shapes::ShapeRef.new(shape: ProjectName, required: true, location: "uri", location_name: "projectName"))
|
192
|
+
DeleteProjectRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location: "header", location_name: "X-Amzn-Client-Token", metadata: {"idempotencyToken"=>true}))
|
193
|
+
DeleteProjectRequest.struct_class = Types::DeleteProjectRequest
|
194
|
+
|
195
|
+
DeleteProjectResponse.add_member(:project_arn, Shapes::ShapeRef.new(shape: ProjectArn, location_name: "ProjectArn"))
|
196
|
+
DeleteProjectResponse.struct_class = Types::DeleteProjectResponse
|
197
|
+
|
198
|
+
DescribeDatasetRequest.add_member(:project_name, Shapes::ShapeRef.new(shape: ProjectName, required: true, location: "uri", location_name: "projectName"))
|
199
|
+
DescribeDatasetRequest.add_member(:dataset_type, Shapes::ShapeRef.new(shape: DatasetType, required: true, location: "uri", location_name: "datasetType"))
|
200
|
+
DescribeDatasetRequest.struct_class = Types::DescribeDatasetRequest
|
201
|
+
|
202
|
+
DescribeDatasetResponse.add_member(:dataset_description, Shapes::ShapeRef.new(shape: DatasetDescription, location_name: "DatasetDescription"))
|
203
|
+
DescribeDatasetResponse.struct_class = Types::DescribeDatasetResponse
|
204
|
+
|
205
|
+
DescribeModelRequest.add_member(:project_name, Shapes::ShapeRef.new(shape: ProjectName, required: true, location: "uri", location_name: "projectName"))
|
206
|
+
DescribeModelRequest.add_member(:model_version, Shapes::ShapeRef.new(shape: ModelVersion, required: true, location: "uri", location_name: "modelVersion"))
|
207
|
+
DescribeModelRequest.struct_class = Types::DescribeModelRequest
|
208
|
+
|
209
|
+
DescribeModelResponse.add_member(:model_description, Shapes::ShapeRef.new(shape: ModelDescription, location_name: "ModelDescription"))
|
210
|
+
DescribeModelResponse.struct_class = Types::DescribeModelResponse
|
211
|
+
|
212
|
+
DescribeProjectRequest.add_member(:project_name, Shapes::ShapeRef.new(shape: ProjectName, required: true, location: "uri", location_name: "projectName"))
|
213
|
+
DescribeProjectRequest.struct_class = Types::DescribeProjectRequest
|
214
|
+
|
215
|
+
DescribeProjectResponse.add_member(:project_description, Shapes::ShapeRef.new(shape: ProjectDescription, location_name: "ProjectDescription"))
|
216
|
+
DescribeProjectResponse.struct_class = Types::DescribeProjectResponse
|
217
|
+
|
218
|
+
DetectAnomaliesRequest.add_member(:project_name, Shapes::ShapeRef.new(shape: ProjectName, required: true, location: "uri", location_name: "projectName"))
|
219
|
+
DetectAnomaliesRequest.add_member(:model_version, Shapes::ShapeRef.new(shape: ModelVersion, required: true, location: "uri", location_name: "modelVersion"))
|
220
|
+
DetectAnomaliesRequest.add_member(:body, Shapes::ShapeRef.new(shape: Stream, required: true, location_name: "Body"))
|
221
|
+
DetectAnomaliesRequest.add_member(:content_type, Shapes::ShapeRef.new(shape: ContentType, required: true, location: "header", location_name: "content-type"))
|
222
|
+
DetectAnomaliesRequest.struct_class = Types::DetectAnomaliesRequest
|
223
|
+
DetectAnomaliesRequest[:payload] = :body
|
224
|
+
DetectAnomaliesRequest[:payload_member] = DetectAnomaliesRequest.member(:body)
|
225
|
+
|
226
|
+
DetectAnomaliesResponse.add_member(:detect_anomaly_result, Shapes::ShapeRef.new(shape: DetectAnomalyResult, location_name: "DetectAnomalyResult"))
|
227
|
+
DetectAnomaliesResponse.struct_class = Types::DetectAnomaliesResponse
|
228
|
+
|
229
|
+
DetectAnomalyResult.add_member(:source, Shapes::ShapeRef.new(shape: ImageSource, location_name: "Source"))
|
230
|
+
DetectAnomalyResult.add_member(:is_anomalous, Shapes::ShapeRef.new(shape: Boolean, location_name: "IsAnomalous"))
|
231
|
+
DetectAnomalyResult.add_member(:confidence, Shapes::ShapeRef.new(shape: Float, location_name: "Confidence"))
|
232
|
+
DetectAnomalyResult.struct_class = Types::DetectAnomalyResult
|
233
|
+
|
234
|
+
ImageSource.add_member(:type, Shapes::ShapeRef.new(shape: ImageSourceType, location_name: "Type"))
|
235
|
+
ImageSource.struct_class = Types::ImageSource
|
236
|
+
|
237
|
+
InputS3Object.add_member(:bucket, Shapes::ShapeRef.new(shape: S3BucketName, required: true, location_name: "Bucket"))
|
238
|
+
InputS3Object.add_member(:key, Shapes::ShapeRef.new(shape: S3ObjectKey, required: true, location_name: "Key"))
|
239
|
+
InputS3Object.add_member(:version_id, Shapes::ShapeRef.new(shape: S3ObjectVersion, location_name: "VersionId"))
|
240
|
+
InputS3Object.struct_class = Types::InputS3Object
|
241
|
+
|
242
|
+
InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionString, required: true, location_name: "Message"))
|
243
|
+
InternalServerException.add_member(:retry_after_seconds, Shapes::ShapeRef.new(shape: RetryAfterSeconds, location: "header", location_name: "Retry-After"))
|
244
|
+
InternalServerException.struct_class = Types::InternalServerException
|
245
|
+
|
246
|
+
ListDatasetEntriesRequest.add_member(:project_name, Shapes::ShapeRef.new(shape: ProjectName, required: true, location: "uri", location_name: "projectName"))
|
247
|
+
ListDatasetEntriesRequest.add_member(:dataset_type, Shapes::ShapeRef.new(shape: DatasetType, required: true, location: "uri", location_name: "datasetType"))
|
248
|
+
ListDatasetEntriesRequest.add_member(:labeled, Shapes::ShapeRef.new(shape: IsLabeled, location: "querystring", location_name: "labeled"))
|
249
|
+
ListDatasetEntriesRequest.add_member(:anomaly_class, Shapes::ShapeRef.new(shape: AnomalyClassFilter, location: "querystring", location_name: "anomalyClass"))
|
250
|
+
ListDatasetEntriesRequest.add_member(:before_creation_date, Shapes::ShapeRef.new(shape: DateTime, location: "querystring", location_name: "createdBefore"))
|
251
|
+
ListDatasetEntriesRequest.add_member(:after_creation_date, Shapes::ShapeRef.new(shape: DateTime, location: "querystring", location_name: "createdAfter"))
|
252
|
+
ListDatasetEntriesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location: "querystring", location_name: "nextToken"))
|
253
|
+
ListDatasetEntriesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: PageSize, location: "querystring", location_name: "maxResults"))
|
254
|
+
ListDatasetEntriesRequest.add_member(:source_ref_contains, Shapes::ShapeRef.new(shape: QueryString, location: "querystring", location_name: "sourceRefContains"))
|
255
|
+
ListDatasetEntriesRequest.struct_class = Types::ListDatasetEntriesRequest
|
256
|
+
|
257
|
+
ListDatasetEntriesResponse.add_member(:dataset_entries, Shapes::ShapeRef.new(shape: DatasetEntryList, location_name: "DatasetEntries"))
|
258
|
+
ListDatasetEntriesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
|
259
|
+
ListDatasetEntriesResponse.struct_class = Types::ListDatasetEntriesResponse
|
260
|
+
|
261
|
+
ListModelsRequest.add_member(:project_name, Shapes::ShapeRef.new(shape: ProjectName, required: true, location: "uri", location_name: "projectName"))
|
262
|
+
ListModelsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location: "querystring", location_name: "nextToken"))
|
263
|
+
ListModelsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: PageSize, location: "querystring", location_name: "maxResults"))
|
264
|
+
ListModelsRequest.struct_class = Types::ListModelsRequest
|
265
|
+
|
266
|
+
ListModelsResponse.add_member(:models, Shapes::ShapeRef.new(shape: ModelMetadataList, location_name: "Models"))
|
267
|
+
ListModelsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
|
268
|
+
ListModelsResponse.struct_class = Types::ListModelsResponse
|
269
|
+
|
270
|
+
ListProjectsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location: "querystring", location_name: "nextToken"))
|
271
|
+
ListProjectsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: PageSize, location: "querystring", location_name: "maxResults"))
|
272
|
+
ListProjectsRequest.struct_class = Types::ListProjectsRequest
|
273
|
+
|
274
|
+
ListProjectsResponse.add_member(:projects, Shapes::ShapeRef.new(shape: ProjectMetadataList, location_name: "Projects"))
|
275
|
+
ListProjectsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
|
276
|
+
ListProjectsResponse.struct_class = Types::ListProjectsResponse
|
277
|
+
|
278
|
+
ModelDescription.add_member(:model_version, Shapes::ShapeRef.new(shape: ModelVersion, location_name: "ModelVersion"))
|
279
|
+
ModelDescription.add_member(:model_arn, Shapes::ShapeRef.new(shape: ModelArn, location_name: "ModelArn"))
|
280
|
+
ModelDescription.add_member(:creation_timestamp, Shapes::ShapeRef.new(shape: DateTime, location_name: "CreationTimestamp"))
|
281
|
+
ModelDescription.add_member(:description, Shapes::ShapeRef.new(shape: ModelDescriptionMessage, location_name: "Description"))
|
282
|
+
ModelDescription.add_member(:status, Shapes::ShapeRef.new(shape: ModelStatus, location_name: "Status"))
|
283
|
+
ModelDescription.add_member(:status_message, Shapes::ShapeRef.new(shape: ModelStatusMessage, location_name: "StatusMessage"))
|
284
|
+
ModelDescription.add_member(:performance, Shapes::ShapeRef.new(shape: ModelPerformance, location_name: "Performance"))
|
285
|
+
ModelDescription.add_member(:output_config, Shapes::ShapeRef.new(shape: OutputConfig, location_name: "OutputConfig"))
|
286
|
+
ModelDescription.add_member(:evaluation_manifest, Shapes::ShapeRef.new(shape: OutputS3Object, location_name: "EvaluationManifest"))
|
287
|
+
ModelDescription.add_member(:evaluation_result, Shapes::ShapeRef.new(shape: OutputS3Object, location_name: "EvaluationResult"))
|
288
|
+
ModelDescription.add_member(:evaluation_end_timestamp, Shapes::ShapeRef.new(shape: DateTime, location_name: "EvaluationEndTimestamp"))
|
289
|
+
ModelDescription.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: KmsKeyId, location_name: "KmsKeyId"))
|
290
|
+
ModelDescription.struct_class = Types::ModelDescription
|
291
|
+
|
292
|
+
ModelMetadata.add_member(:creation_timestamp, Shapes::ShapeRef.new(shape: DateTime, location_name: "CreationTimestamp"))
|
293
|
+
ModelMetadata.add_member(:model_version, Shapes::ShapeRef.new(shape: ModelVersion, location_name: "ModelVersion"))
|
294
|
+
ModelMetadata.add_member(:model_arn, Shapes::ShapeRef.new(shape: ModelArn, location_name: "ModelArn"))
|
295
|
+
ModelMetadata.add_member(:description, Shapes::ShapeRef.new(shape: ModelDescriptionMessage, location_name: "Description"))
|
296
|
+
ModelMetadata.add_member(:status, Shapes::ShapeRef.new(shape: ModelStatus, location_name: "Status"))
|
297
|
+
ModelMetadata.add_member(:status_message, Shapes::ShapeRef.new(shape: ModelStatusMessage, location_name: "StatusMessage"))
|
298
|
+
ModelMetadata.add_member(:performance, Shapes::ShapeRef.new(shape: ModelPerformance, location_name: "Performance"))
|
299
|
+
ModelMetadata.struct_class = Types::ModelMetadata
|
300
|
+
|
301
|
+
ModelMetadataList.member = Shapes::ShapeRef.new(shape: ModelMetadata)
|
302
|
+
|
303
|
+
ModelPerformance.add_member(:f1_score, Shapes::ShapeRef.new(shape: Float, location_name: "F1Score"))
|
304
|
+
ModelPerformance.add_member(:recall, Shapes::ShapeRef.new(shape: Float, location_name: "Recall"))
|
305
|
+
ModelPerformance.add_member(:precision, Shapes::ShapeRef.new(shape: Float, location_name: "Precision"))
|
306
|
+
ModelPerformance.struct_class = Types::ModelPerformance
|
307
|
+
|
308
|
+
OutputConfig.add_member(:s3_location, Shapes::ShapeRef.new(shape: S3Location, required: true, location_name: "S3Location"))
|
309
|
+
OutputConfig.struct_class = Types::OutputConfig
|
310
|
+
|
311
|
+
OutputS3Object.add_member(:bucket, Shapes::ShapeRef.new(shape: S3BucketName, required: true, location_name: "Bucket"))
|
312
|
+
OutputS3Object.add_member(:key, Shapes::ShapeRef.new(shape: S3ObjectKey, required: true, location_name: "Key"))
|
313
|
+
OutputS3Object.struct_class = Types::OutputS3Object
|
314
|
+
|
315
|
+
ProjectDescription.add_member(:project_arn, Shapes::ShapeRef.new(shape: ProjectArn, location_name: "ProjectArn"))
|
316
|
+
ProjectDescription.add_member(:project_name, Shapes::ShapeRef.new(shape: ProjectName, location_name: "ProjectName"))
|
317
|
+
ProjectDescription.add_member(:creation_timestamp, Shapes::ShapeRef.new(shape: DateTime, location_name: "CreationTimestamp"))
|
318
|
+
ProjectDescription.add_member(:datasets, Shapes::ShapeRef.new(shape: DatasetMetadataList, location_name: "Datasets"))
|
319
|
+
ProjectDescription.struct_class = Types::ProjectDescription
|
320
|
+
|
321
|
+
ProjectMetadata.add_member(:project_arn, Shapes::ShapeRef.new(shape: ProjectArn, location_name: "ProjectArn"))
|
322
|
+
ProjectMetadata.add_member(:project_name, Shapes::ShapeRef.new(shape: ProjectName, location_name: "ProjectName"))
|
323
|
+
ProjectMetadata.add_member(:creation_timestamp, Shapes::ShapeRef.new(shape: DateTime, location_name: "CreationTimestamp"))
|
324
|
+
ProjectMetadata.struct_class = Types::ProjectMetadata
|
325
|
+
|
326
|
+
ProjectMetadataList.member = Shapes::ShapeRef.new(shape: ProjectMetadata)
|
327
|
+
|
328
|
+
ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionString, required: true, location_name: "Message"))
|
329
|
+
ResourceNotFoundException.add_member(:resource_id, Shapes::ShapeRef.new(shape: ExceptionString, required: true, location_name: "ResourceId"))
|
330
|
+
ResourceNotFoundException.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, required: true, location_name: "ResourceType"))
|
331
|
+
ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
|
332
|
+
|
333
|
+
S3Location.add_member(:bucket, Shapes::ShapeRef.new(shape: S3BucketName, required: true, location_name: "Bucket"))
|
334
|
+
S3Location.add_member(:prefix, Shapes::ShapeRef.new(shape: S3KeyPrefix, location_name: "Prefix"))
|
335
|
+
S3Location.struct_class = Types::S3Location
|
336
|
+
|
337
|
+
ServiceQuotaExceededException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionString, required: true, location_name: "Message"))
|
338
|
+
ServiceQuotaExceededException.add_member(:resource_id, Shapes::ShapeRef.new(shape: ExceptionString, location_name: "ResourceId"))
|
339
|
+
ServiceQuotaExceededException.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, location_name: "ResourceType"))
|
340
|
+
ServiceQuotaExceededException.add_member(:quota_code, Shapes::ShapeRef.new(shape: ExceptionString, required: true, location_name: "QuotaCode"))
|
341
|
+
ServiceQuotaExceededException.add_member(:service_code, Shapes::ShapeRef.new(shape: ExceptionString, required: true, location_name: "ServiceCode"))
|
342
|
+
ServiceQuotaExceededException.struct_class = Types::ServiceQuotaExceededException
|
343
|
+
|
344
|
+
StartModelRequest.add_member(:project_name, Shapes::ShapeRef.new(shape: ProjectName, required: true, location: "uri", location_name: "projectName"))
|
345
|
+
StartModelRequest.add_member(:model_version, Shapes::ShapeRef.new(shape: ModelVersion, required: true, location: "uri", location_name: "modelVersion"))
|
346
|
+
StartModelRequest.add_member(:min_inference_units, Shapes::ShapeRef.new(shape: InferenceUnits, required: true, location_name: "MinInferenceUnits"))
|
347
|
+
StartModelRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location: "header", location_name: "X-Amzn-Client-Token", metadata: {"idempotencyToken"=>true}))
|
348
|
+
StartModelRequest.struct_class = Types::StartModelRequest
|
349
|
+
|
350
|
+
StartModelResponse.add_member(:status, Shapes::ShapeRef.new(shape: ModelHostingStatus, location_name: "Status"))
|
351
|
+
StartModelResponse.struct_class = Types::StartModelResponse
|
352
|
+
|
353
|
+
StopModelRequest.add_member(:project_name, Shapes::ShapeRef.new(shape: ProjectName, required: true, location: "uri", location_name: "projectName"))
|
354
|
+
StopModelRequest.add_member(:model_version, Shapes::ShapeRef.new(shape: ModelVersion, required: true, location: "uri", location_name: "modelVersion"))
|
355
|
+
StopModelRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location: "header", location_name: "X-Amzn-Client-Token", metadata: {"idempotencyToken"=>true}))
|
356
|
+
StopModelRequest.struct_class = Types::StopModelRequest
|
357
|
+
|
358
|
+
StopModelResponse.add_member(:status, Shapes::ShapeRef.new(shape: ModelHostingStatus, location_name: "Status"))
|
359
|
+
StopModelResponse.struct_class = Types::StopModelResponse
|
360
|
+
|
361
|
+
ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionString, required: true, location_name: "Message"))
|
362
|
+
ThrottlingException.add_member(:quota_code, Shapes::ShapeRef.new(shape: ExceptionString, location_name: "QuotaCode"))
|
363
|
+
ThrottlingException.add_member(:service_code, Shapes::ShapeRef.new(shape: ExceptionString, location_name: "ServiceCode"))
|
364
|
+
ThrottlingException.add_member(:retry_after_seconds, Shapes::ShapeRef.new(shape: RetryAfterSeconds, location: "header", location_name: "Retry-After"))
|
365
|
+
ThrottlingException.struct_class = Types::ThrottlingException
|
366
|
+
|
367
|
+
UpdateDatasetEntriesRequest.add_member(:project_name, Shapes::ShapeRef.new(shape: ProjectName, required: true, location: "uri", location_name: "projectName"))
|
368
|
+
UpdateDatasetEntriesRequest.add_member(:dataset_type, Shapes::ShapeRef.new(shape: DatasetType, required: true, location: "uri", location_name: "datasetType"))
|
369
|
+
UpdateDatasetEntriesRequest.add_member(:changes, Shapes::ShapeRef.new(shape: DatasetChanges, required: true, location_name: "Changes"))
|
370
|
+
UpdateDatasetEntriesRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location: "header", location_name: "X-Amzn-Client-Token", metadata: {"idempotencyToken"=>true}))
|
371
|
+
UpdateDatasetEntriesRequest.struct_class = Types::UpdateDatasetEntriesRequest
|
372
|
+
|
373
|
+
UpdateDatasetEntriesResponse.add_member(:status, Shapes::ShapeRef.new(shape: DatasetStatus, location_name: "Status"))
|
374
|
+
UpdateDatasetEntriesResponse.struct_class = Types::UpdateDatasetEntriesResponse
|
375
|
+
|
376
|
+
ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionString, required: true, location_name: "Message"))
|
377
|
+
ValidationException.struct_class = Types::ValidationException
|
378
|
+
|
379
|
+
|
380
|
+
# @api private
|
381
|
+
API = Seahorse::Model::Api.new.tap do |api|
|
382
|
+
|
383
|
+
api.version = "2020-11-20"
|
384
|
+
|
385
|
+
api.metadata = {
|
386
|
+
"apiVersion" => "2020-11-20",
|
387
|
+
"endpointPrefix" => "lookoutvision",
|
388
|
+
"jsonVersion" => "1.1",
|
389
|
+
"protocol" => "rest-json",
|
390
|
+
"serviceFullName" => "Amazon Lookout for Vision",
|
391
|
+
"serviceId" => "LookoutVision",
|
392
|
+
"signatureVersion" => "v4",
|
393
|
+
"signingName" => "lookoutvision",
|
394
|
+
"uid" => "lookoutvision-2020-11-20",
|
395
|
+
}
|
396
|
+
|
397
|
+
api.add_operation(:create_dataset, Seahorse::Model::Operation.new.tap do |o|
|
398
|
+
o.name = "CreateDataset"
|
399
|
+
o.http_method = "POST"
|
400
|
+
o.http_request_uri = "/2020-11-20/projects/{projectName}/datasets"
|
401
|
+
o.input = Shapes::ShapeRef.new(shape: CreateDatasetRequest)
|
402
|
+
o.output = Shapes::ShapeRef.new(shape: CreateDatasetResponse)
|
403
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
404
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
405
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
406
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
407
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
408
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
409
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
410
|
+
end)
|
411
|
+
|
412
|
+
api.add_operation(:create_model, Seahorse::Model::Operation.new.tap do |o|
|
413
|
+
o.name = "CreateModel"
|
414
|
+
o.http_method = "POST"
|
415
|
+
o.http_request_uri = "/2020-11-20/projects/{projectName}/models"
|
416
|
+
o.input = Shapes::ShapeRef.new(shape: CreateModelRequest)
|
417
|
+
o.output = Shapes::ShapeRef.new(shape: CreateModelResponse)
|
418
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
419
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
420
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
421
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
422
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
423
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
424
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
425
|
+
end)
|
426
|
+
|
427
|
+
api.add_operation(:create_project, Seahorse::Model::Operation.new.tap do |o|
|
428
|
+
o.name = "CreateProject"
|
429
|
+
o.http_method = "POST"
|
430
|
+
o.http_request_uri = "/2020-11-20/projects"
|
431
|
+
o.input = Shapes::ShapeRef.new(shape: CreateProjectRequest)
|
432
|
+
o.output = Shapes::ShapeRef.new(shape: CreateProjectResponse)
|
433
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
434
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
435
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
436
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
437
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
438
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
439
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
440
|
+
end)
|
441
|
+
|
442
|
+
api.add_operation(:delete_dataset, Seahorse::Model::Operation.new.tap do |o|
|
443
|
+
o.name = "DeleteDataset"
|
444
|
+
o.http_method = "DELETE"
|
445
|
+
o.http_request_uri = "/2020-11-20/projects/{projectName}/datasets/{datasetType}"
|
446
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteDatasetRequest)
|
447
|
+
o.output = Shapes::ShapeRef.new(shape: DeleteDatasetResponse)
|
448
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
449
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
450
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
451
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
452
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
453
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
454
|
+
end)
|
455
|
+
|
456
|
+
api.add_operation(:delete_model, Seahorse::Model::Operation.new.tap do |o|
|
457
|
+
o.name = "DeleteModel"
|
458
|
+
o.http_method = "DELETE"
|
459
|
+
o.http_request_uri = "/2020-11-20/projects/{projectName}/models/{modelVersion}"
|
460
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteModelRequest)
|
461
|
+
o.output = Shapes::ShapeRef.new(shape: DeleteModelResponse)
|
462
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
463
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
464
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
465
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
466
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
467
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
468
|
+
end)
|
469
|
+
|
470
|
+
api.add_operation(:delete_project, Seahorse::Model::Operation.new.tap do |o|
|
471
|
+
o.name = "DeleteProject"
|
472
|
+
o.http_method = "DELETE"
|
473
|
+
o.http_request_uri = "/2020-11-20/projects/{projectName}"
|
474
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteProjectRequest)
|
475
|
+
o.output = Shapes::ShapeRef.new(shape: DeleteProjectResponse)
|
476
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
477
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
478
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
479
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
480
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
481
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
482
|
+
end)
|
483
|
+
|
484
|
+
api.add_operation(:describe_dataset, Seahorse::Model::Operation.new.tap do |o|
|
485
|
+
o.name = "DescribeDataset"
|
486
|
+
o.http_method = "GET"
|
487
|
+
o.http_request_uri = "/2020-11-20/projects/{projectName}/datasets/{datasetType}"
|
488
|
+
o.input = Shapes::ShapeRef.new(shape: DescribeDatasetRequest)
|
489
|
+
o.output = Shapes::ShapeRef.new(shape: DescribeDatasetResponse)
|
490
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
491
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
492
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
493
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
494
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
495
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
496
|
+
end)
|
497
|
+
|
498
|
+
api.add_operation(:describe_model, Seahorse::Model::Operation.new.tap do |o|
|
499
|
+
o.name = "DescribeModel"
|
500
|
+
o.http_method = "GET"
|
501
|
+
o.http_request_uri = "/2020-11-20/projects/{projectName}/models/{modelVersion}"
|
502
|
+
o.input = Shapes::ShapeRef.new(shape: DescribeModelRequest)
|
503
|
+
o.output = Shapes::ShapeRef.new(shape: DescribeModelResponse)
|
504
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
505
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
506
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
507
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
508
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
509
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
510
|
+
end)
|
511
|
+
|
512
|
+
api.add_operation(:describe_project, Seahorse::Model::Operation.new.tap do |o|
|
513
|
+
o.name = "DescribeProject"
|
514
|
+
o.http_method = "GET"
|
515
|
+
o.http_request_uri = "/2020-11-20/projects/{projectName}"
|
516
|
+
o.input = Shapes::ShapeRef.new(shape: DescribeProjectRequest)
|
517
|
+
o.output = Shapes::ShapeRef.new(shape: DescribeProjectResponse)
|
518
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
519
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
520
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
521
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
522
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
523
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
524
|
+
end)
|
525
|
+
|
526
|
+
api.add_operation(:detect_anomalies, Seahorse::Model::Operation.new.tap do |o|
|
527
|
+
o.name = "DetectAnomalies"
|
528
|
+
o.http_method = "POST"
|
529
|
+
o.http_request_uri = "/2020-11-20/projects/{projectName}/models/{modelVersion}/detect"
|
530
|
+
o.input = Shapes::ShapeRef.new(shape: DetectAnomaliesRequest)
|
531
|
+
o.output = Shapes::ShapeRef.new(shape: DetectAnomaliesResponse)
|
532
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
533
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
534
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
535
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
536
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
537
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
538
|
+
end)
|
539
|
+
|
540
|
+
api.add_operation(:list_dataset_entries, Seahorse::Model::Operation.new.tap do |o|
|
541
|
+
o.name = "ListDatasetEntries"
|
542
|
+
o.http_method = "GET"
|
543
|
+
o.http_request_uri = "/2020-11-20/projects/{projectName}/datasets/{datasetType}/entries"
|
544
|
+
o.input = Shapes::ShapeRef.new(shape: ListDatasetEntriesRequest)
|
545
|
+
o.output = Shapes::ShapeRef.new(shape: ListDatasetEntriesResponse)
|
546
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
547
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
548
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
549
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
550
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
551
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
552
|
+
o[:pager] = Aws::Pager.new(
|
553
|
+
limit_key: "max_results",
|
554
|
+
tokens: {
|
555
|
+
"next_token" => "next_token"
|
556
|
+
}
|
557
|
+
)
|
558
|
+
end)
|
559
|
+
|
560
|
+
api.add_operation(:list_models, Seahorse::Model::Operation.new.tap do |o|
|
561
|
+
o.name = "ListModels"
|
562
|
+
o.http_method = "GET"
|
563
|
+
o.http_request_uri = "/2020-11-20/projects/{projectName}/models"
|
564
|
+
o.input = Shapes::ShapeRef.new(shape: ListModelsRequest)
|
565
|
+
o.output = Shapes::ShapeRef.new(shape: ListModelsResponse)
|
566
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
567
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
568
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
569
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
570
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
571
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
572
|
+
o[:pager] = Aws::Pager.new(
|
573
|
+
limit_key: "max_results",
|
574
|
+
tokens: {
|
575
|
+
"next_token" => "next_token"
|
576
|
+
}
|
577
|
+
)
|
578
|
+
end)
|
579
|
+
|
580
|
+
api.add_operation(:list_projects, Seahorse::Model::Operation.new.tap do |o|
|
581
|
+
o.name = "ListProjects"
|
582
|
+
o.http_method = "GET"
|
583
|
+
o.http_request_uri = "/2020-11-20/projects"
|
584
|
+
o.input = Shapes::ShapeRef.new(shape: ListProjectsRequest)
|
585
|
+
o.output = Shapes::ShapeRef.new(shape: ListProjectsResponse)
|
586
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
587
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
588
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
589
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
590
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
591
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
592
|
+
o[:pager] = Aws::Pager.new(
|
593
|
+
limit_key: "max_results",
|
594
|
+
tokens: {
|
595
|
+
"next_token" => "next_token"
|
596
|
+
}
|
597
|
+
)
|
598
|
+
end)
|
599
|
+
|
600
|
+
api.add_operation(:start_model, Seahorse::Model::Operation.new.tap do |o|
|
601
|
+
o.name = "StartModel"
|
602
|
+
o.http_method = "POST"
|
603
|
+
o.http_request_uri = "/2020-11-20/projects/{projectName}/models/{modelVersion}/start"
|
604
|
+
o.input = Shapes::ShapeRef.new(shape: StartModelRequest)
|
605
|
+
o.output = Shapes::ShapeRef.new(shape: StartModelResponse)
|
606
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
607
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
608
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
609
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
610
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
611
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
612
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
613
|
+
end)
|
614
|
+
|
615
|
+
api.add_operation(:stop_model, Seahorse::Model::Operation.new.tap do |o|
|
616
|
+
o.name = "StopModel"
|
617
|
+
o.http_method = "POST"
|
618
|
+
o.http_request_uri = "/2020-11-20/projects/{projectName}/models/{modelVersion}/stop"
|
619
|
+
o.input = Shapes::ShapeRef.new(shape: StopModelRequest)
|
620
|
+
o.output = Shapes::ShapeRef.new(shape: StopModelResponse)
|
621
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
622
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
623
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
624
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
625
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
626
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
627
|
+
end)
|
628
|
+
|
629
|
+
api.add_operation(:update_dataset_entries, Seahorse::Model::Operation.new.tap do |o|
|
630
|
+
o.name = "UpdateDatasetEntries"
|
631
|
+
o.http_method = "PATCH"
|
632
|
+
o.http_request_uri = "/2020-11-20/projects/{projectName}/datasets/{datasetType}/entries"
|
633
|
+
o.input = Shapes::ShapeRef.new(shape: UpdateDatasetEntriesRequest)
|
634
|
+
o.output = Shapes::ShapeRef.new(shape: UpdateDatasetEntriesResponse)
|
635
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
636
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
637
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
638
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
639
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
640
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
641
|
+
end)
|
642
|
+
end
|
643
|
+
|
644
|
+
end
|
645
|
+
end
|