-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
99f1f3b
commit 9b49f2e
Showing
52 changed files
with
4,529 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
109 changes: 109 additions & 0 deletions
109
...main/java-generated/com/commercetools/api/client/ByProjectKeyBusinessUnitsSearchHead.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
|
||
package com.commercetools.api.client; | ||
|
||
import java.net.URI; | ||
import java.time.Duration; | ||
import java.util.ArrayList; | ||
import java.util.List; | ||
import java.util.concurrent.CompletableFuture; | ||
|
||
import com.fasterxml.jackson.core.type.TypeReference; | ||
|
||
import io.vrap.rmf.base.client.*; | ||
import io.vrap.rmf.base.client.utils.Generated; | ||
|
||
import org.apache.commons.lang3.builder.EqualsBuilder; | ||
import org.apache.commons.lang3.builder.HashCodeBuilder; | ||
|
||
/** | ||
* <p>Checks whether a search index of Business Units exists for a Project. Returns a <code>200 OK</code> if an index exists; otherwise, returns a <code>409 Conflict</code>.</p> | ||
* | ||
* <hr> | ||
* <div class=code-example> | ||
* <pre><code class='java'>{@code | ||
* CompletableFuture<ApiHttpResponse<com.fasterxml.jackson.databind.JsonNode>> result = apiRoot | ||
* .withProjectKey("{projectKey}") | ||
* .businessUnits() | ||
* .search() | ||
* .head() | ||
* .execute() | ||
* }</code></pre> | ||
* </div> | ||
*/ | ||
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") | ||
public class ByProjectKeyBusinessUnitsSearchHead | ||
extends TypeApiMethod<ByProjectKeyBusinessUnitsSearchHead, com.fasterxml.jackson.databind.JsonNode> | ||
implements com.commercetools.api.client.ErrorableTrait<ByProjectKeyBusinessUnitsSearchHead>, | ||
com.commercetools.api.client.Deprecatable200Trait<ByProjectKeyBusinessUnitsSearchHead> { | ||
|
||
@Override | ||
public TypeReference<com.fasterxml.jackson.databind.JsonNode> resultType() { | ||
return new TypeReference<com.fasterxml.jackson.databind.JsonNode>() { | ||
}; | ||
} | ||
|
||
private String projectKey; | ||
|
||
public ByProjectKeyBusinessUnitsSearchHead(final ApiHttpClient apiHttpClient, String projectKey) { | ||
super(apiHttpClient); | ||
this.projectKey = projectKey; | ||
} | ||
|
||
public ByProjectKeyBusinessUnitsSearchHead(ByProjectKeyBusinessUnitsSearchHead t) { | ||
super(t); | ||
this.projectKey = t.projectKey; | ||
} | ||
|
||
@Override | ||
protected ApiHttpRequest buildHttpRequest() { | ||
List<String> params = new ArrayList<>(getQueryParamUriStrings()); | ||
String httpRequestPath = String.format("%s/business-units/search", encodePathParam(this.projectKey)); | ||
if (!params.isEmpty()) { | ||
httpRequestPath += "?" + String.join("&", params); | ||
} | ||
return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); | ||
} | ||
|
||
@Override | ||
public ApiHttpResponse<com.fasterxml.jackson.databind.JsonNode> executeBlocking(final ApiHttpClient client, | ||
final Duration timeout) { | ||
return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); | ||
} | ||
|
||
@Override | ||
public CompletableFuture<ApiHttpResponse<com.fasterxml.jackson.databind.JsonNode>> execute( | ||
final ApiHttpClient client) { | ||
return execute(client, com.fasterxml.jackson.databind.JsonNode.class); | ||
} | ||
|
||
public String getProjectKey() { | ||
return this.projectKey; | ||
} | ||
|
||
public void setProjectKey(final String projectKey) { | ||
this.projectKey = projectKey; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) | ||
return true; | ||
|
||
if (o == null || getClass() != o.getClass()) | ||
return false; | ||
|
||
ByProjectKeyBusinessUnitsSearchHead that = (ByProjectKeyBusinessUnitsSearchHead) o; | ||
|
||
return new EqualsBuilder().append(projectKey, that.projectKey).isEquals(); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return new HashCodeBuilder(17, 37).append(projectKey).toHashCode(); | ||
} | ||
|
||
@Override | ||
protected ByProjectKeyBusinessUnitsSearchHead copy() { | ||
return new ByProjectKeyBusinessUnitsSearchHead(this); | ||
} | ||
} |
112 changes: 112 additions & 0 deletions
112
...erated/com/commercetools/api/client/ByProjectKeyBusinessUnitsSearchIndexingStatusGet.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
|
||
package com.commercetools.api.client; | ||
|
||
import java.net.URI; | ||
import java.time.Duration; | ||
import java.util.ArrayList; | ||
import java.util.List; | ||
import java.util.concurrent.CompletableFuture; | ||
|
||
import com.fasterxml.jackson.core.type.TypeReference; | ||
|
||
import io.vrap.rmf.base.client.*; | ||
import io.vrap.rmf.base.client.utils.Generated; | ||
|
||
import org.apache.commons.lang3.builder.EqualsBuilder; | ||
import org.apache.commons.lang3.builder.HashCodeBuilder; | ||
|
||
/** | ||
* <p>Returns the indexing status of the Business Unit Search for a Project.</p> | ||
* | ||
* <hr> | ||
* <div class=code-example> | ||
* <pre><code class='java'>{@code | ||
* CompletableFuture<ApiHttpResponse<com.commercetools.api.models.business_unit_search.BusinessUnitSearchIndexingStatusResponse>> result = apiRoot | ||
* .withProjectKey("{projectKey}") | ||
* .businessUnits() | ||
* .searchIndexingStatus() | ||
* .get() | ||
* .execute() | ||
* }</code></pre> | ||
* </div> | ||
*/ | ||
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") | ||
public class ByProjectKeyBusinessUnitsSearchIndexingStatusGet extends | ||
TypeApiMethod<ByProjectKeyBusinessUnitsSearchIndexingStatusGet, com.commercetools.api.models.business_unit_search.BusinessUnitSearchIndexingStatusResponse> | ||
implements com.commercetools.api.client.ErrorableTrait<ByProjectKeyBusinessUnitsSearchIndexingStatusGet>, | ||
com.commercetools.api.client.Deprecatable200Trait<ByProjectKeyBusinessUnitsSearchIndexingStatusGet> { | ||
|
||
@Override | ||
public TypeReference<com.commercetools.api.models.business_unit_search.BusinessUnitSearchIndexingStatusResponse> resultType() { | ||
return new TypeReference<com.commercetools.api.models.business_unit_search.BusinessUnitSearchIndexingStatusResponse>() { | ||
}; | ||
} | ||
|
||
private String projectKey; | ||
|
||
public ByProjectKeyBusinessUnitsSearchIndexingStatusGet(final ApiHttpClient apiHttpClient, String projectKey) { | ||
super(apiHttpClient); | ||
this.projectKey = projectKey; | ||
} | ||
|
||
public ByProjectKeyBusinessUnitsSearchIndexingStatusGet(ByProjectKeyBusinessUnitsSearchIndexingStatusGet t) { | ||
super(t); | ||
this.projectKey = t.projectKey; | ||
} | ||
|
||
@Override | ||
protected ApiHttpRequest buildHttpRequest() { | ||
List<String> params = new ArrayList<>(getQueryParamUriStrings()); | ||
String httpRequestPath = String.format("%s/business-units/search/indexing-status", | ||
encodePathParam(this.projectKey)); | ||
if (!params.isEmpty()) { | ||
httpRequestPath += "?" + String.join("&", params); | ||
} | ||
return new ApiHttpRequest(ApiHttpMethod.GET, URI.create(httpRequestPath), getHeaders(), null); | ||
} | ||
|
||
@Override | ||
public ApiHttpResponse<com.commercetools.api.models.business_unit_search.BusinessUnitSearchIndexingStatusResponse> executeBlocking( | ||
final ApiHttpClient client, final Duration timeout) { | ||
return executeBlocking(client, timeout, | ||
com.commercetools.api.models.business_unit_search.BusinessUnitSearchIndexingStatusResponse.class); | ||
} | ||
|
||
@Override | ||
public CompletableFuture<ApiHttpResponse<com.commercetools.api.models.business_unit_search.BusinessUnitSearchIndexingStatusResponse>> execute( | ||
final ApiHttpClient client) { | ||
return execute(client, | ||
com.commercetools.api.models.business_unit_search.BusinessUnitSearchIndexingStatusResponse.class); | ||
} | ||
|
||
public String getProjectKey() { | ||
return this.projectKey; | ||
} | ||
|
||
public void setProjectKey(final String projectKey) { | ||
this.projectKey = projectKey; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) | ||
return true; | ||
|
||
if (o == null || getClass() != o.getClass()) | ||
return false; | ||
|
||
ByProjectKeyBusinessUnitsSearchIndexingStatusGet that = (ByProjectKeyBusinessUnitsSearchIndexingStatusGet) o; | ||
|
||
return new EqualsBuilder().append(projectKey, that.projectKey).isEquals(); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return new HashCodeBuilder(17, 37).append(projectKey).toHashCode(); | ||
} | ||
|
||
@Override | ||
protected ByProjectKeyBusinessUnitsSearchIndexingStatusGet copy() { | ||
return new ByProjectKeyBusinessUnitsSearchIndexingStatusGet(this); | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
...commercetools/api/client/ByProjectKeyBusinessUnitsSearchIndexingStatusRequestBuilder.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
|
||
package com.commercetools.api.client; | ||
|
||
import io.vrap.rmf.base.client.ApiHttpClient; | ||
import io.vrap.rmf.base.client.utils.Generated; | ||
|
||
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") | ||
public class ByProjectKeyBusinessUnitsSearchIndexingStatusRequestBuilder { | ||
|
||
private final ApiHttpClient apiHttpClient; | ||
private final String projectKey; | ||
|
||
public ByProjectKeyBusinessUnitsSearchIndexingStatusRequestBuilder(final ApiHttpClient apiHttpClient, | ||
final String projectKey) { | ||
this.apiHttpClient = apiHttpClient; | ||
this.projectKey = projectKey; | ||
} | ||
|
||
public ByProjectKeyBusinessUnitsSearchIndexingStatusGet get() { | ||
return new ByProjectKeyBusinessUnitsSearchIndexingStatusGet(apiHttpClient, projectKey); | ||
} | ||
|
||
} |
Oops, something went wrong.