azure_cognitiveservices_customvisionprediction 0.17.1 → 0.17.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/2.0/generated/azure_cognitiveservices_customvisionprediction/customvisionprediction_client.rb +1 -1
- data/lib/3.0/generated/azure_cognitiveservices_customvisionprediction.rb +33 -0
- data/lib/3.0/generated/azure_cognitiveservices_customvisionprediction/customvisionprediction_client.rb +1057 -0
- data/lib/3.0/generated/azure_cognitiveservices_customvisionprediction/models/bounding_box.rb +79 -0
- data/lib/3.0/generated/azure_cognitiveservices_customvisionprediction/models/custom_vision_error.rb +127 -0
- data/lib/3.0/generated/azure_cognitiveservices_customvisionprediction/models/custom_vision_error_codes.rb +126 -0
- data/lib/3.0/generated/azure_cognitiveservices_customvisionprediction/models/image_prediction.rb +104 -0
- data/lib/3.0/generated/azure_cognitiveservices_customvisionprediction/models/image_url.rb +46 -0
- data/lib/3.0/generated/azure_cognitiveservices_customvisionprediction/models/prediction.rb +84 -0
- data/lib/3.0/generated/azure_cognitiveservices_customvisionprediction/module_definition.rb +9 -0
- data/lib/azure_cognitiveservices_customvisionprediction.rb +1 -0
- data/lib/profiles/latest/modules/customvisionprediction_profile_module.rb +19 -11
- data/lib/version.rb +1 -1
- metadata +11 -2
@@ -0,0 +1,84 @@
|
|
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
|
+
# Prediction result.
|
10
|
+
#
|
11
|
+
class Prediction
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Float] Probability of the tag.
|
16
|
+
attr_accessor :probability
|
17
|
+
|
18
|
+
# @return Id of the predicted tag.
|
19
|
+
attr_accessor :tag_id
|
20
|
+
|
21
|
+
# @return [String] Name of the predicted tag.
|
22
|
+
attr_accessor :tag_name
|
23
|
+
|
24
|
+
# @return [BoundingBox] Bounding box of the prediction.
|
25
|
+
attr_accessor :bounding_box
|
26
|
+
|
27
|
+
|
28
|
+
#
|
29
|
+
# Mapper for Prediction 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: 'Prediction',
|
37
|
+
type: {
|
38
|
+
name: 'Composite',
|
39
|
+
class_name: 'Prediction',
|
40
|
+
model_properties: {
|
41
|
+
probability: {
|
42
|
+
client_side_validation: true,
|
43
|
+
required: false,
|
44
|
+
read_only: true,
|
45
|
+
serialized_name: 'probability',
|
46
|
+
type: {
|
47
|
+
name: 'Double'
|
48
|
+
}
|
49
|
+
},
|
50
|
+
tag_id: {
|
51
|
+
client_side_validation: true,
|
52
|
+
required: false,
|
53
|
+
read_only: true,
|
54
|
+
serialized_name: 'tagId',
|
55
|
+
type: {
|
56
|
+
name: 'String'
|
57
|
+
}
|
58
|
+
},
|
59
|
+
tag_name: {
|
60
|
+
client_side_validation: true,
|
61
|
+
required: false,
|
62
|
+
read_only: true,
|
63
|
+
serialized_name: 'tagName',
|
64
|
+
type: {
|
65
|
+
name: 'String'
|
66
|
+
}
|
67
|
+
},
|
68
|
+
bounding_box: {
|
69
|
+
client_side_validation: true,
|
70
|
+
required: false,
|
71
|
+
read_only: true,
|
72
|
+
serialized_name: 'boundingBox',
|
73
|
+
type: {
|
74
|
+
name: 'Composite',
|
75
|
+
class_name: 'BoundingBox'
|
76
|
+
}
|
77
|
+
}
|
78
|
+
}
|
79
|
+
}
|
80
|
+
}
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
@@ -0,0 +1,9 @@
|
|
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 end
|
7
|
+
module Azure::CognitiveServices end
|
8
|
+
module Azure::CognitiveServices::Customvisionprediction end
|
9
|
+
module Azure::CognitiveServices::Customvisionprediction::V3_0 end
|
@@ -3,4 +3,5 @@
|
|
3
3
|
# Licensed under the MIT License. See License.txt in the project root for license information.
|
4
4
|
|
5
5
|
require '2.0/generated/azure_cognitiveservices_customvisionprediction'
|
6
|
+
require '3.0/generated/azure_cognitiveservices_customvisionprediction'
|
6
7
|
require 'profiles/latest/customvisionprediction_latest_profile_client'
|
@@ -7,10 +7,12 @@ require 'azure_cognitiveservices_customvisionprediction'
|
|
7
7
|
module Azure::Customvisionprediction::Profiles::Latest
|
8
8
|
|
9
9
|
module Models
|
10
|
-
Prediction = Azure::CognitiveServices::Customvisionprediction::
|
11
|
-
|
12
|
-
|
13
|
-
|
10
|
+
Prediction = Azure::CognitiveServices::Customvisionprediction::V3_0::Models::Prediction
|
11
|
+
ImagePrediction = Azure::CognitiveServices::Customvisionprediction::V3_0::Models::ImagePrediction
|
12
|
+
BoundingBox = Azure::CognitiveServices::Customvisionprediction::V3_0::Models::BoundingBox
|
13
|
+
CustomVisionError = Azure::CognitiveServices::Customvisionprediction::V3_0::Models::CustomVisionError
|
14
|
+
ImageUrl = Azure::CognitiveServices::Customvisionprediction::V3_0::Models::ImageUrl
|
15
|
+
CustomVisionErrorCodes = Azure::CognitiveServices::Customvisionprediction::V3_0::Models::CustomVisionErrorCodes
|
14
16
|
end
|
15
17
|
|
16
18
|
#
|
@@ -32,7 +34,7 @@ module Azure::Customvisionprediction::Profiles::Latest
|
|
32
34
|
@base_url = options[:base_url].nil? ? nil:options[:base_url]
|
33
35
|
@options = options[:options].nil? ? nil:options[:options]
|
34
36
|
|
35
|
-
@client_0 = Azure::CognitiveServices::Customvisionprediction::
|
37
|
+
@client_0 = Azure::CognitiveServices::Customvisionprediction::V3_0::CustomvisionpredictionClient.new(configurable.credentials, options)
|
36
38
|
if(@client_0.respond_to?(:subscription_id))
|
37
39
|
@client_0.subscription_id = configurable.subscription_id
|
38
40
|
end
|
@@ -58,16 +60,22 @@ module Azure::Customvisionprediction::Profiles::Latest
|
|
58
60
|
|
59
61
|
class ModelClasses
|
60
62
|
def prediction
|
61
|
-
Azure::CognitiveServices::Customvisionprediction::
|
62
|
-
end
|
63
|
-
def image_url
|
64
|
-
Azure::CognitiveServices::Customvisionprediction::V2_0::Models::ImageUrl
|
63
|
+
Azure::CognitiveServices::Customvisionprediction::V3_0::Models::Prediction
|
65
64
|
end
|
66
65
|
def image_prediction
|
67
|
-
Azure::CognitiveServices::Customvisionprediction::
|
66
|
+
Azure::CognitiveServices::Customvisionprediction::V3_0::Models::ImagePrediction
|
68
67
|
end
|
69
68
|
def bounding_box
|
70
|
-
Azure::CognitiveServices::Customvisionprediction::
|
69
|
+
Azure::CognitiveServices::Customvisionprediction::V3_0::Models::BoundingBox
|
70
|
+
end
|
71
|
+
def custom_vision_error
|
72
|
+
Azure::CognitiveServices::Customvisionprediction::V3_0::Models::CustomVisionError
|
73
|
+
end
|
74
|
+
def image_url
|
75
|
+
Azure::CognitiveServices::Customvisionprediction::V3_0::Models::ImageUrl
|
76
|
+
end
|
77
|
+
def custom_vision_error_codes
|
78
|
+
Azure::CognitiveServices::Customvisionprediction::V3_0::Models::CustomVisionErrorCodes
|
71
79
|
end
|
72
80
|
end
|
73
81
|
end
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: azure_cognitiveservices_customvisionprediction
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.17.
|
4
|
+
version: 0.17.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Microsoft Corporation
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-04-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -95,6 +95,15 @@ files:
|
|
95
95
|
- lib/2.0/generated/azure_cognitiveservices_customvisionprediction/models/image_url.rb
|
96
96
|
- lib/2.0/generated/azure_cognitiveservices_customvisionprediction/models/prediction.rb
|
97
97
|
- lib/2.0/generated/azure_cognitiveservices_customvisionprediction/module_definition.rb
|
98
|
+
- lib/3.0/generated/azure_cognitiveservices_customvisionprediction.rb
|
99
|
+
- lib/3.0/generated/azure_cognitiveservices_customvisionprediction/customvisionprediction_client.rb
|
100
|
+
- lib/3.0/generated/azure_cognitiveservices_customvisionprediction/models/bounding_box.rb
|
101
|
+
- lib/3.0/generated/azure_cognitiveservices_customvisionprediction/models/custom_vision_error.rb
|
102
|
+
- lib/3.0/generated/azure_cognitiveservices_customvisionprediction/models/custom_vision_error_codes.rb
|
103
|
+
- lib/3.0/generated/azure_cognitiveservices_customvisionprediction/models/image_prediction.rb
|
104
|
+
- lib/3.0/generated/azure_cognitiveservices_customvisionprediction/models/image_url.rb
|
105
|
+
- lib/3.0/generated/azure_cognitiveservices_customvisionprediction/models/prediction.rb
|
106
|
+
- lib/3.0/generated/azure_cognitiveservices_customvisionprediction/module_definition.rb
|
98
107
|
- lib/azure_cognitiveservices_customvisionprediction.rb
|
99
108
|
- lib/module_definition.rb
|
100
109
|
- lib/profiles/latest/customvisionprediction_latest_profile_client.rb
|