Merge branch 'cloud-3.1.0' of https://github.com/wso2/carbon-device-mgt into cloud-3.1.0

revert-70aa11f8
kamidu 8 years ago
commit dd26f366df

@ -51,12 +51,4 @@ public interface ApiApplicationRegistrationService {
@Path("register")
Response register(RegistrationProfile registrationProfile);
/**
* This method is used to unregister an API application.
* @param applicationName name of the application that needs to be unregistered.
* @return the response status of request.
*/
@DELETE
@Path("unregister")
Response unregister(@QueryParam("applicationName") String applicationName);
}

@ -18,6 +18,7 @@
package org.wso2.carbon.apimgt.application.extension.api;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.json.simple.JSONObject;
@ -95,6 +96,8 @@ public class ApiApplicationRegistrationServiceImpl implements ApiApplicationRegi
return Response.status(Response.Status.NOT_ACCEPTABLE).entity("APIs(Tags) are not allowed to this user."
).build();
}
PrivilegedCarbonContext.getThreadLocalCarbonContext().setUsername(PrivilegedCarbonContext.
getThreadLocalCarbonContext().getUserRealm().getRealmConfiguration().getAdminUserName());
String username = APIUtil.getAuthenticatedUser();
APIManagementProviderService apiManagementProviderService = APIUtil.getAPIManagementProviderService();
String validityPeriod;
@ -103,35 +106,29 @@ public class ApiApplicationRegistrationServiceImpl implements ApiApplicationRegi
} else {
validityPeriod = registrationProfile.getValidityPeriod();
}
ApiApplicationKey apiApplicationKey = apiManagementProviderService.generateAndRetrieveApplicationKeys(
registrationProfile.getApplicationName(), registrationProfile.getTags(),
ApiApplicationConstants.DEFAULT_TOKEN_TYPE, username,
registrationProfile.isAllowedToAllDomains(), validityPeriod);
return Response.status(Response.Status.CREATED).entity(apiApplicationKey.toString()).build();
String applicationName = registrationProfile.getApplicationName();
synchronized (ApiApplicationRegistrationServiceImpl.class) {
ApiApplicationKey apiApplicationKey = apiManagementProviderService.generateAndRetrieveApplicationKeys(
applicationName, registrationProfile.getTags(),
ApiApplicationConstants.DEFAULT_TOKEN_TYPE, username,
registrationProfile.isAllowedToAllDomains(), validityPeriod);
return Response.status(Response.Status.CREATED).entity(apiApplicationKey.toString()).build();
}
} catch (APIManagerException e) {
String msg = "Error occurred while registering an application '"
+ registrationProfile.getApplicationName() + "'";
String msg = "Error occurred while registering an application with apis '"
+ StringUtils.join(registrationProfile.getTags(), ",") + "'";
log.error(msg, e);
return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity("false").build();
} catch (DeviceManagementException e) {
String msg = "Failed to retrieve the device service";
log.error(msg, e);
return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(msg).build();
}
}
@Path("unregister")
@DELETE
public Response unregister(@QueryParam("applicationName") String applicationName) {
try {
String username = APIUtil.getAuthenticatedUser() + "@" + APIUtil.getTenantDomainOftheUser();
APIManagementProviderService apiManagementProviderService = APIUtil.getAPIManagementProviderService();
apiManagementProviderService.removeAPIApplication(applicationName, username);
return Response.status(Response.Status.ACCEPTED).build();
} catch (APIManagerException e) {
String msg = "Error occurred while removing the application '" + applicationName;
} catch (UserStoreException e) {
String msg = "Failed to access user space.";
log.error(msg, e);
return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(msg).build();
}
}
}

