azure_cognitiveservices_face 0.17.1 → 0.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/1.0/generated/azure_cognitiveservices_face.rb +38 -22
- data/lib/1.0/generated/azure_cognitiveservices_face/face.rb +554 -77
- data/lib/1.0/generated/azure_cognitiveservices_face/face_client.rb +24 -5
- data/lib/1.0/generated/azure_cognitiveservices_face/face_list_operations.rb +169 -36
- data/lib/1.0/generated/azure_cognitiveservices_face/large_face_list_operations.rb +1559 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/large_person_group_operations.rb +854 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/large_person_group_person.rb +1151 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/apply_snapshot_request.rb +69 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/detected_face.rb +13 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/face_attributes.rb +1 -1
- data/lib/1.0/generated/azure_cognitiveservices_face/models/face_list.rb +10 -1
- data/lib/1.0/generated/azure_cognitiveservices_face/models/find_similar_request.rb +23 -1
- data/lib/1.0/generated/azure_cognitiveservices_face/models/gender.rb +0 -1
- data/lib/1.0/generated/azure_cognitiveservices_face/models/identify_request.rb +34 -16
- data/lib/1.0/generated/azure_cognitiveservices_face/models/large_face_list.rb +81 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/large_person_group.rb +81 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/meta_data_contract.rb +72 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/name_and_user_data_contract.rb +1 -1
- data/lib/1.0/generated/azure_cognitiveservices_face/models/operation_status.rb +112 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/operation_status_type.rb +18 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/person_group.rb +11 -2
- data/lib/1.0/generated/azure_cognitiveservices_face/models/recognition_model.rb +16 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/snapshot.rb +136 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/snapshot_apply_mode.rb +15 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/snapshot_object_type.rb +18 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/take_snapshot_request.rb +101 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/training_status.rb +25 -7
- data/lib/1.0/generated/azure_cognitiveservices_face/models/{update_person_face_request.rb → update_face_request.rb} +5 -5
- data/lib/1.0/generated/azure_cognitiveservices_face/models/update_snapshot_request.rb +73 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/verify_face_to_face_request.rb +1 -1
- data/lib/1.0/generated/azure_cognitiveservices_face/models/verify_face_to_person_request.rb +27 -7
- data/lib/1.0/generated/azure_cognitiveservices_face/person_group_operations.rb +203 -34
- data/lib/1.0/generated/azure_cognitiveservices_face/person_group_person.rb +49 -29
- data/lib/1.0/generated/azure_cognitiveservices_face/snapshot_operations.rb +969 -0
- data/lib/profiles/latest/modules/face_profile_module.rb +125 -69
- data/lib/version.rb +1 -1
- metadata +19 -3
@@ -7,7 +7,7 @@ module Azure::CognitiveServices::Face::V1_0
|
|
7
7
|
module Models
|
8
8
|
#
|
9
9
|
# A combination of user defined name and user specified data for the
|
10
|
-
# person, personGroup, and faceList
|
10
|
+
# person, largePersonGroup/personGroup, and largeFaceList/faceList.
|
11
11
|
#
|
12
12
|
class NameAndUserDataContract
|
13
13
|
|
@@ -0,0 +1,112 @@
|
|
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
|
+
# Operation status object. Operation refers to the asynchronous backend
|
10
|
+
# task including taking a snapshot and applying a snapshot.
|
11
|
+
#
|
12
|
+
class OperationStatus
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [OperationStatusType] Operation status: notstarted, running,
|
17
|
+
# succeeded, failed. If the operation is requested and waiting to
|
18
|
+
# perform, the status is notstarted. If the operation is ongoing in
|
19
|
+
# backend, the status is running. Status succeeded means the operation is
|
20
|
+
# completed successfully, specifically for snapshot taking operation, it
|
21
|
+
# illustrates the snapshot is well taken and ready to apply, and for
|
22
|
+
# snapshot applying operation, it presents the target object has finished
|
23
|
+
# creating by the snapshot and ready to be used. Status failed is often
|
24
|
+
# caused by editing the source object while taking the snapshot or
|
25
|
+
# editing the target object while applying the snapshot before
|
26
|
+
# completion, see the field "message" to check the failure reason.
|
27
|
+
# Possible values include: 'notstarted', 'running', 'succeeded', 'failed'
|
28
|
+
attr_accessor :status
|
29
|
+
|
30
|
+
# @return [DateTime] A combined UTC date and time string that describes
|
31
|
+
# the time when the operation (take or apply a snapshot) is requested.
|
32
|
+
# E.g. 2018-12-25T11:41:02.2331413Z.
|
33
|
+
attr_accessor :created_time
|
34
|
+
|
35
|
+
# @return [DateTime] A combined UTC date and time string that describes
|
36
|
+
# the last time the operation (take or apply a snapshot) is actively
|
37
|
+
# migrating data. The lastActionTime will keep increasing until the
|
38
|
+
# operation finishes. E.g. 2018-12-25T11:51:27.8705696Z.
|
39
|
+
attr_accessor :last_action_time
|
40
|
+
|
41
|
+
# @return [String] When the operation succeeds successfully, for snapshot
|
42
|
+
# taking operation the snapshot id will be included in this field, and
|
43
|
+
# for snapshot applying operation, the path to get the target object will
|
44
|
+
# be returned in this field.
|
45
|
+
attr_accessor :resource_location
|
46
|
+
|
47
|
+
# @return [String] Show failure message when operation fails (omitted
|
48
|
+
# when operation succeeds).
|
49
|
+
attr_accessor :message
|
50
|
+
|
51
|
+
|
52
|
+
#
|
53
|
+
# Mapper for OperationStatus class as Ruby Hash.
|
54
|
+
# This will be used for serialization/deserialization.
|
55
|
+
#
|
56
|
+
def self.mapper()
|
57
|
+
{
|
58
|
+
client_side_validation: true,
|
59
|
+
required: false,
|
60
|
+
serialized_name: 'OperationStatus',
|
61
|
+
type: {
|
62
|
+
name: 'Composite',
|
63
|
+
class_name: 'OperationStatus',
|
64
|
+
model_properties: {
|
65
|
+
status: {
|
66
|
+
client_side_validation: true,
|
67
|
+
required: true,
|
68
|
+
serialized_name: 'status',
|
69
|
+
type: {
|
70
|
+
name: 'Enum',
|
71
|
+
module: 'OperationStatusType'
|
72
|
+
}
|
73
|
+
},
|
74
|
+
created_time: {
|
75
|
+
client_side_validation: true,
|
76
|
+
required: true,
|
77
|
+
serialized_name: 'createdTime',
|
78
|
+
type: {
|
79
|
+
name: 'DateTime'
|
80
|
+
}
|
81
|
+
},
|
82
|
+
last_action_time: {
|
83
|
+
client_side_validation: true,
|
84
|
+
required: false,
|
85
|
+
serialized_name: 'lastActionTime',
|
86
|
+
type: {
|
87
|
+
name: 'DateTime'
|
88
|
+
}
|
89
|
+
},
|
90
|
+
resource_location: {
|
91
|
+
client_side_validation: true,
|
92
|
+
required: false,
|
93
|
+
serialized_name: 'resourceLocation',
|
94
|
+
type: {
|
95
|
+
name: 'String'
|
96
|
+
}
|
97
|
+
},
|
98
|
+
message: {
|
99
|
+
client_side_validation: true,
|
100
|
+
required: false,
|
101
|
+
serialized_name: 'message',
|
102
|
+
type: {
|
103
|
+
name: 'String'
|
104
|
+
}
|
105
|
+
}
|
106
|
+
}
|
107
|
+
}
|
108
|
+
}
|
109
|
+
end
|
110
|
+
end
|
111
|
+
end
|
112
|
+
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 OperationStatusType
|
10
|
+
#
|
11
|
+
module OperationStatusType
|
12
|
+
Notstarted = "notstarted"
|
13
|
+
Running = "running"
|
14
|
+
Succeeded = "succeeded"
|
15
|
+
Failed = "failed"
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -8,11 +8,11 @@ module Azure::CognitiveServices::Face::V1_0
|
|
8
8
|
#
|
9
9
|
# Person group object.
|
10
10
|
#
|
11
|
-
class PersonGroup <
|
11
|
+
class PersonGroup < MetaDataContract
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
-
# @return [String] PersonGroupId of the
|
15
|
+
# @return [String] PersonGroupId of the target person group.
|
16
16
|
attr_accessor :person_group_id
|
17
17
|
|
18
18
|
|
@@ -51,6 +51,15 @@ module Azure::CognitiveServices::Face::V1_0
|
|
51
51
|
name: 'String'
|
52
52
|
}
|
53
53
|
},
|
54
|
+
recognition_model: {
|
55
|
+
client_side_validation: true,
|
56
|
+
required: false,
|
57
|
+
serialized_name: 'recognitionModel',
|
58
|
+
default_value: 'recognition_01',
|
59
|
+
type: {
|
60
|
+
name: 'String'
|
61
|
+
}
|
62
|
+
},
|
54
63
|
person_group_id: {
|
55
64
|
client_side_validation: true,
|
56
65
|
required: true,
|
@@ -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::Face::V1_0
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for RecognitionModel
|
10
|
+
#
|
11
|
+
module RecognitionModel
|
12
|
+
Recognition01 = "recognition_01"
|
13
|
+
Recognition02 = "recognition_02"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
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
|