diff --git a/CHANGELOG b/CHANGELOG index aa6d10b7a..44304c15f 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2024-07-18 Version: 1.0.0 +初始发布 + 2024-07-10 Version: 1.0.0 - Added param for ActivateLicenseResponse . diff --git a/aliyun-net-sdk-aicontent/AiContent/Model/V20240611/AliyunConsoleOpenApiQueryAliyunConsoleServcieListRequest.cs b/aliyun-net-sdk-aicontent/AiContent/Model/V20240611/AliyunConsoleOpenApiQueryAliyunConsoleServcieListRequest.cs new file mode 100644 index 000000000..6b355a6ca --- /dev/null +++ b/aliyun-net-sdk-aicontent/AiContent/Model/V20240611/AliyunConsoleOpenApiQueryAliyunConsoleServcieListRequest.cs @@ -0,0 +1,51 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +using System.Collections.Generic; + +using Aliyun.Acs.Core; +using Aliyun.Acs.Core.Http; +using Aliyun.Acs.Core.Transform; +using Aliyun.Acs.Core.Utils; +using Aliyun.Acs.AiContent; +using Aliyun.Acs.AiContent.Transform; +using Aliyun.Acs.AiContent.Transform.V20240611; + +namespace Aliyun.Acs.AiContent.Model.V20240611 +{ + public class AliyunConsoleOpenApiQueryAliyunConsoleServcieListRequest : RoaAcsRequest + { + public AliyunConsoleOpenApiQueryAliyunConsoleServcieListRequest() + : base("AiContent", "20240611", "AliyunConsoleOpenApiQueryAliyunConsoleServcieList") + { + Protocol = ProtocolType.HTTPS; + UriPattern = "/api/v1/aliyunconsole/queryAliyunConsoleServcieList"; + Method = MethodType.GET; + } + + public override bool CheckShowJsonItemName() + { + return false; + } + + public override AliyunConsoleOpenApiQueryAliyunConsoleServcieListResponse GetResponse(UnmarshallerContext unmarshallerContext) + { + return AliyunConsoleOpenApiQueryAliyunConsoleServcieListResponseUnmarshaller.Unmarshall(unmarshallerContext); + } + } +} diff --git a/aliyun-net-sdk-aicontent/AiContent/Model/V20240611/AliyunConsoleOpenApiQueryAliyunConsoleServcieListResponse.cs b/aliyun-net-sdk-aicontent/AiContent/Model/V20240611/AliyunConsoleOpenApiQueryAliyunConsoleServcieListResponse.cs new file mode 100644 index 000000000..50f904e3a --- /dev/null +++ b/aliyun-net-sdk-aicontent/AiContent/Model/V20240611/AliyunConsoleOpenApiQueryAliyunConsoleServcieListResponse.cs @@ -0,0 +1,344 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +using System.Collections.Generic; +using Newtonsoft.Json; +using Aliyun.Acs.Core; + +namespace Aliyun.Acs.AiContent.Model.V20240611 +{ + public class AliyunConsoleOpenApiQueryAliyunConsoleServcieListResponse : AcsResponse + { + + private string requestId; + + private bool? success; + + private string errCode; + + private string errMessage; + + private List data; + + public string RequestId + { + get + { + return requestId; + } + set + { + requestId = value; + } + } + + public bool? Success + { + get + { + return success; + } + set + { + success = value; + } + } + + public string ErrCode + { + get + { + return errCode; + } + set + { + errCode = value; + } + } + + public string ErrMessage + { + get + { + return errMessage; + } + set + { + errMessage = value; + } + } + + public List Data + { + get + { + return data; + } + set + { + data = value; + } + } + + public class AliyunConsoleOpenApiQueryAliyunConsoleServcieList_DataItem + { + + private string id; + + private string modelId; + + private string name; + + private string objectType; + + private string jobStatus; + + private double? jobTrainProgress; + + private int? inferenceImageCount; + + private string createTime; + + private List inferenceJobList; + + private List imageUrl; + + public string Id + { + get + { + return id; + } + set + { + id = value; + } + } + + public string ModelId + { + get + { + return modelId; + } + set + { + modelId = value; + } + } + + public string Name + { + get + { + return name; + } + set + { + name = value; + } + } + + public string ObjectType + { + get + { + return objectType; + } + set + { + objectType = value; + } + } + + public string JobStatus + { + get + { + return jobStatus; + } + set + { + jobStatus = value; + } + } + + public double? JobTrainProgress + { + get + { + return jobTrainProgress; + } + set + { + jobTrainProgress = value; + } + } + + public int? InferenceImageCount + { + get + { + return inferenceImageCount; + } + set + { + inferenceImageCount = value; + } + } + + public string CreateTime + { + get + { + return createTime; + } + set + { + createTime = value; + } + } + + public List InferenceJobList + { + get + { + return inferenceJobList; + } + set + { + inferenceJobList = value; + } + } + + public List ImageUrl + { + get + { + return imageUrl; + } + set + { + imageUrl = value; + } + } + + public class AliyunConsoleOpenApiQueryAliyunConsoleServcieList_InferenceJobListItem + { + + private string id; + + private string promptId; + + private string modelId; + + private string jobStatus; + + private double? jobTrainProgress; + + private string createTime; + + private List resultImageUrl; + + public string Id + { + get + { + return id; + } + set + { + id = value; + } + } + + public string PromptId + { + get + { + return promptId; + } + set + { + promptId = value; + } + } + + public string ModelId + { + get + { + return modelId; + } + set + { + modelId = value; + } + } + + public string JobStatus + { + get + { + return jobStatus; + } + set + { + jobStatus = value; + } + } + + public double? JobTrainProgress + { + get + { + return jobTrainProgress; + } + set + { + jobTrainProgress = value; + } + } + + public string CreateTime + { + get + { + return createTime; + } + set + { + createTime = value; + } + } + + public List ResultImageUrl + { + get + { + return resultImageUrl; + } + set + { + resultImageUrl = value; + } + } + } + } + } +} diff --git a/aliyun-net-sdk-aicontent/AiContent/Model/V20240611/Personalizedtxt2imgAddInferenceJobRequest.cs b/aliyun-net-sdk-aicontent/AiContent/Model/V20240611/Personalizedtxt2imgAddInferenceJobRequest.cs new file mode 100644 index 000000000..b954a48c1 --- /dev/null +++ b/aliyun-net-sdk-aicontent/AiContent/Model/V20240611/Personalizedtxt2imgAddInferenceJobRequest.cs @@ -0,0 +1,66 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +using System.Collections.Generic; + +using Aliyun.Acs.Core; +using Aliyun.Acs.Core.Http; +using Aliyun.Acs.Core.Transform; +using Aliyun.Acs.Core.Utils; +using Aliyun.Acs.AiContent; +using Aliyun.Acs.AiContent.Transform; +using Aliyun.Acs.AiContent.Transform.V20240611; + +namespace Aliyun.Acs.AiContent.Model.V20240611 +{ + public class Personalizedtxt2imgAddInferenceJobRequest : RoaAcsRequest + { + public Personalizedtxt2imgAddInferenceJobRequest() + : base("AiContent", "20240611", "Personalizedtxt2imgAddInferenceJob") + { + Protocol = ProtocolType.HTTPS; + UriPattern = "/api/v1/personalizedtxt2img/addInferenceJob"; + Method = MethodType.POST; + } + + private string body; + + public string Body + { + get + { + return body; + } + set + { + body = value; + DictionaryUtil.Add(BodyParameters, "body", value); + } + } + + public override bool CheckShowJsonItemName() + { + return false; + } + + public override Personalizedtxt2imgAddInferenceJobResponse GetResponse(UnmarshallerContext unmarshallerContext) + { + return Personalizedtxt2imgAddInferenceJobResponseUnmarshaller.Unmarshall(unmarshallerContext); + } + } +} diff --git a/aliyun-net-sdk-aicontent/AiContent/Model/V20240611/Personalizedtxt2imgAddInferenceJobResponse.cs b/aliyun-net-sdk-aicontent/AiContent/Model/V20240611/Personalizedtxt2imgAddInferenceJobResponse.cs new file mode 100644 index 000000000..4e7ec25d4 --- /dev/null +++ b/aliyun-net-sdk-aicontent/AiContent/Model/V20240611/Personalizedtxt2imgAddInferenceJobResponse.cs @@ -0,0 +1,116 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +using System.Collections.Generic; +using Newtonsoft.Json; +using Aliyun.Acs.Core; + +namespace Aliyun.Acs.AiContent.Model.V20240611 +{ + public class Personalizedtxt2imgAddInferenceJobResponse : AcsResponse + { + + private string requestId; + + private bool? success; + + private string errCode; + + private string errMessage; + + private Personalizedtxt2imgAddInferenceJob_Data data; + + public string RequestId + { + get + { + return requestId; + } + set + { + requestId = value; + } + } + + public bool? Success + { + get + { + return success; + } + set + { + success = value; + } + } + + public string ErrCode + { + get + { + return errCode; + } + set + { + errCode = value; + } + } + + public string ErrMessage + { + get + { + return errMessage; + } + set + { + errMessage = value; + } + } + + public Personalizedtxt2imgAddInferenceJob_Data Data + { + get + { + return data; + } + set + { + data = value; + } + } + + public class Personalizedtxt2imgAddInferenceJob_Data + { + + private string modelTrainStatus; + + public string ModelTrainStatus + { + get + { + return modelTrainStatus; + } + set + { + modelTrainStatus = value; + } + } + } + } +} diff --git a/aliyun-net-sdk-aicontent/AiContent/Model/V20240611/Personalizedtxt2imgAddModelTrainJobRequest.cs b/aliyun-net-sdk-aicontent/AiContent/Model/V20240611/Personalizedtxt2imgAddModelTrainJobRequest.cs new file mode 100644 index 000000000..ec5ad72c4 --- /dev/null +++ b/aliyun-net-sdk-aicontent/AiContent/Model/V20240611/Personalizedtxt2imgAddModelTrainJobRequest.cs @@ -0,0 +1,66 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +using System.Collections.Generic; + +using Aliyun.Acs.Core; +using Aliyun.Acs.Core.Http; +using Aliyun.Acs.Core.Transform; +using Aliyun.Acs.Core.Utils; +using Aliyun.Acs.AiContent; +using Aliyun.Acs.AiContent.Transform; +using Aliyun.Acs.AiContent.Transform.V20240611; + +namespace Aliyun.Acs.AiContent.Model.V20240611 +{ + public class Personalizedtxt2imgAddModelTrainJobRequest : RoaAcsRequest + { + public Personalizedtxt2imgAddModelTrainJobRequest() + : base("AiContent", "20240611", "Personalizedtxt2imgAddModelTrainJob") + { + Protocol = ProtocolType.HTTPS; + UriPattern = "/api/v1/personalizedtxt2img/addModelTrainJob"; + Method = MethodType.POST; + } + + private string body; + + public string Body + { + get + { + return body; + } + set + { + body = value; + DictionaryUtil.Add(BodyParameters, "body", value); + } + } + + public override bool CheckShowJsonItemName() + { + return false; + } + + public override Personalizedtxt2imgAddModelTrainJobResponse GetResponse(UnmarshallerContext unmarshallerContext) + { + return Personalizedtxt2imgAddModelTrainJobResponseUnmarshaller.Unmarshall(unmarshallerContext); + } + } +} diff --git a/aliyun-net-sdk-aicontent/AiContent/Model/V20240611/Personalizedtxt2imgAddModelTrainJobResponse.cs b/aliyun-net-sdk-aicontent/AiContent/Model/V20240611/Personalizedtxt2imgAddModelTrainJobResponse.cs new file mode 100644 index 000000000..70ae1049f --- /dev/null +++ b/aliyun-net-sdk-aicontent/AiContent/Model/V20240611/Personalizedtxt2imgAddModelTrainJobResponse.cs @@ -0,0 +1,116 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +using System.Collections.Generic; +using Newtonsoft.Json; +using Aliyun.Acs.Core; + +namespace Aliyun.Acs.AiContent.Model.V20240611 +{ + public class Personalizedtxt2imgAddModelTrainJobResponse : AcsResponse + { + + private string requestId; + + private bool? success; + + private string errCode; + + private string errMessage; + + private Personalizedtxt2imgAddModelTrainJob_Data data; + + public string RequestId + { + get + { + return requestId; + } + set + { + requestId = value; + } + } + + public bool? Success + { + get + { + return success; + } + set + { + success = value; + } + } + + public string ErrCode + { + get + { + return errCode; + } + set + { + errCode = value; + } + } + + public string ErrMessage + { + get + { + return errMessage; + } + set + { + errMessage = value; + } + } + + public Personalizedtxt2imgAddModelTrainJob_Data Data + { + get + { + return data; + } + set + { + data = value; + } + } + + public class Personalizedtxt2imgAddModelTrainJob_Data + { + + private string modelTrainStatus; + + public string ModelTrainStatus + { + get + { + return modelTrainStatus; + } + set + { + modelTrainStatus = value; + } + } + } + } +} diff --git a/aliyun-net-sdk-aicontent/AiContent/Model/V20240611/Personalizedtxt2imgQueryImageAssetRequest.cs b/aliyun-net-sdk-aicontent/AiContent/Model/V20240611/Personalizedtxt2imgQueryImageAssetRequest.cs new file mode 100644 index 000000000..771d48ed4 --- /dev/null +++ b/aliyun-net-sdk-aicontent/AiContent/Model/V20240611/Personalizedtxt2imgQueryImageAssetRequest.cs @@ -0,0 +1,111 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +using System.Collections.Generic; + +using Aliyun.Acs.Core; +using Aliyun.Acs.Core.Http; +using Aliyun.Acs.Core.Transform; +using Aliyun.Acs.Core.Utils; +using Aliyun.Acs.AiContent; +using Aliyun.Acs.AiContent.Transform; +using Aliyun.Acs.AiContent.Transform.V20240611; + +namespace Aliyun.Acs.AiContent.Model.V20240611 +{ + public class Personalizedtxt2imgQueryImageAssetRequest : RoaAcsRequest + { + public Personalizedtxt2imgQueryImageAssetRequest() + : base("AiContent", "20240611", "Personalizedtxt2imgQueryImageAsset") + { + Protocol = ProtocolType.HTTPS; + UriPattern = "/api/v1/personalizedtxt2img/queryImageAsset"; + Method = MethodType.GET; + } + + private string imageId; + + private string modelId; + + private string encodeFormat; + + private string promptId; + + public string ImageId + { + get + { + return imageId; + } + set + { + imageId = value; + DictionaryUtil.Add(QueryParameters, "imageId", value); + } + } + + public string ModelId + { + get + { + return modelId; + } + set + { + modelId = value; + DictionaryUtil.Add(QueryParameters, "modelId", value); + } + } + + public string EncodeFormat + { + get + { + return encodeFormat; + } + set + { + encodeFormat = value; + DictionaryUtil.Add(QueryParameters, "encodeFormat", value); + } + } + + public string PromptId + { + get + { + return promptId; + } + set + { + promptId = value; + DictionaryUtil.Add(QueryParameters, "promptId", value); + } + } + + public override bool CheckShowJsonItemName() + { + return false; + } + + public override Personalizedtxt2imgQueryImageAssetResponse GetResponse(UnmarshallerContext unmarshallerContext) + { + return Personalizedtxt2imgQueryImageAssetResponseUnmarshaller.Unmarshall(unmarshallerContext); + } + } +} diff --git a/aliyun-net-sdk-aicontent/AiContent/Model/V20240611/Personalizedtxt2imgQueryImageAssetResponse.cs b/aliyun-net-sdk-aicontent/AiContent/Model/V20240611/Personalizedtxt2imgQueryImageAssetResponse.cs new file mode 100644 index 000000000..8f7f65939 --- /dev/null +++ b/aliyun-net-sdk-aicontent/AiContent/Model/V20240611/Personalizedtxt2imgQueryImageAssetResponse.cs @@ -0,0 +1,28 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +using System.Collections.Generic; +using Newtonsoft.Json; +using Aliyun.Acs.Core; + +namespace Aliyun.Acs.AiContent.Model.V20240611 +{ + public class Personalizedtxt2imgQueryImageAssetResponse : AcsResponse + { + } +} diff --git a/aliyun-net-sdk-aicontent/AiContent/Model/V20240611/Personalizedtxt2imgQueryInferenceJobInfoRequest.cs b/aliyun-net-sdk-aicontent/AiContent/Model/V20240611/Personalizedtxt2imgQueryInferenceJobInfoRequest.cs new file mode 100644 index 000000000..94ab087ab --- /dev/null +++ b/aliyun-net-sdk-aicontent/AiContent/Model/V20240611/Personalizedtxt2imgQueryInferenceJobInfoRequest.cs @@ -0,0 +1,66 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +using System.Collections.Generic; + +using Aliyun.Acs.Core; +using Aliyun.Acs.Core.Http; +using Aliyun.Acs.Core.Transform; +using Aliyun.Acs.Core.Utils; +using Aliyun.Acs.AiContent; +using Aliyun.Acs.AiContent.Transform; +using Aliyun.Acs.AiContent.Transform.V20240611; + +namespace Aliyun.Acs.AiContent.Model.V20240611 +{ + public class Personalizedtxt2imgQueryInferenceJobInfoRequest : RoaAcsRequest + { + public Personalizedtxt2imgQueryInferenceJobInfoRequest() + : base("AiContent", "20240611", "Personalizedtxt2imgQueryInferenceJobInfo") + { + Protocol = ProtocolType.HTTPS; + UriPattern = "/api/v1/personalizedtxt2img/queryInferenceJobInfo"; + Method = MethodType.GET; + } + + private string inferenceJobId; + + public string InferenceJobId + { + get + { + return inferenceJobId; + } + set + { + inferenceJobId = value; + DictionaryUtil.Add(QueryParameters, "inferenceJobId", value); + } + } + + public override bool CheckShowJsonItemName() + { + return false; + } + + public override Personalizedtxt2imgQueryInferenceJobInfoResponse GetResponse(UnmarshallerContext unmarshallerContext) + { + return Personalizedtxt2imgQueryInferenceJobInfoResponseUnmarshaller.Unmarshall(unmarshallerContext); + } + } +} diff --git a/aliyun-net-sdk-aicontent/AiContent/Model/V20240611/Personalizedtxt2imgQueryInferenceJobInfoResponse.cs b/aliyun-net-sdk-aicontent/AiContent/Model/V20240611/Personalizedtxt2imgQueryInferenceJobInfoResponse.cs new file mode 100644 index 000000000..44dc8844c --- /dev/null +++ b/aliyun-net-sdk-aicontent/AiContent/Model/V20240611/Personalizedtxt2imgQueryInferenceJobInfoResponse.cs @@ -0,0 +1,116 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +using System.Collections.Generic; +using Newtonsoft.Json; +using Aliyun.Acs.Core; + +namespace Aliyun.Acs.AiContent.Model.V20240611 +{ + public class Personalizedtxt2imgQueryInferenceJobInfoResponse : AcsResponse + { + + private string requestId; + + private bool? success; + + private string errCode; + + private string errMessage; + + private Personalizedtxt2imgQueryInferenceJobInfo_Data data; + + public string RequestId + { + get + { + return requestId; + } + set + { + requestId = value; + } + } + + public bool? Success + { + get + { + return success; + } + set + { + success = value; + } + } + + public string ErrCode + { + get + { + return errCode; + } + set + { + errCode = value; + } + } + + public string ErrMessage + { + get + { + return errMessage; + } + set + { + errMessage = value; + } + } + + public Personalizedtxt2imgQueryInferenceJobInfo_Data Data + { + get + { + return data; + } + set + { + data = value; + } + } + + public class Personalizedtxt2imgQueryInferenceJobInfo_Data + { + + private string modelTrainStatus; + + public string ModelTrainStatus + { + get + { + return modelTrainStatus; + } + set + { + modelTrainStatus = value; + } + } + } + } +} diff --git a/aliyun-net-sdk-aicontent/AiContent/Model/V20240611/Personalizedtxt2imgQueryModelTrainJobListRequest.cs b/aliyun-net-sdk-aicontent/AiContent/Model/V20240611/Personalizedtxt2imgQueryModelTrainJobListRequest.cs new file mode 100644 index 000000000..56a42501d --- /dev/null +++ b/aliyun-net-sdk-aicontent/AiContent/Model/V20240611/Personalizedtxt2imgQueryModelTrainJobListRequest.cs @@ -0,0 +1,51 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +using System.Collections.Generic; + +using Aliyun.Acs.Core; +using Aliyun.Acs.Core.Http; +using Aliyun.Acs.Core.Transform; +using Aliyun.Acs.Core.Utils; +using Aliyun.Acs.AiContent; +using Aliyun.Acs.AiContent.Transform; +using Aliyun.Acs.AiContent.Transform.V20240611; + +namespace Aliyun.Acs.AiContent.Model.V20240611 +{ + public class Personalizedtxt2imgQueryModelTrainJobListRequest : RoaAcsRequest + { + public Personalizedtxt2imgQueryModelTrainJobListRequest() + : base("AiContent", "20240611", "Personalizedtxt2imgQueryModelTrainJobList") + { + Protocol = ProtocolType.HTTPS; + UriPattern = "/api/v1/personalizedtxt2img/queryModelTrainJobList"; + Method = MethodType.GET; + } + + public override bool CheckShowJsonItemName() + { + return false; + } + + public override Personalizedtxt2imgQueryModelTrainJobListResponse GetResponse(UnmarshallerContext unmarshallerContext) + { + return Personalizedtxt2imgQueryModelTrainJobListResponseUnmarshaller.Unmarshall(unmarshallerContext); + } + } +} diff --git a/aliyun-net-sdk-aicontent/AiContent/Model/V20240611/Personalizedtxt2imgQueryModelTrainJobListResponse.cs b/aliyun-net-sdk-aicontent/AiContent/Model/V20240611/Personalizedtxt2imgQueryModelTrainJobListResponse.cs new file mode 100644 index 000000000..66767d280 --- /dev/null +++ b/aliyun-net-sdk-aicontent/AiContent/Model/V20240611/Personalizedtxt2imgQueryModelTrainJobListResponse.cs @@ -0,0 +1,344 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +using System.Collections.Generic; +using Newtonsoft.Json; +using Aliyun.Acs.Core; + +namespace Aliyun.Acs.AiContent.Model.V20240611 +{ + public class Personalizedtxt2imgQueryModelTrainJobListResponse : AcsResponse + { + + private string requestId; + + private bool? success; + + private string errCode; + + private string errMessage; + + private List data; + + public string RequestId + { + get + { + return requestId; + } + set + { + requestId = value; + } + } + + public bool? Success + { + get + { + return success; + } + set + { + success = value; + } + } + + public string ErrCode + { + get + { + return errCode; + } + set + { + errCode = value; + } + } + + public string ErrMessage + { + get + { + return errMessage; + } + set + { + errMessage = value; + } + } + + public List Data + { + get + { + return data; + } + set + { + data = value; + } + } + + public class Personalizedtxt2imgQueryModelTrainJobList_DataItem + { + + private string id; + + private string modelId; + + private string name; + + private string objectType; + + private string jobStatus; + + private double? jobTrainProgress; + + private int? inferenceImageCount; + + private string createTime; + + private List inferenceJobList; + + private List imageUrl; + + public string Id + { + get + { + return id; + } + set + { + id = value; + } + } + + public string ModelId + { + get + { + return modelId; + } + set + { + modelId = value; + } + } + + public string Name + { + get + { + return name; + } + set + { + name = value; + } + } + + public string ObjectType + { + get + { + return objectType; + } + set + { + objectType = value; + } + } + + public string JobStatus + { + get + { + return jobStatus; + } + set + { + jobStatus = value; + } + } + + public double? JobTrainProgress + { + get + { + return jobTrainProgress; + } + set + { + jobTrainProgress = value; + } + } + + public int? InferenceImageCount + { + get + { + return inferenceImageCount; + } + set + { + inferenceImageCount = value; + } + } + + public string CreateTime + { + get + { + return createTime; + } + set + { + createTime = value; + } + } + + public List InferenceJobList + { + get + { + return inferenceJobList; + } + set + { + inferenceJobList = value; + } + } + + public List ImageUrl + { + get + { + return imageUrl; + } + set + { + imageUrl = value; + } + } + + public class Personalizedtxt2imgQueryModelTrainJobList_InferenceJobListItem + { + + private string id; + + private string promptId; + + private string modelId; + + private string jobStatus; + + private double? jobTrainProgress; + + private string createTime; + + private List resultImageUrl; + + public string Id + { + get + { + return id; + } + set + { + id = value; + } + } + + public string PromptId + { + get + { + return promptId; + } + set + { + promptId = value; + } + } + + public string ModelId + { + get + { + return modelId; + } + set + { + modelId = value; + } + } + + public string JobStatus + { + get + { + return jobStatus; + } + set + { + jobStatus = value; + } + } + + public double? JobTrainProgress + { + get + { + return jobTrainProgress; + } + set + { + jobTrainProgress = value; + } + } + + public string CreateTime + { + get + { + return createTime; + } + set + { + createTime = value; + } + } + + public List ResultImageUrl + { + get + { + return resultImageUrl; + } + set + { + resultImageUrl = value; + } + } + } + } + } +} diff --git a/aliyun-net-sdk-aicontent/AiContent/Model/V20240611/Personalizedtxt2imgQueryModelTrainStatusRequest.cs b/aliyun-net-sdk-aicontent/AiContent/Model/V20240611/Personalizedtxt2imgQueryModelTrainStatusRequest.cs new file mode 100644 index 000000000..286524831 --- /dev/null +++ b/aliyun-net-sdk-aicontent/AiContent/Model/V20240611/Personalizedtxt2imgQueryModelTrainStatusRequest.cs @@ -0,0 +1,66 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +using System.Collections.Generic; + +using Aliyun.Acs.Core; +using Aliyun.Acs.Core.Http; +using Aliyun.Acs.Core.Transform; +using Aliyun.Acs.Core.Utils; +using Aliyun.Acs.AiContent; +using Aliyun.Acs.AiContent.Transform; +using Aliyun.Acs.AiContent.Transform.V20240611; + +namespace Aliyun.Acs.AiContent.Model.V20240611 +{ + public class Personalizedtxt2imgQueryModelTrainStatusRequest : RoaAcsRequest + { + public Personalizedtxt2imgQueryModelTrainStatusRequest() + : base("AiContent", "20240611", "Personalizedtxt2imgQueryModelTrainStatus") + { + Protocol = ProtocolType.HTTPS; + UriPattern = "/api/v1/personalizedtxt2img/queryModelTrainStatus"; + Method = MethodType.GET; + } + + private string modelId; + + public string ModelId + { + get + { + return modelId; + } + set + { + modelId = value; + DictionaryUtil.Add(QueryParameters, "modelId", value); + } + } + + public override bool CheckShowJsonItemName() + { + return false; + } + + public override Personalizedtxt2imgQueryModelTrainStatusResponse GetResponse(UnmarshallerContext unmarshallerContext) + { + return Personalizedtxt2imgQueryModelTrainStatusResponseUnmarshaller.Unmarshall(unmarshallerContext); + } + } +} diff --git a/aliyun-net-sdk-aicontent/AiContent/Model/V20240611/Personalizedtxt2imgQueryModelTrainStatusResponse.cs b/aliyun-net-sdk-aicontent/AiContent/Model/V20240611/Personalizedtxt2imgQueryModelTrainStatusResponse.cs new file mode 100644 index 000000000..710cf7777 --- /dev/null +++ b/aliyun-net-sdk-aicontent/AiContent/Model/V20240611/Personalizedtxt2imgQueryModelTrainStatusResponse.cs @@ -0,0 +1,116 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +using System.Collections.Generic; +using Newtonsoft.Json; +using Aliyun.Acs.Core; + +namespace Aliyun.Acs.AiContent.Model.V20240611 +{ + public class Personalizedtxt2imgQueryModelTrainStatusResponse : AcsResponse + { + + private string requestId; + + private bool? success; + + private string errCode; + + private string errMessage; + + private Personalizedtxt2imgQueryModelTrainStatus_Data data; + + public string RequestId + { + get + { + return requestId; + } + set + { + requestId = value; + } + } + + public bool? Success + { + get + { + return success; + } + set + { + success = value; + } + } + + public string ErrCode + { + get + { + return errCode; + } + set + { + errCode = value; + } + } + + public string ErrMessage + { + get + { + return errMessage; + } + set + { + errMessage = value; + } + } + + public Personalizedtxt2imgQueryModelTrainStatus_Data Data + { + get + { + return data; + } + set + { + data = value; + } + } + + public class Personalizedtxt2imgQueryModelTrainStatus_Data + { + + private string modelTrainStatus; + + public string ModelTrainStatus + { + get + { + return modelTrainStatus; + } + set + { + modelTrainStatus = value; + } + } + } + } +} diff --git a/aliyun-net-sdk-aicontent/AiContent/Transform/V20240611/AliyunConsoleOpenApiQueryAliyunConsoleServcieListResponseUnmarshaller.cs b/aliyun-net-sdk-aicontent/AiContent/Transform/V20240611/AliyunConsoleOpenApiQueryAliyunConsoleServcieListResponseUnmarshaller.cs new file mode 100644 index 000000000..523681aac --- /dev/null +++ b/aliyun-net-sdk-aicontent/AiContent/Transform/V20240611/AliyunConsoleOpenApiQueryAliyunConsoleServcieListResponseUnmarshaller.cs @@ -0,0 +1,84 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +using System; +using System.Collections.Generic; + +using Aliyun.Acs.Core.Transform; +using Aliyun.Acs.AiContent.Model.V20240611; + +namespace Aliyun.Acs.AiContent.Transform.V20240611 +{ + public class AliyunConsoleOpenApiQueryAliyunConsoleServcieListResponseUnmarshaller + { + public static AliyunConsoleOpenApiQueryAliyunConsoleServcieListResponse Unmarshall(UnmarshallerContext _ctx) + { + AliyunConsoleOpenApiQueryAliyunConsoleServcieListResponse aliyunConsoleOpenApiQueryAliyunConsoleServcieListResponse = new AliyunConsoleOpenApiQueryAliyunConsoleServcieListResponse(); + + aliyunConsoleOpenApiQueryAliyunConsoleServcieListResponse.HttpResponse = _ctx.HttpResponse; + aliyunConsoleOpenApiQueryAliyunConsoleServcieListResponse.RequestId = _ctx.StringValue("AliyunConsoleOpenApiQueryAliyunConsoleServcieList.requestId"); + aliyunConsoleOpenApiQueryAliyunConsoleServcieListResponse.Success = _ctx.BooleanValue("AliyunConsoleOpenApiQueryAliyunConsoleServcieList.success"); + aliyunConsoleOpenApiQueryAliyunConsoleServcieListResponse.ErrCode = _ctx.StringValue("AliyunConsoleOpenApiQueryAliyunConsoleServcieList.errCode"); + aliyunConsoleOpenApiQueryAliyunConsoleServcieListResponse.ErrMessage = _ctx.StringValue("AliyunConsoleOpenApiQueryAliyunConsoleServcieList.errMessage"); + + List aliyunConsoleOpenApiQueryAliyunConsoleServcieListResponse_data = new List(); + for (int i = 0; i < _ctx.Length("AliyunConsoleOpenApiQueryAliyunConsoleServcieList.Data.Length"); i++) { + AliyunConsoleOpenApiQueryAliyunConsoleServcieListResponse.AliyunConsoleOpenApiQueryAliyunConsoleServcieList_DataItem dataItem = new AliyunConsoleOpenApiQueryAliyunConsoleServcieListResponse.AliyunConsoleOpenApiQueryAliyunConsoleServcieList_DataItem(); + dataItem.Id = _ctx.StringValue("AliyunConsoleOpenApiQueryAliyunConsoleServcieList.Data["+ i +"].id"); + dataItem.ModelId = _ctx.StringValue("AliyunConsoleOpenApiQueryAliyunConsoleServcieList.Data["+ i +"].modelId"); + dataItem.Name = _ctx.StringValue("AliyunConsoleOpenApiQueryAliyunConsoleServcieList.Data["+ i +"].name"); + dataItem.ObjectType = _ctx.StringValue("AliyunConsoleOpenApiQueryAliyunConsoleServcieList.Data["+ i +"].objectType"); + dataItem.JobStatus = _ctx.StringValue("AliyunConsoleOpenApiQueryAliyunConsoleServcieList.Data["+ i +"].jobStatus"); + dataItem.JobTrainProgress = _ctx.DoubleValue("AliyunConsoleOpenApiQueryAliyunConsoleServcieList.Data["+ i +"].jobTrainProgress"); + dataItem.InferenceImageCount = _ctx.IntegerValue("AliyunConsoleOpenApiQueryAliyunConsoleServcieList.Data["+ i +"].inferenceImageCount"); + dataItem.CreateTime = _ctx.StringValue("AliyunConsoleOpenApiQueryAliyunConsoleServcieList.Data["+ i +"].createTime"); + + List dataItem_imageUrl = new List(); + for (int j = 0; j < _ctx.Length("AliyunConsoleOpenApiQueryAliyunConsoleServcieList.Data["+ i +"].ImageUrl.Length"); j++) { + dataItem_imageUrl.Add(_ctx.StringValue("AliyunConsoleOpenApiQueryAliyunConsoleServcieList.Data["+ i +"].ImageUrl["+ j +"]")); + } + dataItem.ImageUrl = dataItem_imageUrl; + + List dataItem_inferenceJobList = new List(); + for (int j = 0; j < _ctx.Length("AliyunConsoleOpenApiQueryAliyunConsoleServcieList.Data["+ i +"].InferenceJobList.Length"); j++) { + AliyunConsoleOpenApiQueryAliyunConsoleServcieListResponse.AliyunConsoleOpenApiQueryAliyunConsoleServcieList_DataItem.AliyunConsoleOpenApiQueryAliyunConsoleServcieList_InferenceJobListItem inferenceJobListItem = new AliyunConsoleOpenApiQueryAliyunConsoleServcieListResponse.AliyunConsoleOpenApiQueryAliyunConsoleServcieList_DataItem.AliyunConsoleOpenApiQueryAliyunConsoleServcieList_InferenceJobListItem(); + inferenceJobListItem.Id = _ctx.StringValue("AliyunConsoleOpenApiQueryAliyunConsoleServcieList.Data["+ i +"].InferenceJobList["+ j +"].id"); + inferenceJobListItem.PromptId = _ctx.StringValue("AliyunConsoleOpenApiQueryAliyunConsoleServcieList.Data["+ i +"].InferenceJobList["+ j +"].promptId"); + inferenceJobListItem.ModelId = _ctx.StringValue("AliyunConsoleOpenApiQueryAliyunConsoleServcieList.Data["+ i +"].InferenceJobList["+ j +"].modelId"); + inferenceJobListItem.JobStatus = _ctx.StringValue("AliyunConsoleOpenApiQueryAliyunConsoleServcieList.Data["+ i +"].InferenceJobList["+ j +"].jobStatus"); + inferenceJobListItem.JobTrainProgress = _ctx.DoubleValue("AliyunConsoleOpenApiQueryAliyunConsoleServcieList.Data["+ i +"].InferenceJobList["+ j +"].jobTrainProgress"); + inferenceJobListItem.CreateTime = _ctx.StringValue("AliyunConsoleOpenApiQueryAliyunConsoleServcieList.Data["+ i +"].InferenceJobList["+ j +"].createTime"); + + List inferenceJobListItem_resultImageUrl = new List(); + for (int k = 0; k < _ctx.Length("AliyunConsoleOpenApiQueryAliyunConsoleServcieList.Data["+ i +"].InferenceJobList["+ j +"].ResultImageUrl.Length"); k++) { + inferenceJobListItem_resultImageUrl.Add(_ctx.StringValue("AliyunConsoleOpenApiQueryAliyunConsoleServcieList.Data["+ i +"].InferenceJobList["+ j +"].ResultImageUrl["+ k +"]")); + } + inferenceJobListItem.ResultImageUrl = inferenceJobListItem_resultImageUrl; + + dataItem_inferenceJobList.Add(inferenceJobListItem); + } + dataItem.InferenceJobList = dataItem_inferenceJobList; + + aliyunConsoleOpenApiQueryAliyunConsoleServcieListResponse_data.Add(dataItem); + } + aliyunConsoleOpenApiQueryAliyunConsoleServcieListResponse.Data = aliyunConsoleOpenApiQueryAliyunConsoleServcieListResponse_data; + + return aliyunConsoleOpenApiQueryAliyunConsoleServcieListResponse; + } + } +} diff --git a/aliyun-net-sdk-aicontent/AiContent/Transform/V20240611/Personalizedtxt2imgAddInferenceJobResponseUnmarshaller.cs b/aliyun-net-sdk-aicontent/AiContent/Transform/V20240611/Personalizedtxt2imgAddInferenceJobResponseUnmarshaller.cs new file mode 100644 index 000000000..ce972a72e --- /dev/null +++ b/aliyun-net-sdk-aicontent/AiContent/Transform/V20240611/Personalizedtxt2imgAddInferenceJobResponseUnmarshaller.cs @@ -0,0 +1,46 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +using System; +using System.Collections.Generic; + +using Aliyun.Acs.Core.Transform; +using Aliyun.Acs.AiContent.Model.V20240611; + +namespace Aliyun.Acs.AiContent.Transform.V20240611 +{ + public class Personalizedtxt2imgAddInferenceJobResponseUnmarshaller + { + public static Personalizedtxt2imgAddInferenceJobResponse Unmarshall(UnmarshallerContext _ctx) + { + Personalizedtxt2imgAddInferenceJobResponse personalizedtxt2imgAddInferenceJobResponse = new Personalizedtxt2imgAddInferenceJobResponse(); + + personalizedtxt2imgAddInferenceJobResponse.HttpResponse = _ctx.HttpResponse; + personalizedtxt2imgAddInferenceJobResponse.RequestId = _ctx.StringValue("Personalizedtxt2imgAddInferenceJob.requestId"); + personalizedtxt2imgAddInferenceJobResponse.Success = _ctx.BooleanValue("Personalizedtxt2imgAddInferenceJob.success"); + personalizedtxt2imgAddInferenceJobResponse.ErrCode = _ctx.StringValue("Personalizedtxt2imgAddInferenceJob.errCode"); + personalizedtxt2imgAddInferenceJobResponse.ErrMessage = _ctx.StringValue("Personalizedtxt2imgAddInferenceJob.errMessage"); + + Personalizedtxt2imgAddInferenceJobResponse.Personalizedtxt2imgAddInferenceJob_Data data = new Personalizedtxt2imgAddInferenceJobResponse.Personalizedtxt2imgAddInferenceJob_Data(); + data.ModelTrainStatus = _ctx.StringValue("Personalizedtxt2imgAddInferenceJob.Data.modelTrainStatus"); + personalizedtxt2imgAddInferenceJobResponse.Data = data; + + return personalizedtxt2imgAddInferenceJobResponse; + } + } +} diff --git a/aliyun-net-sdk-aicontent/AiContent/Transform/V20240611/Personalizedtxt2imgAddModelTrainJobResponseUnmarshaller.cs b/aliyun-net-sdk-aicontent/AiContent/Transform/V20240611/Personalizedtxt2imgAddModelTrainJobResponseUnmarshaller.cs new file mode 100644 index 000000000..1ba081023 --- /dev/null +++ b/aliyun-net-sdk-aicontent/AiContent/Transform/V20240611/Personalizedtxt2imgAddModelTrainJobResponseUnmarshaller.cs @@ -0,0 +1,46 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +using System; +using System.Collections.Generic; + +using Aliyun.Acs.Core.Transform; +using Aliyun.Acs.AiContent.Model.V20240611; + +namespace Aliyun.Acs.AiContent.Transform.V20240611 +{ + public class Personalizedtxt2imgAddModelTrainJobResponseUnmarshaller + { + public static Personalizedtxt2imgAddModelTrainJobResponse Unmarshall(UnmarshallerContext _ctx) + { + Personalizedtxt2imgAddModelTrainJobResponse personalizedtxt2imgAddModelTrainJobResponse = new Personalizedtxt2imgAddModelTrainJobResponse(); + + personalizedtxt2imgAddModelTrainJobResponse.HttpResponse = _ctx.HttpResponse; + personalizedtxt2imgAddModelTrainJobResponse.RequestId = _ctx.StringValue("Personalizedtxt2imgAddModelTrainJob.requestId"); + personalizedtxt2imgAddModelTrainJobResponse.Success = _ctx.BooleanValue("Personalizedtxt2imgAddModelTrainJob.success"); + personalizedtxt2imgAddModelTrainJobResponse.ErrCode = _ctx.StringValue("Personalizedtxt2imgAddModelTrainJob.errCode"); + personalizedtxt2imgAddModelTrainJobResponse.ErrMessage = _ctx.StringValue("Personalizedtxt2imgAddModelTrainJob.errMessage"); + + Personalizedtxt2imgAddModelTrainJobResponse.Personalizedtxt2imgAddModelTrainJob_Data data = new Personalizedtxt2imgAddModelTrainJobResponse.Personalizedtxt2imgAddModelTrainJob_Data(); + data.ModelTrainStatus = _ctx.StringValue("Personalizedtxt2imgAddModelTrainJob.Data.modelTrainStatus"); + personalizedtxt2imgAddModelTrainJobResponse.Data = data; + + return personalizedtxt2imgAddModelTrainJobResponse; + } + } +} diff --git a/aliyun-net-sdk-aicontent/AiContent/Transform/V20240611/Personalizedtxt2imgQueryImageAssetResponseUnmarshaller.cs b/aliyun-net-sdk-aicontent/AiContent/Transform/V20240611/Personalizedtxt2imgQueryImageAssetResponseUnmarshaller.cs new file mode 100644 index 000000000..1610ba03c --- /dev/null +++ b/aliyun-net-sdk-aicontent/AiContent/Transform/V20240611/Personalizedtxt2imgQueryImageAssetResponseUnmarshaller.cs @@ -0,0 +1,38 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +using System; +using System.Collections.Generic; + +using Aliyun.Acs.Core.Transform; +using Aliyun.Acs.AiContent.Model.V20240611; + +namespace Aliyun.Acs.AiContent.Transform.V20240611 +{ + public class Personalizedtxt2imgQueryImageAssetResponseUnmarshaller + { + public static Personalizedtxt2imgQueryImageAssetResponse Unmarshall(UnmarshallerContext _ctx) + { + Personalizedtxt2imgQueryImageAssetResponse personalizedtxt2imgQueryImageAssetResponse = new Personalizedtxt2imgQueryImageAssetResponse(); + + personalizedtxt2imgQueryImageAssetResponse.HttpResponse = _ctx.HttpResponse; + + return personalizedtxt2imgQueryImageAssetResponse; + } + } +} diff --git a/aliyun-net-sdk-aicontent/AiContent/Transform/V20240611/Personalizedtxt2imgQueryInferenceJobInfoResponseUnmarshaller.cs b/aliyun-net-sdk-aicontent/AiContent/Transform/V20240611/Personalizedtxt2imgQueryInferenceJobInfoResponseUnmarshaller.cs new file mode 100644 index 000000000..face53e8d --- /dev/null +++ b/aliyun-net-sdk-aicontent/AiContent/Transform/V20240611/Personalizedtxt2imgQueryInferenceJobInfoResponseUnmarshaller.cs @@ -0,0 +1,46 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +using System; +using System.Collections.Generic; + +using Aliyun.Acs.Core.Transform; +using Aliyun.Acs.AiContent.Model.V20240611; + +namespace Aliyun.Acs.AiContent.Transform.V20240611 +{ + public class Personalizedtxt2imgQueryInferenceJobInfoResponseUnmarshaller + { + public static Personalizedtxt2imgQueryInferenceJobInfoResponse Unmarshall(UnmarshallerContext _ctx) + { + Personalizedtxt2imgQueryInferenceJobInfoResponse personalizedtxt2imgQueryInferenceJobInfoResponse = new Personalizedtxt2imgQueryInferenceJobInfoResponse(); + + personalizedtxt2imgQueryInferenceJobInfoResponse.HttpResponse = _ctx.HttpResponse; + personalizedtxt2imgQueryInferenceJobInfoResponse.RequestId = _ctx.StringValue("Personalizedtxt2imgQueryInferenceJobInfo.requestId"); + personalizedtxt2imgQueryInferenceJobInfoResponse.Success = _ctx.BooleanValue("Personalizedtxt2imgQueryInferenceJobInfo.success"); + personalizedtxt2imgQueryInferenceJobInfoResponse.ErrCode = _ctx.StringValue("Personalizedtxt2imgQueryInferenceJobInfo.errCode"); + personalizedtxt2imgQueryInferenceJobInfoResponse.ErrMessage = _ctx.StringValue("Personalizedtxt2imgQueryInferenceJobInfo.errMessage"); + + Personalizedtxt2imgQueryInferenceJobInfoResponse.Personalizedtxt2imgQueryInferenceJobInfo_Data data = new Personalizedtxt2imgQueryInferenceJobInfoResponse.Personalizedtxt2imgQueryInferenceJobInfo_Data(); + data.ModelTrainStatus = _ctx.StringValue("Personalizedtxt2imgQueryInferenceJobInfo.Data.modelTrainStatus"); + personalizedtxt2imgQueryInferenceJobInfoResponse.Data = data; + + return personalizedtxt2imgQueryInferenceJobInfoResponse; + } + } +} diff --git a/aliyun-net-sdk-aicontent/AiContent/Transform/V20240611/Personalizedtxt2imgQueryModelTrainJobListResponseUnmarshaller.cs b/aliyun-net-sdk-aicontent/AiContent/Transform/V20240611/Personalizedtxt2imgQueryModelTrainJobListResponseUnmarshaller.cs new file mode 100644 index 000000000..29fbada94 --- /dev/null +++ b/aliyun-net-sdk-aicontent/AiContent/Transform/V20240611/Personalizedtxt2imgQueryModelTrainJobListResponseUnmarshaller.cs @@ -0,0 +1,84 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +using System; +using System.Collections.Generic; + +using Aliyun.Acs.Core.Transform; +using Aliyun.Acs.AiContent.Model.V20240611; + +namespace Aliyun.Acs.AiContent.Transform.V20240611 +{ + public class Personalizedtxt2imgQueryModelTrainJobListResponseUnmarshaller + { + public static Personalizedtxt2imgQueryModelTrainJobListResponse Unmarshall(UnmarshallerContext _ctx) + { + Personalizedtxt2imgQueryModelTrainJobListResponse personalizedtxt2imgQueryModelTrainJobListResponse = new Personalizedtxt2imgQueryModelTrainJobListResponse(); + + personalizedtxt2imgQueryModelTrainJobListResponse.HttpResponse = _ctx.HttpResponse; + personalizedtxt2imgQueryModelTrainJobListResponse.RequestId = _ctx.StringValue("Personalizedtxt2imgQueryModelTrainJobList.requestId"); + personalizedtxt2imgQueryModelTrainJobListResponse.Success = _ctx.BooleanValue("Personalizedtxt2imgQueryModelTrainJobList.success"); + personalizedtxt2imgQueryModelTrainJobListResponse.ErrCode = _ctx.StringValue("Personalizedtxt2imgQueryModelTrainJobList.errCode"); + personalizedtxt2imgQueryModelTrainJobListResponse.ErrMessage = _ctx.StringValue("Personalizedtxt2imgQueryModelTrainJobList.errMessage"); + + List personalizedtxt2imgQueryModelTrainJobListResponse_data = new List(); + for (int i = 0; i < _ctx.Length("Personalizedtxt2imgQueryModelTrainJobList.Data.Length"); i++) { + Personalizedtxt2imgQueryModelTrainJobListResponse.Personalizedtxt2imgQueryModelTrainJobList_DataItem dataItem = new Personalizedtxt2imgQueryModelTrainJobListResponse.Personalizedtxt2imgQueryModelTrainJobList_DataItem(); + dataItem.Id = _ctx.StringValue("Personalizedtxt2imgQueryModelTrainJobList.Data["+ i +"].id"); + dataItem.ModelId = _ctx.StringValue("Personalizedtxt2imgQueryModelTrainJobList.Data["+ i +"].modelId"); + dataItem.Name = _ctx.StringValue("Personalizedtxt2imgQueryModelTrainJobList.Data["+ i +"].name"); + dataItem.ObjectType = _ctx.StringValue("Personalizedtxt2imgQueryModelTrainJobList.Data["+ i +"].objectType"); + dataItem.JobStatus = _ctx.StringValue("Personalizedtxt2imgQueryModelTrainJobList.Data["+ i +"].jobStatus"); + dataItem.JobTrainProgress = _ctx.DoubleValue("Personalizedtxt2imgQueryModelTrainJobList.Data["+ i +"].jobTrainProgress"); + dataItem.InferenceImageCount = _ctx.IntegerValue("Personalizedtxt2imgQueryModelTrainJobList.Data["+ i +"].inferenceImageCount"); + dataItem.CreateTime = _ctx.StringValue("Personalizedtxt2imgQueryModelTrainJobList.Data["+ i +"].createTime"); + + List dataItem_imageUrl = new List(); + for (int j = 0; j < _ctx.Length("Personalizedtxt2imgQueryModelTrainJobList.Data["+ i +"].ImageUrl.Length"); j++) { + dataItem_imageUrl.Add(_ctx.StringValue("Personalizedtxt2imgQueryModelTrainJobList.Data["+ i +"].ImageUrl["+ j +"]")); + } + dataItem.ImageUrl = dataItem_imageUrl; + + List dataItem_inferenceJobList = new List(); + for (int j = 0; j < _ctx.Length("Personalizedtxt2imgQueryModelTrainJobList.Data["+ i +"].InferenceJobList.Length"); j++) { + Personalizedtxt2imgQueryModelTrainJobListResponse.Personalizedtxt2imgQueryModelTrainJobList_DataItem.Personalizedtxt2imgQueryModelTrainJobList_InferenceJobListItem inferenceJobListItem = new Personalizedtxt2imgQueryModelTrainJobListResponse.Personalizedtxt2imgQueryModelTrainJobList_DataItem.Personalizedtxt2imgQueryModelTrainJobList_InferenceJobListItem(); + inferenceJobListItem.Id = _ctx.StringValue("Personalizedtxt2imgQueryModelTrainJobList.Data["+ i +"].InferenceJobList["+ j +"].id"); + inferenceJobListItem.PromptId = _ctx.StringValue("Personalizedtxt2imgQueryModelTrainJobList.Data["+ i +"].InferenceJobList["+ j +"].promptId"); + inferenceJobListItem.ModelId = _ctx.StringValue("Personalizedtxt2imgQueryModelTrainJobList.Data["+ i +"].InferenceJobList["+ j +"].modelId"); + inferenceJobListItem.JobStatus = _ctx.StringValue("Personalizedtxt2imgQueryModelTrainJobList.Data["+ i +"].InferenceJobList["+ j +"].jobStatus"); + inferenceJobListItem.JobTrainProgress = _ctx.DoubleValue("Personalizedtxt2imgQueryModelTrainJobList.Data["+ i +"].InferenceJobList["+ j +"].jobTrainProgress"); + inferenceJobListItem.CreateTime = _ctx.StringValue("Personalizedtxt2imgQueryModelTrainJobList.Data["+ i +"].InferenceJobList["+ j +"].createTime"); + + List inferenceJobListItem_resultImageUrl = new List(); + for (int k = 0; k < _ctx.Length("Personalizedtxt2imgQueryModelTrainJobList.Data["+ i +"].InferenceJobList["+ j +"].ResultImageUrl.Length"); k++) { + inferenceJobListItem_resultImageUrl.Add(_ctx.StringValue("Personalizedtxt2imgQueryModelTrainJobList.Data["+ i +"].InferenceJobList["+ j +"].ResultImageUrl["+ k +"]")); + } + inferenceJobListItem.ResultImageUrl = inferenceJobListItem_resultImageUrl; + + dataItem_inferenceJobList.Add(inferenceJobListItem); + } + dataItem.InferenceJobList = dataItem_inferenceJobList; + + personalizedtxt2imgQueryModelTrainJobListResponse_data.Add(dataItem); + } + personalizedtxt2imgQueryModelTrainJobListResponse.Data = personalizedtxt2imgQueryModelTrainJobListResponse_data; + + return personalizedtxt2imgQueryModelTrainJobListResponse; + } + } +} diff --git a/aliyun-net-sdk-aicontent/AiContent/Transform/V20240611/Personalizedtxt2imgQueryModelTrainStatusResponseUnmarshaller.cs b/aliyun-net-sdk-aicontent/AiContent/Transform/V20240611/Personalizedtxt2imgQueryModelTrainStatusResponseUnmarshaller.cs new file mode 100644 index 000000000..565dffd6b --- /dev/null +++ b/aliyun-net-sdk-aicontent/AiContent/Transform/V20240611/Personalizedtxt2imgQueryModelTrainStatusResponseUnmarshaller.cs @@ -0,0 +1,46 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +using System; +using System.Collections.Generic; + +using Aliyun.Acs.Core.Transform; +using Aliyun.Acs.AiContent.Model.V20240611; + +namespace Aliyun.Acs.AiContent.Transform.V20240611 +{ + public class Personalizedtxt2imgQueryModelTrainStatusResponseUnmarshaller + { + public static Personalizedtxt2imgQueryModelTrainStatusResponse Unmarshall(UnmarshallerContext _ctx) + { + Personalizedtxt2imgQueryModelTrainStatusResponse personalizedtxt2imgQueryModelTrainStatusResponse = new Personalizedtxt2imgQueryModelTrainStatusResponse(); + + personalizedtxt2imgQueryModelTrainStatusResponse.HttpResponse = _ctx.HttpResponse; + personalizedtxt2imgQueryModelTrainStatusResponse.RequestId = _ctx.StringValue("Personalizedtxt2imgQueryModelTrainStatus.requestId"); + personalizedtxt2imgQueryModelTrainStatusResponse.Success = _ctx.BooleanValue("Personalizedtxt2imgQueryModelTrainStatus.success"); + personalizedtxt2imgQueryModelTrainStatusResponse.ErrCode = _ctx.StringValue("Personalizedtxt2imgQueryModelTrainStatus.errCode"); + personalizedtxt2imgQueryModelTrainStatusResponse.ErrMessage = _ctx.StringValue("Personalizedtxt2imgQueryModelTrainStatus.errMessage"); + + Personalizedtxt2imgQueryModelTrainStatusResponse.Personalizedtxt2imgQueryModelTrainStatus_Data data = new Personalizedtxt2imgQueryModelTrainStatusResponse.Personalizedtxt2imgQueryModelTrainStatus_Data(); + data.ModelTrainStatus = _ctx.StringValue("Personalizedtxt2imgQueryModelTrainStatus.Data.modelTrainStatus"); + personalizedtxt2imgQueryModelTrainStatusResponse.Data = data; + + return personalizedtxt2imgQueryModelTrainStatusResponse; + } + } +} diff --git a/aliyun-net-sdk-aicontent/aliyun-net-sdk-aicontent.vs2017.csproj b/aliyun-net-sdk-aicontent/aliyun-net-sdk-aicontent.vs2017.csproj new file mode 100644 index 000000000..63afdba41 --- /dev/null +++ b/aliyun-net-sdk-aicontent/aliyun-net-sdk-aicontent.vs2017.csproj @@ -0,0 +1,43 @@ + + + + netstandard2.0;net45 + Aliyun.Acs.AiContent + 1.0.0 + Alibaba Cloud + ©2009-2019 Alibaba Cloud + false + https://raw.githubusercontent.com/aliyun/aliyun-openapi-net-sdk/master/LICENSE + https://github.com/aliyun/aliyun-openapi-net-sdk + https://www.alibabacloud.com/favicon.ico + Alibaba Cloud SDK for .NET + + alibaba aliyun SDK AiContent + aliyun-net-sdk-aicontent + + + + + + + all + runtime; build; native; contentfiles; analyzers + + + + + + + + + + + + + + + + + + + \ No newline at end of file