be_azure_cognitiveservices_face 0.19.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/lib/1.0/generated/azure_cognitiveservices_face/face.rb +1711 -0
  4. data/lib/1.0/generated/azure_cognitiveservices_face/face_client.rb +159 -0
  5. data/lib/1.0/generated/azure_cognitiveservices_face/face_list_operations.rb +1269 -0
  6. data/lib/1.0/generated/azure_cognitiveservices_face/large_face_list_operations.rb +1894 -0
  7. data/lib/1.0/generated/azure_cognitiveservices_face/large_person_group_operations.rb +886 -0
  8. data/lib/1.0/generated/azure_cognitiveservices_face/large_person_group_person.rb +1477 -0
  9. data/lib/1.0/generated/azure_cognitiveservices_face/models/accessory.rb +59 -0
  10. data/lib/1.0/generated/azure_cognitiveservices_face/models/accessory_type.rb +17 -0
  11. data/lib/1.0/generated/azure_cognitiveservices_face/models/apierror.rb +47 -0
  12. data/lib/1.0/generated/azure_cognitiveservices_face/models/apply_snapshot_request.rb +69 -0
  13. data/lib/1.0/generated/azure_cognitiveservices_face/models/blur.rb +60 -0
  14. data/lib/1.0/generated/azure_cognitiveservices_face/models/blur_level.rb +17 -0
  15. data/lib/1.0/generated/azure_cognitiveservices_face/models/coordinate.rb +57 -0
  16. data/lib/1.0/generated/azure_cognitiveservices_face/models/detected_face.rb +95 -0
  17. data/lib/1.0/generated/azure_cognitiveservices_face/models/detection_model.rb +16 -0
  18. data/lib/1.0/generated/azure_cognitiveservices_face/models/emotion.rb +124 -0
  19. data/lib/1.0/generated/azure_cognitiveservices_face/models/error.rb +57 -0
  20. data/lib/1.0/generated/azure_cognitiveservices_face/models/exposure.rb +62 -0
  21. data/lib/1.0/generated/azure_cognitiveservices_face/models/exposure_level.rb +17 -0
  22. data/lib/1.0/generated/azure_cognitiveservices_face/models/face_attribute_type.rb +28 -0
  23. data/lib/1.0/generated/azure_cognitiveservices_face/models/face_attributes.rb +214 -0
  24. data/lib/1.0/generated/azure_cognitiveservices_face/models/face_landmarks.rb +360 -0
  25. data/lib/1.0/generated/azure_cognitiveservices_face/models/face_list.rb +101 -0
  26. data/lib/1.0/generated/azure_cognitiveservices_face/models/face_rectangle.rb +81 -0
  27. data/lib/1.0/generated/azure_cognitiveservices_face/models/facial_hair.rb +68 -0
  28. data/lib/1.0/generated/azure_cognitiveservices_face/models/find_similar_match_mode.rb +16 -0
  29. data/lib/1.0/generated/azure_cognitiveservices_face/models/find_similar_request.rb +143 -0
  30. data/lib/1.0/generated/azure_cognitiveservices_face/models/gender.rb +16 -0
  31. data/lib/1.0/generated/azure_cognitiveservices_face/models/glasses_type.rb +18 -0
  32. data/lib/1.0/generated/azure_cognitiveservices_face/models/group_request.rb +58 -0
  33. data/lib/1.0/generated/azure_cognitiveservices_face/models/group_result.rb +83 -0
  34. data/lib/1.0/generated/azure_cognitiveservices_face/models/hair.rb +80 -0
  35. data/lib/1.0/generated/azure_cognitiveservices_face/models/hair_color.rb +60 -0
  36. data/lib/1.0/generated/azure_cognitiveservices_face/models/hair_color_type.rb +22 -0
  37. data/lib/1.0/generated/azure_cognitiveservices_face/models/head_pose.rb +68 -0
  38. data/lib/1.0/generated/azure_cognitiveservices_face/models/identify_candidate.rb +59 -0
  39. data/lib/1.0/generated/azure_cognitiveservices_face/models/identify_request.rb +123 -0
  40. data/lib/1.0/generated/azure_cognitiveservices_face/models/identify_result.rb +69 -0
  41. data/lib/1.0/generated/azure_cognitiveservices_face/models/image_url.rb +47 -0
  42. data/lib/1.0/generated/azure_cognitiveservices_face/models/large_face_list.rb +81 -0
  43. data/lib/1.0/generated/azure_cognitiveservices_face/models/large_person_group.rb +81 -0
  44. data/lib/1.0/generated/azure_cognitiveservices_face/models/makeup.rb +59 -0
  45. data/lib/1.0/generated/azure_cognitiveservices_face/models/meta_data_contract.rb +72 -0
  46. data/lib/1.0/generated/azure_cognitiveservices_face/models/name_and_user_data_contract.rb +64 -0
  47. data/lib/1.0/generated/azure_cognitiveservices_face/models/noise.rb +62 -0
  48. data/lib/1.0/generated/azure_cognitiveservices_face/models/noise_level.rb +17 -0
  49. data/lib/1.0/generated/azure_cognitiveservices_face/models/occlusion.rb +70 -0
  50. data/lib/1.0/generated/azure_cognitiveservices_face/models/operation_status.rb +112 -0
  51. data/lib/1.0/generated/azure_cognitiveservices_face/models/operation_status_type.rb +18 -0
  52. data/lib/1.0/generated/azure_cognitiveservices_face/models/persisted_face.rb +63 -0
  53. data/lib/1.0/generated/azure_cognitiveservices_face/models/person.rb +89 -0
  54. data/lib/1.0/generated/azure_cognitiveservices_face/models/person_group.rb +81 -0
  55. data/lib/1.0/generated/azure_cognitiveservices_face/models/recognition_model.rb +16 -0
  56. data/lib/1.0/generated/azure_cognitiveservices_face/models/similar_face.rb +73 -0
  57. data/lib/1.0/generated/azure_cognitiveservices_face/models/snapshot.rb +136 -0
  58. data/lib/1.0/generated/azure_cognitiveservices_face/models/snapshot_apply_mode.rb +15 -0
  59. data/lib/1.0/generated/azure_cognitiveservices_face/models/snapshot_object_type.rb +18 -0
  60. data/lib/1.0/generated/azure_cognitiveservices_face/models/take_snapshot_request.rb +101 -0
  61. data/lib/1.0/generated/azure_cognitiveservices_face/models/training_status.rb +107 -0
  62. data/lib/1.0/generated/azure_cognitiveservices_face/models/training_status_type.rb +18 -0
  63. data/lib/1.0/generated/azure_cognitiveservices_face/models/update_face_request.rb +50 -0
  64. data/lib/1.0/generated/azure_cognitiveservices_face/models/update_snapshot_request.rb +73 -0
  65. data/lib/1.0/generated/azure_cognitiveservices_face/models/verify_face_to_face_request.rb +57 -0
  66. data/lib/1.0/generated/azure_cognitiveservices_face/models/verify_face_to_person_request.rb +95 -0
  67. data/lib/1.0/generated/azure_cognitiveservices_face/models/verify_result.rb +62 -0
  68. data/lib/1.0/generated/azure_cognitiveservices_face/module_definition.rb +9 -0
  69. data/lib/1.0/generated/azure_cognitiveservices_face/person_group_operations.rb +865 -0
  70. data/lib/1.0/generated/azure_cognitiveservices_face/person_group_person.rb +1528 -0
  71. data/lib/1.0/generated/azure_cognitiveservices_face/snapshot_operations.rb +983 -0
  72. data/lib/1.0/generated/azure_cognitiveservices_face.rb +94 -0
  73. data/lib/azure_cognitiveservices_face.rb +6 -0
  74. data/lib/module_definition.rb +7 -0
  75. data/lib/profiles/latest/face_latest_profile_client.rb +38 -0
  76. data/lib/profiles/latest/face_module_definition.rb +8 -0
  77. data/lib/profiles/latest/modules/face_profile_module.rb +309 -0
  78. data/lib/version.rb +7 -0
  79. metadata +196 -0
