Skip to content

Commit

Permalink
Merge branch 'main' into feat/wait-task
Browse files Browse the repository at this point in the history
  • Loading branch information
eunjae-lee committed May 19, 2022
2 parents 395dfe6 + 96fddef commit fbdb035
Show file tree
Hide file tree
Showing 158 changed files with 2,318 additions and 2,279 deletions.
6 changes: 5 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
ignorePatterns: ['.eslintrc.js', '**/node_modules', '**/build', '**/dist', '**/target', '**/.yarn'],
ignorePatterns: ['.eslintrc.js', '**/node_modules', '**/build', '**/dist', '**/target', '**/.yarn', 'specs/bundled/*.doc.yml'],

overrides: [
{
Expand Down Expand Up @@ -51,6 +51,10 @@ module.exports = {
files: ['!specs/bundled/*.yml'],
rules: {
"automation-custom/out-of-line-enum": "error",
"automation-custom/out-of-line-one-of": "error",
"automation-custom/out-of-line-all-of": "error",
"automation-custom/out-of-line-any-of": "error",

}
}
]
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,6 @@ jobs:

- name: Push generated code
id: pushGeneratedCode
if: ${{ needs.setup.outputs.RUN_CODEGEN == 'true' }}
run: yarn workspace scripts pushGeneratedCode
env:
GITHUB_TOKEN: ${{ secrets.TOKEN_GENERATE_BOT }}
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/codegen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.TOKEN_GENERATE_BOT }}
PR_NUMBER: ${{ github.event.number }}
HEAD_BRANCH: ${{ github.head_ref }}

cleanup:
runs-on: ubuntu-20.04
Expand All @@ -41,11 +42,11 @@ jobs:
with:
type: minimal

- name: Clean previously generated branch
run: yarn workspace scripts cleanGeneratedBranch ${{ github.head_ref }}

- name: Add cleanup comment
run: yarn workspace scripts upsertGenerationComment cleanup
env:
GITHUB_TOKEN: ${{ secrets.TOKEN_GENERATE_BOT }}
PR_NUMBER: ${{ github.event.number }}

