index
int64 | repo_id
string | file_path
string | content
string |
|---|---|---|---|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/ListTagResourcesRequest.java
|
package com.aliyuncs.cloudapi.model.v20160714;
import java.util.List;
import com.aliyuncs.RpcAcsRequest;
/**
*
*/
public class ListTagResourcesRequest extends RpcAcsRequest<ListTagResourcesResponse> {
public ListTagResourcesRequest() {
super("CloudAPI", "2016-07-14", "ListTagResources","apigateway");
}
private List<String> resourceIds;
private String resourceType;
private List<Tag> tags;
private String nextToken;
private String scope;
public List<String> getResourceIds() {
return resourceIds;
}
public void setResourceIds(List<String> resourceIds) {
this.resourceIds = resourceIds;
if (resourceIds != null) {
for (int i = 0; i < resourceIds.size(); i++) {
putQueryParameter("ResourceId." + (i + 1) , resourceIds.get(i));
}
}
}
public String getResourceType() {
return resourceType;
}
public void setResourceType(String resourceType) {
this.resourceType = resourceType;
putQueryParameter("ResourceType", resourceType);
}
public List<Tag> getTags() {
return tags;
}
public void setTags(List<Tag> tags) {
this.tags = tags;
if (tags != null) {
for (int i = 0; i < tags.size(); i++) {
putQueryParameter("Tag." + (i + 1) + ".Value" , tags.get(i).getValue());
putQueryParameter("Tag." + (i + 1) + ".Key" , tags.get(i).getKey());
}
}
}
public String getNextToken() {
return nextToken;
}
public void setNextToken(String nextToken) {
this.nextToken = nextToken;
putQueryParameter("NextToken", nextToken);
}
public String getScope() {
return scope;
}
public void setScope(String scope) {
this.scope = scope;
putQueryParameter("Scope", scope);
}
public static class Tag {
private String value;
private String key;
public String getValue() {
return this.value;
}
public void setValue(String value) {
this.value = value;
}
public String getKey() {
return this.key;
}
public void setKey(String key) {
this.key = key;
}
}
@Override
public Class<ListTagResourcesResponse> getResponseClass() {
return ListTagResourcesResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/ListTagResourcesResponse.java
|
package com.aliyuncs.cloudapi.model.v20160714;
import java.util.List;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.cloudapi.transform.v20160714.ListTagResourcesResponseUnmarshaller;
import com.aliyuncs.exceptions.ClientException;
import com.aliyuncs.transform.UnmarshallerContext;
/**
*
*/
public class ListTagResourcesResponse extends AcsResponse {
private String requestId;
private String nextToken;
private List<TagResource> tagResources;
public static class TagResource{
private String tagKey;
private String tagValue;
private String resourceId;
private String resourceType;
public String getTagKey() {
return tagKey;
}
public void setTagKey(String tagKey) {
this.tagKey = tagKey;
}
public String getTagValue() {
return tagValue;
}
public void setTagValue(String tagValue) {
this.tagValue = tagValue;
}
public String getResourceId() {
return resourceId;
}
public void setResourceId(String resourceId) {
this.resourceId = resourceId;
}
public String getResourceType() {
return resourceType;
}
public void setResourceType(String resourceType) {
this.resourceType = resourceType;
}
}
public String getRequestId() {
return requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
public List<TagResource> getTagResources() {
return tagResources;
}
public void setTagResources(List<TagResource> tagResources) {
this.tagResources = tagResources;
}
public String getNextToken() {
return nextToken;
}
public void setNextToken(String nextToken) {
this.nextToken = nextToken;
}
@Override
public AcsResponse getInstance(UnmarshallerContext unmarshallerContext) throws ClientException {
return ListTagResourcesResponseUnmarshaller.unmarshall(this, unmarshallerContext);
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/ModifyApiGroupInstanceRequest.java
|
/*
* 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.
*/
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.RpcAcsRequest;
/**
* @author auto create
*
*/
public class ModifyApiGroupInstanceRequest extends RpcAcsRequest<ModifyApiGroupInstanceResponse> {
public ModifyApiGroupInstanceRequest() {
super("CloudAPI", "2016-07-14", "ModifyApiGroupInstance", "apigateway");
}
private String groupId;
private String targetInstanceId;
private String remark;
public String getGroupId() {
return this.groupId;
}
public void setGroupId(String groupId) {
this.groupId = groupId;
putQueryParameter("GroupId", groupId);
}
public String getTargetInstanceId() {
return targetInstanceId;
}
public void setTargetInstanceId(String targetInstanceId) {
this.targetInstanceId = targetInstanceId;
putQueryParameter("TargetInstanceId", targetInstanceId);
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark;
putQueryParameter("Remark", remark);
}
@Override
public Class<ModifyApiGroupInstanceResponse> getResponseClass() {
return ModifyApiGroupInstanceResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/ModifyApiGroupInstanceResponse.java
|
/*
* 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.
*/
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.cloudapi.transform.v20160714.ModifyApiGroupInstanceResponseUnmarshaller;
import com.aliyuncs.cloudapi.transform.v20160714.ModifyApiGroupResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
*
*/
public class ModifyApiGroupInstanceResponse extends AcsResponse {
private String requestId;
public String getRequestId() {
return this.requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
@Override
public ModifyApiGroupInstanceResponse getInstance(UnmarshallerContext context) {
return ModifyApiGroupInstanceResponseUnmarshaller.unmarshall(this, context);
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/ModifyApiGroupNetworkPolicyRequest.java
|
/*
* 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.
*/
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.RpcAcsRequest;
/**
* @author auto create
*/
public class ModifyApiGroupNetworkPolicyRequest extends RpcAcsRequest<ModifyApiGroupNetworkPolicyResponse> {
public ModifyApiGroupNetworkPolicyRequest() {
super("CloudAPI", "2016-07-14", "ModifyApiGroupNetworkPolicy", "apigateway");
}
private String groupId;
private Boolean internetEnable;
private Boolean vpcIntranetEnable;
private String httpsPolicy;
public String getGroupId() {
return this.groupId;
}
public void setGroupId(String groupId) {
this.groupId = groupId;
putQueryParameter("GroupId", groupId);
}
public Boolean getInternetEnable() {
return internetEnable;
}
public void setInternetEnable(Boolean internetEnable) {
this.internetEnable = internetEnable;
putQueryParameter("InternetEnable", internetEnable);
}
public Boolean getVpcIntranetEnable() {
return vpcIntranetEnable;
}
public void setVpcIntranetEnable(Boolean vpcIntranetEnable) {
this.vpcIntranetEnable = vpcIntranetEnable;
putQueryParameter("VpcIntranetEnable", vpcIntranetEnable);
}
public String getHttpsPolicy() {
return httpsPolicy;
}
public void setHttpsPolicy(String httpsPolicy) {
this.httpsPolicy = httpsPolicy;
putQueryParameter("HttpsPolicy", httpsPolicy);
}
@Override
public Class<ModifyApiGroupNetworkPolicyResponse> getResponseClass() {
return ModifyApiGroupNetworkPolicyResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/ModifyApiGroupNetworkPolicyResponse.java
|
/*
* 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.
*/
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.cloudapi.transform.v20160714.ModifyApiGroupInstanceResponseUnmarshaller;
import com.aliyuncs.cloudapi.transform.v20160714.ModifyApiGroupNetworkPolicyResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
*
*/
public class ModifyApiGroupNetworkPolicyResponse extends AcsResponse {
private String requestId;
public String getRequestId() {
return this.requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
@Override
public ModifyApiGroupNetworkPolicyResponse getInstance(UnmarshallerContext context) {
return ModifyApiGroupNetworkPolicyResponseUnmarshaller.unmarshall(this, context);
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/ModifyApiGroupRequest.java
|
/*
* 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.
*/
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.RpcAcsRequest;
/**
* @author auto create
*
*/
public class ModifyApiGroupRequest extends RpcAcsRequest<ModifyApiGroupResponse> {
public ModifyApiGroupRequest() {
super("CloudAPI", "2016-07-14", "ModifyApiGroup", "apigateway");
}
private String groupId;
private String groupName;
private String description;
private String userLogConfig;
private String customTraceConfig;
private String defaultDomain;
private String basePath;
public String getGroupId() {
return this.groupId;
}
public void setGroupId(String groupId) {
this.groupId = groupId;
putQueryParameter("GroupId", groupId);
}
public String getGroupName() {
return this.groupName;
}
public void setGroupName(String groupName) {
this.groupName = groupName;
putQueryParameter("GroupName", groupName);
}
public String getDescription() {
return this.description;
}
public void setDescription(String description) {
this.description = description;
putQueryParameter("Description", description);
}
public String getUserLogConfig() {
return userLogConfig;
}
public void setUserLogConfig(String userLogConfig) {
this.userLogConfig = userLogConfig;
putQueryParameter("UserLogConfig", userLogConfig);
}
public String getCustomTraceConfig() {
return customTraceConfig;
}
public void setCustomTraceConfig(String customTraceConfig) {
this.customTraceConfig = customTraceConfig;
putQueryParameter("CustomTraceConfig", customTraceConfig);
}
public String getDefaultDomain() {
return defaultDomain;
}
public void setDefaultDomain(String defaultDomain) {
this.defaultDomain = defaultDomain;
putQueryParameter("DefaultDomain", defaultDomain);
}
public String getBasePath() {
return basePath;
}
public void setBasePath(String basePath) {
this.basePath = basePath;
putQueryParameter("BasePath", basePath);
}
@Override
public Class<ModifyApiGroupResponse> getResponseClass() {
return ModifyApiGroupResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/ModifyApiGroupResponse.java
|
/*
* 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.
*/
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.cloudapi.transform.v20160714.ModifyApiGroupResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
*
*/
public class ModifyApiGroupResponse extends AcsResponse {
private String requestId;
private String groupId;
private String groupName;
private String subDomain;
private String description;
public String getRequestId() {
return this.requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
public String getGroupId() {
return this.groupId;
}
public void setGroupId(String groupId) {
this.groupId = groupId;
}
public String getGroupName() {
return this.groupName;
}
public void setGroupName(String groupName) {
this.groupName = groupName;
}
public String getSubDomain() {
return this.subDomain;
}
public void setSubDomain(String subDomain) {
this.subDomain = subDomain;
}
public String getDescription() {
return this.description;
}
public void setDescription(String description) {
this.description = description;
}
@Override
public ModifyApiGroupResponse getInstance(UnmarshallerContext context) {
return ModifyApiGroupResponseUnmarshaller.unmarshall(this, context);
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/ModifyApiRequest.java
|
/*
* 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.
*/
package com.aliyuncs.cloudapi.model.v20160714;
import com.alibaba.fastjson.JSON;
import com.aliyuncs.RpcAcsRequest;
import com.aliyuncs.cloudapi.model.v20160714.DescribeApiResponse.*;
import java.util.ArrayList;
import java.util.List;
/**
* @author auto create
*
*/
public class ModifyApiRequest extends RpcAcsRequest<ModifyApiResponse> {
public ModifyApiRequest() {
super("CloudAPI", "2016-07-14", "ModifyApi", "apigateway");
}
private String groupId;
private String apiId;
private String apiName;
private String description;
private String visibility;
private String authType;
private Boolean forceNonceCheck;
private Boolean disableInternet;
private String appCodeAuthType;
private String internalApiName;
private String requestConfig;
private String serviceConfig;
private String requestParameters;
private String systemParameters;
private String constantParameters;
private String serviceParameters;
private String serviceParametersMap;
private String resultType;
private String resultSample;
private String failResultSample;
private String errorCodeSamples;
private String openIdConnectConfig;
private String allowSignatureMethod;
private String resultBodyModel;
private String webSocketApiType;
public String getResultBodyModel() {
return resultBodyModel;
}
public void setResultBodyModel(String resultBodyModel) {
this.resultBodyModel = resultBodyModel;
putQueryParameter("ResultBodyModel", resultBodyModel);
}
public String getWebSocketApiType() {
return webSocketApiType;
}
public void setWebSocketApiType(String webSocketApiType) {
this.webSocketApiType = webSocketApiType;
putQueryParameter("WebSocketApiType", webSocketApiType);
}
public String getGroupId() {
return this.groupId;
}
public void setGroupId(String groupId) {
this.groupId = groupId;
putQueryParameter("GroupId", groupId);
}
public String getApiId() {
return this.apiId;
}
public void setApiId(String apiId) {
this.apiId = apiId;
putQueryParameter("ApiId", apiId);
}
public String getApiName() {
return this.apiName;
}
public void setApiName(String apiName) {
this.apiName = apiName;
putQueryParameter("ApiName", apiName);
}
public String getDescription() {
return this.description;
}
public void setDescription(String description) {
this.description = description;
putQueryParameter("Description", description);
}
public String getVisibility() {
return this.visibility;
}
public void setVisibility(String visibility) {
this.visibility = visibility;
putQueryParameter("Visibility", visibility);
}
public String getAuthType() {
return this.authType;
}
public void setAuthType(String authType) {
this.authType = authType;
putQueryParameter("AuthType", authType);
}
public Boolean getForceNonceCheck() {
return forceNonceCheck;
}
public void setForceNonceCheck(Boolean forceNonceCheck) {
this.forceNonceCheck = forceNonceCheck;
putQueryParameter("ForceNonceCheck", forceNonceCheck);
}
public Boolean getDisableInternet() {
return disableInternet;
}
public void setDisableInternet(Boolean disableInternet) {
this.disableInternet = disableInternet;
putQueryParameter("DisableInternet", disableInternet);
}
public String getAppCodeAuthType() {
return appCodeAuthType;
}
public void setAppCodeAuthType(String appCodeAuthType) {
this.appCodeAuthType = appCodeAuthType;
putQueryParameter("AppCodeAuthType", appCodeAuthType);
}
public String getInternalApiName() {
return internalApiName;
}
public void setInternalApiName(String internalApiName) {
this.internalApiName = internalApiName;
putQueryParameter("InternalApiName", internalApiName);
}
public String getRequestConfig() {
return this.requestConfig;
}
public void setRequestConfig(String requestConfig) {
this.requestConfig = requestConfig;
putQueryParameter("RequestConfig", requestConfig);
}
public String getServiceConfig() {
return this.serviceConfig;
}
public void setServiceConfig(String serviceConfig) {
this.serviceConfig = serviceConfig;
putQueryParameter("ServiceConfig", serviceConfig);
}
public String getRequestParameters() {
return this.requestParameters;
}
public void setRequestParameters(String requestParameters) {
this.requestParameters = requestParameters;
putQueryParameter("RequestParameters", requestParameters);
}
public String getSystemParameters() {
return this.systemParameters;
}
public void setSystemParameters(String systemParameters) {
this.systemParameters = systemParameters;
putQueryParameter("SystemParameters", systemParameters);
}
public String getConstantParameters() {
return this.constantParameters;
}
public void setConstantParameters(String constantParameters) {
this.constantParameters = constantParameters;
putQueryParameter("ConstantParameters", constantParameters);
}
public String getServiceParameters() {
return this.serviceParameters;
}
public void setServiceParameters(String serviceParameters) {
this.serviceParameters = serviceParameters;
putQueryParameter("ServiceParameters", serviceParameters);
}
public String getServiceParametersMap() {
return this.serviceParametersMap;
}
public void setServiceParametersMap(String serviceParametersMap) {
this.serviceParametersMap = serviceParametersMap;
putQueryParameter("ServiceParametersMap", serviceParametersMap);
}
public String getResultType() {
return this.resultType;
}
public void setResultType(String resultType) {
this.resultType = resultType;
putQueryParameter("ResultType", resultType);
}
public String getResultSample() {
return this.resultSample;
}
public void setResultSample(String resultSample) {
this.resultSample = resultSample;
putQueryParameter("ResultSample", resultSample);
}
public String getFailResultSample() {
return failResultSample;
}
public void setFailResultSample(String failResultSample) {
this.failResultSample = failResultSample;
putQueryParameter("FailResultSample", failResultSample);
}
public String getErrorCodeSamples() {
return errorCodeSamples;
}
public void setErrorCodeSamples(String errorCodeSamples) {
this.errorCodeSamples = errorCodeSamples;
putQueryParameter("ErrorCodeSamples", errorCodeSamples);
}
public void setRequestConfig(RequestConfig requestConfig) {
if (null != requestConfig) {
setRequestConfig(JSON.toJSONString(requestConfig));
}
}
public void setServiceConfig(ServiceConfig ServiceConfig) {
if (null != ServiceConfig) {
setServiceConfig(JSON.toJSONString(ServiceConfig));
}
}
public void setRequestParameters(List<RequestParameter> list) {
if (null != list) {
setRequestParameters(JSON.toJSONString(list));
}
}
public void putRequestParameter(RequestParameter requestParameter) {
List<RequestParameter> list = new ArrayList<RequestParameter>();
if (null != this.requestParameters) {
list = JSON.parseArray(this.requestParameters, RequestParameter.class);
if (null != list) {
for(RequestParameter rp : list) {
if (rp.getApiParameterName().equals(requestParameter.getApiParameterName())) {
list.remove(rp);
break;
}
}
} else {
list = new ArrayList<RequestParameter>();
}
}
list.add(requestParameter);
setRequestParameters(list);
}
public void removeRequestParameter(String apiParameterName) {
if (null != this.requestParameters) {
List<RequestParameter> list = JSON.parseArray(this.requestParameters, RequestParameter.class);
if (null != list) {
for(RequestParameter rp : list) {
if (null != rp.getApiParameterName()) {
if (rp.getApiParameterName().equals(apiParameterName)) {
list.remove(rp);
break;
}
}
}
if (0 < list.size()) {
setRequestParameters(list);
} else {
setRequestParameters((String)null);
}
}
}
}
public void setSystemParameters(List<SystemParameter> list) {
if (null != list) {
setSystemParameters(JSON.toJSONString(list));
}
}
public void putSystemParameter(SystemParameter systemParameter) {
List<SystemParameter> list = new ArrayList<SystemParameter>();
if (null != this.systemParameters) {
list = JSON.parseArray(this.systemParameters, SystemParameter.class);
if (null != list) {
for(SystemParameter sp : list) {
if (sp.getParameterName().equals(systemParameter.getParameterName())) {
list.remove(sp);
break;
}
}
} else {
list = new ArrayList<SystemParameter>();
}
}
list.add(systemParameter);
setSystemParameters(list);
}
public void removeSystemParameter(String parameterName) {
if (null != this.systemParameters) {
List<SystemParameter> list = JSON.parseArray(this.systemParameters, SystemParameter.class);
if (null != list) {
for(SystemParameter sp : list) {
if (null != sp.getParameterName()) {
if (sp.getParameterName().equals(parameterName)) {
list.remove(sp);
break;
}
}
}
if (0 < list.size()) {
setSystemParameters(list);
} else {
setSystemParameters((String)null);
}
}
}
}
public void setConstantParameters(List<ConstantParameter> list) {
if (null != list) {
setConstantParameters(JSON.toJSONString(list));
}
}
public void putConstantParameter(ConstantParameter constantParameter) {
List<ConstantParameter> list = new ArrayList<ConstantParameter>();
if (null != this.constantParameters) {
list = JSON.parseArray(this.constantParameters, ConstantParameter.class);
if (null != list) {
for(ConstantParameter cp : list) {
if (cp.getServiceParameterName().equals(constantParameter.getServiceParameterName())) {
list.remove(cp);
break;
}
}
} else {
list = new ArrayList<ConstantParameter>();
}
}
list.add(constantParameter);
setConstantParameters(list);
}
public void removeConstantParameter(String serviceParameterName) {
if (null != this.constantParameters) {
List<ConstantParameter> list = JSON.parseArray(this.constantParameters, ConstantParameter.class);
if (null != list) {
for(ConstantParameter cp : list) {
if (null != cp.getServiceParameterName()) {
if (cp.getServiceParameterName().equals(serviceParameterName)) {
list.remove(cp);
break;
}
}
}
if (0 < list.size()) {
setConstantParameters(list);
} else {
setConstantParameters((String)null);
}
}
}
}
public void setServiceParameters(List<ServiceParameter> list) {
if (null != list) {
setServiceParameters(JSON.toJSONString(list));
}
}
public void putServiceParameter(ServiceParameter serviceParameter) {
List<ServiceParameter> list = new ArrayList<ServiceParameter>();
if (null != this.serviceParameters) {
list = JSON.parseArray(this.serviceParameters, ServiceParameter.class);
if (null != list) {
for(ServiceParameter sp : list) {
if (sp.getServiceParameterName().equals(serviceParameter.getServiceParameterName())) {
list.remove(sp);
break;
}
}
} else {
list = new ArrayList<ServiceParameter>();
}
}
list.add(serviceParameter);
setServiceParameters(list);
}
public void removeServiceParameter(String serviceParameterName) {
if (null != this.serviceParameters) {
List<ServiceParameter> list = JSON.parseArray(this.serviceParameters, ServiceParameter.class);
if (null != list) {
for(ServiceParameter sp : list) {
if (null != sp.getServiceParameterName()) {
if (sp.getServiceParameterName().equals(serviceParameterName)) {
list.remove(sp);
break;
}
}
}
if (0 < list.size()) {
setServiceParameters(list);
} else {
setServiceParameters((String)null);
}
}
}
}
public void setServiceParametersMap(List<ServiceParameterMap> list) {
if (null != list) {
setServiceParametersMap(JSON.toJSONString(list));
}
}
public void putServiceParametersMap(ServiceParameterMap serviceParameterMap) {
List<ServiceParameterMap> list = new ArrayList<ServiceParameterMap>();
if (null != this.serviceParametersMap) {
list = JSON.parseArray(this.serviceParametersMap, ServiceParameterMap.class);
if (null != list) {
for(ServiceParameterMap sp : list) {
if (sp.getRequestParameterName().equals(serviceParameterMap.getRequestParameterName()) &&
sp.getServiceParameterName().equals(serviceParameterMap.getServiceParameterName())) {
list.remove(sp);
break;
}
}
} else {
list = new ArrayList<ServiceParameterMap>();
}
}
list.add(serviceParameterMap);
setServiceParametersMap(list);
}
public void removeServiceParametersMap(String requestParameterName, String serviceParameterName) {
if (null != this.serviceParametersMap) {
List<ServiceParameterMap> list = JSON.parseArray(this.serviceParametersMap, ServiceParameterMap.class);
if (null != list) {
for(ServiceParameterMap sp : list) {
if (null != sp.getRequestParameterName() && null != sp.getServiceParameterName()) {
if (sp.getRequestParameterName().equals(requestParameterName) &&
sp.getServiceParameterName().equals(serviceParameterName)) {
list.remove(sp);
break;
}
}
}
if (0 < list.size()) {
setServiceParametersMap(list);
} else {
setServiceParametersMap((String)null);
}
}
}
}
public void setErrorCodeSamples(List<ErrorCodeSample> list) {
if (null != list) {
setErrorCodeSamples(JSON.toJSONString(list));
}
}
public void putErrorCodeSample(ErrorCodeSample errorCodeSample) {
List<ErrorCodeSample> list = new ArrayList<ErrorCodeSample>();
if (null != this.errorCodeSamples) {
list = JSON.parseArray(this.errorCodeSamples, ErrorCodeSample.class);
if (null != list) {
for(ErrorCodeSample es : list) {
if (es.getCode().equals(errorCodeSample.getCode())) {
list.remove(es);
break;
}
}
} else {
list = new ArrayList<ErrorCodeSample>();
}
}
list.add(errorCodeSample);
setErrorCodeSamples(list);
}
public void removeErrorCodeSample(String errCode) {
if (null != this.errorCodeSamples) {
List<ErrorCodeSample> list = JSON.parseArray(this.errorCodeSamples, ErrorCodeSample.class);
if (null != list) {
for(ErrorCodeSample es : list) {
if (null != es.getCode()) {
if (es.getCode().equals(errCode)) {
list.remove(es);
break;
}
}
}
if (0 < list.size()) {
setErrorCodeSamples(list);
} else {
setErrorCodeSamples((String)null);
}
}
}
}
public void setOpenIdConnectConfig(OpenIdConnectConfig openIdConnectConfig) {
if (null != openIdConnectConfig) {
setOpenIdConnectConfig(JSON.toJSONString(openIdConnectConfig));
}
}
public String getOpenIdConnectConfig() {
return openIdConnectConfig;
}
public void setOpenIdConnectConfig(String openIdConnectConfig) {
this.openIdConnectConfig = openIdConnectConfig;
putQueryParameter("OpenIdConnectConfig", openIdConnectConfig);
}
public String getAllowSignatureMethod() {
return allowSignatureMethod;
}
public void setAllowSignatureMethod(String allowSignatureMethod) {
this.allowSignatureMethod = allowSignatureMethod;
putQueryParameter("AllowSignatureMethod", allowSignatureMethod);
}
@Override
public Class<ModifyApiResponse> getResponseClass() {
return ModifyApiResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/ModifyApiResponse.java
|
/*
* 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.
*/
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.cloudapi.transform.v20160714.ModifyApiResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
*
*/
public class ModifyApiResponse extends AcsResponse {
private String requestId;
public String getRequestId() {
return this.requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
@Override
public ModifyApiResponse getInstance(UnmarshallerContext context) {
return ModifyApiResponseUnmarshaller.unmarshall(this, context);
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/ModifyAppRequest.java
|
/*
* 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.
*/
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.RpcAcsRequest;
/**
* @author auto create
*
*/
public class ModifyAppRequest extends RpcAcsRequest<ModifyAppResponse> {
public ModifyAppRequest() {
super("CloudAPI", "2016-07-14", "ModifyApp", "apigateway");
}
private Long appId;
private String appName;
private String description;
public Long getAppId() {
return this.appId;
}
public void setAppId(Long appId) {
this.appId = appId;
putQueryParameter("AppId", appId);
}
public String getAppName() {
return this.appName;
}
public void setAppName(String appName) {
this.appName = appName;
putQueryParameter("AppName", appName);
}
public String getDescription() {
return this.description;
}
public void setDescription(String description) {
this.description = description;
putQueryParameter("Description", description);
}
@Override
public Class<ModifyAppResponse> getResponseClass() {
return ModifyAppResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/ModifyAppResponse.java
|
/*
* 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.
*/
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.cloudapi.transform.v20160714.ModifyAppResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
*
*/
public class ModifyAppResponse extends AcsResponse {
private String requestId;
public String getRequestId() {
return this.requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
@Override
public ModifyAppResponse getInstance(UnmarshallerContext context) {
return ModifyAppResponseUnmarshaller.unmarshall(this, context);
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/ModifyCatalogRequest.java
|
/*
* 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.
*/
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.RpcAcsRequest;
/**
* @author auto create
*
*/
public class ModifyCatalogRequest extends RpcAcsRequest<ModifyCatalogResponse> {
public ModifyCatalogRequest() {
super("CloudAPI", "2016-07-14", "ModifyCatalog", "apigateway");
}
private String catalogId;
private String catalogName;
private String description;
public String getCatalogId() {
return this.catalogId;
}
public void setCatalogId(String catalogId) {
this.catalogId = catalogId;
putQueryParameter("CatalogId", catalogId);
}
public String getCatalogName() {
return this.catalogName;
}
public void setCatalogName(String catalogName) {
this.catalogName = catalogName;
putQueryParameter("CatalogName", catalogName);
}
public String getDescription() {
return this.description;
}
public void setDescription(String description) {
this.description = description;
putQueryParameter("Description", description);
}
@Override
public Class<ModifyCatalogResponse> getResponseClass() {
return ModifyCatalogResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/ModifyCatalogResponse.java
|
/*
* 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.
*/
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.cloudapi.transform.v20160714.ModifyCatalogResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
*
*/
public class ModifyCatalogResponse extends AcsResponse {
private String requestId;
public String getRequestId() {
return this.requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
@Override
public ModifyCatalogResponse getInstance(UnmarshallerContext context) {
return ModifyCatalogResponseUnmarshaller.unmarshall(this, context);
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/ModifyIpControlPolicyItemRequest.java
|
/*
* 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.
*/
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.RpcAcsRequest;
/**
* @author auto create
*
*/
public class ModifyIpControlPolicyItemRequest extends RpcAcsRequest<ModifyIpControlPolicyItemResponse> {
public ModifyIpControlPolicyItemRequest() {
super("CloudAPI", "2016-07-14", "ModifyIpControlPolicyItem", "apigateway");
}
private String ipControlId;
private String policyItemId;
private String appId;
private String cidrIp;
public String getIpControlId() {
return this.ipControlId;
}
public void setIpControlId(String ipControlId) {
this.ipControlId = ipControlId;
if(ipControlId != null){
putQueryParameter("IpControlId", ipControlId);
}
}
public String getPolicyItemId() {
return this.policyItemId;
}
public void setPolicyItemId(String policyItemId) {
this.policyItemId = policyItemId;
if(policyItemId != null){
putQueryParameter("PolicyItemId", policyItemId);
}
}
public String getAppId() {
return this.appId;
}
public void setAppId(String appId) {
this.appId = appId;
if(appId != null){
putQueryParameter("AppId", appId);
}
}
public String getCidrIp() {
return this.cidrIp;
}
public void setCidrIp(String cidrIp) {
this.cidrIp = cidrIp;
if(cidrIp != null){
putQueryParameter("CidrIp", cidrIp);
}
}
@Override
public Class<ModifyIpControlPolicyItemResponse> getResponseClass() {
return ModifyIpControlPolicyItemResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/ModifyIpControlPolicyItemResponse.java
|
/*
* 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.
*/
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.cloudapi.transform.v20160714.ModifyIpControlPolicyItemResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
*
*/
public class ModifyIpControlPolicyItemResponse extends AcsResponse {
private String requestId;
public String getRequestId() {
return this.requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
@Override
public ModifyIpControlPolicyItemResponse getInstance(UnmarshallerContext context) {
return ModifyIpControlPolicyItemResponseUnmarshaller.unmarshall(this, context);
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/ModifyIpControlRequest.java
|
/*
* 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.
*/
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.RpcAcsRequest;
/**
* @author auto create
*
*/
public class ModifyIpControlRequest extends RpcAcsRequest<ModifyIpControlResponse> {
public ModifyIpControlRequest() {
super("CloudAPI", "2016-07-14", "ModifyIpControl", "apigateway");
}
private String ipControlId;
private String ipControlName;
private String description;
public String getIpControlId() {
return this.ipControlId;
}
public void setIpControlId(String ipControlId) {
this.ipControlId = ipControlId;
if(ipControlId != null){
putQueryParameter("IpControlId", ipControlId);
}
}
public String getIpControlName() {
return this.ipControlName;
}
public void setIpControlName(String ipControlName) {
this.ipControlName = ipControlName;
if(ipControlName != null){
putQueryParameter("IpControlName", ipControlName);
}
}
public String getDescription() {
return this.description;
}
public void setDescription(String description) {
this.description = description;
if(description != null){
putQueryParameter("Description", description);
}
}
@Override
public Class<ModifyIpControlResponse> getResponseClass() {
return ModifyIpControlResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/ModifyIpControlResponse.java
|
/*
* 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.
*/
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.cloudapi.transform.v20160714.ModifyIpControlResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
*
*/
public class ModifyIpControlResponse extends AcsResponse {
private String requestId;
public String getRequestId() {
return this.requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
@Override
public ModifyIpControlResponse getInstance(UnmarshallerContext context) {
return ModifyIpControlResponseUnmarshaller.unmarshall(this, context);
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/ModifyLogConfigRequest.java
|
/*
* 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.
*/
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.RpcAcsRequest;
/**
* @author auto create
*
*/
public class ModifyLogConfigRequest extends RpcAcsRequest<ModifyLogConfigResponse> {
public ModifyLogConfigRequest() {
super("CloudAPI", "2016-07-14", "ModifyLogConfig", "apigateway");
}
private String slsProject;
private String slsLogStore;
private String logType;
public String getSlsProject() {
return this.slsProject;
}
public void setSlsProject(String slsProject) {
this.slsProject = slsProject;
if(slsProject != null){
putQueryParameter("SlsProject", slsProject);
}
}
public String getSlsLogStore() {
return this.slsLogStore;
}
public void setSlsLogStore(String slsLogStore) {
this.slsLogStore = slsLogStore;
if(slsLogStore != null){
putQueryParameter("SlsLogStore", slsLogStore);
}
}
public String getLogType() {
return this.logType;
}
public void setLogType(String logType) {
this.logType = logType;
if(logType != null){
putQueryParameter("LogType", logType);
}
}
@Override
public Class<ModifyLogConfigResponse> getResponseClass() {
return ModifyLogConfigResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/ModifyLogConfigResponse.java
|
/*
* 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.
*/
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.cloudapi.transform.v20160714.ModifyLogConfigResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
*/
public class ModifyLogConfigResponse extends AcsResponse {
private String requestId;
public String getRequestId() {
return this.requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
@Override
public ModifyLogConfigResponse getInstance(UnmarshallerContext context) {
return ModifyLogConfigResponseUnmarshaller.unmarshall(this, context);
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/ModifyModelRequest.java
|
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.RpcAcsRequest;
public class ModifyModelRequest extends RpcAcsRequest<ModifyModelResponse> {
public ModifyModelRequest() {
super("CloudAPI", "2016-07-14", "ModifyModel", "apigateway");
}
private String groupId;
private String modelName;
private String description;
private String schema;
private String newModelName;
public String getGroupId() {
return groupId;
}
public void setGroupId(String groupId) {
this.groupId = groupId;
putQueryParameter("GroupId",groupId);
}
public String getModelName() {
return modelName;
}
public void setModelName(String modelName) {
this.modelName = modelName;
putQueryParameter("ModelName",modelName);
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
putQueryParameter("Description",description);
}
public String getSchema() {
return schema;
}
public void setSchema(String schema) {
this.schema = schema;
putQueryParameter("Schema",schema);
}
public String getNewModelName() {
return newModelName;
}
public void setNewModelName(String newModelName) {
this.newModelName = newModelName;
putQueryParameter("NewModelName",newModelName);
}
@Override
public Class<ModifyModelResponse> getResponseClass() {
return ModifyModelResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/ModifyModelResponse.java
|
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.cloudapi.transform.v20160714.ModifyModelResponseUnmarshaller;
import com.aliyuncs.exceptions.ClientException;
import com.aliyuncs.exceptions.ServerException;
import com.aliyuncs.transform.UnmarshallerContext;
public class ModifyModelResponse extends AcsResponse {
private String requestId;
public String getRequestId() {
return requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
@Override
public AcsResponse getInstance(UnmarshallerContext context) throws ClientException, ServerException {
return ModifyModelResponseUnmarshaller.unmarshall(this,context);
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/ModifyPluginRequest.java
|
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.RpcAcsRequest;
/**
* @author auto create
*
*/
public class ModifyPluginRequest extends RpcAcsRequest<ModifyPluginResponse> {
public ModifyPluginRequest() {
super("CloudAPI", "2016-07-14", "ModifyPlugin", "apigateway");
}
private String pluginId;
private String pluginName;
private String pluginData;
private String description;
public String getPluginName() {
return pluginName;
}
public void setPluginName(String pluginName) {
this.pluginName = pluginName;
putQueryParameter("PluginName",pluginName);
}
public String getPluginId() {
return pluginId;
}
public void setPluginId(String pluginId) {
this.pluginId = pluginId;
putQueryParameter("PluginId",pluginId);
}
public String getPluginData() {
return pluginData;
}
public void setPluginData(String pluginData) {
this.pluginData = pluginData;
putQueryParameter("PluginData",pluginData);
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
putQueryParameter("Description",description);
}
@Override
public Class<ModifyPluginResponse> getResponseClass() {
return ModifyPluginResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/ModifyPluginResponse.java
|
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.cloudapi.transform.v20160714.CreatePluginResponseUnmarshaller;
import com.aliyuncs.cloudapi.transform.v20160714.ModifyPluginResponseUnmarshaller;
import com.aliyuncs.exceptions.ClientException;
import com.aliyuncs.exceptions.ServerException;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
*
*/
public class ModifyPluginResponse extends AcsResponse {
private String requestId;
public String getRequestId() {
return requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
@Override
public AcsResponse getInstance(UnmarshallerContext unmarshallerContext) throws ClientException, ServerException {
return ModifyPluginResponseUnmarshaller.unmarshall(this,unmarshallerContext);
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/ModifySignatureRequest.java
|
/*
* 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.
*/
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.RpcAcsRequest;
/**
* @author auto create
*
*/
public class ModifySignatureRequest extends RpcAcsRequest<ModifySignatureResponse> {
public ModifySignatureRequest() {
super("CloudAPI", "2016-07-14", "ModifySignature", "apigateway");
}
private String signatureId;
private String signatureName;
private String signatureKey;
private String signatureSecret;
public String getSignatureId() {
return this.signatureId;
}
public void setSignatureId(String signatureId) {
this.signatureId = signatureId;
putQueryParameter("SignatureId", signatureId);
}
public String getSignatureName() {
return this.signatureName;
}
public void setSignatureName(String signatureName) {
this.signatureName = signatureName;
putQueryParameter("SignatureName", signatureName);
}
public String getSignatureKey() {
return this.signatureKey;
}
public void setSignatureKey(String signatureKey) {
this.signatureKey = signatureKey;
putQueryParameter("SignatureKey", signatureKey);
}
public String getSignatureSecret() {
return this.signatureSecret;
}
public void setSignatureSecret(String signatureSecret) {
this.signatureSecret = signatureSecret;
putQueryParameter("SignatureSecret", signatureSecret);
}
@Override
public Class<ModifySignatureResponse> getResponseClass() {
return ModifySignatureResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/ModifySignatureResponse.java
|
/*
* 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.
*/
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.cloudapi.transform.v20160714.ModifySignatureResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
*
*/
public class ModifySignatureResponse extends AcsResponse {
private String requestId;
private String signatureId;
private String signatureName;
public String getRequestId() {
return this.requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
public String getSignatureId() {
return this.signatureId;
}
public void setSignatureId(String signatureId) {
this.signatureId = signatureId;
}
public String getSignatureName() {
return this.signatureName;
}
public void setSignatureName(String signatureName) {
this.signatureName = signatureName;
}
@Override
public ModifySignatureResponse getInstance(UnmarshallerContext context) {
return ModifySignatureResponseUnmarshaller.unmarshall(this, context);
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/ModifyTrafficControlRequest.java
|
/*
* 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.
*/
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.RpcAcsRequest;
/**
* @author auto create
*
*/
public class ModifyTrafficControlRequest extends RpcAcsRequest<ModifyTrafficControlResponse> {
public ModifyTrafficControlRequest() {
super("CloudAPI", "2016-07-14", "ModifyTrafficControl", "apigateway");
}
private String trafficControlId;
private String trafficControlName;
private String trafficControlUnit;
private Integer apiDefault;
private Integer userDefault;
private Integer appDefault;
private String description;
public String getTrafficControlId() {
return this.trafficControlId;
}
public void setTrafficControlId(String trafficControlId) {
this.trafficControlId = trafficControlId;
putQueryParameter("TrafficControlId", trafficControlId);
}
public String getTrafficControlName() {
return this.trafficControlName;
}
public void setTrafficControlName(String trafficControlName) {
this.trafficControlName = trafficControlName;
putQueryParameter("TrafficControlName", trafficControlName);
}
public String getTrafficControlUnit() {
return this.trafficControlUnit;
}
public void setTrafficControlUnit(String trafficControlUnit) {
this.trafficControlUnit = trafficControlUnit;
putQueryParameter("TrafficControlUnit", trafficControlUnit);
}
public Integer getApiDefault() {
return this.apiDefault;
}
public void setApiDefault(Integer apiDefault) {
this.apiDefault = apiDefault;
putQueryParameter("ApiDefault", apiDefault);
}
public Integer getUserDefault() {
return this.userDefault;
}
public void setUserDefault(Integer userDefault) {
this.userDefault = userDefault;
putQueryParameter("UserDefault", userDefault);
}
public Integer getAppDefault() {
return this.appDefault;
}
public void setAppDefault(Integer appDefault) {
this.appDefault = appDefault;
putQueryParameter("AppDefault", appDefault);
}
public String getDescription() {
return this.description;
}
public void setDescription(String description) {
this.description = description;
putQueryParameter("Description", description);
}
@Override
public Class<ModifyTrafficControlResponse> getResponseClass() {
return ModifyTrafficControlResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/ModifyTrafficControlResponse.java
|
/*
* 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.
*/
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.cloudapi.transform.v20160714.ModifyTrafficControlResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
*
*/
public class ModifyTrafficControlResponse extends AcsResponse {
private String requestId;
public String getRequestId() {
return this.requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
@Override
public ModifyTrafficControlResponse getInstance(UnmarshallerContext context) {
return ModifyTrafficControlResponseUnmarshaller.unmarshall(this, context);
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/ReactivateDomainRequest.java
|
/*
* 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.
*/
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.RpcAcsRequest;
/**
* @author auto create
*
*/
public class ReactivateDomainRequest extends RpcAcsRequest<ReactivateDomainResponse> {
public ReactivateDomainRequest() {
super("CloudAPI", "2016-07-14", "ReactivateDomain", "apigateway");
}
private String groupId;
private String domainName;
public String getGroupId() {
return this.groupId;
}
public void setGroupId(String groupId) {
this.groupId = groupId;
putQueryParameter("GroupId", groupId);
}
public String getDomainName() {
return this.domainName;
}
public void setDomainName(String domainName) {
this.domainName = domainName;
putQueryParameter("DomainName", domainName);
}
@Override
public Class<ReactivateDomainResponse> getResponseClass() {
return ReactivateDomainResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/ReactivateDomainResponse.java
|
/*
* 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.
*/
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.cloudapi.transform.v20160714.ReactivateDomainResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
*
*/
public class ReactivateDomainResponse extends AcsResponse {
private String requestId;
public String getRequestId() {
return this.requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
@Override
public ReactivateDomainResponse getInstance(UnmarshallerContext context) {
return ReactivateDomainResponseUnmarshaller.unmarshall(this, context);
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/RemoveApisAuthoritiesRequest.java
|
/*
* 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.
*/
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.RpcAcsRequest;
/**
* @author auto create
*
*/
public class RemoveApisAuthoritiesRequest extends RpcAcsRequest<RemoveApisAuthoritiesResponse> {
public RemoveApisAuthoritiesRequest() {
super("CloudAPI", "2016-07-14", "RemoveApisAuthorities", "apigateway");
}
private String groupId;
private Long appId;
private String stageName;
private String apiIds;
private String description;
public String getGroupId() {
return this.groupId;
}
public void setGroupId(String groupId) {
this.groupId = groupId;
putQueryParameter("GroupId", groupId);
}
public Long getAppId() {
return this.appId;
}
public void setAppId(Long appId) {
this.appId = appId;
putQueryParameter("AppId", appId);
}
public String getStageName() {
return this.stageName;
}
public void setStageName(String stageName) {
this.stageName = stageName;
putQueryParameter("StageName", stageName);
}
public String getApiIds() {
return this.apiIds;
}
public void setApiIds(String apiIds) {
this.apiIds = apiIds;
putQueryParameter("ApiIds", apiIds);
}
public String getDescription() {
return this.description;
}
public void setDescription(String description) {
this.description = description;
putQueryParameter("Description", description);
}
@Override
public Class<RemoveApisAuthoritiesResponse> getResponseClass() {
return RemoveApisAuthoritiesResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/RemoveApisAuthoritiesResponse.java
|
/*
* 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.
*/
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.cloudapi.transform.v20160714.RemoveApisAuthoritiesResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
*
*/
public class RemoveApisAuthoritiesResponse extends AcsResponse {
private String requestId;
public String getRequestId() {
return this.requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
@Override
public RemoveApisAuthoritiesResponse getInstance(UnmarshallerContext context) {
return RemoveApisAuthoritiesResponseUnmarshaller.unmarshall(this, context);
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/RemoveAppsAuthoritiesRequest.java
|
/*
* 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.
*/
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.RpcAcsRequest;
/**
* @author auto create
*
*/
public class RemoveAppsAuthoritiesRequest extends RpcAcsRequest<RemoveAppsAuthoritiesResponse> {
public RemoveAppsAuthoritiesRequest() {
super("CloudAPI", "2016-07-14", "RemoveAppsAuthorities", "apigateway");
}
private String groupId;
private String apiId;
private String stageName;
private String appIds;
public String getGroupId() {
return this.groupId;
}
public void setGroupId(String groupId) {
this.groupId = groupId;
putQueryParameter("GroupId", groupId);
}
public String getApiId() {
return this.apiId;
}
public void setApiId(String apiId) {
this.apiId = apiId;
putQueryParameter("ApiId", apiId);
}
public String getStageName() {
return this.stageName;
}
public void setStageName(String stageName) {
this.stageName = stageName;
putQueryParameter("StageName", stageName);
}
public String getAppIds() {
return this.appIds;
}
public void setAppIds(String appIds) {
this.appIds = appIds;
putQueryParameter("AppIds", appIds);
}
@Override
public Class<RemoveAppsAuthoritiesResponse> getResponseClass() {
return RemoveAppsAuthoritiesResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/RemoveAppsAuthoritiesResponse.java
|
/*
* 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.
*/
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.cloudapi.transform.v20160714.RemoveAppsAuthoritiesResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
*
*/
public class RemoveAppsAuthoritiesResponse extends AcsResponse {
private String requestId;
public String getRequestId() {
return this.requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
@Override
public RemoveAppsAuthoritiesResponse getInstance(UnmarshallerContext context) {
return RemoveAppsAuthoritiesResponseUnmarshaller.unmarshall(this, context);
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/RemoveCatalogRelationRequest.java
|
/*
* 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.
*/
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.RpcAcsRequest;
/**
* @author auto create
*
*/
public class RemoveCatalogRelationRequest extends RpcAcsRequest<RemoveCatalogRelationResponse> {
public RemoveCatalogRelationRequest() {
super("CloudAPI", "2016-07-14", "RemoveCatalogRelation", "apigateway");
}
private String catalogId;
private String apiId;
public String getCatalogId() {
return this.catalogId;
}
public void setCatalogId(String catalogId) {
this.catalogId = catalogId;
putQueryParameter("CatalogId", catalogId);
}
public String getApiId() {
return this.apiId;
}
public void setApiId(String apiId) {
this.apiId = apiId;
putQueryParameter("ApiId", apiId);
}
@Override
public Class<RemoveCatalogRelationResponse> getResponseClass() {
return RemoveCatalogRelationResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/RemoveCatalogRelationResponse.java
|
/*
* 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.
*/
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.cloudapi.transform.v20160714.RemoveCatalogRelationResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
*
*/
public class RemoveCatalogRelationResponse extends AcsResponse {
private String requestId;
public String getRequestId() {
return this.requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
@Override
public RemoveCatalogRelationResponse getInstance(UnmarshallerContext context) {
return RemoveCatalogRelationResponseUnmarshaller.unmarshall(this, context);
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/RemoveCatalogRelationsRequest.java
|
/*
* 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.
*/
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.RpcAcsRequest;
/**
* @author auto create
*
*/
public class RemoveCatalogRelationsRequest extends RpcAcsRequest<RemoveCatalogRelationsResponse> {
public RemoveCatalogRelationsRequest() {
super("CloudAPI", "2016-07-14", "RemoveCatalogRelations", "apigateway");
}
private String catalogId;
public String getCatalogId() {
return this.catalogId;
}
public void setCatalogId(String catalogId) {
this.catalogId = catalogId;
putQueryParameter("CatalogId", catalogId);
}
@Override
public Class<RemoveCatalogRelationsResponse> getResponseClass() {
return RemoveCatalogRelationsResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/RemoveCatalogRelationsResponse.java
|
/*
* 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.
*/
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.cloudapi.transform.v20160714.RemoveCatalogRelationsResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
*
*/
public class RemoveCatalogRelationsResponse extends AcsResponse {
private String requestId;
public String getRequestId() {
return this.requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
@Override
public RemoveCatalogRelationsResponse getInstance(UnmarshallerContext context) {
return RemoveCatalogRelationsResponseUnmarshaller.unmarshall(this, context);
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/RemoveIpControlApisRequest.java
|
/*
* 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.
*/
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.RpcAcsRequest;
/**
* @author auto create
*
*/
public class RemoveIpControlApisRequest extends RpcAcsRequest<RemoveIpControlApisResponse> {
public RemoveIpControlApisRequest() {
super("CloudAPI", "2016-07-14", "RemoveIpControlApis", "apigateway");
}
private String stageName;
private String ipControlId;
private String groupId;
private String apiIds;
public String getStageName() {
return this.stageName;
}
public void setStageName(String stageName) {
this.stageName = stageName;
if(stageName != null){
putQueryParameter("StageName", stageName);
}
}
public String getIpControlId() {
return this.ipControlId;
}
public void setIpControlId(String ipControlId) {
this.ipControlId = ipControlId;
if(ipControlId != null){
putQueryParameter("IpControlId", ipControlId);
}
}
public String getGroupId() {
return this.groupId;
}
public void setGroupId(String groupId) {
this.groupId = groupId;
if(groupId != null){
putQueryParameter("GroupId", groupId);
}
}
public String getApiIds() {
return this.apiIds;
}
public void setApiIds(String apiIds) {
this.apiIds = apiIds;
if(apiIds != null){
putQueryParameter("ApiIds", apiIds);
}
}
@Override
public Class<RemoveIpControlApisResponse> getResponseClass() {
return RemoveIpControlApisResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/RemoveIpControlApisResponse.java
|
/*
* 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.
*/
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.cloudapi.transform.v20160714.RemoveIpControlApisResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
*
*/
public class RemoveIpControlApisResponse extends AcsResponse {
private String requestId;
public String getRequestId() {
return this.requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
@Override
public RemoveIpControlApisResponse getInstance(UnmarshallerContext context) {
return RemoveIpControlApisResponseUnmarshaller.unmarshall(this, context);
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/RemoveIpControlPolicyItemRequest.java
|
/*
* 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.
*/
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.RpcAcsRequest;
/**
* @author auto create
*
*/
public class RemoveIpControlPolicyItemRequest extends RpcAcsRequest<RemoveIpControlPolicyItemResponse> {
public RemoveIpControlPolicyItemRequest() {
super("CloudAPI", "2016-07-14", "RemoveIpControlPolicyItem", "apigateway");
}
private String ipControlId;
private String policyItemIds;
public String getIpControlId() {
return this.ipControlId;
}
public void setIpControlId(String ipControlId) {
this.ipControlId = ipControlId;
if(ipControlId != null){
putQueryParameter("IpControlId", ipControlId);
}
}
public String getPolicyItemIds() {
return this.policyItemIds;
}
public void setPolicyItemIds(String policyItemIds) {
this.policyItemIds = policyItemIds;
if(policyItemIds != null){
putQueryParameter("PolicyItemIds", policyItemIds);
}
}
@Override
public Class<RemoveIpControlPolicyItemResponse> getResponseClass() {
return RemoveIpControlPolicyItemResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/RemoveIpControlPolicyItemResponse.java
|
/*
* 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.
*/
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.cloudapi.transform.v20160714.RemoveIpControlPolicyItemResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
*
*/
public class RemoveIpControlPolicyItemResponse extends AcsResponse {
private String requestId;
public String getRequestId() {
return this.requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
@Override
public RemoveIpControlPolicyItemResponse getInstance(UnmarshallerContext context) {
return RemoveIpControlPolicyItemResponseUnmarshaller.unmarshall(this, context);
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/RemoveSignatureApisRequest.java
|
/*
* 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.
*/
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.RpcAcsRequest;
/**
* @author auto create
*
*/
public class RemoveSignatureApisRequest extends RpcAcsRequest<RemoveSignatureApisResponse> {
public RemoveSignatureApisRequest() {
super("CloudAPI", "2016-07-14", "RemoveSignatureApis", "apigateway");
}
private String signatureId;
private String groupId;
private String apiIds;
private String stageName;
public String getSignatureId() {
return this.signatureId;
}
public void setSignatureId(String signatureId) {
this.signatureId = signatureId;
putQueryParameter("SignatureId", signatureId);
}
public String getGroupId() {
return this.groupId;
}
public void setGroupId(String groupId) {
this.groupId = groupId;
putQueryParameter("GroupId", groupId);
}
public String getApiIds() {
return this.apiIds;
}
public void setApiIds(String apiIds) {
this.apiIds = apiIds;
putQueryParameter("ApiIds", apiIds);
}
public String getStageName() {
return this.stageName;
}
public void setStageName(String stageName) {
this.stageName = stageName;
putQueryParameter("StageName", stageName);
}
@Override
public Class<RemoveSignatureApisResponse> getResponseClass() {
return RemoveSignatureApisResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/RemoveSignatureApisResponse.java
|
/*
* 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.
*/
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.cloudapi.transform.v20160714.RemoveSignatureApisResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
*
*/
public class RemoveSignatureApisResponse extends AcsResponse {
private String requestId;
public String getRequestId() {
return this.requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
@Override
public RemoveSignatureApisResponse getInstance(UnmarshallerContext context) {
return RemoveSignatureApisResponseUnmarshaller.unmarshall(this, context);
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/RemoveTrafficControlApisRequest.java
|
/*
* 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.
*/
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.RpcAcsRequest;
/**
* @author auto create
*
*/
public class RemoveTrafficControlApisRequest extends RpcAcsRequest<RemoveTrafficControlApisResponse> {
public RemoveTrafficControlApisRequest() {
super("CloudAPI", "2016-07-14", "RemoveTrafficControlApis", "apigateway");
}
private String trafficControlId;
private String groupId;
private String apiIds;
private String stageName;
public String getTrafficControlId() {
return this.trafficControlId;
}
public void setTrafficControlId(String trafficControlId) {
this.trafficControlId = trafficControlId;
putQueryParameter("TrafficControlId", trafficControlId);
}
public String getGroupId() {
return this.groupId;
}
public void setGroupId(String groupId) {
this.groupId = groupId;
putQueryParameter("GroupId", groupId);
}
public String getApiIds() {
return this.apiIds;
}
public void setApiIds(String apiIds) {
this.apiIds = apiIds;
putQueryParameter("ApiIds", apiIds);
}
public String getStageName() {
return this.stageName;
}
public void setStageName(String stageName) {
this.stageName = stageName;
putQueryParameter("StageName", stageName);
}
@Override
public Class<RemoveTrafficControlApisResponse> getResponseClass() {
return RemoveTrafficControlApisResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/RemoveTrafficControlApisResponse.java
|
/*
* 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.
*/
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.cloudapi.transform.v20160714.RemoveTrafficControlApisResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
*
*/
public class RemoveTrafficControlApisResponse extends AcsResponse {
private String requestId;
public String getRequestId() {
return this.requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
@Override
public RemoveTrafficControlApisResponse getInstance(UnmarshallerContext context) {
return RemoveTrafficControlApisResponseUnmarshaller.unmarshall(this, context);
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/RemoveVpcAccessRequest.java
|
/*
* Copyright 2017 Aliyun.com All right reserved. This software is the
* confidential and proprietary information of Aliyun.com ("Confidential
* Information"). You shall not disclose such Confidential Information and shall
* use it only in accordance with the terms of the license agreement you entered
* into with Aliyun.com .
*/
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.RpcAcsRequest;
/**
* @author auto create
*
*/
public class RemoveVpcAccessRequest extends RpcAcsRequest<RemoveVpcAccessResponse> {
public RemoveVpcAccessRequest() {
super("CloudAPI", "2016-07-14", "RemoveVpcAccess", "apigateway");
}
private String vpcId;
private String instanceId;
private Integer port;
public String getVpcId() {
return vpcId;
}
public void setVpcId(String vpcId) {
this.vpcId = vpcId;
putQueryParameter("VpcId", vpcId);
}
public String getInstanceId() {
return instanceId;
}
public void setInstanceId(String instanceId) {
this.instanceId = instanceId;
putQueryParameter("InstanceId", instanceId);
}
public Integer getPort() {
return port;
}
public void setPort(Integer port) {
this.port = port;
putQueryParameter("Port", port);
}
@Override
public Class<RemoveVpcAccessResponse> getResponseClass() {
return RemoveVpcAccessResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/RemoveVpcAccessResponse.java
|
/*
* Copyright 2017 Aliyun.com All right reserved. This software is the
* confidential and proprietary information of Aliyun.com ("Confidential
* Information"). You shall not disclose such Confidential Information and shall
* use it only in accordance with the terms of the license agreement you entered
* into with Aliyun.com .
*/
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.cloudapi.transform.v20160714.RemoveVpcAccessResponseUnmarshaller;
import com.aliyuncs.exceptions.ClientException;
import com.aliyuncs.exceptions.ServerException;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
*
*/
public class RemoveVpcAccessResponse extends AcsResponse {
private String requestId;
public String getRequestId() {
return this.requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
@Override
public AcsResponse getInstance(UnmarshallerContext context) throws ClientException, ServerException {
return RemoveVpcAccessResponseUnmarshaller.unmarshall(this, context);
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/ResetAppCodeRequest.java
|
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.RpcAcsRequest;
/**
* @author auto create
*
*/
public class ResetAppCodeRequest extends RpcAcsRequest<ResetAppCodeResponse> {
public ResetAppCodeRequest() {
super("CloudAPI", "2016-07-14", "ResetAppCode", "apigateway");
}
private String appCode;
public String getAppCode() {
return appCode;
}
public void setAppCode(String appCode) {
this.appCode = appCode;
putQueryParameter("AppCode", appCode);
}
@Override
public Class<ResetAppCodeResponse> getResponseClass() {
return ResetAppCodeResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/ResetAppCodeResponse.java
|
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.cloudapi.transform.v20160714.ResetAppCodeResponseUnmarshaller;
import com.aliyuncs.exceptions.ClientException;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
*/
public class ResetAppCodeResponse extends AcsResponse {
private String requestId;
public String getRequestId() {
return requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
@Override
public AcsResponse getInstance(UnmarshallerContext context) throws ClientException{
return ResetAppCodeResponseUnmarshaller.unmarshall(this, context);
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/ResetAppKeySecretRequest.java
|
/*
* 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.
*/
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.RpcAcsRequest;
/**
* @author auto create
*
*/
public class ResetAppKeySecretRequest extends RpcAcsRequest<ResetAppKeySecretResponse> {
public ResetAppKeySecretRequest() {
super("CloudAPI", "2016-07-14", "ResetAppKeySecret", "apigateway");
}
private String appKey;
public String getAppKey() {
return this.appKey;
}
public void setAppKey(String appKey) {
this.appKey = appKey;
putQueryParameter("AppKey", appKey);
}
@Override
public Class<ResetAppKeySecretResponse> getResponseClass() {
return ResetAppKeySecretResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/ResetAppKeySecretResponse.java
|
/*
* 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.
*/
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.cloudapi.transform.v20160714.ResetAppKeySecretResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
*
*/
public class ResetAppKeySecretResponse extends AcsResponse {
private String requestId;
public String getRequestId() {
return this.requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
@Override
public ResetAppKeySecretResponse getInstance(UnmarshallerContext context) {
return ResetAppKeySecretResponseUnmarshaller.unmarshall(this, context);
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/ResetAppSecretRequest.java
|
/*
* 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.
*/
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.RpcAcsRequest;
/**
* @author auto create
*
*/
public class ResetAppSecretRequest extends RpcAcsRequest<ResetAppSecretResponse> {
public ResetAppSecretRequest() {
super("CloudAPI", "2016-07-14", "ResetAppSecret", "apigateway");
}
private String appKey;
public String getAppKey() {
return this.appKey;
}
public void setAppKey(String appKey) {
this.appKey = appKey;
putQueryParameter("AppKey", appKey);
}
@Override
public Class<ResetAppSecretResponse> getResponseClass() {
return ResetAppSecretResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/ResetAppSecretResponse.java
|
/*
* 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.
*/
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.cloudapi.transform.v20160714.ResetAppSecretResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
*
*/
public class ResetAppSecretResponse extends AcsResponse {
private String requestId;
public String getRequestId() {
return this.requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
@Override
public ResetAppSecretResponse getInstance(UnmarshallerContext context) {
return ResetAppSecretResponseUnmarshaller.unmarshall(this, context);
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/SdkGenerateByAppRequest.java
|
/*
* 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.
*/
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.RpcAcsRequest;
/**
* @author auto create
*
*/
public class SdkGenerateByAppRequest extends RpcAcsRequest<SdkGenerateByAppResponse> {
public SdkGenerateByAppRequest() {
super("CloudAPI", "2016-07-14", "SdkGenerateByApp", "apigateway");
}
private Long appId;
private String language;
public Long getAppId() {
return this.appId;
}
public void setAppId(Long appId) {
this.appId = appId;
if(appId != null){
putQueryParameter("AppId", appId.toString());
}
}
public String getLanguage() {
return this.language;
}
public void setLanguage(String language) {
this.language = language;
if(language != null){
putQueryParameter("Language", language);
}
}
@Override
public Class<SdkGenerateByAppResponse> getResponseClass() {
return SdkGenerateByAppResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/SdkGenerateByAppResponse.java
|
/*
* 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.
*/
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.cloudapi.transform.v20160714.SdkGenerateByAppResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
*
*/
public class SdkGenerateByAppResponse extends AcsResponse {
private String requestId;
private String downloadLink;
public String getRequestId() {
return this.requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
public String getDownloadLink() {
return this.downloadLink;
}
public void setDownloadLink(String downloadLink) {
this.downloadLink = downloadLink;
}
@Override
public SdkGenerateByAppResponse getInstance(UnmarshallerContext context) {
return SdkGenerateByAppResponseUnmarshaller.unmarshall(this, context);
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/SdkGenerateByGroupRequest.java
|
/*
* 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.
*/
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.RpcAcsRequest;
/**
* @author auto create
*
*/
public class SdkGenerateByGroupRequest extends RpcAcsRequest<SdkGenerateByGroupResponse> {
public SdkGenerateByGroupRequest() {
super("CloudAPI", "2016-07-14", "SdkGenerateByGroup", "apigateway");
}
private String groupId;
private String language;
public String getGroupId() {
return this.groupId;
}
public void setGroupId(String groupId) {
this.groupId = groupId;
if(groupId != null){
putQueryParameter("GroupId", groupId);
}
}
public String getLanguage() {
return this.language;
}
public void setLanguage(String language) {
this.language = language;
if(language != null){
putQueryParameter("Language", language);
}
}
@Override
public Class<SdkGenerateByGroupResponse> getResponseClass() {
return SdkGenerateByGroupResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/SdkGenerateByGroupResponse.java
|
/*
* 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.
*/
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.cloudapi.transform.v20160714.SdkGenerateByGroupResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
*
*/
public class SdkGenerateByGroupResponse extends AcsResponse {
private String requestId;
private String downloadLink;
public String getRequestId() {
return this.requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
public String getDownloadLink() {
return this.downloadLink;
}
public void setDownloadLink(String downloadLink) {
this.downloadLink = downloadLink;
}
@Override
public SdkGenerateByGroupResponse getInstance(UnmarshallerContext context) {
return SdkGenerateByGroupResponseUnmarshaller.unmarshall(this, context);
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/SdkGenerateRequest.java
|
/*
* 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.
*/
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.RpcAcsRequest;
/**
* @author auto create
*
*/
public class SdkGenerateRequest extends RpcAcsRequest<SdkGenerateResponse> {
public SdkGenerateRequest() {
super("CloudAPI", "2016-07-14", "SdkGenerate", "apigateway");
}
private String groupId;
private Long appId;
private String language;
public String getGroupId() {
return this.groupId;
}
public void setGroupId(String groupId) {
this.groupId = groupId;
if(groupId != null){
putQueryParameter("GroupId", groupId);
}
}
public Long getAppId() {
return this.appId;
}
public void setAppId(Long appId) {
this.appId = appId;
if(appId != null){
putQueryParameter("AppId", appId.toString());
}
}
public String getLanguage() {
return this.language;
}
public void setLanguage(String language) {
this.language = language;
if(language != null){
putQueryParameter("Language", language);
}
}
@Override
public Class<SdkGenerateResponse> getResponseClass() {
return SdkGenerateResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/SdkGenerateResponse.java
|
/*
* 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.
*/
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.cloudapi.transform.v20160714.SdkGenerateResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
*
*/
public class SdkGenerateResponse extends AcsResponse {
private String requestId;
private String downloadLink;
public String getRequestId() {
return this.requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
public String getDownloadLink() {
return this.downloadLink;
}
public void setDownloadLink(String downloadLink) {
this.downloadLink = downloadLink;
}
@Override
public SdkGenerateResponse getInstance(UnmarshallerContext context) {
return SdkGenerateResponseUnmarshaller.unmarshall(this, context);
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/SetApisAuthoritiesRequest.java
|
/*
* 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.
*/
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.RpcAcsRequest;
/**
* @author auto create
*
*/
public class SetApisAuthoritiesRequest extends RpcAcsRequest<SetApisAuthoritiesResponse> {
public SetApisAuthoritiesRequest() {
super("CloudAPI", "2016-07-14", "SetApisAuthorities", "apigateway");
}
private String groupId;
private Long appId;
private String stageName;
private String apiIds;
private String description;
private String authValidTime;
public String getGroupId() {
return this.groupId;
}
public void setGroupId(String groupId) {
this.groupId = groupId;
putQueryParameter("GroupId", groupId);
}
public Long getAppId() {
return this.appId;
}
public void setAppId(Long appId) {
this.appId = appId;
putQueryParameter("AppId", appId);
}
public String getStageName() {
return this.stageName;
}
public void setStageName(String stageName) {
this.stageName = stageName;
putQueryParameter("StageName", stageName);
}
public String getApiIds() {
return this.apiIds;
}
public void setApiIds(String apiIds) {
this.apiIds = apiIds;
putQueryParameter("ApiIds", apiIds);
}
public String getDescription() {
return this.description;
}
public void setDescription(String description) {
this.description = description;
putQueryParameter("Description", description);
}
public String getAuthValidTime() {
return authValidTime;
}
public void setAuthValidTime(String authValidTime) {
this.authValidTime = authValidTime;
putQueryParameter("AuthValidTime", authValidTime);
}
@Override
public Class<SetApisAuthoritiesResponse> getResponseClass() {
return SetApisAuthoritiesResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/SetApisAuthoritiesResponse.java
|
/*
* 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.
*/
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.cloudapi.transform.v20160714.SetApisAuthoritiesResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
*
*/
public class SetApisAuthoritiesResponse extends AcsResponse {
private String requestId;
public String getRequestId() {
return this.requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
@Override
public SetApisAuthoritiesResponse getInstance(UnmarshallerContext context) {
return SetApisAuthoritiesResponseUnmarshaller.unmarshall(this, context);
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/SetAppsAuthoritiesRequest.java
|
/*
* 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.
*/
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.RpcAcsRequest;
/**
* @author auto create
*
*/
public class SetAppsAuthoritiesRequest extends RpcAcsRequest<SetAppsAuthoritiesResponse> {
public SetAppsAuthoritiesRequest() {
super("CloudAPI", "2016-07-14", "SetAppsAuthorities", "apigateway");
}
private String groupId;
private String apiId;
private String stageName;
private String appIds;
private String description;
public String getGroupId() {
return this.groupId;
}
public void setGroupId(String groupId) {
this.groupId = groupId;
putQueryParameter("GroupId", groupId);
}
public String getApiId() {
return this.apiId;
}
public void setApiId(String apiId) {
this.apiId = apiId;
putQueryParameter("ApiId", apiId);
}
public String getStageName() {
return this.stageName;
}
public void setStageName(String stageName) {
this.stageName = stageName;
putQueryParameter("StageName", stageName);
}
public String getAppIds() {
return this.appIds;
}
public void setAppIds(String appIds) {
this.appIds = appIds;
putQueryParameter("AppIds", appIds);
}
public String getDescription() {
return this.description;
}
public void setDescription(String description) {
this.description = description;
putQueryParameter("Description", description);
}
@Override
public Class<SetAppsAuthoritiesResponse> getResponseClass() {
return SetAppsAuthoritiesResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/SetAppsAuthoritiesResponse.java
|
/*
* 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.
*/
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.cloudapi.transform.v20160714.SetAppsAuthoritiesResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
*
*/
public class SetAppsAuthoritiesResponse extends AcsResponse {
private String requestId;
public String getRequestId() {
return this.requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
@Override
public SetAppsAuthoritiesResponse getInstance(UnmarshallerContext context) {
return SetAppsAuthoritiesResponseUnmarshaller.unmarshall(this, context);
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/SetDomainCertificateRequest.java
|
/*
* 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.
*/
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.RpcAcsRequest;
/**
* @author auto create
*
*/
public class SetDomainCertificateRequest extends RpcAcsRequest<SetDomainCertificateResponse> {
public SetDomainCertificateRequest() {
super("CloudAPI", "2016-07-14", "SetDomainCertificate", "apigateway");
}
private String groupId;
private String domainName;
private String certificateName;
private String certificateBody;
private String certificatePrivateKey;
public String getGroupId() {
return this.groupId;
}
public void setGroupId(String groupId) {
this.groupId = groupId;
putQueryParameter("GroupId", groupId);
}
public String getDomainName() {
return this.domainName;
}
public void setDomainName(String domainName) {
this.domainName = domainName;
putQueryParameter("DomainName", domainName);
}
public String getCertificateName() {
return this.certificateName;
}
public void setCertificateName(String certificateName) {
this.certificateName = certificateName;
putQueryParameter("CertificateName", certificateName);
}
public String getCertificateBody() {
return this.certificateBody;
}
public void setCertificateBody(String certificateBody) {
this.certificateBody = certificateBody;
putQueryParameter("CertificateBody", certificateBody);
}
public String getCertificatePrivateKey() {
return this.certificatePrivateKey;
}
public void setCertificatePrivateKey(String certificatePrivateKey) {
this.certificatePrivateKey = certificatePrivateKey;
putQueryParameter("CertificatePrivateKey", certificatePrivateKey);
}
@Override
public Class<SetDomainCertificateResponse> getResponseClass() {
return SetDomainCertificateResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/SetDomainCertificateResponse.java
|
/*
* 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.
*/
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.cloudapi.transform.v20160714.SetDomainCertificateResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
*/
public class SetDomainCertificateResponse extends AcsResponse {
private String requestId;
public String getRequestId() {
return this.requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
@Override
public SetDomainCertificateResponse getInstance(UnmarshallerContext context) {
return SetDomainCertificateResponseUnmarshaller.unmarshall(this, context);
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/SetDomainRequest.java
|
/*
* 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.
*/
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.RpcAcsRequest;
/**
* @author auto create
*
*/
public class SetDomainRequest extends RpcAcsRequest<SetDomainResponse> {
public SetDomainRequest() {
super("CloudAPI", "2016-07-14", "SetDomain", "apigateway");
}
private String groupId;
private String domainName;
private String certificateName;
private String certificateBody;
private String certificatePrivateKey;
public String getGroupId() {
return this.groupId;
}
public void setGroupId(String groupId) {
this.groupId = groupId;
putQueryParameter("GroupId", groupId);
}
public String getDomainName() {
return this.domainName;
}
public void setDomainName(String domainName) {
this.domainName = domainName;
putQueryParameter("DomainName", domainName);
}
public String getCertificateName() {
return this.certificateName;
}
public void setCertificateName(String certificateName) {
this.certificateName = certificateName;
putQueryParameter("CertificateName", certificateName);
}
public String getCertificateBody() {
return this.certificateBody;
}
public void setCertificateBody(String certificateBody) {
this.certificateBody = certificateBody;
putQueryParameter("CertificateBody", certificateBody);
}
public String getCertificatePrivateKey() {
return this.certificatePrivateKey;
}
public void setCertificatePrivateKey(String certificatePrivateKey) {
this.certificatePrivateKey = certificatePrivateKey;
putQueryParameter("CertificatePrivateKey", certificatePrivateKey);
}
@Override
public Class<SetDomainResponse> getResponseClass() {
return SetDomainResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/SetDomainResponse.java
|
/*
* 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.
*/
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.cloudapi.transform.v20160714.SetDomainResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
*
*/
public class SetDomainResponse extends AcsResponse {
private String requestId;
private String groupId;
private String domainName;
private String subDomain;
private String domainBindingStatus;
private String domainLegalStatus;
private String domainRemark;
public String getRequestId() {
return this.requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
public String getGroupId() {
return this.groupId;
}
public void setGroupId(String groupId) {
this.groupId = groupId;
}
public String getDomainName() {
return this.domainName;
}
public void setDomainName(String domainName) {
this.domainName = domainName;
}
public String getSubDomain() {
return this.subDomain;
}
public void setSubDomain(String subDomain) {
this.subDomain = subDomain;
}
public String getDomainBindingStatus() {
return this.domainBindingStatus;
}
public void setDomainBindingStatus(String domainBindingStatus) {
this.domainBindingStatus = domainBindingStatus;
}
public String getDomainLegalStatus() {
return domainLegalStatus;
}
public void setDomainLegalStatus(String domainLegalStatus) {
this.domainLegalStatus = domainLegalStatus;
}
public String getDomainRemark() {
return domainRemark;
}
public void setDomainRemark(String domainRemark) {
this.domainRemark = domainRemark;
}
@Override
public SetDomainResponse getInstance(UnmarshallerContext context) {
return SetDomainResponseUnmarshaller.unmarshall(this, context);
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/SetDomainWebSocketStatusRequest.java
|
/*
* 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.
*/
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.RpcAcsRequest;
/**
* @author auto create
*
*/
public class SetDomainWebSocketStatusRequest extends RpcAcsRequest<SetDomainWebSocketStatusResponse> {
public SetDomainWebSocketStatusRequest() {
super("CloudAPI", "2016-07-14", "SetDomainWebSocketStatus", "apigateway");
}
private String groupId;
private String domainName;
private String actionValue;
public String getGroupId() {
return this.groupId;
}
public void setGroupId(String groupId) {
this.groupId = groupId;
if(groupId != null){
putQueryParameter("GroupId", groupId);
}
}
public String getDomainName() {
return this.domainName;
}
public void setDomainName(String domainName) {
this.domainName = domainName;
if(domainName != null){
putQueryParameter("DomainName", domainName);
}
}
public String getActionValue() {
return this.actionValue;
}
public void setActionValue(String actionValue) {
this.actionValue = actionValue;
if(actionValue != null){
putQueryParameter("ActionValue", actionValue);
}
}
@Override
public Class<SetDomainWebSocketStatusResponse> getResponseClass() {
return SetDomainWebSocketStatusResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/SetDomainWebSocketStatusResponse.java
|
/*
* 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.
*/
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.cloudapi.transform.v20160714.SetDomainWebSocketStatusResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
*
*/
public class SetDomainWebSocketStatusResponse extends AcsResponse {
private String requestId;
public String getRequestId() {
return this.requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
@Override
public SetDomainWebSocketStatusResponse getInstance(UnmarshallerContext context) {
return SetDomainWebSocketStatusResponseUnmarshaller.unmarshall(this, context);
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/SetGroupAuthAppCodeRequest.java
|
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.RpcAcsRequest;
/**
*/
public class SetGroupAuthAppCodeRequest extends RpcAcsRequest<SetGroupAuthAppCodeResponse> {
public SetGroupAuthAppCodeRequest() {
super("CloudAPI", "2016-07-14", "SetGroupAuthAppCode", "apigateway");
}
private String groupId;
private String authAppCode;
public String getGroupId() {
return groupId;
}
public void setGroupId(String groupId) {
this.groupId = groupId;
putQueryParameter("GroupId", groupId);
}
public String getAuthAppCode() {
return authAppCode;
}
public void setAuthAppCode(String authAppCode) {
this.authAppCode = authAppCode;
putQueryParameter("AuthAppCode", authAppCode);
}
@Override
public Class<SetGroupAuthAppCodeResponse> getResponseClass() {
return SetGroupAuthAppCodeResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/SetGroupAuthAppCodeResponse.java
|
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.cloudapi.transform.v20160714.SetGroupAuthAppCodeResponseUnmarshaller;
import com.aliyuncs.exceptions.ClientException;
import com.aliyuncs.transform.UnmarshallerContext;
/**
*/
public class SetGroupAuthAppCodeResponse extends AcsResponse {
private String requestId;
public String getRequestId() {
return requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
@Override
public AcsResponse getInstance(UnmarshallerContext context) throws ClientException{
return SetGroupAuthAppCodeResponseUnmarshaller.unmarshall(this, context);
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/SetIpControlApisRequest.java
|
/*
* 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.
*/
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.RpcAcsRequest;
/**
* @author auto create
*
*/
public class SetIpControlApisRequest extends RpcAcsRequest<SetIpControlApisResponse> {
public SetIpControlApisRequest() {
super("CloudAPI", "2016-07-14", "SetIpControlApis", "apigateway");
}
private String stageName;
private String ipControlId;
private String groupId;
private String apiIds;
public String getStageName() {
return this.stageName;
}
public void setStageName(String stageName) {
this.stageName = stageName;
if(stageName != null){
putQueryParameter("StageName", stageName);
}
}
public String getIpControlId() {
return this.ipControlId;
}
public void setIpControlId(String ipControlId) {
this.ipControlId = ipControlId;
if(ipControlId != null){
putQueryParameter("IpControlId", ipControlId);
}
}
public String getGroupId() {
return this.groupId;
}
public void setGroupId(String groupId) {
this.groupId = groupId;
if(groupId != null){
putQueryParameter("GroupId", groupId);
}
}
public String getApiIds() {
return this.apiIds;
}
public void setApiIds(String apiIds) {
this.apiIds = apiIds;
if(apiIds != null){
putQueryParameter("ApiIds", apiIds);
}
}
@Override
public Class<SetIpControlApisResponse> getResponseClass() {
return SetIpControlApisResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/SetIpControlApisResponse.java
|
/*
* 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.
*/
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.cloudapi.transform.v20160714.SetIpControlApisResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
*/
public class SetIpControlApisResponse extends AcsResponse {
private String requestId;
public String getRequestId() {
return this.requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
@Override
public SetIpControlApisResponse getInstance(UnmarshallerContext context) {
return SetIpControlApisResponseUnmarshaller.unmarshall(this, context);
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/SetSignatureApisRequest.java
|
/*
* 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.
*/
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.RpcAcsRequest;
/**
* @author auto create
*
*/
public class SetSignatureApisRequest extends RpcAcsRequest<SetSignatureApisResponse> {
public SetSignatureApisRequest() {
super("CloudAPI", "2016-07-14", "SetSignatureApis", "apigateway");
}
private String signatureId;
private String groupId;
private String apiIds;
private String stageName;
public String getSignatureId() {
return this.signatureId;
}
public void setSignatureId(String signatureId) {
this.signatureId = signatureId;
putQueryParameter("SignatureId", signatureId);
}
public String getGroupId() {
return this.groupId;
}
public void setGroupId(String groupId) {
this.groupId = groupId;
putQueryParameter("GroupId", groupId);
}
public String getApiIds() {
return this.apiIds;
}
public void setApiIds(String apiIds) {
this.apiIds = apiIds;
putQueryParameter("ApiIds", apiIds);
}
public String getStageName() {
return this.stageName;
}
public void setStageName(String stageName) {
this.stageName = stageName;
putQueryParameter("StageName", stageName);
}
@Override
public Class<SetSignatureApisResponse> getResponseClass() {
return SetSignatureApisResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/SetSignatureApisResponse.java
|
/*
* 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.
*/
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.cloudapi.transform.v20160714.SetSignatureApisResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
*
*/
public class SetSignatureApisResponse extends AcsResponse {
private String requestId;
public String getRequestId() {
return this.requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
@Override
public SetSignatureApisResponse getInstance(UnmarshallerContext context) {
return SetSignatureApisResponseUnmarshaller.unmarshall(this, context);
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/SetTrafficControlApisRequest.java
|
/*
* 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.
*/
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.RpcAcsRequest;
/**
* @author auto create
*
*/
public class SetTrafficControlApisRequest extends RpcAcsRequest<SetTrafficControlApisResponse> {
public SetTrafficControlApisRequest() {
super("CloudAPI", "2016-07-14", "SetTrafficControlApis", "apigateway");
}
private String trafficControlId;
private String groupId;
private String apiIds;
private String stageName;
public String getTrafficControlId() {
return this.trafficControlId;
}
public void setTrafficControlId(String trafficControlId) {
this.trafficControlId = trafficControlId;
putQueryParameter("TrafficControlId", trafficControlId);
}
public String getGroupId() {
return this.groupId;
}
public void setGroupId(String groupId) {
this.groupId = groupId;
putQueryParameter("GroupId", groupId);
}
public String getApiIds() {
return this.apiIds;
}
public void setApiIds(String apiIds) {
this.apiIds = apiIds;
putQueryParameter("ApiIds", apiIds);
}
public String getStageName() {
return this.stageName;
}
public void setStageName(String stageName) {
this.stageName = stageName;
putQueryParameter("StageName", stageName);
}
@Override
public Class<SetTrafficControlApisResponse> getResponseClass() {
return SetTrafficControlApisResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/SetTrafficControlApisResponse.java
|
/*
* 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.
*/
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.cloudapi.transform.v20160714.SetTrafficControlApisResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
*
*/
public class SetTrafficControlApisResponse extends AcsResponse {
private String requestId;
public String getRequestId() {
return this.requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
@Override
public SetTrafficControlApisResponse getInstance(UnmarshallerContext context) {
return SetTrafficControlApisResponseUnmarshaller.unmarshall(this, context);
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/SetVpcAccessRequest.java
|
/*
* Copyright 2017 Aliyun.com All right reserved. This software is the
* confidential and proprietary information of Aliyun.com ("Confidential
* Information"). You shall not disclose such Confidential Information and shall
* use it only in accordance with the terms of the license agreement you entered
* into with Aliyun.com .
*/
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.RpcAcsRequest;
/**
* @author auto create
*
*/
public class SetVpcAccessRequest extends RpcAcsRequest<SetVpcAccessResponse> {
public SetVpcAccessRequest() {
super("CloudAPI", "2016-07-14", "SetVpcAccess", "apigateway");
}
private String vpcId;
private String instanceId;
private Integer port;
private String name;
public String getVpcId() {
return vpcId;
}
public void setVpcId(String vpcId) {
this.vpcId = vpcId;
putQueryParameter("VpcId", vpcId);
}
public String getInstanceId() {
return instanceId;
}
public void setInstanceId(String instanceId) {
this.instanceId = instanceId;
putQueryParameter("InstanceId", instanceId);
}
public Integer getPort() {
return port;
}
public void setPort(Integer port) {
this.port = port;
putQueryParameter("Port", port);
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
putQueryParameter("Name", name);
}
@Override
public Class<SetVpcAccessResponse> getResponseClass() {
return SetVpcAccessResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/SetVpcAccessResponse.java
|
/*
* Copyright 2017 Aliyun.com All right reserved. This software is the
* confidential and proprietary information of Aliyun.com ("Confidential
* Information"). You shall not disclose such Confidential Information and shall
* use it only in accordance with the terms of the license agreement you entered
* into with Aliyun.com .
*/
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.cloudapi.transform.v20160714.SetVpcAccessResponseUnmarshaller;
import com.aliyuncs.exceptions.ClientException;
import com.aliyuncs.exceptions.ServerException;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
*
*/
public class SetVpcAccessResponse extends AcsResponse {
private String requestId;
public String getRequestId() {
return this.requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
@Override
public AcsResponse getInstance(UnmarshallerContext context) throws ClientException, ServerException {
return SetVpcAccessResponseUnmarshaller.unmarshall(this, context);
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/SwitchApiRequest.java
|
/*
* 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.
*/
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.RpcAcsRequest;
/**
* @author auto create
*
*/
public class SwitchApiRequest extends RpcAcsRequest<SwitchApiResponse> {
public SwitchApiRequest() {
super("CloudAPI", "2016-07-14", "SwitchApi", "apigateway");
}
private String groupId;
private String apiId;
private String stageName;
private String description;
private String historyVersion;
public String getGroupId() {
return this.groupId;
}
public void setGroupId(String groupId) {
this.groupId = groupId;
putQueryParameter("GroupId", groupId);
}
public String getApiId() {
return this.apiId;
}
public void setApiId(String apiId) {
this.apiId = apiId;
putQueryParameter("ApiId", apiId);
}
public String getStageName() {
return this.stageName;
}
public void setStageName(String stageName) {
this.stageName = stageName;
putQueryParameter("StageName", stageName);
}
public String getDescription() {
return this.description;
}
public void setDescription(String description) {
this.description = description;
putQueryParameter("Description", description);
}
public String getHistoryVersion() {
return this.historyVersion;
}
public void setHistoryVersion(String historyVersion) {
this.historyVersion = historyVersion;
putQueryParameter("HistoryVersion", historyVersion);
}
@Override
public Class<SwitchApiResponse> getResponseClass() {
return SwitchApiResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/SwitchApiResponse.java
|
/*
* 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.
*/
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.cloudapi.transform.v20160714.SwitchApiResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
*
*/
public class SwitchApiResponse extends AcsResponse {
private String requestId;
public String getRequestId() {
return this.requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
@Override
public SwitchApiResponse getInstance(UnmarshallerContext context) {
return SwitchApiResponseUnmarshaller.unmarshall(this, context);
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/TagResourcesRequest.java
|
package com.aliyuncs.cloudapi.model.v20160714;
import java.util.List;
import com.aliyuncs.RpcAcsRequest;
/**
*
*/
public class TagResourcesRequest extends RpcAcsRequest<TagResourcesResponse> {
public TagResourcesRequest() {
super("CloudAPI", "2016-07-14", "TagResources", "apigateway");
}
private List<String> resourceIds;
private String resourceType;
private List<Tag> tags;
public List<String> getResourceIds() {
return resourceIds;
}
public void setResourceIds(List<String> resourceIds) {
this.resourceIds = resourceIds;
if (resourceIds != null) {
for (int i = 0; i < resourceIds.size(); i++) {
putQueryParameter("ResourceId." + (i + 1) , resourceIds.get(i));
}
}
}
public String getResourceType() {
return resourceType;
}
public void setResourceType(String resourceType) {
this.resourceType = resourceType;
putQueryParameter("ResourceType", resourceType);
}
public List<Tag> getTags() {
return tags;
}
public void setTags(List<Tag> tags) {
this.tags = tags;
if (tags != null) {
for (int i = 0; i < tags.size(); i++) {
putQueryParameter("Tag." + (i + 1) + ".Value" , tags.get(i).getValue());
putQueryParameter("Tag." + (i + 1) + ".Key" , tags.get(i).getKey());
}
}
}
@Override
public Class<TagResourcesResponse> getResponseClass() {
return TagResourcesResponse.class;
}
public static class Tag {
private String value;
private String key;
public String getValue() {
return this.value;
}
public void setValue(String value) {
this.value = value;
}
public String getKey() {
return this.key;
}
public void setKey(String key) {
this.key = key;
}
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/TagResourcesResponse.java
|
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.cloudapi.transform.v20160714.TagResourcesResponseUnmarshaller;
import com.aliyuncs.exceptions.ClientException;
import com.aliyuncs.transform.UnmarshallerContext;
/**
*
*/
public class TagResourcesResponse extends AcsResponse {
private String requestId;
public String getRequestId() {
return requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
@Override
public AcsResponse getInstance(UnmarshallerContext unmarshallerContext) throws ClientException {
return TagResourcesResponseUnmarshaller.unmarshall(this, unmarshallerContext);
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/UntagResourcesRequest.java
|
package com.aliyuncs.cloudapi.model.v20160714;
import java.util.List;
import com.aliyuncs.RpcAcsRequest;
/**
*
*/
public class UntagResourcesRequest extends RpcAcsRequest<UntagResourcesResponse> {
public UntagResourcesRequest() {
super("CloudAPI", "2016-07-14", "UntagResources", "apigateway");
}
private List<String> resourceIds;
private String resourceType;
private List<String> tagKeys;
private Boolean all;
public List<String> getResourceIds() {
return resourceIds;
}
public void setResourceIds(List<String> resourceIds) {
this.resourceIds = resourceIds;
if (resourceIds != null) {
for (int i = 0; i < resourceIds.size(); i++) {
putQueryParameter("ResourceId." + (i + 1) , resourceIds.get(i));
}
}
}
public String getResourceType() {
return resourceType;
}
public void setResourceType(String resourceType) {
this.resourceType = resourceType;
putQueryParameter("ResourceType", resourceType);
}
public List<String> getTagKeys() {
return tagKeys;
}
public void setTagKeys(List<String> tagKeys) {
this.tagKeys = tagKeys;
if (tagKeys != null) {
for (int i = 0; i < tagKeys.size(); i++) {
putQueryParameter("TagKey." + (i + 1) , tagKeys.get(i));
}
}
}
public Boolean getAll() {
return all;
}
public void setAll(Boolean all) {
this.all = all;
putQueryParameter("All", all);
}
@Override
public Class<UntagResourcesResponse> getResponseClass() {
return UntagResourcesResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/model/v20160714/UntagResourcesResponse.java
|
package com.aliyuncs.cloudapi.model.v20160714;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.cloudapi.transform.v20160714.UntagResourcesResponseUnmarshaller;
import com.aliyuncs.exceptions.ClientException;
import com.aliyuncs.transform.UnmarshallerContext;
/**
*
*/
public class UntagResourcesResponse extends AcsResponse {
private String requestId;
public String getRequestId() {
return requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
@Override
public AcsResponse getInstance(UnmarshallerContext unmarshallerContext) throws ClientException {
return UntagResourcesResponseUnmarshaller.unmarshall(this, unmarshallerContext);
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/openapi/sdk
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/openapi/sdk/builder/ApiBuilder.java
|
/*
* 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.
*/
package com.aliyuncs.cloudapi.openapi.sdk.builder;
import com.alibaba.fastjson.JSON;
import com.aliyuncs.IAcsClient;
import com.aliyuncs.cloudapi.model.v20160714.*;
import com.aliyuncs.cloudapi.openapi.sdk.common.OperationContext;
import com.aliyuncs.cloudapi.openapi.sdk.common.OperationLogger;
import com.aliyuncs.cloudapi.openapi.sdk.common.OperationLoggerFactory;
import com.aliyuncs.cloudapi.openapi.sdk.constant.ApiAuthType;
import com.aliyuncs.cloudapi.openapi.sdk.constant.ParameterLocation;
import com.aliyuncs.exceptions.ClientException;
import java.util.ArrayList;
import java.util.List;
/**
* 用于构建API的Builder
*
* @author ailan.gl 2018-09-10
*/
public class ApiBuilder {
private static final OperationLogger LOGGER = OperationLoggerFactory.getLogger("Api");
private IAcsClient client;
private String apiId;
private String groupId;
private CreateApiRequest apiRequest;
private DescribeApiResponse.RequestConfig requestConfig;
private DescribeApiResponse.ServiceConfig serviceConfig;
private DescribeApiResponse.OpenIdConnectConfig oidcConfig;
private List<DescribeApiResponse.RequestParameter> requestParameters = new ArrayList<DescribeApiResponse.RequestParameter>();
private List<DescribeApiResponse.ServiceParameter> serviceParameters = new ArrayList<DescribeApiResponse.ServiceParameter>();
private List<DescribeApiResponse.ServiceParameterMap> serviceParameterMap = new ArrayList<DescribeApiResponse.ServiceParameterMap>();
private List<DescribeApiResponse.ConstantParameter> constantParameters = new ArrayList<DescribeApiResponse.ConstantParameter>();
private List<DescribeApiResponse.SystemParameter> systemParameters = new ArrayList<DescribeApiResponse.SystemParameter>();
public ApiBuilder(IAcsClient client, String groupId) {
this.client = client;
this.groupId = groupId;
apiRequest = new CreateApiRequest();
apiRequest.setGroupId(groupId);
apiRequest.setAuthType("APP");
apiRequest.setVisibility("PRIVATE");
apiRequest.setResultType("JSON");
apiRequest.setResultSample("{}");
requestConfig = new DescribeApiResponse.RequestConfig();
requestConfig.setRequestMode("");
requestConfig.setRequestProtocol("HTTP");
requestConfig.setRequestMode("PASSTHROUGH");
// requestConfig.setBodyFormat("STREAM");
requestConfig.setPostBodyDescription("");
serviceConfig = new DescribeApiResponse.ServiceConfig();
serviceConfig.setContentTypeCatagory("CLIENT");
serviceConfig.setMock("false");
serviceConfig.setServiceVpcEnable(false);
}
public String getApiId() {
return this.apiId;
}
public String getPath() {
return this.requestConfig.getRequestPath();
}
public String getMethod() {
return this.requestConfig.getRequestHttpMethod();
}
public ApiBuilder describe() throws ClientException {
DescribeApiRequest request = new DescribeApiRequest();
request.setApiId(apiId);
OperationContext c = LOGGER.begin("DescribeApi", apiId);
try {
DescribeApiResponse response = client.getAcsResponse(request);
this.oidcConfig = response.getOpenIdConnectConfig();
this.requestConfig = response.getRequestConfig();
this.serviceConfig = response.getServiceConfig();
this.requestParameters = response.getRequestParameters();
this.serviceParameterMap = response.getServiceParametersMap();
this.constantParameters = response.getConstantParameters();
this.systemParameters = response.getSystemParameters();
return this;
} catch (ClientException ex) {
c.failed(ex);
throw ex;
}
}
public ApiBuilder(IAcsClient client, String groupId, String apiId) {
this.client = client;
this.groupId = groupId;
this.apiId = apiId;
}
public ApiBuilder name(String name) {
apiRequest.setApiName(name);
return this;
}
public ApiBuilder path(String path) {
requestConfig.setRequestPath(path);
return this;
}
public ApiBuilder method(String method) {
requestConfig.setRequestHttpMethod(method);
if (serviceConfig.getServiceHttpMethod() == null || serviceConfig.getServiceHttpMethod().length() == 0) {
serviceConfig.setServiceHttpMethod(method);
}
return this;
}
public ApiBuilder aoneAppName(String aoneAppName) {
serviceConfig.setAoneAppName(aoneAppName);
return this;
}
public ApiBuilder backendHttp(String method, String host, String path) {
if (host.startsWith("https:")) {
serviceConfig.setServiceProtocol("HTTPS");
} else {
serviceConfig.setAoneAppName("HTTP");
}
serviceConfig.setServiceHttpMethod(method);
serviceConfig.setServiceAddress(host);
serviceConfig.setServicePath(path);
serviceConfig.setServiceTimeout(10000);
return this;
}
public ApiBuilder backendHttpVpc(String method, String vpcAccessName, String path) {
DescribeApiResponse.VpcConfig vpcConfig = new DescribeApiResponse.VpcConfig();
vpcConfig.setName(vpcAccessName);
serviceConfig.setVpcConfig(vpcConfig);
serviceConfig.setServiceTimeout(10000);
return this;
}
public ApiBuilder backendPath(String path) {
serviceConfig.setServicePath(path);
return this;
}
public ApiBuilder backendFunctionCompute(String regionId, String roleArn, String serviceName, String functionName) {
return backendFunctionCompute(regionId, roleArn, serviceName, functionName, null);
}
public ApiBuilder backendFunctionCompute(String regionId, String roleArn, String serviceName, String functionName, String version) {
DescribeApiResponse.FunctionComputeConfig fc = new DescribeApiResponse.FunctionComputeConfig();
fc.setFcRegionId(regionId);
fc.setServiceName(serviceName);
fc.setFunctionName(functionName);
fc.setRoleArn(roleArn);
// TODO: set version
serviceConfig.setFunctionComputeConfig(fc);
serviceConfig.setServiceTimeout(10000);
return this;
}
public ApiBuilder backendMock(String mockResult) {
serviceConfig.setMock("TRUE");
serviceConfig.setMockResult(mockResult);
return this;
}
public ApiBuilder backendMock(int statusCode, String mockBody) {
serviceConfig.setMockStatusCode(statusCode);
serviceConfig.setMock("TRUE");
serviceConfig.setMockResult(mockBody);
return this;
}
public ApiBuilder backendMockHeader(String name, String value) {
if (serviceConfig.getMockHeaders() == null) {
serviceConfig.setMockHeaders(new ArrayList<DescribeApiResponse.MockHeader>());
}
DescribeApiResponse.MockHeader header = new DescribeApiResponse.MockHeader();
header.setHeaderName(name);
header.setHeaderValue(value);
serviceConfig.getMockHeaders().add(header);
return this;
}
public ApiBuilder backendTimeout(int timeout) {
serviceConfig.setServiceTimeout(timeout);
return this;
}
public ApiBuilder enableMapping() {
requestConfig.setRequestMode("MAPPING");
return this;
}
public ApiBuilder websocketApiType(String websocketApiType) {
apiRequest.setWebSocketApiType(websocketApiType);
return this;
}
public ApiBuilder oidcGetToken(boolean needAppAuth, String kid, String publicJwk) {
apiRequest.setAuthType(needAppAuth ? "APPOPENID" : "OPENID");
oidcConfig = new DescribeApiResponse.OpenIdConnectConfig();
oidcConfig.setOpenIdApiType("IDTOKEN");
oidcConfig.setPublicKeyId(kid);
oidcConfig.setPublicKey(publicJwk);
return this;
}
public ApiBuilder oidcBusiness(boolean needAppAuth, String kid, String parameterName) {
apiRequest.setAuthType(needAppAuth ? "APPOPENID" : "OPENID");
oidcConfig = new DescribeApiResponse.OpenIdConnectConfig();
oidcConfig.setOpenIdApiType("BUSINESS");
oidcConfig.setIdTokenParamName(parameterName);
return this;
}
public ApiBuilder bodyFormatStream() {
requestConfig.setBodyFormat("STREAM");
return this;
}
public ApiBuilder bodyFormatForm() {
requestConfig.setBodyFormat("FORM");
return this;
}
public ApiBuilder enableHMacSHA1() {
apiRequest.setAllowSignatureMethod("HmacSHA1,HmacSHA256");
return this;
}
public ApiParameterBuilder pathParameter(String name) {
return parameter(name, ParameterLocation.PATH).required();
}
public ApiParameterBuilder queryParameter(String name) {
return parameter(name, ParameterLocation.QUERY);
}
public ApiParameterBuilder formParameter(String name) {
requestConfig.setRequestMode("MAPPING");
requestConfig.setBodyFormat("FORM");
return parameter(name, ParameterLocation.FORM_DATA);
}
public ApiParameterBuilder headerParameter(String name) {
return parameter(name, ParameterLocation.HEADER);
}
public ApiParameterBuilder parameter(String name, ParameterLocation location) {
return new ApiParameterBuilder(this, name, location);
}
public ApiParameterBuilder parameter(String name, ParameterLocation location, String serviceName) {
return new ApiParameterBuilder(this, name, location, serviceName);
}
public ApiParameterBuilder oidcParameter(String name, ParameterLocation location, String serviceName) {
return new ApiParameterBuilder(this, name, location, serviceName);
}
public ApiBuilder protocol(String protocol) {
requestConfig.setRequestProtocol(protocol);
return this;
}
public ApiBuilder authType(ApiAuthType authType) {
apiRequest.setAuthType(authType.openapiValue());
return this;
}
public ApiBuilder forceNonceCheck() {
return forceNonceCheck(true);
}
public ApiBuilder forceNonceCheck(boolean b) {
apiRequest.setForceNonceCheck(b);
return this;
}
public ApiBuilder disableInternet() {
return disableInternet(true);
}
public ApiBuilder disableInternet(boolean b) {
apiRequest.setDisableInternet(b);
return this;
}
public ApiBuilder systemParameter(String name, ParameterLocation location, String systemName) {
DescribeApiResponse.SystemParameter sp = new DescribeApiResponse.SystemParameter();
sp.setLocation(location.openapiValue());
sp.setServiceParameterName(name);
sp.setParameterName(systemName);
systemParameters.add(sp);
return this;
}
public ApiBuilder constantParameter(String name, ParameterLocation location, String value) {
DescribeApiResponse.ConstantParameter cp = new DescribeApiResponse.ConstantParameter();
cp.setLocation(location.openapiValue());
cp.setConstantValue(value);
cp.setServiceParameterName(name);
constantParameters.add(cp);
return this;
}
public ApiBuilder create() throws ClientException {
CreateApiRequest request = apiRequest;
request.setRequestConfig(requestConfig);
request.setOpenIdConnectConfig(oidcConfig);
request.setServiceConfig(serviceConfig);
request.setRequestParameters(requestParameters);
request.setServiceParameters(serviceParameters);
request.setServiceParametersMap(serviceParameterMap);
request.setConstantParameters(constantParameters);
request.setSystemParameters(systemParameters);
OperationContext c = LOGGER.begin("CreateApi", JSON.toJSONString(request));
try {
CreateApiResponse response = client.getAcsResponse(request);
c.success(response.getRequestId(), "ok:" + response.getApiId());
this.apiId = response.getApiId();
return this;
} catch (ClientException ex) {
c.failed(ex);
throw ex;
}
}
/**
* 变更API信息
* @return
* @throws ClientException
*/
public ApiBuilder modify() throws ClientException {
ModifyApiRequest mr = new ModifyApiRequest();
mr.setApiId(apiId);
mr.setGroupId(groupId);
mr.setForceNonceCheck(this.apiRequest.getForceNonceCheck());
mr.setApiName(this.apiRequest.getApiName());
mr.setAuthType(this.apiRequest.getAuthType());
mr.setDescription(this.apiRequest.getDescription());
mr.setVisibility(this.apiRequest.getVisibility());
mr.setResultType(this.apiRequest.getResultType());
mr.setResultSample(this.apiRequest.getResultSample());
mr.setRequestConfig(requestConfig);
mr.setOpenIdConnectConfig(oidcConfig);
mr.setServiceConfig(serviceConfig);
mr.setRequestParameters(requestParameters);
mr.setServiceParameters(serviceParameters);
mr.setServiceParametersMap(serviceParameterMap);
mr.setConstantParameters(constantParameters);
mr.setSystemParameters(systemParameters);
OperationContext c = LOGGER.begin("ModifyApi", JSON.toJSONString(mr, true));
try {
ModifyApiResponse response = client.getAcsResponse(mr);
c.success(response.getRequestId(), "ok");
return this;
} catch (ClientException ex) {
c.failed(ex);
throw ex;
}
}
/**
* 部署API
* @param stageName
* @return
* @throws ClientException
*/
public ApiBuilder deploy(String stageName) throws ClientException {
return deploy(stageName, "deploying:" + stageName);
}
/**
* 部署API
* @param stageName
* @param description
* @return
* @throws ClientException
*/
public ApiBuilder deploy(String stageName, String description) throws ClientException {
DeployApiRequest request = new DeployApiRequest();
request.setGroupId(groupId);
request.setApiId(apiId);
request.setStageName(stageName);
request.setDescription(description);
String msg = String.format("%s/%s -> %s", groupId, apiId, stageName);
OperationContext c = LOGGER.begin("DeployApi", msg);
try {
DeployApiResponse response = client.getAcsResponse(request);
c.success(response.getRequestId(), "ok");
return this;
} catch (ClientException ex) {
c.failed(ex);
throw ex;
}
}
public ApiBuilder abolishAll() throws ClientException {
DescribeDeployedApisRequest request = new DescribeDeployedApisRequest();
request.setGroupId(groupId);
request.setApiId(apiId);
OperationContext c = LOGGER.begin("DescribeDeployedApis", apiId);
List<String> stages = new ArrayList<String>();
try {
DescribeDeployedApisResponse response = client.getAcsResponse(request);
c.success(response.getRequestId(), "count:" + response.getDeployedApis().size());
for (DescribeDeployedApisResponse.DeployedApiItem i: response.getDeployedApis()) {
stages.add(i.getStageName());
}
} catch (ClientException ex) {
c.failed(ex);
throw ex;
}
for (String stageName: stages) {
abolish(stageName);
}
return this;
}
public ApiBuilder abolish(String stageName) throws ClientException {
AbolishApiRequest request = new AbolishApiRequest();
request.setGroupId(groupId);
request.setApiId(apiId);
request.setStageName(stageName);
String msg = String.format("%s/%s -> %s", groupId, apiId, stageName);
OperationContext c = LOGGER.begin("AbolishApi", msg);
try {
AbolishApiResponse response = client.getAcsResponse(request);
c.success(response.getRequestId(), "ok");
return this;
} catch (ClientException ex) {
c.failed(ex);
throw ex;
}
}
// TODO
//public ApiBuilder switchVersion() {
// //
// // SwitchApiRequest r;
// // r = new SwitchApiRequest();
// // r.setApiId(apiId);
// // r.setStageName(stageName);
// // r.setDescription("fgdfgdfgdfgfdwy");
// // r.setHistoryVersion(version);
// // SwitchApiResponse response = client.getAcsResponse(r);
// // LOGGER.warn("<<<OpenAPI>>> switchApi {} done!", apiId);
//}
public ApiBuilder authorize(String stageName, long appId) throws ClientException {
return authorize(stageName, appId, null);
}
public ApiBuilder authorize(String stageName, long appId, String authValidTime) throws ClientException {
SetApisAuthoritiesRequest request = new SetApisAuthoritiesRequest();
request.setGroupId(groupId);
request.setApiIds(apiId);
request.setStageName(stageName);
request.setAppId(appId);
request.setAuthValidTime(authValidTime);
String msg = String.format("%s/%s[%s] -> %d", groupId, apiId, stageName, appId);
OperationContext c = LOGGER.begin("SetApisAuthorities", msg);
try {
SetApisAuthoritiesResponse response = client.getAcsResponse(request);
c.success(response.getRequestId(), "ok");
return this;
} catch (ClientException ex) {
c.failed(ex);
throw ex;
}
}
//public ApiBuilder unauthorize(long appId) throws ClientException {
// for (String stage: stages) {
// unauthorize(stage, appId);
// }
// return this;
//}
public ApiBuilder unauthorize(String stageName, long appId) throws ClientException {
RemoveApisAuthoritiesRequest request = new RemoveApisAuthoritiesRequest();
request.setGroupId(groupId);
request.setApiIds(apiId);
request.setStageName(stageName);
request.setAppId(appId);
String msg = String.format("%s/%s[%s] -> %d", groupId, apiId, stageName, appId);
OperationContext c = LOGGER.begin("RemoveApisAuthorities", msg);
try {
RemoveApisAuthoritiesResponse response = client.getAcsResponse(request);
c.success(response.getRequestId(), "ok");
return this;
} catch (ClientException ex) {
c.failed(ex);
throw ex;
}
}
public ApiBuilder delete() throws ClientException {
DeleteApiRequest request = new DeleteApiRequest();
request.setApiId(apiId);
request.setGroupId(groupId);
String msg = String.format("%s/%s", groupId, apiId);
OperationContext c = LOGGER.begin("DeleteApi", msg);
try {
DeleteApiResponse response = client.getAcsResponse(request);
c.success(response.getRequestId(), "ok");
return this;
} catch (ClientException ex) {
c.failed(ex);
throw ex;
}
}
public ApiBuilder plugin(String stageName, String pluginId) throws ClientException {
AttachPluginRequest request = new AttachPluginRequest();
request.setPluginId(pluginId);
request.setStageName(stageName);
request.setApiId(apiId);
String msg = String.format("%s[%s] -> %s", apiId, stageName, pluginId);
OperationContext c = LOGGER.begin("AttachPlugin", msg);
try {
AttachPluginResponse response = client.getAcsResponse(request);
c.success(response.getRequestId(), "ok");
return this;
} catch (ClientException ex) {
c.failed(ex);
throw ex;
}
}
public ApiBuilder detachPlugin(String stageName, String pluginId) throws ClientException {
DetachPluginRequest request = new DetachPluginRequest();
request.setApiId(apiId);
request.setStageName(stageName);
request.setPluginId(pluginId);
String msg = String.format("%s[%s] -> %s", apiId, stageName, pluginId);
OperationContext c = LOGGER.begin("DetachPlugin", msg);
try {
DetachPluginResponse response = client.getAcsResponse(request);
c.success(response.getRequestId(), "ok");
return this;
} catch (ClientException ex) {
c.failed(ex);
throw ex;
}
}
//public ApiBuilder trafficControl(String stageName, String throttleId) throws ClientException {
// openapi.bindApiThrottle(stageName, po.getId(), throttleId);
// return this;
//}
//
//public ApiBuilder unbindTrafficControl(String stageName, String throttleId) throws ClientException {
// openapi.bindApiThrottle(stageName, po.getId(), throttleId);
// return this;
//}
//
//public ApiBuilder bindIpControl(String stageName, String controlId) throws ClientException {
// openapi.bindApiIpControl(stageName, po.getId(), controlId);
// return this;
//}
public static ApiBuilder describeByName(IAcsClient client, String groupId, String name) throws ClientException {
DescribeApisRequest request = new DescribeApisRequest();
request.setGroupId(groupId);
request.setApiName(name);
OperationContext c = LOGGER.begin("DescribeApis", groupId + ":" + name);
try {
DescribeApisResponse response = client.getAcsResponse(request);
c.success(response.getRequestId(), "count:" + response.getTotalCount());
for (DescribeApisResponse.ApiSummary a: response.getApiSummarys()) {
if (a.getApiName().equals(name)) {
ApiBuilder api = new ApiBuilder(client, groupId, a.getApiId());
return api;
}
}
return null;
} catch (ClientException ex) {
c.failed(ex);
throw ex;
}
}
public static List<ApiBuilder> importSwagger(IAcsClient client, String groupId, String swaggerContent) throws ClientException {
ImportSwaggerRequest request = new ImportSwaggerRequest();
request.setGroupId(groupId);
request.setbOverwrite(true);
if (swaggerContent.startsWith("{")) {
request.setData(swaggerContent);
request.setDataFormat("json");
} else {
request.setData(swaggerContent);
request.setDataFormat("yaml");
}
OperationContext c = LOGGER.begin("ImportSwagger", groupId + "\n" + swaggerContent);
try {
ImportSwaggerResponse response = client.getAcsResponse(request);
if (response.getFailed().size() > 0) {
throw new ClientException("BadSwagger", response.getFailed().get(0).getErrorMsg(), response.getRequestId());
}
c.success(response.getRequestId(), "apis:" + response.getSuccess().size());
List<ApiBuilder> result = new ArrayList<ApiBuilder>();
for (ImportSwaggerResponse.ApiImportSwaggerSuccess r: response.getSuccess()) {
ApiBuilder api = new ApiBuilder(client, groupId, r.getApiUid());
result.add(api);
}
return result;
} catch (ClientException ex) {
c.failed(ex);
throw ex;
}
}
/**
* 由ApiParameterBuilder.and()完成添加工作
* @param p
* @param sp
*/
void addParameter(DescribeApiResponse.RequestParameter p, DescribeApiResponse.ServiceParameter sp) {
requestParameters.add(p);
serviceParameters.add(sp);
DescribeApiResponse.ServiceParameterMap mapping = new DescribeApiResponse.ServiceParameterMap();
mapping.setRequestParameterName(p.getApiParameterName());
mapping.setServiceParameterName(sp.getServiceParameterName());
serviceParameterMap.add(mapping);
}
}
//
//
///**
// * 获取API信息
// *
// * @param apiId
// * @return
// * @throws ClientException
// */
//public DescribeApiResponse getApiInfo(String apiId) throws ClientException {
// DescribeApiRequest request = new DescribeApiRequest();
// request.setApiId(apiId);
// return client.getAcsResponse(request);
//}
//
//public DescribeApiDocResponse getApiDocInfo(String apiId) throws ClientException {
// DescribeApiDocRequest request = new DescribeApiDocRequest();
// request.setApiId(apiId);
// request.setStageName("RELEASE");
// return client.getAcsResponse(request);
//}
//
//public DescribeApiHistoryResponse getApiHistoryInfo(String apiId) throws ClientException {
// DescribeApiHistoryRequest request = new DescribeApiHistoryRequest();
// request.setApiId(apiId);
// request.setStageName("RELEASE");
// request.setHistoryVersion("20190129134839143");
// return client.getAcsResponse(request);
//}
//
//public DescribeDeployedApiResponse getDeployedApiInfo(String apiId) throws ClientException {
// DescribeDeployedApiRequest request = new DescribeDeployedApiRequest();
// request.setApiId(apiId);
// request.setStageName("RELEASE");
// return client.getAcsResponse(request);
//}
//
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/openapi/sdk
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/openapi/sdk/builder/ApiGroupBuilder.java
|
/*
* 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.
*/
package com.aliyuncs.cloudapi.openapi.sdk.builder;
import com.aliyuncs.IAcsClient;
import com.aliyuncs.cloudapi.model.v20160714.*;
import com.aliyuncs.cloudapi.openapi.sdk.common.OperationContext;
import com.aliyuncs.cloudapi.openapi.sdk.common.OperationLogger;
import com.aliyuncs.cloudapi.openapi.sdk.common.OperationLoggerFactory;
import com.aliyuncs.exceptions.ClientException;
import java.util.ArrayList;
import java.util.List;
/**
* API分组的快捷管理工具
*
* @author ailan.gl 2018-12-01
*/
public class ApiGroupBuilder {
private static final OperationLogger LOGGER = OperationLoggerFactory.getLogger("ApiGroupBuilder");
private IAcsClient client;
private String groupId;
private DescribeApiGroupResponse groupInfo;
/**
* 新建一个Group
* @param client
*/
public ApiGroupBuilder(IAcsClient client) {
this.client = client;
this.groupInfo = new DescribeApiGroupResponse();
}
/**
* 新建一个Group
* @param client
*/
public ApiGroupBuilder(IAcsClient client, String groupId) {
this(client);
this.groupId = groupId;
}
public String getGroupId() {
return groupId;
}
public ApiGroupBuilder name(String name) {
this.groupInfo.setGroupName(name);
return this;
}
public ApiGroupBuilder description(String description) {
this.groupInfo.setDescription(description);
return this;
}
public ApiGroupBuilder instanceId(String instanceId) {
// TODO: 增加instanceId, network, policy 等字段
return this;
}
public DescribeApiGroupResponse getInfo() {
return groupInfo;
}
/**
* 使用GroupId获取ApiGroup
* @return
* @throws ClientException
*/
public ApiGroupBuilder describe() throws ClientException {
DescribeApiGroupRequest request = new DescribeApiGroupRequest();
request.setGroupId(groupId);
OperationContext lc = LOGGER.begin("DescribeApiGroup", groupId);
try {
DescribeApiGroupResponse response = client.getAcsResponse(request);
lc.success(response.getRequestId(), response.getGroupName());
this.groupInfo = response;
return this;
} catch (ClientException ex) {
lc.failed(ex);
throw ex;
}
}
public ApiGroupBuilder create() throws ClientException {
CreateApiGroupRequest request = new CreateApiGroupRequest();
request.setGroupName(groupInfo.getGroupName());
request.setDescription(groupInfo.getDescription());
request.setInstanceId(groupInfo.getInstanceId());
OperationContext c = LOGGER.begin("CreateApiGroup", groupInfo.getGroupName());
try {
CreateApiGroupResponse response = client.getAcsResponse(request);
c.success(response.getRequestId(), "ok");
this.groupId = response.getGroupId();
return this;
} catch (ClientException ex) {
c.failed(ex);
throw ex;
}
}
public ApiGroupBuilder modifyAttribute() {
return this;
}
public ApiGroupBuilder delete() throws ClientException {
DeleteApiGroupRequest request = new DeleteApiGroupRequest();
request.setGroupId(groupId);
OperationContext c = LOGGER.begin("DeleteApiGroup", groupId);
try {
DeleteApiGroupResponse response = client.getAcsResponse(request);
c.success(response.getRequestId(), "ok");
return this;
} catch (ClientException ex) {
c.failed(ex);
throw ex;
}
}
public ApiGroupBuilder domain(String domain) throws Exception {
SetDomainRequest request = new SetDomainRequest();
request.setGroupId(groupId);
request.setDomainName(domain);
OperationContext c = LOGGER.begin("SetDomain", groupId + " -> " + domain);
try {
SetDomainResponse response = client.getAcsResponse(request);
c.success(response.getRequestId(), "ok");
return this;
} catch (ClientException ex) {
c.failed(ex);
throw ex;
}
}
public ApiGroupBuilder deleteDomain(String domain) throws Exception {
DeleteDomainRequest request = new DeleteDomainRequest();
request.setGroupId(groupId);
request.setDomainName(domain);
String msg = domain + " -> " + groupId;
OperationContext c = LOGGER.begin("DeleteDomain", msg);
try {
DeleteDomainResponse response = client.getAcsResponse(request);
c.success(response.getRequestId(), "ok");
return this;
} catch (ClientException ex) {
c.failed(ex);
throw ex;
}
}
public ApiGroupBuilder domainCertificate(String domain, String publicKey, String privateKey)
throws ClientException {
SetDomainCertificateRequest request = new SetDomainCertificateRequest();
request.setGroupId(groupId);
request.setDomainName(domain);
request.setCertificateName("cert");
request.setCertificateBody(publicKey);
request.setCertificatePrivateKey(privateKey);
String msg = domain + " -> " + groupId;
OperationContext c = LOGGER.begin("setDomainCertificate", msg);
try {
SetDomainCertificateResponse response = client.getAcsResponse(request);
c.success(response.getRequestId(), "ok");
return this;
} catch (ClientException ex) {
c.failed(ex);
throw ex;
}
}
/**
*
* @param domain
* @return
*/
public ApiGroupBuilder deleteDomainCertificate(String domain) {
//DeleteDomainCertificateRequest request = new DeleteDomainCertificateRequest();
//request.setGroupId(groupId);
//request.setDomainName(domain);
//request.setCertificateId("");
return this;
}
public ApiGroupBuilder modifyInstance(final String instanceId) throws ClientException {
ModifyApiGroupInstanceRequest request = new ModifyApiGroupInstanceRequest();
request.setGroupId(groupId);
request.setTargetInstanceId(instanceId);
String msg = String.format("%s -> %s", groupId, instanceId);
OperationContext c = LOGGER.begin("ModifyApiGroupInstance", msg);
try {
ModifyApiGroupInstanceResponse response = client.getAcsResponse(request);
c.success(response.getRequestId(), "ok");
groupInfo.setInstanceId(instanceId);
return this;
} catch (ClientException ex) {
c.failed(ex);
throw ex;
}
}
public ApiGroupBuilder modifyHttpsPolicy(String httpsPolicy) throws ClientException {
ModifyApiGroupNetworkPolicyRequest request = new ModifyApiGroupNetworkPolicyRequest();
request.setGroupId(groupId);
request.setHttpsPolicy(httpsPolicy);
String msg = String.format("%s -> %s", groupId, httpsPolicy);
OperationContext c = LOGGER.begin("ModifyApiGroupNetworkPolicy", msg);
try {
ModifyApiGroupNetworkPolicyResponse response = client.getAcsResponse(request);
c.success(response.getRequestId(), "ok");
return this;
} catch (ClientException ex) {
c.failed(ex);
throw ex;
}
}
public ApiGroupBuilder enableInnerDomain(boolean enableInnerDomain) {
return this;
}
public ApiGroupBuilder enableOuterDomain(boolean enableOuterDomain) {
return this;
}
/**
* 开放WebSocket权限
*
* @param domainName
* @throws ClientException
*/
public ApiGroupBuilder enableWebSocket(String domainName) throws ClientException {
SetDomainWebSocketStatusRequest request = new SetDomainWebSocketStatusRequest();
request.setGroupId(groupId);
request.setDomainName(domainName);
request.setActionValue("OPEN");
client.getAcsResponse(request);
OperationContext c = LOGGER.begin("SetDomainWebSocket", groupId + " -> " + domainName);
try {
SetDomainWebSocketStatusResponse response = client.getAcsResponse(request);
c.success(response.getRequestId(), "ok");
return this;
} catch (ClientException ex) {
c.failed(ex);
throw ex;
}
}
public List<DescribeApisResponse.ApiSummary> listApis() throws ClientException {
List<DescribeApisResponse.ApiSummary> result = new ArrayList<DescribeApisResponse.ApiSummary>();
for (int pageNumber = 1; pageNumber < 100; pageNumber++) {
DescribeApisRequest request = new DescribeApisRequest();
request.setGroupId(groupId);
request.setPageNumber(pageNumber);
request.setPageSize(100);
OperationContext c = LOGGER.begin("DescribeApis", groupId + ":" + pageNumber);
try {
DescribeApisResponse response = client.getAcsResponse(request);
c.success(response.getRequestId(), "count:" + response.getApiSummarys().size());
if (response.getApiSummarys().size() == 0) {
break;
}
for (DescribeApisResponse.ApiSummary a: response.getApiSummarys()) {
result.add(a);
}
} catch (ClientException ex) {
c.failed(ex);
throw ex;
}
}
return result;
}
public ApiGroupBuilder stageVariable(String stageName, String name, String value) throws ClientException {
CreateApiStageVariableRequest request = new CreateApiStageVariableRequest();
request.setGroupId(groupId);
request.setStageId(getStageIdByName(stageName));
request.setVariableName(name);
request.setVariableValue(value);
String msg = String.format("%s[%s] %s -> %s", groupId, stageName, name, value);
OperationContext c = LOGGER.begin("CreateApiStageVariable", msg);
try {
CreateApiStageVariableResponse response = client.getAcsResponse(request);
c.success(response.getRequestId(), "ok");
return this;
} catch (ClientException ex) {
c.failed(ex);
throw ex;
}
}
public ApiGroupBuilder deleteStageVariable(String stageName, String name) throws ClientException {
DeleteApiStageVariableRequest request = new DeleteApiStageVariableRequest();
request.setGroupId(groupId);
request.setStageId(getStageIdByName(stageName));
request.setVariableName(name);
String msg = String.format("%s[%s] %s", groupId, stageName, name);
OperationContext c = LOGGER.begin("DeleteApiStageVariable", msg);
try {
DeleteApiStageVariableResponse response = client.getAcsResponse(request);
c.success(response.getRequestId(), "ok");
return this;
} catch (ClientException ex) {
c.failed(ex);
throw ex;
}
}
// TODO nextVersion
//public ApiGroupBuilder cleanStageVariables(String stageName) throws ClientException {
// String stageId = getStageIdByName(groupId, stageName);
// DescribeApiStageRequest request = new DescribeApiStageRequest();
// request.setGroupId(groupId);
// request.setStageId(stageId);
// DescribeApiStageResponse response = client.getAcsResponse(request);
// for (DescribeApiStageResponse.VariableItem item: response.getVariables()) {
// deleteVariable(groupId, stageId, stageName, item.getVariableName());
// }
// return this;
//}
public String getStageIdByName(String stageName) throws ClientException {
if (groupInfo == null) {
describe();
}
for (DescribeApiGroupResponse.StageInfo i: groupInfo.getStageItems()) {
if (stageName.equalsIgnoreCase(i.getStageName())) {
return i.getStageId();
}
}
throw new IllegalArgumentException("Unknown StageName:" + stageName);
}
/**
* 使用GroupName获取Group, 模糊查询, 可能返回多个值
* @param client
* @param groupName
* @return
* @throws ClientException
*/
public static List<ApiGroupBuilder> describeByGroupName(IAcsClient client, String groupName) throws ClientException {
DescribeApiGroupsRequest request = new DescribeApiGroupsRequest();
request.setGroupName(groupName);
OperationContext lc = LOGGER.begin("DescribeApiGroups", groupName);
try {
DescribeApiGroupsResponse response = client.getAcsResponse(request);
List<ApiGroupBuilder> result = new ArrayList<ApiGroupBuilder>();
if (response.getTotalCount() > 0) {
for (DescribeApiGroupsResponse.ApiGroupAttribute a: response.getApiGroupAttributes()) {
result.add(new ApiGroupBuilder(client, a.getGroupId()).describe());
}
}
lc.success(response.getRequestId(), "" + response.getTotalCount());
return result;
} catch (ClientException ex) {
lc.failed(ex);
throw ex;
}
}
}
//public ApiGroup bindDomain() {
//
//}
//
//public String activateInnerDomain() {
//
//}
//
//public ApiGroup delete() {
//
//}
//while (true) {
// DescribeApisRequest r = new DescribeApisRequest();
// r.setGroupId(groupId);
//
// DescribeApisResponse response = client.getAcsResponse(r);
// LOGGER.warn("<<<OpenAPI>>> api clean begin {}/{} ", response.getApiSummarys().size(),
// response.getTotalCount());
// for (DescribeApisResponse.ApiSummary api : response.getApiSummarys()) {
// try {
// abolishApi(groupId, api.getApiId(), "RELEASE");
// abolishApi(groupId, api.getApiId(), "TEST");
// abolishApi(groupId, api.getApiId(), "PRE");
// } catch (Exception ex) {
// LOGGER.warn("<<<OpenAPI>>> abolishApi {} can't be done!", api.getApiId());
// }
//
// deleteApi(groupId, api.getApiId());
// }
// if (response.getApiSummarys().size() == response.getTotalCount()) {
// LOGGER.warn("<<<OpenAPI>>> api clean DONE!");
// break;
// }
//}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/openapi/sdk
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/openapi/sdk/builder/ApiParameterBuilder.java
|
/*
* 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.
*/
package com.aliyuncs.cloudapi.openapi.sdk.builder;
import com.aliyuncs.cloudapi.model.v20160714.DescribeApiResponse;
import com.aliyuncs.cloudapi.openapi.sdk.constant.ParameterLocation;
import com.aliyuncs.cloudapi.openapi.sdk.constant.ParameterType;
import com.aliyuncs.utils.StringUtils;
/**
* 用于构建参数的Builder
*
* @author ailan.gl 2018-09-13
*/
public class ApiParameterBuilder {
private ApiBuilder parent;
private DescribeApiResponse.RequestParameter parameter;
private DescribeApiResponse.ServiceParameter serviceParameter;
public ApiParameterBuilder(ApiBuilder parent, String name, ParameterLocation location) {
this.parent = parent;
parameter = new DescribeApiResponse.RequestParameter();
parameter.setApiParameterName(name);
parameter.setLocation(location.openapiValue());
parameter.setParameterType(ParameterType.STRING.openapiValue());
serviceParameter = new DescribeApiResponse.ServiceParameter();
serviceParameter.setServiceParameterName(name);
serviceParameter.setLocation(location.openapiValue());
}
public ApiParameterBuilder(ApiBuilder parent, String name, ParameterLocation location,String serviceName) {
this.parent = parent;
parameter = new DescribeApiResponse.RequestParameter();
parameter.setApiParameterName(name);
parameter.setLocation(location.openapiValue());
parameter.setParameterType(ParameterType.STRING.openapiValue());
serviceParameter = new DescribeApiResponse.ServiceParameter();
serviceParameter.setServiceParameterName(serviceName);
serviceParameter.setLocation(location.openapiValue());
}
public ApiParameterBuilder backendLocation(ParameterLocation location) {
serviceParameter.setLocation(location.openapiValue());
return this;
}
public ApiParameterBuilder backendName(String name) {
serviceParameter.setServiceParameterName(name);
return this;
}
public ApiParameterBuilder required() {
parameter.setRequired("REQUIRED");
return this;
}
public ApiParameterBuilder defaultValue(String v) {
parameter.setDefaultValue(v);
return this;
}
public ApiParameterBuilder type(ParameterType type) {
parameter.setParameterType(type.openapiValue());
return this;
}
public ApiParameterBuilder stringValidator(long minLength, long maxLength, String regex) {
parameter.setParameterType(ParameterType.STRING.openapiValue());
if (minLength > 0) {
parameter.setMinLength(minLength);
}
if (maxLength > 0) {
parameter.setMaxLength(maxLength);
}
if (!StringUtils.isEmpty(regex)) {
parameter.setRegularExpression(regex);
}
return this;
}
public ApiParameterBuilder minValue(long min) {
parameter.setMinValue(min);
return this;
}
public ApiParameterBuilder maxValue(long max) {
parameter.setMaxValue(max);
return this;
}
public ApiBuilder and() {
parent.addParameter(parameter, serviceParameter);
return parent;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/openapi/sdk
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/openapi/sdk/builder/AppBuilder.java
|
/*
* 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.
*/
package com.aliyuncs.cloudapi.openapi.sdk.builder;
import com.aliyuncs.IAcsClient;
import com.aliyuncs.cloudapi.model.v20160714.*;
import com.aliyuncs.cloudapi.openapi.sdk.common.OperationContext;
import com.aliyuncs.cloudapi.openapi.sdk.common.OperationLogger;
import com.aliyuncs.cloudapi.openapi.sdk.common.OperationLoggerFactory;
import com.aliyuncs.exceptions.ClientException;
import java.util.ArrayList;
import java.util.List;
/**
* 鉴权相关信息
*
* @author ailan.gl 2018-09-14
*/
public class AppBuilder {
private static final OperationLogger LOGGER = OperationLoggerFactory.getLogger("AppBuilder");
private IAcsClient client;
private long appId;
private String appName;
private String description;
private String appKey;
private String appSecret;
private String appCode;
public AppBuilder(IAcsClient client) {
this.client = client;
}
public AppBuilder(IAcsClient client, long appId) {
this(client);
this.appId = appId;
}
public AppBuilder appName(String name) {
this.appName = name;
return this;
}
public AppBuilder description(String description) {
this.description = description;
return this;
}
public long getAppId() {
return appId;
}
public String getAppName() {
return appName;
}
public String getDescription() {
return description;
}
public String getAppKey() {
return appKey;
}
public String getAppSecret() {
return appSecret;
}
public String getAppCode() {
return appCode;
}
/**
* 查询App的状态
* @return
* @throws ClientException
*/
public AppBuilder describe() throws ClientException {
DescribeAppSecurityRequest request = new DescribeAppSecurityRequest();
request.setAppId(appId);
OperationContext oc = LOGGER.begin("DescribeAppSecurity", "" + appId);
try {
DescribeAppSecurityResponse response = client.getAcsResponse(request);
this.appKey = response.getAppKey();
this.appSecret = response.getAppSecret();
return this;
} catch (ClientException ex) {
oc.failed(ex);
throw ex;
}
}
public AppBuilder create() throws ClientException {
CreateAppRequest request = new CreateAppRequest();
request.setAppName(appName);
request.setDescription(description);
OperationContext c = LOGGER.begin("CreateApp", appName);
try {
CreateAppResponse response = client.getAcsResponse(request);
this.appId = response.getAppId();
c.success(response.getRequestId(), "ok:" + appId);
return this;
} catch (ClientException ex) {
c.failed(ex);
throw ex;
}
}
public AppBuilder reset() throws ClientException {
ResetAppKeySecretRequest request = new ResetAppKeySecretRequest();
request.setAppKey(appKey);
OperationContext c = LOGGER.begin("ResetAppKeySecret", appKey);
try {
ResetAppKeySecretResponse response = client.getAcsResponse(request);
c.success(response.getRequestId(), "ok");
return this;
} catch (ClientException ex) {
c.failed(ex);
throw ex;
}
}
public AppBuilder resetSecret() throws ClientException {
ResetAppSecretRequest request = new ResetAppSecretRequest();
request.setAppKey(appKey);
OperationContext c = LOGGER.begin("ResetAppSecret", appKey);
try {
ResetAppSecretResponse response = client.getAcsResponse(request);
c.success(response.getRequestId(), "ok");
return this;
} catch (ClientException ex) {
c.failed(ex);
throw ex;
}
}
public AppBuilder delete() throws ClientException {
DeleteAppRequest request = new DeleteAppRequest();
request.setAppId(appId);
OperationContext c = LOGGER.begin("DeleteApp", "appId:" + appId);
try {
DeleteAppResponse response = client.getAcsResponse(request);
c.success(response.getRequestId(), "ok");
return this;
} catch (ClientException ex) {
c.failed(ex);
throw ex;
}
}
public AppBuilder sleep(int ms) {
try {
Thread.sleep(ms);
} catch (InterruptedException e) {
e.printStackTrace();
}
return this;
}
public static List<AppBuilder> describeByAppName(IAcsClient client, String appName) throws ClientException {
DescribeAppAttributesRequest request = new DescribeAppAttributesRequest();
request.setAppName(appName);
DescribeAppAttributesResponse r = client.getAcsResponse(request);
List<AppBuilder> result = new ArrayList<AppBuilder>();
for (DescribeAppAttributesResponse.AppAttribute a : r.getApps()) {
AppBuilder app = new AppBuilder(client, a.getAppId()).describe();
app.appName(a.getAppName())
.description(a.getDescription());
result.add(app);
}
return result;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/openapi/sdk
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/openapi/sdk/builder/PluginBuilder.java
|
package com.aliyuncs.cloudapi.openapi.sdk.builder;
import com.aliyuncs.IAcsClient;
import com.aliyuncs.cloudapi.model.v20160714.*;
import com.aliyuncs.cloudapi.openapi.sdk.common.OperationContext;
import com.aliyuncs.cloudapi.openapi.sdk.common.OperationLogger;
import com.aliyuncs.cloudapi.openapi.sdk.common.OperationLoggerFactory;
import com.aliyuncs.cloudapi.openapi.sdk.constant.PluginType;
import com.aliyuncs.exceptions.ClientException;
import java.util.ArrayList;
import java.util.List;
/**
* 插件管理器
* @author ailan.gl 2018-12-16
*/
public class PluginBuilder {
private static OperationLogger LOGGER = OperationLoggerFactory.getLogger("Plugin");
private IAcsClient client;
private String pluginId;
private DescribePluginsResponse.PluginAttribute attribute;
public PluginBuilder(IAcsClient client) {
this.client = client;
this.attribute = new DescribePluginsResponse.PluginAttribute();
}
public PluginBuilder(IAcsClient client, String id) {
this(client);
this.pluginId = id;
}
public PluginBuilder type(PluginType type) {
this.attribute.setPluginType(type.openapiValue());
return this;
}
public PluginBuilder data(String data) {
this.attribute.setPluginData(data);
return this;
}
public PluginBuilder name(String name) {
this.attribute.setPluginName(name);
return this;
}
public PluginBuilder description(String description) {
this.attribute.setDescription(description);
return this;
}
public DescribePluginsResponse.PluginAttribute getAttribute() {
return this.attribute;
}
public PluginBuilder describe() throws ClientException {
DescribePluginsRequest request = new DescribePluginsRequest();
request.setPluginId(pluginId);
OperationContext c = LOGGER.begin("DescribePlugins", pluginId);
try {
DescribePluginsResponse response = client.getAcsResponse(request);
c.success(response.getRequestId(), "result:" + response.getTotalCount());
if (response.getTotalCount() != 1) {
throw new RuntimeException("Unexpected Response Data Count:" + response.getTotalCount());
}
this.attribute = response.getPlugins().get(0);
return this;
} catch (ClientException ex) {
c.failed(ex);
throw ex;
}
}
public PluginBuilder create() throws ClientException {
CreatePluginRequest request = new CreatePluginRequest();
request.setDescription("create by integration");
request.setPluginData(attribute.getPluginData());
request.setPluginType(attribute.getPluginType());
request.setPluginName(attribute.getPluginName());
request.setDescription(attribute.getDescription());
String msg = String.format("%s[%s] \n%s", attribute.getPluginName(), attribute.getPluginType(), attribute.getPluginData());
OperationContext c = LOGGER.begin("CreatePlugin", msg);
try {
CreatePluginResponse response = client.getAcsResponse(request);
c.success(response.getRequestId(), "ok:" + response.getPluginId());
this.pluginId = response.getPluginId();
return this;
} catch (ClientException ex) {
c.failed(ex);
throw ex;
}
}
public PluginBuilder modify() throws ClientException {
ModifyPluginRequest request = new ModifyPluginRequest();
request.setPluginId(pluginId);
request.setDescription(attribute.getDescription());
request.setPluginName(attribute.getPluginName());
request.setPluginData(attribute.getPluginData());
String msg = String.format("%s -> %s[%s] \n%s", pluginId, attribute.getPluginName(),
attribute.getPluginType(), attribute.getPluginData());
OperationContext c = LOGGER.begin("ModifyPlugin", msg);
try {
ModifyPluginResponse response = client.getAcsResponse(request);
c.success(response.getRequestId(), "ok");
return this;
} catch (ClientException ex) {
c.failed(ex);
throw ex;
}
}
public PluginBuilder delete() throws ClientException {
DeletePluginRequest request = new DeletePluginRequest();
request.setPluginId(pluginId);
OperationContext c = LOGGER.begin("DeletePlugin", pluginId);
try {
DeletePluginResponse response = client.getAcsResponse(request);
c.success(response.getRequestId(), "ok");
return this;
} catch (ClientException ex) {
c.failed(ex);
throw ex;
}
}
public PluginBuilder attach(String stageName, String apiId) throws ClientException {
AttachPluginRequest request = new AttachPluginRequest();
request.setPluginId(pluginId);
request.setStageName(stageName);
request.setApiId(apiId);
String msg = String.format("%s -> %s/%s", pluginId, apiId, stageName);
OperationContext c = LOGGER.begin("AttachPlugin", msg);
try {
AttachPluginResponse response = client.getAcsResponse(request);
c.success(response.getRequestId(), "ok");
return this;
} catch (ClientException ex) {
c.failed(ex);
throw ex;
}
}
public PluginBuilder detach(String stageName, String apiId) throws ClientException {
DetachPluginRequest request = new DetachPluginRequest();
request.setApiId(apiId);
request.setStageName(stageName);
request.setPluginId(pluginId);
String msg = String.format("%s -> %s/%s", pluginId, apiId, stageName);
OperationContext c = LOGGER.begin("DetachPlugin", msg);
try {
DetachPluginResponse response = client.getAcsResponse(request);
c.success(response.getRequestId(), "ok");
return this;
} catch (ClientException ex) {
c.failed(ex);
throw ex;
}
}
/**
* TODO
* @return
* @throws ClientException
*/
public List<DescribePluginApisResponse.ApiPluginSummary> listAllApis() throws ClientException {
DescribePluginApisRequest request = new DescribePluginApisRequest();
request.setPluginId(pluginId);
int pageNumber = 0;
List<DescribePluginApisResponse.ApiPluginSummary> result = new ArrayList<DescribePluginApisResponse.ApiPluginSummary>();
while (true) {
request.setPageNumber(pageNumber);
String msg = pluginId + " page:" + pageNumber;
OperationContext c = LOGGER.begin("DescribePluginApis", msg);
try {
DescribePluginApisResponse response = client.getAcsResponse(request);
c.success(response.getRequestId(), response.getPageNumber() + "/" + response.getTotalCount());
for (DescribePluginApisResponse.ApiPluginSummary a: response.getApiPluginSummaries()) {
result.add(a);
}
pageNumber++;
if ((pageNumber * response.getPageSize()) >= response.getTotalCount()) {
break;
}
} catch (ClientException ex) {
c.failed(ex);
throw ex;
}
}
return result;
}
public static List<PluginBuilder> describePlugins(IAcsClient client, PluginType type, String name)
throws ClientException {
DescribePluginsRequest request = new DescribePluginsRequest();
request.setPluginType(type.openapiValue());
request.setPluginName(name);
OperationContext c = LOGGER.begin("DescribePlugin", name + "<" + type.openapiValue() + ">");
try {
DescribePluginsResponse response = client.getAcsResponse(request);
c.success(response.getRequestId(), "count:" + response.getTotalCount());
List<PluginBuilder> result = new ArrayList<PluginBuilder>();
for (DescribePluginsResponse.PluginAttribute a: response.getPlugins()) {
PluginBuilder plugin = new PluginBuilder(client, a.getPluginId());
plugin.attribute = a;
result.add(plugin);
}
return result;
} catch (ClientException ex) {
c.failed(ex);
throw ex;
}
}
//
///**
// * 创建插件
// * @param data
// * @param type
// * @param name
// * @return
// * @throws ClientException
// */
//public String createPlugin(String name, String type, String data) throws ClientException {
// DescribePluginsRequest describePluginsRequest = new DescribePluginsRequest();
// describePluginsRequest.setPluginName(name);
// DescribePluginsResponse response = client.getAcsResponse(describePluginsRequest);
// if (response.getTotalCount() > 0) {
// return response.getPlugins().get(0).getPluginId();
// }
//
//
//}
//
//
///**
// * 获取plugin
// * @param name
// * @return
// */
//public DescribePluginsResponse.PluginAttribute getPluginByName(String name) throws ClientException {
// DescribePluginsRequest request = new DescribePluginsRequest();
// request.setPluginName(name);
//
// DescribePluginsResponse response = client.getAcsResponse(request);
// if (response.getTotalCount() == 0) {
// return null;
// } else if (response.getTotalCount() == 1) {
// return response.getPlugins().get(0);
// } else {
// LOGGER.error("Plugin more than 1 size=" + response.getTotalCount());
// return response.getPlugins().get(0);
// // throw new RuntimeException("Plugin name is duplicated:" + name);
// }
//}
//
///**
// * listPlugins
// * @param name
// * @param pluginType
// * @param pluginId
// * @return
// * @throws ClientException
// */
//public Map<String, DescribePluginsResponse.PluginAttribute> listPlugins(String name, String pluginType, String pluginId) throws
// ClientException {
// Map<String, DescribePluginsResponse.PluginAttribute> plugins = new HashMap<String, DescribePluginsResponse.PluginAttribute>();
// int pageNumber = 0;
// while (true) {
// DescribePluginsRequest request = new DescribePluginsRequest();
// request.setPageNumber(pageNumber);
// request.setPageSize(3);
// DescribePluginsResponse response = client.getAcsResponse(request);
// LOGGER.warn("<<<OpenAPI>>> listPlugins page={} got {} results", pageNumber, response.getTotalCount());
// if (response.getPlugins().size() > 0) {
// for (DescribePluginsResponse.PluginAttribute plugin: response.getPlugins()) {
// Object o = plugins.put(plugin.getPluginName(), plugin);
// LOGGER.warn("<<<OpenAPI>>> listPlugins get {} id={}", plugin.getPluginName(), plugin.getPluginId());
// if (o != null) {
// throw new RuntimeException("duplicated plugin name=" + plugin.getPluginName());
// }
// }
// } else {
// break;
// }
// }
// return plugins;
//}
//
///**
// *
// * @param pluginId
// * @return
// * @throws ClientException
// */
//public List<DescribePluginApisResponse.ApiPluginSummary> describePluginApis(String pluginId) throws
// ClientException {
//
//}
//
//public List<DescribePluginsResponse.PluginAttribute> describePluginsByApi(String apiId, String groupId, String stage)
// throws ClientException {
// DescribePluginsByApiRequest request = new DescribePluginsByApiRequest();
//
// request.setApiId(apiId);
// request.setGroupId(groupId);
// request.setStageName(stage);
//
// DescribePluginsByApiResponse response = client.getAcsResponse(request);
// LOGGER.warn("<<<OpenAPI>>> describePluginsByApi num ={} done!", response.getTotalCount());
//
// return response.getPlugins();
//}
//
///**
// * 清理所有的Plugin
// */
//public void cleanPlugins() throws Exception {
// while (true) {
// DescribePluginsRequest describePluginsRequest = new DescribePluginsRequest();
// DescribePluginsResponse describePluginsResponse = client.getAcsResponse(describePluginsRequest);
// if (describePluginsResponse.getTotalCount() == 0) {
// LOGGER.warn("<<<OpenAPI>>> plugin clean DONE!");
// break;
// }
// LOGGER.warn("<<<OpenAPI>>> api plugin begin {}/{} ", describePluginsResponse.getPlugins().size(),
// describePluginsResponse.getTotalCount());
// for (DescribePluginsResponse.PluginAttribute a : describePluginsResponse.getPlugins()) {
// // detachPlugin(null, groupId, "RELEASE", pluginAttribute.getPluginId());
// cleanPlugin(a.getPluginId());
// deletePlugin(a.getPluginId());
// }
// }
//}
//
//public void cleanPlugin(String pluginId) throws ClientException {
// List<DescribePluginApisResponse.ApiPluginSummary> apis = describePluginApis(pluginId);
// LOGGER.info("<<<OPENAPI>> cleanPlugin id={}, apiCount={}", pluginId, apis.size());
// for (DescribePluginApisResponse.ApiPluginSummary api: apis) {
// detachPlugin(pluginId, api.getStageName(), api.getGroupId(), api.getApiId());
// }
//}
//
//public String initPlugin(String pluginName, String pluginType, String text) throws ClientException {
// DescribePluginsRequest request = new DescribePluginsRequest();
// request.setPluginName(pluginName);
// request.setPluginType(pluginType);
//
// DescribePluginsResponse response = client.getAcsResponse(request);
// if (response.getTotalCount() > 0) {
// DescribePluginsResponse.PluginAttribute pluginAttribute = response.getPlugins().get(0);
// return pluginAttribute.getPluginId();
// }
//
// CreatePluginRequest createPluginRequest = new CreatePluginRequest();
// createPluginRequest.setPluginName(pluginName);
// createPluginRequest.setPluginType(pluginType);
// createPluginRequest.setPluginData(text);
//
// CreatePluginResponse createPluginresponse = client.getAcsResponse(createPluginRequest);
// LOGGER.warn("<<<OpenAPI>>> createPlugin pluginId ={} done! text=\n{}",
// createPluginresponse.getPluginId(), text);
// return createPluginresponse.getPluginId();
//}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/openapi/sdk
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/openapi/sdk/common/OperationContext.java
|
package com.aliyuncs.cloudapi.openapi.sdk.common;
import com.aliyuncs.exceptions.ClientException;
/**
* @author ailan.gl 2019-03-30
*/
public interface OperationContext {
/**
*
* @param requestId
*/
void success(String requestId, String msg);
/**
*
* @param ex
*/
void failed(ClientException ex);
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/openapi/sdk
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/openapi/sdk/common/OperationContextSimple.java
|
package com.aliyuncs.cloudapi.openapi.sdk.common;
import com.aliyuncs.exceptions.ClientException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* @author ailan.gl 2019-03-31
*/
public class OperationContextSimple implements OperationContext {
private static final Logger LOGGER = LoggerFactory.getLogger(OperationContextSimple.class);
private String action;
private String requestMessage;
private long begin;
OperationContextSimple(String action, String requestMessage) {
this.action = action;
this.requestMessage = requestMessage;
this.begin = System.currentTimeMillis();
}
@Override
public void success(String requestId, String result) {
long costMs = System.currentTimeMillis() - begin;
LOGGER.info("{}<{}> cost={}ms {} -> {}", action, requestId, costMs, requestMessage, result);
}
@Override
public void failed(ClientException ex) {
long costMs = System.currentTimeMillis() - begin;
LOGGER.info("{}<{}> cost={}ms {} -> {}", action, ex.getRequestId(), costMs, requestMessage, ex.toString());
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/openapi/sdk
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/openapi/sdk/common/OperationLogger.java
|
package com.aliyuncs.cloudapi.openapi.sdk.common;
/**
* OpenAPI操作日志记录工具, 可以从此派生自己的Logger
*
* @author ailan.gl 2019-03-30
*/
public interface OperationLogger {
/**
* 启动一个Logging
* @param action
* @param requestMessage
* @return
*/
OperationContext begin(String action, String requestMessage);
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/openapi/sdk
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/openapi/sdk/common/OperationLoggerFactory.java
|
package com.aliyuncs.cloudapi.openapi.sdk.common;
/**
*
* @author ailan.gl 2019-03-30
*/
public class OperationLoggerFactory {
private static OperationLogger defaultLogger = new OperationLogger() {
@Override
public OperationContext begin(String action, String s) {
return new OperationContextSimple(action, s);
}
};
public static void setDefaultLogger(OperationLogger logger) {
defaultLogger = logger;
}
public static OperationLogger getLogger(String name) {
return defaultLogger;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/openapi/sdk
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/openapi/sdk/constant/ApiAuthType.java
|
package com.aliyuncs.cloudapi.openapi.sdk.constant;
/**
* @author ailan.gl 2019-04-01
*/
public enum ApiAuthType {
/**
* 只允许已授权的APP调
*/
APP,
/**
*
*/
ANONYMOUS,
/**
*
*/
OPENID,
/**
*
*/
APPOPENID,
;
public String openapiValue() {
return this.name();
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/openapi/sdk
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/openapi/sdk/constant/ParameterLocation.java
|
package com.aliyuncs.cloudapi.openapi.sdk.constant;
import com.aliyuncs.utils.StringUtils;
/**
* @author ailan.gl 2019-03-30
*/
public enum ParameterLocation {
/**
* Initial value
*/
NONE("", ""),
/**
* in Http Header
*/
HEADER("header", "HEAD"),
/**
* in Http QueryString
*/
QUERY("query", "QUERY"),
/**
* in http request path
*/
PATH("path", "PATH"),
/**
* in http body
*/
BODY("body", ""),
/**
* HTTP form parameter
*/
FORM_DATA("formData", "BODY"),
/**
* 域名参数
*/
HOST("host", "HOST"),
;
private String swaggerValue;
private String openapiValue;
ParameterLocation(String swaggerValue, String openapiValue) {
this.swaggerValue = swaggerValue;
this.openapiValue = openapiValue;
}
public String swaggerValue() {
return this.swaggerValue;
}
public String openapiValue() {
return this.openapiValue;
}
public static ParameterLocation fromText(String in) {
if (StringUtils.isEmpty(in)) {
return ParameterLocation.NONE;
}
String s = in.toLowerCase();
if ("query".equals(s)) {
return ParameterLocation.QUERY;
} else if ("head".equals(s) || "header".equals(s)) {
return ParameterLocation.HEADER;
} else if ("path".equals(s)) {
return ParameterLocation.PATH;
} else if ("form".equals(s) || "formdata".equals(s)) {
return ParameterLocation.FORM_DATA;
} else if ("body".equals(s)) {
return ParameterLocation.BODY;
}
throw new IllegalArgumentException("invalid location:" + in);
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/openapi/sdk
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/openapi/sdk/constant/ParameterType.java
|
package com.aliyuncs.cloudapi.openapi.sdk.constant;
import com.aliyuncs.utils.StringUtils;
/**
* @author ailan.gl 2019-03-30
*/
public enum ParameterType {
/**
* 未知类型
*/
UNKNOWN(""),
/**
* string
*/
STRING("String"),
/**
* integer
*/
INTEGER_32("Int"),
/**
* long
*/
INTEGER("Long"),
/**
* float
*/
NUMBER("Double"),
/**
* boolean
*/
BOOLEAN("Boolean"),
/**
* 数组类型
*/
ARRAY("Array"),
/**
* 文件类型:
* If type is "file", the consumes MUST be either "multipart/form-data", " application/x-www-form-urlencoded" or both and the parameter MUST be in "formData".
*/
FILE("File"),
;
private String openapiValue;
ParameterType(String openapiValue) {
this.openapiValue = openapiValue;
}
public String openapiValue() {
return this.openapiValue;
}
public static ParameterType fromText(String s) {
if (StringUtils.isEmpty(s)) {
return UNKNOWN;
}
s = s.toLowerCase();
if ("int".equals(s.toLowerCase()) || "integer".equals(s.toLowerCase())) {
return INTEGER_32;
} else if ("string".equals(s.toLowerCase())) {
return STRING;
} else if ("long".equals(s.toLowerCase())) {
return INTEGER;
} else if ("float".equals(s.toLowerCase()) || "real".equals(s.toLowerCase())) {
return NUMBER;
} else if ("double".equals(s.toLowerCase()) || "number".equals(s.toLowerCase())) {
return NUMBER;
} else if ("boolean".equals(s.toLowerCase()) || "bool".equals(s.toLowerCase())) {
return BOOLEAN;
}
throw new IllegalArgumentException("Unknown parameter type:" + s);
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/openapi/sdk
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/openapi/sdk/constant/PluginType.java
|
package com.aliyuncs.cloudapi.openapi.sdk.constant;
/**
* @author ailan.gl 2019-04-01
*/
public enum PluginType {
/**
*
*/
IP_CONTROL("ipControl"),
/**
*
*/
TRAFFIC_CONTROL("trafficControl"),
/**
*
*/
BACKEND_SIGNATURE("backendSignature"),
/**
*
*/
JWT("jwtAuth"),
/**
*
*/
CACHING("caching"),
/**
*
*/
CORS("cors"),
/**
*
*/
ROUTING("routing"),
;
private String value;
PluginType(String value) {
this.value = value;
}
public String openapiValue() {
return value;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/openapi/sdk
|
java-sources/com/aliyun/aliyun-java-sdk-cloudapi/4.10.0/com/aliyuncs/cloudapi/openapi/sdk/constant/TrafficControlPeriod.java
|
package com.aliyuncs.cloudapi.openapi.sdk.constant;
/**
* @author ailan.gl 2019-03-30
*/
public enum TrafficControlPeriod {
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.