@@ -0,0 +1,73 @@
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::Face::V1_0
7
+ module Models
8
+ #
9
+ # Response body for find similar face operation.
10
+ #
11
+ class SimilarFace
12
+
13
+ include MsRestAzure
14
+
15
+ # @return FaceId of candidate face when find by faceIds. faceId is
16
+ # created by Face - Detect and will expire 24 hours after the detection
17
+ # call
18
+ attr_accessor :face_id
19
+
20
+ # @return PersistedFaceId of candidate face when find by faceListId.
21
+ # persistedFaceId in face list is persisted and will not expire. As
22
+ # showed in below response
23
+ attr_accessor :persisted_face_id
24
+
25
+ # @return [Float] Similarity confidence of the candidate face. The higher
26
+ # confidence, the more similar. Range between [0,1].
27
+ attr_accessor :confidence
28
+
29
+
30
+ #
31
+ # Mapper for SimilarFace class as Ruby Hash.
32
+ # This will be used for serialization/deserialization.
33
+ #
34
+ def self.mapper()
35
+ {
36
+ client_side_validation: true,
37
+ required: false,
38
+ serialized_name: 'SimilarFace',
39
+ type: {
40
+ name: 'Composite',
41
+ class_name: 'SimilarFace',
42
+ model_properties: {
43
+ face_id: {
44
+ client_side_validation: true,
45
+ required: false,
46
+ serialized_name: 'faceId',
47
+ type: {
48
+ name: 'String'
49
+ }
50
+ },
51
+ persisted_face_id: {
52
+ client_side_validation: true,
53
+ required: false,
54
+ serialized_name: 'persistedFaceId',
55
+ type: {
56
+ name: 'String'
57
+ }
58
+ },
59
+ confidence: {
60
+ client_side_validation: true,
61
+ required: true,
62
+ serialized_name: 'confidence',
63
+ type: {
64
+ name: 'Double'
65
+ }
66
+ }
67
+ }
68
+ }
69
+ }
70
+ end
71
+ end
72
+ end
73
+ end
@@ -0,0 +1,136 @@
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::Face::V1_0
7
+ module Models
8
+ #
9
+ # Snapshot object.
10
+ #
11
+ class Snapshot
12
+
13
+ include MsRestAzure
14
+
15
+ # @return Snapshot id.
16
+ attr_accessor :id
17
+
18
+ # @return [String] Azure Cognitive Service Face account id of the
19
+ # subscriber who created the snapshot by Snapshot - Take.
20
+ attr_accessor :account
21
+
22
+ # @return [SnapshotObjectType] Type of the source object in the snapshot,
23
+ # specified by the subscriber who created the snapshot when calling
24
+ # Snapshot - Take. Currently FaceList, PersonGroup, LargeFaceList and
25
+ # LargePersonGroup are supported. Possible values include: 'FaceList',
26
+ # 'LargeFaceList', 'LargePersonGroup', 'PersonGroup'
27
+ attr_accessor :type
28
+
29
+ # @return Array of the target Face subscription ids for the snapshot,
30
+ # specified by the user who created the snapshot when calling Snapshot -
31
+ # Take. For each snapshot, only subscriptions included in the applyScope
32
+ # of Snapshot - Take can apply it.
33
+ attr_accessor :apply_scope
34
+
35
+ # @return [String] User specified data about the snapshot for any
36
+ # purpose. Length should not exceed 16KB.
37
+ attr_accessor :user_data
38
+
39
+ # @return [DateTime] A combined UTC date and time string that describes
40
+ # the created time of the snapshot. E.g. 2018-12-25T11:41:02.2331413Z.
41
+ attr_accessor :created_time
42
+
43
+ # @return [DateTime] A combined UTC date and time string that describes
44
+ # the last time when the snapshot was created or updated by Snapshot -
45
+ # Update. E.g. 2018-12-25T11:51:27.8705696Z.
46
+ attr_accessor :last_update_time
47
+
48
+
49
+ #
50
+ # Mapper for Snapshot class as Ruby Hash.
51
+ # This will be used for serialization/deserialization.
52
+ #
53
+ def self.mapper()
54
+ {
55
+ client_side_validation: true,
56
+ required: false,
57
+ serialized_name: 'Snapshot',
58
+ type: {
59
+ name: 'Composite',
60
+ class_name: 'Snapshot',
61
+ model_properties: {
62
+ id: {
63
+ client_side_validation: true,
64
+ required: true,
65
+ serialized_name: 'id',
66
+ type: {
67
+ name: 'String'
68
+ }
69
+ },
70
+ account: {
71
+ client_side_validation: true,
72
+ required: true,
73
+ serialized_name: 'account',
74
+ type: {
75
+ name: 'String'
76
+ }
77
+ },
78
+ type: {
79
+ client_side_validation: true,
80
+ required: true,
81
+ serialized_name: 'type',
82
+ type: {
83
+ name: 'Enum',
84
+ module: 'SnapshotObjectType'
85
+ }
86
+ },
87
+ apply_scope: {
88
+ client_side_validation: true,
89
+ required: true,
90
+ serialized_name: 'applyScope',
91
+ type: {
92
+ name: 'Sequence',
93
+ element: {
94
+ client_side_validation: true,
95
+ required: false,
96
+ serialized_name: 'UuidElementType',
97
+ type: {
98
+ name: 'String'
99
+ }
100
+ }
101
+ }
102
+ },
103
+ user_data: {
104
+ client_side_validation: true,
105
+ required: false,
106
+ serialized_name: 'userData',
107
+ constraints: {
108
+ MaxLength: 16384
109
+ },
110
+ type: {
111
+ name: 'String'
112
+ }
113
+ },
114
+ created_time: {
115
+ client_side_validation: true,
116
+ required: true,
117
+ serialized_name: 'createdTime',
118
+ type: {
119
+ name: 'DateTime'
120
+ }
121
+ },
122
+ last_update_time: {
123
+ client_side_validation: true,
124
+ required: true,
125
+ serialized_name: 'lastUpdateTime',
126
+ type: {
127
+ name: 'DateTime'
128
+ }
129
+ }
130
+ }
131
+ }
132
+ }
133
+ end
134
+ end
135
+ end
136
+ end
@@ -0,0 +1,15 @@
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::Face::V1_0
7
+ module Models
8
+ #
9
+ # Defines values for SnapshotApplyMode
10
+ #
11
+ module SnapshotApplyMode
12
+ CreateNew = "CreateNew"
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,18 @@
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::Face::V1_0
7
+ module Models
8
+ #
9
+ # Defines values for SnapshotObjectType
10
+ #
11
+ module SnapshotObjectType
12
+ FaceList = "FaceList"
13
+ LargeFaceList = "LargeFaceList"
14
+ LargePersonGroup = "LargePersonGroup"
15
+ PersonGroup = "PersonGroup"
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,101 @@
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::Face::V1_0
7
+ module Models
8
+ #
9
+ # Request body for taking snapshot operation.
10
+ #
11
+ class TakeSnapshotRequest
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [SnapshotObjectType] User specified type for the source object
16
+ # to take snapshot from. Currently FaceList, PersonGroup, LargeFaceList
17
+ # and LargePersonGroup are supported. Possible values include:
18
+ # 'FaceList', 'LargeFaceList', 'LargePersonGroup', 'PersonGroup'
19
+ attr_accessor :type
20
+
21
+ # @return [String] User specified source object id to take snapshot from.
22
+ attr_accessor :object_id
23
+
24
+ # @return User specified array of target Face subscription ids for the
25
+ # snapshot. For each snapshot, only subscriptions included in the
26
+ # applyScope of Snapshot - Take can apply it.
27
+ attr_accessor :apply_scope
28
+
29
+ # @return [String] User specified data about the snapshot for any
30
+ # purpose. Length should not exceed 16KB.
31
+ attr_accessor :user_data
32
+
33
+
34
+ #
35
+ # Mapper for TakeSnapshotRequest class as Ruby Hash.
36
+ # This will be used for serialization/deserialization.
37
+ #
38
+ def self.mapper()
39
+ {
40
+ client_side_validation: true,
41
+ required: false,
42
+ serialized_name: 'TakeSnapshotRequest',
43
+ type: {
44
+ name: 'Composite',
45
+ class_name: 'TakeSnapshotRequest',
46
+ model_properties: {
47
+ type: {
48
+ client_side_validation: true,
49
+ required: true,
50
+ serialized_name: 'type',
51
+ type: {
52
+ name: 'Enum',
53
+ module: 'SnapshotObjectType'
54
+ }
55
+ },
56
+ object_id: {
57
+ client_side_validation: true,
58
+ required: true,
59
+ serialized_name: 'objectId',
60
+ constraints: {
61
+ MaxLength: 64,
62
+ Pattern: '^[a-z0-9-_]+$'
63
+ },
64
+ type: {
65
+ name: 'String'
66
+ }
67
+ },
68
+ apply_scope: {
69
+ client_side_validation: true,
70
+ required: true,
71
+ serialized_name: 'applyScope',
72
+ type: {
73
+ name: 'Sequence',
74
+ element: {
75
+ client_side_validation: true,
76
+ required: false,
77
+ serialized_name: 'UuidElementType',
78
+ type: {
79
+ name: 'String'
80
+ }
81
+ }
82
+ }
83
+ },
84
+ user_data: {
85
+ client_side_validation: true,
86
+ required: false,
87
+ serialized_name: 'userData',
88
+ constraints: {
89
+ MaxLength: 16384
90
+ },
91
+ type: {
92
+ name: 'String'
93
+ }
94
+ }
95
+ }
96
+ }
97
+ }
98
+ end
99
+ end
100
+ end
101
+ end
@@ -0,0 +1,107 @@
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::Face::V1_0
7
+ module Models
8
+ #
9
+ # Training status object.
10
+ #
11
+ class TrainingStatus
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [TrainingStatusType] Training status: notstarted, running,
16
+ # succeeded, failed. If the training process is waiting to perform, the
17
+ # status is notstarted. If the training is ongoing, the status is
18
+ # running. Status succeed means this person group or large person group
19
+ # is ready for Face - Identify, or this large face list is ready for Face
20
+ # - Find Similar. Status failed is often caused by no person or no
21
+ # persisted face exist in the person group or large person group, or no
22
+ # persisted face exist in the large face list. Possible values include:
23
+ # 'nonstarted', 'running', 'succeeded', 'failed'
24
+ attr_accessor :status
25
+
26
+ # @return [DateTime] A combined UTC date and time string that describes
27
+ # the created time of the person group, large person group or large face
28
+ # list.
29
+ attr_accessor :created
30
+
31
+ # @return [DateTime] A combined UTC date and time string that describes
32
+ # the last modify time of the person group, large person group or large
33
+ # face list, could be null value when the group is not successfully
34
+ # trained.
35
+ attr_accessor :last_action
36
+
37
+ # @return [DateTime] A combined UTC date and time string that describes
38
+ # the last successful training time of the person group, large person
39
+ # group or large face list.
40
+ attr_accessor :last_successful_training
41
+
42
+ # @return [String] Show failure message when training failed (omitted
43
+ # when training succeed).
44
+ attr_accessor :message
45
+
46
+
47
+ #
48
+ # Mapper for TrainingStatus class as Ruby Hash.
49
+ # This will be used for serialization/deserialization.
50
+ #
51
+ def self.mapper()
52
+ {
53
+ client_side_validation: true,
54
+ required: false,
55
+ serialized_name: 'TrainingStatus',
56
+ type: {
57
+ name: 'Composite',
58
+ class_name: 'TrainingStatus',
59
+ model_properties: {
60
+ status: {
61
+ client_side_validation: true,
62
+ required: true,
63
+ serialized_name: 'status',
64
+ type: {
65
+ name: 'Enum',
66
+ module: 'TrainingStatusType'
67
+ }
68
+ },
69
+ created: {
70
+ client_side_validation: true,
71
+ required: true,
72
+ serialized_name: 'createdDateTime',
73
+ type: {
74
+ name: 'DateTime'
75
+ }
76
+ },
77
+ last_action: {
78
+ client_side_validation: true,
79
+ required: false,
80
+ serialized_name: 'lastActionDateTime',
81
+ type: {
82
+ name: 'DateTime'
83
+ }
84
+ },
85
+ last_successful_training: {
86
+ client_side_validation: true,
87
+ required: false,
88
+ serialized_name: 'lastSuccessfulTrainingDateTime',
89
+ type: {
90
+ name: 'DateTime'
91
+ }
92
+ },
93
+ message: {
94
+ client_side_validation: true,
95
+ required: false,
96
+ serialized_name: 'message',
97
+ type: {
98
+ name: 'String'
99
+ }
100
+ }
101
+ }
102
+ }
103
+ }
104
+ end
105
+ end
106
+ end
107
+ end
@@ -0,0 +1,18 @@
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::Face::V1_0
7
+ module Models
8
+ #
9
+ # Defines values for TrainingStatusType
10
+ #
11
+ module TrainingStatusType
12
+ Nonstarted = "nonstarted"
13
+ Running = "running"
14
+ Succeeded = "succeeded"
15
+ Failed = "failed"
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,50 @@
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::Face::V1_0
7
+ module Models
8
+ #
9
+ # Request to update face data.
10
+ #
11
+ class UpdateFaceRequest
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] User-provided data attached to the face. The size
16
+ # limit is 1KB.
17
+ attr_accessor :user_data
18
+
19
+
20
+ #
21
+ # Mapper for UpdateFaceRequest class as Ruby Hash.
22
+ # This will be used for serialization/deserialization.
23
+ #
24
+ def self.mapper()
25
+ {
26
+ client_side_validation: true,
27
+ required: false,
28
+ serialized_name: 'UpdateFaceRequest',
29
+ type: {
30
+ name: 'Composite',
31
+ class_name: 'UpdateFaceRequest',
32
+ model_properties: {
33
+ user_data: {
34
+ client_side_validation: true,
35
+ required: false,
36
+ serialized_name: 'userData',
37
+ constraints: {
38
+ MaxLength: 1024
39
+ },
40
+ type: {
41
+ name: 'String'
42
+ }
43
+ }
44
+ }
45
+ }
46
+ }
47
+ end
48
+ end
49
+ end
50
+ end
@@ -0,0 +1,73 @@
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::Face::V1_0
7
+ module Models
8
+ #
9
+ # Request body for updating a snapshot, with a combination of user defined
10
+ # apply scope and user specified data.
11
+ #
12
+ class UpdateSnapshotRequest
13
+
14
+ include MsRestAzure
15
+
16
+ # @return Array of the target Face subscription ids for the snapshot,
17
+ # specified by the user who created the snapshot when calling Snapshot -
18
+ # Take. For each snapshot, only subscriptions included in the applyScope
19
+ # of Snapshot - Take can apply it.
20
+ attr_accessor :apply_scope
21
+
22
+ # @return [String] User specified data about the snapshot for any
23
+ # purpose. Length should not exceed 16KB.
24
+ attr_accessor :user_data
25
+
26
+
27
+ #
28
+ # Mapper for UpdateSnapshotRequest class as Ruby Hash.
29
+ # This will be used for serialization/deserialization.
30
+ #
31
+ def self.mapper()
32
+ {
33
+ client_side_validation: true,
34
+ required: false,
35
+ serialized_name: 'UpdateSnapshotRequest',
36
+ type: {
37
+ name: 'Composite',
38
+ class_name: 'UpdateSnapshotRequest',
39
+ model_properties: {
40
+ apply_scope: {
41
+ client_side_validation: true,
42
+ required: false,
43
+ serialized_name: 'applyScope',
44
+ type: {
45
+ name: 'Sequence',
46
+ element: {
47
+ client_side_validation: true,
48
+ required: false,
49
+ serialized_name: 'UuidElementType',
50
+ type: {
51
+ name: 'String'
52
+ }
53
+ }
54
+ }
55
+ },
56
+ user_data: {
57
+ client_side_validation: true,
58
+ required: false,
59
+ serialized_name: 'userData',
60
+ constraints: {
61
+ MaxLength: 16384
62
+ },
63
+ type: {
64
+ name: 'String'
65
+ }
66
+ }
67
+ }
68
+ }
69
+ }
70
+ end
71
+ end
72
+ end
73
+ end
@@ -0,0 +1,57 @@
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::Face::V1_0
7
+ module Models
8
+ #
9
+ # Request body for face to face verification.
10
+ #
11
+ class VerifyFaceToFaceRequest
12
+
13
+ include MsRestAzure
14
+
15
+ # @return FaceId of the first face, comes from Face - Detect
16
+ attr_accessor :face_id1
17
+
18
+ # @return FaceId of the second face, comes from Face - Detect
19
+ attr_accessor :face_id2
20
+
21
+
22
+ #
23
+ # Mapper for VerifyFaceToFaceRequest class as Ruby Hash.
24
+ # This will be used for serialization/deserialization.
25
+ #
26
+ def self.mapper()
27
+ {
28
+ client_side_validation: true,
29
+ required: false,
30
+ serialized_name: 'VerifyFaceToFaceRequest',
31
+ type: {
32
+ name: 'Composite',
33
+ class_name: 'VerifyFaceToFaceRequest',
34
+ model_properties: {
35
+ face_id1: {
36
+ client_side_validation: true,
37
+ required: true,
38
+ serialized_name: 'faceId1',
39
+ type: {
40
+ name: 'String'
41
+ }
42
+ },
43
+ face_id2: {
44
+ client_side_validation: true,
45
+ required: true,
46
+ serialized_name: 'faceId2',
47
+ type: {
48
+ name: 'String'
49
+ }
50
+ }
51
+ }
52
+ }
53
+ }
54
+ end
55
+ end
56
+ end
57
+ end