@ -30,7 +30,6 @@ import javax.xml.bind.annotation.XmlRootElement;
@JsonIgnoreProperties(ignoreUnknown = true)
public class RegistrationProfile {
@XmlElement(required = true)
private String applicationName;
@XmlElement(required = true)

@ -37,16 +37,9 @@
</Permission>
<Permission>
<name>Register application</name>
<path>/manage/api/subscribe</path>
<path>/device-mgt/device/api/subscribe</path>
<url>/register</url>
<method>POST</method>
<scope>application_user</scope>
</Permission>
<Permission>
<name>Delete application</name>
<path>/manage/api/subscribe</path>
<url>/unregister</url>
<method>DELETE</method>
<scope>application_user</scope>
</Permission>
</PermissionConfiguration>

@ -55,6 +55,10 @@
<groupId>org.wso2.carbon.devicemgt</groupId>
<artifactId>org.wso2.carbon.apimgt.integration.client</artifactId>
</dependency>
<dependency>
<groupId>org.wso2.carbon.devicemgt</groupId>
<artifactId>org.wso2.carbon.apimgt.integration.generated.client</artifactId>
</dependency>
<dependency>
<groupId>com.googlecode.json-simple.wso2</groupId>
<artifactId>json-simple</artifactId>
@ -103,7 +107,10 @@
org.wso2.carbon.base,
org.wso2.carbon.registry.core.*;resolution:=optional,
org.wso2.carbon.registry.indexing.*; version="${carbon.registry.imp.pkg.version.range}",
org.wso2.carbon.apimgt.integration.client.*
org.wso2.carbon.apimgt.integration.client.*,
org.wso2.carbon.apimgt.integration.generated.client.store.api,
org.wso2.carbon.apimgt.integration.generated.client.store.model,
feign
</Import-Package>
<Export-Package>
!org.wso2.carbon.apimgt.application.extension.internal,

@ -18,6 +18,7 @@
package org.wso2.carbon.apimgt.application.extension;
import feign.FeignException;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.wso2.carbon.apimgt.application.extension.constants.ApiApplicationConstants;
@ -26,12 +27,14 @@ import org.wso2.carbon.apimgt.application.extension.exception.APIManagerExceptio
import org.wso2.carbon.apimgt.application.extension.internal.APIApplicationManagerExtensionDataHolder;
import org.wso2.carbon.apimgt.application.extension.util.APIManagerUtil;
import org.wso2.carbon.apimgt.integration.client.store.*;
import org.wso2.carbon.apimgt.integration.client.store.model.*;
import org.wso2.carbon.apimgt.integration.generated.client.store.model.*;
import org.wso2.carbon.context.PrivilegedCarbonContext;
import org.wso2.carbon.utils.multitenancy.MultitenantConstants;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* This class represents an implementation of APIManagementProviderService.
@ -41,6 +44,9 @@ public class APIManagementProviderServiceImpl implements APIManagementProviderSe
private static final Log log = LogFactory.getLog(APIManagementProviderServiceImpl.class);
private static final String CONTENT_TYPE = "application/json";
private static final int MAX_API_PER_TAG = 200;
private static final String APP_TIER_TYPE = "application";
private static final Map<String, String> tiersMap = new HashMap<>();
private static final int MAX_ATTEMPTS = 10;
@Override
public void removeAPIApplication(String applicationName, String username) throws APIManagerException {
@ -66,6 +72,32 @@ public class APIManagementProviderServiceImpl implements APIManagementProviderSe
throws APIManagerException {
StoreClient storeClient = APIApplicationManagerExtensionDataHolder.getInstance().getIntegrationClientService()
.getStoreClient();
//This is a fix to avoid race condition and trying to load tenant related tiers before invocation.
String tenantDomain = PrivilegedCarbonContext.getThreadLocalCarbonContext()
.getTenantDomain();
String tiersLoadedForTenant = tiersMap.get(tenantDomain);
if (tiersLoadedForTenant == null) {
int tierStatus = 0;
int attempts = 0;
do {
try {
storeClient.getIndividualTier()
.tiersTierLevelTierNameGet(ApiApplicationConstants.DEFAULT_TIER, APP_TIER_TYPE,
tenantDomain, CONTENT_TYPE, null, null);
tiersMap.put(tenantDomain, "exist");
tierStatus = 200;
} catch (FeignException e) {
tierStatus = e.status();
attempts++;
try {
Thread.sleep(500);
} catch (InterruptedException ex) {
log.warn("Interrupted the waiting for tier availability.");
}
}
} while (tierStatus == 500 && attempts < MAX_ATTEMPTS);
}
ApplicationList applicationList = storeClient.getApplications()
.applicationsGet("", applicationName, 1, 0, CONTENT_TYPE, null);
Application application;
@ -94,7 +126,6 @@ public class APIManagementProviderServiceImpl implements APIManagementProviderSe
// subscribe to apis.
if (tags != null && tags.length > 0) {
for (String tag: tags) {
String tenantDomain = PrivilegedCarbonContext.getThreadLocalCarbonContext().getTenantDomain();
APIList apiList = storeClient.getApis().apisGet(MAX_API_PER_TAG, 0, tenantDomain, "tag:" + tag
, CONTENT_TYPE, null);
if (apiList.getList() == null || apiList.getList().size() == 0) {
@ -129,7 +160,7 @@ public class APIManagementProviderServiceImpl implements APIManagementProviderSe
}
}
if (!needToSubscribe.isEmpty()) {
storeClient.getIndividualSubscription().subscriptionsPost(needToSubscribe, CONTENT_TYPE);
storeClient.getSubscriptionMultitpleApi().subscriptionsMultiplePost(needToSubscribe, CONTENT_TYPE);
}
//end of subscription

@ -55,6 +55,9 @@
feign.codec,
feign.auth,
feign.gson,
feign.slf4j,
org.wso2.carbon.apimgt.integration.generated.client.publisher.api,
org.wso2.carbon.apimgt.integration.generated.client.store.api,
javax.xml.bind,
javax.xml.bind.annotation,
javax.xml.parsers;resolution:=optional,
@ -68,7 +71,8 @@
io.swagger.annotations,
org.wso2.carbon.core.util,
javax.xml,
org.wso2.carbon.base
org.wso2.carbon.base,
javax.net.ssl,
</Import-Package>
<Embed-Dependency>
jsr311-api,
@ -135,6 +139,10 @@
<groupId>org.wso2.carbon.devicemgt</groupId>
<artifactId>org.wso2.carbon.identity.jwt.client.extension</artifactId>
</dependency>
<dependency>
<groupId>org.wso2.carbon.devicemgt</groupId>
<artifactId>org.wso2.carbon.apimgt.integration.generated.client</artifactId>
</dependency>
</dependencies>
</project>

@ -15,25 +15,28 @@
package org.wso2.carbon.apimgt.integration.client;
import feign.Feign;
import feign.Logger;
import feign.RequestInterceptor;
import feign.RequestTemplate;
import feign.auth.BasicAuthRequestInterceptor;
import feign.gson.GsonDecoder;
import feign.gson.GsonEncoder;
import feign.jaxrs.JAXRSContract;
import feign.slf4j.Slf4jLogger;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.wso2.carbon.apimgt.integration.client.configs.APIMConfigReader;
import org.wso2.carbon.apimgt.integration.client.exception.APIMClientOAuthException;
import org.wso2.carbon.apimgt.integration.client.internal.APIIntegrationClientDataHolder;
import org.wso2.carbon.apimgt.integration.client.model.ClientProfile;
import org.wso2.carbon.apimgt.integration.client.model.DCRClient;
import org.wso2.carbon.apimgt.integration.client.model.OAuthApplication;
import org.wso2.carbon.apimgt.integration.client.util.PropertyUtils;
import org.wso2.carbon.apimgt.integration.client.util.Utils;
import org.wso2.carbon.base.MultitenantConstants;
import org.wso2.carbon.context.PrivilegedCarbonContext;
import org.wso2.carbon.identity.jwt.client.extension.JWTClient;
import org.wso2.carbon.identity.jwt.client.extension.dto.AccessTokenInfo;
import org.wso2.carbon.identity.jwt.client.extension.exception.JWTClientException;
import org.wso2.carbon.user.api.UserStoreException;
import java.util.HashMap;
import java.util.Map;
@ -48,10 +51,12 @@ public class OAuthRequestInterceptor implements RequestInterceptor {
private static final String REQUIRED_SCOPE =
"apim:api_create apim:api_view apim:api_publish apim:subscribe apim:tier_view apim:tier_manage " +
"apim:subscription_view apim:subscription_block";
private static final String APIM_SUBSCRIBE_SCOPE = "apim:subscribe";
private static final long DEFAULT_REFRESH_TIME_OFFSET_IN_MILLIS = 100000;
private DCRClient dcrClient;
private static OAuthApplication oAuthApplication;
private static Map<String, AccessTokenInfo> tenantUserTokenMap = new HashMap<>();
private static final Log log = LogFactory.getLog(OAuthRequestInterceptor.class);
/**
* Creates an interceptor that authenticates all requests.
@ -59,10 +64,10 @@ public class OAuthRequestInterceptor implements RequestInterceptor {
public OAuthRequestInterceptor() {
String username = APIMConfigReader.getInstance().getConfig().getUsername();
String password = APIMConfigReader.getInstance().getConfig().getPassword();
dcrClient = Feign.builder().requestInterceptor(
new BasicAuthRequestInterceptor(username, password))
dcrClient = Feign.builder().client(Utils.getSSLClient()).logger(new Slf4jLogger()).logLevel(
Logger.Level.FULL).requestInterceptor(new BasicAuthRequestInterceptor(username, password))
.contract(new JAXRSContract()).encoder(new GsonEncoder()).decoder(new GsonDecoder())
.target(DCRClient.class, PropertyUtils.replaceProperties(
.target(DCRClient.class, Utils.replaceProperties(
APIMConfigReader.getInstance().getConfig().getDcrEndpoint()));
}
@ -96,7 +101,9 @@ public class OAuthRequestInterceptor implements RequestInterceptor {
REQUIRED_SCOPE);
tenantBasedAccessTokenInfo.setExpiresIn(
System.currentTimeMillis() + (tenantBasedAccessTokenInfo.getExpiresIn() * 1000));
tenantUserTokenMap.put(username, tenantBasedAccessTokenInfo);
if (tenantBasedAccessTokenInfo.getScopes().contains(APIM_SUBSCRIBE_SCOPE)) {
tenantUserTokenMap.put(username, tenantBasedAccessTokenInfo);
}
}
if (tenantBasedAccessTokenInfo.getAccessToken() != null) {

@ -18,12 +18,15 @@
package org.wso2.carbon.apimgt.integration.client.publisher;
import feign.Feign;
import feign.Logger;
import feign.RequestInterceptor;
import feign.gson.GsonDecoder;
import feign.gson.GsonEncoder;
import feign.slf4j.Slf4jLogger;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.wso2.carbon.apimgt.integration.client.configs.APIMConfigReader;
import org.wso2.carbon.apimgt.integration.client.publisher.api.*;
import org.wso2.carbon.apimgt.integration.generated.client.publisher.api.*;
import org.wso2.carbon.core.util.Utils;
/**
@ -31,7 +34,7 @@ import org.wso2.carbon.core.util.Utils;
*/
public class PublisherClient {
private static final org.apache.commons.logging.Log log = LogFactory.getLog(PublisherClient.class);
private static final Log log = LogFactory.getLog(PublisherClient.class);
private APIsApi api = null;
private APIDocumentApi document = null;
private ApplicationsApi application = null;
@ -45,8 +48,10 @@ public class PublisherClient {
*
*/
public PublisherClient(RequestInterceptor requestInterceptor) {
Feign.Builder builder = Feign.builder().requestInterceptor(requestInterceptor)
.encoder(new GsonEncoder()).decoder(new GsonDecoder());
Feign.Builder builder = Feign.builder().client(
org.wso2.carbon.apimgt.integration.client.util.Utils.getSSLClient()).logger(new Slf4jLogger())
.logLevel(Logger.Level.FULL)
.requestInterceptor(requestInterceptor).encoder(new GsonEncoder()).decoder(new GsonDecoder());
String basePath = Utils.replaceSystemProperty(APIMConfigReader.getInstance().getConfig().getPublisherEndpoint());
api = builder.target(APIsApi.class, basePath);

@ -1,194 +0,0 @@
/*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. 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 org.wso2.carbon.apimgt.integration.client.publisher.api;
import feign.Headers;
import feign.Param;
import feign.RequestLine;
import org.wso2.carbon.apimgt.integration.client.publisher.model.Document;
import org.wso2.carbon.apimgt.integration.client.publisher.model.DocumentList;
import java.io.File;
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-24T00:03:49.624+05:30")
public interface APIDocumentApi {
/**
* Get document content
* Downloads a FILE type document/get the inline content or source url of a certain document.
* @param apiId **API ID** consisting of the **UUID** of the API. The combination of the provider of the API, name of the API and the version is also accepted as a valid API ID. Should be formatted as **provider-name-version**. (required)
* @param documentId **Document Identifier** (required)
* @param accept Media types acceptable for the response. Default is JSON. (optional, default to JSON)
* @param ifNoneMatch Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resourec. (optional)
* @param ifModifiedSince Validator for conditional requests; based on Last Modified header of the formerly retrieved variant of the resource. (optional)
* @return void
*/
@RequestLine("GET /apis/{apiId}/documents/{documentId}/content")
@Headers({
"Content-type: application/json",
"Accept: application/json",
"Accept: {accept}",
"If-None-Match: {ifNoneMatch}",
"If-Modified-Since: {ifModifiedSince}"
})
void apisApiIdDocumentsDocumentIdContentGet(@Param("apiId") String apiId, @Param("documentId") String documentId,
@Param("accept") String accept, @Param("ifNoneMatch") String ifNoneMatch,
@Param("ifModifiedSince") String ifModifiedSince);
/**
* Update API document content.
* Upload a file to a document or add inline content to the document. Document&#39;s source type should be **FILE** in order to upload a file to the document using **file** parameter. Document&#39;s source type should be **INLINE** in order to add inline content to the document using **inlineContent** parameter. Only one of **file** or **inlineContent** can be specified at one time.
* @param apiId **API ID** consisting of the **UUID** of the API. The combination of the provider of the API, name of the API and the version is also accepted as a valid API ID. Should be formatted as **provider-name-version**. (required)
* @param documentId **Document Identifier** (required)
* @param contentType Media type of the entity in the body. Default is JSON. (required)
* @param file Document to upload (optional)
* @param inlineContent Inline content of the document (optional)
* @param ifMatch Validator for conditional requests; based on ETag. (optional)
* @param ifUnmodifiedSince Validator for conditional requests; based on Last Modified header. (optional)
* @return Document
*/
@RequestLine("POST /apis/{apiId}/documents/{documentId}/content")
@Headers({
"Content-type: multipart/form-data",
"Accept: application/json",
"Content-Type: {contentType}",
"If-Match: {ifMatch}",
"If-Unmodified-Since: {ifUnmodifiedSince}"
})
Document apisApiIdDocumentsDocumentIdContentPost(@Param("apiId") String apiId, @Param("documentId") String documentId,
@Param("contentType") String contentType, @Param("file") File file,
@Param("inlineContent") String inlineContent,
@Param("ifMatch") String ifMatch,
@Param("ifUnmodifiedSince") String ifUnmodifiedSince);
/**
* Delete an API Document
* Delete a document of an API
* @param apiId **API ID** consisting of the **UUID** of the API. The combination of the provider of the API, name of the API and the version is also accepted as a valid API ID. Should be formatted as **provider-name-version**. (required)
* @param documentId **Document Identifier** (required)
* @param ifMatch Validator for conditional requests; based on ETag. (optional)
* @param ifUnmodifiedSince Validator for conditional requests; based on Last Modified header. (optional)
* @return void
*/
@RequestLine("DELETE /apis/{apiId}/documents/{documentId}")
@Headers({
"Content-type: application/json",
"Accept: application/json",
"If-Match: {ifMatch}",
"If-Unmodified-Since: {ifUnmodifiedSince}"
})
void apisApiIdDocumentsDocumentIdDelete(@Param("apiId") String apiId, @Param("documentId") String documentId,
@Param("ifMatch") String ifMatch,
@Param("ifUnmodifiedSince") String ifUnmodifiedSince);
/**
* Get an API Document
* Get a particular document associated with an API.
* @param apiId **API ID** consisting of the **UUID** of the API. The combination of the provider of the API, name of the API and the version is also accepted as a valid API ID. Should be formatted as **provider-name-version**. (required)
* @param documentId **Document Identifier** (required)
* @param accept Media types acceptable for the response. Default is JSON. (optional, default to JSON)
* @param ifNoneMatch Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resourec. (optional)
* @param ifModifiedSince Validator for conditional requests; based on Last Modified header of the formerly
* retrieved variant of the resource. (optional)
* @return Document
*/
@RequestLine("GET /apis/{apiId}/documents/{documentId}")
@Headers({
"Content-type: application/json",
"Accept: application/json",
"Accept: {accept}",
"If-None-Match: {ifNoneMatch}",
"If-Modified-Since: {ifModifiedSince}"
})
Document apisApiIdDocumentsDocumentIdGet(@Param("apiId") String apiId, @Param("documentId") String documentId,
@Param("accept") String accept, @Param("ifNoneMatch") String ifNoneMatch,
@Param("ifModifiedSince") String ifModifiedSince);
/**
* Update an API Document
* Update document details.
* @param apiId **API ID** consisting of the **UUID** of the API. The combination of the provider of the API, name of the API and the version is also accepted as a valid API ID. Should be formatted as **provider-name-version**. (required)
* @param documentId **Document Identifier** (required)
* @param body Document object that needs to be added (required)
* @param contentType Media type of the entity in the body. Default is JSON. (required)
* @param ifMatch Validator for conditional requests; based on ETag. (optional)
* @param ifUnmodifiedSince Validator for conditional requests; based on Last Modified header. (optional)
* @return Document
*/
@RequestLine("PUT /apis/{apiId}/documents/{documentId}")
@Headers({
"Content-type: application/json",
"Accept: application/json",
"Content-Type: {contentType}",
"If-Match: {ifMatch}",
"If-Unmodified-Since: {ifUnmodifiedSince}"
})
Document apisApiIdDocumentsDocumentIdPut(@Param("apiId") String apiId, @Param("documentId") String documentId,
Document body, @Param("contentType") String contentType,
@Param("ifMatch") String ifMatch,
@Param("ifUnmodifiedSince") String ifUnmodifiedSince);
/**
* Get API Documents
* Get a list of documents belonging to an API.
* @param apiId **API ID** consisting of the **UUID** of the API. The combination of the provider of the API, name of the API and the version is also accepted as a valid API ID. Should be formatted as **provider-name-version**. (required)
* @param limit Maximum size of resource array to return. (optional, default to 25)
* @param offset Starting point within the complete list of items qualified. (optional, default to 0)
* @param accept Media types acceptable for the response. Default is JSON. (optional, default to JSON)
* @param ifNoneMatch Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resourec. (optional)
* @return DocumentList
*/
@RequestLine("GET /apis/{apiId}/documents?limit={limit}&offset={offset}")
@Headers({
"Content-type: application/json",
"Accept: application/json",
"Accept: {accept}",
"If-None-Match: {ifNoneMatch}"
})
DocumentList apisApiIdDocumentsGet(@Param("apiId") String apiId, @Param("limit") Integer limit,
@Param("offset") Integer offset, @Param("accept") String accept,
@Param("ifNoneMatch") String ifNoneMatch);
/**
* Add a new document
* Add a new document to an API
* @param apiId **API ID** consisting of the **UUID** of the API. The combination of the provider of the API, name of the API and the version is also accepted as a valid API ID. Should be formatted as **provider-name-version**. (required)
* @param body Document object that needs to be added (required)
* @param contentType Media type of the entity in the body. Default is JSON. (required)
* @return Document
*/
@RequestLine("POST /apis/{apiId}/documents")
@Headers({
"Content-type: application/json",
"Accept: application/json",
"Content-Type: {contentType}"
})
Document apisApiIdDocumentsPost(@Param("apiId") String apiId, Document body, @Param("contentType") String contentType);
}

@ -1,262 +0,0 @@
/*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. 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 org.wso2.carbon.apimgt.integration.client.publisher.api;
import feign.Headers;
import feign.Param;
import feign.RequestLine;
import org.wso2.carbon.apimgt.integration.client.publisher.model.API;
import org.wso2.carbon.apimgt.integration.client.publisher.model.APIList;
import org.wso2.carbon.apimgt.integration.client.publisher.model.FileInfo;
import java.io.File;
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-24T00:03:49.624+05:30")
public interface APIsApi {
/**
* Delete API
* Delete an existing API
* @param apiId **API ID** consisting of the **UUID** of the API. The combination of the provider of the API, name of the API and the version is also accepted as a valid API ID. Should be formatted as **provider-name-version**. (required)
* @param ifMatch Validator for conditional requests; based on ETag. (optional)
* @param ifUnmodifiedSince Validator for conditional requests; based on Last Modified header. (optional)
* @return void
*/
@RequestLine("DELETE /apis/{apiId}")
@Headers({
"Content-type: application/json",
"Accept: application/json",
"If-Match: {ifMatch}",
"If-Unmodified-Since: {ifUnmodifiedSince}"
})
void apisApiIdDelete(@Param("apiId") String apiId, @Param("ifMatch") String ifMatch,
@Param("ifUnmodifiedSince") String ifUnmodifiedSince);
/**
* Get API details
* Get details of an API
* @param apiId **API ID** consisting of the **UUID** of the API. The combination of the provider of the API, name of the API and the version is also accepted as a valid API ID. Should be formatted as **provider-name-version**. (required)
* @param accept Media types acceptable for the response. Default is JSON. (optional, default to JSON)
* @param ifNoneMatch Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resourec. (optional)
* @param ifModifiedSince Validator for conditional requests; based on Last Modified header of the formerly retrieved variant of the resource. (optional)
* @return API
*/
@RequestLine("GET /apis/{apiId}")
@Headers({
"Content-type: application/json",
"Accept: application/json",
"Accept: {accept}",
"If-None-Match: {ifNoneMatch}",
"If-Modified-Since: {ifModifiedSince}"
})
API apisApiIdGet(@Param("apiId") String apiId, @Param("accept") String accept,
@Param("ifNoneMatch") String ifNoneMatch, @Param("ifModifiedSince") String ifModifiedSince);
/**
* Update an existing API
* Update an existing API
* @param apiId **API ID** consisting of the **UUID** of the API. The combination of the provider of the API, name of the API and the version is also accepted as a valid API ID. Should be formatted as **provider-name-version**. (required)
* @param body API object that needs to be added (required)
* @param contentType Media type of the entity in the body. Default is JSON. (required)
* @param ifMatch Validator for conditional requests; based on ETag. (optional)
* @param ifUnmodifiedSince Validator for conditional requests; based on Last Modified header. (optional)
* @return API
*/
@RequestLine("PUT /apis/{apiId}")
@Headers({
"Content-type: application/json",
"Accept: application/json",
"Content-Type: {contentType}",
"If-Match: {ifMatch}",
"If-Unmodified-Since: {ifUnmodifiedSince}"
})
API apisApiIdPut(@Param("apiId") String apiId, API body, @Param("contentType") String contentType,
@Param("ifMatch") String ifMatch, @Param("ifUnmodifiedSince") String ifUnmodifiedSince);
/**
* Get API Definition
* Get the swagger of an API
* @param apiId **API ID** consisting of the **UUID** of the API. The combination of the provider of the API, name of the API and the version is also accepted as a valid API ID. Should be formatted as **provider-name-version**. (required)
* @param accept Media types acceptable for the response. Default is JSON. (optional, default to JSON)
* @param ifNoneMatch Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resourec. (optional)
* @param ifModifiedSince Validator for conditional requests; based on Last Modified header of the formerly retrieved variant of the resource. (optional)
* @return void
*/
@RequestLine("GET /apis/{apiId}/swagger")
@Headers({
"Content-type: application/json",
"Accept: application/json",
"Accept: {accept}",
"If-None-Match: {ifNoneMatch}",
"If-Modified-Since: {ifModifiedSince}"
})
void apisApiIdSwaggerGet(@Param("apiId") String apiId, @Param("accept") String accept,
@Param("ifNoneMatch") String ifNoneMatch, @Param("ifModifiedSince") String ifModifiedSince);
/**
* Update API Definition
* Update an existing swagger definition of an API
* @param apiId **API ID** consisting of the **UUID** of the API. The combination of the provider of the API, name of the API and the version is also accepted as a valid API ID. Should be formatted as **provider-name-version**. (required)
* @param apiDefinition Swagger definition of the API (required)
* @param contentType Media type of the entity in the body. Default is JSON. (required)
* @param ifMatch Validator for conditional requests; based on ETag. (optional)
* @param ifUnmodifiedSince Validator for conditional requests; based on Last Modified header. (optional)
* @return void
*/
@RequestLine("PUT /apis/{apiId}/swagger")
@Headers({
"Content-type: multipart/form-data",
"Accept: application/json",
"Content-Type: {contentType}",
"If-Match: {ifMatch}",
"If-Unmodified-Since: {ifUnmodifiedSince}"
})
void apisApiIdSwaggerPut(@Param("apiId") String apiId, @Param("apiDefinition") String apiDefinition,
@Param("contentType") String contentType, @Param("ifMatch") String ifMatch,
@Param("ifUnmodifiedSince") String ifUnmodifiedSince);
/**
* Get the thumbnail image
* Downloads a thumbnail image of an API
* @param apiId **API ID** consisting of the **UUID** of the API. The combination of the provider of the API, name of the API and the version is also accepted as a valid API ID. Should be formatted as **provider-name-version**. (required)
* @param accept Media types acceptable for the response. Default is JSON. (optional, default to JSON)
* @param ifNoneMatch Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resourec. (optional)
* @param ifModifiedSince Validator for conditional requests; based on Last Modified header of the formerly retrieved variant of the resource. (optional)
* @return void
*/
@RequestLine("GET /apis/{apiId}/thumbnail")
@Headers({
"Content-type: application/json",
"Accept: application/json",
"Accept: {accept}",
"If-None-Match: {ifNoneMatch}",
"If-Modified-Since: {ifModifiedSince}"
})
void apisApiIdThumbnailGet(@Param("apiId") String apiId, @Param("accept") String accept,
@Param("ifNoneMatch") String ifNoneMatch, @Param("ifModifiedSince") String ifModifiedSince);
/**
* Upload a thumbnail image
* Upload a thumbnail image to an API.
* @param apiId **API ID** consisting of the **UUID** of the API. The combination of the provider of the API, name of the API and the version is also accepted as a valid API ID. Should be formatted as **provider-name-version**. (required)
* @param file Image to upload (required)
* @param contentType Media type of the entity in the body. Default is JSON. (required)
* @param ifMatch Validator for conditional requests; based on ETag. (optional)
* @param ifUnmodifiedSince Validator for conditional requests; based on Last Modified header. (optional)
* @return FileInfo
*/
@RequestLine("POST /apis/{apiId}/thumbnail")
@Headers({
"Content-type: multipart/form-data",
"Accept: application/json",
"Content-Type: {contentType}",
"If-Match: {ifMatch}",
"If-Unmodified-Since: {ifUnmodifiedSince}"
})
FileInfo apisApiIdThumbnailPost(@Param("apiId") String apiId, @Param("file") File file,
@Param("contentType") String contentType, @Param("ifMatch") String ifMatch,
@Param("ifUnmodifiedSince") String ifUnmodifiedSince);
/**
* Change API Status
* Change the lifecycle of an API
* @param action The action to demote or promote the state of the API. Supported actions are [ **Publish, Deploy as a Prototype, Demote to Created, Demote to Prototyped, Block, Deprecate, Re-Publish, Retire **] (required)
* @param apiId **API ID** consisting of the **UUID** of the API. The combination of the provider of the API, name of the API and the version is also accepted as a valid API I. Should be formatted as **provider-name-version**. (required)
* @param lifecycleChecklist You can specify additional checklist items by using an **\&quot;attribute:\&quot;** modifier. Eg: \&quot;Deprecate Old Versions:true\&quot; will deprecate older versions of a particular API when it is promoted to Published state from Created state. Multiple checklist items can be given in \&quot;attribute1:true, attribute2:false\&quot; format. Supported checklist items are as follows. 1. **Deprecate Old Versions**: Setting this to true will deprecate older versions of a particular API when it is promoted to Published state from Created state. 2. **Require Re-Subscription**: If you set this to true, users need to re subscribe to the API although they may have subscribed to an older version. (optional)
* @param ifMatch Validator for conditional requests; based on ETag. (optional)
* @param ifUnmodifiedSince Validator for conditional requests; based on Last Modified header. (optional)
* @return void
*/
@RequestLine("POST /apis/change-lifecycle?action={action}&lifecycleChecklist={lifecycleChecklist}&apiId={apiId}")
@Headers({
"Content-type: application/json",
"Accept: application/json",
"If-Match: {ifMatch}",
"If-Unmodified-Since: {ifUnmodifiedSince}"
})
void apisChangeLifecyclePost(@Param("action") String action, @Param("apiId") String apiId,
@Param("lifecycleChecklist") String lifecycleChecklist, @Param("ifMatch") String ifMatch,
@Param("ifUnmodifiedSince") String ifUnmodifiedSince);
/**
* Copy API
* Create a new API by copying an existing API
* @param newVersion Version of the new API. (required)
* @param apiId **API ID** consisting of the **UUID** of the API. The combination of the provider of the API, name of the API and the version is also accepted as a valid API I. Should be formatted as **provider-name-version**. (required)
* @return void
*/
@RequestLine("POST /apis/copy-api?newVersion={newVersion}&apiId={apiId}")
@Headers({
"Content-type: application/json",
"Accept: application/json"
})
void apisCopyApiPost(@Param("newVersion") String newVersion, @Param("apiId") String apiId);
/**
* Get all APIs
* Get a list of available APIs qualifying under a given search condition.
* @param limit Maximum size of resource array to return. (optional, default to 25)
* @param offset Starting point within the complete list of items qualified. (optional, default to 0)
* @param query **Search condition**. You can search in attributes by using an **\&quot;attribute:\&quot;** modifier. Eg. \&quot;provider:wso2\&quot; will match an API if the provider of the API contains \&quot;wso2\&quot;. Supported attribute modifiers are [**version, context, status, description, subcontext, doc, provider**] If no advanced attribute modifier has been specified, search will match the given query string against API Name. (optional)
* @param accept Media types acceptable for the response. Default is JSON. (optional, default to JSON)
* @param ifNoneMatch Validator for conditional requests; based on the ETag of the formerly retrieved variant of
* the resourec. (optional)
* @return APIList
*/
@RequestLine("GET /apis?limit={limit}&offset={offset}&query={query}")
@Headers({
"Content-type: application/json",
"Accept: application/json",
"Accept: {accept}",
"If-None-Match: {ifNoneMatch}"
})
APIList apisGet(@Param("limit") Integer limit, @Param("offset") Integer offset, @Param("query") String query,
@Param("accept") String accept, @Param("ifNoneMatch") String ifNoneMatch);
/**
* Create a new API
* Create a new API
* @param body API object that needs to be added (required)
* @param contentType Media type of the entity in the body. Default is JSON. (required)
* @return API
*/
@RequestLine("POST /apis")
@Headers({
"Content-type: application/json",
"Accept: application/json",
"Content-Type: {contentType}"
})
API apisPost(API body, @Param("contentType") String contentType);
}

@ -1,52 +0,0 @@
/*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. 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 org.wso2.carbon.apimgt.integration.client.publisher.api;
import feign.Headers;
import feign.Param;
import feign.RequestLine;
import org.wso2.carbon.apimgt.integration.client.publisher.model.Application;
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-24T00:03:49.624+05:30")
public interface ApplicationsApi {
/**
* Get Application
* Get application details
* @param applicationId **Application Identifier** consisting of the UUID of the Application. (required)
* @param accept Media types acceptable for the response. Default is JSON. (optional, default to JSON)
* @param ifNoneMatch Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resourec. (optional)
* @param ifModifiedSince Validator for conditional requests; based on Last Modified header of the formerly retrieved variant of the resource. (optional)
* @return Application
*/
@RequestLine("GET /applications/{applicationId}")
@Headers({
"Content-type: application/json",
"Accept: application/json",
"Accept: {accept}",
"If-None-Match: {ifNoneMatch}",
"If-Modified-Since: {ifModifiedSince}"
})
Application applicationsApplicationIdGet(@Param("applicationId") String applicationId, @Param("accept") String accept,
@Param("ifNoneMatch") String ifNoneMatch,
@Param("ifModifiedSince") String ifModifiedSince);
}

@ -1,42 +0,0 @@
/*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. 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 org.wso2.carbon.apimgt.integration.client.publisher.api;
import feign.Headers;
import feign.Param;
import feign.RequestLine;
import org.wso2.carbon.apimgt.integration.client.publisher.model.EnvironmentList;
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-24T00:03:49.624+05:30")
public interface EnvironmentsApi {
/**
* Get gateway environments
* Get a list of gateway environments configured previously.
* @param apiId Will return environment list for the provided API. (optional)
* @return EnvironmentList
*/
@RequestLine("GET /environments?apiId={apiId}")
@Headers({
"Content-type: application/json",
"Accept: application/json"
})
EnvironmentList environmentsGet(@Param("apiId") String apiId);
}

@ -1,116 +0,0 @@
/*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. 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 org.wso2.carbon.apimgt.integration.client.publisher.api;
import feign.Headers;
import feign.Param;
import feign.RequestLine;
import org.wso2.carbon.apimgt.integration.client.publisher.model.Subscription;
import org.wso2.carbon.apimgt.integration.client.publisher.model.SubscriptionList;
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-24T00:03:49.624+05:30")
public interface SubscriptionsApi {
/**
* Block a subscription
* Block a subscription.
* @param subscriptionId Subscription Id (required)
* @param blockState Subscription block state. (required)
* @param ifMatch Validator for conditional requests; based on ETag. (optional)
* @param ifUnmodifiedSince Validator for conditional requests; based on Last Modified header. (optional)
* @return void
*/
@RequestLine("POST /subscriptions/block-subscription?subscriptionId={subscriptionId}&blockState={blockState}")
@Headers({
"Content-type: application/json",
"Accept: application/json",
"If-Match: {ifMatch}",
"If-Unmodified-Since: {ifUnmodifiedSince}"
})
void subscriptionsBlockSubscriptionPost(@Param("subscriptionId") String subscriptionId,
@Param("blockState") String blockState, @Param("ifMatch") String ifMatch,
@Param("ifUnmodifiedSince") String ifUnmodifiedSince);
/**
* Get All Subscriptions
* Get subscription list. The API Identifier and corresponding Application Identifier the subscriptions of which are to be returned are passed as parameters.
* @param apiId **API ID** consisting of the **UUID** of the API. The combination of the provider of the API, name of the API and the version is also accepted as a valid API I. Should be formatted as **provider-name-version**. (required)
* @param limit Maximum size of resource array to return. (optional, default to 25)
* @param offset Starting point within the complete list of items qualified. (optional, default to 0)
* @param accept Media types acceptable for the response. Default is JSON. (optional, default to JSON)
* @param ifNoneMatch Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resourec. (optional)
* @return SubscriptionList
*/
@RequestLine("GET /subscriptions?apiId={apiId}&limit={limit}&offset={offset}")
@Headers({
"Content-type: application/json",
"Accept: application/json",
"Accept: {accept}",
"If-None-Match: {ifNoneMatch}"
})
SubscriptionList subscriptionsGet(@Param("apiId") String apiId, @Param("limit") Integer limit,
@Param("offset") Integer offset, @Param("accept") String accept,
@Param("ifNoneMatch") String ifNoneMatch);
/**
* Get a Subscription
* Get subscription details
* @param subscriptionId Subscription Id (required)
* @param accept Media types acceptable for the response. Default is JSON. (optional, default to JSON)
* @param ifNoneMatch Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resourec. (optional)
* @param ifModifiedSince Validator for conditional requests; based on Last Modified header of the formerly retrieved variant of the resource. (optional)
* @return Subscription
*/
@RequestLine("GET /subscriptions/{subscriptionId}")
@Headers({
"Content-type: application/json",
"Accept: application/json",
"Accept: {accept}",
"If-None-Match: {ifNoneMatch}",
"If-Modified-Since: {ifModifiedSince}"
})
Subscription subscriptionsSubscriptionIdGet(@Param("subscriptionId") String subscriptionId,
@Param("accept") String accept, @Param("ifNoneMatch") String ifNoneMatch,
@Param("ifModifiedSince") String ifModifiedSince);
/**
* Unblock a Subscription
* Unblock a subscription.
* @param subscriptionId Subscription Id (required)
* @param ifMatch Validator for conditional requests; based on ETag. (optional)
* @param ifUnmodifiedSince Validator for conditional requests; based on Last Modified header. (optional)
* @return void
*/
@RequestLine("POST /subscriptions/unblock-subscription?subscriptionId={subscriptionId}")
@Headers({
"Content-type: application/json",
"Accept: application/json",
"If-Match: {ifMatch}",
"If-Unmodified-Since: {ifUnmodifiedSince}"
})
void subscriptionsUnblockSubscriptionPost(@Param("subscriptionId") String subscriptionId,
@Param("ifMatch") String ifMatch,
@Param("ifUnmodifiedSince") String ifUnmodifiedSince);
}

@ -1,163 +0,0 @@
/*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. 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 org.wso2.carbon.apimgt.integration.client.publisher.api;
import feign.Headers;
import feign.Param;
import feign.RequestLine;
import org.wso2.carbon.apimgt.integration.client.publisher.model.Tier;
import org.wso2.carbon.apimgt.integration.client.publisher.model.TierList;
import org.wso2.carbon.apimgt.integration.client.publisher.model.TierPermission;
import java.util.List;
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-24T00:03:49.624+05:30")
public interface TiersApi {
/**
* List Tiers
* Get available tiers
* @param tierLevel List API or Application or Resource type tiers. (required)
* @param limit Maximum size of resource array to return. (optional, default to 25)
* @param offset Starting point within the complete list of items qualified. (optional, default to 0)
* @param accept Media types acceptable for the response. Default is JSON. (optional, default to JSON)
* @param ifNoneMatch Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resourec. (optional)
* @return TierList
*/
@RequestLine("GET /tiers/{tierLevel}?limit={limit}&offset={offset}")
@Headers({
"Content-type: application/json",
"Accept: application/json",
"Accept: {accept}",
"If-None-Match: {ifNoneMatch}"
})
TierList tiersTierLevelGet(@Param("tierLevel") String tierLevel, @Param("limit") Integer limit,
@Param("offset") Integer offset, @Param("accept") String accept,
@Param("ifNoneMatch") String ifNoneMatch);
/**
* Add a new Tier
* Add a new tier
* @param body Tier object that should to be added (required)
* @param tierLevel List API or Application or Resource type tiers. (required)
* @param contentType Media type of the entity in the body. Default is JSON. (required)
* @return Tier
*/
@RequestLine("POST /tiers/{tierLevel}")
@Headers({
"Content-type: application/json",
"Accept: application/json",
"Content-Type: {contentType}"
})
Tier tiersTierLevelPost(Tier body, @Param("tierLevel") String tierLevel, @Param("contentType") String contentType);
/**
* Delete a Tier
* Remove a tier
* @param tierName Tier name (required)
* @param tierLevel List API or Application or Resource type tiers. (required)
* @param ifMatch Validator for conditional requests; based on ETag. (optional)
* @param ifUnmodifiedSince Validator for conditional requests; based on Last Modified header. (optional)
* @return void
*/
@RequestLine("DELETE /tiers/{tierLevel}/{tierName}")
@Headers({
"Content-type: application/json",
"Accept: application/json",
"If-Match: {ifMatch}",
"If-Unmodified-Since: {ifUnmodifiedSince}"
})
void tiersTierLevelTierNameDelete(@Param("tierName") String tierName, @Param("tierLevel") String tierLevel,
@Param("ifMatch") String ifMatch,
@Param("ifUnmodifiedSince") String ifUnmodifiedSince);
/**
* Get a Tier
* Get tier details
* @param tierName Tier name (required)
* @param tierLevel List API or Application or Resource type tiers. (required)
* @param accept Media types acceptable for the response. Default is JSON. (optional, default to JSON)
* @param ifNoneMatch Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resourec. (optional)
* @param ifModifiedSince Validator for conditional requests; based on Last Modified header of the formerly retrieved variant of the resource. (optional)
* @return Tier
*/
@RequestLine("GET /tiers/{tierLevel}/{tierName}")
@Headers({
"Content-type: application/json",
"Accept: application/json",
"Accept: {accept}",
"If-None-Match: {ifNoneMatch}",
"If-Modified-Since: {ifModifiedSince}"
})
Tier tiersTierLevelTierNameGet(@Param("tierName") String tierName, @Param("tierLevel") String tierLevel,
@Param("accept") String accept, @Param("ifNoneMatch") String ifNoneMatch,
@Param("ifModifiedSince") String ifModifiedSince);
/**
* Update a Tier
* Update tier details
* @param tierName Tier name (required)
* @param body Tier object that needs to be modified (required)
* @param tierLevel List API or Application or Resource type tiers. (required)
* @param contentType Media type of the entity in the body. Default is JSON. (required)
* @param ifMatch Validator for conditional requests; based on ETag. (optional)
* @param ifUnmodifiedSince Validator for conditional requests; based on Last Modified header. (optional)
* @return Tier
*/
@RequestLine("PUT /tiers/{tierLevel}/{tierName}")
@Headers({
"Content-type: application/json",
"Accept: application/json",
"Content-Type: {contentType}",
"If-Match: {ifMatch}",
"If-Unmodified-Since: {ifUnmodifiedSince}"
})
Tier tiersTierLevelTierNamePut(@Param("tierName") String tierName, Tier body, @Param("tierLevel") String tierLevel,
@Param("contentType") String contentType, @Param("ifMatch") String ifMatch,
@Param("ifUnmodifiedSince") String ifUnmodifiedSince);
/**
* Update Tier Permission
* Update tier permission
* @param tierName Name of the tier (required)
* @param tierLevel List API or Application or Resource type tiers. (required)
* @param ifMatch Validator for conditional requests; based on ETag. (optional)
* @param ifUnmodifiedSince Validator for conditional requests; based on Last Modified header. (optional)
* @param permissions (optional)
* @return List<Tier>
*/
@RequestLine("POST /tiers/update-permission?tierName={tierName}&tierLevel={tierLevel}")
@Headers({
"Content-type: application/json",
"Accept: application/json",
"If-Match: {ifMatch}",
"If-Unmodified-Since: {ifUnmodifiedSince}"
})
List<Tier> tiersUpdatePermissionPost(@Param("tierName") String tierName, @Param("tierLevel") String tierLevel,
@Param("ifMatch") String ifMatch,
@Param("ifUnmodifiedSince") String ifUnmodifiedSince, TierPermission permissions);
}

@ -1,847 +0,0 @@
/**
* WSO2 API Manager - Publisher API
* This document specifies a **RESTful API** for WSO2 **API Manager** - Publisher. It is written with [swagger 2](http://swagger.io/).
*
* OpenAPI spec version: 0.10.0
* Contact: architecture@wso2.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.wso2.carbon.apimgt.integration.client.publisher.model;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
/**
* API
*/
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-24T00:03:49.624+05:30")
public class API {
@JsonProperty("id")
private String id = null;
@JsonProperty("name")
private String name = null;
@JsonProperty("description")
private String description = null;
@JsonProperty("context")
private String context = null;
@JsonProperty("version")
private String version = null;
@JsonProperty("provider")
private String provider = null;
@JsonProperty("apiDefinition")
private String apiDefinition = null;
@JsonProperty("wsdlUri")
private String wsdlUri = null;
@JsonProperty("status")
private String status = null;
@JsonProperty("responseCaching")
private String responseCaching = null;
@JsonProperty("cacheTimeout")
private Integer cacheTimeout = null;
@JsonProperty("destinationStatsEnabled")
private String destinationStatsEnabled = null;
@JsonProperty("isDefaultVersion")
private Boolean isDefaultVersion = null;
@JsonProperty("transport")
private List<String> transport = new ArrayList<String>();
@JsonProperty("tags")
private List<String> tags = new ArrayList<String>();
@JsonProperty("tiers")
private List<String> tiers = new ArrayList<String>();
@JsonProperty("maxTps")
private APIMaxTps maxTps = null;
@JsonProperty("thumbnailUri")
private String thumbnailUri = null;
/**
* Gets or Sets visibility
*/
public enum VisibilityEnum {
PUBLIC("PUBLIC"),
PRIVATE("PRIVATE"),
RESTRICTED("RESTRICTED"),
CONTROLLED("CONTROLLED");
private String value;
VisibilityEnum(String value) {
this.value = value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static VisibilityEnum fromValue(String text) {
for (VisibilityEnum b : VisibilityEnum.values()) {
if (String.valueOf(b.value).equals(text)) {
return b;
}
}
return null;
}
}
@JsonProperty("visibility")
private VisibilityEnum visibility = null;
@JsonProperty("visibleRoles")
private List<String> visibleRoles = new ArrayList<String>();
@JsonProperty("visibleTenants")
private List<String> visibleTenants = new ArrayList<String>();
@JsonProperty("endpointConfig")
private String endpointConfig = null;
@JsonProperty("endpointSecurity")
private APIEndpointSecurity endpointSecurity = null;
@JsonProperty("gatewayEnvironments")
private String gatewayEnvironments = null;
@JsonProperty("sequences")
private List<Sequence> sequences = new ArrayList<Sequence>();
/**
* Gets or Sets subscriptionAvailability
*/
public enum SubscriptionAvailabilityEnum {
current_tenant("current_tenant"),
all_tenants("all_tenants"),
specific_tenants("specific_tenants");
private String value;
SubscriptionAvailabilityEnum(String value) {
this.value = value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static SubscriptionAvailabilityEnum fromValue(String text) {
for (SubscriptionAvailabilityEnum b : SubscriptionAvailabilityEnum.values()) {
if (String.valueOf(b.value).equals(text)) {
return b;
}
}
return null;
}
}
@JsonProperty("subscriptionAvailability")
private SubscriptionAvailabilityEnum subscriptionAvailability = null;
@JsonProperty("subscriptionAvailableTenants")
private List<String> subscriptionAvailableTenants = new ArrayList<String>();
@JsonProperty("businessInformation")
private APIBusinessInformation businessInformation = null;
@JsonProperty("corsConfiguration")
private APICorsConfiguration corsConfiguration = null;
public API id(String id) {
this.id = id;
return this;
}
/**
* UUID of the api registry artifact
* @return id
**/
@ApiModelProperty(example = "01234567-0123-0123-0123-012345678901", value = "UUID of the api registry artifact ")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public API name(String name) {
this.name = name;
return this;
}
/**
* Get name
* @return name
**/
@ApiModelProperty(example = "CalculatorAPI", required = true, value = "")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public API description(String description) {
this.description = description;
return this;
}
/**
* Get description
* @return description
**/
@ApiModelProperty(example = "A calculator API that supports basic operations", value = "")
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public API context(String context) {
this.context = context;
return this;
}
/**
* Get context
* @return context
**/
@ApiModelProperty(example = "CalculatorAPI", required = true, value = "")
public String getContext() {
return context;
}
public void setContext(String context) {
this.context = context;
}
public API version(String version) {
this.version = version;
return this;
}
/**
* Get version
* @return version
**/
@ApiModelProperty(example = "1.0.0", required = true, value = "")
public String getVersion() {
return version;
}
public void setVersion(String version) {
this.version = version;
}
public API provider(String provider) {
this.provider = provider;
return this;
}
/**
* If the provider value is not given user invoking the api will be used as the provider.
* @return provider
**/
@ApiModelProperty(example = "admin", value = "If the provider value is not given user invoking the api will be used as the provider. ")
public String getProvider() {
return provider;
}
public void setProvider(String provider) {
this.provider = provider;
}
public API apiDefinition(String apiDefinition) {
this.apiDefinition = apiDefinition;
return this;
}
/**
* Swagger definition of the API which contains details about URI templates and scopes
* @return apiDefinition
**/
@ApiModelProperty(example = "null", required = true, value = "Swagger definition of the API which contains details about URI templates and scopes ")
public String getApiDefinition() {
return apiDefinition;
}
public void setApiDefinition(String apiDefinition) {
this.apiDefinition = apiDefinition;
}
public API wsdlUri(String wsdlUri) {
this.wsdlUri = wsdlUri;
return this;
}
/**
* WSDL URL if the API is based on a WSDL endpoint
* @return wsdlUri
**/
@ApiModelProperty(example = "http://www.webservicex.com/globalweather.asmx?wsdl", value = "WSDL URL if the API is based on a WSDL endpoint ")
public String getWsdlUri() {
return wsdlUri;
}
public void setWsdlUri(String wsdlUri) {
this.wsdlUri = wsdlUri;
}
public API status(String status) {
this.status = status;
return this;
}
/**
* Get status
* @return status
**/
@ApiModelProperty(example = "CREATED", value = "")
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public API responseCaching(String responseCaching) {
this.responseCaching = responseCaching;
return this;
}
/**
* Get responseCaching
* @return responseCaching
**/
@ApiModelProperty(example = "Disabled", value = "")
public String getResponseCaching() {
return responseCaching;
}
public void setResponseCaching(String responseCaching) {
this.responseCaching = responseCaching;
}
public API cacheTimeout(Integer cacheTimeout) {
this.cacheTimeout = cacheTimeout;
return this;
}
/**
* Get cacheTimeout
* @return cacheTimeout
**/
@ApiModelProperty(example = "300", value = "")
public Integer getCacheTimeout() {
return cacheTimeout;
}
public void setCacheTimeout(Integer cacheTimeout) {
this.cacheTimeout = cacheTimeout;
}
public API destinationStatsEnabled(String destinationStatsEnabled) {
this.destinationStatsEnabled = destinationStatsEnabled;
return this;
}
/**
* Get destinationStatsEnabled
* @return destinationStatsEnabled
**/
@ApiModelProperty(example = "Disabled", value = "")
public String getDestinationStatsEnabled() {
return destinationStatsEnabled;
}
public void setDestinationStatsEnabled(String destinationStatsEnabled) {
this.destinationStatsEnabled = destinationStatsEnabled;
}
public API isDefaultVersion(Boolean isDefaultVersion) {
this.isDefaultVersion = isDefaultVersion;
return this;
}
/**
* Get isDefaultVersion
* @return isDefaultVersion
**/
@ApiModelProperty(example = "false", required = true, value = "")
public Boolean getIsDefaultVersion() {
return isDefaultVersion;
}
public void setIsDefaultVersion(Boolean isDefaultVersion) {
this.isDefaultVersion = isDefaultVersion;
}
public API transport(List<String> transport) {
this.transport = transport;
return this;
}
public API addTransportItem(String transportItem) {
this.transport.add(transportItem);
return this;
}
/**
* Supported transports for the API (http and/or https).
* @return transport
**/
@ApiModelProperty(example = "null", required = true, value = "Supported transports for the API (http and/or https). ")
public List<String> getTransport() {
return transport;
}
public void setTransport(List<String> transport) {
this.transport = transport;
}
public API tags(List<String> tags) {
this.tags = tags;
return this;
}
public API addTagsItem(String tagsItem) {
this.tags.add(tagsItem);
return this;
}
/**
* Get tags
* @return tags
**/
@ApiModelProperty(example = "null", value = "")
public List<String> getTags() {
return tags;
}
public void setTags(List<String> tags) {
this.tags = tags;
}
public API tiers(List<String> tiers) {
this.tiers = tiers;
return this;
}
public API addTiersItem(String tiersItem) {
this.tiers.add(tiersItem);
return this;
}
/**
* Get tiers
* @return tiers
**/
@ApiModelProperty(example = "null", required = true, value = "")
public List<String> getTiers() {
return tiers;
}
public void setTiers(List<String> tiers) {
this.tiers = tiers;
}
public API maxTps(APIMaxTps maxTps) {
this.maxTps = maxTps;
return this;
}
/**
* Get maxTps
* @return maxTps
**/
@ApiModelProperty(example = "null", value = "")
public APIMaxTps getMaxTps() {
return maxTps;
}
public void setMaxTps(APIMaxTps maxTps) {
this.maxTps = maxTps;
}
public API thumbnailUri(String thumbnailUri) {
this.thumbnailUri = thumbnailUri;
return this;
}
/**
* Get thumbnailUri
* @return thumbnailUri
**/
@ApiModelProperty(example = "/apis/01234567-0123-0123-0123-012345678901/thumbnail", value = "")
public String getThumbnailUri() {
return thumbnailUri;
}
public void setThumbnailUri(String thumbnailUri) {
this.thumbnailUri = thumbnailUri;
}
public API visibility(VisibilityEnum visibility) {
this.visibility = visibility;
return this;
}
/**
* Get visibility
* @return visibility
**/
@ApiModelProperty(example = "PUBLIC", required = true, value = "")
public VisibilityEnum getVisibility() {
return visibility;
}
public void setVisibility(VisibilityEnum visibility) {
this.visibility = visibility;
}
public API visibleRoles(List<String> visibleRoles) {
this.visibleRoles = visibleRoles;
return this;
}
public API addVisibleRolesItem(String visibleRolesItem) {
this.visibleRoles.add(visibleRolesItem);
return this;
}
/**
* Get visibleRoles
* @return visibleRoles
**/
@ApiModelProperty(example = "null", value = "")
public List<String> getVisibleRoles() {
return visibleRoles;
}
public void setVisibleRoles(List<String> visibleRoles) {
this.visibleRoles = visibleRoles;
}
public API visibleTenants(List<String> visibleTenants) {
this.visibleTenants = visibleTenants;
return this;
}
public API addVisibleTenantsItem(String visibleTenantsItem) {
this.visibleTenants.add(visibleTenantsItem);
return this;
}
/**
* Get visibleTenants
* @return visibleTenants
**/
@ApiModelProperty(example = "null", value = "")
public List<String> getVisibleTenants() {
return visibleTenants;
}
public void setVisibleTenants(List<String> visibleTenants) {
this.visibleTenants = visibleTenants;
}
public API endpointConfig(String endpointConfig) {
this.endpointConfig = endpointConfig;
return this;
}
/**
* Get endpointConfig
* @return endpointConfig
**/
@ApiModelProperty(example = "{&quot;production_endpoints&quot;:{&quot;url&quot;:&quot;http://localhost:9763/am/sample/calculator/v1/api&quot;,&quot;config&quot;:null},&quot;implementation_status&quot;:&quot;managed&quot;,&quot;endpoint_type&quot;:&quot;http&quot;}", required = true, value = "")
public String getEndpointConfig() {
return endpointConfig;
}
public void setEndpointConfig(String endpointConfig) {
this.endpointConfig = endpointConfig;
}
public API endpointSecurity(APIEndpointSecurity endpointSecurity) {
this.endpointSecurity = endpointSecurity;
return this;
}
/**
* Get endpointSecurity
* @return endpointSecurity
**/
@ApiModelProperty(example = "null", value = "")
public APIEndpointSecurity getEndpointSecurity() {
return endpointSecurity;
}
public void setEndpointSecurity(APIEndpointSecurity endpointSecurity) {
this.endpointSecurity = endpointSecurity;
}
public API gatewayEnvironments(String gatewayEnvironments) {
this.gatewayEnvironments = gatewayEnvironments;
return this;
}
/**
* Comma separated list of gateway environments.
* @return gatewayEnvironments
**/
@ApiModelProperty(example = "Production and Sandbox", value = "Comma separated list of gateway environments. ")
public String getGatewayEnvironments() {
return gatewayEnvironments;
}
public void setGatewayEnvironments(String gatewayEnvironments) {
this.gatewayEnvironments = gatewayEnvironments;
}
public API sequences(List<Sequence> sequences) {
this.sequences = sequences;
return this;
}
public API addSequencesItem(Sequence sequencesItem) {
this.sequences.add(sequencesItem);
return this;
}
/**
* Get sequences
* @return sequences
**/
@ApiModelProperty(example = "null", value = "")
public List<Sequence> getSequences() {
return sequences;
}
public void setSequences(List<Sequence> sequences) {
this.sequences = sequences;
}
public API subscriptionAvailability(SubscriptionAvailabilityEnum subscriptionAvailability) {
this.subscriptionAvailability = subscriptionAvailability;
return this;
}
/**
* Get subscriptionAvailability
* @return subscriptionAvailability
**/
@ApiModelProperty(example = "current_tenant", value = "")
public SubscriptionAvailabilityEnum getSubscriptionAvailability() {
return subscriptionAvailability;
}
public void setSubscriptionAvailability(SubscriptionAvailabilityEnum subscriptionAvailability) {
this.subscriptionAvailability = subscriptionAvailability;
}
public API subscriptionAvailableTenants(List<String> subscriptionAvailableTenants) {
this.subscriptionAvailableTenants = subscriptionAvailableTenants;
return this;
}
public API addSubscriptionAvailableTenantsItem(String subscriptionAvailableTenantsItem) {
this.subscriptionAvailableTenants.add(subscriptionAvailableTenantsItem);
return this;
}
/**
* Get subscriptionAvailableTenants
* @return subscriptionAvailableTenants
**/
@ApiModelProperty(example = "null", value = "")
public List<String> getSubscriptionAvailableTenants() {
return subscriptionAvailableTenants;
}
public void setSubscriptionAvailableTenants(List<String> subscriptionAvailableTenants) {
this.subscriptionAvailableTenants = subscriptionAvailableTenants;
}
public API businessInformation(APIBusinessInformation businessInformation) {
this.businessInformation = businessInformation;
return this;
}
/**
* Get businessInformation
* @return businessInformation
**/
@ApiModelProperty(example = "null", value = "")
public APIBusinessInformation getBusinessInformation() {
return businessInformation;
}
public void setBusinessInformation(APIBusinessInformation businessInformation) {
this.businessInformation = businessInformation;
}
public API corsConfiguration(APICorsConfiguration corsConfiguration) {
this.corsConfiguration = corsConfiguration;
return this;
}
/**
* Get corsConfiguration
* @return corsConfiguration
**/
@ApiModelProperty(example = "null", value = "")
public APICorsConfiguration getCorsConfiguration() {
return corsConfiguration;
}
public void setCorsConfiguration(APICorsConfiguration corsConfiguration) {
this.corsConfiguration = corsConfiguration;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
API API = (org.wso2.carbon.apimgt.integration.client.publisher.model.API) o;
return Objects.equals(this.id, API.id) &&
Objects.equals(this.name, API.name) &&
Objects.equals(this.description, API.description) &&
Objects.equals(this.context, API.context) &&
Objects.equals(this.version, API.version) &&
Objects.equals(this.provider, API.provider) &&
Objects.equals(this.apiDefinition, API.apiDefinition) &&
Objects.equals(this.wsdlUri, API.wsdlUri) &&
Objects.equals(this.status, API.status) &&
Objects.equals(this.responseCaching, API.responseCaching) &&
Objects.equals(this.cacheTimeout, API.cacheTimeout) &&
Objects.equals(this.destinationStatsEnabled, API.destinationStatsEnabled) &&
Objects.equals(this.isDefaultVersion, API.isDefaultVersion) &&
Objects.equals(this.transport, API.transport) &&
Objects.equals(this.tags, API.tags) &&
Objects.equals(this.tiers, API.tiers) &&
Objects.equals(this.maxTps, API.maxTps) &&
Objects.equals(this.thumbnailUri, API.thumbnailUri) &&
Objects.equals(this.visibility, API.visibility) &&
Objects.equals(this.visibleRoles, API.visibleRoles) &&
Objects.equals(this.visibleTenants, API.visibleTenants) &&
Objects.equals(this.endpointConfig, API.endpointConfig) &&
Objects.equals(this.endpointSecurity, API.endpointSecurity) &&
Objects.equals(this.gatewayEnvironments, API.gatewayEnvironments) &&
Objects.equals(this.sequences, API.sequences) &&
Objects.equals(this.subscriptionAvailability, API.subscriptionAvailability) &&
Objects.equals(this.subscriptionAvailableTenants, API.subscriptionAvailableTenants) &&
Objects.equals(this.businessInformation, API.businessInformation) &&
Objects.equals(this.corsConfiguration, API.corsConfiguration);
}
@Override
public int hashCode() {
return Objects.hash(id, name, description, context, version, provider, apiDefinition, wsdlUri, status, responseCaching, cacheTimeout, destinationStatsEnabled, isDefaultVersion, transport, tags, tiers, maxTps, thumbnailUri, visibility, visibleRoles, visibleTenants, endpointConfig, endpointSecurity, gatewayEnvironments, sequences, subscriptionAvailability, subscriptionAvailableTenants, businessInformation, corsConfiguration);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class API {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" context: ").append(toIndentedString(context)).append("\n");
sb.append(" version: ").append(toIndentedString(version)).append("\n");
sb.append(" provider: ").append(toIndentedString(provider)).append("\n");
sb.append(" apiDefinition: ").append(toIndentedString(apiDefinition)).append("\n");
sb.append(" wsdlUri: ").append(toIndentedString(wsdlUri)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" responseCaching: ").append(toIndentedString(responseCaching)).append("\n");
sb.append(" cacheTimeout: ").append(toIndentedString(cacheTimeout)).append("\n");
sb.append(" destinationStatsEnabled: ").append(toIndentedString(destinationStatsEnabled)).append("\n");
sb.append(" isDefaultVersion: ").append(toIndentedString(isDefaultVersion)).append("\n");
sb.append(" transport: ").append(toIndentedString(transport)).append("\n");
sb.append(" tags: ").append(toIndentedString(tags)).append("\n");
sb.append(" tiers: ").append(toIndentedString(tiers)).append("\n");
sb.append(" maxTps: ").append(toIndentedString(maxTps)).append("\n");
sb.append(" thumbnailUri: ").append(toIndentedString(thumbnailUri)).append("\n");
sb.append(" visibility: ").append(toIndentedString(visibility)).append("\n");
sb.append(" visibleRoles: ").append(toIndentedString(visibleRoles)).append("\n");
sb.append(" visibleTenants: ").append(toIndentedString(visibleTenants)).append("\n");
sb.append(" endpointConfig: ").append(toIndentedString(endpointConfig)).append("\n");
sb.append(" endpointSecurity: ").append(toIndentedString(endpointSecurity)).append("\n");
sb.append(" gatewayEnvironments: ").append(toIndentedString(gatewayEnvironments)).append("\n");
sb.append(" sequences: ").append(toIndentedString(sequences)).append("\n");
sb.append(" subscriptionAvailability: ").append(toIndentedString(subscriptionAvailability)).append("\n");
sb.append(" subscriptionAvailableTenants: ").append(toIndentedString(subscriptionAvailableTenants)).append("\n");
sb.append(" businessInformation: ").append(toIndentedString(businessInformation)).append("\n");
sb.append(" corsConfiguration: ").append(toIndentedString(corsConfiguration)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

@ -1,168 +0,0 @@
/**
* WSO2 API Manager - Publisher API
* This document specifies a **RESTful API** for WSO2 **API Manager** - Publisher. It is written with [swagger 2](http://swagger.io/).
*
* OpenAPI spec version: 0.10.0
* Contact: architecture@wso2.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.wso2.carbon.apimgt.integration.client.publisher.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.Objects;
/**
* APIBusinessInformation
*/
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-24T00:03:49.624+05:30")
public class APIBusinessInformation {
@JsonProperty("businessOwner")
private String businessOwner = null;
@JsonProperty("businessOwnerEmail")
private String businessOwnerEmail = null;
@JsonProperty("technicalOwner")
private String technicalOwner = null;
@JsonProperty("technicalOwnerEmail")
private String technicalOwnerEmail = null;
public APIBusinessInformation businessOwner(String businessOwner) {
this.businessOwner = businessOwner;
return this;
}
/**
* Get businessOwner
* @return businessOwner
**/
@ApiModelProperty(example = "businessowner", value = "")
public String getBusinessOwner() {
return businessOwner;
}
public void setBusinessOwner(String businessOwner) {
this.businessOwner = businessOwner;
}
public APIBusinessInformation businessOwnerEmail(String businessOwnerEmail) {
this.businessOwnerEmail = businessOwnerEmail;
return this;
}
/**
* Get businessOwnerEmail
* @return businessOwnerEmail
**/
@ApiModelProperty(example = "businessowner@wso2.com", value = "")
public String getBusinessOwnerEmail() {
return businessOwnerEmail;
}
public void setBusinessOwnerEmail(String businessOwnerEmail) {
this.businessOwnerEmail = businessOwnerEmail;
}
public APIBusinessInformation technicalOwner(String technicalOwner) {
this.technicalOwner = technicalOwner;
return this;
}
/**
* Get technicalOwner
* @return technicalOwner
**/
@ApiModelProperty(example = "technicalowner", value = "")
public String getTechnicalOwner() {
return technicalOwner;
}
public void setTechnicalOwner(String technicalOwner) {
this.technicalOwner = technicalOwner;
}
public APIBusinessInformation technicalOwnerEmail(String technicalOwnerEmail) {
this.technicalOwnerEmail = technicalOwnerEmail;
return this;
}
/**
* Get technicalOwnerEmail
* @return technicalOwnerEmail
**/
@ApiModelProperty(example = "technicalowner@wso2.com", value = "")
public String getTechnicalOwnerEmail() {
return technicalOwnerEmail;
}
public void setTechnicalOwnerEmail(String technicalOwnerEmail) {
this.technicalOwnerEmail = technicalOwnerEmail;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
APIBusinessInformation aPIBusinessInformation = (APIBusinessInformation) o;
return Objects.equals(this.businessOwner, aPIBusinessInformation.businessOwner) &&
Objects.equals(this.businessOwnerEmail, aPIBusinessInformation.businessOwnerEmail) &&
Objects.equals(this.technicalOwner, aPIBusinessInformation.technicalOwner) &&
Objects.equals(this.technicalOwnerEmail, aPIBusinessInformation.technicalOwnerEmail);
}
@Override
public int hashCode() {
return Objects.hash(businessOwner, businessOwnerEmail, technicalOwner, technicalOwnerEmail);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class APIBusinessInformation {\n");
sb.append(" businessOwner: ").append(toIndentedString(businessOwner)).append("\n");
sb.append(" businessOwnerEmail: ").append(toIndentedString(businessOwnerEmail)).append("\n");
sb.append(" technicalOwner: ").append(toIndentedString(technicalOwner)).append("\n");
sb.append(" technicalOwnerEmail: ").append(toIndentedString(technicalOwnerEmail)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

@ -1,210 +0,0 @@
/**
* WSO2 API Manager - Publisher API
* This document specifies a **RESTful API** for WSO2 **API Manager** - Publisher. It is written with [swagger 2](http://swagger.io/).
*
* OpenAPI spec version: 0.10.0
* Contact: architecture@wso2.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.wso2.carbon.apimgt.integration.client.publisher.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
/**
* CORS configuration for the API
*/
@ApiModel(description = "CORS configuration for the API ")
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-24T00:03:49.624+05:30")
public class APICorsConfiguration {
@JsonProperty("corsConfigurationEnabled")
private Boolean corsConfigurationEnabled = false;
@JsonProperty("accessControlAllowOrigins")
private List<String> accessControlAllowOrigins = new ArrayList<String>();
@JsonProperty("accessControlAllowCredentials")
private Boolean accessControlAllowCredentials = false;
@JsonProperty("accessControlAllowHeaders")
private List<String> accessControlAllowHeaders = new ArrayList<String>();
@JsonProperty("accessControlAllowMethods")
private List<String> accessControlAllowMethods = new ArrayList<String>();
public APICorsConfiguration corsConfigurationEnabled(Boolean corsConfigurationEnabled) {
this.corsConfigurationEnabled = corsConfigurationEnabled;
return this;
}
/**
* Get corsConfigurationEnabled
* @return corsConfigurationEnabled
**/
@ApiModelProperty(example = "null", value = "")
public Boolean getCorsConfigurationEnabled() {
return corsConfigurationEnabled;
}
public void setCorsConfigurationEnabled(Boolean corsConfigurationEnabled) {
this.corsConfigurationEnabled = corsConfigurationEnabled;
}
public APICorsConfiguration accessControlAllowOrigins(List<String> accessControlAllowOrigins) {
this.accessControlAllowOrigins = accessControlAllowOrigins;
return this;
}
public APICorsConfiguration addAccessControlAllowOriginsItem(String accessControlAllowOriginsItem) {
this.accessControlAllowOrigins.add(accessControlAllowOriginsItem);
return this;
}
/**
* Get accessControlAllowOrigins
* @return accessControlAllowOrigins
**/
@ApiModelProperty(example = "null", value = "")
public List<String> getAccessControlAllowOrigins() {
return accessControlAllowOrigins;
}
public void setAccessControlAllowOrigins(List<String> accessControlAllowOrigins) {
this.accessControlAllowOrigins = accessControlAllowOrigins;
}
public APICorsConfiguration accessControlAllowCredentials(Boolean accessControlAllowCredentials) {
this.accessControlAllowCredentials = accessControlAllowCredentials;
return this;
}
/**
* Get accessControlAllowCredentials
* @return accessControlAllowCredentials
**/
@ApiModelProperty(example = "null", value = "")
public Boolean getAccessControlAllowCredentials() {
return accessControlAllowCredentials;
}
public void setAccessControlAllowCredentials(Boolean accessControlAllowCredentials) {
this.accessControlAllowCredentials = accessControlAllowCredentials;
}
public APICorsConfiguration accessControlAllowHeaders(List<String> accessControlAllowHeaders) {
this.accessControlAllowHeaders = accessControlAllowHeaders;
return this;
}
public APICorsConfiguration addAccessControlAllowHeadersItem(String accessControlAllowHeadersItem) {
this.accessControlAllowHeaders.add(accessControlAllowHeadersItem);
return this;
}
/**
* Get accessControlAllowHeaders
* @return accessControlAllowHeaders
**/
@ApiModelProperty(example = "null", value = "")
public List<String> getAccessControlAllowHeaders() {
return accessControlAllowHeaders;
}
public void setAccessControlAllowHeaders(List<String> accessControlAllowHeaders) {
this.accessControlAllowHeaders = accessControlAllowHeaders;
}
public APICorsConfiguration accessControlAllowMethods(List<String> accessControlAllowMethods) {
this.accessControlAllowMethods = accessControlAllowMethods;
return this;
}
public APICorsConfiguration addAccessControlAllowMethodsItem(String accessControlAllowMethodsItem) {
this.accessControlAllowMethods.add(accessControlAllowMethodsItem);
return this;
}
/**
* Get accessControlAllowMethods
* @return accessControlAllowMethods
**/
@ApiModelProperty(example = "null", value = "")
public List<String> getAccessControlAllowMethods() {
return accessControlAllowMethods;
}
public void setAccessControlAllowMethods(List<String> accessControlAllowMethods) {
this.accessControlAllowMethods = accessControlAllowMethods;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
APICorsConfiguration aPICorsConfiguration = (APICorsConfiguration) o;
return Objects.equals(this.corsConfigurationEnabled, aPICorsConfiguration.corsConfigurationEnabled) &&
Objects.equals(this.accessControlAllowOrigins, aPICorsConfiguration.accessControlAllowOrigins) &&
Objects.equals(this.accessControlAllowCredentials, aPICorsConfiguration.accessControlAllowCredentials) &&
Objects.equals(this.accessControlAllowHeaders, aPICorsConfiguration.accessControlAllowHeaders) &&
Objects.equals(this.accessControlAllowMethods, aPICorsConfiguration.accessControlAllowMethods);
}
@Override
public int hashCode() {
return Objects.hash(corsConfigurationEnabled, accessControlAllowOrigins, accessControlAllowCredentials, accessControlAllowHeaders, accessControlAllowMethods);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class APICorsConfiguration {\n");
sb.append(" corsConfigurationEnabled: ").append(toIndentedString(corsConfigurationEnabled)).append("\n");
sb.append(" accessControlAllowOrigins: ").append(toIndentedString(accessControlAllowOrigins)).append("\n");
sb.append(" accessControlAllowCredentials: ").append(toIndentedString(accessControlAllowCredentials)).append("\n");
sb.append(" accessControlAllowHeaders: ").append(toIndentedString(accessControlAllowHeaders)).append("\n");
sb.append(" accessControlAllowMethods: ").append(toIndentedString(accessControlAllowMethods)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

@ -1,176 +0,0 @@
/**
* WSO2 API Manager - Publisher API
* This document specifies a **RESTful API** for WSO2 **API Manager** - Publisher. It is written with [swagger 2](http://swagger.io/).
*
* OpenAPI spec version: 0.10.0
* Contact: architecture@wso2.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.wso2.carbon.apimgt.integration.client.publisher.model;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.Objects;
/**
* APIEndpointSecurity
*/
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-24T00:03:49.624+05:30")
public class APIEndpointSecurity {
/**
* Gets or Sets type
*/
public enum TypeEnum {
BASIC("basic"),
DIGEST("digest");
private String value;
TypeEnum(String value) {
this.value = value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static TypeEnum fromValue(String text) {
for (TypeEnum b : TypeEnum.values()) {
if (String.valueOf(b.value).equals(text)) {
return b;
}
}
return null;
}
}
@JsonProperty("type")
private TypeEnum type = null;
@JsonProperty("username")
private String username = null;
@JsonProperty("password")
private String password = null;
public APIEndpointSecurity type(TypeEnum type) {
this.type = type;
return this;
}
/**
* Get type
* @return type
**/
@ApiModelProperty(example = "basic", value = "")
public TypeEnum getType() {
return type;
}
public void setType(TypeEnum type) {
this.type = type;
}
public APIEndpointSecurity username(String username) {
this.username = username;
return this;
}
/**
* Get username
* @return username
**/
@ApiModelProperty(example = "admin", value = "")
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public APIEndpointSecurity password(String password) {
this.password = password;
return this;
}
/**
* Get password
* @return password
**/
@ApiModelProperty(example = "password", value = "")
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
APIEndpointSecurity aPIEndpointSecurity = (APIEndpointSecurity) o;
return Objects.equals(this.type, aPIEndpointSecurity.type) &&
Objects.equals(this.username, aPIEndpointSecurity.username) &&
Objects.equals(this.password, aPIEndpointSecurity.password);
}
@Override
public int hashCode() {
return Objects.hash(type, username, password);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class APIEndpointSecurity {\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" username: ").append(toIndentedString(username)).append("\n");
sb.append(" password: ").append(toIndentedString(password)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

@ -1,237 +0,0 @@
/**
* WSO2 API Manager - Publisher API
* This document specifies a **RESTful API** for WSO2 **API Manager** - Publisher. It is written with [swagger 2](http://swagger.io/).
*
* OpenAPI spec version: 0.10.0
* Contact: architecture@wso2.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.wso2.carbon.apimgt.integration.client.publisher.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.Objects;
/**
* APIInfo
*/
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-24T00:03:49.624+05:30")
public class APIInfo {
@JsonProperty("id")
private String id = null;
@JsonProperty("name")
private String name = null;
@JsonProperty("description")
private String description = null;
@JsonProperty("context")
private String context = null;
@JsonProperty("version")
private String version = null;
@JsonProperty("provider")
private String provider = null;
@JsonProperty("status")
private String status = null;
public APIInfo id(String id) {
this.id = id;
return this;
}
/**
* Get id
* @return id
**/
@ApiModelProperty(example = "01234567-0123-0123-0123-012345678901", value = "")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public APIInfo name(String name) {
this.name = name;
return this;
}
/**
* Get name
* @return name
**/
@ApiModelProperty(example = "CalculatorAPI", value = "")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public APIInfo description(String description) {
this.description = description;
return this;
}
/**
* Get description
* @return description
**/
@ApiModelProperty(example = "A calculator API that supports basic operations", value = "")
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public APIInfo context(String context) {
this.context = context;
return this;
}
/**
* Get context
* @return context
**/
@ApiModelProperty(example = "CalculatorAPI", value = "")
public String getContext() {
return context;
}
public void setContext(String context) {
this.context = context;
}
public APIInfo version(String version) {
this.version = version;
return this;
}
/**
* Get version
* @return version
**/
@ApiModelProperty(example = "1.0.0", value = "")
public String getVersion() {
return version;
}
public void setVersion(String version) {
this.version = version;
}
public APIInfo provider(String provider) {
this.provider = provider;
return this;
}
/**
* If the provider value is not given, the user invoking the API will be used as the provider.
* @return provider
**/
@ApiModelProperty(example = "admin", value = "If the provider value is not given, the user invoking the API will be used as the provider. ")
public String getProvider() {
return provider;
}
public void setProvider(String provider) {
this.provider = provider;
}
public APIInfo status(String status) {
this.status = status;
return this;
}
/**
* Get status
* @return status
**/
@ApiModelProperty(example = "CREATED", value = "")
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
APIInfo aPIInfo = (APIInfo) o;
return Objects.equals(this.id, aPIInfo.id) &&
Objects.equals(this.name, aPIInfo.name) &&
Objects.equals(this.description, aPIInfo.description) &&
Objects.equals(this.context, aPIInfo.context) &&
Objects.equals(this.version, aPIInfo.version) &&
Objects.equals(this.provider, aPIInfo.provider) &&
Objects.equals(this.status, aPIInfo.status);
}
@Override
public int hashCode() {
return Objects.hash(id, name, description, context, version, provider, status);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class APIInfo {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" context: ").append(toIndentedString(context)).append("\n");
sb.append(" version: ").append(toIndentedString(version)).append("\n");
sb.append(" provider: ").append(toIndentedString(provider)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

@ -1,175 +0,0 @@
/**
* WSO2 API Manager - Publisher API
* This document specifies a **RESTful API** for WSO2 **API Manager** - Publisher. It is written with [swagger 2](http://swagger.io/).
*
* OpenAPI spec version: 0.10.0
* Contact: architecture@wso2.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.wso2.carbon.apimgt.integration.client.publisher.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
/**
* APIList
*/
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-24T00:03:49.624+05:30")
public class APIList {
@JsonProperty("count")
private Integer count = null;
@JsonProperty("next")
private String next = null;
@JsonProperty("previous")
private String previous = null;
@JsonProperty("list")
private List<APIInfo> list = new ArrayList<APIInfo>();
public APIList count(Integer count) {
this.count = count;
return this;
}
/**
* Number of APIs returned.
* @return count
**/
@ApiModelProperty(example = "1", value = "Number of APIs returned. ")
public Integer getCount() {
return count;
}
public void setCount(Integer count) {
this.count = count;
}
public APIList next(String next) {
this.next = next;
return this;
}
/**
* Link to the next subset of resources qualified. Empty if no more resources are to be returned.
* @return next
**/
@ApiModelProperty(example = "/apis?limit&#x3D;1&amp;offset&#x3D;2&amp;query&#x3D;", value = "Link to the next subset of resources qualified. Empty if no more resources are to be returned. ")
public String getNext() {
return next;
}
public void setNext(String next) {
this.next = next;
}
public APIList previous(String previous) {
this.previous = previous;
return this;
}
/**
* Link to the previous subset of resources qualified. Empty if current subset is the first subset returned.
* @return previous
**/
@ApiModelProperty(example = "/apis?limit&#x3D;1&amp;offset&#x3D;0&amp;query&#x3D;", value = "Link to the previous subset of resources qualified. Empty if current subset is the first subset returned. ")
public String getPrevious() {
return previous;
}
public void setPrevious(String previous) {
this.previous = previous;
}
public APIList list(List<APIInfo> list) {
this.list = list;
return this;
}
public APIList addListItem(APIInfo listItem) {
this.list.add(listItem);
return this;
}
/**
* Get list
* @return list
**/
@ApiModelProperty(example = "null", value = "")
public List<APIInfo> getList() {
return list;
}
public void setList(List<APIInfo> list) {
this.list = list;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
APIList aPIList = (APIList) o;
return Objects.equals(this.count, aPIList.count) &&
Objects.equals(this.next, aPIList.next) &&
Objects.equals(this.previous, aPIList.previous) &&
Objects.equals(this.list, aPIList.list);
}
@Override
public int hashCode() {
return Objects.hash(count, next, previous, list);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class APIList {\n");
sb.append(" count: ").append(toIndentedString(count)).append("\n");
sb.append(" next: ").append(toIndentedString(next)).append("\n");
sb.append(" previous: ").append(toIndentedString(previous)).append("\n");
sb.append(" list: ").append(toIndentedString(list)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

@ -1,122 +0,0 @@
/**
* WSO2 API Manager - Publisher API
* This document specifies a **RESTful API** for WSO2 **API Manager** - Publisher. It is written with [swagger 2](http://swagger.io/).
*
* OpenAPI spec version: 0.10.0
* Contact: architecture@wso2.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.wso2.carbon.apimgt.integration.client.publisher.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.Objects;
/**
* APIMaxTps
*/
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-24T00:03:49.624+05:30")
public class APIMaxTps {
@JsonProperty("production")
private Long production = null;
@JsonProperty("sandbox")
private Long sandbox = null;
public APIMaxTps production(Long production) {
this.production = production;
return this;
}
/**
* Get production
* @return production
**/
@ApiModelProperty(example = "1000", value = "")
public Long getProduction() {
return production;
}
public void setProduction(Long production) {
this.production = production;
}
public APIMaxTps sandbox(Long sandbox) {
this.sandbox = sandbox;
return this;
}
/**
* Get sandbox
* @return sandbox
**/
@ApiModelProperty(example = "1000", value = "")
public Long getSandbox() {
return sandbox;
}
public void setSandbox(Long sandbox) {
this.sandbox = sandbox;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
APIMaxTps aPIMaxTps = (APIMaxTps) o;
return Objects.equals(this.production, aPIMaxTps.production) &&
Objects.equals(this.sandbox, aPIMaxTps.sandbox);
}
@Override
public int hashCode() {
return Objects.hash(production, sandbox);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class APIMaxTps {\n");
sb.append(" production: ").append(toIndentedString(production)).append("\n");
sb.append(" sandbox: ").append(toIndentedString(sandbox)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

@ -1,214 +0,0 @@
/**
* WSO2 API Manager - Publisher API
* This document specifies a **RESTful API** for WSO2 **API Manager** - Publisher. It is written with [swagger 2](http://swagger.io/).
*
* OpenAPI spec version: 0.10.0
* Contact: architecture@wso2.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.wso2.carbon.apimgt.integration.client.publisher.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.Objects;
/**
* Application
*/
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-24T00:03:49.624+05:30")
public class Application {
@JsonProperty("applicationId")
private String applicationId = null;
@JsonProperty("name")
private String name = null;
@JsonProperty("subscriber")
private String subscriber = null;
@JsonProperty("throttlingTier")
private String throttlingTier = null;
@JsonProperty("description")
private String description = null;
@JsonProperty("groupId")
private String groupId = null;
public Application applicationId(String applicationId) {
this.applicationId = applicationId;
return this;
}
/**
* Get applicationId
* @return applicationId
**/
@ApiModelProperty(example = "01234567-0123-0123-0123-012345678901", value = "")
public String getApplicationId() {
return applicationId;
}
public void setApplicationId(String applicationId) {
this.applicationId = applicationId;
}
public Application name(String name) {
this.name = name;
return this;
}
/**
* Get name
* @return name
**/
@ApiModelProperty(example = "CalculatorApp", required = true, value = "")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Application subscriber(String subscriber) {
this.subscriber = subscriber;
return this;
}
/**
* Get subscriber
* @return subscriber
**/
@ApiModelProperty(example = "admin", value = "")
public String getSubscriber() {
return subscriber;
}
public void setSubscriber(String subscriber) {
this.subscriber = subscriber;
}
public Application throttlingTier(String throttlingTier) {
this.throttlingTier = throttlingTier;
return this;
}
/**
* Get throttlingTier
* @return throttlingTier
**/
@ApiModelProperty(example = "Unlimited", required = true, value = "")
public String getThrottlingTier() {
return throttlingTier;
}
public void setThrottlingTier(String throttlingTier) {
this.throttlingTier = throttlingTier;
}
public Application description(String description) {
this.description = description;
return this;
}
/**
* Get description
* @return description
**/
@ApiModelProperty(example = "Sample calculator application", value = "")
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public Application groupId(String groupId) {
this.groupId = groupId;
return this;
}
/**
* Get groupId
* @return groupId
**/
@ApiModelProperty(example = "", value = "")
public String getGroupId() {
return groupId;
}
public void setGroupId(String groupId) {
this.groupId = groupId;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Application application = (Application) o;
return Objects.equals(this.applicationId, application.applicationId) &&
Objects.equals(this.name, application.name) &&
Objects.equals(this.subscriber, application.subscriber) &&
Objects.equals(this.throttlingTier, application.throttlingTier) &&
Objects.equals(this.description, application.description) &&
Objects.equals(this.groupId, application.groupId);
}
@Override
public int hashCode() {
return Objects.hash(applicationId, name, subscriber, throttlingTier, description, groupId);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Application {\n");
sb.append(" applicationId: ").append(toIndentedString(applicationId)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" subscriber: ").append(toIndentedString(subscriber)).append("\n");
sb.append(" throttlingTier: ").append(toIndentedString(throttlingTier)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" groupId: ").append(toIndentedString(groupId)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

@ -1,365 +0,0 @@
/**
* WSO2 API Manager - Publisher API
* This document specifies a **RESTful API** for WSO2 **API Manager** - Publisher. It is written with [swagger 2](http://swagger.io/).
*
* OpenAPI spec version: 0.10.0
* Contact: architecture@wso2.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.wso2.carbon.apimgt.integration.client.publisher.model;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.Objects;
/**
* Document
*/
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-24T00:03:49.624+05:30")
public class Document {
@JsonProperty("documentId")
private String documentId = null;
@JsonProperty("name")
private String name = null;
/**
* Gets or Sets type
*/
public enum TypeEnum {
HOWTO("HOWTO"),
SAMPLES("SAMPLES"),
PUBLIC_FORUM("PUBLIC_FORUM"),
SUPPORT_FORUM("SUPPORT_FORUM"),
API_MESSAGE_FORMAT("API_MESSAGE_FORMAT"),
SWAGGER_DOC("SWAGGER_DOC"),
OTHER("OTHER");
private String value;
TypeEnum(String value) {
this.value = value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static TypeEnum fromValue(String text) {
for (TypeEnum b : TypeEnum.values()) {
if (String.valueOf(b.value).equals(text)) {
return b;
}
}
return null;
}
}
@JsonProperty("type")
private TypeEnum type = null;
@JsonProperty("summary")
private String summary = null;
/**
* Gets or Sets sourceType
*/
public enum SourceTypeEnum {
INLINE("INLINE"),
URL("URL"),
FILE("FILE");
private String value;
SourceTypeEnum(String value) {
this.value = value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static SourceTypeEnum fromValue(String text) {
for (SourceTypeEnum b : SourceTypeEnum.values()) {
if (String.valueOf(b.value).equals(text)) {
return b;
}
}
return null;
}
}
@JsonProperty("sourceType")
private SourceTypeEnum sourceType = null;
@JsonProperty("sourceUrl")
private String sourceUrl = null;
@JsonProperty("otherTypeName")
private String otherTypeName = null;
/**
* Gets or Sets visibility
*/
public enum VisibilityEnum {
OWNER_ONLY("OWNER_ONLY"),
PRIVATE("PRIVATE"),
API_LEVEL("API_LEVEL");
private String value;
VisibilityEnum(String value) {
this.value = value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static VisibilityEnum fromValue(String text) {
for (VisibilityEnum b : VisibilityEnum.values()) {
if (String.valueOf(b.value).equals(text)) {
return b;
}
}
return null;
}
}
@JsonProperty("visibility")
private VisibilityEnum visibility = null;
public Document documentId(String documentId) {
this.documentId = documentId;
return this;
}
/**
* Get documentId
* @return documentId
**/
@ApiModelProperty(example = "01234567-0123-0123-0123-012345678901", value = "")
public String getDocumentId() {
return documentId;
}
public void setDocumentId(String documentId) {
this.documentId = documentId;
}
public Document name(String name) {
this.name = name;
return this;
}
/**
* Get name
* @return name
**/
@ApiModelProperty(example = "CalculatorDoc", required = true, value = "")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Document type(TypeEnum type) {
this.type = type;
return this;
}
/**
* Get type
* @return type
**/
@ApiModelProperty(example = "HOWTO", required = true, value = "")
public TypeEnum getType() {
return type;
}
public void setType(TypeEnum type) {
this.type = type;
}
public Document summary(String summary) {
this.summary = summary;
return this;
}
/**
* Get summary
* @return summary
**/
@ApiModelProperty(example = "Summary of Calculator Documentation", value = "")
public String getSummary() {
return summary;
}
public void setSummary(String summary) {
this.summary = summary;
}
public Document sourceType(SourceTypeEnum sourceType) {
this.sourceType = sourceType;
return this;
}
/**
* Get sourceType
* @return sourceType
**/
@ApiModelProperty(example = "INLINE", required = true, value = "")
public SourceTypeEnum getSourceType() {
return sourceType;
}
public void setSourceType(SourceTypeEnum sourceType) {
this.sourceType = sourceType;
}
public Document sourceUrl(String sourceUrl) {
this.sourceUrl = sourceUrl;
return this;
}
/**
* Get sourceUrl
* @return sourceUrl
**/
@ApiModelProperty(example = "", value = "")
public String getSourceUrl() {
return sourceUrl;
}
public void setSourceUrl(String sourceUrl) {
this.sourceUrl = sourceUrl;
}
public Document otherTypeName(String otherTypeName) {
this.otherTypeName = otherTypeName;
return this;
}
/**
* Get otherTypeName
* @return otherTypeName
**/
@ApiModelProperty(example = "", value = "")
public String getOtherTypeName() {
return otherTypeName;
}
public void setOtherTypeName(String otherTypeName) {
this.otherTypeName = otherTypeName;
}
public Document visibility(VisibilityEnum visibility) {
this.visibility = visibility;
return this;
}
/**
* Get visibility
* @return visibility
**/
@ApiModelProperty(example = "API_LEVEL", required = true, value = "")
public VisibilityEnum getVisibility() {
return visibility;
}
public void setVisibility(VisibilityEnum visibility) {
this.visibility = visibility;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Document document = (Document) o;
return Objects.equals(this.documentId, document.documentId) &&
Objects.equals(this.name, document.name) &&
Objects.equals(this.type, document.type) &&
Objects.equals(this.summary, document.summary) &&
Objects.equals(this.sourceType, document.sourceType) &&
Objects.equals(this.sourceUrl, document.sourceUrl) &&
Objects.equals(this.otherTypeName, document.otherTypeName) &&
Objects.equals(this.visibility, document.visibility);
}
@Override
public int hashCode() {
return Objects.hash(documentId, name, type, summary, sourceType, sourceUrl, otherTypeName, visibility);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Document {\n");
sb.append(" documentId: ").append(toIndentedString(documentId)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" summary: ").append(toIndentedString(summary)).append("\n");
sb.append(" sourceType: ").append(toIndentedString(sourceType)).append("\n");
sb.append(" sourceUrl: ").append(toIndentedString(sourceUrl)).append("\n");
sb.append(" otherTypeName: ").append(toIndentedString(otherTypeName)).append("\n");
sb.append(" visibility: ").append(toIndentedString(visibility)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

@ -1,175 +0,0 @@
/**
* WSO2 API Manager - Publisher API
* This document specifies a **RESTful API** for WSO2 **API Manager** - Publisher. It is written with [swagger 2](http://swagger.io/).
*
* OpenAPI spec version: 0.10.0
* Contact: architecture@wso2.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.wso2.carbon.apimgt.integration.client.publisher.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
/**
* DocumentList
*/
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-24T00:03:49.624+05:30")
public class DocumentList {
@JsonProperty("count")
private Integer count = null;
@JsonProperty("next")
private String next = null;
@JsonProperty("previous")
private String previous = null;
@JsonProperty("list")
private List<Document> list = new ArrayList<Document>();
public DocumentList count(Integer count) {
this.count = count;
return this;
}
/**
* Number of Documents returned.
* @return count
**/
@ApiModelProperty(example = "1", value = "Number of Documents returned. ")
public Integer getCount() {
return count;
}
public void setCount(Integer count) {
this.count = count;
}
public DocumentList next(String next) {
this.next = next;
return this;
}
/**
* Link to the next subset of resources qualified. Empty if no more resources are to be returned.
* @return next
**/
@ApiModelProperty(example = "/apis/01234567-0123-0123-0123-012345678901/documents?limit&#x3D;1&amp;offset&#x3D;2", value = "Link to the next subset of resources qualified. Empty if no more resources are to be returned. ")
public String getNext() {
return next;
}
public void setNext(String next) {
this.next = next;
}
public DocumentList previous(String previous) {
this.previous = previous;
return this;
}
/**
* Link to the previous subset of resources qualified. Empty if current subset is the first subset returned.
* @return previous
**/
@ApiModelProperty(example = "/apis/01234567-0123-0123-0123-012345678901/documents?limit&#x3D;1&amp;offset&#x3D;0", value = "Link to the previous subset of resources qualified. Empty if current subset is the first subset returned. ")
public String getPrevious() {
return previous;
}
public void setPrevious(String previous) {
this.previous = previous;
}
public DocumentList list(List<Document> list) {
this.list = list;
return this;
}
public DocumentList addListItem(Document listItem) {
this.list.add(listItem);
return this;
}
/**
* Get list
* @return list
**/
@ApiModelProperty(example = "null", value = "")
public List<Document> getList() {
return list;
}
public void setList(List<Document> list) {
this.list = list;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DocumentList documentList = (DocumentList) o;
return Objects.equals(this.count, documentList.count) &&
Objects.equals(this.next, documentList.next) &&
Objects.equals(this.previous, documentList.previous) &&
Objects.equals(this.list, documentList.list);
}
@Override
public int hashCode() {
return Objects.hash(count, next, previous, list);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DocumentList {\n");
sb.append(" count: ").append(toIndentedString(count)).append("\n");
sb.append(" next: ").append(toIndentedString(next)).append("\n");
sb.append(" previous: ").append(toIndentedString(previous)).append("\n");
sb.append(" list: ").append(toIndentedString(list)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

@ -1,191 +0,0 @@
/**
* WSO2 API Manager - Publisher API
* This document specifies a **RESTful API** for WSO2 **API Manager** - Publisher. It is written with [swagger 2](http://swagger.io/).
*
* OpenAPI spec version: 0.10.0
* Contact: architecture@wso2.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.wso2.carbon.apimgt.integration.client.publisher.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.Objects;
/**
* Environment
*/
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-24T00:03:49.624+05:30")
public class Environment {
@JsonProperty("name")
private String name = null;
@JsonProperty("type")
private String type = null;
@JsonProperty("serverUrl")
private String serverUrl = null;
@JsonProperty("showInApiConsole")
private Boolean showInApiConsole = null;
@JsonProperty("endpoints")
private EnvironmentEndpoints endpoints = null;
public Environment name(String name) {
this.name = name;
return this;
}
/**
* Get name
* @return name
**/
@ApiModelProperty(example = "Production and Sandbox", required = true, value = "")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Environment type(String type) {
this.type = type;
return this;
}
/**
* Get type
* @return type
**/
@ApiModelProperty(example = "hybrid", required = true, value = "")
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public Environment serverUrl(String serverUrl) {
this.serverUrl = serverUrl;
return this;
}
/**
* Get serverUrl
* @return serverUrl
**/
@ApiModelProperty(example = "https://localhost:9443//services/", required = true, value = "")
public String getServerUrl() {
return serverUrl;
}
public void setServerUrl(String serverUrl) {
this.serverUrl = serverUrl;
}
public Environment showInApiConsole(Boolean showInApiConsole) {
this.showInApiConsole = showInApiConsole;
return this;
}
/**
* Get showInApiConsole
* @return showInApiConsole
**/
@ApiModelProperty(example = "true", required = true, value = "")
public Boolean getShowInApiConsole() {
return showInApiConsole;
}
public void setShowInApiConsole(Boolean showInApiConsole) {
this.showInApiConsole = showInApiConsole;
}
public Environment endpoints(EnvironmentEndpoints endpoints) {
this.endpoints = endpoints;
return this;
}
/**
* Get endpoints
* @return endpoints
**/
@ApiModelProperty(example = "null", required = true, value = "")
public EnvironmentEndpoints getEndpoints() {
return endpoints;
}
public void setEndpoints(EnvironmentEndpoints endpoints) {
this.endpoints = endpoints;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Environment environment = (Environment) o;
return Objects.equals(this.name, environment.name) &&
Objects.equals(this.type, environment.type) &&
Objects.equals(this.serverUrl, environment.serverUrl) &&
Objects.equals(this.showInApiConsole, environment.showInApiConsole) &&
Objects.equals(this.endpoints, environment.endpoints);
}
@Override
public int hashCode() {
return Objects.hash(name, type, serverUrl, showInApiConsole, endpoints);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Environment {\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" serverUrl: ").append(toIndentedString(serverUrl)).append("\n");
sb.append(" showInApiConsole: ").append(toIndentedString(showInApiConsole)).append("\n");
sb.append(" endpoints: ").append(toIndentedString(endpoints)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

@ -1,122 +0,0 @@
/**
* WSO2 API Manager - Publisher API
* This document specifies a **RESTful API** for WSO2 **API Manager** - Publisher. It is written with [swagger 2](http://swagger.io/).
*
* OpenAPI spec version: 0.10.0
* Contact: architecture@wso2.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.wso2.carbon.apimgt.integration.client.publisher.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.Objects;
/**
* EnvironmentEndpoints
*/
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-24T00:03:49.624+05:30")
public class EnvironmentEndpoints {
@JsonProperty("http")
private String http = null;
@JsonProperty("https")
private String https = null;
public EnvironmentEndpoints http(String http) {
this.http = http;
return this;
}
/**
* HTTP environment URL
* @return http
**/
@ApiModelProperty(example = "http://localhost:8280", value = "HTTP environment URL")
public String getHttp() {
return http;
}
public void setHttp(String http) {
this.http = http;
}
public EnvironmentEndpoints https(String https) {
this.https = https;
return this;
}
/**
* HTTPS environment URL
* @return https
**/
@ApiModelProperty(example = "https://localhost:8244", value = "HTTPS environment URL")
public String getHttps() {
return https;
}
public void setHttps(String https) {
this.https = https;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
EnvironmentEndpoints environmentEndpoints = (EnvironmentEndpoints) o;
return Objects.equals(this.http, environmentEndpoints.http) &&
Objects.equals(this.https, environmentEndpoints.https);
}
@Override
public int hashCode() {
return Objects.hash(http, https);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class EnvironmentEndpoints {\n");
sb.append(" http: ").append(toIndentedString(http)).append("\n");
sb.append(" https: ").append(toIndentedString(https)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

@ -1,129 +0,0 @@
/**
* WSO2 API Manager - Publisher API
* This document specifies a **RESTful API** for WSO2 **API Manager** - Publisher. It is written with [swagger 2](http://swagger.io/).
*
* OpenAPI spec version: 0.10.0
* Contact: architecture@wso2.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.wso2.carbon.apimgt.integration.client.publisher.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
/**
* EnvironmentList
*/
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-24T00:03:49.624+05:30")
public class EnvironmentList {
@JsonProperty("count")
private Integer count = null;
@JsonProperty("list")
private List<Environment> list = new ArrayList<Environment>();
public EnvironmentList count(Integer count) {
this.count = count;
return this;
}
/**
* Number of Environments returned.
* @return count
**/
@ApiModelProperty(example = "1", value = "Number of Environments returned. ")
public Integer getCount() {
return count;
}
public void setCount(Integer count) {
this.count = count;
}
public EnvironmentList list(List<Environment> list) {
this.list = list;
return this;
}
public EnvironmentList addListItem(Environment listItem) {
this.list.add(listItem);
return this;
}
/**
* Get list
* @return list
**/
@ApiModelProperty(example = "null", value = "")
public List<Environment> getList() {
return list;
}
public void setList(List<Environment> list) {
this.list = list;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
EnvironmentList environmentList = (EnvironmentList) o;
return Objects.equals(this.count, environmentList.count) &&
Objects.equals(this.list, environmentList.list);
}
@Override
public int hashCode() {
return Objects.hash(count, list);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class EnvironmentList {\n");
sb.append(" count: ").append(toIndentedString(count)).append("\n");
sb.append(" list: ").append(toIndentedString(list)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

@ -1,198 +0,0 @@
/**
* WSO2 API Manager - Publisher API
* This document specifies a **RESTful API** for WSO2 **API Manager** - Publisher. It is written with [swagger 2](http://swagger.io/).
*
* OpenAPI spec version: 0.10.0
* Contact: architecture@wso2.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.wso2.carbon.apimgt.integration.client.publisher.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
/**
* Error
*/
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-24T00:03:49.624+05:30")
public class Error {
@JsonProperty("code")
private Long code = null;
@JsonProperty("message")
private String message = null;
@JsonProperty("description")
private String description = null;
@JsonProperty("moreInfo")
private String moreInfo = null;
@JsonProperty("error")
private List<ErrorListItem> error = new ArrayList<ErrorListItem>();
public Error code(Long code) {
this.code = code;
return this;
}
/**
* Get code
* @return code
**/
@ApiModelProperty(example = "null", required = true, value = "")
public Long getCode() {
return code;
}
public void setCode(Long code) {
this.code = code;
}
public Error message(String message) {
this.message = message;
return this;
}
/**
* Error message.
* @return message
**/
@ApiModelProperty(example = "null", required = true, value = "Error message.")
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
public Error description(String description) {
this.description = description;
return this;
}
/**
* A detail description about the error message.
* @return description
**/
@ApiModelProperty(example = "null", value = "A detail description about the error message. ")
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public Error moreInfo(String moreInfo) {
this.moreInfo = moreInfo;
return this;
}
/**
* Preferably an url with more details about the error.
* @return moreInfo
**/
@ApiModelProperty(example = "null", value = "Preferably an url with more details about the error. ")
public String getMoreInfo() {
return moreInfo;
}
public void setMoreInfo(String moreInfo) {
this.moreInfo = moreInfo;
}
public Error error(List<ErrorListItem> error) {
this.error = error;
return this;
}
public Error addErrorItem(ErrorListItem errorItem) {
this.error.add(errorItem);
return this;
}
/**
* If there are more than one error list them out. For example, list out validation errors by each field.
* @return error
**/
@ApiModelProperty(example = "null", value = "If there are more than one error list them out. For example, list out validation errors by each field. ")
public List<ErrorListItem> getError() {
return error;
}
public void setError(List<ErrorListItem> error) {
this.error = error;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Error error = (Error) o;
return Objects.equals(this.code, error.code) &&
Objects.equals(this.message, error.message) &&
Objects.equals(this.description, error.description) &&
Objects.equals(this.moreInfo, error.moreInfo) &&
Objects.equals(this.error, error.error);
}
@Override
public int hashCode() {
return Objects.hash(code, message, description, moreInfo, error);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Error {\n");
sb.append(" code: ").append(toIndentedString(code)).append("\n");
sb.append(" message: ").append(toIndentedString(message)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" moreInfo: ").append(toIndentedString(moreInfo)).append("\n");
sb.append(" error: ").append(toIndentedString(error)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

@ -1,122 +0,0 @@
/**
* WSO2 API Manager - Publisher API
* This document specifies a **RESTful API** for WSO2 **API Manager** - Publisher. It is written with [swagger 2](http://swagger.io/).
*
* OpenAPI spec version: 0.10.0
* Contact: architecture@wso2.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.wso2.carbon.apimgt.integration.client.publisher.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.Objects;
/**
* ErrorListItem
*/
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-24T00:03:49.624+05:30")
public class ErrorListItem {
@JsonProperty("code")
private String code = null;
@JsonProperty("message")
private String message = null;
public ErrorListItem code(String code) {
this.code = code;
return this;
}
/**
* Get code
* @return code
**/
@ApiModelProperty(example = "null", required = true, value = "")
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public ErrorListItem message(String message) {
this.message = message;
return this;
}
/**
* Description about individual errors occurred
* @return message
**/
@ApiModelProperty(example = "null", required = true, value = "Description about individual errors occurred ")
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ErrorListItem errorListItem = (ErrorListItem) o;
return Objects.equals(this.code, errorListItem.code) &&
Objects.equals(this.message, errorListItem.message);
}
@Override
public int hashCode() {
return Objects.hash(code, message);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ErrorListItem {\n");
sb.append(" code: ").append(toIndentedString(code)).append("\n");
sb.append(" message: ").append(toIndentedString(message)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

@ -1,122 +0,0 @@
/**
* WSO2 API Manager - Publisher API
* This document specifies a **RESTful API** for WSO2 **API Manager** - Publisher. It is written with [swagger 2](http://swagger.io/).
*
* OpenAPI spec version: 0.10.0
* Contact: architecture@wso2.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.wso2.carbon.apimgt.integration.client.publisher.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.Objects;
/**
* FileInfo
*/
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-24T00:03:49.624+05:30")
public class FileInfo {
@JsonProperty("relativePath")
private String relativePath = null;
@JsonProperty("mediaType")
private String mediaType = null;
public FileInfo relativePath(String relativePath) {
this.relativePath = relativePath;
return this;
}
/**
* relative location of the file (excluding the base context and host of the Publisher API)
* @return relativePath
**/
@ApiModelProperty(example = "apis/01234567-0123-0123-0123-012345678901/thumbnail", value = "relative location of the file (excluding the base context and host of the Publisher API)")
public String getRelativePath() {
return relativePath;
}
public void setRelativePath(String relativePath) {
this.relativePath = relativePath;
}
public FileInfo mediaType(String mediaType) {
this.mediaType = mediaType;
return this;
}
/**
* media-type of the file
* @return mediaType
**/
@ApiModelProperty(example = "image/jpeg", value = "media-type of the file")
public String getMediaType() {
return mediaType;
}
public void setMediaType(String mediaType) {
this.mediaType = mediaType;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
FileInfo fileInfo = (FileInfo) o;
return Objects.equals(this.relativePath, fileInfo.relativePath) &&
Objects.equals(this.mediaType, fileInfo.mediaType);
}
@Override
public int hashCode() {
return Objects.hash(relativePath, mediaType);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class FileInfo {\n");
sb.append(" relativePath: ").append(toIndentedString(relativePath)).append("\n");
sb.append(" mediaType: ").append(toIndentedString(mediaType)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

@ -1,145 +0,0 @@
/**
* WSO2 API Manager - Publisher API
* This document specifies a **RESTful API** for WSO2 **API Manager** - Publisher. It is written with [swagger 2](http://swagger.io/).
*
* OpenAPI spec version: 0.10.0
* Contact: architecture@wso2.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.wso2.carbon.apimgt.integration.client.publisher.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.Objects;
/**
* Sequence
*/
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-24T00:03:49.624+05:30")
public class Sequence {
@JsonProperty("name")
private String name = null;
@JsonProperty("config")
private String config = null;
@JsonProperty("type")
private String type = null;
public Sequence name(String name) {
this.name = name;
return this;
}
/**
* Get name
* @return name
**/
@ApiModelProperty(example = "log_in_message", required = true, value = "")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Sequence config(String config) {
this.config = config;
return this;
}
/**
* Get config
* @return config
**/
@ApiModelProperty(example = "", value = "")
public String getConfig() {
return config;
}
public void setConfig(String config) {
this.config = config;
}
public Sequence type(String type) {
this.type = type;
return this;
}
/**
* Get type
* @return type
**/
@ApiModelProperty(example = "in", value = "")
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Sequence sequence = (Sequence) o;
return Objects.equals(this.name, sequence.name) &&
Objects.equals(this.config, sequence.config) &&
Objects.equals(this.type, sequence.type);
}
@Override
public int hashCode() {
return Objects.hash(name, config, type);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Sequence {\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" config: ").append(toIndentedString(config)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

@ -1,228 +0,0 @@
/**
* WSO2 API Manager - Publisher API
* This document specifies a **RESTful API** for WSO2 **API Manager** - Publisher. It is written with [swagger 2](http://swagger.io/).
*
* OpenAPI spec version: 0.10.0
* Contact: architecture@wso2.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.wso2.carbon.apimgt.integration.client.publisher.model;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.Objects;
/**
* Subscription
*/
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-24T00:03:49.624+05:30")
public class Subscription {
@JsonProperty("subscriptionId")
private String subscriptionId = null;
@JsonProperty("applicationId")
private String applicationId = null;
@JsonProperty("apiIdentifier")
private String apiIdentifier = null;
@JsonProperty("tier")
private String tier = null;
/**
* Gets or Sets status
*/
public enum StatusEnum {
BLOCKED("BLOCKED"),
PROD_ONLY_BLOCKED("PROD_ONLY_BLOCKED"),
UNBLOCKED("UNBLOCKED"),
ON_HOLD("ON_HOLD"),
REJECTED("REJECTED");
private String value;
StatusEnum(String value) {
this.value = value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static StatusEnum fromValue(String text) {
for (StatusEnum b : StatusEnum.values()) {
if (String.valueOf(b.value).equals(text)) {
return b;
}
}
return null;
}
}
@JsonProperty("status")
private StatusEnum status = null;
public Subscription subscriptionId(String subscriptionId) {
this.subscriptionId = subscriptionId;
return this;
}
/**
* Get subscriptionId
* @return subscriptionId
**/
@ApiModelProperty(example = "01234567-0123-0123-0123-012345678901", value = "")
public String getSubscriptionId() {
return subscriptionId;
}
public void setSubscriptionId(String subscriptionId) {
this.subscriptionId = subscriptionId;
}
public Subscription applicationId(String applicationId) {
this.applicationId = applicationId;
return this;
}
/**
* Get applicationId
* @return applicationId
**/
@ApiModelProperty(example = "01234567-0123-0123-0123-012345678901", required = true, value = "")
public String getApplicationId() {
return applicationId;
}
public void setApplicationId(String applicationId) {
this.applicationId = applicationId;
}
public Subscription apiIdentifier(String apiIdentifier) {
this.apiIdentifier = apiIdentifier;
return this;
}
/**
* Get apiIdentifier
* @return apiIdentifier
**/
@ApiModelProperty(example = "01234567-0123-0123-0123-012345678901", required = true, value = "")
public String getApiIdentifier() {
return apiIdentifier;
}
public void setApiIdentifier(String apiIdentifier) {
this.apiIdentifier = apiIdentifier;
}
public Subscription tier(String tier) {
this.tier = tier;
return this;
}
/**
* Get tier
* @return tier
**/
@ApiModelProperty(example = "Unlimited", required = true, value = "")
public String getTier() {
return tier;
}
public void setTier(String tier) {
this.tier = tier;
}
public Subscription status(StatusEnum status) {
this.status = status;
return this;
}
/**
* Get status
* @return status
**/
@ApiModelProperty(example = "UNBLOCKED", value = "")
public StatusEnum getStatus() {
return status;
}
public void setStatus(StatusEnum status) {
this.status = status;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Subscription subscription = (Subscription) o;
return Objects.equals(this.subscriptionId, subscription.subscriptionId) &&
Objects.equals(this.applicationId, subscription.applicationId) &&
Objects.equals(this.apiIdentifier, subscription.apiIdentifier) &&
Objects.equals(this.tier, subscription.tier) &&
Objects.equals(this.status, subscription.status);
}
@Override
public int hashCode() {
return Objects.hash(subscriptionId, applicationId, apiIdentifier, tier, status);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Subscription {\n");
sb.append(" subscriptionId: ").append(toIndentedString(subscriptionId)).append("\n");
sb.append(" applicationId: ").append(toIndentedString(applicationId)).append("\n");
sb.append(" apiIdentifier: ").append(toIndentedString(apiIdentifier)).append("\n");
sb.append(" tier: ").append(toIndentedString(tier)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

@ -1,175 +0,0 @@
/**
* WSO2 API Manager - Publisher API
* This document specifies a **RESTful API** for WSO2 **API Manager** - Publisher. It is written with [swagger 2](http://swagger.io/).
*
* OpenAPI spec version: 0.10.0
* Contact: architecture@wso2.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.wso2.carbon.apimgt.integration.client.publisher.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
/**
* SubscriptionList
*/
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-24T00:03:49.624+05:30")
public class SubscriptionList {
@JsonProperty("count")
private Integer count = null;
@JsonProperty("next")
private String next = null;
@JsonProperty("previous")
private String previous = null;
@JsonProperty("list")
private List<Subscription> list = new ArrayList<Subscription>();
public SubscriptionList count(Integer count) {
this.count = count;
return this;
}
/**
* Number of Subscriptions returned.
* @return count
**/
@ApiModelProperty(example = "1", value = "Number of Subscriptions returned. ")
public Integer getCount() {
return count;
}
public void setCount(Integer count) {
this.count = count;
}
public SubscriptionList next(String next) {
this.next = next;
return this;
}
/**
* Link to the next subset of resources qualified. Empty if no more resources are to be returned.
* @return next
**/
@ApiModelProperty(example = "/subscriptions?limit&#x3D;1&amp;offset&#x3D;2&amp;apiId&#x3D;01234567-0123-0123-0123-012345678901&amp;groupId&#x3D;", value = "Link to the next subset of resources qualified. Empty if no more resources are to be returned. ")
public String getNext() {
return next;
}
public void setNext(String next) {
this.next = next;
}
public SubscriptionList previous(String previous) {
this.previous = previous;
return this;
}
/**
* Link to the previous subset of resources qualified. Empty if current subset is the first subset returned.
* @return previous
**/
@ApiModelProperty(example = "/subscriptions?limit&#x3D;1&amp;offset&#x3D;0&amp;apiId&#x3D;01234567-0123-0123-0123-012345678901&amp;groupId&#x3D;", value = "Link to the previous subset of resources qualified. Empty if current subset is the first subset returned. ")
public String getPrevious() {
return previous;
}
public void setPrevious(String previous) {
this.previous = previous;
}
public SubscriptionList list(List<Subscription> list) {
this.list = list;
return this;
}
public SubscriptionList addListItem(Subscription listItem) {
this.list.add(listItem);
return this;
}
/**
* Get list
* @return list
**/
@ApiModelProperty(example = "null", value = "")
public List<Subscription> getList() {
return list;
}
public void setList(List<Subscription> list) {
this.list = list;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
SubscriptionList subscriptionList = (SubscriptionList) o;
return Objects.equals(this.count, subscriptionList.count) &&
Objects.equals(this.next, subscriptionList.next) &&
Objects.equals(this.previous, subscriptionList.previous) &&
Objects.equals(this.list, subscriptionList.list);
}
@Override
public int hashCode() {
return Objects.hash(count, next, previous, list);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class SubscriptionList {\n");
sb.append(" count: ").append(toIndentedString(count)).append("\n");
sb.append(" next: ").append(toIndentedString(next)).append("\n");
sb.append(" previous: ").append(toIndentedString(previous)).append("\n");
sb.append(" list: ").append(toIndentedString(list)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

@ -1,353 +0,0 @@
/**
* WSO2 API Manager - Publisher API
* This document specifies a **RESTful API** for WSO2 **API Manager** - Publisher. It is written with [swagger 2](http://swagger.io/).
*
* OpenAPI spec version: 0.10.0
* Contact: architecture@wso2.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.wso2.carbon.apimgt.integration.client.publisher.model;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
/**
* Tier
*/
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-24T00:03:49.624+05:30")
public class Tier {
@JsonProperty("name")
private String name = null;
@JsonProperty("description")
private String description = null;
/**
* Gets or Sets tierLevel
*/
public enum TierLevelEnum {
API("api"),
APPLICATION("application"),
RESOURCE("resource");
private String value;
TierLevelEnum(String value) {
this.value = value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static TierLevelEnum fromValue(String text) {
for (TierLevelEnum b : TierLevelEnum.values()) {
if (String.valueOf(b.value).equals(text)) {
return b;
}
}
return null;
}
}
@JsonProperty("tierLevel")
private TierLevelEnum tierLevel = null;
@JsonProperty("attributes")
private Map<String, String> attributes = new HashMap<String, String>();
@JsonProperty("requestCount")
private Long requestCount = null;
@JsonProperty("unitTime")
private Long unitTime = null;
@JsonProperty("timeUnit")
private String timeUnit = null;
/**
* This attribute declares whether this tier is available under commercial or free
*/
public enum TierPlanEnum {
FREE("FREE"),
COMMERCIAL("COMMERCIAL");
private String value;
TierPlanEnum(String value) {
this.value = value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static TierPlanEnum fromValue(String text) {
for (TierPlanEnum b : TierPlanEnum.values()) {
if (String.valueOf(b.value).equals(text)) {
return b;
}
}
return null;
}
}
@JsonProperty("tierPlan")
private TierPlanEnum tierPlan = null;
@JsonProperty("stopOnQuotaReach")
private Boolean stopOnQuotaReach = null;
public Tier name(String name) {
this.name = name;
return this;
}
/**
* Get name
* @return name
**/
@ApiModelProperty(example = "Platinum", required = true, value = "")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Tier description(String description) {
this.description = description;
return this;
}
/**
* Get description
* @return description
**/
@ApiModelProperty(example = "Allows 50 request(s) per minute.", value = "")
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public Tier tierLevel(TierLevelEnum tierLevel) {
this.tierLevel = tierLevel;
return this;
}
/**
* Get tierLevel
* @return tierLevel
**/
@ApiModelProperty(example = "api", value = "")
public TierLevelEnum getTierLevel() {
return tierLevel;
}
public void setTierLevel(TierLevelEnum tierLevel) {
this.tierLevel = tierLevel;
}
public Tier attributes(Map<String, String> attributes) {
this.attributes = attributes;
return this;
}
public Tier putAttributesItem(String key, String attributesItem) {
this.attributes.put(key, attributesItem);
return this;
}
/**
* Custom attributes added to the tier policy
* @return attributes
**/
@ApiModelProperty(example = "null", value = "Custom attributes added to the tier policy ")
public Map<String, String> getAttributes() {
return attributes;
}
public void setAttributes(Map<String, String> attributes) {
this.attributes = attributes;
}
public Tier requestCount(Long requestCount) {
this.requestCount = requestCount;
return this;
}
/**
* Maximum number of requests which can be sent within a provided unit time
* @return requestCount
**/
@ApiModelProperty(example = "50", required = true, value = "Maximum number of requests which can be sent within a provided unit time ")
public Long getRequestCount() {
return requestCount;
}
public void setRequestCount(Long requestCount) {
this.requestCount = requestCount;
}
public Tier unitTime(Long unitTime) {
this.unitTime = unitTime;
return this;
}
/**
* Get unitTime
* @return unitTime
**/
@ApiModelProperty(example = "60000", required = true, value = "")
public Long getUnitTime() {
return unitTime;
}
public void setUnitTime(Long unitTime) {
this.unitTime = unitTime;
}
public Tier timeUnit(String timeUnit) {
this.timeUnit = timeUnit;
return this;
}
/**
* Get timeUnit
* @return timeUnit
**/
@ApiModelProperty(example = "min", value = "")
public String getTimeUnit() {
return timeUnit;
}
public void setTimeUnit(String timeUnit) {
this.timeUnit = timeUnit;
}
public Tier tierPlan(TierPlanEnum tierPlan) {
this.tierPlan = tierPlan;
return this;
}
/**
* This attribute declares whether this tier is available under commercial or free
* @return tierPlan
**/
@ApiModelProperty(example = "FREE", required = true, value = "This attribute declares whether this tier is available under commercial or free ")
public TierPlanEnum getTierPlan() {
return tierPlan;
}
public void setTierPlan(TierPlanEnum tierPlan) {
this.tierPlan = tierPlan;
}
public Tier stopOnQuotaReach(Boolean stopOnQuotaReach) {
this.stopOnQuotaReach = stopOnQuotaReach;
return this;
}
/**
* By making this attribute to false, you are capabale of sending requests even if the request count exceeded within a unit time
* @return stopOnQuotaReach
**/
@ApiModelProperty(example = "true", required = true, value = "By making this attribute to false, you are capabale of sending requests even if the request count exceeded within a unit time ")
public Boolean getStopOnQuotaReach() {
return stopOnQuotaReach;
}
public void setStopOnQuotaReach(Boolean stopOnQuotaReach) {
this.stopOnQuotaReach = stopOnQuotaReach;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Tier tier = (Tier) o;
return Objects.equals(this.name, tier.name) &&
Objects.equals(this.description, tier.description) &&
Objects.equals(this.tierLevel, tier.tierLevel) &&
Objects.equals(this.attributes, tier.attributes) &&
Objects.equals(this.requestCount, tier.requestCount) &&
Objects.equals(this.unitTime, tier.unitTime) &&
Objects.equals(this.timeUnit, tier.timeUnit) &&
Objects.equals(this.tierPlan, tier.tierPlan) &&
Objects.equals(this.stopOnQuotaReach, tier.stopOnQuotaReach);
}
@Override
public int hashCode() {
return Objects.hash(name, description, tierLevel, attributes, requestCount, unitTime, timeUnit, tierPlan, stopOnQuotaReach);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Tier {\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" tierLevel: ").append(toIndentedString(tierLevel)).append("\n");
sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n");
sb.append(" requestCount: ").append(toIndentedString(requestCount)).append("\n");
sb.append(" unitTime: ").append(toIndentedString(unitTime)).append("\n");
sb.append(" timeUnit: ").append(toIndentedString(timeUnit)).append("\n");
sb.append(" tierPlan: ").append(toIndentedString(tierPlan)).append("\n");
sb.append(" stopOnQuotaReach: ").append(toIndentedString(stopOnQuotaReach)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

@ -1,175 +0,0 @@
/**
* WSO2 API Manager - Publisher API
* This document specifies a **RESTful API** for WSO2 **API Manager** - Publisher. It is written with [swagger 2](http://swagger.io/).
*
* OpenAPI spec version: 0.10.0
* Contact: architecture@wso2.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.wso2.carbon.apimgt.integration.client.publisher.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
/**
* TierList
*/
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-24T00:03:49.624+05:30")
public class TierList {
@JsonProperty("count")
private Integer count = null;
@JsonProperty("next")
private String next = null;
@JsonProperty("previous")
private String previous = null;
@JsonProperty("list")
private List<Tier> list = new ArrayList<Tier>();
public TierList count(Integer count) {
this.count = count;
return this;
}
/**
* Number of Tiers returned.
* @return count
**/
@ApiModelProperty(example = "1", value = "Number of Tiers returned. ")
public Integer getCount() {
return count;
}
public void setCount(Integer count) {
this.count = count;
}
public TierList next(String next) {
this.next = next;
return this;
}
/**
* Link to the next subset of resources qualified. Empty if no more resources are to be returned.
* @return next
**/
@ApiModelProperty(example = "/tiers/api?limit&#x3D;1&amp;offset&#x3D;2", value = "Link to the next subset of resources qualified. Empty if no more resources are to be returned. ")
public String getNext() {
return next;
}
public void setNext(String next) {
this.next = next;
}
public TierList previous(String previous) {
this.previous = previous;
return this;
}
/**
* Link to the previous subset of resources qualified. Empty if current subset is the first subset returned.
* @return previous
**/
@ApiModelProperty(example = "/tiers/api?limit&#x3D;1&amp;offset&#x3D;0", value = "Link to the previous subset of resources qualified. Empty if current subset is the first subset returned. ")
public String getPrevious() {
return previous;
}
public void setPrevious(String previous) {
this.previous = previous;
}
public TierList list(List<Tier> list) {
this.list = list;
return this;
}
public TierList addListItem(Tier listItem) {
this.list.add(listItem);
return this;
}
/**
* Get list
* @return list
**/
@ApiModelProperty(example = "null", value = "")
public List<Tier> getList() {
return list;
}
public void setList(List<Tier> list) {
this.list = list;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
TierList tierList = (TierList) o;
return Objects.equals(this.count, tierList.count) &&
Objects.equals(this.next, tierList.next) &&
Objects.equals(this.previous, tierList.previous) &&
Objects.equals(this.list, tierList.list);
}
@Override
public int hashCode() {
return Objects.hash(count, next, previous, list);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class TierList {\n");
sb.append(" count: ").append(toIndentedString(count)).append("\n");
sb.append(" next: ").append(toIndentedString(next)).append("\n");
sb.append(" previous: ").append(toIndentedString(previous)).append("\n");
sb.append(" list: ").append(toIndentedString(list)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

@ -1,160 +0,0 @@
/**
* WSO2 API Manager - Publisher API
* This document specifies a **RESTful API** for WSO2 **API Manager** - Publisher. It is written with [swagger 2](http://swagger.io/).
*
* OpenAPI spec version: 0.10.0
* Contact: architecture@wso2.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.wso2.carbon.apimgt.integration.client.publisher.model;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
/**
* TierPermission
*/
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-24T00:03:49.624+05:30")
public class TierPermission {
/**
* Gets or Sets permissionType
*/
public enum PermissionTypeEnum {
ALLOW("allow"),
DENY("deny");
private String value;
PermissionTypeEnum(String value) {
this.value = value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static PermissionTypeEnum fromValue(String text) {
for (PermissionTypeEnum b : PermissionTypeEnum.values()) {
if (String.valueOf(b.value).equals(text)) {
return b;
}
}
return null;
}
}
@JsonProperty("permissionType")
private PermissionTypeEnum permissionType = null;
@JsonProperty("roles")
private List<String> roles = new ArrayList<String>();
public TierPermission permissionType(PermissionTypeEnum permissionType) {
this.permissionType = permissionType;
return this;
}
/**
* Get permissionType
* @return permissionType
**/
@ApiModelProperty(example = "deny", required = true, value = "")
public PermissionTypeEnum getPermissionType() {
return permissionType;
}
public void setPermissionType(PermissionTypeEnum permissionType) {
this.permissionType = permissionType;
}
public TierPermission roles(List<String> roles) {
this.roles = roles;
return this;
}
public TierPermission addRolesItem(String rolesItem) {
this.roles.add(rolesItem);
return this;
}
/**
* Get roles
* @return roles
**/
@ApiModelProperty(example = "null", required = true, value = "")
public List<String> getRoles() {
return roles;
}
public void setRoles(List<String> roles) {
this.roles = roles;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
TierPermission tierPermission = (TierPermission) o;
return Objects.equals(this.permissionType, tierPermission.permissionType) &&
Objects.equals(this.roles, tierPermission.roles);
}
@Override
public int hashCode() {
return Objects.hash(permissionType, roles);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class TierPermission {\n");
sb.append(" permissionType: ").append(toIndentedString(permissionType)).append("\n");
sb.append(" roles: ").append(toIndentedString(roles)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

@ -18,12 +18,14 @@
package org.wso2.carbon.apimgt.integration.client.store;
import feign.Feign;
import feign.Logger;
import feign.RequestInterceptor;
import feign.gson.GsonDecoder;
import feign.gson.GsonEncoder;
import feign.slf4j.Slf4jLogger;
import org.apache.commons.logging.LogFactory;
import org.wso2.carbon.apimgt.integration.client.configs.APIMConfigReader;
import org.wso2.carbon.apimgt.integration.client.store.api.*;
import org.wso2.carbon.apimgt.integration.generated.client.store.api.*;
import org.wso2.carbon.core.util.Utils;
/**
@ -32,40 +34,44 @@ import org.wso2.carbon.core.util.Utils;
public class StoreClient {
private static final org.apache.commons.logging.Log log = LogFactory.getLog(StoreClient.class);
private ApisAPIApi apis = null;
private APIindividualApi individualApi = null;
private APICollectionApi apis = null;
private APIIndividualApi individualApi = null;
private ApplicationCollectionApi applications = null;
private ApplicationindividualApi individualApplication = null;
private ApplicationIndividualApi individualApplication = null;
private SubscriptionCollectionApi subscriptions = null;
private SubscriptionindividualApi individualSubscription = null;
private TierindividualApi individualTier = null;
private SubscriptionIndividualApi individualSubscription = null;
private SubscriptionMultitpleApi subscriptionMultitpleApi = null;
private ThrottlingTierIndividualApi individualTier = null;
private TagCollectionApi tags = null;
private TierCollectionApi tiers = null;
private ThrottlingTierCollectionApi tiers = null;
public StoreClient(RequestInterceptor requestInterceptor) {
Feign.Builder builder = Feign.builder().requestInterceptor(requestInterceptor)
.encoder(new GsonEncoder()).decoder(new GsonDecoder());
Feign.Builder builder = Feign.builder().client(
org.wso2.carbon.apimgt.integration.client.util.Utils.getSSLClient()).logger(new Slf4jLogger())
.logLevel(Logger.Level.FULL)
.requestInterceptor(requestInterceptor).encoder(new GsonEncoder()).decoder(new GsonDecoder());
String basePath = Utils.replaceSystemProperty(APIMConfigReader.getInstance().getConfig().getStoreEndpoint());
apis = builder.target(ApisAPIApi.class, basePath);
individualApi = builder.target(APIindividualApi.class, basePath);
apis = builder.target(APICollectionApi.class, basePath);
individualApi = builder.target(APIIndividualApi.class, basePath);
applications = builder.target(ApplicationCollectionApi.class, basePath);
individualApplication = builder.target(ApplicationindividualApi.class, basePath);
individualApplication = builder.target(ApplicationIndividualApi.class, basePath);
subscriptions = builder.target(SubscriptionCollectionApi.class, basePath);
individualSubscription = builder.target(SubscriptionindividualApi.class, basePath);
individualSubscription = builder.target(SubscriptionIndividualApi.class, basePath);
subscriptionMultitpleApi = builder.target(SubscriptionMultitpleApi.class, basePath);
tags = builder.target(TagCollectionApi.class, basePath);
tiers = builder.target(TierCollectionApi.class, basePath);
individualTier = builder.target(TierindividualApi.class, basePath);
tiers = builder.target(ThrottlingTierCollectionApi.class, basePath);
individualTier = builder.target(ThrottlingTierIndividualApi.class, basePath);
}
public ApisAPIApi getApis() {
public APICollectionApi getApis() {
return apis;
}
public APIindividualApi getIndividualApi() {
public APIIndividualApi getIndividualApi() {
return individualApi;
}
@ -73,7 +79,7 @@ public class StoreClient {
return applications;
}
public ApplicationindividualApi getIndividualApplication() {
public ApplicationIndividualApi getIndividualApplication() {
return individualApplication;
}
@ -81,11 +87,11 @@ public class StoreClient {
return subscriptions;
}
public SubscriptionindividualApi getIndividualSubscription() {
public SubscriptionIndividualApi getIndividualSubscription() {
return individualSubscription;
}
public TierindividualApi getIndividualTier() {
public ThrottlingTierIndividualApi getIndividualTier() {
return individualTier;
}
@ -93,7 +99,11 @@ public class StoreClient {
return tags;
}
public TierCollectionApi getTiers() {
public ThrottlingTierCollectionApi getTiers() {
return tiers;
}
public SubscriptionMultitpleApi getSubscriptionMultitpleApi() {
return subscriptionMultitpleApi;
}
}

@ -1,187 +0,0 @@
/*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. 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 org.wso2.carbon.apimgt.integration.client.store.api;
import feign.Headers;
import feign.Param;
import feign.RequestLine;
import org.wso2.carbon.apimgt.integration.client.store.model.API;
import org.wso2.carbon.apimgt.integration.client.store.model.Document;
import org.wso2.carbon.apimgt.integration.client.store.model.DocumentList;
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-24T00:03:54.991+05:30")
public interface APIindividualApi {
/**
* Downloads a FILE type document/get the inline content or source url of a certain document.
* Downloads a FILE type document/get the inline content or source url of a certain document.
* @param apiId **API ID** consisting of the **UUID** of the API. The combination of the provider of the API, name of the API and the version is also accepted as a valid API ID. Should be formatted as **provider-name-version**. (required)
* @param documentId **Document Identifier** (required)
* @param xWSO2Tenant For cross-tenant invocations, this is used to specify the tenant domain, where the resource need to be retirieved from. (optional)
* @param accept Media types acceptable for the response. Default is JSON. (optional, default to JSON)
* @param ifNoneMatch Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resourec. (optional)
* @param ifModifiedSince Validator for conditional requests; based on Last Modified header of the formerly retrieved variant of the resource. (optional)
* @return void
*/
@RequestLine("GET /apis/{apiId}/documents/{documentId}/content")
@Headers({
"Content-type: application/json",
"Accept: application/json",
"X-WSO2-Tenant: {xWSO2Tenant}",
"Accept: {accept}",
"If-None-Match: {ifNoneMatch}",
"If-Modified-Since: {ifModifiedSince}"
})
void apisApiIdDocumentsDocumentIdContentGet(@Param("apiId") String apiId, @Param("documentId") String documentId,
@Param("xWSO2Tenant") String xWSO2Tenant, @Param("accept") String accept,
@Param("ifNoneMatch") String ifNoneMatch,
@Param("ifModifiedSince") String ifModifiedSince);
/**
* Get a particular document associated with an API.
* Get a particular document associated with an API.
* @param apiId **API ID** consisting of the **UUID** of the API. The combination of the provider of the API, name of the API and the version is also accepted as a valid API ID. Should be formatted as **provider-name-version**. (required)
* @param documentId **Document Identifier** (required)
* @param xWSO2Tenant For cross-tenant invocations, this is used to specify the tenant domain, where the resource need to be retirieved from. (optional)
* @param accept Media types acceptable for the response. Default is JSON. (optional, default to JSON)
* @param ifNoneMatch Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resourec. (optional)
* @param ifModifiedSince Validator for conditional requests; based on Last Modified header of the formerly retrieved variant of the resource. (optional)
* @return Document
*/
@RequestLine("GET /apis/{apiId}/documents/{documentId}")
@Headers({
"Content-type: application/json",
"Accept: application/json",
"X-WSO2-Tenant: {xWSO2Tenant}",
"Accept: {accept}",
"If-None-Match: {ifNoneMatch}",
"If-Modified-Since: {ifModifiedSince}"
})
Document apisApiIdDocumentsDocumentIdGet(@Param("apiId") String apiId, @Param("documentId") String documentId,
@Param("xWSO2Tenant") String xWSO2Tenant, @Param("accept") String accept,
@Param("ifNoneMatch") String ifNoneMatch,
@Param("ifModifiedSince") String ifModifiedSince);
/**
* Get a list of documents belonging to an API.
* Get a list of documents belonging to an API.
* @param apiId **API ID** consisting of the **UUID** of the API. The combination of the provider of the API, name of the API and the version is also accepted as a valid API ID. Should be formatted as **provider-name-version**. (required)
* @param limit Maximum size of resource array to return. (optional, default to 25)
* @param offset Starting point within the complete list of items qualified. (optional, default to 0)
* @param xWSO2Tenant For cross-tenant invocations, this is used to specify the tenant domain, where the resource need to be retirieved from. (optional)
* @param accept Media types acceptable for the response. Default is JSON. (optional, default to JSON)
* @param ifNoneMatch Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resourec. (optional)
* @return DocumentList
*/
@RequestLine("GET /apis/{apiId}/documents?limit={limit}&offset={offset}")
@Headers({
"Content-type: application/json",
"Accept: application/json",
"X-WSO2-Tenant: {xWSO2Tenant}",
"Accept: {accept}",
"If-None-Match: {ifNoneMatch}"
})
DocumentList apisApiIdDocumentsGet(@Param("apiId") String apiId, @Param("limit") Integer limit,
@Param("offset") Integer offset, @Param("xWSO2Tenant") String xWSO2Tenant,
@Param("accept") String accept, @Param("ifNoneMatch") String ifNoneMatch);
/**
* Get Details of API
* Get details of an API
* @param apiId **API ID** consisting of the **UUID** of the API. The combination of the provider of the API, name of the API and the version is also accepted as a valid API ID. Should be formatted as **provider-name-version**. (required)
* @param accept Media types acceptable for the response. Default is JSON. (optional, default to JSON)
* @param ifNoneMatch Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resourec. (optional)
* @param ifModifiedSince Validator for conditional requests; based on Last Modified header of the formerly retrieved variant of the resource. (optional)
* @param xWSO2Tenant For cross-tenant invocations, this is used to specify the tenant domain, where the resource need to be retirieved from. (optional)
* @return API
*/
@RequestLine("GET /apis/{apiId}")
@Headers({
"Content-type: application/json",
"Accept: application/json",
"Accept: {accept}",
"If-None-Match: {ifNoneMatch}",
"If-Modified-Since: {ifModifiedSince}",
"X-WSO2-Tenant: {xWSO2Tenant}"
})
API apisApiIdGet(@Param("apiId") String apiId, @Param("accept") String accept,
@Param("ifNoneMatch") String ifNoneMatch, @Param("ifModifiedSince") String ifModifiedSince,
@Param("xWSO2Tenant") String xWSO2Tenant);
/**
* Get the swagger of an API
* Get the swagger of an API
* @param apiId **API ID** consisting of the **UUID** of the API. The combination of the provider of the API, name of the API and the version is also accepted as a valid API ID. Should be formatted as **provider-name-version**. (required)
* @param accept Media types acceptable for the response. Default is JSON. (optional, default to JSON)
* @param ifNoneMatch Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resourec. (optional)
* @param ifModifiedSince Validator for conditional requests; based on Last Modified header of the formerly retrieved variant of the resource. (optional)
* @param xWSO2Tenant For cross-tenant invocations, this is used to specify the tenant domain, where the resource need to be retirieved from. (optional)
* @return void
*/
@RequestLine("GET /apis/{apiId}/swagger")
@Headers({
"Content-type: application/json",
"Accept: application/json",
"Accept: {accept}",
"If-None-Match: {ifNoneMatch}",
"If-Modified-Since: {ifModifiedSince}",
"X-WSO2-Tenant: {xWSO2Tenant}"
})
void apisApiIdSwaggerGet(@Param("apiId") String apiId, @Param("accept") String accept,
@Param("ifNoneMatch") String ifNoneMatch, @Param("ifModifiedSince") String ifModifiedSince,
@Param("xWSO2Tenant") String xWSO2Tenant);
/**
* Get the thumbnail image
* Downloads a thumbnail image of an API
* @param apiId **API ID** consisting of the **UUID** of the API. The combination of the provider of the API, name of the API and the version is also accepted as a valid API ID. Should be formatted as **provider-name-version**. (required)
* @param accept Media types acceptable for the response. Default is JSON. (optional, default to JSON)
* @param ifNoneMatch Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resourec. (optional)
* @param ifModifiedSince Validator for conditional requests; based on Last Modified header of the formerly
* retrieved variant of the resource. (optional)
* @return void
*/
@RequestLine("GET /apis/{apiId}/thumbnail")
@Headers({
"Content-type: application/json",
"Accept: application/json",
"Accept: {accept}",
"If-None-Match: {ifNoneMatch}",
"If-Modified-Since: {ifModifiedSince}"
})
void apisApiIdThumbnailGet(@Param("apiId") String apiId, @Param("accept") String accept,
@Param("ifNoneMatch") String ifNoneMatch, @Param("ifModifiedSince") String ifModifiedSince);
}

@ -1,54 +0,0 @@
/*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. 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 org.wso2.carbon.apimgt.integration.client.store.api;
import feign.Headers;
import feign.Param;
import feign.RequestLine;
import org.wso2.carbon.apimgt.integration.client.store.model.APIList;
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-24T00:03:54.991+05:30")
public interface ApisAPIApi {
/**
* Retrieving APIs
* Get a list of available APIs qualifying under a given search condition.
* @param limit Maximum size of resource array to return. (optional, default to 25)
* @param offset Starting point within the complete list of items qualified. (optional, default to 0)
* @param xWSO2Tenant For cross-tenant invocations, this is used to specify the tenant domain, where the resource need to be retirieved from. (optional)
* @param query **Search condition**. You can search in attributes by using an **\&quot;attribute:\&quot;** modifier. Eg. \&quot;provider:wso2\&quot; will match an API if the provider of the API is exactly \&quot;wso2\&quot;. Additionally you can use wildcards. Eg. \&quot;provider:wso2\\*\&quot; will match an API if the provider of the API starts with \&quot;wso2\&quot;. Supported attribute modifiers are [**version, context, status, description, subcontext, doc, provider, tag**] If no advanced attribute modifier has been specified, search will match the given query string against API Name. (optional)
* @param accept Media types acceptable for the response. Default is JSON. (optional, default to JSON)
* @param ifNoneMatch Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resourec. (optional)
* @return APIList
*/
@RequestLine("GET /apis?limit={limit}&offset={offset}&query={query}")
@Headers({
"Content-type: application/json",
"Accept: application/json",
"X-WSO2-Tenant: {xWSO2Tenant}",
"Accept: {accept}",
"If-None-Match: {ifNoneMatch}"
})
APIList apisGet(@Param("limit") Integer limit, @Param("offset") Integer offset,
@Param("xWSO2Tenant") String xWSO2Tenant, @Param("query") String query,
@Param("accept") String accept, @Param("ifNoneMatch") String ifNoneMatch);
}

@ -1,52 +0,0 @@
/*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. 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 org.wso2.carbon.apimgt.integration.client.store.api;
import feign.Headers;
import feign.Param;
import feign.RequestLine;
import org.wso2.carbon.apimgt.integration.client.store.model.ApplicationList;
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-24T00:03:54.991+05:30")
public interface ApplicationCollectionApi {
/**
* Get a list of applications
* Get a list of applications
* @param groupId Application Group Id (optional)
* @param query **Search condition**. You can search for an application by specifying the name as \&quot;query\&quot; attribute. Eg. \&quot;app1\&quot; will match an application if the name is exactly \&quot;app1\&quot;. Currently this does not support wildcards. Given name must exactly match the application name. (optional)
* @param limit Maximum size of resource array to return. (optional, default to 25)
* @param offset Starting point within the complete list of items qualified. (optional, default to 0)
* @param accept Media types acceptable for the response. Default is JSON. (optional, default to JSON)
* @param ifNoneMatch Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resourec. (optional)
* @return ApplicationList
*/
@RequestLine("GET /applications?groupId={groupId}&query={query}&limit={limit}&offset={offset}")
@Headers({
"Content-type: application/json",
"Accept: application/json",
"Accept: {accept}",
"If-None-Match: {ifNoneMatch}"
})
ApplicationList applicationsGet(@Param("groupId") String groupId, @Param("query") String query,
@Param("limit") Integer limit, @Param("offset") Integer offset,
@Param("accept") String accept, @Param("ifNoneMatch") String ifNoneMatch);
}

@ -1,138 +0,0 @@
/*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. 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 org.wso2.carbon.apimgt.integration.client.store.api;
import feign.Headers;
import feign.Param;
import feign.RequestLine;
import org.wso2.carbon.apimgt.integration.client.store.model.Application;
import org.wso2.carbon.apimgt.integration.client.store.model.ApplicationKey;
import org.wso2.carbon.apimgt.integration.client.store.model.ApplicationKeyGenerateRequest;
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-24T00:03:54.991+05:30")
public interface ApplicationindividualApi {
/**
* Remove an application
* Remove an application
* @param applicationId **Application Identifier** consisting of the UUID of the Application. (required)
* @param ifMatch Validator for conditional requests; based on ETag. (optional)
* @param ifUnmodifiedSince Validator for conditional requests; based on Last Modified header. (optional)
* @return void
*/
@RequestLine("DELETE /applications/{applicationId}")
@Headers({
"Content-type: application/json",
"Accept: application/json",
"If-Match: {ifMatch}",
"If-Unmodified-Since: {ifUnmodifiedSince}"
})
void applicationsApplicationIdDelete(@Param("applicationId") String applicationId, @Param("ifMatch") String ifMatch,
@Param("ifUnmodifiedSince") String ifUnmodifiedSince);
/**
* Get application details
* Get application details
* @param applicationId **Application Identifier** consisting of the UUID of the Application. (required)
* @param accept Media types acceptable for the response. Default is JSON. (optional, default to JSON)
* @param ifNoneMatch Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resourec. (optional)
* @param ifModifiedSince Validator for conditional requests; based on Last Modified header of the formerly retrieved variant of the resource. (optional)
* @return Application
*/
@RequestLine("GET /applications/{applicationId}")
@Headers({
"Content-type: application/json",
"Accept: application/json",
"Accept: {accept}",
"If-None-Match: {ifNoneMatch}",
"If-Modified-Since: {ifModifiedSince}"
})
Application applicationsApplicationIdGet(@Param("applicationId") String applicationId, @Param("accept") String accept,
@Param("ifNoneMatch") String ifNoneMatch,
@Param("ifModifiedSince") String ifModifiedSince);
/**
* Update application details
* Update application details
* @param applicationId **Application Identifier** consisting of the UUID of the Application. (required)
* @param body Application object that needs to be updated (required)
* @param contentType Media type of the entity in the body. Default is JSON. (required)
* @param ifMatch Validator for conditional requests; based on ETag. (optional)
* @param ifUnmodifiedSince Validator for conditional requests; based on Last Modified header. (optional)
* @return Application
*/
@RequestLine("PUT /applications/{applicationId}")
@Headers({
"Content-type: application/json",
"Accept: application/json",
"Content-Type: {contentType}",
"If-Match: {ifMatch}",
"If-Unmodified-Since: {ifUnmodifiedSince}"
})
Application applicationsApplicationIdPut(@Param("applicationId") String applicationId, Application body,
@Param("contentType") String contentType, @Param("ifMatch") String ifMatch,
@Param("ifUnmodifiedSince") String ifUnmodifiedSince);
/**
* Generate keys for application
* Generate keys for application
* @param applicationId **Application Identifier** consisting of the UUID of the Application. (required)
* @param body Application object the keys of which are to be generated (required)
* @param contentType Media type of the entity in the body. Default is JSON. (required)
* @param ifMatch Validator for conditional requests; based on ETag. (optional)
* @param ifUnmodifiedSince Validator for conditional requests; based on Last Modified header. (optional)
* @return ApplicationKey
*/
@RequestLine("POST /applications/generate-keys?applicationId={applicationId}")
@Headers({
"Content-type: application/json",
"Accept: application/json",
"Content-Type: {contentType}",
"If-Match: {ifMatch}",
"If-Unmodified-Since: {ifUnmodifiedSince}"
})
ApplicationKey applicationsGenerateKeysPost(@Param("applicationId") String applicationId,
ApplicationKeyGenerateRequest body,
@Param("contentType") String contentType,
@Param("ifMatch") String ifMatch,
@Param("ifUnmodifiedSince") String ifUnmodifiedSince);
/**
* Create a new application.
* Create a new application.
* @param body Application object that is to be created. (required)
* @param contentType Media type of the entity in the body. Default is JSON. (required)
* @return Application
*/
@RequestLine("POST /applications")
@Headers({
"Content-type: application/json",
"Accept: application/json",
"Content-Type: {contentType}"
})
Application applicationsPost(Application body, @Param("contentType") String contentType);
}

@ -1,54 +0,0 @@
/*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. 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 org.wso2.carbon.apimgt.integration.client.store.api;
import feign.Headers;
import feign.Param;
import feign.RequestLine;
import org.wso2.carbon.apimgt.integration.client.store.model.SubscriptionList;
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-24T00:03:54.991+05:30")
public interface SubscriptionCollectionApi {
/**
* Get subscription list.
* Get subscription list. The API Identifier or Application Identifier the subscriptions of which are to be returned are passed as parameters.
* @param apiId **API ID** consisting of the **UUID** of the API. The combination of the provider of the API, name of the API and the version is also accepted as a valid API I. Should be formatted as **provider-name-version**. (required)
* @param applicationId **Application Identifier** consisting of the UUID of the Application. (required)
* @param groupId Application Group Id (optional)
* @param offset Starting point within the complete list of items qualified. (optional, default to 0)
* @param limit Maximum size of resource array to return. (optional, default to 25)
* @param accept Media types acceptable for the response. Default is JSON. (optional, default to JSON)
* @param ifNoneMatch Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resourec. (optional)
* @return SubscriptionList
*/
@RequestLine("GET /subscriptions?apiId={apiId}&applicationId={applicationId}&groupId={groupId}&offset={offset}&limit={limit}")
@Headers({
"Content-type: application/json",
"Accept: application/json",
"Accept: {accept}",
"If-None-Match: {ifNoneMatch}"
})
SubscriptionList subscriptionsGet(@Param("apiId") String apiId, @Param("applicationId") String applicationId,
@Param("groupId") String groupId, @Param("offset") Integer offset,
@Param("limit") Integer limit, @Param("accept") String accept,
@Param("ifNoneMatch") String ifNoneMatch);
}

@ -1,104 +0,0 @@
/*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. 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 org.wso2.carbon.apimgt.integration.client.store.api;
import feign.Headers;
import feign.Param;
import feign.RequestLine;
import org.wso2.carbon.apimgt.integration.client.store.model.Subscription;
import java.util.List;
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-24T00:03:54.991+05:30")
public interface SubscriptionindividualApi {
/**
* Add a new subscription
* Add a new subscription
* @param body Subscription object that should to be added (required)
* @param contentType Media type of the entity in the body. Default is JSON. (required)
* @return Subscription
*/
@RequestLine("POST /subscriptions")
@Headers({
"Content-type: application/json",
"Accept: application/json",
"Content-Type: {contentType}"
})
Subscription subscriptionsPost(Subscription body, @Param("contentType") String contentType);
/**
* Add new subscriptions
* Add new subscriptions
* @param body Subscription objects that should to be added (required)
* @param contentType Media type of the entity in the body. Default is JSON. (required)
* @return Subscription
*/
@RequestLine("POST /subscriptions/multiple")
@Headers({
"Content-type: application/json",
"Accept: application/json",
"Content-Type: {contentType}"
})
List<Subscription> subscriptionsPost(List<Subscription> body, @Param("contentType") String contentType);
/**
* Remove subscription
* Remove subscription
* @param subscriptionId Subscription Id (required)
* @param ifMatch Validator for conditional requests; based on ETag. (optional)
* @param ifUnmodifiedSince Validator for conditional requests; based on Last Modified header. (optional)
* @return void
*/
@RequestLine("DELETE /subscriptions/{subscriptionId}")
@Headers({
"Content-type: application/json",
"Accept: application/json",
"If-Match: {ifMatch}",
"If-Unmodified-Since: {ifUnmodifiedSince}"
})
void subscriptionsSubscriptionIdDelete(@Param("subscriptionId") String subscriptionId,
@Param("ifMatch") String ifMatch,
@Param("ifUnmodifiedSince") String ifUnmodifiedSince);
/**
* Get subscription details
* Get subscription details
* @param subscriptionId Subscription Id (required)
* @param accept Media types acceptable for the response. Default is JSON. (optional, default to JSON)
* @param ifNoneMatch Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resourec. (optional)
* @param ifModifiedSince Validator for conditional requests; based on Last Modified header of the formerly retrieved variant of the resource. (optional)
* @return Subscription
*/
@RequestLine("GET /subscriptions/{subscriptionId}")
@Headers({
"Content-type: application/json",
"Accept: application/json",
"Accept: {accept}",
"If-None-Match: {ifNoneMatch}",
"If-Modified-Since: {ifModifiedSince}"
})
Subscription subscriptionsSubscriptionIdGet(@Param("subscriptionId") String subscriptionId,
@Param("accept") String accept, @Param("ifNoneMatch") String ifNoneMatch,
@Param("ifModifiedSince") String ifModifiedSince);
}

@ -1,53 +0,0 @@
/*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. 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 org.wso2.carbon.apimgt.integration.client.store.api;
import feign.Headers;
import feign.Param;
import feign.RequestLine;
import org.wso2.carbon.apimgt.integration.client.store.model.TagList;
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-24T00:03:54.991+05:30")
public interface TagCollectionApi {
/**
* Get a list of tags that are already added to APIs
* Get a list of tags that are already added to APIs
* @param limit Maximum size of resource array to return. (optional, default to 25)
* @param offset Starting point within the complete list of items qualified. (optional, default to 0)
* @param xWSO2Tenant For cross-tenant invocations, this is used to specify the tenant domain, where the resource need to be retirieved from. (optional)
* @param accept Media types acceptable for the response. Default is JSON. (optional, default to JSON)
* @param ifNoneMatch Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resourec. (optional)
* @return TagList
*/
@RequestLine("GET /tags?limit={limit}&offset={offset}")
@Headers({
"Content-type: application/json",
"Accept: application/json",
"X-WSO2-Tenant: {xWSO2Tenant}",
"Accept: {accept}",
"If-None-Match: {ifNoneMatch}"
})
TagList tagsGet(@Param("limit") Integer limit, @Param("offset") Integer offset,
@Param("xWSO2Tenant") String xWSO2Tenant, @Param("accept") String accept,
@Param("ifNoneMatch") String ifNoneMatch);
}

@ -1,56 +0,0 @@
/*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. 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 org.wso2.carbon.apimgt.integration.client.store.api;
import feign.Headers;
import feign.Param;
import feign.RequestLine;
import org.wso2.carbon.apimgt.integration.client.store.model.TierList;
import java.util.List;
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-24T00:03:54.991+05:30")
public interface TierCollectionApi {
/**
* Get available tiers
* Get available tiers
* @param tierLevel List API or Application type tiers. (required)
* @param limit Maximum size of resource array to return. (optional, default to 25)
* @param offset Starting point within the complete list of items qualified. (optional, default to 0)
* @param xWSO2Tenant For cross-tenant invocations, this is used to specify the tenant domain, where the resource need to be retirieved from. (optional)
* @param accept Media types acceptable for the response. Default is JSON. (optional, default to JSON)
* @param ifNoneMatch Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resourec. (optional)
* @return List<TierList>
*/
@RequestLine("GET /tiers/{tierLevel}?limit={limit}&offset={offset}")
@Headers({
"Content-type: application/json",
"Accept: application/json",
"X-WSO2-Tenant: {xWSO2Tenant}",
"Accept: {accept}",
"If-None-Match: {ifNoneMatch}"
})
List<TierList> tiersTierLevelGet(@Param("tierLevel") String tierLevel, @Param("limit") Integer limit,
@Param("offset") Integer offset, @Param("xWSO2Tenant") String xWSO2Tenant,
@Param("accept") String accept, @Param("ifNoneMatch") String ifNoneMatch);
}

@ -1,57 +0,0 @@
/*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. 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 org.wso2.carbon.apimgt.integration.client.store.api;
import feign.Headers;
import feign.Param;
import feign.RequestLine;
import org.wso2.carbon.apimgt.integration.client.store.model.Tier;
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-24T00:03:54.991+05:30")
public interface TierindividualApi {
/**
* Get tier details
* Get tier details
* @param tierName Tier name (required)
* @param tierLevel List API or Application type tiers. (required)
* @param xWSO2Tenant For cross-tenant invocations, this is used to specify the tenant domain, where the resource need to be retirieved from. (optional)
* @param accept Media types acceptable for the response. Default is JSON. (optional, default to JSON)
* @param ifNoneMatch Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resourec. (optional)
* @param ifModifiedSince Validator for conditional requests; based on Last Modified header of the formerly retrieved variant of the resource. (optional)
* @return Tier
*/
@RequestLine("GET /tiers/{tierLevel}/{tierName}")
@Headers({
"Content-type: application/json",
"Accept: application/json",
"X-WSO2-Tenant: {xWSO2Tenant}",
"Accept: {accept}",
"If-None-Match: {ifNoneMatch}",
"If-Modified-Since: {ifModifiedSince}"
})
Tier tiersTierLevelTierNameGet(@Param("tierName") String tierName, @Param("tierLevel") String tierLevel,
@Param("xWSO2Tenant") String xWSO2Tenant, @Param("accept") String accept,
@Param("ifNoneMatch") String ifNoneMatch,
@Param("ifModifiedSince") String ifModifiedSince);
}

@ -1,466 +0,0 @@
/**
* WSO2 API Manager - Store
* This document specifies a **RESTful API** for WSO2 **API Manager** - Store. It is written with [swagger 2](http://swagger.io/).
*
* OpenAPI spec version: 0.10.0
* Contact: architecture@wso2.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.wso2.carbon.apimgt.integration.client.store.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
/**
* API
*/
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-24T00:03:54.991+05:30")
public class API {
@JsonProperty("id")
private String id = null;
@JsonProperty("name")
private String name = null;
@JsonProperty("description")
private String description = null;
@JsonProperty("context")
private String context = null;
@JsonProperty("version")
private String version = null;
@JsonProperty("provider")
private String provider = null;
@JsonProperty("apiDefinition")
private String apiDefinition = null;
@JsonProperty("wsdlUri")
private String wsdlUri = null;
@JsonProperty("status")
private String status = null;
@JsonProperty("isDefaultVersion")
private Boolean isDefaultVersion = null;
@JsonProperty("transport")
private List<String> transport = new ArrayList<String>();
@JsonProperty("tags")
private List<String> tags = new ArrayList<String>();
@JsonProperty("tiers")
private List<String> tiers = new ArrayList<String>();
@JsonProperty("thumbnailUrl")
private String thumbnailUrl = null;
@JsonProperty("endpointURLs")
private List<APIEndpointURLs> endpointURLs = new ArrayList<APIEndpointURLs>();
@JsonProperty("businessInformation")
private APIBusinessInformation businessInformation = null;
public API id(String id) {
this.id = id;
return this;
}
/**
* UUID of the api registry artifact
* @return id
**/
@ApiModelProperty(example = "01234567-0123-0123-0123-012345678901", value = "UUID of the api registry artifact ")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public API name(String name) {
this.name = name;
return this;
}
/**
* Get name
* @return name
**/
@ApiModelProperty(example = "CalculatorAPI", required = true, value = "")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public API description(String description) {
this.description = description;
return this;
}
/**
* Get description
* @return description
**/
@ApiModelProperty(example = "A calculator API that supports basic operations", value = "")
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public API context(String context) {
this.context = context;
return this;
}
/**
* Get context
* @return context
**/
@ApiModelProperty(example = "CalculatorAPI", required = true, value = "")
public String getContext() {
return context;
}
public void setContext(String context) {
this.context = context;
}
public API version(String version) {
this.version = version;
return this;
}
/**
* Get version
* @return version
**/
@ApiModelProperty(example = "1.0.0", required = true, value = "")
public String getVersion() {
return version;
}
public void setVersion(String version) {
this.version = version;
}
public API provider(String provider) {
this.provider = provider;
return this;
}
/**
* If the provider value is not given user invoking the api will be used as the provider.
* @return provider
**/
@ApiModelProperty(example = "admin", required = true, value = "If the provider value is not given user invoking the api will be used as the provider. ")
public String getProvider() {
return provider;
}
public void setProvider(String provider) {
this.provider = provider;
}
public API apiDefinition(String apiDefinition) {
this.apiDefinition = apiDefinition;
return this;
}
/**
* Swagger definition of the API which contains details about URI templates and scopes
* @return apiDefinition
**/
@ApiModelProperty(example = "", required = true, value = "Swagger definition of the API which contains details about URI templates and scopes ")
public String getApiDefinition() {
return apiDefinition;
}
public void setApiDefinition(String apiDefinition) {
this.apiDefinition = apiDefinition;
}
public API wsdlUri(String wsdlUri) {
this.wsdlUri = wsdlUri;
return this;
}
/**
* WSDL URL if the API is based on a WSDL endpoint
* @return wsdlUri
**/
@ApiModelProperty(example = "http://www.webservicex.com/globalweather.asmx?wsdl", value = "WSDL URL if the API is based on a WSDL endpoint ")
public String getWsdlUri() {
return wsdlUri;
}
public void setWsdlUri(String wsdlUri) {
this.wsdlUri = wsdlUri;
}
public API status(String status) {
this.status = status;
return this;
}
/**
* Get status
* @return status
**/
@ApiModelProperty(example = "PUBLISHED", required = true, value = "")
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public API isDefaultVersion(Boolean isDefaultVersion) {
this.isDefaultVersion = isDefaultVersion;
return this;
}
/**
* Get isDefaultVersion
* @return isDefaultVersion
**/
@ApiModelProperty(example = "false", value = "")
public Boolean getIsDefaultVersion() {
return isDefaultVersion;
}
public void setIsDefaultVersion(Boolean isDefaultVersion) {
this.isDefaultVersion = isDefaultVersion;
}
public API transport(List<String> transport) {
this.transport = transport;
return this;
}
public API addTransportItem(String transportItem) {
this.transport.add(transportItem);
return this;
}
/**
* Get transport
* @return transport
**/
@ApiModelProperty(example = "null", value = "")
public List<String> getTransport() {
return transport;
}
public void setTransport(List<String> transport) {
this.transport = transport;
}
public API tags(List<String> tags) {
this.tags = tags;
return this;
}
public API addTagsItem(String tagsItem) {
this.tags.add(tagsItem);
return this;
}
/**
* Get tags
* @return tags
**/
@ApiModelProperty(example = "null", value = "")
public List<String> getTags() {
return tags;
}
public void setTags(List<String> tags) {
this.tags = tags;
}
public API tiers(List<String> tiers) {
this.tiers = tiers;
return this;
}
public API addTiersItem(String tiersItem) {
this.tiers.add(tiersItem);
return this;
}
/**
* Get tiers
* @return tiers
**/
@ApiModelProperty(example = "null", value = "")
public List<String> getTiers() {
return tiers;
}
public void setTiers(List<String> tiers) {
this.tiers = tiers;
}
public API thumbnailUrl(String thumbnailUrl) {
this.thumbnailUrl = thumbnailUrl;
return this;
}
/**
* Get thumbnailUrl
* @return thumbnailUrl
**/
@ApiModelProperty(example = "", value = "")
public String getThumbnailUrl() {
return thumbnailUrl;
}
public void setThumbnailUrl(String thumbnailUrl) {
this.thumbnailUrl = thumbnailUrl;
}
public API endpointURLs(List<APIEndpointURLs> endpointURLs) {
this.endpointURLs = endpointURLs;
return this;
}
public API addEndpointURLsItem(APIEndpointURLs endpointURLsItem) {
this.endpointURLs.add(endpointURLsItem);
return this;
}
/**
* Get endpointURLs
* @return endpointURLs
**/
@ApiModelProperty(example = "null", value = "")
public List<APIEndpointURLs> getEndpointURLs() {
return endpointURLs;
}
public void setEndpointURLs(List<APIEndpointURLs> endpointURLs) {
this.endpointURLs = endpointURLs;
}
public API businessInformation(APIBusinessInformation businessInformation) {
this.businessInformation = businessInformation;
return this;
}
/**
* Get businessInformation
* @return businessInformation
**/
@ApiModelProperty(example = "null", value = "")
public APIBusinessInformation getBusinessInformation() {
return businessInformation;
}
public void setBusinessInformation(APIBusinessInformation businessInformation) {
this.businessInformation = businessInformation;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
API API = (org.wso2.carbon.apimgt.integration.client.store.model.API) o;
return Objects.equals(this.id, API.id) &&
Objects.equals(this.name, API.name) &&
Objects.equals(this.description, API.description) &&
Objects.equals(this.context, API.context) &&
Objects.equals(this.version, API.version) &&
Objects.equals(this.provider, API.provider) &&
Objects.equals(this.apiDefinition, API.apiDefinition) &&
Objects.equals(this.wsdlUri, API.wsdlUri) &&
Objects.equals(this.status, API.status) &&
Objects.equals(this.isDefaultVersion, API.isDefaultVersion) &&
Objects.equals(this.transport, API.transport) &&
Objects.equals(this.tags, API.tags) &&
Objects.equals(this.tiers, API.tiers) &&
Objects.equals(this.thumbnailUrl, API.thumbnailUrl) &&
Objects.equals(this.endpointURLs, API.endpointURLs) &&
Objects.equals(this.businessInformation, API.businessInformation);
}
@Override
public int hashCode() {
return Objects.hash(id, name, description, context, version, provider, apiDefinition, wsdlUri, status, isDefaultVersion, transport, tags, tiers, thumbnailUrl, endpointURLs, businessInformation);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class API {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" context: ").append(toIndentedString(context)).append("\n");
sb.append(" version: ").append(toIndentedString(version)).append("\n");
sb.append(" provider: ").append(toIndentedString(provider)).append("\n");
sb.append(" apiDefinition: ").append(toIndentedString(apiDefinition)).append("\n");
sb.append(" wsdlUri: ").append(toIndentedString(wsdlUri)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" isDefaultVersion: ").append(toIndentedString(isDefaultVersion)).append("\n");
sb.append(" transport: ").append(toIndentedString(transport)).append("\n");
sb.append(" tags: ").append(toIndentedString(tags)).append("\n");
sb.append(" tiers: ").append(toIndentedString(tiers)).append("\n");
sb.append(" thumbnailUrl: ").append(toIndentedString(thumbnailUrl)).append("\n");
sb.append(" endpointURLs: ").append(toIndentedString(endpointURLs)).append("\n");
sb.append(" businessInformation: ").append(toIndentedString(businessInformation)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

@ -1,168 +0,0 @@
/**
* WSO2 API Manager - Store
* This document specifies a **RESTful API** for WSO2 **API Manager** - Store. It is written with [swagger 2](http://swagger.io/).
*
* OpenAPI spec version: 0.10.0
* Contact: architecture@wso2.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.wso2.carbon.apimgt.integration.client.store.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.Objects;
/**
* APIBusinessInformation
*/
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-24T00:03:54.991+05:30")
public class APIBusinessInformation {
@JsonProperty("businessOwner")
private String businessOwner = null;
@JsonProperty("businessOwnerEmail")
private String businessOwnerEmail = null;
@JsonProperty("technicalOwner")
private String technicalOwner = null;
@JsonProperty("technicalOwnerEmail")
private String technicalOwnerEmail = null;
public APIBusinessInformation businessOwner(String businessOwner) {
this.businessOwner = businessOwner;
return this;
}
/**
* Get businessOwner
* @return businessOwner
**/
@ApiModelProperty(example = "businessowner", value = "")
public String getBusinessOwner() {
return businessOwner;
}
public void setBusinessOwner(String businessOwner) {
this.businessOwner = businessOwner;
}
public APIBusinessInformation businessOwnerEmail(String businessOwnerEmail) {
this.businessOwnerEmail = businessOwnerEmail;
return this;
}
/**
* Get businessOwnerEmail
* @return businessOwnerEmail
**/
@ApiModelProperty(example = "businessowner@wso2.com", value = "")
public String getBusinessOwnerEmail() {
return businessOwnerEmail;
}
public void setBusinessOwnerEmail(String businessOwnerEmail) {
this.businessOwnerEmail = businessOwnerEmail;
}
public APIBusinessInformation technicalOwner(String technicalOwner) {
this.technicalOwner = technicalOwner;
return this;
}
/**
* Get technicalOwner
* @return technicalOwner
**/
@ApiModelProperty(example = "technicalowner", value = "")
public String getTechnicalOwner() {
return technicalOwner;
}
public void setTechnicalOwner(String technicalOwner) {
this.technicalOwner = technicalOwner;
}
public APIBusinessInformation technicalOwnerEmail(String technicalOwnerEmail) {
this.technicalOwnerEmail = technicalOwnerEmail;
return this;
}
/**
* Get technicalOwnerEmail
* @return technicalOwnerEmail
**/
@ApiModelProperty(example = "technicalowner@wso2.com", value = "")
public String getTechnicalOwnerEmail() {
return technicalOwnerEmail;
}
public void setTechnicalOwnerEmail(String technicalOwnerEmail) {
this.technicalOwnerEmail = technicalOwnerEmail;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
APIBusinessInformation aPIBusinessInformation = (APIBusinessInformation) o;
return Objects.equals(this.businessOwner, aPIBusinessInformation.businessOwner) &&
Objects.equals(this.businessOwnerEmail, aPIBusinessInformation.businessOwnerEmail) &&
Objects.equals(this.technicalOwner, aPIBusinessInformation.technicalOwner) &&
Objects.equals(this.technicalOwnerEmail, aPIBusinessInformation.technicalOwnerEmail);
}
@Override
public int hashCode() {
return Objects.hash(businessOwner, businessOwnerEmail, technicalOwner, technicalOwnerEmail);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class APIBusinessInformation {\n");
sb.append(" businessOwner: ").append(toIndentedString(businessOwner)).append("\n");
sb.append(" businessOwnerEmail: ").append(toIndentedString(businessOwnerEmail)).append("\n");
sb.append(" technicalOwner: ").append(toIndentedString(technicalOwner)).append("\n");
sb.append(" technicalOwnerEmail: ").append(toIndentedString(technicalOwnerEmail)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

@ -1,145 +0,0 @@
/**
* WSO2 API Manager - Store
* This document specifies a **RESTful API** for WSO2 **API Manager** - Store. It is written with [swagger 2](http://swagger.io/).
*
* OpenAPI spec version: 0.10.0
* Contact: architecture@wso2.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.wso2.carbon.apimgt.integration.client.store.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.Objects;
/**
* APIEndpointURLs
*/
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-24T00:03:54.991+05:30")
public class APIEndpointURLs {
@JsonProperty("environmentName")
private String environmentName = null;
@JsonProperty("environmentType")
private String environmentType = null;
@JsonProperty("environmentURLs")
private APIEnvironmentURLs environmentURLs = null;
public APIEndpointURLs environmentName(String environmentName) {
this.environmentName = environmentName;
return this;
}
/**
* Get environmentName
* @return environmentName
**/
@ApiModelProperty(example = "Production and Sandbox", value = "")
public String getEnvironmentName() {
return environmentName;
}
public void setEnvironmentName(String environmentName) {
this.environmentName = environmentName;
}
public APIEndpointURLs environmentType(String environmentType) {
this.environmentType = environmentType;
return this;
}
/**
* Get environmentType
* @return environmentType
**/
@ApiModelProperty(example = "hybrid", value = "")
public String getEnvironmentType() {
return environmentType;
}
public void setEnvironmentType(String environmentType) {
this.environmentType = environmentType;
}
public APIEndpointURLs environmentURLs(APIEnvironmentURLs environmentURLs) {
this.environmentURLs = environmentURLs;
return this;
}
/**
* Get environmentURLs
* @return environmentURLs
**/
@ApiModelProperty(example = "null", value = "")
public APIEnvironmentURLs getEnvironmentURLs() {
return environmentURLs;
}
public void setEnvironmentURLs(APIEnvironmentURLs environmentURLs) {
this.environmentURLs = environmentURLs;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
APIEndpointURLs aPIEndpointURLs = (APIEndpointURLs) o;
return Objects.equals(this.environmentName, aPIEndpointURLs.environmentName) &&
Objects.equals(this.environmentType, aPIEndpointURLs.environmentType) &&
Objects.equals(this.environmentURLs, aPIEndpointURLs.environmentURLs);
}
@Override
public int hashCode() {
return Objects.hash(environmentName, environmentType, environmentURLs);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class APIEndpointURLs {\n");
sb.append(" environmentName: ").append(toIndentedString(environmentName)).append("\n");
sb.append(" environmentType: ").append(toIndentedString(environmentType)).append("\n");
sb.append(" environmentURLs: ").append(toIndentedString(environmentURLs)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

@ -1,122 +0,0 @@
/**
* WSO2 API Manager - Store
* This document specifies a **RESTful API** for WSO2 **API Manager** - Store. It is written with [swagger 2](http://swagger.io/).
*
* OpenAPI spec version: 0.10.0
* Contact: architecture@wso2.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.wso2.carbon.apimgt.integration.client.store.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.Objects;
/**
* APIEnvironmentURLs
*/
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-24T00:03:54.991+05:30")
public class APIEnvironmentURLs {
@JsonProperty("http")
private String http = null;
@JsonProperty("https")
private String https = null;
public APIEnvironmentURLs http(String http) {
this.http = http;
return this;
}
/**
* HTTP environment URL
* @return http
**/
@ApiModelProperty(example = "http://192.168.56.1:8280/phoneverify/1.0.0", value = "HTTP environment URL")
public String getHttp() {
return http;
}
public void setHttp(String http) {
this.http = http;
}
public APIEnvironmentURLs https(String https) {
this.https = https;
return this;
}
/**
* HTTPS environment URL
* @return https
**/
@ApiModelProperty(example = "https://192.168.56.1:8243/phoneverify/1.0.0", value = "HTTPS environment URL")
public String getHttps() {
return https;
}
public void setHttps(String https) {
this.https = https;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
APIEnvironmentURLs aPIEnvironmentURLs = (APIEnvironmentURLs) o;
return Objects.equals(this.http, aPIEnvironmentURLs.http) &&
Objects.equals(this.https, aPIEnvironmentURLs.https);
}
@Override
public int hashCode() {
return Objects.hash(http, https);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class APIEnvironmentURLs {\n");
sb.append(" http: ").append(toIndentedString(http)).append("\n");
sb.append(" https: ").append(toIndentedString(https)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

@ -1,237 +0,0 @@
/**
* WSO2 API Manager - Store
* This document specifies a **RESTful API** for WSO2 **API Manager** - Store. It is written with [swagger 2](http://swagger.io/).
*
* OpenAPI spec version: 0.10.0
* Contact: architecture@wso2.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.wso2.carbon.apimgt.integration.client.store.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.Objects;
/**
* APIInfo
*/
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-24T00:03:54.991+05:30")
public class APIInfo {
@JsonProperty("id")
private String id = null;
@JsonProperty("name")
private String name = null;
@JsonProperty("description")
private String description = null;
@JsonProperty("context")
private String context = null;
@JsonProperty("version")
private String version = null;
@JsonProperty("provider")
private String provider = null;
@JsonProperty("status")
private String status = null;
public APIInfo id(String id) {
this.id = id;
return this;
}
/**
* Get id
* @return id
**/
@ApiModelProperty(example = "01234567-0123-0123-0123-012345678901", value = "")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public APIInfo name(String name) {
this.name = name;
return this;
}
/**
* Get name
* @return name
**/
@ApiModelProperty(example = "CalculatorAPI", value = "")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public APIInfo description(String description) {
this.description = description;
return this;
}
/**
* Get description
* @return description
**/
@ApiModelProperty(example = "A calculator API that supports basic operations", value = "")
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public APIInfo context(String context) {
this.context = context;
return this;
}
/**
* Get context
* @return context
**/
@ApiModelProperty(example = "CalculatorAPI", value = "")
public String getContext() {
return context;
}
public void setContext(String context) {
this.context = context;
}
public APIInfo version(String version) {
this.version = version;
return this;
}
/**
* Get version
* @return version
**/
@ApiModelProperty(example = "1.0.0", value = "")
public String getVersion() {
return version;
}
public void setVersion(String version) {
this.version = version;
}
public APIInfo provider(String provider) {
this.provider = provider;
return this;
}
/**
* If the provider value is not given, the user invoking the API will be used as the provider.
* @return provider
**/
@ApiModelProperty(example = "admin", value = "If the provider value is not given, the user invoking the API will be used as the provider. ")
public String getProvider() {
return provider;
}
public void setProvider(String provider) {
this.provider = provider;
}
public APIInfo status(String status) {
this.status = status;
return this;
}
/**
* Get status
* @return status
**/
@ApiModelProperty(example = "PUBLISHED", value = "")
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
APIInfo aPIInfo = (APIInfo) o;
return Objects.equals(this.id, aPIInfo.id) &&
Objects.equals(this.name, aPIInfo.name) &&
Objects.equals(this.description, aPIInfo.description) &&
Objects.equals(this.context, aPIInfo.context) &&
Objects.equals(this.version, aPIInfo.version) &&
Objects.equals(this.provider, aPIInfo.provider) &&
Objects.equals(this.status, aPIInfo.status);
}
@Override
public int hashCode() {
return Objects.hash(id, name, description, context, version, provider, status);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class APIInfo {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" context: ").append(toIndentedString(context)).append("\n");
sb.append(" version: ").append(toIndentedString(version)).append("\n");
sb.append(" provider: ").append(toIndentedString(provider)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

@ -1,175 +0,0 @@
/**
* WSO2 API Manager - Store
* This document specifies a **RESTful API** for WSO2 **API Manager** - Store. It is written with [swagger 2](http://swagger.io/).
*
* OpenAPI spec version: 0.10.0
* Contact: architecture@wso2.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.wso2.carbon.apimgt.integration.client.store.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
/**
* APIList
*/
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-24T00:03:54.991+05:30")
public class APIList {
@JsonProperty("count")
private Integer count = null;
@JsonProperty("next")
private String next = null;
@JsonProperty("previous")
private String previous = null;
@JsonProperty("list")
private List<APIInfo> list = new ArrayList<APIInfo>();
public APIList count(Integer count) {
this.count = count;
return this;
}
/**
* Number of APIs returned.
* @return count
**/
@ApiModelProperty(example = "1", value = "Number of APIs returned. ")
public Integer getCount() {
return count;
}
public void setCount(Integer count) {
this.count = count;
}
public APIList next(String next) {
this.next = next;
return this;
}
/**
* Link to the next subset of resources qualified. Empty if no more resources are to be returned.
* @return next
**/
@ApiModelProperty(example = "/apis?limit&#x3D;1&amp;offset&#x3D;2&amp;query&#x3D;", value = "Link to the next subset of resources qualified. Empty if no more resources are to be returned. ")
public String getNext() {
return next;
}
public void setNext(String next) {
this.next = next;
}
public APIList previous(String previous) {
this.previous = previous;
return this;
}
/**
* Link to the previous subset of resources qualified. Empty if current subset is the first subset returned.
* @return previous
**/
@ApiModelProperty(example = "/apis?limit&#x3D;1&amp;offset&#x3D;0&amp;query&#x3D;", value = "Link to the previous subset of resources qualified. Empty if current subset is the first subset returned. ")
public String getPrevious() {
return previous;
}
public void setPrevious(String previous) {
this.previous = previous;
}
public APIList list(List<APIInfo> list) {
this.list = list;
return this;
}
public APIList addListItem(APIInfo listItem) {
this.list.add(listItem);
return this;
}
/**
* Get list
* @return list
**/
@ApiModelProperty(example = "null", value = "")
public List<APIInfo> getList() {
return list;
}
public void setList(List<APIInfo> list) {
this.list = list;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
APIList aPIList = (APIList) o;
return Objects.equals(this.count, aPIList.count) &&
Objects.equals(this.next, aPIList.next) &&
Objects.equals(this.previous, aPIList.previous) &&
Objects.equals(this.list, aPIList.list);
}
@Override
public int hashCode() {
return Objects.hash(count, next, previous, list);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class APIList {\n");
sb.append(" count: ").append(toIndentedString(count)).append("\n");
sb.append(" next: ").append(toIndentedString(next)).append("\n");
sb.append(" previous: ").append(toIndentedString(previous)).append("\n");
sb.append(" list: ").append(toIndentedString(list)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

@ -1,290 +0,0 @@
/**
* WSO2 API Manager - Store
* This document specifies a **RESTful API** for WSO2 **API Manager** - Store. It is written with [swagger 2](http://swagger.io/).
*
* OpenAPI spec version: 0.10.0
* Contact: architecture@wso2.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.wso2.carbon.apimgt.integration.client.store.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
/**
* Application
*/
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-24T00:03:54.991+05:30")
public class Application {
@JsonProperty("applicationId")
private String applicationId = null;
@JsonProperty("name")
private String name = null;
@JsonProperty("subscriber")
private String subscriber = null;
@JsonProperty("throttlingTier")
private String throttlingTier = null;
@JsonProperty("callbackUrl")
private String callbackUrl = null;
@JsonProperty("description")
private String description = null;
@JsonProperty("status")
private String status = "";
@JsonProperty("groupId")
private String groupId = null;
@JsonProperty("keys")
private List<ApplicationKey> keys = new ArrayList<ApplicationKey>();
public Application applicationId(String applicationId) {
this.applicationId = applicationId;
return this;
}
/**
* Get applicationId
* @return applicationId
**/
@ApiModelProperty(example = "01234567-0123-0123-0123-012345678901", value = "")
public String getApplicationId() {
return applicationId;
}
public void setApplicationId(String applicationId) {
this.applicationId = applicationId;
}
public Application name(String name) {
this.name = name;
return this;
}
/**
* Get name
* @return name
**/
@ApiModelProperty(example = "CalculatorApp", required = true, value = "")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Application subscriber(String subscriber) {
this.subscriber = subscriber;
return this;
}
/**
* If subscriber is not given user invoking the API will be taken as the subscriber.
* @return subscriber
**/
@ApiModelProperty(example = "admin", value = "If subscriber is not given user invoking the API will be taken as the subscriber. ")
public String getSubscriber() {
return subscriber;
}
public void setSubscriber(String subscriber) {
this.subscriber = subscriber;
}
public Application throttlingTier(String throttlingTier) {
this.throttlingTier = throttlingTier;
return this;
}
/**
* Get throttlingTier
* @return throttlingTier
**/
@ApiModelProperty(example = "Unlimited", required = true, value = "")
public String getThrottlingTier() {
return throttlingTier;
}
public void setThrottlingTier(String throttlingTier) {
this.throttlingTier = throttlingTier;
}
public Application callbackUrl(String callbackUrl) {
this.callbackUrl = callbackUrl;
return this;
}
/**
* Get callbackUrl
* @return callbackUrl
**/
@ApiModelProperty(example = "", value = "")
public String getCallbackUrl() {
return callbackUrl;
}
public void setCallbackUrl(String callbackUrl) {
this.callbackUrl = callbackUrl;
}
public Application description(String description) {
this.description = description;
return this;
}
/**
* Get description
* @return description
**/
@ApiModelProperty(example = "Sample calculator application", value = "")
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public Application status(String status) {
this.status = status;
return this;
}
/**
* Get status
* @return status
**/
@ApiModelProperty(example = "APPROVED", value = "")
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public Application groupId(String groupId) {
this.groupId = groupId;
return this;
}
/**
* Get groupId
* @return groupId
**/
@ApiModelProperty(example = "", value = "")
public String getGroupId() {
return groupId;
}
public void setGroupId(String groupId) {
this.groupId = groupId;
}
public Application keys(List<ApplicationKey> keys) {
this.keys = keys;
return this;
}
public Application addKeysItem(ApplicationKey keysItem) {
this.keys.add(keysItem);
return this;
}
/**
* Get keys
* @return keys
**/
@ApiModelProperty(example = "null", value = "")
public List<ApplicationKey> getKeys() {
return keys;
}
public void setKeys(List<ApplicationKey> keys) {
this.keys = keys;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Application application = (Application) o;
return Objects.equals(this.applicationId, application.applicationId) &&
Objects.equals(this.name, application.name) &&
Objects.equals(this.subscriber, application.subscriber) &&
Objects.equals(this.throttlingTier, application.throttlingTier) &&
Objects.equals(this.callbackUrl, application.callbackUrl) &&
Objects.equals(this.description, application.description) &&
Objects.equals(this.status, application.status) &&
Objects.equals(this.groupId, application.groupId) &&
Objects.equals(this.keys, application.keys);
}
@Override
public int hashCode() {
return Objects.hash(applicationId, name, subscriber, throttlingTier, callbackUrl, description, status, groupId, keys);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Application {\n");
sb.append(" applicationId: ").append(toIndentedString(applicationId)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" subscriber: ").append(toIndentedString(subscriber)).append("\n");
sb.append(" throttlingTier: ").append(toIndentedString(throttlingTier)).append("\n");
sb.append(" callbackUrl: ").append(toIndentedString(callbackUrl)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" groupId: ").append(toIndentedString(groupId)).append("\n");
sb.append(" keys: ").append(toIndentedString(keys)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

@ -1,237 +0,0 @@
/**
* WSO2 API Manager - Store
* This document specifies a **RESTful API** for WSO2 **API Manager** - Store. It is written with [swagger 2](http://swagger.io/).
*
* OpenAPI spec version: 0.10.0
* Contact: architecture@wso2.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.wso2.carbon.apimgt.integration.client.store.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.Objects;
/**
* ApplicationInfo
*/
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-24T00:03:54.991+05:30")
public class ApplicationInfo {
@JsonProperty("applicationId")
private String applicationId = null;
@JsonProperty("name")
private String name = null;
@JsonProperty("subscriber")
private String subscriber = null;
@JsonProperty("throttlingTier")
private String throttlingTier = null;
@JsonProperty("description")
private String description = null;
@JsonProperty("status")
private String status = null;
@JsonProperty("groupId")
private String groupId = null;
public ApplicationInfo applicationId(String applicationId) {
this.applicationId = applicationId;
return this;
}
/**
* Get applicationId
* @return applicationId
**/
@ApiModelProperty(example = "01234567-0123-0123-0123-012345678901", value = "")
public String getApplicationId() {
return applicationId;
}
public void setApplicationId(String applicationId) {
this.applicationId = applicationId;
}
public ApplicationInfo name(String name) {
this.name = name;
return this;
}
/**
* Get name
* @return name
**/
@ApiModelProperty(example = "CalculatorApp", value = "")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public ApplicationInfo subscriber(String subscriber) {
this.subscriber = subscriber;
return this;
}
/**
* Get subscriber
* @return subscriber
**/
@ApiModelProperty(example = "admin", value = "")
public String getSubscriber() {
return subscriber;
}
public void setSubscriber(String subscriber) {
this.subscriber = subscriber;
}
public ApplicationInfo throttlingTier(String throttlingTier) {
this.throttlingTier = throttlingTier;
return this;
}
/**
* Get throttlingTier
* @return throttlingTier
**/
@ApiModelProperty(example = "Unlimited", value = "")
public String getThrottlingTier() {
return throttlingTier;
}
public void setThrottlingTier(String throttlingTier) {
this.throttlingTier = throttlingTier;
}
public ApplicationInfo description(String description) {
this.description = description;
return this;
}
/**
* Get description
* @return description
**/
@ApiModelProperty(example = "Sample calculator application", value = "")
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public ApplicationInfo status(String status) {
this.status = status;
return this;
}
/**
* Get status
* @return status
**/
@ApiModelProperty(example = "APPROVED", value = "")
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public ApplicationInfo groupId(String groupId) {
this.groupId = groupId;
return this;
}
/**
* Get groupId
* @return groupId
**/
@ApiModelProperty(example = "", value = "")
public String getGroupId() {
return groupId;
}
public void setGroupId(String groupId) {
this.groupId = groupId;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ApplicationInfo applicationInfo = (ApplicationInfo) o;
return Objects.equals(this.applicationId, applicationInfo.applicationId) &&
Objects.equals(this.name, applicationInfo.name) &&
Objects.equals(this.subscriber, applicationInfo.subscriber) &&
Objects.equals(this.throttlingTier, applicationInfo.throttlingTier) &&
Objects.equals(this.description, applicationInfo.description) &&
Objects.equals(this.status, applicationInfo.status) &&
Objects.equals(this.groupId, applicationInfo.groupId);
}
@Override
public int hashCode() {
return Objects.hash(applicationId, name, subscriber, throttlingTier, description, status, groupId);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ApplicationInfo {\n");
sb.append(" applicationId: ").append(toIndentedString(applicationId)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" subscriber: ").append(toIndentedString(subscriber)).append("\n");
sb.append(" throttlingTier: ").append(toIndentedString(throttlingTier)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" groupId: ").append(toIndentedString(groupId)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

@ -1,252 +0,0 @@
/**
* WSO2 API Manager - Store
* This document specifies a **RESTful API** for WSO2 **API Manager** - Store. It is written with [swagger 2](http://swagger.io/).
*
* OpenAPI spec version: 0.10.0
* Contact: architecture@wso2.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.wso2.carbon.apimgt.integration.client.store.model;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
/**
* ApplicationKey
*/
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-24T00:03:54.991+05:30")
public class ApplicationKey {
@JsonProperty("consumerKey")
private String consumerKey = null;
@JsonProperty("consumerSecret")
private String consumerSecret = null;
@JsonProperty("supportedGrantTypes")
private List<String> supportedGrantTypes = new ArrayList<String>();
@JsonProperty("keyState")
private String keyState = null;
/**
* Key type
*/
public enum KeyTypeEnum {
PRODUCTION("PRODUCTION"),
SANDBOX("SANDBOX");
private String value;
KeyTypeEnum(String value) {
this.value = value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static KeyTypeEnum fromValue(String text) {
for (KeyTypeEnum b : KeyTypeEnum.values()) {
if (String.valueOf(b.value).equals(text)) {
return b;
}
}
return null;
}
}
@JsonProperty("keyType")
private KeyTypeEnum keyType = null;
@JsonProperty("token")
private Token token = null;
public ApplicationKey consumerKey(String consumerKey) {
this.consumerKey = consumerKey;
return this;
}
/**
* Consumer key of the application
* @return consumerKey
**/
@ApiModelProperty(example = "vYDoc9s7IgAFdkSyNDaswBX7ejoa", value = "Consumer key of the application")
public String getConsumerKey() {
return consumerKey;
}
public void setConsumerKey(String consumerKey) {
this.consumerKey = consumerKey;
}
public ApplicationKey consumerSecret(String consumerSecret) {
this.consumerSecret = consumerSecret;
return this;
}
/**
* Consumer secret of the application
* @return consumerSecret
**/
@ApiModelProperty(example = "TIDlOFkpzB7WjufO3OJUhy1fsvAa", value = "Consumer secret of the application")
public String getConsumerSecret() {
return consumerSecret;
}
public void setConsumerSecret(String consumerSecret) {
this.consumerSecret = consumerSecret;
}
public ApplicationKey supportedGrantTypes(List<String> supportedGrantTypes) {
this.supportedGrantTypes = supportedGrantTypes;
return this;
}
public ApplicationKey addSupportedGrantTypesItem(String supportedGrantTypesItem) {
this.supportedGrantTypes.add(supportedGrantTypesItem);
return this;
}
/**
* Supported grant types for the application
* @return supportedGrantTypes
**/
@ApiModelProperty(example = "null", value = "Supported grant types for the application")
public List<String> getSupportedGrantTypes() {
return supportedGrantTypes;
}
public void setSupportedGrantTypes(List<String> supportedGrantTypes) {
this.supportedGrantTypes = supportedGrantTypes;
}
public ApplicationKey keyState(String keyState) {
this.keyState = keyState;
return this;
}
/**
* State of the key generation of the application
* @return keyState
**/
@ApiModelProperty(example = "APPROVED", value = "State of the key generation of the application")
public String getKeyState() {
return keyState;
}
public void setKeyState(String keyState) {
this.keyState = keyState;
}
public ApplicationKey keyType(KeyTypeEnum keyType) {
this.keyType = keyType;
return this;
}
/**
* Key type
* @return keyType
**/
@ApiModelProperty(example = "PRODUCTION", value = "Key type")
public KeyTypeEnum getKeyType() {
return keyType;
}
public void setKeyType(KeyTypeEnum keyType) {
this.keyType = keyType;
}
public ApplicationKey token(Token token) {
this.token = token;
return this;
}
/**
* Get token
* @return token
**/
@ApiModelProperty(example = "null", value = "")
public Token getToken() {
return token;
}
public void setToken(Token token) {
this.token = token;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ApplicationKey applicationKey = (ApplicationKey) o;
return Objects.equals(this.consumerKey, applicationKey.consumerKey) &&
Objects.equals(this.consumerSecret, applicationKey.consumerSecret) &&
Objects.equals(this.supportedGrantTypes, applicationKey.supportedGrantTypes) &&
Objects.equals(this.keyState, applicationKey.keyState) &&
Objects.equals(this.keyType, applicationKey.keyType) &&
Objects.equals(this.token, applicationKey.token);
}
@Override
public int hashCode() {
return Objects.hash(consumerKey, consumerSecret, supportedGrantTypes, keyState, keyType, token);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ApplicationKey {\n");
sb.append(" consumerKey: ").append(toIndentedString(consumerKey)).append("\n");
sb.append(" consumerSecret: ").append(toIndentedString(consumerSecret)).append("\n");
sb.append(" supportedGrantTypes: ").append(toIndentedString(supportedGrantTypes)).append("\n");
sb.append(" keyState: ").append(toIndentedString(keyState)).append("\n");
sb.append(" keyType: ").append(toIndentedString(keyType)).append("\n");
sb.append(" token: ").append(toIndentedString(token)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

@ -1,234 +0,0 @@
/**
* WSO2 API Manager - Store
* This document specifies a **RESTful API** for WSO2 **API Manager** - Store. It is written with [swagger 2](http://swagger.io/).
*
* OpenAPI spec version: 0.10.0
* Contact: architecture@wso2.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.wso2.carbon.apimgt.integration.client.store.model;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
/**
* ApplicationKeyGenerateRequest
*/
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-24T00:03:54.991+05:30")
public class ApplicationKeyGenerateRequest {
/**
* Gets or Sets keyType
*/
public enum KeyTypeEnum {
PRODUCTION("PRODUCTION"),
SANDBOX("SANDBOX");
private String value;
KeyTypeEnum(String value) {
this.value = value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static KeyTypeEnum fromValue(String text) {
for (KeyTypeEnum b : KeyTypeEnum.values()) {
if (String.valueOf(b.value).equals(text)) {
return b;
}
}
return null;
}
}
@JsonProperty("keyType")
private KeyTypeEnum keyType = null;
@JsonProperty("validityTime")
private String validityTime = null;
@JsonProperty("callbackUrl")
private String callbackUrl = null;
@JsonProperty("accessAllowDomains")
private List<String> accessAllowDomains = new ArrayList<String>();
@JsonProperty("scopes")
private List<String> scopes = new ArrayList<String>();
public ApplicationKeyGenerateRequest keyType(KeyTypeEnum keyType) {
this.keyType = keyType;
return this;
}
/**
* Get keyType
* @return keyType
**/
@ApiModelProperty(example = "PRODUCTION", required = true, value = "")
public KeyTypeEnum getKeyType() {
return keyType;
}
public void setKeyType(KeyTypeEnum keyType) {
this.keyType = keyType;
}
public ApplicationKeyGenerateRequest validityTime(String validityTime) {
this.validityTime = validityTime;
return this;
}
/**
* Get validityTime
* @return validityTime
**/
@ApiModelProperty(example = "3600", required = true, value = "")
public String getValidityTime() {
return validityTime;
}
public void setValidityTime(String validityTime) {
this.validityTime = validityTime;
}
public ApplicationKeyGenerateRequest callbackUrl(String callbackUrl) {
this.callbackUrl = callbackUrl;
return this;
}
/**
* Callback URL
* @return callbackUrl
**/
@ApiModelProperty(example = "", value = "Callback URL")
public String getCallbackUrl() {
return callbackUrl;
}
public void setCallbackUrl(String callbackUrl) {
this.callbackUrl = callbackUrl;
}
public ApplicationKeyGenerateRequest accessAllowDomains(List<String> accessAllowDomains) {
this.accessAllowDomains = accessAllowDomains;
return this;
}
public ApplicationKeyGenerateRequest addAccessAllowDomainsItem(String accessAllowDomainsItem) {
this.accessAllowDomains.add(accessAllowDomainsItem);
return this;
}
/**
* Allowed domains for the access token
* @return accessAllowDomains
**/
@ApiModelProperty(example = "null", required = true, value = "Allowed domains for the access token")
public List<String> getAccessAllowDomains() {
return accessAllowDomains;
}
public void setAccessAllowDomains(List<String> accessAllowDomains) {
this.accessAllowDomains = accessAllowDomains;
}
public ApplicationKeyGenerateRequest scopes(List<String> scopes) {
this.scopes = scopes;
return this;
}
public ApplicationKeyGenerateRequest addScopesItem(String scopesItem) {
this.scopes.add(scopesItem);
return this;
}
/**
* Allowed scopes for the access token
* @return scopes
**/
@ApiModelProperty(example = "null", value = "Allowed scopes for the access token")
public List<String> getScopes() {
return scopes;
}
public void setScopes(List<String> scopes) {
this.scopes = scopes;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ApplicationKeyGenerateRequest applicationKeyGenerateRequest = (ApplicationKeyGenerateRequest) o;
return Objects.equals(this.keyType, applicationKeyGenerateRequest.keyType) &&
Objects.equals(this.validityTime, applicationKeyGenerateRequest.validityTime) &&
Objects.equals(this.callbackUrl, applicationKeyGenerateRequest.callbackUrl) &&
Objects.equals(this.accessAllowDomains, applicationKeyGenerateRequest.accessAllowDomains) &&
Objects.equals(this.scopes, applicationKeyGenerateRequest.scopes);
}
@Override
public int hashCode() {
return Objects.hash(keyType, validityTime, callbackUrl, accessAllowDomains, scopes);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ApplicationKeyGenerateRequest {\n");
sb.append(" keyType: ").append(toIndentedString(keyType)).append("\n");
sb.append(" validityTime: ").append(toIndentedString(validityTime)).append("\n");
sb.append(" callbackUrl: ").append(toIndentedString(callbackUrl)).append("\n");
sb.append(" accessAllowDomains: ").append(toIndentedString(accessAllowDomains)).append("\n");
sb.append(" scopes: ").append(toIndentedString(scopes)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

@ -1,175 +0,0 @@
/**
* WSO2 API Manager - Store
* This document specifies a **RESTful API** for WSO2 **API Manager** - Store. It is written with [swagger 2](http://swagger.io/).
*
* OpenAPI spec version: 0.10.0
* Contact: architecture@wso2.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.wso2.carbon.apimgt.integration.client.store.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
/**
* ApplicationList
*/
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-24T00:03:54.991+05:30")
public class ApplicationList {
@JsonProperty("count")
private Integer count = null;
@JsonProperty("next")
private String next = null;
@JsonProperty("previous")
private String previous = null;
@JsonProperty("list")
private List<ApplicationInfo> list = new ArrayList<ApplicationInfo>();
public ApplicationList count(Integer count) {
this.count = count;
return this;
}
/**
* Number of applications returned.
* @return count
**/
@ApiModelProperty(example = "1", value = "Number of applications returned. ")
public Integer getCount() {
return count;
}
public void setCount(Integer count) {
this.count = count;
}
public ApplicationList next(String next) {
this.next = next;
return this;
}
/**
* Link to the next subset of resources qualified. Empty if no more resources are to be returned.
* @return next
**/
@ApiModelProperty(example = "/applications?limit&#x3D;1&amp;offset&#x3D;2&amp;groupId&#x3D;", value = "Link to the next subset of resources qualified. Empty if no more resources are to be returned. ")
public String getNext() {
return next;
}
public void setNext(String next) {
this.next = next;
}
public ApplicationList previous(String previous) {
this.previous = previous;
return this;
}
/**
* Link to the previous subset of resources qualified. Empty if current subset is the first subset returned.
* @return previous
**/
@ApiModelProperty(example = "/applications?limit&#x3D;1&amp;offset&#x3D;0&amp;groupId&#x3D;", value = "Link to the previous subset of resources qualified. Empty if current subset is the first subset returned. ")
public String getPrevious() {
return previous;
}
public void setPrevious(String previous) {
this.previous = previous;
}
public ApplicationList list(List<ApplicationInfo> list) {
this.list = list;
return this;
}
public ApplicationList addListItem(ApplicationInfo listItem) {
this.list.add(listItem);
return this;
}
/**
* Get list
* @return list
**/
@ApiModelProperty(example = "null", value = "")
public List<ApplicationInfo> getList() {
return list;
}
public void setList(List<ApplicationInfo> list) {
this.list = list;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ApplicationList applicationList = (ApplicationList) o;
return Objects.equals(this.count, applicationList.count) &&
Objects.equals(this.next, applicationList.next) &&
Objects.equals(this.previous, applicationList.previous) &&
Objects.equals(this.list, applicationList.list);
}
@Override
public int hashCode() {
return Objects.hash(count, next, previous, list);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ApplicationList {\n");
sb.append(" count: ").append(toIndentedString(count)).append("\n");
sb.append(" next: ").append(toIndentedString(next)).append("\n");
sb.append(" previous: ").append(toIndentedString(previous)).append("\n");
sb.append(" list: ").append(toIndentedString(list)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

@ -1,310 +0,0 @@
/**
* WSO2 API Manager - Store
* This document specifies a **RESTful API** for WSO2 **API Manager** - Store. It is written with [swagger 2](http://swagger.io/).
*
* OpenAPI spec version: 0.10.0
* Contact: architecture@wso2.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.wso2.carbon.apimgt.integration.client.store.model;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.Objects;
/**
* Document
*/
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-24T00:03:54.991+05:30")
public class Document {
@JsonProperty("documentId")
private String documentId = null;
@JsonProperty("name")
private String name = null;
/**
* Gets or Sets type
*/
public enum TypeEnum {
HOWTO("HOWTO"),
SAMPLES("SAMPLES"),
PUBLIC_FORUM("PUBLIC_FORUM"),
SUPPORT_FORUM("SUPPORT_FORUM"),
API_MESSAGE_FORMAT("API_MESSAGE_FORMAT"),
SWAGGER_DOC("SWAGGER_DOC"),
OTHER("OTHER");
private String value;
TypeEnum(String value) {
this.value = value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static TypeEnum fromValue(String text) {
for (TypeEnum b : TypeEnum.values()) {
if (String.valueOf(b.value).equals(text)) {
return b;
}
}
return null;
}
}
@JsonProperty("type")
private TypeEnum type = null;
@JsonProperty("summary")
private String summary = null;
/**
* Gets or Sets sourceType
*/
public enum SourceTypeEnum {
INLINE("INLINE"),
URL("URL"),
FILE("FILE");
private String value;
SourceTypeEnum(String value) {
this.value = value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static SourceTypeEnum fromValue(String text) {
for (SourceTypeEnum b : SourceTypeEnum.values()) {
if (String.valueOf(b.value).equals(text)) {
return b;
}
}
return null;
}
}
@JsonProperty("sourceType")
private SourceTypeEnum sourceType = null;
@JsonProperty("sourceUrl")
private String sourceUrl = null;
@JsonProperty("otherTypeName")
private String otherTypeName = null;
public Document documentId(String documentId) {
this.documentId = documentId;
return this;
}
/**
* Get documentId
* @return documentId
**/
@ApiModelProperty(example = "01234567-0123-0123-0123-012345678901", value = "")
public String getDocumentId() {
return documentId;
}
public void setDocumentId(String documentId) {
this.documentId = documentId;
}
public Document name(String name) {
this.name = name;
return this;
}
/**
* Get name
* @return name
**/
@ApiModelProperty(example = "CalculatorDoc", required = true, value = "")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Document type(TypeEnum type) {
this.type = type;
return this;
}
/**
* Get type
* @return type
**/
@ApiModelProperty(example = "HOWTO", required = true, value = "")
public TypeEnum getType() {
return type;
}
public void setType(TypeEnum type) {
this.type = type;
}
public Document summary(String summary) {
this.summary = summary;
return this;
}
/**
* Get summary
* @return summary
**/
@ApiModelProperty(example = "Summary of Calculator Documentation", value = "")
public String getSummary() {
return summary;
}
public void setSummary(String summary) {
this.summary = summary;
}
public Document sourceType(SourceTypeEnum sourceType) {
this.sourceType = sourceType;
return this;
}
/**
* Get sourceType
* @return sourceType
**/
@ApiModelProperty(example = "INLINE", required = true, value = "")
public SourceTypeEnum getSourceType() {
return sourceType;
}
public void setSourceType(SourceTypeEnum sourceType) {
this.sourceType = sourceType;
}
public Document sourceUrl(String sourceUrl) {
this.sourceUrl = sourceUrl;
return this;
}
/**
* Get sourceUrl
* @return sourceUrl
**/
@ApiModelProperty(example = "", value = "")
public String getSourceUrl() {
return sourceUrl;
}
public void setSourceUrl(String sourceUrl) {
this.sourceUrl = sourceUrl;
}
public Document otherTypeName(String otherTypeName) {
this.otherTypeName = otherTypeName;
return this;
}
/**
* Get otherTypeName
* @return otherTypeName
**/
@ApiModelProperty(example = "", value = "")
public String getOtherTypeName() {
return otherTypeName;
}
public void setOtherTypeName(String otherTypeName) {
this.otherTypeName = otherTypeName;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Document document = (Document) o;
return Objects.equals(this.documentId, document.documentId) &&
Objects.equals(this.name, document.name) &&
Objects.equals(this.type, document.type) &&
Objects.equals(this.summary, document.summary) &&
Objects.equals(this.sourceType, document.sourceType) &&
Objects.equals(this.sourceUrl, document.sourceUrl) &&
Objects.equals(this.otherTypeName, document.otherTypeName);
}
@Override
public int hashCode() {
return Objects.hash(documentId, name, type, summary, sourceType, sourceUrl, otherTypeName);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Document {\n");
sb.append(" documentId: ").append(toIndentedString(documentId)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" summary: ").append(toIndentedString(summary)).append("\n");
sb.append(" sourceType: ").append(toIndentedString(sourceType)).append("\n");
sb.append(" sourceUrl: ").append(toIndentedString(sourceUrl)).append("\n");
sb.append(" otherTypeName: ").append(toIndentedString(otherTypeName)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

@ -1,175 +0,0 @@
/**
* WSO2 API Manager - Store
* This document specifies a **RESTful API** for WSO2 **API Manager** - Store. It is written with [swagger 2](http://swagger.io/).
*
* OpenAPI spec version: 0.10.0
* Contact: architecture@wso2.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.wso2.carbon.apimgt.integration.client.store.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
/**
* DocumentList
*/
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-24T00:03:54.991+05:30")
public class DocumentList {
@JsonProperty("count")
private Integer count = null;
@JsonProperty("next")
private String next = null;
@JsonProperty("previous")
private String previous = null;
@JsonProperty("list")
private List<Document> list = new ArrayList<Document>();
public DocumentList count(Integer count) {
this.count = count;
return this;
}
/**
* Number of Documents returned.
* @return count
**/
@ApiModelProperty(example = "1", value = "Number of Documents returned. ")
public Integer getCount() {
return count;
}
public void setCount(Integer count) {
this.count = count;
}
public DocumentList next(String next) {
this.next = next;
return this;
}
/**
* Link to the next subset of resources qualified. Empty if no more resources are to be returned.
* @return next
**/
@ApiModelProperty(example = "/apis/01234567-0123-0123-0123-012345678901/documents?limit&#x3D;1&amp;offset&#x3D;2", value = "Link to the next subset of resources qualified. Empty if no more resources are to be returned. ")
public String getNext() {
return next;
}
public void setNext(String next) {
this.next = next;
}
public DocumentList previous(String previous) {
this.previous = previous;
return this;
}
/**
* Link to the previous subset of resources qualified. Empty if current subset is the first subset returned.
* @return previous
**/
@ApiModelProperty(example = "/apis/01234567-0123-0123-0123-012345678901/documents?limit&#x3D;1&amp;offset&#x3D;0", value = "Link to the previous subset of resources qualified. Empty if current subset is the first subset returned. ")
public String getPrevious() {
return previous;
}
public void setPrevious(String previous) {
this.previous = previous;
}
public DocumentList list(List<Document> list) {
this.list = list;
return this;
}
public DocumentList addListItem(Document listItem) {
this.list.add(listItem);
return this;
}
/**
* Get list
* @return list
**/
@ApiModelProperty(example = "null", value = "")
public List<Document> getList() {
return list;
}
public void setList(List<Document> list) {
this.list = list;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DocumentList documentList = (DocumentList) o;
return Objects.equals(this.count, documentList.count) &&
Objects.equals(this.next, documentList.next) &&
Objects.equals(this.previous, documentList.previous) &&
Objects.equals(this.list, documentList.list);
}
@Override
public int hashCode() {
return Objects.hash(count, next, previous, list);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DocumentList {\n");
sb.append(" count: ").append(toIndentedString(count)).append("\n");
sb.append(" next: ").append(toIndentedString(next)).append("\n");
sb.append(" previous: ").append(toIndentedString(previous)).append("\n");
sb.append(" list: ").append(toIndentedString(list)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

@ -1,198 +0,0 @@
/**
* WSO2 API Manager - Store
* This document specifies a **RESTful API** for WSO2 **API Manager** - Store. It is written with [swagger 2](http://swagger.io/).
*
* OpenAPI spec version: 0.10.0
* Contact: architecture@wso2.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.wso2.carbon.apimgt.integration.client.store.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
/**
* Error
*/
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-24T00:03:54.991+05:30")
public class Error {
@JsonProperty("code")
private Long code = null;
@JsonProperty("message")
private String message = null;
@JsonProperty("description")
private String description = null;
@JsonProperty("moreInfo")
private String moreInfo = null;
@JsonProperty("error")
private List<ErrorListItem> error = new ArrayList<ErrorListItem>();
public Error code(Long code) {
this.code = code;
return this;
}
/**
* Get code
* @return code
**/
@ApiModelProperty(example = "null", required = true, value = "")
public Long getCode() {
return code;
}
public void setCode(Long code) {
this.code = code;
}
public Error message(String message) {
this.message = message;
return this;
}
/**
* Error message.
* @return message
**/
@ApiModelProperty(example = "null", required = true, value = "Error message.")
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
public Error description(String description) {
this.description = description;
return this;
}
/**
* A detail description about the error message.
* @return description
**/
@ApiModelProperty(example = "null", value = "A detail description about the error message. ")
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public Error moreInfo(String moreInfo) {
this.moreInfo = moreInfo;
return this;
}
/**
* Preferably an url with more details about the error.
* @return moreInfo
**/
@ApiModelProperty(example = "null", value = "Preferably an url with more details about the error. ")
public String getMoreInfo() {
return moreInfo;
}
public void setMoreInfo(String moreInfo) {
this.moreInfo = moreInfo;
}
public Error error(List<ErrorListItem> error) {
this.error = error;
return this;
}
public Error addErrorItem(ErrorListItem errorItem) {
this.error.add(errorItem);
return this;
}
/**
* If there are more than one error list them out. For example, list out validation errors by each field.
* @return error
**/
@ApiModelProperty(example = "null", value = "If there are more than one error list them out. For example, list out validation errors by each field. ")
public List<ErrorListItem> getError() {
return error;
}
public void setError(List<ErrorListItem> error) {
this.error = error;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Error error = (Error) o;
return Objects.equals(this.code, error.code) &&
Objects.equals(this.message, error.message) &&
Objects.equals(this.description, error.description) &&
Objects.equals(this.moreInfo, error.moreInfo) &&
Objects.equals(this.error, error.error);
}
@Override
public int hashCode() {
return Objects.hash(code, message, description, moreInfo, error);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Error {\n");
sb.append(" code: ").append(toIndentedString(code)).append("\n");
sb.append(" message: ").append(toIndentedString(message)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" moreInfo: ").append(toIndentedString(moreInfo)).append("\n");
sb.append(" error: ").append(toIndentedString(error)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

@ -1,122 +0,0 @@
/**
* WSO2 API Manager - Store
* This document specifies a **RESTful API** for WSO2 **API Manager** - Store. It is written with [swagger 2](http://swagger.io/).
*
* OpenAPI spec version: 0.10.0
* Contact: architecture@wso2.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.wso2.carbon.apimgt.integration.client.store.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.Objects;
/**
* ErrorListItem
*/
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-24T00:03:54.991+05:30")
public class ErrorListItem {
@JsonProperty("code")
private String code = null;
@JsonProperty("message")
private String message = null;
public ErrorListItem code(String code) {
this.code = code;
return this;
}
/**
* Get code
* @return code
**/
@ApiModelProperty(example = "null", required = true, value = "")
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public ErrorListItem message(String message) {
this.message = message;
return this;
}
/**
* Description about individual errors occurred
* @return message
**/
@ApiModelProperty(example = "null", required = true, value = "Description about individual errors occurred ")
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ErrorListItem errorListItem = (ErrorListItem) o;
return Objects.equals(this.code, errorListItem.code) &&
Objects.equals(this.message, errorListItem.message);
}
@Override
public int hashCode() {
return Objects.hash(code, message);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ErrorListItem {\n");
sb.append(" code: ").append(toIndentedString(code)).append("\n");
sb.append(" message: ").append(toIndentedString(message)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

@ -1,228 +0,0 @@
/**
* WSO2 API Manager - Store
* This document specifies a **RESTful API** for WSO2 **API Manager** - Store. It is written with [swagger 2](http://swagger.io/).
*
* OpenAPI spec version: 0.10.0
* Contact: architecture@wso2.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.wso2.carbon.apimgt.integration.client.store.model;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.Objects;
/**
* Subscription
*/
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-24T00:03:54.991+05:30")
public class Subscription {
@JsonProperty("subscriptionId")
private String subscriptionId = null;
@JsonProperty("applicationId")
private String applicationId = null;
@JsonProperty("apiIdentifier")
private String apiIdentifier = null;
@JsonProperty("tier")
private String tier = null;
/**
* Gets or Sets status
*/
public enum StatusEnum {
BLOCKED("BLOCKED"),
PROD_ONLY_BLOCKED("PROD_ONLY_BLOCKED"),
UNBLOCKED("UNBLOCKED"),
ON_HOLD("ON_HOLD"),
REJECTED("REJECTED");
private String value;
StatusEnum(String value) {
this.value = value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static StatusEnum fromValue(String text) {
for (StatusEnum b : StatusEnum.values()) {
if (String.valueOf(b.value).equals(text)) {
return b;
}
}
return null;
}
}
@JsonProperty("status")
private StatusEnum status = null;
public Subscription subscriptionId(String subscriptionId) {
this.subscriptionId = subscriptionId;
return this;
}
/**
* Get subscriptionId
* @return subscriptionId
**/
@ApiModelProperty(example = "01234567-0123-0123-0123-012345678901", value = "")
public String getSubscriptionId() {
return subscriptionId;
}
public void setSubscriptionId(String subscriptionId) {
this.subscriptionId = subscriptionId;
}
public Subscription applicationId(String applicationId) {
this.applicationId = applicationId;
return this;
}
/**
* Get applicationId
* @return applicationId
**/
@ApiModelProperty(example = "01234567-0123-0123-0123-012345678901", required = true, value = "")
public String getApplicationId() {
return applicationId;
}
public void setApplicationId(String applicationId) {
this.applicationId = applicationId;
}
public Subscription apiIdentifier(String apiIdentifier) {
this.apiIdentifier = apiIdentifier;
return this;
}
/**
* Get apiIdentifier
* @return apiIdentifier
**/
@ApiModelProperty(example = "01234567-0123-0123-0123-012345678901", required = true, value = "")
public String getApiIdentifier() {
return apiIdentifier;
}
public void setApiIdentifier(String apiIdentifier) {
this.apiIdentifier = apiIdentifier;
}
public Subscription tier(String tier) {
this.tier = tier;
return this;
}
/**
* Get tier
* @return tier
**/
@ApiModelProperty(example = "Unlimited", required = true, value = "")
public String getTier() {
return tier;
}
public void setTier(String tier) {
this.tier = tier;
}
public Subscription status(StatusEnum status) {
this.status = status;
return this;
}
/**
* Get status
* @return status
**/
@ApiModelProperty(example = "UNBLOCKED", value = "")
public StatusEnum getStatus() {
return status;
}
public void setStatus(StatusEnum status) {
this.status = status;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Subscription subscription = (Subscription) o;
return Objects.equals(this.subscriptionId, subscription.subscriptionId) &&
Objects.equals(this.applicationId, subscription.applicationId) &&
Objects.equals(this.apiIdentifier, subscription.apiIdentifier) &&
Objects.equals(this.tier, subscription.tier) &&
Objects.equals(this.status, subscription.status);
}
@Override
public int hashCode() {
return Objects.hash(subscriptionId, applicationId, apiIdentifier, tier, status);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Subscription {\n");
sb.append(" subscriptionId: ").append(toIndentedString(subscriptionId)).append("\n");
sb.append(" applicationId: ").append(toIndentedString(applicationId)).append("\n");
sb.append(" apiIdentifier: ").append(toIndentedString(apiIdentifier)).append("\n");
sb.append(" tier: ").append(toIndentedString(tier)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

@ -1,175 +0,0 @@
/**
* WSO2 API Manager - Store
* This document specifies a **RESTful API** for WSO2 **API Manager** - Store. It is written with [swagger 2](http://swagger.io/).
*
* OpenAPI spec version: 0.10.0
* Contact: architecture@wso2.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.wso2.carbon.apimgt.integration.client.store.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
/**
* SubscriptionList
*/
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-24T00:03:54.991+05:30")
public class SubscriptionList {
@JsonProperty("count")
private Integer count = null;
@JsonProperty("next")
private String next = null;
@JsonProperty("previous")
private String previous = null;
@JsonProperty("list")
private List<Subscription> list = new ArrayList<Subscription>();
public SubscriptionList count(Integer count) {
this.count = count;
return this;
}
/**
* Number of Subscriptions returned.
* @return count
**/
@ApiModelProperty(example = "1", value = "Number of Subscriptions returned. ")
public Integer getCount() {
return count;
}
public void setCount(Integer count) {
this.count = count;
}
public SubscriptionList next(String next) {
this.next = next;
return this;
}
/**
* Link to the next subset of resources qualified. Empty if no more resources are to be returned.
* @return next
**/
@ApiModelProperty(example = "/subscriptions?limit&#x3D;1&amp;offset&#x3D;2&amp;apiId&#x3D;01234567-0123-0123-0123-012345678901&amp;groupId&#x3D;", value = "Link to the next subset of resources qualified. Empty if no more resources are to be returned. ")
public String getNext() {
return next;
}
public void setNext(String next) {
this.next = next;
}
public SubscriptionList previous(String previous) {
this.previous = previous;
return this;
}
/**
* Link to the previous subset of resources qualified. Empty if current subset is the first subset returned.
* @return previous
**/
@ApiModelProperty(example = "/subscriptions?limit&#x3D;1&amp;offset&#x3D;0&amp;apiId&#x3D;01234567-0123-0123-0123-012345678901&amp;groupId&#x3D;", value = "Link to the previous subset of resources qualified. Empty if current subset is the first subset returned. ")
public String getPrevious() {
return previous;
}
public void setPrevious(String previous) {
this.previous = previous;
}
public SubscriptionList list(List<Subscription> list) {
this.list = list;
return this;
}
public SubscriptionList addListItem(Subscription listItem) {
this.list.add(listItem);
return this;
}
/**
* Get list
* @return list
**/
@ApiModelProperty(example = "null", value = "")
public List<Subscription> getList() {
return list;
}
public void setList(List<Subscription> list) {
this.list = list;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
SubscriptionList subscriptionList = (SubscriptionList) o;
return Objects.equals(this.count, subscriptionList.count) &&
Objects.equals(this.next, subscriptionList.next) &&
Objects.equals(this.previous, subscriptionList.previous) &&
Objects.equals(this.list, subscriptionList.list);
}
@Override
public int hashCode() {
return Objects.hash(count, next, previous, list);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class SubscriptionList {\n");
sb.append(" count: ").append(toIndentedString(count)).append("\n");
sb.append(" next: ").append(toIndentedString(next)).append("\n");
sb.append(" previous: ").append(toIndentedString(previous)).append("\n");
sb.append(" list: ").append(toIndentedString(list)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

@ -1,122 +0,0 @@
/**
* WSO2 API Manager - Store
* This document specifies a **RESTful API** for WSO2 **API Manager** - Store. It is written with [swagger 2](http://swagger.io/).
*
* OpenAPI spec version: 0.10.0
* Contact: architecture@wso2.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.wso2.carbon.apimgt.integration.client.store.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.Objects;
/**
* Tag
*/
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-24T00:03:54.991+05:30")
public class Tag {
@JsonProperty("name")
private String name = null;
@JsonProperty("weight")
private Integer weight = null;
public Tag name(String name) {
this.name = name;
return this;
}
/**
* Get name
* @return name
**/
@ApiModelProperty(example = "tag1", required = true, value = "")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Tag weight(Integer weight) {
this.weight = weight;
return this;
}
/**
* Get weight
* @return weight
**/
@ApiModelProperty(example = "5", required = true, value = "")
public Integer getWeight() {
return weight;
}
public void setWeight(Integer weight) {
this.weight = weight;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Tag tag = (Tag) o;
return Objects.equals(this.name, tag.name) &&
Objects.equals(this.weight, tag.weight);
}
@Override
public int hashCode() {
return Objects.hash(name, weight);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Tag {\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" weight: ").append(toIndentedString(weight)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

@ -1,175 +0,0 @@
/**
* WSO2 API Manager - Store
* This document specifies a **RESTful API** for WSO2 **API Manager** - Store. It is written with [swagger 2](http://swagger.io/).
*
* OpenAPI spec version: 0.10.0
* Contact: architecture@wso2.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.wso2.carbon.apimgt.integration.client.store.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
/**
* TagList
*/
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-24T00:03:54.991+05:30")
public class TagList {
@JsonProperty("count")
private Integer count = null;
@JsonProperty("next")
private String next = null;
@JsonProperty("previous")
private String previous = null;
@JsonProperty("list")
private List<Tag> list = new ArrayList<Tag>();
public TagList count(Integer count) {
this.count = count;
return this;
}
/**
* Number of Tags returned.
* @return count
**/
@ApiModelProperty(example = "1", value = "Number of Tags returned. ")
public Integer getCount() {
return count;
}
public void setCount(Integer count) {
this.count = count;
}
public TagList next(String next) {
this.next = next;
return this;
}
/**
* Link to the next subset of resources qualified. Empty if no more resources are to be returned.
* @return next
**/
@ApiModelProperty(example = "/tags?limit&#x3D;1&amp;offset&#x3D;2", value = "Link to the next subset of resources qualified. Empty if no more resources are to be returned. ")
public String getNext() {
return next;
}
public void setNext(String next) {
this.next = next;
}
public TagList previous(String previous) {
this.previous = previous;
return this;
}
/**
* Link to the previous subset of resources qualified. Empty if current subset is the first subset returned.
* @return previous
**/
@ApiModelProperty(example = "/tags?limit&#x3D;1&amp;offset&#x3D;0", value = "Link to the previous subset of resources qualified. Empty if current subset is the first subset returned. ")
public String getPrevious() {
return previous;
}
public void setPrevious(String previous) {
this.previous = previous;
}
public TagList list(List<Tag> list) {
this.list = list;
return this;
}
public TagList addListItem(Tag listItem) {
this.list.add(listItem);
return this;
}
/**
* Get list
* @return list
**/
@ApiModelProperty(example = "null", value = "")
public List<Tag> getList() {
return list;
}
public void setList(List<Tag> list) {
this.list = list;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
TagList tagList = (TagList) o;
return Objects.equals(this.count, tagList.count) &&
Objects.equals(this.next, tagList.next) &&
Objects.equals(this.previous, tagList.previous) &&
Objects.equals(this.list, tagList.list);
}
@Override
public int hashCode() {
return Objects.hash(count, next, previous, list);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class TagList {\n");
sb.append(" count: ").append(toIndentedString(count)).append("\n");
sb.append(" next: ").append(toIndentedString(next)).append("\n");
sb.append(" previous: ").append(toIndentedString(previous)).append("\n");
sb.append(" list: ").append(toIndentedString(list)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

@ -1,328 +0,0 @@
/**
* WSO2 API Manager - Store
* This document specifies a **RESTful API** for WSO2 **API Manager** - Store. It is written with [swagger 2](http://swagger.io/).
*
* OpenAPI spec version: 0.10.0
* Contact: architecture@wso2.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.wso2.carbon.apimgt.integration.client.store.model;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
/**
* Tier
*/
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-24T00:03:54.991+05:30")
public class Tier {
@JsonProperty("name")
private String name = null;
@JsonProperty("description")
private String description = null;
/**
* Gets or Sets tierLevel
*/
public enum TierLevelEnum {
API("api"),
APPLICATION("application");
private String value;
TierLevelEnum(String value) {
this.value = value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static TierLevelEnum fromValue(String text) {
for (TierLevelEnum b : TierLevelEnum.values()) {
if (String.valueOf(b.value).equals(text)) {
return b;
}
}
return null;
}
}
@JsonProperty("tierLevel")
private TierLevelEnum tierLevel = null;
@JsonProperty("attributes")
private Map<String, String> attributes = new HashMap<String, String>();
@JsonProperty("requestCount")
private Long requestCount = null;
@JsonProperty("unitTime")
private Long unitTime = null;
/**
* This attribute declares whether this tier is available under commercial or free
*/
public enum TierPlanEnum {
FREE("FREE"),
COMMERCIAL("COMMERCIAL");
private String value;
TierPlanEnum(String value) {
this.value = value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static TierPlanEnum fromValue(String text) {
for (TierPlanEnum b : TierPlanEnum.values()) {
if (String.valueOf(b.value).equals(text)) {
return b;
}
}
return null;
}
}
@JsonProperty("tierPlan")
private TierPlanEnum tierPlan = null;
@JsonProperty("stopOnQuotaReach")
private Boolean stopOnQuotaReach = null;
public Tier name(String name) {
this.name = name;
return this;
}
/**
* Get name
* @return name
**/
@ApiModelProperty(example = "Platinum", required = true, value = "")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Tier description(String description) {
this.description = description;
return this;
}
/**
* Get description
* @return description
**/
@ApiModelProperty(example = "Allows 50 request(s) per minute.", value = "")
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public Tier tierLevel(TierLevelEnum tierLevel) {
this.tierLevel = tierLevel;
return this;
}
/**
* Get tierLevel
* @return tierLevel
**/
@ApiModelProperty(example = "api", value = "")
public TierLevelEnum getTierLevel() {
return tierLevel;
}
public void setTierLevel(TierLevelEnum tierLevel) {
this.tierLevel = tierLevel;
}
public Tier attributes(Map<String, String> attributes) {
this.attributes = attributes;
return this;
}
public Tier putAttributesItem(String key, String attributesItem) {
this.attributes.put(key, attributesItem);
return this;
}
/**
* Custom attributes added to the tier policy
* @return attributes
**/
@ApiModelProperty(example = "null", value = "Custom attributes added to the tier policy ")
public Map<String, String> getAttributes() {
return attributes;
}
public void setAttributes(Map<String, String> attributes) {
this.attributes = attributes;
}
public Tier requestCount(Long requestCount) {
this.requestCount = requestCount;
return this;
}
/**
* Maximum number of requests which can be sent within a provided unit time
* @return requestCount
**/
@ApiModelProperty(example = "50", required = true, value = "Maximum number of requests which can be sent within a provided unit time ")
public Long getRequestCount() {
return requestCount;
}
public void setRequestCount(Long requestCount) {
this.requestCount = requestCount;
}
public Tier unitTime(Long unitTime) {
this.unitTime = unitTime;
return this;
}
/**
* Get unitTime
* @return unitTime
**/
@ApiModelProperty(example = "60000", required = true, value = "")
public Long getUnitTime() {
return unitTime;
}
public void setUnitTime(Long unitTime) {
this.unitTime = unitTime;
}
public Tier tierPlan(TierPlanEnum tierPlan) {
this.tierPlan = tierPlan;
return this;
}
/**
* This attribute declares whether this tier is available under commercial or free
* @return tierPlan
**/
@ApiModelProperty(example = "FREE", required = true, value = "This attribute declares whether this tier is available under commercial or free ")
public TierPlanEnum getTierPlan() {
return tierPlan;
}
public void setTierPlan(TierPlanEnum tierPlan) {
this.tierPlan = tierPlan;
}
public Tier stopOnQuotaReach(Boolean stopOnQuotaReach) {
this.stopOnQuotaReach = stopOnQuotaReach;
return this;
}
/**
* If this attribute is set to false, you are capabale of sending requests even if the request count exceeded within a unit time
* @return stopOnQuotaReach
**/
@ApiModelProperty(example = "true", required = true, value = "If this attribute is set to false, you are capabale of sending requests even if the request count exceeded within a unit time ")
public Boolean getStopOnQuotaReach() {
return stopOnQuotaReach;
}
public void setStopOnQuotaReach(Boolean stopOnQuotaReach) {
this.stopOnQuotaReach = stopOnQuotaReach;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Tier tier = (Tier) o;
return Objects.equals(this.name, tier.name) &&
Objects.equals(this.description, tier.description) &&
Objects.equals(this.tierLevel, tier.tierLevel) &&
Objects.equals(this.attributes, tier.attributes) &&
Objects.equals(this.requestCount, tier.requestCount) &&
Objects.equals(this.unitTime, tier.unitTime) &&
Objects.equals(this.tierPlan, tier.tierPlan) &&
Objects.equals(this.stopOnQuotaReach, tier.stopOnQuotaReach);
}
@Override
public int hashCode() {
return Objects.hash(name, description, tierLevel, attributes, requestCount, unitTime, tierPlan, stopOnQuotaReach);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Tier {\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" tierLevel: ").append(toIndentedString(tierLevel)).append("\n");
sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n");
sb.append(" requestCount: ").append(toIndentedString(requestCount)).append("\n");
sb.append(" unitTime: ").append(toIndentedString(unitTime)).append("\n");
sb.append(" tierPlan: ").append(toIndentedString(tierPlan)).append("\n");
sb.append(" stopOnQuotaReach: ").append(toIndentedString(stopOnQuotaReach)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

@ -1,175 +0,0 @@
/**
* WSO2 API Manager - Store
* This document specifies a **RESTful API** for WSO2 **API Manager** - Store. It is written with [swagger 2](http://swagger.io/).
*
* OpenAPI spec version: 0.10.0
* Contact: architecture@wso2.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.wso2.carbon.apimgt.integration.client.store.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
/**
* TierList
*/
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-24T00:03:54.991+05:30")
public class TierList {
@JsonProperty("count")
private Integer count = null;
@JsonProperty("next")
private String next = null;
@JsonProperty("previous")
private String previous = null;
@JsonProperty("list")
private List<Tier> list = new ArrayList<Tier>();
public TierList count(Integer count) {
this.count = count;
return this;
}
/**
* Number of Tiers returned.
* @return count
**/
@ApiModelProperty(example = "1", value = "Number of Tiers returned. ")
public Integer getCount() {
return count;
}
public void setCount(Integer count) {
this.count = count;
}
public TierList next(String next) {
this.next = next;
return this;
}
/**
* Link to the next subset of resources qualified. Empty if no more resources are to be returned.
* @return next
**/
@ApiModelProperty(example = "/tiers/api?limit&#x3D;1&amp;offset&#x3D;2", value = "Link to the next subset of resources qualified. Empty if no more resources are to be returned. ")
public String getNext() {
return next;
}
public void setNext(String next) {
this.next = next;
}
public TierList previous(String previous) {
this.previous = previous;
return this;
}
/**
* Link to the previous subset of resources qualified. Empty if current subset is the first subset returned.
* @return previous
**/
@ApiModelProperty(example = "/tiers/api?limit&#x3D;1&amp;offset&#x3D;0", value = "Link to the previous subset of resources qualified. Empty if current subset is the first subset returned. ")
public String getPrevious() {
return previous;
}
public void setPrevious(String previous) {
this.previous = previous;
}
public TierList list(List<Tier> list) {
this.list = list;
return this;
}
public TierList addListItem(Tier listItem) {
this.list.add(listItem);
return this;
}
/**
* Get list
* @return list
**/
@ApiModelProperty(example = "null", value = "")
public List<Tier> getList() {
return list;
}
public void setList(List<Tier> list) {
this.list = list;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
TierList tierList = (TierList) o;
return Objects.equals(this.count, tierList.count) &&
Objects.equals(this.next, tierList.next) &&
Objects.equals(this.previous, tierList.previous) &&
Objects.equals(this.list, tierList.list);
}
@Override
public int hashCode() {
return Objects.hash(count, next, previous, list);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class TierList {\n");
sb.append(" count: ").append(toIndentedString(count)).append("\n");
sb.append(" next: ").append(toIndentedString(next)).append("\n");
sb.append(" previous: ").append(toIndentedString(previous)).append("\n");
sb.append(" list: ").append(toIndentedString(list)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

@ -1,152 +0,0 @@
/**
* WSO2 API Manager - Store
* This document specifies a **RESTful API** for WSO2 **API Manager** - Store. It is written with [swagger 2](http://swagger.io/).
*
* OpenAPI spec version: 0.10.0
* Contact: architecture@wso2.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.wso2.carbon.apimgt.integration.client.store.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
/**
* Token
*/
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-24T00:03:54.991+05:30")
public class Token {
@JsonProperty("accessToken")
private String accessToken = null;
@JsonProperty("tokenScopes")
private List<String> tokenScopes = new ArrayList<String>();
@JsonProperty("validityTime")
private Long validityTime = null;
public Token accessToken(String accessToken) {
this.accessToken = accessToken;
return this;
}
/**
* Access token
* @return accessToken
**/
@ApiModelProperty(example = "1.2345678901234568E30", value = "Access token")
public String getAccessToken() {
return accessToken;
}
public void setAccessToken(String accessToken) {
this.accessToken = accessToken;
}
public Token tokenScopes(List<String> tokenScopes) {
this.tokenScopes = tokenScopes;
return this;
}
public Token addTokenScopesItem(String tokenScopesItem) {
this.tokenScopes.add(tokenScopesItem);
return this;
}
/**
* Valid scopes for the access token
* @return tokenScopes
**/
@ApiModelProperty(example = "null", value = "Valid scopes for the access token")
public List<String> getTokenScopes() {
return tokenScopes;
}
public void setTokenScopes(List<String> tokenScopes) {
this.tokenScopes = tokenScopes;
}
public Token validityTime(Long validityTime) {
this.validityTime = validityTime;
return this;
}
/**
* Maximum validity time for the access token
* @return validityTime
**/
@ApiModelProperty(example = "3600", value = "Maximum validity time for the access token")
public Long getValidityTime() {
return validityTime;
}
public void setValidityTime(Long validityTime) {
this.validityTime = validityTime;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Token token = (Token) o;
return Objects.equals(this.accessToken, token.accessToken) &&
Objects.equals(this.tokenScopes, token.tokenScopes) &&
Objects.equals(this.validityTime, token.validityTime);
}
@Override
public int hashCode() {
return Objects.hash(accessToken, tokenScopes, validityTime);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Token {\n");
sb.append(" accessToken: ").append(toIndentedString(accessToken)).append("\n");
sb.append(" tokenScopes: ").append(toIndentedString(tokenScopes)).append("\n");
sb.append(" validityTime: ").append(toIndentedString(validityTime)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

@ -1,41 +0,0 @@
/*
* Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. 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 org.wso2.carbon.apimgt.integration.client.util;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class PropertyUtils {
//This method is only used if the mb features are within DAS.
public static String replaceProperties(String text) {
String regex = "\\$\\{(.*?)\\}";
Pattern pattern = Pattern.compile(regex);
Matcher matchPattern = pattern.matcher(text);
while (matchPattern.find()) {
String sysPropertyName = matchPattern.group(1);
String sysPropertyValue = System.getProperty(sysPropertyName);
if (sysPropertyValue != null && !sysPropertyName.isEmpty()) {
text = text.replaceAll("\\$\\{(" + sysPropertyName + ")\\}", sysPropertyValue);
}
}
return text;
}
}

@ -0,0 +1,89 @@
/*
* Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. 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 org.wso2.carbon.apimgt.integration.client.util;
import feign.Client;
import javax.net.ssl.HostnameVerifier;
import javax.net.ssl.SSLContext;
import javax.net.ssl.SSLSession;
import javax.net.ssl.SSLSocketFactory;
import javax.net.ssl.TrustManager;
import javax.net.ssl.X509TrustManager;
import java.io.IOException;
import java.security.KeyManagementException;
import java.security.NoSuchAlgorithmException;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import feign.Logger;
import feign.Request;
import feign.Response;
import org.apache.commons.logging.Log;
public class Utils {
//This method is only used if the mb features are within DAS.
public static String replaceProperties(String text) {
String regex = "\\$\\{(.*?)\\}";
Pattern pattern = Pattern.compile(regex);
Matcher matchPattern = pattern.matcher(text);
while (matchPattern.find()) {
String sysPropertyName = matchPattern.group(1);
String sysPropertyValue = System.getProperty(sysPropertyName);
if (sysPropertyValue != null && !sysPropertyName.isEmpty()) {
text = text.replaceAll("\\$\\{(" + sysPropertyName + ")\\}", sysPropertyValue);
}
}
return text;
}
public static Client getSSLClient() {
return new Client.Default(getTrustedSSLSocketFactory(), new HostnameVerifier() {
@Override
public boolean verify(String s, SSLSession sslSession) {
return true;
}
});
}
private static SSLSocketFactory getTrustedSSLSocketFactory() {
try {
TrustManager[] trustAllCerts = new TrustManager[]{
new X509TrustManager() {
public java.security.cert.X509Certificate[] getAcceptedIssuers() {
return null;
}
public void checkClientTrusted(
java.security.cert.X509Certificate[] certs, String authType) {
}
public void checkServerTrusted(
java.security.cert.X509Certificate[] certs, String authType) {
}
}
};
SSLContext sc = SSLContext.getInstance("SSL");
sc.init(null, trustAllCerts, new java.security.SecureRandom());
return sc.getSocketFactory();
} catch (KeyManagementException | NoSuchAlgorithmException e) {
return null;
}
}
}

@ -0,0 +1,205 @@
<!-- ~ Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
~ ~ WSO2 Inc. 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. -->
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>apimgt-extensions</artifactId>
<groupId>org.wso2.carbon.devicemgt</groupId>
<version>2.0.16-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>org.wso2.carbon.apimgt.integration.generated.client</artifactId>
<version>2.0.16-SNAPSHOT</version>
<packaging>bundle</packaging>
<name>WSO2 Carbon - API Management Integration Client</name>
<description>WSO2 Carbon - API Management Integration Client</description>
<url>http://wso2.org</url>
<build>
<plugins>
<!--swagger yaml is used to generate code-->
<plugin>
<groupId>io.swagger</groupId>
<artifactId>swagger-codegen-maven-plugin</artifactId>
<version>2.2.1</version>
<executions>
<execution>
<phase>process-resources</phase>
<id>publisher</id>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<inputSpec>${project.basedir}/src/main/resources/publisher-api.yaml</inputSpec>
<language>java</language>
<configOptions>
<apiPackage>${project.artifactId}.publisher.api</apiPackage>
<modelPackage>${project.artifactId}.publisher.model</modelPackage>
</configOptions>
<library>feign</library>
</configuration>
</execution>
<execution>
<phase>process-resources</phase>
<id>store</id>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<inputSpec>${project.basedir}/src/main/resources/store-api.yaml</inputSpec>
<language>java</language>
<configOptions>
<apiPackage>${project.artifactId}.store.api</apiPackage>
<modelPackage>${project.artifactId}.store.model</modelPackage>
</configOptions>
<library>feign</library>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.google.code.maven-replacer-plugin</groupId>
<artifactId>replacer</artifactId>
<version>1.5.2</version>
<executions>
<!-- Replace java code that is generated from swagger to fix swagger client generation issues. -->
<execution>
<phase>process-resources</phase>
<id>replace-for-swagger-genenerated-code-publisher</id>
<goals>
<goal>replace</goal>
</goals>
<configuration>
<file>${project.basedir}/target/generated-sources/swagger/src/main/java/org/wso2/carbon/apimgt/integration/generated/client/publisher/model/API.java</file>
<replacements>
<replacement>
<token>CURRENT_TENANT</token>
<value>current_tenant</value>
</replacement>
<replacement>
<token>ALL_TENANTS</token>
<value>all_tenants</value>
</replacement>
<replacement>
<token>SPECIFIC_TENANTS</token>
<value>specific_tenants</value>
</replacement>
</replacements>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<instructions>
<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
<Bundle-Name>${project.artifactId}</Bundle-Name>
<Bundle-Version>${project.version}</Bundle-Version>
<Bundle-Description>APIM Integration</Bundle-Description>
<Export-Package>
org.wso2.carbon.apimgt.integration.generated.client.publisher.api.*,
org.wso2.carbon.apimgt.integration.generated.client.publisher.model.*,
org.wso2.carbon.apimgt.integration.generated.client.store.api.*,
org.wso2.carbon.apimgt.integration.generated.client.store.model.*
</Export-Package>
<Import-Package>
feign;version="${io.github.openfeign.version.range}",
feign.jackson;version="${io.github.openfeign.version.range}",
feign.codec;version="${io.github.openfeign.version.range}",
feign.auth;version="${io.github.openfeign.version.range}",
feign.gson;version="${io.github.openfeign.version.range}",
feign.slf4j;version="${io.github.openfeign.version.range}",
com.google.gson,
com.fasterxml.jackson.core;resolution:=optional,
com.fasterxml.jackson.annotation,
com.fasterxml.jackson.databind;resolution:=optional,
io.swagger.annotations,
javax.net.ssl,
com.fasterxml.jackson.datatype.joda;resolution:=optional,
org.apache.oltu.oauth2.client.*;resolution:=optional,
org.apache.oltu.oauth2.common.*;resolution:=optional,
org.junit;resolution:=optional,
</Import-Package>
<Embed-Dependency>
jsr311-api,
feign-jaxrs
</Embed-Dependency>
</instructions>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
</dependency>
<dependency>
<groupId>javax.ws.rs</groupId>
<artifactId>jsr311-api</artifactId>
</dependency>
<dependency>
<groupId>io.swagger</groupId>
<artifactId>swagger-annotations</artifactId>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</dependency>
<dependency>
<groupId>io.github.openfeign</groupId>
<artifactId>feign-core</artifactId>
</dependency>
<dependency>
<groupId>io.github.openfeign</groupId>
<artifactId>feign-jackson</artifactId>
</dependency>
<dependency>
<groupId>io.github.openfeign</groupId>
<artifactId>feign-jaxrs</artifactId>
</dependency>
<dependency>
<groupId>io.github.openfeign</groupId>
<artifactId>feign-gson</artifactId>
</dependency>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
</dependency>
<dependency>
<groupId>org.apache.oltu.oauth2</groupId>
<artifactId>org.apache.oltu.oauth2.client</artifactId>
</dependency>
<dependency>
<groupId>io.github.openfeign</groupId>
<artifactId>feign-slf4j</artifactId>
</dependency>
<dependency>
<groupId>org.wso2.orbit.com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>${jackson-databind.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-joda</artifactId>
</dependency>
</dependencies>
</project>

@ -160,7 +160,9 @@
org.wso2.carbon.core.util,
org.wso2.carbon.user.api,
org.wso2.carbon.user.core.*,
org.wso2.carbon.utils.multitenancy
org.wso2.carbon.utils.multitenancy,
org.wso2.carbon.apimgt.integration.generated.client.publisher.api,
org.wso2.carbon.apimgt.integration.generated.client.publisher.model
</Import-Package>
<Embed-Dependency>
javax.ws.rs-api,

@ -19,12 +19,11 @@
package org.wso2.carbon.apimgt.webapp.publisher;
import feign.FeignException;
import org.wso2.carbon.apimgt.integration.generated.client.publisher.model.*;
import org.wso2.carbon.apimgt.integration.client.publisher.PublisherClient;
import org.wso2.carbon.apimgt.integration.client.publisher.model.*;
import org.wso2.carbon.apimgt.webapp.publisher.config.WebappPublisherConfig;
import org.wso2.carbon.apimgt.webapp.publisher.exception.APIManagerPublisherException;
import org.wso2.carbon.apimgt.webapp.publisher.internal.APIPublisherDataHolder;
import org.wso2.carbon.base.MultitenantConstants;
import org.wso2.carbon.context.PrivilegedCarbonContext;
import org.wso2.carbon.utils.multitenancy.MultitenantUtils;
import java.util.*;
@ -105,8 +104,8 @@ public class APIPublisherServiceImpl implements APIPublisherService {
api.setApiDefinition(APIPublisherUtil.getSwaggerDefinition(config));
api.setWsdlUri(null);
api.setStatus(PUBLISHED_STATUS);
api.responseCaching("DISABLED");
api.destinationStatsEnabled("false");
api.setResponseCaching("DISABLED");
api.setDestinationStatsEnabled("false");
api.isDefaultVersion(true);
List<String> transport = new ArrayList<>();
transport.add("https");

@ -34,6 +34,7 @@
<url>http://wso2.org</url>
<modules>
<module>org.wso2.carbon.apimgt.integration.generated.client</module>
<module>org.wso2.carbon.apimgt.integration.client</module>
<module>org.wso2.carbon.apimgt.webapp.publisher</module>
<module>org.wso2.carbon.apimgt.application.extension</module>

@ -315,22 +315,6 @@ public class DeviceManagementProviderServiceImpl implements DeviceManagementProv
return enrolmentInfos;
}
@Override
public List<Integer> getDeviceEnrolledTenants() throws DeviceManagementException {
try {
DeviceManagementDAOFactory.openConnection();
return deviceDAO.getDeviceEnrolledTenants();
} catch (DeviceManagementDAOException e) {
throw new DeviceManagementException("Error occurred while retrieving the tenants " +
"which have device enrolled.", e);
} catch (SQLException e) {
throw new DeviceManagementException("Error occurred while opening a connection to the data source", e);
} finally {
DeviceManagementDAOFactory.closeConnection();
}
}
@Override
public boolean disenrollDevice(DeviceIdentifier deviceId) throws DeviceManagementException {
DeviceManager deviceManager = this.getDeviceManager(deviceId.getType());
@ -1295,6 +1279,21 @@ public class DeviceManagementProviderServiceImpl implements DeviceManagementProv
return dms.getPolicyMonitoringManager();
}
@Override
public List<Integer> getDeviceEnrolledTenants() throws DeviceManagementException {
try {
DeviceManagementDAOFactory.openConnection();
return deviceDAO.getDeviceEnrolledTenants();
} catch (DeviceManagementDAOException e) {
throw new DeviceManagementException("Error occurred while retrieving the tenants " +
"which have device enrolled.", e);
} catch (SQLException e) {
throw new DeviceManagementException("Error occurred while opening a connection to the data source", e);
} finally {
DeviceManagementDAOFactory.closeConnection();
}
}
@Override
public List<Device> getDevicesOfUser(String username) throws DeviceManagementException {
List<Device> devices = new ArrayList<>();

@ -23,6 +23,7 @@ import com.google.gson.Gson;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.wso2.carbon.context.PrivilegedCarbonContext;
import org.wso2.carbon.device.mgt.common.DeviceManagementException;
import org.wso2.carbon.device.mgt.common.OperationMonitoringTaskConfig;
import org.wso2.carbon.device.mgt.core.internal.DeviceManagementDataHolder;
import org.wso2.carbon.device.mgt.core.task.DeviceMgtTaskException;
@ -33,6 +34,7 @@ import org.wso2.carbon.user.api.UserStoreException;
import org.wso2.carbon.device.mgt.common.DeviceManagementException;
import java.util.List;
import java.util.List;
import java.util.Map;
public class DeviceDetailsRetrieverTask implements Task {

@ -51,6 +51,16 @@ var operationModule = function () {
feature["contentType"] = features[i].contentType;
feature["deviceType"] = deviceType;
feature["params"] = [];
var featuresEntry = utility.getDeviceTypeConfig(deviceType)["deviceType"]["features"];
if (featuresEntry) {
var featureEntry = featuresEntry[features[i].code];
if (featureEntry) {
var permissionEntry = featureEntry["permission"];
if (permissionEntry) {
feature["permission"] = permissionEntry
}
}
}
var metaData = features[i].metadataEntries;
if (metaData) {
for (var j = 0; j < metaData.length; j++) {

@ -511,7 +511,7 @@ var userModule = function () {
permissions["LIST_DEVICES"] = true;
permissions["LIST_OWN_DEVICES"] = true;
}
if (publicMethods.isAuthorized("/permission/admin/device-mgt/devices/owning-device")) {
if (publicMethods.isAuthorized("/permission/admin/device-mgt/devices/owning-device/view")) {
permissions["LIST_OWN_DEVICES"] = true;
}
if (publicMethods.isAuthorized("/permission/admin/device-mgt/admin/groups/view")) {

@ -30,11 +30,15 @@ application.put("carbonServer", carbonServer);
var permissions = {
"/permission/admin/Login": ["ui.execute"],
"/permission/admin/manage/api/subscribe": ["ui.execute"]
"/permission/admin/device-mgt/device/api/subscribe": ["ui.execute"],
"/permission/admin/device-mgt/devices/enroll": ["ui.execute"],
"/permission/admin/device-mgt/devices/disenroll": ["ui.execute"],
"/permission/admin/device-mgt/devices/owning-device/view": ["ui.execute"]
};
var adminPermissions = {
"/permission/admin": ["ui.execute"]
"/permission/admin/device-mgt": ["ui.execute"],
"/permission/admin/manage/api": ["ui.execute"]
};
//On Startup, admin user will get both roles: devicemgt-admin and devicemgt-user

@ -39,6 +39,10 @@
<groupId>org.wso2.carbon.devicemgt</groupId>
<artifactId>org.wso2.carbon.apimgt.integration.client</artifactId>
</dependency>
<dependency>
<groupId>org.wso2.carbon.devicemgt</groupId>
<artifactId>org.wso2.carbon.apimgt.integration.generated.client</artifactId>
</dependency>
</dependencies>
<build>
@ -98,9 +102,15 @@
<bundleDef>
io.github.openfeign:feign-gson:${io.github.openfeign.version}
</bundleDef>
<bundleDef>
io.github.openfeign:feign-slf4j:${io.github.openfeign.version}
</bundleDef>
<bundleDef>
org.wso2.carbon.devicemgt:org.wso2.carbon.apimgt.integration.client:${project.version}
</bundleDef>
<bundleDef>
org.wso2.carbon.devicemgt:org.wso2.carbon.apimgt.integration.generated.client:${project.version}
</bundleDef>
</bundles>
</configuration>
</execution>
@ -108,11 +118,4 @@
</plugin>
</plugins>
</build>
<properties>
<carbon.p2.plugin.version>1.5.4</carbon.p2.plugin.version>
<carbon.kernel.version>4.4.10</carbon.kernel.version>
<io.github.openfeign.version>9.3.1</io.github.openfeign.version>
</properties>
</project>

@ -205,6 +205,11 @@
<artifactId>org.wso2.carbon.apimgt.integration.client</artifactId>
<version>${carbon.device.mgt.version}</version>
</dependency>
<dependency>
<groupId>org.wso2.carbon.devicemgt</groupId>
<artifactId>org.wso2.carbon.apimgt.integration.generated.client</artifactId>
<version>${carbon.device.mgt.version}</version>
</dependency>
<dependency>
<groupId>org.wso2.carbon.devicemgt</groupId>
<artifactId>org.wso2.carbon.apimgt.annotations</artifactId>
@ -1914,6 +1919,7 @@
<!--Feign Version-->
<io.github.openfeign.version>9.3.1</io.github.openfeign.version>
<io.github.openfeign.version.range>[9.3.1,10.0.0)</io.github.openfeign.version.range>
<!--Oltu client Version-->
<oltu.client.version>1.0.1</oltu.client.version>
<jackson.datatype.joda.version>2.1.5</jackson.datatype.joda.version>

Loading…
Cancel
Save