-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run pre-commit on generated files changes (#1640)
* run pre-commit on generated files changes * pre-commit fixes --------- Co-authored-by: ci.datadog-api-spec <[email protected]>
- Loading branch information
Showing
4 changed files
with
41 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
=begin | ||
{% include "api_info.j2" %} | ||
=end | ||
|
||
require 'datadog_api_client/models' | ||
require_relative 'datadog_api_client/inflector' | ||
|
||
loader = Zeitwerk::Loader.new | ||
loader.tag = File.basename(__FILE__, ".rb") | ||
loader.collapse("#{__dir__}/datadog_api_client/*/models/") | ||
loader.collapse("#{__dir__}/datadog_api_client/*/api/") | ||
|
||
{%- for version, apis in all_apis.items() %} | ||
loader.push_dir("#{__dir__}/datadog_api_client/{{ version }}", namespace: DatadogAPIClient::{{ version|upper }}) | ||
{%- endfor %} | ||
# Ignore model_base.rb from being loaded in by zeitwerk as it is loaded in by default | ||
loader.ignore("#{__dir__}/datadog_api_client/*/model_base.rb") | ||
loader.inflector = {{ module_name }}::{{ module_name }}Inflector.new | ||
loader.setup |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,18 @@ | ||
=begin | ||
#Datadog API V2 Collection | ||
#Collection of all Datadog Public endpoints. | ||
The version of the OpenAPI document: 1.0 | ||
Contact: [email protected] | ||
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator | ||
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. | ||
This product includes software developed at Datadog (https://www.datadoghq.com/). | ||
Copyright 2020-Present Datadog, Inc. | ||
=end | ||
|
||
require 'datadog_api_client/models' | ||
require_relative 'datadog_api_client/inflector' | ||
|
||
|
@@ -10,4 +25,4 @@ | |
# Ignore model_base.rb from being loaded in by zeitwerk as it is loaded in by default | ||
loader.ignore("#{__dir__}/datadog_api_client/*/model_base.rb") | ||
loader.inflector = DatadogAPIClient::DatadogAPIClientInflector.new | ||
loader.setup | ||
loader.setup |