azure_cognitiveservices_qnamaker 0.17.2 → 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/LICENSE.txt +20 -20
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker.rb +0 -1
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/alterations.rb +193 -193
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/endpoint_keys.rb +198 -198
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/endpoint_settings.rb +214 -214
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/knowledgebase.rb +737 -737
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/active_learning_settings_dto.rb +46 -46
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/alterations_dto.rb +54 -54
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/context_dto.rb +73 -73
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/create_kb_dto.rb +44 -0
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/create_kb_input_dto.rb +95 -95
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/delete_kb_contents_dto.rb +74 -74
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/endpoint_keys_dto.rb +11 -0
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/endpoint_settings_dto.rb +48 -48
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/endpoint_settings_dtoactive_learning.rb +43 -43
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/environment_type.rb +16 -16
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/error.rb +108 -108
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/error_code_type.rb +28 -28
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/error_response.rb +48 -48
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/error_response_error.rb +85 -85
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/file_dto.rb +62 -62
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/inner_error_model.rb +62 -62
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/knowledgebase_dto.rb +155 -155
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/knowledgebases_dto.rb +55 -55
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/metadata_dto.rb +65 -65
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/operation.rb +115 -115
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/operation_state_type.rb +18 -18
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/prompt_dto.rb +86 -86
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/prompt_dtoqna.rb +108 -108
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/qn_adocuments_dto.rb +55 -55
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/qn_adto.rb +128 -128
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/qn_adtocontext.rb +63 -63
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/replace_kb_dto.rb +57 -57
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/update_context_dto.rb +90 -90
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/update_kb_contents_dto.rb +87 -87
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/update_kb_operation_dto.rb +30 -0
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/update_kb_operation_dtoadd.rb +85 -85
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/update_kb_operation_dtodelete.rb +67 -67
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/update_kb_operation_dtoupdate.rb +76 -76
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/update_metadata_dto.rb +77 -77
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/update_qna_dto.rb +115 -115
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/update_qna_dtocontext.rb +76 -76
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/update_qna_dtometadata.rb +69 -69
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/update_qna_dtoquestions.rb +67 -67
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/update_questions_dto.rb +74 -74
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/word_alterations_dto.rb +55 -55
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/module_definition.rb +9 -9
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/operations.rb +114 -114
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/qnamaker_client.rb +1 -1
- data/lib/azure_cognitiveservices_qnamaker.rb +6 -6
- data/lib/module_definition.rb +7 -7
- data/lib/profiles/latest/modules/qnamaker_profile_module.rb +0 -4
- data/lib/profiles/latest/qnamaker_latest_profile_client.rb +38 -38
- data/lib/profiles/latest/qnamaker_module_definition.rb +8 -8
- data/lib/version.rb +1 -1
- metadata +3 -4
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/knowledgebase_environment_type.rb +0 -16
@@ -1,155 +1,155 @@
|
|
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::Qnamaker::V4_0
|
7
|
-
module Models
|
8
|
-
#
|
9
|
-
# Response schema for CreateKb operation.
|
10
|
-
#
|
11
|
-
class KnowledgebaseDTO
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [String] Unique id that identifies a knowledgebase.
|
16
|
-
attr_accessor :id
|
17
|
-
|
18
|
-
# @return [String] URL host name at which the knowledgebase is hosted.
|
19
|
-
attr_accessor :host_name
|
20
|
-
|
21
|
-
# @return [String] Time stamp at which the knowledgebase was last
|
22
|
-
# accessed (UTC).
|
23
|
-
attr_accessor :last_accessed_timestamp
|
24
|
-
|
25
|
-
# @return [String] Time stamp at which the knowledgebase was last
|
26
|
-
# modified (UTC).
|
27
|
-
attr_accessor :last_changed_timestamp
|
28
|
-
|
29
|
-
# @return [String] Time stamp at which the knowledgebase was last
|
30
|
-
# published (UTC).
|
31
|
-
attr_accessor :last_published_timestamp
|
32
|
-
|
33
|
-
# @return [String] Friendly name of the knowledgebase.
|
34
|
-
attr_accessor :name
|
35
|
-
|
36
|
-
# @return [String] User who created / owns the knowledgebase.
|
37
|
-
attr_accessor :user_id
|
38
|
-
|
39
|
-
# @return [Array<String>] URL sources from which Q-A were extracted and
|
40
|
-
# added to the knowledgebase.
|
41
|
-
attr_accessor :urls
|
42
|
-
|
43
|
-
# @return [Array<String>] Custom sources from which Q-A were extracted or
|
44
|
-
# explicitly added to the knowledgebase.
|
45
|
-
attr_accessor :sources
|
46
|
-
|
47
|
-
|
48
|
-
#
|
49
|
-
# Mapper for KnowledgebaseDTO class as Ruby Hash.
|
50
|
-
# This will be used for serialization/deserialization.
|
51
|
-
#
|
52
|
-
def self.mapper()
|
53
|
-
{
|
54
|
-
client_side_validation: true,
|
55
|
-
required: false,
|
56
|
-
serialized_name: 'KnowledgebaseDTO',
|
57
|
-
type: {
|
58
|
-
name: 'Composite',
|
59
|
-
class_name: 'KnowledgebaseDTO',
|
60
|
-
model_properties: {
|
61
|
-
id: {
|
62
|
-
client_side_validation: true,
|
63
|
-
required: false,
|
64
|
-
serialized_name: 'id',
|
65
|
-
type: {
|
66
|
-
name: 'String'
|
67
|
-
}
|
68
|
-
},
|
69
|
-
host_name: {
|
70
|
-
client_side_validation: true,
|
71
|
-
required: false,
|
72
|
-
serialized_name: 'hostName',
|
73
|
-
type: {
|
74
|
-
name: 'String'
|
75
|
-
}
|
76
|
-
},
|
77
|
-
last_accessed_timestamp: {
|
78
|
-
client_side_validation: true,
|
79
|
-
required: false,
|
80
|
-
serialized_name: 'lastAccessedTimestamp',
|
81
|
-
type: {
|
82
|
-
name: 'String'
|
83
|
-
}
|
84
|
-
},
|
85
|
-
last_changed_timestamp: {
|
86
|
-
client_side_validation: true,
|
87
|
-
required: false,
|
88
|
-
serialized_name: 'lastChangedTimestamp',
|
89
|
-
type: {
|
90
|
-
name: 'String'
|
91
|
-
}
|
92
|
-
},
|
93
|
-
last_published_timestamp: {
|
94
|
-
client_side_validation: true,
|
95
|
-
required: false,
|
96
|
-
serialized_name: 'lastPublishedTimestamp',
|
97
|
-
type: {
|
98
|
-
name: 'String'
|
99
|
-
}
|
100
|
-
},
|
101
|
-
name: {
|
102
|
-
client_side_validation: true,
|
103
|
-
required: false,
|
104
|
-
serialized_name: 'name',
|
105
|
-
type: {
|
106
|
-
name: 'String'
|
107
|
-
}
|
108
|
-
},
|
109
|
-
user_id: {
|
110
|
-
client_side_validation: true,
|
111
|
-
required: false,
|
112
|
-
serialized_name: 'userId',
|
113
|
-
type: {
|
114
|
-
name: 'String'
|
115
|
-
}
|
116
|
-
},
|
117
|
-
urls: {
|
118
|
-
client_side_validation: true,
|
119
|
-
required: false,
|
120
|
-
serialized_name: 'urls',
|
121
|
-
type: {
|
122
|
-
name: 'Sequence',
|
123
|
-
element: {
|
124
|
-
client_side_validation: true,
|
125
|
-
required: false,
|
126
|
-
serialized_name: 'StringElementType',
|
127
|
-
type: {
|
128
|
-
name: 'String'
|
129
|
-
}
|
130
|
-
}
|
131
|
-
}
|
132
|
-
},
|
133
|
-
sources: {
|
134
|
-
client_side_validation: true,
|
135
|
-
required: false,
|
136
|
-
serialized_name: 'sources',
|
137
|
-
type: {
|
138
|
-
name: 'Sequence',
|
139
|
-
element: {
|
140
|
-
client_side_validation: true,
|
141
|
-
required: false,
|
142
|
-
serialized_name: 'StringElementType',
|
143
|
-
type: {
|
144
|
-
name: 'String'
|
145
|
-
}
|
146
|
-
}
|
147
|
-
}
|
148
|
-
}
|
149
|
-
}
|
150
|
-
}
|
151
|
-
}
|
152
|
-
end
|
153
|
-
end
|
154
|
-
end
|
155
|
-
end
|
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::Qnamaker::V4_0
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Response schema for CreateKb operation.
|
10
|
+
#
|
11
|
+
class KnowledgebaseDTO
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Unique id that identifies a knowledgebase.
|
16
|
+
attr_accessor :id
|
17
|
+
|
18
|
+
# @return [String] URL host name at which the knowledgebase is hosted.
|
19
|
+
attr_accessor :host_name
|
20
|
+
|
21
|
+
# @return [String] Time stamp at which the knowledgebase was last
|
22
|
+
# accessed (UTC).
|
23
|
+
attr_accessor :last_accessed_timestamp
|
24
|
+
|
25
|
+
# @return [String] Time stamp at which the knowledgebase was last
|
26
|
+
# modified (UTC).
|
27
|
+
attr_accessor :last_changed_timestamp
|
28
|
+
|
29
|
+
# @return [String] Time stamp at which the knowledgebase was last
|
30
|
+
# published (UTC).
|
31
|
+
attr_accessor :last_published_timestamp
|
32
|
+
|
33
|
+
# @return [String] Friendly name of the knowledgebase.
|
34
|
+
attr_accessor :name
|
35
|
+
|
36
|
+
# @return [String] User who created / owns the knowledgebase.
|
37
|
+
attr_accessor :user_id
|
38
|
+
|
39
|
+
# @return [Array<String>] URL sources from which Q-A were extracted and
|
40
|
+
# added to the knowledgebase.
|
41
|
+
attr_accessor :urls
|
42
|
+
|
43
|
+
# @return [Array<String>] Custom sources from which Q-A were extracted or
|
44
|
+
# explicitly added to the knowledgebase.
|
45
|
+
attr_accessor :sources
|
46
|
+
|
47
|
+
|
48
|
+
#
|
49
|
+
# Mapper for KnowledgebaseDTO class as Ruby Hash.
|
50
|
+
# This will be used for serialization/deserialization.
|
51
|
+
#
|
52
|
+
def self.mapper()
|
53
|
+
{
|
54
|
+
client_side_validation: true,
|
55
|
+
required: false,
|
56
|
+
serialized_name: 'KnowledgebaseDTO',
|
57
|
+
type: {
|
58
|
+
name: 'Composite',
|
59
|
+
class_name: 'KnowledgebaseDTO',
|
60
|
+
model_properties: {
|
61
|
+
id: {
|
62
|
+
client_side_validation: true,
|
63
|
+
required: false,
|
64
|
+
serialized_name: 'id',
|
65
|
+
type: {
|
66
|
+
name: 'String'
|
67
|
+
}
|
68
|
+
},
|
69
|
+
host_name: {
|
70
|
+
client_side_validation: true,
|
71
|
+
required: false,
|
72
|
+
serialized_name: 'hostName',
|
73
|
+
type: {
|
74
|
+
name: 'String'
|
75
|
+
}
|
76
|
+
},
|
77
|
+
last_accessed_timestamp: {
|
78
|
+
client_side_validation: true,
|
79
|
+
required: false,
|
80
|
+
serialized_name: 'lastAccessedTimestamp',
|
81
|
+
type: {
|
82
|
+
name: 'String'
|
83
|
+
}
|
84
|
+
},
|
85
|
+
last_changed_timestamp: {
|
86
|
+
client_side_validation: true,
|
87
|
+
required: false,
|
88
|
+
serialized_name: 'lastChangedTimestamp',
|
89
|
+
type: {
|
90
|
+
name: 'String'
|
91
|
+
}
|
92
|
+
},
|
93
|
+
last_published_timestamp: {
|
94
|
+
client_side_validation: true,
|
95
|
+
required: false,
|
96
|
+
serialized_name: 'lastPublishedTimestamp',
|
97
|
+
type: {
|
98
|
+
name: 'String'
|
99
|
+
}
|
100
|
+
},
|
101
|
+
name: {
|
102
|
+
client_side_validation: true,
|
103
|
+
required: false,
|
104
|
+
serialized_name: 'name',
|
105
|
+
type: {
|
106
|
+
name: 'String'
|
107
|
+
}
|
108
|
+
},
|
109
|
+
user_id: {
|
110
|
+
client_side_validation: true,
|
111
|
+
required: false,
|
112
|
+
serialized_name: 'userId',
|
113
|
+
type: {
|
114
|
+
name: 'String'
|
115
|
+
}
|
116
|
+
},
|
117
|
+
urls: {
|
118
|
+
client_side_validation: true,
|
119
|
+
required: false,
|
120
|
+
serialized_name: 'urls',
|
121
|
+
type: {
|
122
|
+
name: 'Sequence',
|
123
|
+
element: {
|
124
|
+
client_side_validation: true,
|
125
|
+
required: false,
|
126
|
+
serialized_name: 'StringElementType',
|
127
|
+
type: {
|
128
|
+
name: 'String'
|
129
|
+
}
|
130
|
+
}
|
131
|
+
}
|
132
|
+
},
|
133
|
+
sources: {
|
134
|
+
client_side_validation: true,
|
135
|
+
required: false,
|
136
|
+
serialized_name: 'sources',
|
137
|
+
type: {
|
138
|
+
name: 'Sequence',
|
139
|
+
element: {
|
140
|
+
client_side_validation: true,
|
141
|
+
required: false,
|
142
|
+
serialized_name: 'StringElementType',
|
143
|
+
type: {
|
144
|
+
name: 'String'
|
145
|
+
}
|
146
|
+
}
|
147
|
+
}
|
148
|
+
}
|
149
|
+
}
|
150
|
+
}
|
151
|
+
}
|
152
|
+
end
|
153
|
+
end
|
154
|
+
end
|
155
|
+
end
|
@@ -1,55 +1,55 @@
|
|
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::Qnamaker::V4_0
|
7
|
-
module Models
|
8
|
-
#
|
9
|
-
# Collection of knowledgebases owned by a user.
|
10
|
-
#
|
11
|
-
class KnowledgebasesDTO
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [Array<KnowledgebaseDTO>] Collection of knowledgebase records.
|
16
|
-
attr_accessor :knowledgebases
|
17
|
-
|
18
|
-
|
19
|
-
#
|
20
|
-
# Mapper for KnowledgebasesDTO 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: 'KnowledgebasesDTO',
|
28
|
-
type: {
|
29
|
-
name: 'Composite',
|
30
|
-
class_name: 'KnowledgebasesDTO',
|
31
|
-
model_properties: {
|
32
|
-
knowledgebases: {
|
33
|
-
client_side_validation: true,
|
34
|
-
required: false,
|
35
|
-
serialized_name: 'knowledgebases',
|
36
|
-
type: {
|
37
|
-
name: 'Sequence',
|
38
|
-
element: {
|
39
|
-
client_side_validation: true,
|
40
|
-
required: false,
|
41
|
-
serialized_name: 'KnowledgebaseDTOElementType',
|
42
|
-
type: {
|
43
|
-
name: 'Composite',
|
44
|
-
class_name: 'KnowledgebaseDTO'
|
45
|
-
}
|
46
|
-
}
|
47
|
-
}
|
48
|
-
}
|
49
|
-
}
|
50
|
-
}
|
51
|
-
}
|
52
|
-
end
|
53
|
-
end
|
54
|
-
end
|
55
|
-
end
|
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::Qnamaker::V4_0
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Collection of knowledgebases owned by a user.
|
10
|
+
#
|
11
|
+
class KnowledgebasesDTO
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Array<KnowledgebaseDTO>] Collection of knowledgebase records.
|
16
|
+
attr_accessor :knowledgebases
|
17
|
+
|
18
|
+
|
19
|
+
#
|
20
|
+
# Mapper for KnowledgebasesDTO 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: 'KnowledgebasesDTO',
|
28
|
+
type: {
|
29
|
+
name: 'Composite',
|
30
|
+
class_name: 'KnowledgebasesDTO',
|
31
|
+
model_properties: {
|
32
|
+
knowledgebases: {
|
33
|
+
client_side_validation: true,
|
34
|
+
required: false,
|
35
|
+
serialized_name: 'knowledgebases',
|
36
|
+
type: {
|
37
|
+
name: 'Sequence',
|
38
|
+
element: {
|
39
|
+
client_side_validation: true,
|
40
|
+
required: false,
|
41
|
+
serialized_name: 'KnowledgebaseDTOElementType',
|
42
|
+
type: {
|
43
|
+
name: 'Composite',
|
44
|
+
class_name: 'KnowledgebaseDTO'
|
45
|
+
}
|
46
|
+
}
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
@@ -1,65 +1,65 @@
|
|
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::Qnamaker::V4_0
|
7
|
-
module Models
|
8
|
-
#
|
9
|
-
# Name - value pair of metadata.
|
10
|
-
#
|
11
|
-
class MetadataDTO
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [String] Metadata name.
|
16
|
-
attr_accessor :name
|
17
|
-
|
18
|
-
# @return [String] Metadata value.
|
19
|
-
attr_accessor :value
|
20
|
-
|
21
|
-
|
22
|
-
#
|
23
|
-
# Mapper for MetadataDTO 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: 'MetadataDTO',
|
31
|
-
type: {
|
32
|
-
name: 'Composite',
|
33
|
-
class_name: 'MetadataDTO',
|
34
|
-
model_properties: {
|
35
|
-
name: {
|
36
|
-
client_side_validation: true,
|
37
|
-
required: true,
|
38
|
-
serialized_name: 'name',
|
39
|
-
constraints: {
|
40
|
-
MaxLength: 100,
|
41
|
-
MinLength: 1
|
42
|
-
},
|
43
|
-
type: {
|
44
|
-
name: 'String'
|
45
|
-
}
|
46
|
-
},
|
47
|
-
value: {
|
48
|
-
client_side_validation: true,
|
49
|
-
required: true,
|
50
|
-
serialized_name: 'value',
|
51
|
-
constraints: {
|
52
|
-
MaxLength: 500,
|
53
|
-
MinLength: 1
|
54
|
-
},
|
55
|
-
type: {
|
56
|
-
name: 'String'
|
57
|
-
}
|
58
|
-
}
|
59
|
-
}
|
60
|
-
}
|
61
|
-
}
|
62
|
-
end
|
63
|
-
end
|
64
|
-
end
|
65
|
-
end
|
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::Qnamaker::V4_0
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Name - value pair of metadata.
|
10
|
+
#
|
11
|
+
class MetadataDTO
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Metadata name.
|
16
|
+
attr_accessor :name
|
17
|
+
|
18
|
+
# @return [String] Metadata value.
|
19
|
+
attr_accessor :value
|
20
|
+
|
21
|
+
|
22
|
+
#
|
23
|
+
# Mapper for MetadataDTO 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: 'MetadataDTO',
|
31
|
+
type: {
|
32
|
+
name: 'Composite',
|
33
|
+
class_name: 'MetadataDTO',
|
34
|
+
model_properties: {
|
35
|
+
name: {
|
36
|
+
client_side_validation: true,
|
37
|
+
required: true,
|
38
|
+
serialized_name: 'name',
|
39
|
+
constraints: {
|
40
|
+
MaxLength: 100,
|
41
|
+
MinLength: 1
|
42
|
+
},
|
43
|
+
type: {
|
44
|
+
name: 'String'
|
45
|
+
}
|
46
|
+
},
|
47
|
+
value: {
|
48
|
+
client_side_validation: true,
|
49
|
+
required: true,
|
50
|
+
serialized_name: 'value',
|
51
|
+
constraints: {
|
52
|
+
MaxLength: 500,
|
53
|
+
MinLength: 1
|
54
|
+
},
|
55
|
+
type: {
|
56
|
+
name: 'String'
|
57
|
+
}
|
58
|
+
}
|
59
|
+
}
|
60
|
+
}
|
61
|
+
}
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|