Skip to content

Commit

Permalink
add openapi for Personalized Text to Image ablity init version.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Aug 1, 2024
1 parent c14d061 commit 5add675
Show file tree
Hide file tree
Showing 23 changed files with 2,044 additions and 0 deletions.
3 changes: 3 additions & 0 deletions aliyun-java-sdk-aicontent/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
2024-08-01 Version: 1.0.0
- add openapi for Personalized Text to Image ablity init version.

119 changes: 119 additions & 0 deletions aliyun-java-sdk-aicontent/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.aliyun</groupId>
<artifactId>aliyun-java-sdk-aicontent</artifactId>
<packaging>jar</packaging>
<version>1.0.0</version>
<name>aliyun-java-sdk-aicontent</name>
<url>http://www.aliyun.com</url>
<description>Aliyun Open API SDK for Java
Copyright (C) Alibaba Cloud Computing
All rights reserved.
版权所有 (C)阿里云计算有限公司
http://www.aliyun.com</description>
<distributionManagement>
<snapshotRepository>
<id>sonatype-nexus-snapshots</id>
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>sonatype-nexus-staging</id>
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>
<dependencies>
<dependency>
<groupId>com.aliyun</groupId>
<artifactId>aliyun-java-sdk-core</artifactId>
<optional>true</optional>
<version>[4.4.9,5.0.0)</version>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.8.9</version>
</dependency>
</dependencies>
<licenses>
<license>
<name>The Apache License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
</license>
</licenses>
<scm>
<connection>scm:git:git://github.com/aliyun/aliyun-openapi-java-sdk.git</connection>
<developerConnection>scm:git:[email protected]:aliyun/aliyun-openapi-java-sdk.git</developerConnection>
<url>https://github.com/aliyun/aliyun-openapi-java-sdk</url>
</scm>
<developers>
<developer>
<id>aliyunproducts</id>
<name>Aliyun SDK</name>
<email>[email protected]</email>
</developer>
</developers>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<excludes/>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.10</version>
<configuration>
<argLine>-Dfile.encoding=UTF-8</argLine>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.1.0</version>
<configuration>
<encoding>UTF-8</encoding>
<doclint>none</doclint>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.3</version>
<extensions>true</extensions>
<configuration>
<serverId>sonatype-nexus-staging</serverId>
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/*
* Licensed 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.
*/

package com.aliyuncs.aicontent.model.v20240611;

import com.aliyuncs.RoaAcsRequest;
import com.aliyuncs.http.ProtocolType;
import com.aliyuncs.http.MethodType;

/**
* @author auto create
* @version
*/
public class AliyunConsoleOpenApiQueryAliyunConsoleServcieListRequest extends RoaAcsRequest<AliyunConsoleOpenApiQueryAliyunConsoleServcieListResponse> {

public AliyunConsoleOpenApiQueryAliyunConsoleServcieListRequest() {
super("AiContent", "20240611", "AliyunConsoleOpenApiQueryAliyunConsoleServcieList");
setProtocol(ProtocolType.HTTPS);
setUriPattern("/api/v1/aliyunconsole/queryAliyunConsoleServcieList");
setMethod(MethodType.GET);
}

@Override
public Class<AliyunConsoleOpenApiQueryAliyunConsoleServcieListResponse> getResponseClass() {
return AliyunConsoleOpenApiQueryAliyunConsoleServcieListResponse.class;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
/*
* Licensed 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.
*/

package com.aliyuncs.aicontent.model.v20240611;

import java.util.List;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.aicontent.transform.v20240611.AliyunConsoleOpenApiQueryAliyunConsoleServcieListResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;

/**
* @author auto create
* @version
*/
public class AliyunConsoleOpenApiQueryAliyunConsoleServcieListResponse extends AcsResponse {

private String requestId;

private Boolean success;

private String errCode;

private String errMessage;

private Integer httpStatusCode;

private List<DataItem> data;

public String getRequestId() {
return this.requestId;
}

public void setRequestId(String requestId) {
this.requestId = requestId;
}

public Boolean getSuccess() {
return this.success;
}

public void setSuccess(Boolean success) {
this.success = success;
}

public String getErrCode() {
return this.errCode;
}

public void setErrCode(String errCode) {
this.errCode = errCode;
}

public String getErrMessage() {
return this.errMessage;
}

public void setErrMessage(String errMessage) {
this.errMessage = errMessage;
}

public Integer getHttpStatusCode() {
return this.httpStatusCode;
}

public void setHttpStatusCode(Integer httpStatusCode) {
this.httpStatusCode = httpStatusCode;
}

public List<DataItem> getData() {
return this.data;
}

public void setData(List<DataItem> data) {
this.data = data;
}

public static class DataItem {

private String serviceCode;

private String serviceName;

private Integer freeCount;

private Integer freeConcurrencyCount;

public String getServiceCode() {
return this.serviceCode;
}

public void setServiceCode(String serviceCode) {
this.serviceCode = serviceCode;
}

public String getServiceName() {
return this.serviceName;
}

public void setServiceName(String serviceName) {
this.serviceName = serviceName;
}

public Integer getFreeCount() {
return this.freeCount;
}

public void setFreeCount(Integer freeCount) {
this.freeCount = freeCount;
}

public Integer getFreeConcurrencyCount() {
return this.freeConcurrencyCount;
}

public void setFreeConcurrencyCount(Integer freeConcurrencyCount) {
this.freeConcurrencyCount = freeConcurrencyCount;
}
}

@Override
public AliyunConsoleOpenApiQueryAliyunConsoleServcieListResponse getInstance(UnmarshallerContext context) {
return AliyunConsoleOpenApiQueryAliyunConsoleServcieListResponseUnmarshaller.unmarshall(this, context);
}

@Override
public boolean checkShowJsonItemName() {
return false;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
/*
* Licensed 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.
*/

package com.aliyuncs.aicontent.model.v20240611;

import com.aliyuncs.RoaAcsRequest;
import com.aliyuncs.http.ProtocolType;
import com.aliyuncs.http.MethodType;

/**
* @author auto create
* @version
*/
public class Personalizedtxt2imgAddInferenceJobRequest extends RoaAcsRequest<Personalizedtxt2imgAddInferenceJobResponse> {


private String body;
public Personalizedtxt2imgAddInferenceJobRequest() {
super("AiContent", "20240611", "Personalizedtxt2imgAddInferenceJob");
setProtocol(ProtocolType.HTTPS);
setUriPattern("/api/v1/personalizedtxt2img/addInferenceJob");
setMethod(MethodType.POST);
}

public String getBody() {
return this.body;
}

public void setBody(String body) {
this.body = body;
if(body != null){
putBodyParameter("body", body);
}
}

@Override
public Class<Personalizedtxt2imgAddInferenceJobResponse> getResponseClass() {
return Personalizedtxt2imgAddInferenceJobResponse.class;
}

}
Loading

0 comments on commit 5add675

Please sign in to comment.