@@ -38,7 +38,6 @@ public override Elastic.Clients.Elasticsearch.Inference.PutAlibabacloudRequest R
38
38
{
39
39
reader . ValidateToken ( System . Text . Json . JsonTokenType . StartObject ) ;
40
40
LocalJsonValue < Elastic . Clients . Elasticsearch . Inference . InferenceChunkingSettings ? > propChunkingSettings = default ;
41
- LocalJsonValue < Elastic . Clients . Elasticsearch . Inference . AlibabaCloudServiceType > propService = default ;
42
41
LocalJsonValue < Elastic . Clients . Elasticsearch . Inference . AlibabaCloudServiceSettings > propServiceSettings = default ;
43
42
LocalJsonValue < Elastic . Clients . Elasticsearch . Inference . AlibabaCloudTaskSettings ? > propTaskSettings = default ;
44
43
while ( reader . Read ( ) && reader . TokenType is System . Text . Json . JsonTokenType . PropertyName )
@@ -48,8 +47,9 @@ public override Elastic.Clients.Elasticsearch.Inference.PutAlibabacloudRequest R
48
47
continue ;
49
48
}
50
49
51
- if ( propService . TryReadProperty ( ref reader , options , PropService , null ) )
50
+ if ( reader . ValueTextEquals ( PropService ) )
52
51
{
52
+ reader . Skip ( ) ;
53
53
continue ;
54
54
}
55
55
@@ -76,7 +76,6 @@ public override Elastic.Clients.Elasticsearch.Inference.PutAlibabacloudRequest R
76
76
return new Elastic . Clients . Elasticsearch . Inference . PutAlibabacloudRequest ( Elastic . Clients . Elasticsearch . Serialization . JsonConstructorSentinel . Instance )
77
77
{
78
78
ChunkingSettings = propChunkingSettings . Value ,
79
- Service = propService . Value ,
80
79
ServiceSettings = propServiceSettings . Value ,
81
80
TaskSettings = propTaskSettings . Value
82
81
} ;
@@ -118,9 +117,8 @@ public PutAlibabacloudRequest(Elastic.Clients.Elasticsearch.Inference.AlibabaClo
118
117
}
119
118
120
119
[ System . Diagnostics . CodeAnalysis . SetsRequiredMembers ]
121
- public PutAlibabacloudRequest ( Elastic . Clients . Elasticsearch . Inference . AlibabaCloudTaskType taskType , Elastic . Clients . Elasticsearch . Id alibabacloudInferenceId , Elastic . Clients . Elasticsearch . Inference . AlibabaCloudServiceType service , Elastic . Clients . Elasticsearch . Inference . AlibabaCloudServiceSettings serviceSettings ) : base ( r => r . Required ( "task_type" , taskType ) . Required ( "alibabacloud_inference_id" , alibabacloudInferenceId ) )
120
+ public PutAlibabacloudRequest ( Elastic . Clients . Elasticsearch . Inference . AlibabaCloudTaskType taskType , Elastic . Clients . Elasticsearch . Id alibabacloudInferenceId , Elastic . Clients . Elasticsearch . Inference . AlibabaCloudServiceSettings serviceSettings ) : base ( r => r . Required ( "task_type" , taskType ) . Required ( "alibabacloud_inference_id" , alibabacloudInferenceId ) )
122
121
{
123
- Service = service ;
124
122
ServiceSettings = serviceSettings ;
125
123
}
126
124
#if NET7_0_OR_GREATER
@@ -176,11 +174,7 @@ internal PutAlibabacloudRequest(Elastic.Clients.Elasticsearch.Serialization.Json
176
174
/// The type of service supported for the specified task type. In this case, <c>alibabacloud-ai-search</c>.
177
175
/// </para>
178
176
/// </summary>
179
- public
180
- #if NET7_0_OR_GREATER
181
- required
182
- #endif
183
- Elastic. Clients . Elasticsearch . Inference . AlibabaCloudServiceType Service { get ; set ; }
177
+ public string Service => "alibabacloud-ai-search" ;
184
178
185
179
/// <summary>
186
180
/// <para>
@@ -298,17 +292,6 @@ public Elastic.Clients.Elasticsearch.Inference.PutAlibabacloudRequestDescriptor
298
292
return this ;
299
293
}
300
294
301
- /// <summary>
302
- /// <para>
303
- /// The type of service supported for the specified task type. In this case, <c>alibabacloud-ai-search</c>.
304
- /// </para>
305
- /// </summary>
306
- public Elastic . Clients . Elasticsearch . Inference . PutAlibabacloudRequestDescriptor Service ( Elastic . Clients . Elasticsearch . Inference . AlibabaCloudServiceType value )
307
- {
308
- Instance . Service = value ;
309
- return this ;
310
- }
311
-
312
295
/// <summary>
313
296
/// <para>
314
297
/// Settings used to install the inference model. These settings are specific to the <c>alibabacloud-ai-search</c> service.
0 commit comments