azure_cognitiveservices_customvisiontraining 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (153) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/lib/2.0/generated/azure_cognitiveservices_customvisiontraining.rb +71 -0
  4. data/lib/2.0/generated/azure_cognitiveservices_customvisiontraining/customvisiontraining_client.rb +4359 -0
  5. data/lib/2.0/generated/azure_cognitiveservices_customvisiontraining/models/bounding_box.rb +80 -0
  6. data/lib/2.0/generated/azure_cognitiveservices_customvisiontraining/models/domain.rb +97 -0
  7. data/lib/2.0/generated/azure_cognitiveservices_customvisiontraining/models/domain_type.rb +16 -0
  8. data/lib/2.0/generated/azure_cognitiveservices_customvisiontraining/models/export.rb +86 -0
  9. data/lib/2.0/generated/azure_cognitiveservices_customvisiontraining/models/export_flavor.rb +16 -0
  10. data/lib/2.0/generated/azure_cognitiveservices_customvisiontraining/models/export_platform.rb +18 -0
  11. data/lib/2.0/generated/azure_cognitiveservices_customvisiontraining/models/export_status_model.rb +17 -0
  12. data/lib/2.0/generated/azure_cognitiveservices_customvisiontraining/models/image.rb +149 -0
  13. data/lib/2.0/generated/azure_cognitiveservices_customvisiontraining/models/image_create_result.rb +76 -0
  14. data/lib/2.0/generated/azure_cognitiveservices_customvisiontraining/models/image_create_summary.rb +69 -0
  15. data/lib/2.0/generated/azure_cognitiveservices_customvisiontraining/models/image_file_create_batch.rb +75 -0
  16. data/lib/2.0/generated/azure_cognitiveservices_customvisiontraining/models/image_file_create_entry.rb +97 -0
  17. data/lib/2.0/generated/azure_cognitiveservices_customvisiontraining/models/image_id_create_batch.rb +75 -0
  18. data/lib/2.0/generated/azure_cognitiveservices_customvisiontraining/models/image_id_create_entry.rb +86 -0
  19. data/lib/2.0/generated/azure_cognitiveservices_customvisiontraining/models/image_performance.rb +170 -0
  20. data/lib/2.0/generated/azure_cognitiveservices_customvisiontraining/models/image_prediction.rb +105 -0
  21. data/lib/2.0/generated/azure_cognitiveservices_customvisiontraining/models/image_region.rb +127 -0
  22. data/lib/2.0/generated/azure_cognitiveservices_customvisiontraining/models/image_region_create_batch.rb +55 -0
  23. data/lib/2.0/generated/azure_cognitiveservices_customvisiontraining/models/image_region_create_entry.rb +102 -0
  24. data/lib/2.0/generated/azure_cognitiveservices_customvisiontraining/models/image_region_create_result.rb +139 -0
  25. data/lib/2.0/generated/azure_cognitiveservices_customvisiontraining/models/image_region_create_summary.rb +96 -0
  26. data/lib/2.0/generated/azure_cognitiveservices_customvisiontraining/models/image_region_proposal.rb +81 -0
  27. data/lib/2.0/generated/azure_cognitiveservices_customvisiontraining/models/image_tag.rb +72 -0
  28. data/lib/2.0/generated/azure_cognitiveservices_customvisiontraining/models/image_tag_create_batch.rb +56 -0
  29. data/lib/2.0/generated/azure_cognitiveservices_customvisiontraining/models/image_tag_create_entry.rb +58 -0
  30. data/lib/2.0/generated/azure_cognitiveservices_customvisiontraining/models/image_tag_create_summary.rb +96 -0
  31. data/lib/2.0/generated/azure_cognitiveservices_customvisiontraining/models/image_upload_status.rb +24 -0
  32. data/lib/2.0/generated/azure_cognitiveservices_customvisiontraining/models/image_url.rb +47 -0
  33. data/lib/2.0/generated/azure_cognitiveservices_customvisiontraining/models/image_url_create_batch.rb +75 -0
  34. data/lib/2.0/generated/azure_cognitiveservices_customvisiontraining/models/image_url_create_entry.rb +86 -0
  35. data/lib/2.0/generated/azure_cognitiveservices_customvisiontraining/models/iteration.rb +156 -0
  36. data/lib/2.0/generated/azure_cognitiveservices_customvisiontraining/models/iteration_performance.rb +117 -0
  37. data/lib/2.0/generated/azure_cognitiveservices_customvisiontraining/models/order_by.rb +17 -0
  38. data/lib/2.0/generated/azure_cognitiveservices_customvisiontraining/models/prediction.rb +85 -0
  39. data/lib/2.0/generated/azure_cognitiveservices_customvisiontraining/models/prediction_query_result.rb +70 -0
  40. data/lib/2.0/generated/azure_cognitiveservices_customvisiontraining/models/prediction_query_tag.rb +72 -0
  41. data/lib/2.0/generated/azure_cognitiveservices_customvisiontraining/models/prediction_query_token.rb +145 -0
  42. data/lib/2.0/generated/azure_cognitiveservices_customvisiontraining/models/project.rb +117 -0
  43. data/lib/2.0/generated/azure_cognitiveservices_customvisiontraining/models/project_settings.rb +46 -0
  44. data/lib/2.0/generated/azure_cognitiveservices_customvisiontraining/models/region.rb +91 -0
  45. data/lib/2.0/generated/azure_cognitiveservices_customvisiontraining/models/region_proposal.rb +61 -0
  46. data/lib/2.0/generated/azure_cognitiveservices_customvisiontraining/models/stored_image_prediction.rb +140 -0
  47. data/lib/2.0/generated/azure_cognitiveservices_customvisiontraining/models/tag.rb +81 -0
  48. data/lib/2.0/generated/azure_cognitiveservices_customvisiontraining/models/tag_performance.rb +119 -0
  49. data/lib/2.0/generated/azure_cognitiveservices_customvisiontraining/module_definition.rb +9 -0
  50. data/lib/2.1/generated/azure_cognitiveservices_customvisiontraining.rb +72 -0
  51. data/lib/2.1/generated/azure_cognitiveservices_customvisiontraining/customvisiontraining_client.rb +4368 -0
  52. data/lib/2.1/generated/azure_cognitiveservices_customvisiontraining/models/bounding_box.rb +80 -0
  53. data/lib/2.1/generated/azure_cognitiveservices_customvisiontraining/models/classifier.rb +16 -0
  54. data/lib/2.1/generated/azure_cognitiveservices_customvisiontraining/models/domain.rb +97 -0
  55. data/lib/2.1/generated/azure_cognitiveservices_customvisiontraining/models/domain_type.rb +16 -0
  56. data/lib/2.1/generated/azure_cognitiveservices_customvisiontraining/models/export.rb +98 -0
  57. data/lib/2.1/generated/azure_cognitiveservices_customvisiontraining/models/export_flavor.rb +16 -0
  58. data/lib/2.1/generated/azure_cognitiveservices_customvisiontraining/models/export_platform.rb +18 -0
  59. data/lib/2.1/generated/azure_cognitiveservices_customvisiontraining/models/export_status_model.rb +17 -0
  60. data/lib/2.1/generated/azure_cognitiveservices_customvisiontraining/models/image.rb +149 -0
  61. data/lib/2.1/generated/azure_cognitiveservices_customvisiontraining/models/image_create_result.rb +76 -0
  62. data/lib/2.1/generated/azure_cognitiveservices_customvisiontraining/models/image_create_summary.rb +69 -0
  63. data/lib/2.1/generated/azure_cognitiveservices_customvisiontraining/models/image_file_create_batch.rb +75 -0
  64. data/lib/2.1/generated/azure_cognitiveservices_customvisiontraining/models/image_file_create_entry.rb +97 -0
  65. data/lib/2.1/generated/azure_cognitiveservices_customvisiontraining/models/image_id_create_batch.rb +75 -0
  66. data/lib/2.1/generated/azure_cognitiveservices_customvisiontraining/models/image_id_create_entry.rb +86 -0
  67. data/lib/2.1/generated/azure_cognitiveservices_customvisiontraining/models/image_performance.rb +170 -0
  68. data/lib/2.1/generated/azure_cognitiveservices_customvisiontraining/models/image_prediction.rb +105 -0
  69. data/lib/2.1/generated/azure_cognitiveservices_customvisiontraining/models/image_region.rb +127 -0
  70. data/lib/2.1/generated/azure_cognitiveservices_customvisiontraining/models/image_region_create_batch.rb +55 -0
  71. data/lib/2.1/generated/azure_cognitiveservices_customvisiontraining/models/image_region_create_entry.rb +102 -0
  72. data/lib/2.1/generated/azure_cognitiveservices_customvisiontraining/models/image_region_create_result.rb +139 -0
  73. data/lib/2.1/generated/azure_cognitiveservices_customvisiontraining/models/image_region_create_summary.rb +96 -0
  74. data/lib/2.1/generated/azure_cognitiveservices_customvisiontraining/models/image_region_proposal.rb +81 -0
  75. data/lib/2.1/generated/azure_cognitiveservices_customvisiontraining/models/image_tag.rb +72 -0
  76. data/lib/2.1/generated/azure_cognitiveservices_customvisiontraining/models/image_tag_create_batch.rb +56 -0
  77. data/lib/2.1/generated/azure_cognitiveservices_customvisiontraining/models/image_tag_create_entry.rb +58 -0
  78. data/lib/2.1/generated/azure_cognitiveservices_customvisiontraining/models/image_tag_create_summary.rb +96 -0
  79. data/lib/2.1/generated/azure_cognitiveservices_customvisiontraining/models/image_upload_status.rb +24 -0
  80. data/lib/2.1/generated/azure_cognitiveservices_customvisiontraining/models/image_url.rb +47 -0
  81. data/lib/2.1/generated/azure_cognitiveservices_customvisiontraining/models/image_url_create_batch.rb +75 -0
  82. data/lib/2.1/generated/azure_cognitiveservices_customvisiontraining/models/image_url_create_entry.rb +86 -0
  83. data/lib/2.1/generated/azure_cognitiveservices_customvisiontraining/models/iteration.rb +169 -0
  84. data/lib/2.1/generated/azure_cognitiveservices_customvisiontraining/models/iteration_performance.rb +117 -0
  85. data/lib/2.1/generated/azure_cognitiveservices_customvisiontraining/models/order_by.rb +17 -0
  86. data/lib/2.1/generated/azure_cognitiveservices_customvisiontraining/models/prediction.rb +85 -0
  87. data/lib/2.1/generated/azure_cognitiveservices_customvisiontraining/models/prediction_query_result.rb +70 -0
  88. data/lib/2.1/generated/azure_cognitiveservices_customvisiontraining/models/prediction_query_tag.rb +72 -0
  89. data/lib/2.1/generated/azure_cognitiveservices_customvisiontraining/models/prediction_query_token.rb +145 -0
  90. data/lib/2.1/generated/azure_cognitiveservices_customvisiontraining/models/project.rb +117 -0
  91. data/lib/2.1/generated/azure_cognitiveservices_customvisiontraining/models/project_settings.rb +58 -0
  92. data/lib/2.1/generated/azure_cognitiveservices_customvisiontraining/models/region.rb +91 -0
  93. data/lib/2.1/generated/azure_cognitiveservices_customvisiontraining/models/region_proposal.rb +61 -0
  94. data/lib/2.1/generated/azure_cognitiveservices_customvisiontraining/models/stored_image_prediction.rb +140 -0
  95. data/lib/2.1/generated/azure_cognitiveservices_customvisiontraining/models/tag.rb +81 -0
  96. data/lib/2.1/generated/azure_cognitiveservices_customvisiontraining/models/tag_performance.rb +119 -0
  97. data/lib/2.1/generated/azure_cognitiveservices_customvisiontraining/module_definition.rb +9 -0
  98. data/lib/2.2/generated/azure_cognitiveservices_customvisiontraining.rb +73 -0
  99. data/lib/2.2/generated/azure_cognitiveservices_customvisiontraining/customvisiontraining_client.rb +4458 -0
  100. data/lib/2.2/generated/azure_cognitiveservices_customvisiontraining/models/bounding_box.rb +80 -0
  101. data/lib/2.2/generated/azure_cognitiveservices_customvisiontraining/models/classifier.rb +16 -0
  102. data/lib/2.2/generated/azure_cognitiveservices_customvisiontraining/models/domain.rb +97 -0
  103. data/lib/2.2/generated/azure_cognitiveservices_customvisiontraining/models/domain_type.rb +16 -0
  104. data/lib/2.2/generated/azure_cognitiveservices_customvisiontraining/models/export.rb +100 -0
  105. data/lib/2.2/generated/azure_cognitiveservices_customvisiontraining/models/export_flavor_model.rb +18 -0
  106. data/lib/2.2/generated/azure_cognitiveservices_customvisiontraining/models/export_platform_model.rb +18 -0
  107. data/lib/2.2/generated/azure_cognitiveservices_customvisiontraining/models/export_status_model.rb +17 -0
  108. data/lib/2.2/generated/azure_cognitiveservices_customvisiontraining/models/image.rb +161 -0
  109. data/lib/2.2/generated/azure_cognitiveservices_customvisiontraining/models/image_create_result.rb +77 -0
  110. data/lib/2.2/generated/azure_cognitiveservices_customvisiontraining/models/image_create_status.rb +25 -0
  111. data/lib/2.2/generated/azure_cognitiveservices_customvisiontraining/models/image_create_summary.rb +70 -0
  112. data/lib/2.2/generated/azure_cognitiveservices_customvisiontraining/models/image_file_create_batch.rb +75 -0
  113. data/lib/2.2/generated/azure_cognitiveservices_customvisiontraining/models/image_file_create_entry.rb +97 -0
  114. data/lib/2.2/generated/azure_cognitiveservices_customvisiontraining/models/image_id_create_batch.rb +75 -0
  115. data/lib/2.2/generated/azure_cognitiveservices_customvisiontraining/models/image_id_create_entry.rb +86 -0
  116. data/lib/2.2/generated/azure_cognitiveservices_customvisiontraining/models/image_performance.rb +170 -0
  117. data/lib/2.2/generated/azure_cognitiveservices_customvisiontraining/models/image_prediction.rb +105 -0
  118. data/lib/2.2/generated/azure_cognitiveservices_customvisiontraining/models/image_region.rb +127 -0
  119. data/lib/2.2/generated/azure_cognitiveservices_customvisiontraining/models/image_region_create_batch.rb +55 -0
  120. data/lib/2.2/generated/azure_cognitiveservices_customvisiontraining/models/image_region_create_entry.rb +101 -0
  121. data/lib/2.2/generated/azure_cognitiveservices_customvisiontraining/models/image_region_create_result.rb +139 -0
  122. data/lib/2.2/generated/azure_cognitiveservices_customvisiontraining/models/image_region_create_summary.rb +96 -0
  123. data/lib/2.2/generated/azure_cognitiveservices_customvisiontraining/models/image_region_proposal.rb +81 -0
  124. data/lib/2.2/generated/azure_cognitiveservices_customvisiontraining/models/image_tag.rb +72 -0
  125. data/lib/2.2/generated/azure_cognitiveservices_customvisiontraining/models/image_tag_create_batch.rb +56 -0
  126. data/lib/2.2/generated/azure_cognitiveservices_customvisiontraining/models/image_tag_create_entry.rb +57 -0
  127. data/lib/2.2/generated/azure_cognitiveservices_customvisiontraining/models/image_tag_create_summary.rb +96 -0
  128. data/lib/2.2/generated/azure_cognitiveservices_customvisiontraining/models/image_url.rb +47 -0
  129. data/lib/2.2/generated/azure_cognitiveservices_customvisiontraining/models/image_url_create_batch.rb +75 -0
  130. data/lib/2.2/generated/azure_cognitiveservices_customvisiontraining/models/image_url_create_entry.rb +86 -0
  131. data/lib/2.2/generated/azure_cognitiveservices_customvisiontraining/models/iteration.rb +169 -0
  132. data/lib/2.2/generated/azure_cognitiveservices_customvisiontraining/models/iteration_performance.rb +117 -0
  133. data/lib/2.2/generated/azure_cognitiveservices_customvisiontraining/models/order_by.rb +17 -0
  134. data/lib/2.2/generated/azure_cognitiveservices_customvisiontraining/models/prediction.rb +85 -0
  135. data/lib/2.2/generated/azure_cognitiveservices_customvisiontraining/models/prediction_query_result.rb +70 -0
  136. data/lib/2.2/generated/azure_cognitiveservices_customvisiontraining/models/prediction_query_tag.rb +72 -0
  137. data/lib/2.2/generated/azure_cognitiveservices_customvisiontraining/models/prediction_query_token.rb +145 -0
  138. data/lib/2.2/generated/azure_cognitiveservices_customvisiontraining/models/project.rb +117 -0
  139. data/lib/2.2/generated/azure_cognitiveservices_customvisiontraining/models/project_settings.rb +58 -0
  140. data/lib/2.2/generated/azure_cognitiveservices_customvisiontraining/models/region.rb +91 -0
  141. data/lib/2.2/generated/azure_cognitiveservices_customvisiontraining/models/region_proposal.rb +61 -0
  142. data/lib/2.2/generated/azure_cognitiveservices_customvisiontraining/models/stored_image_prediction.rb +153 -0
  143. data/lib/2.2/generated/azure_cognitiveservices_customvisiontraining/models/tag.rb +93 -0
  144. data/lib/2.2/generated/azure_cognitiveservices_customvisiontraining/models/tag_performance.rb +119 -0
  145. data/lib/2.2/generated/azure_cognitiveservices_customvisiontraining/models/tag_type.rb +16 -0
  146. data/lib/2.2/generated/azure_cognitiveservices_customvisiontraining/module_definition.rb +9 -0
  147. data/lib/azure_cognitiveservices_customvisiontraining.rb +8 -0
  148. data/lib/module_definition.rb +7 -0
  149. data/lib/profiles/latest/customvisiontraining_latest_profile_client.rb +38 -0
  150. data/lib/profiles/latest/customvisiontraining_module_definition.rb +8 -0
  151. data/lib/profiles/latest/modules/customvisiontraining_profile_module.rb +241 -0
  152. data/lib/version.rb +7 -0
  153. metadata +271 -0