- name: Clean previously generated branch
run: yarn workspace scripts cleanGeneratedBranch ${{ github.head_ref }}
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ private static List<StatefulHost> getDefaultHosts(String region) {
* @param querySuggestionsIndexWithIndexParam (required)
* @param requestOptions The requestOptions to send along with the query, they will be merged with
* the transporter requestOptions.
* @return SucessResponse
* @return SuccessResponse
* @throws AlgoliaRuntimeException If fail to call the API, e.g. server error or cannot
* deserialize the response body
*/
public SucessResponse createConfig(
public SuccessResponse createConfig(
QuerySuggestionsIndexWithIndexParam querySuggestionsIndexWithIndexParam,
RequestOptions requestOptions
) throws AlgoliaRuntimeException {
Expand All @@ -86,7 +86,7 @@ public SucessResponse createConfig(
);
}

public SucessResponse createConfig(
public SuccessResponse createConfig(
QuerySuggestionsIndexWithIndexParam querySuggestionsIndexWithIndexParam
) throws AlgoliaRuntimeException {
return this.createConfig(querySuggestionsIndexWithIndexParam, null);
Expand All @@ -103,7 +103,7 @@ public SucessResponse createConfig(
* @throws AlgoliaRuntimeException If fail to process the API call, e.g. serializing the request
* body object
*/
public CompletableFuture<SucessResponse> createConfigAsync(
public CompletableFuture<SuccessResponse> createConfigAsync(
QuerySuggestionsIndexWithIndexParam querySuggestionsIndexWithIndexParam,
RequestOptions requestOptions
) throws AlgoliaRuntimeException {
Expand Down Expand Up @@ -131,11 +131,11 @@ public CompletableFuture<SucessResponse> createConfigAsync(
headers,
requestOptions
);
Type returnType = new TypeToken<SucessResponse>() {}.getType();
Type returnType = new TypeToken<SuccessResponse>() {}.getType();
return this.executeAsync(call, returnType);
}

public CompletableFuture<SucessResponse> createConfigAsync(
public CompletableFuture<SuccessResponse> createConfigAsync(
QuerySuggestionsIndexWithIndexParam querySuggestionsIndexWithIndexParam
) throws AlgoliaRuntimeException {
return this.createConfigAsync(querySuggestionsIndexWithIndexParam, null);
Expand Down Expand Up @@ -248,32 +248,32 @@ public CompletableFuture<Object> delAsync(String path)
}

/**
* Delete a configuration of a Query Suggestion's index. By deleting a configuraton, you stop all
* Delete a configuration of a Query Suggestion's index. By deleting a configuration, you stop all
* updates to the underlying query suggestion index. Note that when doing this, the underlying
* index does not change - existing suggestions remain untouched.
*
* @param indexName The index in which to perform the request. (required)
* @param requestOptions The requestOptions to send along with the query, they will be merged with
* the transporter requestOptions.
* @return SucessResponse
* @return SuccessResponse
* @throws AlgoliaRuntimeException If fail to call the API, e.g. server error or cannot
* deserialize the response body
*/
public SucessResponse deleteConfig(
public SuccessResponse deleteConfig(
String indexName,
RequestOptions requestOptions
) throws AlgoliaRuntimeException {
return LaunderThrowable.await(deleteConfigAsync(indexName, requestOptions));
}

public SucessResponse deleteConfig(String indexName)
public SuccessResponse deleteConfig(String indexName)
throws AlgoliaRuntimeException {
return this.deleteConfig(indexName, null);
}

/**
* (asynchronously) Delete a configuration of a Query Suggestion&#39;s index. By deleting a
* configuraton, you stop all updates to the underlying query suggestion index. Note that when
* configuration, you stop all updates to the underlying query suggestion index. Note that when
* doing this, the underlying index does not change - existing suggestions remain untouched.
*
* @param indexName The index in which to perform the request. (required)
Expand All @@ -283,7 +283,7 @@ public SucessResponse deleteConfig(String indexName)
* @throws AlgoliaRuntimeException If fail to process the API call, e.g. serializing the request
* body object
*/
public CompletableFuture<SucessResponse> deleteConfigAsync(
public CompletableFuture<SuccessResponse> deleteConfigAsync(
String indexName,
RequestOptions requestOptions
) throws AlgoliaRuntimeException {
Expand Down Expand Up @@ -314,11 +314,11 @@ public CompletableFuture<SucessResponse> deleteConfigAsync(
headers,
requestOptions
);
Type returnType = new TypeToken<SucessResponse>() {}.getType();
Type returnType = new TypeToken<SuccessResponse>() {}.getType();
return this.executeAsync(call, returnType);
}

public CompletableFuture<SucessResponse> deleteConfigAsync(String indexName)
public CompletableFuture<SuccessResponse> deleteConfigAsync(String indexName)
throws AlgoliaRuntimeException {
return this.deleteConfigAsync(indexName, null);
}
Expand Down Expand Up @@ -944,11 +944,11 @@ public CompletableFuture<Object> putAsync(String path)
* @param querySuggestionsIndexParam (required)
* @param requestOptions The requestOptions to send along with the query, they will be merged with
* the transporter requestOptions.
* @return SucessResponse
* @return SuccessResponse
* @throws AlgoliaRuntimeException If fail to call the API, e.g. server error or cannot
* deserialize the response body
*/
public SucessResponse updateConfig(
public SuccessResponse updateConfig(
String indexName,
QuerySuggestionsIndexParam querySuggestionsIndexParam,
RequestOptions requestOptions
Expand All @@ -958,7 +958,7 @@ public SucessResponse updateConfig(
);
}

public SucessResponse updateConfig(
public SuccessResponse updateConfig(
String indexName,
QuerySuggestionsIndexParam querySuggestionsIndexParam
) throws AlgoliaRuntimeException {
Expand All @@ -976,7 +976,7 @@ public SucessResponse updateConfig(
* @throws AlgoliaRuntimeException If fail to process the API call, e.g. serializing the request
* body object
*/
public CompletableFuture<SucessResponse> updateConfigAsync(
public CompletableFuture<SuccessResponse> updateConfigAsync(
String indexName,
QuerySuggestionsIndexParam querySuggestionsIndexParam,
RequestOptions requestOptions
Expand Down Expand Up @@ -1015,11 +1015,11 @@ public CompletableFuture<SucessResponse> updateConfigAsync(
headers,
requestOptions
);
Type returnType = new TypeToken<SucessResponse>() {}.getType();
Type returnType = new TypeToken<SuccessResponse>() {}.getType();
return this.executeAsync(call, returnType);
}

public CompletableFuture<SucessResponse> updateConfigAsync(
public CompletableFuture<SuccessResponse> updateConfigAsync(
String indexName,
QuerySuggestionsIndexParam querySuggestionsIndexParam
) throws AlgoliaRuntimeException {
Expand Down
Loading

0 comments on commit fbdb035

Please sign in to comment.