azure_cognitiveservices_customvisionprediction 0.17.1 → 0.17.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,79 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::CognitiveServices::Customvisionprediction::V3_0
7
+ module Models
8
+ #
9
+ # Bounding box that defines a region of an image.
10
+ #
11
+ class BoundingBox
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Float] Coordinate of the left boundary.
16
+ attr_accessor :left
17
+
18
+ # @return [Float] Coordinate of the top boundary.
19
+ attr_accessor :top
20
+
21
+ # @return [Float] Width.
22
+ attr_accessor :width
23
+
24
+ # @return [Float] Height.
25
+ attr_accessor :height
26
+
27
+
28
+ #
29
+ # Mapper for BoundingBox class as Ruby Hash.
30
+ # This will be used for serialization/deserialization.
31
+ #
32
+ def self.mapper()
33
+ {
34
+ client_side_validation: true,
35
+ required: false,
36
+ serialized_name: 'BoundingBox',
37
+ type: {
38
+ name: 'Composite',
39
+ class_name: 'BoundingBox',
40
+ model_properties: {
41
+ left: {
42
+ client_side_validation: true,
43
+ required: true,
44
+ serialized_name: 'left',
45
+ type: {
46
+ name: 'Double'
47
+ }
48
+ },
49
+ top: {
50
+ client_side_validation: true,
51
+ required: true,
52
+ serialized_name: 'top',
53
+ type: {
54
+ name: 'Double'
55
+ }
56
+ },
57
+ width: {
58
+ client_side_validation: true,
59
+ required: true,
60
+ serialized_name: 'width',
61
+ type: {
62
+ name: 'Double'
63
+ }
64
+ },
65
+ height: {
66
+ client_side_validation: true,
67
+ required: true,
68
+ serialized_name: 'height',
69
+ type: {
70
+ name: 'Double'
71
+ }
72
+ }
73
+ }
74
+ }
75
+ }
76
+ end
77
+ end
78
+ end
79
+ end
@@ -0,0 +1,127 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::CognitiveServices::Customvisionprediction::V3_0
7
+ module Models
8
+ #
9
+ # Model object.
10
+ #
11
+ #
12
+ class CustomVisionError
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [CustomVisionErrorCodes] The error code. Possible values
17
+ # include: 'NoError', 'BadRequest', 'BadRequestExceededBatchSize',
18
+ # 'BadRequestNotSupported', 'BadRequestInvalidIds',
19
+ # 'BadRequestProjectName', 'BadRequestProjectNameNotUnique',
20
+ # 'BadRequestProjectDescription', 'BadRequestProjectUnknownDomain',
21
+ # 'BadRequestProjectUnknownClassification',
22
+ # 'BadRequestProjectUnsupportedDomainTypeChange',
23
+ # 'BadRequestProjectUnsupportedExportPlatform',
24
+ # 'BadRequestIterationName', 'BadRequestIterationNameNotUnique',
25
+ # 'BadRequestIterationDescription', 'BadRequestIterationIsNotTrained',
26
+ # 'BadRequestWorkspaceCannotBeModified',
27
+ # 'BadRequestWorkspaceNotDeletable', 'BadRequestTagName',
28
+ # 'BadRequestTagNameNotUnique', 'BadRequestTagDescription',
29
+ # 'BadRequestTagType', 'BadRequestMultipleNegativeTag',
30
+ # 'BadRequestImageTags', 'BadRequestImageRegions',
31
+ # 'BadRequestNegativeAndRegularTagOnSameImage',
32
+ # 'BadRequestRequiredParamIsNull', 'BadRequestIterationIsPublished',
33
+ # 'BadRequestInvalidPublishName', 'BadRequestInvalidPublishTarget',
34
+ # 'BadRequestUnpublishFailed', 'BadRequestSubscriptionApi',
35
+ # 'BadRequestExceedProjectLimit',
36
+ # 'BadRequestExceedIterationPerProjectLimit',
37
+ # 'BadRequestExceedTagPerProjectLimit',
38
+ # 'BadRequestExceedTagPerImageLimit', 'BadRequestExceededQuota',
39
+ # 'BadRequestCannotMigrateProjectWithName', 'BadRequestNotLimitedTrial',
40
+ # 'BadRequestImageBatch', 'BadRequestImageStream', 'BadRequestImageUrl',
41
+ # 'BadRequestImageFormat', 'BadRequestImageSizeBytes',
42
+ # 'BadRequestImageExceededCount', 'BadRequestTrainingNotNeeded',
43
+ # 'BadRequestTrainingNotNeededButTrainingPipelineUpdated',
44
+ # 'BadRequestTrainingValidationFailed',
45
+ # 'BadRequestClassificationTrainingValidationFailed',
46
+ # 'BadRequestMultiClassClassificationTrainingValidationFailed',
47
+ # 'BadRequestMultiLabelClassificationTrainingValidationFailed',
48
+ # 'BadRequestDetectionTrainingValidationFailed',
49
+ # 'BadRequestTrainingAlreadyInProgress',
50
+ # 'BadRequestDetectionTrainingNotAllowNegativeTag',
51
+ # 'BadRequestInvalidEmailAddress',
52
+ # 'BadRequestDomainNotSupportedForAdvancedTraining',
53
+ # 'BadRequestExportPlatformNotSupportedForAdvancedTraining',
54
+ # 'BadRequestReservedBudgetInHoursNotEnoughForAdvancedTraining',
55
+ # 'BadRequestExportValidationFailed',
56
+ # 'BadRequestExportAlreadyInProgress', 'BadRequestPredictionIdsMissing',
57
+ # 'BadRequestPredictionIdsExceededCount',
58
+ # 'BadRequestPredictionTagsExceededCount',
59
+ # 'BadRequestPredictionResultsExceededCount',
60
+ # 'BadRequestPredictionInvalidApplicationName',
61
+ # 'BadRequestPredictionInvalidQueryParameters', 'BadRequestInvalid',
62
+ # 'UnsupportedMediaType', 'Forbidden', 'ForbiddenUser',
63
+ # 'ForbiddenUserResource', 'ForbiddenUserSignupDisabled',
64
+ # 'ForbiddenUserSignupAllowanceExceeded', 'ForbiddenUserDoesNotExist',
65
+ # 'ForbiddenUserDisabled', 'ForbiddenUserInsufficientCapability',
66
+ # 'ForbiddenDRModeEnabled', 'ForbiddenInvalid', 'NotFound',
67
+ # 'NotFoundProject', 'NotFoundProjectDefaultIteration',
68
+ # 'NotFoundIteration', 'NotFoundIterationPerformance', 'NotFoundTag',
69
+ # 'NotFoundImage', 'NotFoundDomain', 'NotFoundApimSubscription',
70
+ # 'NotFoundInvalid', 'Conflict', 'ConflictInvalid', 'ErrorUnknown',
71
+ # 'ErrorProjectInvalidWorkspace',
72
+ # 'ErrorProjectInvalidPipelineConfiguration',
73
+ # 'ErrorProjectInvalidDomain', 'ErrorProjectTrainingRequestFailed',
74
+ # 'ErrorProjectExportRequestFailed',
75
+ # 'ErrorFeaturizationServiceUnavailable',
76
+ # 'ErrorFeaturizationQueueTimeout',
77
+ # 'ErrorFeaturizationInvalidFeaturizer',
78
+ # 'ErrorFeaturizationAugmentationUnavailable',
79
+ # 'ErrorFeaturizationUnrecognizedJob',
80
+ # 'ErrorFeaturizationAugmentationError', 'ErrorExporterInvalidPlatform',
81
+ # 'ErrorExporterInvalidFeaturizer', 'ErrorExporterInvalidClassifier',
82
+ # 'ErrorPredictionServiceUnavailable', 'ErrorPredictionModelNotFound',
83
+ # 'ErrorPredictionModelNotCached', 'ErrorPrediction',
84
+ # 'ErrorPredictionStorage', 'ErrorRegionProposal', 'ErrorInvalid'
85
+ attr_accessor :code
86
+
87
+ # @return [String] A message explaining the error reported by the
88
+ # service.
89
+ attr_accessor :message
90
+
91
+
92
+ #
93
+ # Mapper for CustomVisionError class as Ruby Hash.
94
+ # This will be used for serialization/deserialization.
95
+ #
96
+ def self.mapper()
97
+ {
98
+ client_side_validation: true,
99
+ required: false,
100
+ serialized_name: 'CustomVisionError',
101
+ type: {
102
+ name: 'Composite',
103
+ class_name: 'CustomVisionError',
104
+ model_properties: {
105
+ code: {
106
+ client_side_validation: true,
107
+ required: true,
108
+ serialized_name: 'code',
109
+ type: {
110
+ name: 'String'
111
+ }
112
+ },
113
+ message: {
114
+ client_side_validation: true,
115
+ required: true,
116
+ serialized_name: 'message',
117
+ type: {
118
+ name: 'String'
119
+ }
120
+ }
121
+ }
122
+ }
123
+ }
124
+ end
125
+ end
126
+ end
127
+ end
@@ -0,0 +1,126 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::CognitiveServices::Customvisionprediction::V3_0
7
+ module Models
8
+ #
9
+ # Defines values for CustomVisionErrorCodes
10
+ #
11
+ module CustomVisionErrorCodes
12
+ NoError = "NoError"
13
+ BadRequest = "BadRequest"
14
+ BadRequestExceededBatchSize = "BadRequestExceededBatchSize"
15
+ BadRequestNotSupported = "BadRequestNotSupported"
16
+ BadRequestInvalidIds = "BadRequestInvalidIds"
17
+ BadRequestProjectName = "BadRequestProjectName"
18
+ BadRequestProjectNameNotUnique = "BadRequestProjectNameNotUnique"
19
+ BadRequestProjectDescription = "BadRequestProjectDescription"
20
+ BadRequestProjectUnknownDomain = "BadRequestProjectUnknownDomain"
21
+ BadRequestProjectUnknownClassification = "BadRequestProjectUnknownClassification"
22
+ BadRequestProjectUnsupportedDomainTypeChange = "BadRequestProjectUnsupportedDomainTypeChange"
23
+ BadRequestProjectUnsupportedExportPlatform = "BadRequestProjectUnsupportedExportPlatform"
24
+ BadRequestIterationName = "BadRequestIterationName"
25
+ BadRequestIterationNameNotUnique = "BadRequestIterationNameNotUnique"
26
+ BadRequestIterationDescription = "BadRequestIterationDescription"
27
+ BadRequestIterationIsNotTrained = "BadRequestIterationIsNotTrained"
28
+ BadRequestWorkspaceCannotBeModified = "BadRequestWorkspaceCannotBeModified"
29
+ BadRequestWorkspaceNotDeletable = "BadRequestWorkspaceNotDeletable"
30
+ BadRequestTagName = "BadRequestTagName"
31
+ BadRequestTagNameNotUnique = "BadRequestTagNameNotUnique"
32
+ BadRequestTagDescription = "BadRequestTagDescription"
33
+ BadRequestTagType = "BadRequestTagType"
34
+ BadRequestMultipleNegativeTag = "BadRequestMultipleNegativeTag"
35
+ BadRequestImageTags = "BadRequestImageTags"
36
+ BadRequestImageRegions = "BadRequestImageRegions"
37
+ BadRequestNegativeAndRegularTagOnSameImage = "BadRequestNegativeAndRegularTagOnSameImage"
38
+ BadRequestRequiredParamIsNull = "BadRequestRequiredParamIsNull"
39
+ BadRequestIterationIsPublished = "BadRequestIterationIsPublished"
40
+ BadRequestInvalidPublishName = "BadRequestInvalidPublishName"
41
+ BadRequestInvalidPublishTarget = "BadRequestInvalidPublishTarget"
42
+ BadRequestUnpublishFailed = "BadRequestUnpublishFailed"
43
+ BadRequestSubscriptionApi = "BadRequestSubscriptionApi"
44
+ BadRequestExceedProjectLimit = "BadRequestExceedProjectLimit"
45
+ BadRequestExceedIterationPerProjectLimit = "BadRequestExceedIterationPerProjectLimit"
46
+ BadRequestExceedTagPerProjectLimit = "BadRequestExceedTagPerProjectLimit"
47
+ BadRequestExceedTagPerImageLimit = "BadRequestExceedTagPerImageLimit"
48
+ BadRequestExceededQuota = "BadRequestExceededQuota"
49
+ BadRequestCannotMigrateProjectWithName = "BadRequestCannotMigrateProjectWithName"
50
+ BadRequestNotLimitedTrial = "BadRequestNotLimitedTrial"
51
+ BadRequestImageBatch = "BadRequestImageBatch"
52
+ BadRequestImageStream = "BadRequestImageStream"
53
+ BadRequestImageUrl = "BadRequestImageUrl"
54
+ BadRequestImageFormat = "BadRequestImageFormat"
55
+ BadRequestImageSizeBytes = "BadRequestImageSizeBytes"
56
+ BadRequestImageExceededCount = "BadRequestImageExceededCount"
57
+ BadRequestTrainingNotNeeded = "BadRequestTrainingNotNeeded"
58
+ BadRequestTrainingNotNeededButTrainingPipelineUpdated = "BadRequestTrainingNotNeededButTrainingPipelineUpdated"
59
+ BadRequestTrainingValidationFailed = "BadRequestTrainingValidationFailed"
60
+ BadRequestClassificationTrainingValidationFailed = "BadRequestClassificationTrainingValidationFailed"
61
+ BadRequestMultiClassClassificationTrainingValidationFailed = "BadRequestMultiClassClassificationTrainingValidationFailed"
62
+ BadRequestMultiLabelClassificationTrainingValidationFailed = "BadRequestMultiLabelClassificationTrainingValidationFailed"
63
+ BadRequestDetectionTrainingValidationFailed = "BadRequestDetectionTrainingValidationFailed"
64
+ BadRequestTrainingAlreadyInProgress = "BadRequestTrainingAlreadyInProgress"
65
+ BadRequestDetectionTrainingNotAllowNegativeTag = "BadRequestDetectionTrainingNotAllowNegativeTag"
66
+ BadRequestInvalidEmailAddress = "BadRequestInvalidEmailAddress"
67
+ BadRequestDomainNotSupportedForAdvancedTraining = "BadRequestDomainNotSupportedForAdvancedTraining"
68
+ BadRequestExportPlatformNotSupportedForAdvancedTraining = "BadRequestExportPlatformNotSupportedForAdvancedTraining"
69
+ BadRequestReservedBudgetInHoursNotEnoughForAdvancedTraining = "BadRequestReservedBudgetInHoursNotEnoughForAdvancedTraining"
70
+ BadRequestExportValidationFailed = "BadRequestExportValidationFailed"
71
+ BadRequestExportAlreadyInProgress = "BadRequestExportAlreadyInProgress"
72
+ BadRequestPredictionIdsMissing = "BadRequestPredictionIdsMissing"
73
+ BadRequestPredictionIdsExceededCount = "BadRequestPredictionIdsExceededCount"
74
+ BadRequestPredictionTagsExceededCount = "BadRequestPredictionTagsExceededCount"
75
+ BadRequestPredictionResultsExceededCount = "BadRequestPredictionResultsExceededCount"
76
+ BadRequestPredictionInvalidApplicationName = "BadRequestPredictionInvalidApplicationName"
77
+ BadRequestPredictionInvalidQueryParameters = "BadRequestPredictionInvalidQueryParameters"
78
+ BadRequestInvalid = "BadRequestInvalid"
79
+ UnsupportedMediaType = "UnsupportedMediaType"
80
+ Forbidden = "Forbidden"
81
+ ForbiddenUser = "ForbiddenUser"
82
+ ForbiddenUserResource = "ForbiddenUserResource"
83
+ ForbiddenUserSignupDisabled = "ForbiddenUserSignupDisabled"
84
+ ForbiddenUserSignupAllowanceExceeded = "ForbiddenUserSignupAllowanceExceeded"
85
+ ForbiddenUserDoesNotExist = "ForbiddenUserDoesNotExist"
86
+ ForbiddenUserDisabled = "ForbiddenUserDisabled"
87
+ ForbiddenUserInsufficientCapability = "ForbiddenUserInsufficientCapability"
88
+ ForbiddenDRModeEnabled = "ForbiddenDRModeEnabled"
89
+ ForbiddenInvalid = "ForbiddenInvalid"
90
+ NotFound = "NotFound"
91
+ NotFoundProject = "NotFoundProject"
92
+ NotFoundProjectDefaultIteration = "NotFoundProjectDefaultIteration"
93
+ NotFoundIteration = "NotFoundIteration"
94
+ NotFoundIterationPerformance = "NotFoundIterationPerformance"
95
+ NotFoundTag = "NotFoundTag"
96
+ NotFoundImage = "NotFoundImage"
97
+ NotFoundDomain = "NotFoundDomain"
98
+ NotFoundApimSubscription = "NotFoundApimSubscription"
99
+ NotFoundInvalid = "NotFoundInvalid"
100
+ Conflict = "Conflict"
101
+ ConflictInvalid = "ConflictInvalid"
102
+ ErrorUnknown = "ErrorUnknown"
103
+ ErrorProjectInvalidWorkspace = "ErrorProjectInvalidWorkspace"
104
+ ErrorProjectInvalidPipelineConfiguration = "ErrorProjectInvalidPipelineConfiguration"
105
+ ErrorProjectInvalidDomain = "ErrorProjectInvalidDomain"
106
+ ErrorProjectTrainingRequestFailed = "ErrorProjectTrainingRequestFailed"
107
+ ErrorProjectExportRequestFailed = "ErrorProjectExportRequestFailed"
108
+ ErrorFeaturizationServiceUnavailable = "ErrorFeaturizationServiceUnavailable"
109
+ ErrorFeaturizationQueueTimeout = "ErrorFeaturizationQueueTimeout"
110
+ ErrorFeaturizationInvalidFeaturizer = "ErrorFeaturizationInvalidFeaturizer"
111
+ ErrorFeaturizationAugmentationUnavailable = "ErrorFeaturizationAugmentationUnavailable"
112
+ ErrorFeaturizationUnrecognizedJob = "ErrorFeaturizationUnrecognizedJob"
113
+ ErrorFeaturizationAugmentationError = "ErrorFeaturizationAugmentationError"
114
+ ErrorExporterInvalidPlatform = "ErrorExporterInvalidPlatform"
115
+ ErrorExporterInvalidFeaturizer = "ErrorExporterInvalidFeaturizer"
116
+ ErrorExporterInvalidClassifier = "ErrorExporterInvalidClassifier"
117
+ ErrorPredictionServiceUnavailable = "ErrorPredictionServiceUnavailable"
118
+ ErrorPredictionModelNotFound = "ErrorPredictionModelNotFound"
119
+ ErrorPredictionModelNotCached = "ErrorPredictionModelNotCached"
120
+ ErrorPrediction = "ErrorPrediction"
121
+ ErrorPredictionStorage = "ErrorPredictionStorage"
122
+ ErrorRegionProposal = "ErrorRegionProposal"
123
+ ErrorInvalid = "ErrorInvalid"
124
+ end
125
+ end
126
+ end
@@ -0,0 +1,104 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::CognitiveServices::Customvisionprediction::V3_0
7
+ module Models
8
+ #
9
+ # Result of an image prediction request.
10
+ #
11
+ class ImagePrediction
12
+
13
+ include MsRestAzure
14
+
15
+ # @return Prediction Id.
16
+ attr_accessor :id
17
+
18
+ # @return Project Id.
19
+ attr_accessor :project
20
+
21
+ # @return Iteration Id.
22
+ attr_accessor :iteration
23
+
24
+ # @return [DateTime] Date this prediction was created.
25
+ attr_accessor :created
26
+
27
+ # @return [Array<Prediction>] List of predictions.
28
+ attr_accessor :predictions
29
+
30
+
31
+ #
32
+ # Mapper for ImagePrediction class as Ruby Hash.
33
+ # This will be used for serialization/deserialization.
34
+ #
35
+ def self.mapper()
36
+ {
37
+ client_side_validation: true,
38
+ required: false,
39
+ serialized_name: 'ImagePrediction',
40
+ type: {
41
+ name: 'Composite',
42
+ class_name: 'ImagePrediction',
43
+ model_properties: {
44
+ id: {
45
+ client_side_validation: true,
46
+ required: false,
47
+ read_only: true,
48
+ serialized_name: 'id',
49
+ type: {
50
+ name: 'String'
51
+ }
52
+ },
53
+ project: {
54
+ client_side_validation: true,
55
+ required: false,
56
+ read_only: true,
57
+ serialized_name: 'project',
58
+ type: {
59
+ name: 'String'
60
+ }
61
+ },
62
+ iteration: {
63
+ client_side_validation: true,
64
+ required: false,
65
+ read_only: true,
66
+ serialized_name: 'iteration',
67
+ type: {
68
+ name: 'String'
69
+ }
70
+ },
71
+ created: {
72
+ client_side_validation: true,
73
+ required: false,
74
+ read_only: true,
75
+ serialized_name: 'created',
76
+ type: {
77
+ name: 'DateTime'
78
+ }
79
+ },
80
+ predictions: {
81
+ client_side_validation: true,
82
+ required: false,
83
+ read_only: true,
84
+ serialized_name: 'predictions',
85
+ type: {
86
+ name: 'Sequence',
87
+ element: {
88
+ client_side_validation: true,
89
+ required: false,
90
+ serialized_name: 'PredictionElementType',
91
+ type: {
92
+ name: 'Composite',
93
+ class_name: 'Prediction'
94
+ }
95
+ }
96
+ }
97
+ }
98
+ }
99
+ }
100
+ }
101
+ end
102
+ end
103
+ end
104
+ end
@@ -0,0 +1,46 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::CognitiveServices::Customvisionprediction::V3_0
7
+ module Models
8
+ #
9
+ # Image url.
10
+ #
11
+ class ImageUrl
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Url of the image.
16
+ attr_accessor :url
17
+
18
+
19
+ #
20
+ # Mapper for ImageUrl class as Ruby Hash.
21
+ # This will be used for serialization/deserialization.
22
+ #
23
+ def self.mapper()
24
+ {
25
+ client_side_validation: true,
26
+ required: false,
27
+ serialized_name: 'ImageUrl',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'ImageUrl',
31
+ model_properties: {
32
+ url: {
33
+ client_side_validation: true,
34
+ required: true,
35
+ serialized_name: 'url',
36
+ type: {
37
+ name: 'String'
38
+ }
39
+ }
40
+ }
41
+ }
42
+ }
43
+ end
44
+ end
45
+ end
46
+ end