@@ -0,0 +1,93 @@
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::Customvisiontraining::V2_2
7
+ module Models
8
+ #
9
+ # Represents a Tag.
10
+ #
11
+ class Tag
12
+
13
+ include MsRestAzure
14
+
15
+ # @return Gets the Tag ID.
16
+ attr_accessor :id
17
+
18
+ # @return [String] Gets or sets the name of the tag.
19
+ attr_accessor :name
20
+
21
+ # @return [String] Gets or sets the description of the tag.
22
+ attr_accessor :description
23
+
24
+ # @return [TagType] Gets or sets the type of the tag. Possible values
25
+ # include: 'Regular', 'Negative'
26
+ attr_accessor :type
27
+
28
+ # @return [Integer] Gets the number of images with this tag.
29
+ attr_accessor :image_count
30
+
31
+
32
+ #
33
+ # Mapper for Tag class as Ruby Hash.
34
+ # This will be used for serialization/deserialization.
35
+ #
36
+ def self.mapper()
37
+ {
38
+ client_side_validation: true,
39
+ required: false,
40
+ serialized_name: 'Tag',
41
+ type: {
42
+ name: 'Composite',
43
+ class_name: 'Tag',
44
+ model_properties: {
45
+ id: {
46
+ client_side_validation: true,
47
+ required: false,
48
+ read_only: true,
49
+ serialized_name: 'id',
50
+ type: {
51
+ name: 'String'
52
+ }
53
+ },
54
+ name: {
55
+ client_side_validation: true,
56
+ required: false,
57
+ serialized_name: 'name',
58
+ type: {
59
+ name: 'String'
60
+ }
61
+ },
62
+ description: {
63
+ client_side_validation: true,
64
+ required: false,
65
+ serialized_name: 'description',
66
+ type: {
67
+ name: 'String'
68
+ }
69
+ },
70
+ type: {
71
+ client_side_validation: true,
72
+ required: false,
73
+ serialized_name: 'type',
74
+ type: {
75
+ name: 'String'
76
+ }
77
+ },
78
+ image_count: {
79
+ client_side_validation: true,
80
+ required: false,
81
+ read_only: true,
82
+ serialized_name: 'imageCount',
83
+ type: {
84
+ name: 'Number'
85
+ }
86
+ }
87
+ }
88
+ }
89
+ }
90
+ end
91
+ end
92
+ end
93
+ end
@@ -0,0 +1,119 @@
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::Customvisiontraining::V2_2
7
+ module Models
8
+ #
9
+ # Represents performance data for a particular tag in a trained iteration.
10
+ #
11
+ class TagPerformance
12
+
13
+ include MsRestAzure
14
+
15
+ # @return
16
+ attr_accessor :id
17
+
18
+ # @return [String]
19
+ attr_accessor :name
20
+
21
+ # @return [Float] Gets the precision.
22
+ attr_accessor :precision
23
+
24
+ # @return [Float] Gets the standard deviation for the precision.
25
+ attr_accessor :precision_std_deviation
26
+
27
+ # @return [Float] Gets the recall.
28
+ attr_accessor :recall
29
+
30
+ # @return [Float] Gets the standard deviation for the recall.
31
+ attr_accessor :recall_std_deviation
32
+
33
+ # @return [Float] Gets the average precision when applicable.
34
+ attr_accessor :average_precision
35
+
36
+
37
+ #
38
+ # Mapper for TagPerformance class as Ruby Hash.
39
+ # This will be used for serialization/deserialization.
40
+ #
41
+ def self.mapper()
42
+ {
43
+ client_side_validation: true,
44
+ required: false,
45
+ serialized_name: 'TagPerformance',
46
+ type: {
47
+ name: 'Composite',
48
+ class_name: 'TagPerformance',
49
+ model_properties: {
50
+ id: {
51
+ client_side_validation: true,
52
+ required: false,
53
+ read_only: true,
54
+ serialized_name: 'id',
55
+ type: {
56
+ name: 'String'
57
+ }
58
+ },
59
+ name: {
60
+ client_side_validation: true,
61
+ required: false,
62
+ read_only: true,
63
+ serialized_name: 'name',
64
+ type: {
65
+ name: 'String'
66
+ }
67
+ },
68
+ precision: {
69
+ client_side_validation: true,
70
+ required: false,
71
+ read_only: true,
72
+ serialized_name: 'precision',
73
+ type: {
74
+ name: 'Double'
75
+ }
76
+ },
77
+ precision_std_deviation: {
78
+ client_side_validation: true,
79
+ required: false,
80
+ read_only: true,
81
+ serialized_name: 'precisionStdDeviation',
82
+ type: {
83
+ name: 'Double'
84
+ }
85
+ },
86
+ recall: {
87
+ client_side_validation: true,
88
+ required: false,
89
+ read_only: true,
90
+ serialized_name: 'recall',
91
+ type: {
92
+ name: 'Double'
93
+ }
94
+ },
95
+ recall_std_deviation: {
96
+ client_side_validation: true,
97
+ required: false,
98
+ read_only: true,
99
+ serialized_name: 'recallStdDeviation',
100
+ type: {
101
+ name: 'Double'
102
+ }
103
+ },
104
+ average_precision: {
105
+ client_side_validation: true,
106
+ required: false,
107
+ read_only: true,
108
+ serialized_name: 'averagePrecision',
109
+ type: {
110
+ name: 'Double'
111
+ }
112
+ }
113
+ }
114
+ }
115
+ }
116
+ end
117
+ end
118
+ end
119
+ end
@@ -0,0 +1,16 @@
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::Customvisiontraining::V2_2
7
+ module Models
8
+ #
9
+ # Defines values for TagType
10
+ #
11
+ module TagType
12
+ Regular = "Regular"
13
+ Negative = "Negative"
14
+ end
15
+ end
16
+ 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::Customvisiontraining end
9
+ module Azure::CognitiveServices::Customvisiontraining::V2_2 end
@@ -0,0 +1,8 @@
1
+ # encoding: utf-8
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+
5
+ require '2.0/generated/azure_cognitiveservices_customvisiontraining'
6
+ require '2.1/generated/azure_cognitiveservices_customvisiontraining'
7
+ require '2.2/generated/azure_cognitiveservices_customvisiontraining'
8
+ require 'profiles/latest/customvisiontraining_latest_profile_client'
@@ -0,0 +1,7 @@
1
+ # encoding: utf-8
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+
5
+ module Azure end
6
+ module Azure::CognitiveServices end
7
+ module Azure::CognitiveServices::Customvisiontraining end
@@ -0,0 +1,38 @@
1
+ # encoding: utf-8
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+
5
+ require 'profiles/latest/customvisiontraining_module_definition'
6
+ require 'profiles/latest/modules/customvisiontraining_profile_module'
7
+
8
+ module Azure::Customvisiontraining::Profiles::Latest
9
+ #
10
+ # Client class for the Latest profile SDK.
11
+ #
12
+ class Client < CustomvisiontrainingDataClass
13
+ include MsRestAzure::Common::Configurable
14
+
15
+ #
16
+ # Initializes a new instance of the Client class.
17
+ # @param options [Hash] hash of client options.
18
+ # options = {
19
+ # tenant_id: 'YOUR TENANT ID',
20
+ # client_id: 'YOUR CLIENT ID',
21
+ # client_secret: 'YOUR CLIENT SECRET',
22
+ # subscription_id: 'YOUR SUBSCRIPTION ID',
23
+ # credentials: credentials,
24
+ # active_directory_settings: active_directory_settings,
25
+ # base_url: 'YOUR BASE URL',
26
+ # options: options
27
+ # }
28
+ # 'credentials' are optional and if not passed in the hash, will be obtained
29
+ # from MsRest::TokenCredentials using MsRestAzure::ApplicationTokenProvider.
30
+ #
31
+ # Also, base_url, active_directory_settings & options are optional.
32
+ #
33
+ def initialize(options = {})
34
+ super(options)
35
+ end
36
+
37
+ end
38
+ end
@@ -0,0 +1,8 @@
1
+ # encoding: utf-8
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+
5
+ module Azure end
6
+ module Azure::Customvisiontraining end
7
+ module Azure::Customvisiontraining::Profiles end
8
+ module Azure::Customvisiontraining::Profiles::Latest end
@@ -0,0 +1,241 @@
1
+ # encoding: utf-8
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+
5
+ require 'azure_cognitiveservices_customvisiontraining'
6
+
7
+ module Azure::Customvisiontraining::Profiles::Latest
8
+
9
+ module Models
10
+ ImageIdCreateBatch = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageIdCreateBatch
11
+ Domain = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::Domain
12
+ BoundingBox = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::BoundingBox
13
+ ImageTagCreateBatch = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageTagCreateBatch
14
+ RegionProposal = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::RegionProposal
15
+ ImageRegionCreateEntry = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageRegionCreateEntry
16
+ ImageRegionProposal = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageRegionProposal
17
+ ImageRegionCreateResult = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageRegionCreateResult
18
+ ImageUrl = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageUrl
19
+ ImageTag = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageTag
20
+ Prediction = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::Prediction
21
+ Image = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::Image
22
+ ImagePrediction = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImagePrediction
23
+ ImageCreateSummary = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageCreateSummary
24
+ PredictionQueryTag = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::PredictionQueryTag
25
+ ImageFileCreateEntry = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageFileCreateEntry
26
+ PredictionQueryToken = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::PredictionQueryToken
27
+ ImageUrlCreateEntry = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageUrlCreateEntry
28
+ StoredImagePrediction = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::StoredImagePrediction
29
+ ImageIdCreateEntry = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageIdCreateEntry
30
+ PredictionQueryResult = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::PredictionQueryResult
31
+ ImageTagCreateSummary = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageTagCreateSummary
32
+ TagPerformance = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::TagPerformance
33
+ ImageRegionCreateSummary = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageRegionCreateSummary
34
+ IterationPerformance = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::IterationPerformance
35
+ ImageCreateResult = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageCreateResult
36
+ ImagePerformance = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImagePerformance
37
+ ImageFileCreateBatch = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageFileCreateBatch
38
+ ProjectSettings = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ProjectSettings
39
+ ImageTagCreateEntry = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageTagCreateEntry
40
+ Project = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::Project
41
+ ImageRegion = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageRegion
42
+ Iteration = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::Iteration
43
+ ImageUrlCreateBatch = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageUrlCreateBatch
44
+ Export = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::Export
45
+ Region = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::Region
46
+ Tag = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::Tag
47
+ ImageRegionCreateBatch = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageRegionCreateBatch
48
+ DomainType = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::DomainType
49
+ ImageCreateStatus = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageCreateStatus
50
+ OrderBy = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::OrderBy
51
+ Classifier = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::Classifier
52
+ ExportPlatformModel = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ExportPlatformModel
53
+ ExportStatusModel = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ExportStatusModel
54
+ ExportFlavorModel = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ExportFlavorModel
55
+ TagType = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::TagType
56
+ end
57
+
58
+ #
59
+ # CustomvisiontrainingDataClass
60
+ #
61
+ class CustomvisiontrainingDataClass
62
+ attr_reader :configurable, :base_url, :options, :model_classes
63
+
64
+ def initialize(options = {})
65
+ if options.is_a?(Hash) && options.length == 0
66
+ @options = setup_default_options
67
+ else
68
+ @options = options
69
+ end
70
+
71
+ reset!(options)
72
+
73
+ @configurable = self
74
+ @base_url = options[:base_url].nil? ? nil:options[:base_url]
75
+ @options = options[:options].nil? ? nil:options[:options]
76
+
77
+ @client_0 = Azure::CognitiveServices::Customvisiontraining::V2_2::CustomvisiontrainingClient.new(configurable.credentials, options)
78
+ if(@client_0.respond_to?(:subscription_id))
79
+ @client_0.subscription_id = configurable.subscription_id
80
+ end
81
+ add_telemetry(@client_0)
82
+
83
+ @model_classes = ModelClasses.new
84
+ end
85
+
86
+ def add_telemetry(client)
87
+ profile_information = 'Profiles/Latest/Customvisiontraining'
88
+ client.add_user_agent_information(profile_information)
89
+ end
90
+
91
+ def method_missing(method, *args)
92
+ if @client_0.respond_to?method
93
+ @client_0.send(method, *args)
94
+ else
95
+ super
96
+ end
97
+ end
98
+
99
+ end
100
+
101
+ class ModelClasses
102
+ def image_id_create_batch
103
+ Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageIdCreateBatch
104
+ end
105
+ def domain
106
+ Azure::CognitiveServices::Customvisiontraining::V2_2::Models::Domain
107
+ end
108
+ def bounding_box
109
+ Azure::CognitiveServices::Customvisiontraining::V2_2::Models::BoundingBox
110
+ end
111
+ def image_tag_create_batch
112
+ Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageTagCreateBatch
113
+ end
114
+ def region_proposal
115
+ Azure::CognitiveServices::Customvisiontraining::V2_2::Models::RegionProposal
116
+ end
117
+ def image_region_create_entry
118
+ Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageRegionCreateEntry
119
+ end
120
+ def image_region_proposal
121
+ Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageRegionProposal
122
+ end
123
+ def image_region_create_result
124
+ Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageRegionCreateResult
125
+ end
126
+ def image_url
127
+ Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageUrl
128
+ end
129
+ def image_tag
130
+ Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageTag
131
+ end
132
+ def prediction
133
+ Azure::CognitiveServices::Customvisiontraining::V2_2::Models::Prediction
134
+ end
135
+ def image
136
+ Azure::CognitiveServices::Customvisiontraining::V2_2::Models::Image
137
+ end
138
+ def image_prediction
139
+ Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImagePrediction
140
+ end
141
+ def image_create_summary
142
+ Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageCreateSummary
143
+ end
144
+ def prediction_query_tag
145
+ Azure::CognitiveServices::Customvisiontraining::V2_2::Models::PredictionQueryTag
146
+ end
147
+ def image_file_create_entry
148
+ Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageFileCreateEntry
149
+ end
150
+ def prediction_query_token
151
+ Azure::CognitiveServices::Customvisiontraining::V2_2::Models::PredictionQueryToken
152
+ end
153
+ def image_url_create_entry
154
+ Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageUrlCreateEntry
155
+ end
156
+ def stored_image_prediction
157
+ Azure::CognitiveServices::Customvisiontraining::V2_2::Models::StoredImagePrediction
158
+ end
159
+ def image_id_create_entry
160
+ Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageIdCreateEntry
161
+ end
162
+ def prediction_query_result
163
+ Azure::CognitiveServices::Customvisiontraining::V2_2::Models::PredictionQueryResult
164
+ end
165
+ def image_tag_create_summary
166
+ Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageTagCreateSummary
167
+ end
168
+ def tag_performance
169
+ Azure::CognitiveServices::Customvisiontraining::V2_2::Models::TagPerformance
170
+ end
171
+ def image_region_create_summary
172
+ Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageRegionCreateSummary
173
+ end
174
+ def iteration_performance
175
+ Azure::CognitiveServices::Customvisiontraining::V2_2::Models::IterationPerformance
176
+ end
177
+ def image_create_result
178
+ Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageCreateResult
179
+ end
180
+ def image_performance
181
+ Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImagePerformance
182
+ end
183
+ def image_file_create_batch
184
+ Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageFileCreateBatch
185
+ end
186
+ def project_settings
187
+ Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ProjectSettings
188
+ end
189
+ def image_tag_create_entry
190
+ Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageTagCreateEntry
191
+ end
192
+ def project
193
+ Azure::CognitiveServices::Customvisiontraining::V2_2::Models::Project
194
+ end
195
+ def image_region
196
+ Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageRegion
197
+ end
198
+ def iteration
199
+ Azure::CognitiveServices::Customvisiontraining::V2_2::Models::Iteration
200
+ end
201
+ def image_url_create_batch
202
+ Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageUrlCreateBatch
203
+ end
204
+ def export
205
+ Azure::CognitiveServices::Customvisiontraining::V2_2::Models::Export
206
+ end
207
+ def region
208
+ Azure::CognitiveServices::Customvisiontraining::V2_2::Models::Region
209
+ end
210
+ def tag
211
+ Azure::CognitiveServices::Customvisiontraining::V2_2::Models::Tag
212
+ end
213
+ def image_region_create_batch
214
+ Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageRegionCreateBatch
215
+ end
216
+ def domain_type
217
+ Azure::CognitiveServices::Customvisiontraining::V2_2::Models::DomainType
218
+ end
219
+ def image_create_status
220
+ Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageCreateStatus
221
+ end
222
+ def order_by
223
+ Azure::CognitiveServices::Customvisiontraining::V2_2::Models::OrderBy
224
+ end
225
+ def classifier
226
+ Azure::CognitiveServices::Customvisiontraining::V2_2::Models::Classifier
227
+ end
228
+ def export_platform_model
229
+ Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ExportPlatformModel
230
+ end
231
+ def export_status_model
232
+ Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ExportStatusModel
233
+ end
234
+ def export_flavor_model
235
+ Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ExportFlavorModel
236
+ end
237
+ def tag_type
238
+ Azure::CognitiveServices::Customvisiontraining::V2_2::Models::TagType
239
+ end
240
+ end
241
+ end