Skip to content

Commit

Permalink
fix(specs): API key description will be obfuscated (#3840) (generated…
Browse files Browse the repository at this point in the history
…) [skip ci]

Co-authored-by: Kai Welke <kai.welke@algolia.com>
  • Loading branch information
algolia-bot and kai687 committed Sep 27, 2024
1 parent e59dd41 commit 1d95849
Show file tree
Hide file tree
Showing 13 changed files with 32 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,7 @@ public partial interface ISearchClient
DeletedAtResponse DeleteSynonym(string indexName, string objectID, bool? forwardToReplicas = default, RequestOptions options = null, CancellationToken cancellationToken = default);

/// <summary>
/// Gets the permissions and restrictions of an API key. When authenticating with the admin API key, you can request information for any of your application's keys. When authenticating with other API keys, you can only retrieve information for that key.
/// Gets the permissions and restrictions of an API key. When authenticating with the admin API key, you can request information for any of your application's keys. When authenticating with other API keys, you can only retrieve information for that key, with the description replaced by `<redacted>`.
/// </summary>
/// <param name="key">API key.</param>
/// <param name="options">Add extra http header or query parameters to Algolia.</param>
Expand All @@ -706,7 +706,7 @@ public partial interface ISearchClient
Task<GetApiKeyResponse> GetApiKeyAsync(string key, RequestOptions options = null, CancellationToken cancellationToken = default);

/// <summary>
/// Gets the permissions and restrictions of an API key. When authenticating with the admin API key, you can request information for any of your application's keys. When authenticating with other API keys, you can only retrieve information for that key. (Synchronous version)
/// Gets the permissions and restrictions of an API key. When authenticating with the admin API key, you can request information for any of your application's keys. When authenticating with other API keys, you can only retrieve information for that key, with the description replaced by `<redacted>`. (Synchronous version)
/// </summary>
/// <param name="key">API key.</param>
/// <param name="options">Add extra http header or query parameters to Algolia.</param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -895,7 +895,7 @@ final class SearchClient implements ApiClient {
);
}

