Skip to content

Commit f8ed31e

Browse files
jack-edmonds-ddci.datadog-api-spec
andauthored
Fix ap_is -> apis. (#1866)
* Fix ap_is -> apis. * pre-commit fixes --------- Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent acd28e1 commit f8ed31e

File tree

10 files changed

+21
-21
lines changed

10 files changed

+21
-21
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"IdP": "Idp", "AuthNMapping": "AuthnMapping", "AuthN ": "Authn ", "IoT": "Iot", "SLOs": "Slos"}
1+
{"IdP": "Idp", "AuthNMapping": "AuthnMapping", "AuthN ": "Authn ", "IoT": "Iot", "SLOs": "Slos", "APIs": "Apis"}

examples/v2/api-management/ListAPIs.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
require "datadog_api_client"
44
DatadogAPIClient.configure do |config|
5-
config.unstable_operations["v2.list_ap_is".to_sym] = true
5+
config.unstable_operations["v2.list_apis".to_sym] = true
66
end
77
api_instance = DatadogAPIClient::V2::APIManagementAPI.new
8-
p api_instance.list_ap_is()
8+
p api_instance.list_apis()

lib/datadog_api_client/configuration.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ def initialize
192192
"v2.create_open_api": false,
193193
"v2.delete_open_api": false,
194194
"v2.get_open_api": false,
195-
"v2.list_ap_is": false,
195+
"v2.list_apis": false,
196196
"v2.update_open_api": false,
197197
"v2.get_active_billing_dimensions": false,
198198
"v2.get_monthly_cost_attribution": false,

lib/datadog_api_client/inflector.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1489,11 +1489,11 @@ def overrides
14891489
"v2.jira_issue_result" => "JiraIssueResult",
14901490
"v2.jsonapi_error_item" => "JSONAPIErrorItem",
14911491
"v2.jsonapi_error_response" => "JSONAPIErrorResponse",
1492-
"v2.list_ap_is_response" => "ListAPIsResponse",
1493-
"v2.list_ap_is_response_data" => "ListAPIsResponseData",
1494-
"v2.list_ap_is_response_data_attributes" => "ListAPIsResponseDataAttributes",
1495-
"v2.list_ap_is_response_meta" => "ListAPIsResponseMeta",
1496-
"v2.list_ap_is_response_meta_pagination" => "ListAPIsResponseMetaPagination",
1492+
"v2.list_apis_response" => "ListAPIsResponse",
1493+
"v2.list_apis_response_data" => "ListAPIsResponseData",
1494+
"v2.list_apis_response_data_attributes" => "ListAPIsResponseDataAttributes",
1495+
"v2.list_apis_response_meta" => "ListAPIsResponseMeta",
1496+
"v2.list_apis_response_meta_pagination" => "ListAPIsResponseMetaPagination",
14971497
"v2.list_application_keys_response" => "ListApplicationKeysResponse",
14981498
"v2.list_downtimes_response" => "ListDowntimesResponse",
14991499
"v2.list_findings_meta" => "ListFindingsMeta",

lib/datadog_api_client/v2/api/api_management_api.rb

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -241,9 +241,9 @@ def get_open_api_with_http_info(id, opts = {})
241241

242242
# List APIs.
243243
#
244-
# @see #list_ap_is_with_http_info
245-
def list_ap_is(opts = {})
246-
data, _status_code, _headers = list_ap_is_with_http_info(opts)
244+
# @see #list_apis_with_http_info
245+
def list_apis(opts = {})
246+
data, _status_code, _headers = list_apis_with_http_info(opts)
247247
data
248248
end
249249

@@ -256,22 +256,22 @@ def list_ap_is(opts = {})
256256
# @option opts [Integer] :page_limit Number of items per page.
257257
# @option opts [Integer] :page_offset Offset for pagination.
258258
# @return [Array<(ListAPIsResponse, Integer, Hash)>] ListAPIsResponse data, response status code and response headers
259-
def list_ap_is_with_http_info(opts = {})
260-
unstable_enabled = @api_client.config.unstable_operations["v2.list_ap_is".to_sym]
259+
def list_apis_with_http_info(opts = {})
260+
unstable_enabled = @api_client.config.unstable_operations["v2.list_apis".to_sym]
261261
if unstable_enabled
262-
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.list_ap_is")
262+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.list_apis")
263263
else
264-
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.list_ap_is"))
264+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.list_apis"))
265265
end
266266

267267
if @api_client.config.debugging
268-
@api_client.config.logger.debug 'Calling API: APIManagementAPI.list_ap_is ...'
268+
@api_client.config.logger.debug 'Calling API: APIManagementAPI.list_apis ...'
269269
end
270270
if @api_client.config.client_side_validation && !opts[:'page_limit'].nil? && opts[:'page_limit'] < 1
271-
fail ArgumentError, 'invalid value for "opts[:"page_limit"]" when calling APIManagementAPI.list_ap_is, must be greater than or equal to 1.'
271+
fail ArgumentError, 'invalid value for "opts[:"page_limit"]" when calling APIManagementAPI.list_apis, must be greater than or equal to 1.'
272272
end
273273
if @api_client.config.client_side_validation && !opts[:'page_offset'].nil? && opts[:'page_offset'] < 0
274-
fail ArgumentError, 'invalid value for "opts[:"page_offset"]" when calling APIManagementAPI.list_ap_is, must be greater than or equal to 0.'
274+
fail ArgumentError, 'invalid value for "opts[:"page_offset"]" when calling APIManagementAPI.list_apis, must be greater than or equal to 0.'
275275
end
276276
# resource path
277277
local_var_path = '/api/v2/apicatalog/api'
@@ -300,7 +300,7 @@ def list_ap_is_with_http_info(opts = {})
300300
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
301301

302302
new_options = opts.merge(
303-
:operation => :list_ap_is,
303+
:operation => :list_apis,
304304
:header_params => header_params,
305305
:query_params => query_params,
306306
:form_params => form_params,
@@ -312,7 +312,7 @@ def list_ap_is_with_http_info(opts = {})
312312

313313
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
314314
if @api_client.config.debugging
315-
@api_client.config.logger.debug "API called: APIManagementAPI#list_ap_is\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
315+
@api_client.config.logger.debug "API called: APIManagementAPI#list_apis\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
316316
end
317317
return data, status_code, headers
318318
end

lib/datadog_api_client/v2/models/list_ap_is_response.rb renamed to lib/datadog_api_client/v2/models/list_apis_response.rb

File renamed without changes.

lib/datadog_api_client/v2/models/list_ap_is_response_data.rb renamed to lib/datadog_api_client/v2/models/list_apis_response_data.rb

File renamed without changes.

lib/datadog_api_client/v2/models/list_ap_is_response_data_attributes.rb renamed to lib/datadog_api_client/v2/models/list_apis_response_data_attributes.rb

File renamed without changes.

lib/datadog_api_client/v2/models/list_ap_is_response_meta.rb renamed to lib/datadog_api_client/v2/models/list_apis_response_meta.rb

File renamed without changes.

lib/datadog_api_client/v2/models/list_ap_is_response_meta_pagination.rb renamed to lib/datadog_api_client/v2/models/list_apis_response_meta_pagination.rb

File renamed without changes.

0 commit comments

Comments
 (0)