Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update to the latest swagger API, add an example "How to use Templates and Stack API" #399

Merged
merged 4 commits into from
Feb 3, 2022

Conversation

bednar
Copy link
Contributor

@bednar bednar commented Jan 26, 2022

Closes #396

Proposed Changes

1.

Added an example How to use Templates and Stack API.

2.

  • Add LegacyAuthorizationsService to deal with legacy authorizations
  • Add ResourceService to retrieve all knows resources
  • Add BackupService to represents the data backup functions of InfluxDB
  • Add ReplicationsService to represents the replication functions of InfluxDB
  • Add RestoreService to represents the data restore functions of InfluxDB
  • Add ConfigService to retrieve InfluxDB's runtime configuration
  • Add RemoteConnectionsService to deal with registered remote InfluxDB connections
  • Add TelegrafPluginsService to retrieve all Telegraf's plugins
  • Update TemplatesService to deal with Stack and Template API
  • DBRPsService:
    • doesn't requires org_id parameter for operations
    • get_dbr_ps_id operation uses DBRPGet as a type of result
    • patch_dbrpid operation uses DBRPGet as a type of result
    • post_dbrp operation uses DBRPCreate as a type of request
  • DefaultService:
    • get_routes operation is moved to RoutesService
    • get_telegraf_plugin operation is moved to TelegrafsService
    • post_signin operation is moved to SigninService
    • post_signout operation is moved to SignoutService
  • OrganizationsService:
    • get_orgs_id_secrets operation is moved to SecretsService
    • patch_orgs_id_secrets operation is moved to SecretsService
    • post_orgs_id_secrets operation is moved to SecretsService
  • Remove DocumentApi in favour of InfluxDB Community Templates. For more info see - influxdb#19300, openapi#192
  • TelegrafsService uses TelegrafPluginRequest to create Telegraf configuration
  • TelegrafsService uses TelegrafPluginRequest to update Telegraf configuration

Checklist

  • CHANGELOG.md updated
  • Rebased/mergeable
  • pytest tests completes successfully
  • Commit messages are in semantic format
  • Sign CLA (if not already signed)

@codecov-commenter
Copy link

codecov-commenter commented Jan 26, 2022

Codecov Report

Merging #399 (f03bf8b) into master (1380242) will increase coverage by 0.28%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #399      +/-   ##
==========================================
+ Coverage   92.95%   93.24%   +0.28%     
==========================================
  Files          28       28              
  Lines        2400     2501     +101     
==========================================
+ Hits         2231     2332     +101     
  Misses        169      169              
Impacted Files Coverage Δ
influxdb_client/api_client.py 69.28% <ø> (ø)
influxdb_client/configuration.py 83.87% <ø> (ø)
influxdb_client/__init__.py 100.00% <100.00%> (ø)
influxdb_client/client/__init__.py 100.00% <100.00%> (ø)
influxdb_client/client/write/__init__.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1380242...f03bf8b. Read the comment docs.

@bednar bednar changed the title chore: update to the latest swagger API chore: update to the latest swagger API, add an example "How to use Templates and Stack API" Jan 27, 2022
@bednar bednar requested a review from rhajek January 27, 2022 13:46
@bednar bednar marked this pull request as ready for review January 27, 2022 13:46
@bednar bednar merged commit 64a401e into master Feb 3, 2022
@bednar bednar deleted the open_api_update branch February 3, 2022 08:26
@bednar bednar added this to the 1.26.0 milestone Feb 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add stacks and template APIs.
3 participants