/// Gets the permissions and restrictions of an API key. When authenticating with the admin API key, you can request information for any of your application's keys. When authenticating with other API keys, you can only retrieve information for that key.
/// Gets the permissions and restrictions of an API key. When authenticating with the admin API key, you can request information for any of your application's keys. When authenticating with other API keys, you can only retrieve information for that key, with the description replaced by `<redacted>`.
///
/// Parameters:
/// * [key] API key.
Expand Down
6 changes: 4 additions & 2 deletions clients/algoliasearch-client-go/algolia/search/api_search.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -2014,7 +2014,8 @@ public CompletableFuture<DeletedAtResponse> deleteSynonymAsync(@Nonnull String i
/**
* Gets the permissions and restrictions of an API key. When authenticating with the admin API
* key, you can request information for any of your application's keys. When authenticating with
* other API keys, you can only retrieve information for that key.
* other API keys, you can only retrieve information for that key, with the description replaced
* by `<redacted>`.
*
* @param key API key. (required)
* @param requestOptions The requestOptions to send along with the query, they will be merged with
Expand All @@ -2028,7 +2029,8 @@ public GetApiKeyResponse getApiKey(@Nonnull String key, RequestOptions requestOp
/**
* Gets the permissions and restrictions of an API key. When authenticating with the admin API
* key, you can request information for any of your application's keys. When authenticating with
* other API keys, you can only retrieve information for that key.
* other API keys, you can only retrieve information for that key, with the description replaced
* by `<redacted>`.
*
* @param key API key. (required)
* @throws AlgoliaRuntimeException If it fails to process the API call
Expand All @@ -2040,7 +2042,8 @@ public GetApiKeyResponse getApiKey(@Nonnull String key) throws AlgoliaRuntimeExc
/**
* (asynchronously) Gets the permissions and restrictions of an API key. When authenticating with
* the admin API key, you can request information for any of your application's keys. When
* authenticating with other API keys, you can only retrieve information for that key.
* authenticating with other API keys, you can only retrieve information for that key, with the
* description replaced by `<redacted>`.
*
* @param key API key. (required)
* @param requestOptions The requestOptions to send along with the query, they will be merged with
Expand All @@ -2059,7 +2062,8 @@ public CompletableFuture<GetApiKeyResponse> getApiKeyAsync(@Nonnull String key,
/**
* (asynchronously) Gets the permissions and restrictions of an API key. When authenticating with
* the admin API key, you can request information for any of your application's keys. When
* authenticating with other API keys, you can only retrieve information for that key.
* authenticating with other API keys, you can only retrieve information for that key, with the
* description replaced by `<redacted>`.
*
* @param key API key. (required)
* @throws AlgoliaRuntimeException If it fails to process the API call
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1501,7 +1501,7 @@ export function createSearchClient({
},

/**
* Gets the permissions and restrictions of an API key. When authenticating with the admin API key, you can request information for any of your application\'s keys. When authenticating with other API keys, you can only retrieve information for that key.
* Gets the permissions and restrictions of an API key. When authenticating with the admin API key, you can request information for any of your application\'s keys. When authenticating with other API keys, you can only retrieve information for that key, with the description replaced by `<redacted>`.
*
* @param getApiKey - The getApiKey object.
* @param getApiKey.key - API key.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ public class SearchClient(
}

/**
* Gets the permissions and restrictions of an API key. When authenticating with the admin API key, you can request information for any of your application's keys. When authenticating with other API keys, you can only retrieve information for that key.
* Gets the permissions and restrictions of an API key. When authenticating with the admin API key, you can request information for any of your application's keys. When authenticating with other API keys, you can only retrieve information for that key, with the description replaced by `<redacted>`.
* @param key API key.
* @param requestOptions additional request configuration.
*/
Expand Down
2 changes: 1 addition & 1 deletion clients/algoliasearch-client-php/lib/Api/SearchClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -1110,7 +1110,7 @@ public function deleteSynonym($indexName, $objectID, $forwardToReplicas = null,
}

/**
* Gets the permissions and restrictions of an API key. When authenticating with the admin API key, you can request information for any of your application's keys. When authenticating with other API keys, you can only retrieve information for that key.
* Gets the permissions and restrictions of an API key. When authenticating with the admin API key, you can request information for any of your application's keys. When authenticating with other API keys, you can only retrieve information for that key, with the description replaced by `<redacted>`.
*
* @param string $key API key. (required)
* @param array $requestOptions the requestOptions to send along with the query, they will be merged with the transporter requestOptions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2265,7 +2265,7 @@ async def get_api_key_with_http_info(
request_options: Optional[Union[dict, RequestOptions]] = None,
) -> ApiResponse[str]:
"""
Gets the permissions and restrictions of an API key. When authenticating with the admin API key, you can request information for any of your application's keys. When authenticating with other API keys, you can only retrieve information for that key.
Gets the permissions and restrictions of an API key. When authenticating with the admin API key, you can request information for any of your application's keys. When authenticating with other API keys, you can only retrieve information for that key, with the description replaced by `<redacted>`.
:param key: API key. (required)
Expand All @@ -2292,7 +2292,7 @@ async def get_api_key(
request_options: Optional[Union[dict, RequestOptions]] = None,
) -> GetApiKeyResponse:
"""
Gets the permissions and restrictions of an API key. When authenticating with the admin API key, you can request information for any of your application's keys. When authenticating with other API keys, you can only retrieve information for that key.
Gets the permissions and restrictions of an API key. When authenticating with the admin API key, you can request information for any of your application's keys. When authenticating with other API keys, you can only retrieve information for that key, with the description replaced by `<redacted>`.
:param key: API key. (required)
Expand Down Expand Up @@ -7179,7 +7179,7 @@ def get_api_key_with_http_info(
request_options: Optional[Union[dict, RequestOptions]] = None,
) -> ApiResponse[str]:
"""
Gets the permissions and restrictions of an API key. When authenticating with the admin API key, you can request information for any of your application's keys. When authenticating with other API keys, you can only retrieve information for that key.
Gets the permissions and restrictions of an API key. When authenticating with the admin API key, you can request information for any of your application's keys. When authenticating with other API keys, you can only retrieve information for that key, with the description replaced by `<redacted>`.
:param key: API key. (required)
Expand All @@ -7206,7 +7206,7 @@ def get_api_key(
request_options: Optional[Union[dict, RequestOptions]] = None,
) -> GetApiKeyResponse:
"""
Gets the permissions and restrictions of an API key. When authenticating with the admin API key, you can request information for any of your application's keys. When authenticating with other API keys, you can only retrieve information for that key.
Gets the permissions and restrictions of an API key. When authenticating with the admin API key, you can request information for any of your application's keys. When authenticating with other API keys, you can only retrieve information for that key, with the description replaced by `<redacted>`.
:param key: API key. (required)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1127,7 +1127,7 @@ def delete_synonym(index_name, object_id, forward_to_replicas = nil, request_opt
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Search::DeletedAtResponse")
end

# Gets the permissions and restrictions of an API key. When authenticating with the admin API key, you can request information for any of your application&#39;s keys. When authenticating with other API keys, you can only retrieve information for that key.
# Gets the permissions and restrictions of an API key. When authenticating with the admin API key, you can request information for any of your application&#39;s keys. When authenticating with other API keys, you can only retrieve information for that key, with the description replaced by &#x60;&lt;redacted&gt;&#x60;.

# @param key [String] API key. (required)
# @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
Expand Down Expand Up @@ -1157,7 +1157,7 @@ def get_api_key_with_http_info(key, request_options = {})
@api_client.call_api(:GET, path, new_options)
end

# Gets the permissions and restrictions of an API key. When authenticating with the admin API key, you can request information for any of your application's keys. When authenticating with other API keys, you can only retrieve information for that key.
# Gets the permissions and restrictions of an API key. When authenticating with the admin API key, you can request information for any of your application's keys. When authenticating with other API keys, you can only retrieve information for that key, with the description replaced by `<redacted>`.

# @param key [String] API key. (required)
# @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,7 @@ class SearchClient(

/** Gets the permissions and restrictions of an API key. When authenticating with the admin API key, you can request
* information for any of your application's keys. When authenticating with other API keys, you can only retrieve
* information for that key.
* information for that key, with the description replaced by `<redacted>`.
*
* @param key
* API key.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1483,7 +1483,7 @@ open class SearchClient {

// Gets the permissions and restrictions of an API key. When authenticating with the admin API key, you can request
// information for any of your application's keys. When authenticating with other API keys, you can only retrieve
// information for that key.
// information for that key, with the description replaced by `<redacted>`.
//
//
// - parameter key: (path) API key.
Expand Down
4 changes: 3 additions & 1 deletion specs/bundled/search.doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9498,7 +9498,9 @@ paths:
for any of your application's keys.

When authenticating with other API keys, you can only retrieve
information for that key.
information for that key,

with the description replaced by `<redacted>`.
parameters:
- $ref: '#/components/parameters/KeyString'
responses:
Expand Down
4 changes: 3 additions & 1 deletion specs/bundled/search.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1579,7 +1579,9 @@ paths:
for any of your application's keys.
When authenticating with other API keys, you can only retrieve
information for that key.
information for that key,
with the description replaced by `<redacted>`.
parameters:
- $ref: '#/components/parameters/KeyString'
responses:
Expand Down

0 comments on commit 1d95849

Please sign in to comment.