From 14d7ce92533181664862e01bbf935a17d8baf327 Mon Sep 17 00:00:00 2001 From: Jakub Bednar Date: Tue, 25 Jan 2022 14:44:06 +0100 Subject: [PATCH 1/4] chore: update to the latest API --- influxdb_client/__init__.py | 99 ++- influxdb_client/api_client.py | 4 +- influxdb_client/client/__init__.py | 17 +- influxdb_client/client/write/__init__.py | 17 +- influxdb_client/configuration.py | 13 +- influxdb_client/domain/__init__.py | 86 ++- .../add_resource_member_request_body.py | 4 +- .../domain/analyze_query_response.py | 4 +- .../domain/analyze_query_response_errors.py | 4 +- influxdb_client/domain/array_expression.py | 4 +- influxdb_client/domain/ast_response.py | 4 +- influxdb_client/domain/authorization.py | 4 +- .../domain/authorization_post_request.py | 4 +- .../domain/authorization_update_request.py | 4 +- influxdb_client/domain/authorizations.py | 4 +- influxdb_client/domain/axes.py | 4 +- influxdb_client/domain/axis.py | 4 +- influxdb_client/domain/axis_scale.py | 4 +- influxdb_client/domain/bad_statement.py | 4 +- .../domain/band_view_properties.py | 4 +- influxdb_client/domain/binary_expression.py | 4 +- influxdb_client/domain/block.py | 4 +- influxdb_client/domain/boolean_literal.py | 4 +- influxdb_client/domain/bucket.py | 4 +- influxdb_client/domain/bucket_links.py | 4 +- .../domain/bucket_metadata_manifest.py | 253 +++++++ .../domain/bucket_retention_rules.py | 4 +- .../domain/bucket_shard_mapping.py | 134 ++++ influxdb_client/domain/buckets.py | 4 +- .../domain/builder_aggregate_function_type.py | 4 +- influxdb_client/domain/builder_config.py | 4 +- .../domain/builder_config_aggregate_window.py | 4 +- .../domain/builder_functions_type.py | 4 +- influxdb_client/domain/builder_tags_type.py | 4 +- influxdb_client/domain/builtin_statement.py | 4 +- influxdb_client/domain/call_expression.py | 4 +- influxdb_client/domain/cell.py | 4 +- influxdb_client/domain/cell_links.py | 4 +- influxdb_client/domain/cell_update.py | 4 +- .../domain/cell_with_view_properties.py | 4 +- influxdb_client/domain/check.py | 4 +- influxdb_client/domain/check_base.py | 4 +- influxdb_client/domain/check_base_links.py | 4 +- influxdb_client/domain/check_discriminator.py | 4 +- influxdb_client/domain/check_patch.py | 4 +- influxdb_client/domain/check_status_level.py | 4 +- .../domain/check_view_properties.py | 4 +- influxdb_client/domain/checks.py | 4 +- .../domain/conditional_expression.py | 4 +- .../domain/{documents.py => config.py} | 44 +- .../domain/constant_variable_properties.py | 4 +- influxdb_client/domain/create_cell.py | 4 +- .../domain/create_dashboard_request.py | 4 +- influxdb_client/domain/custom_check.py | 4 +- influxdb_client/domain/dashboard.py | 4 +- influxdb_client/domain/dashboard_color.py | 4 +- influxdb_client/domain/dashboard_query.py | 4 +- .../domain/dashboard_with_view_properties.py | 4 +- influxdb_client/domain/dashboards.py | 4 +- influxdb_client/domain/date_time_literal.py | 4 +- influxdb_client/domain/dbr_ps.py | 4 +- influxdb_client/domain/dbrp.py | 43 +- influxdb_client/domain/dbrp_create.py | 251 +++++++ .../{document_update.py => dbrp_get.py} | 49 +- influxdb_client/domain/dbrp_update.py | 60 +- influxdb_client/domain/deadman_check.py | 4 +- influxdb_client/domain/decimal_places.py | 4 +- .../domain/delete_predicate_request.py | 4 +- influxdb_client/domain/dialect.py | 4 +- influxdb_client/domain/dict_expression.py | 4 +- influxdb_client/domain/dict_item.py | 4 +- influxdb_client/domain/document.py | 204 ----- influxdb_client/domain/document_create.py | 215 ------ influxdb_client/domain/duration.py | 4 +- influxdb_client/domain/duration_literal.py | 4 +- influxdb_client/domain/error.py | 4 +- influxdb_client/domain/expression.py | 4 +- .../domain/expression_statement.py | 4 +- influxdb_client/domain/field.py | 4 +- influxdb_client/domain/file.py | 4 +- influxdb_client/domain/float_literal.py | 4 +- influxdb_client/domain/flux_response.py | 4 +- influxdb_client/domain/flux_suggestion.py | 4 +- influxdb_client/domain/flux_suggestions.py | 4 +- influxdb_client/domain/function_expression.py | 4 +- .../domain/gauge_view_properties.py | 4 +- influxdb_client/domain/greater_threshold.py | 4 +- influxdb_client/domain/health_check.py | 4 +- .../domain/heatmap_view_properties.py | 4 +- .../domain/histogram_view_properties.py | 4 +- .../domain/http_notification_endpoint.py | 4 +- .../domain/http_notification_rule.py | 4 +- .../domain/http_notification_rule_base.py | 4 +- influxdb_client/domain/identifier.py | 4 +- influxdb_client/domain/import_declaration.py | 4 +- influxdb_client/domain/index_expression.py | 4 +- influxdb_client/domain/integer_literal.py | 4 +- influxdb_client/domain/is_onboarding.py | 4 +- influxdb_client/domain/label.py | 4 +- .../domain/label_create_request.py | 4 +- influxdb_client/domain/label_mapping.py | 4 +- influxdb_client/domain/label_response.py | 4 +- influxdb_client/domain/label_update.py | 4 +- influxdb_client/domain/labels_response.py | 4 +- influxdb_client/domain/language_request.py | 4 +- .../legacy_authorization_post_request.py | 201 +++++ influxdb_client/domain/lesser_threshold.py | 4 +- .../line_plus_single_stat_properties.py | 4 +- influxdb_client/domain/line_protocol_error.py | 4 +- .../domain/line_protocol_length_error.py | 38 +- influxdb_client/domain/links.py | 4 +- .../domain/list_stacks_response.py | 109 +++ influxdb_client/domain/log_event.py | 4 +- influxdb_client/domain/logical_expression.py | 4 +- influxdb_client/domain/logs.py | 4 +- .../domain/map_variable_properties.py | 4 +- .../domain/markdown_view_properties.py | 4 +- influxdb_client/domain/member_assignment.py | 4 +- influxdb_client/domain/member_expression.py | 4 +- influxdb_client/domain/metadata_backup.py | 158 ++++ influxdb_client/domain/model_property.py | 4 +- .../domain/mosaic_view_properties.py | 4 +- influxdb_client/domain/node.py | 4 +- .../domain/notification_endpoint.py | 4 +- .../domain/notification_endpoint_base.py | 4 +- .../notification_endpoint_base_links.py | 4 +- .../notification_endpoint_discriminator.py | 4 +- .../domain/notification_endpoint_type.py | 4 +- .../domain/notification_endpoint_update.py | 4 +- .../domain/notification_endpoints.py | 4 +- influxdb_client/domain/notification_rule.py | 4 +- .../domain/notification_rule_base.py | 4 +- .../domain/notification_rule_base_links.py | 4 +- .../domain/notification_rule_discriminator.py | 4 +- .../domain/notification_rule_update.py | 4 +- influxdb_client/domain/notification_rules.py | 4 +- influxdb_client/domain/object_expression.py | 4 +- influxdb_client/domain/onboarding_request.py | 4 +- influxdb_client/domain/onboarding_response.py | 4 +- influxdb_client/domain/option_statement.py | 4 +- influxdb_client/domain/organization.py | 4 +- influxdb_client/domain/organization_links.py | 4 +- influxdb_client/domain/organizations.py | 4 +- influxdb_client/domain/package.py | 4 +- influxdb_client/domain/package_clause.py | 4 +- .../pager_duty_notification_endpoint.py | 4 +- .../domain/pager_duty_notification_rule.py | 4 +- .../pager_duty_notification_rule_base.py | 4 +- influxdb_client/domain/paren_expression.py | 4 +- influxdb_client/domain/password_reset_body.py | 4 +- .../domain/patch_bucket_request.py | 4 +- .../domain/patch_dashboard_request.py | 4 +- .../domain/patch_organization_request.py | 4 +- .../domain/patch_retention_rule.py | 4 +- influxdb_client/domain/patch_stack_request.py | 175 +++++ ...atch_stack_request_additional_resources.py | 157 ++++ influxdb_client/domain/permission.py | 4 +- influxdb_client/domain/permission_resource.py | 16 +- influxdb_client/domain/pipe_expression.py | 4 +- influxdb_client/domain/pipe_literal.py | 4 +- influxdb_client/domain/post_bucket_request.py | 4 +- influxdb_client/domain/post_check.py | 4 +- .../domain/post_notification_endpoint.py | 4 +- .../domain/post_notification_rule.py | 4 +- .../domain/post_organization_request.py | 4 +- .../domain/post_restore_kv_response.py | 113 +++ influxdb_client/domain/post_stack_request.py | 178 +++++ influxdb_client/domain/property_key.py | 4 +- influxdb_client/domain/query.py | 4 +- influxdb_client/domain/query_edit_mode.py | 4 +- .../domain/query_variable_properties.py | 4 +- .../query_variable_properties_values.py | 4 +- influxdb_client/domain/range_threshold.py | 4 +- influxdb_client/domain/ready.py | 4 +- influxdb_client/domain/regexp_literal.py | 4 +- influxdb_client/domain/remote_connection.py | 253 +++++++ .../remote_connection_creation_request.py | 253 +++++++ .../remote_connection_update_request.py | 224 ++++++ influxdb_client/domain/remote_connections.py | 109 +++ influxdb_client/domain/renamable_field.py | 4 +- influxdb_client/domain/replication.py | 370 +++++++++ .../domain/replication_creation_request.py | 278 +++++++ .../domain/replication_update_request.py | 226 ++++++ influxdb_client/domain/replications.py | 109 +++ influxdb_client/domain/resource_member.py | 4 +- influxdb_client/domain/resource_members.py | 4 +- .../domain/resource_members_links.py | 4 +- influxdb_client/domain/resource_owner.py | 4 +- influxdb_client/domain/resource_owners.py | 4 +- ...t_entry.py => restored_bucket_mappings.py} | 114 ++- .../domain/retention_policy_manifest.py | 230 ++++++ influxdb_client/domain/return_statement.py | 4 +- influxdb_client/domain/routes.py | 4 +- influxdb_client/domain/routes_external.py | 4 +- influxdb_client/domain/routes_query.py | 4 +- influxdb_client/domain/routes_system.py | 4 +- influxdb_client/domain/rule_status_level.py | 4 +- influxdb_client/domain/run.py | 4 +- influxdb_client/domain/run_links.py | 4 +- influxdb_client/domain/run_manually.py | 4 +- influxdb_client/domain/runs.py | 4 +- .../domain/scatter_view_properties.py | 4 +- influxdb_client/domain/schema_type.py | 4 +- .../domain/scraper_target_request.py | 4 +- .../domain/scraper_target_response.py | 8 +- .../domain/scraper_target_responses.py | 4 +- influxdb_client/domain/script.py | 4 +- .../domain/script_create_request.py | 30 +- .../domain/script_invocation_params.py | 4 +- influxdb_client/domain/script_language.py | 4 +- .../domain/script_update_request.py | 4 +- influxdb_client/domain/scripts.py | 4 +- influxdb_client/domain/secret_keys.py | 4 +- .../domain/secret_keys_response.py | 4 +- .../domain/shard_group_manifest.py | 228 ++++++ influxdb_client/domain/shard_manifest.py | 134 ++++ influxdb_client/domain/shard_owner.py | 114 +++ .../domain/simple_table_view_properties.py | 237 ++++++ .../domain/single_stat_view_properties.py | 4 +- .../domain/slack_notification_endpoint.py | 4 +- .../domain/slack_notification_rule.py | 4 +- .../domain/slack_notification_rule_base.py | 4 +- .../domain/smtp_notification_rule.py | 4 +- .../domain/smtp_notification_rule_base.py | 4 +- influxdb_client/domain/source.py | 4 +- influxdb_client/domain/source_links.py | 4 +- influxdb_client/domain/sources.py | 4 +- influxdb_client/domain/stack.py | 178 +++++ influxdb_client/domain/stack_associations.py | 132 ++++ .../{document_meta.py => stack_events.py} | 186 +++-- .../{document_links.py => stack_links.py} | 22 +- influxdb_client/domain/stack_resources.py | 224 ++++++ influxdb_client/domain/statement.py | 4 +- influxdb_client/domain/static_legend.py | 34 +- influxdb_client/domain/status_rule.py | 4 +- influxdb_client/domain/string_literal.py | 4 +- .../domain/subscription_manifest.py | 158 ++++ .../domain/table_view_properties.py | 4 +- .../table_view_properties_table_options.py | 4 +- influxdb_client/domain/tag_rule.py | 4 +- influxdb_client/domain/task.py | 33 +- influxdb_client/domain/task_create_request.py | 4 +- influxdb_client/domain/task_links.py | 4 +- influxdb_client/domain/task_status_type.py | 4 +- influxdb_client/domain/task_update_request.py | 4 +- influxdb_client/domain/tasks.py | 4 +- influxdb_client/domain/telegraf.py | 4 +- influxdb_client/domain/telegraf_plugin.py | 4 +- .../domain/telegraf_plugin_request.py | 224 ++++++ .../domain/telegraf_plugin_request_plugins.py | 201 +++++ influxdb_client/domain/telegraf_plugins.py | 4 +- influxdb_client/domain/telegraf_request.py | 4 +- .../domain/telegraf_request_metadata.py | 4 +- influxdb_client/domain/telegrafs.py | 4 +- .../domain/telegram_notification_endpoint.py | 4 +- .../domain/telegram_notification_rule.py | 4 +- .../domain/telegram_notification_rule_base.py | 4 +- influxdb_client/domain/template_apply.py | 293 ++++++++ .../domain/template_apply_remotes.py | 133 ++++ .../domain/template_apply_template.py | 155 ++++ influxdb_client/domain/template_chart.py | 201 +++++ .../domain/template_export_by_id.py | 155 ++++ .../domain/template_export_by_id_org_ids.py | 132 ++++ .../template_export_by_id_resource_filters.py | 132 ++++ .../domain/template_export_by_id_resources.py | 161 ++++ .../domain/template_export_by_name.py | 155 ++++ .../template_export_by_name_resources.py | 134 ++++ influxdb_client/domain/template_kind.py | 102 +++ influxdb_client/domain/template_summary.py | 201 +++++ .../domain/template_summary_diff.py | 316 ++++++++ .../domain/template_summary_diff_buckets.py | 224 ++++++ .../template_summary_diff_buckets_new_old.py | 159 ++++ .../domain/template_summary_diff_checks.py | 224 ++++++ .../template_summary_diff_dashboards.py | 224 ++++++ ...emplate_summary_diff_dashboards_new_old.py | 155 ++++ .../template_summary_diff_label_mappings.py | 270 +++++++ .../domain/template_summary_diff_labels.py | 224 ++++++ .../template_summary_diff_labels_new_old.py | 155 ++++ ...ate_summary_diff_notification_endpoints.py | 224 ++++++ ...emplate_summary_diff_notification_rules.py | 224 ++++++ ...summary_diff_notification_rules_new_old.py | 339 +++++++++ .../domain/template_summary_diff_tasks.py | 224 ++++++ .../template_summary_diff_tasks_new_old.py | 247 ++++++ .../template_summary_diff_telegraf_configs.py | 224 ++++++ .../domain/template_summary_diff_variables.py | 224 ++++++ ...template_summary_diff_variables_new_old.py | 155 ++++ .../domain/template_summary_errors.py | 178 +++++ .../domain/template_summary_label.py | 247 ++++++ .../template_summary_label_properties.py | 132 ++++ .../domain/template_summary_summary.py | 362 +++++++++ .../template_summary_summary_buckets.py | 293 ++++++++ .../template_summary_summary_dashboards.py | 293 ++++++++ ...template_summary_summary_label_mappings.py | 270 +++++++ ...late_summary_summary_notification_rules.py | 431 +++++++++++ .../template_summary_summary_status_rules.py | 132 ++++ .../template_summary_summary_tag_rules.py | 155 ++++ .../domain/template_summary_summary_tasks.py | 339 +++++++++ .../template_summary_summary_variables.py | 293 ++++++++ influxdb_client/domain/test_statement.py | 4 +- influxdb_client/domain/threshold.py | 4 +- influxdb_client/domain/threshold_base.py | 4 +- influxdb_client/domain/threshold_check.py | 4 +- influxdb_client/domain/unary_expression.py | 4 +- .../domain/unsigned_integer_literal.py | 4 +- influxdb_client/domain/user.py | 4 +- influxdb_client/domain/user_response.py | 4 +- influxdb_client/domain/user_response_links.py | 4 +- influxdb_client/domain/users.py | 4 +- influxdb_client/domain/variable.py | 4 +- influxdb_client/domain/variable_assignment.py | 4 +- influxdb_client/domain/variable_links.py | 4 +- influxdb_client/domain/variable_properties.py | 4 +- influxdb_client/domain/variables.py | 4 +- influxdb_client/domain/view.py | 4 +- influxdb_client/domain/view_links.py | 4 +- influxdb_client/domain/view_properties.py | 4 +- influxdb_client/domain/views.py | 4 +- influxdb_client/domain/write_precision.py | 4 +- influxdb_client/domain/xy_geom.py | 4 +- influxdb_client/domain/xy_view_properties.py | 33 +- influxdb_client/rest.py | 4 +- influxdb_client/service/__init__.py | 17 +- .../service/authorizations_service.py | 4 +- .../{default_service.py => backup_service.py} | 220 ++---- influxdb_client/service/buckets_service.py | 12 +- influxdb_client/service/cells_service.py | 4 +- influxdb_client/service/checks_service.py | 16 +- influxdb_client/service/config_service.py | 129 ++++ influxdb_client/service/dashboards_service.py | 28 +- influxdb_client/service/dbr_ps_service.py | 154 ++-- influxdb_client/service/delete_service.py | 12 +- influxdb_client/service/health_service.py | 4 +- .../service/invocable_scripts_service.py | 4 +- influxdb_client/service/labels_service.py | 12 +- .../service/legacy_authorizations_service.py | 701 ++++++++++++++++++ influxdb_client/service/metrics_service.py | 129 ++++ .../service/notification_endpoints_service.py | 12 +- .../service/notification_rules_service.py | 12 +- .../service/organizations_service.py | 340 +-------- influxdb_client/service/ping_service.py | 2 +- influxdb_client/service/query_service.py | 38 +- influxdb_client/service/ready_service.py | 4 +- .../service/remote_connections_service.py | 573 ++++++++++++++ .../service/replications_service.py | 693 +++++++++++++++++ influxdb_client/service/resources_service.py | 129 ++++ influxdb_client/service/restore_service.py | 617 +++++++++++++++ influxdb_client/service/routes_service.py | 129 ++++ influxdb_client/service/rules_service.py | 8 +- .../service/scraper_targets_service.py | 24 +- influxdb_client/service/secrets_service.py | 116 ++- influxdb_client/service/setup_service.py | 4 +- influxdb_client/service/signin_service.py | 135 ++++ influxdb_client/service/signout_service.py | 131 ++++ influxdb_client/service/sources_service.py | 20 +- influxdb_client/service/tasks_service.py | 10 +- .../service/telegraf_plugins_service.py | 133 ++++ influxdb_client/service/telegrafs_service.py | 108 +-- influxdb_client/service/templates_service.py | 442 +++++------ influxdb_client/service/users_service.py | 12 +- influxdb_client/service/variables_service.py | 16 +- influxdb_client/service/views_service.py | 4 +- influxdb_client/service/write_service.py | 40 +- tests/__init__.py | 17 +- 363 files changed, 19662 insertions(+), 2336 deletions(-) create mode 100644 influxdb_client/domain/bucket_metadata_manifest.py create mode 100644 influxdb_client/domain/bucket_shard_mapping.py rename influxdb_client/domain/{documents.py => config.py} (68%) create mode 100644 influxdb_client/domain/dbrp_create.py rename influxdb_client/domain/{document_update.py => dbrp_get.py} (65%) delete mode 100644 influxdb_client/domain/document.py delete mode 100644 influxdb_client/domain/document_create.py create mode 100644 influxdb_client/domain/legacy_authorization_post_request.py create mode 100644 influxdb_client/domain/list_stacks_response.py create mode 100644 influxdb_client/domain/metadata_backup.py create mode 100644 influxdb_client/domain/patch_stack_request.py create mode 100644 influxdb_client/domain/patch_stack_request_additional_resources.py create mode 100644 influxdb_client/domain/post_restore_kv_response.py create mode 100644 influxdb_client/domain/post_stack_request.py create mode 100644 influxdb_client/domain/remote_connection.py create mode 100644 influxdb_client/domain/remote_connection_creation_request.py create mode 100644 influxdb_client/domain/remote_connection_update_request.py create mode 100644 influxdb_client/domain/remote_connections.py create mode 100644 influxdb_client/domain/replication.py create mode 100644 influxdb_client/domain/replication_creation_request.py create mode 100644 influxdb_client/domain/replication_update_request.py create mode 100644 influxdb_client/domain/replications.py rename influxdb_client/domain/{document_list_entry.py => restored_bucket_mappings.py} (52%) create mode 100644 influxdb_client/domain/retention_policy_manifest.py create mode 100644 influxdb_client/domain/shard_group_manifest.py create mode 100644 influxdb_client/domain/shard_manifest.py create mode 100644 influxdb_client/domain/shard_owner.py create mode 100644 influxdb_client/domain/simple_table_view_properties.py create mode 100644 influxdb_client/domain/stack.py create mode 100644 influxdb_client/domain/stack_associations.py rename influxdb_client/domain/{document_meta.py => stack_events.py} (50%) rename influxdb_client/domain/{document_links.py => stack_links.py} (81%) create mode 100644 influxdb_client/domain/stack_resources.py create mode 100644 influxdb_client/domain/subscription_manifest.py create mode 100644 influxdb_client/domain/telegraf_plugin_request.py create mode 100644 influxdb_client/domain/telegraf_plugin_request_plugins.py create mode 100644 influxdb_client/domain/template_apply.py create mode 100644 influxdb_client/domain/template_apply_remotes.py create mode 100644 influxdb_client/domain/template_apply_template.py create mode 100644 influxdb_client/domain/template_chart.py create mode 100644 influxdb_client/domain/template_export_by_id.py create mode 100644 influxdb_client/domain/template_export_by_id_org_ids.py create mode 100644 influxdb_client/domain/template_export_by_id_resource_filters.py create mode 100644 influxdb_client/domain/template_export_by_id_resources.py create mode 100644 influxdb_client/domain/template_export_by_name.py create mode 100644 influxdb_client/domain/template_export_by_name_resources.py create mode 100644 influxdb_client/domain/template_kind.py create mode 100644 influxdb_client/domain/template_summary.py create mode 100644 influxdb_client/domain/template_summary_diff.py create mode 100644 influxdb_client/domain/template_summary_diff_buckets.py create mode 100644 influxdb_client/domain/template_summary_diff_buckets_new_old.py create mode 100644 influxdb_client/domain/template_summary_diff_checks.py create mode 100644 influxdb_client/domain/template_summary_diff_dashboards.py create mode 100644 influxdb_client/domain/template_summary_diff_dashboards_new_old.py create mode 100644 influxdb_client/domain/template_summary_diff_label_mappings.py create mode 100644 influxdb_client/domain/template_summary_diff_labels.py create mode 100644 influxdb_client/domain/template_summary_diff_labels_new_old.py create mode 100644 influxdb_client/domain/template_summary_diff_notification_endpoints.py create mode 100644 influxdb_client/domain/template_summary_diff_notification_rules.py create mode 100644 influxdb_client/domain/template_summary_diff_notification_rules_new_old.py create mode 100644 influxdb_client/domain/template_summary_diff_tasks.py create mode 100644 influxdb_client/domain/template_summary_diff_tasks_new_old.py create mode 100644 influxdb_client/domain/template_summary_diff_telegraf_configs.py create mode 100644 influxdb_client/domain/template_summary_diff_variables.py create mode 100644 influxdb_client/domain/template_summary_diff_variables_new_old.py create mode 100644 influxdb_client/domain/template_summary_errors.py create mode 100644 influxdb_client/domain/template_summary_label.py create mode 100644 influxdb_client/domain/template_summary_label_properties.py create mode 100644 influxdb_client/domain/template_summary_summary.py create mode 100644 influxdb_client/domain/template_summary_summary_buckets.py create mode 100644 influxdb_client/domain/template_summary_summary_dashboards.py create mode 100644 influxdb_client/domain/template_summary_summary_label_mappings.py create mode 100644 influxdb_client/domain/template_summary_summary_notification_rules.py create mode 100644 influxdb_client/domain/template_summary_summary_status_rules.py create mode 100644 influxdb_client/domain/template_summary_summary_tag_rules.py create mode 100644 influxdb_client/domain/template_summary_summary_tasks.py create mode 100644 influxdb_client/domain/template_summary_summary_variables.py rename influxdb_client/service/{default_service.py => backup_service.py} (57%) create mode 100644 influxdb_client/service/config_service.py create mode 100644 influxdb_client/service/legacy_authorizations_service.py create mode 100644 influxdb_client/service/metrics_service.py create mode 100644 influxdb_client/service/remote_connections_service.py create mode 100644 influxdb_client/service/replications_service.py create mode 100644 influxdb_client/service/resources_service.py create mode 100644 influxdb_client/service/restore_service.py create mode 100644 influxdb_client/service/routes_service.py create mode 100644 influxdb_client/service/signin_service.py create mode 100644 influxdb_client/service/signout_service.py create mode 100644 influxdb_client/service/telegraf_plugins_service.py diff --git a/influxdb_client/__init__.py b/influxdb_client/__init__.py index 1bb36a36..90f2715b 100644 --- a/influxdb_client/__init__.py +++ b/influxdb_client/__init__.py @@ -3,9 +3,9 @@ # flake8: noqa """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech @@ -16,34 +16,45 @@ # import apis into sdk package from influxdb_client.service.authorizations_service import AuthorizationsService +from influxdb_client.service.backup_service import BackupService from influxdb_client.service.buckets_service import BucketsService from influxdb_client.service.cells_service import CellsService from influxdb_client.service.checks_service import ChecksService +from influxdb_client.service.config_service import ConfigService from influxdb_client.service.dbr_ps_service import DBRPsService from influxdb_client.service.dashboards_service import DashboardsService from influxdb_client.service.delete_service import DeleteService from influxdb_client.service.health_service import HealthService from influxdb_client.service.invocable_scripts_service import InvocableScriptsService from influxdb_client.service.labels_service import LabelsService +from influxdb_client.service.legacy_authorizations_service import LegacyAuthorizationsService +from influxdb_client.service.metrics_service import MetricsService from influxdb_client.service.notification_endpoints_service import NotificationEndpointsService from influxdb_client.service.notification_rules_service import NotificationRulesService from influxdb_client.service.organizations_service import OrganizationsService from influxdb_client.service.ping_service import PingService from influxdb_client.service.query_service import QueryService from influxdb_client.service.ready_service import ReadyService +from influxdb_client.service.remote_connections_service import RemoteConnectionsService +from influxdb_client.service.replications_service import ReplicationsService +from influxdb_client.service.resources_service import ResourcesService +from influxdb_client.service.restore_service import RestoreService +from influxdb_client.service.routes_service import RoutesService from influxdb_client.service.rules_service import RulesService from influxdb_client.service.scraper_targets_service import ScraperTargetsService from influxdb_client.service.secrets_service import SecretsService from influxdb_client.service.setup_service import SetupService +from influxdb_client.service.signin_service import SigninService +from influxdb_client.service.signout_service import SignoutService from influxdb_client.service.sources_service import SourcesService from influxdb_client.service.tasks_service import TasksService +from influxdb_client.service.telegraf_plugins_service import TelegrafPluginsService from influxdb_client.service.telegrafs_service import TelegrafsService from influxdb_client.service.templates_service import TemplatesService from influxdb_client.service.users_service import UsersService from influxdb_client.service.variables_service import VariablesService from influxdb_client.service.views_service import ViewsService from influxdb_client.service.write_service import WriteService -from influxdb_client.service.default_service import DefaultService # import ApiClient from influxdb_client.api_client import ApiClient @@ -68,7 +79,9 @@ from influxdb_client.domain.boolean_literal import BooleanLiteral from influxdb_client.domain.bucket import Bucket from influxdb_client.domain.bucket_links import BucketLinks +from influxdb_client.domain.bucket_metadata_manifest import BucketMetadataManifest from influxdb_client.domain.bucket_retention_rules import BucketRetentionRules +from influxdb_client.domain.bucket_shard_mapping import BucketShardMapping from influxdb_client.domain.buckets import Buckets from influxdb_client.domain.builder_aggregate_function_type import BuilderAggregateFunctionType from influxdb_client.domain.builder_config import BuilderConfig @@ -90,11 +103,14 @@ from influxdb_client.domain.check_view_properties import CheckViewProperties from influxdb_client.domain.checks import Checks from influxdb_client.domain.conditional_expression import ConditionalExpression +from influxdb_client.domain.config import Config from influxdb_client.domain.constant_variable_properties import ConstantVariableProperties from influxdb_client.domain.create_cell import CreateCell from influxdb_client.domain.create_dashboard_request import CreateDashboardRequest from influxdb_client.domain.custom_check import CustomCheck from influxdb_client.domain.dbrp import DBRP +from influxdb_client.domain.dbrp_create import DBRPCreate +from influxdb_client.domain.dbrp_get import DBRPGet from influxdb_client.domain.dbrp_update import DBRPUpdate from influxdb_client.domain.dbr_ps import DBRPs from influxdb_client.domain.dashboard import Dashboard @@ -109,13 +125,6 @@ from influxdb_client.domain.dialect import Dialect from influxdb_client.domain.dict_expression import DictExpression from influxdb_client.domain.dict_item import DictItem -from influxdb_client.domain.document import Document -from influxdb_client.domain.document_create import DocumentCreate -from influxdb_client.domain.document_links import DocumentLinks -from influxdb_client.domain.document_list_entry import DocumentListEntry -from influxdb_client.domain.document_meta import DocumentMeta -from influxdb_client.domain.document_update import DocumentUpdate -from influxdb_client.domain.documents import Documents from influxdb_client.domain.duration import Duration from influxdb_client.domain.duration_literal import DurationLiteral from influxdb_client.domain.error import Error @@ -148,11 +157,13 @@ from influxdb_client.domain.label_update import LabelUpdate from influxdb_client.domain.labels_response import LabelsResponse from influxdb_client.domain.language_request import LanguageRequest +from influxdb_client.domain.legacy_authorization_post_request import LegacyAuthorizationPostRequest from influxdb_client.domain.lesser_threshold import LesserThreshold from influxdb_client.domain.line_plus_single_stat_properties import LinePlusSingleStatProperties from influxdb_client.domain.line_protocol_error import LineProtocolError from influxdb_client.domain.line_protocol_length_error import LineProtocolLengthError from influxdb_client.domain.links import Links +from influxdb_client.domain.list_stacks_response import ListStacksResponse from influxdb_client.domain.log_event import LogEvent from influxdb_client.domain.logical_expression import LogicalExpression from influxdb_client.domain.logs import Logs @@ -160,6 +171,7 @@ from influxdb_client.domain.markdown_view_properties import MarkdownViewProperties from influxdb_client.domain.member_assignment import MemberAssignment from influxdb_client.domain.member_expression import MemberExpression +from influxdb_client.domain.metadata_backup import MetadataBackup from influxdb_client.domain.model_property import ModelProperty from influxdb_client.domain.mosaic_view_properties import MosaicViewProperties from influxdb_client.domain.node import Node @@ -194,6 +206,8 @@ from influxdb_client.domain.patch_dashboard_request import PatchDashboardRequest from influxdb_client.domain.patch_organization_request import PatchOrganizationRequest from influxdb_client.domain.patch_retention_rule import PatchRetentionRule +from influxdb_client.domain.patch_stack_request import PatchStackRequest +from influxdb_client.domain.patch_stack_request_additional_resources import PatchStackRequestAdditionalResources from influxdb_client.domain.permission import Permission from influxdb_client.domain.permission_resource import PermissionResource from influxdb_client.domain.pipe_expression import PipeExpression @@ -203,6 +217,8 @@ from influxdb_client.domain.post_notification_endpoint import PostNotificationEndpoint from influxdb_client.domain.post_notification_rule import PostNotificationRule from influxdb_client.domain.post_organization_request import PostOrganizationRequest +from influxdb_client.domain.post_restore_kv_response import PostRestoreKVResponse +from influxdb_client.domain.post_stack_request import PostStackRequest from influxdb_client.domain.property_key import PropertyKey from influxdb_client.domain.query import Query from influxdb_client.domain.query_edit_mode import QueryEditMode @@ -211,12 +227,22 @@ from influxdb_client.domain.range_threshold import RangeThreshold from influxdb_client.domain.ready import Ready from influxdb_client.domain.regexp_literal import RegexpLiteral +from influxdb_client.domain.remote_connection import RemoteConnection +from influxdb_client.domain.remote_connection_creation_request import RemoteConnectionCreationRequest +from influxdb_client.domain.remote_connection_update_request import RemoteConnectionUpdateRequest +from influxdb_client.domain.remote_connections import RemoteConnections from influxdb_client.domain.renamable_field import RenamableField +from influxdb_client.domain.replication import Replication +from influxdb_client.domain.replication_creation_request import ReplicationCreationRequest +from influxdb_client.domain.replication_update_request import ReplicationUpdateRequest +from influxdb_client.domain.replications import Replications from influxdb_client.domain.resource_member import ResourceMember from influxdb_client.domain.resource_members import ResourceMembers from influxdb_client.domain.resource_members_links import ResourceMembersLinks from influxdb_client.domain.resource_owner import ResourceOwner from influxdb_client.domain.resource_owners import ResourceOwners +from influxdb_client.domain.restored_bucket_mappings import RestoredBucketMappings +from influxdb_client.domain.retention_policy_manifest import RetentionPolicyManifest from influxdb_client.domain.return_statement import ReturnStatement from influxdb_client.domain.routes import Routes from influxdb_client.domain.routes_external import RoutesExternal @@ -242,6 +268,10 @@ from influxdb_client.domain.scripts import Scripts from influxdb_client.domain.secret_keys import SecretKeys from influxdb_client.domain.secret_keys_response import SecretKeysResponse +from influxdb_client.domain.shard_group_manifest import ShardGroupManifest +from influxdb_client.domain.shard_manifest import ShardManifest +from influxdb_client.domain.shard_owner import ShardOwner +from influxdb_client.domain.simple_table_view_properties import SimpleTableViewProperties from influxdb_client.domain.single_stat_view_properties import SingleStatViewProperties from influxdb_client.domain.slack_notification_endpoint import SlackNotificationEndpoint from influxdb_client.domain.slack_notification_rule import SlackNotificationRule @@ -249,10 +279,16 @@ from influxdb_client.domain.source import Source from influxdb_client.domain.source_links import SourceLinks from influxdb_client.domain.sources import Sources +from influxdb_client.domain.stack import Stack +from influxdb_client.domain.stack_associations import StackAssociations +from influxdb_client.domain.stack_events import StackEvents +from influxdb_client.domain.stack_links import StackLinks +from influxdb_client.domain.stack_resources import StackResources from influxdb_client.domain.statement import Statement from influxdb_client.domain.static_legend import StaticLegend from influxdb_client.domain.status_rule import StatusRule from influxdb_client.domain.string_literal import StringLiteral +from influxdb_client.domain.subscription_manifest import SubscriptionManifest from influxdb_client.domain.table_view_properties import TableViewProperties from influxdb_client.domain.table_view_properties_table_options import TableViewPropertiesTableOptions from influxdb_client.domain.tag_rule import TagRule @@ -264,6 +300,8 @@ from influxdb_client.domain.tasks import Tasks from influxdb_client.domain.telegraf import Telegraf from influxdb_client.domain.telegraf_plugin import TelegrafPlugin +from influxdb_client.domain.telegraf_plugin_request import TelegrafPluginRequest +from influxdb_client.domain.telegraf_plugin_request_plugins import TelegrafPluginRequestPlugins from influxdb_client.domain.telegraf_plugins import TelegrafPlugins from influxdb_client.domain.telegraf_request import TelegrafRequest from influxdb_client.domain.telegraf_request_metadata import TelegrafRequestMetadata @@ -271,6 +309,47 @@ from influxdb_client.domain.telegram_notification_endpoint import TelegramNotificationEndpoint from influxdb_client.domain.telegram_notification_rule import TelegramNotificationRule from influxdb_client.domain.telegram_notification_rule_base import TelegramNotificationRuleBase +from influxdb_client.domain.template_apply import TemplateApply +from influxdb_client.domain.template_apply_remotes import TemplateApplyRemotes +from influxdb_client.domain.template_apply_template import TemplateApplyTemplate +from influxdb_client.domain.template_chart import TemplateChart +from influxdb_client.domain.template_export_by_id import TemplateExportByID +from influxdb_client.domain.template_export_by_id_org_ids import TemplateExportByIDOrgIDs +from influxdb_client.domain.template_export_by_id_resource_filters import TemplateExportByIDResourceFilters +from influxdb_client.domain.template_export_by_id_resources import TemplateExportByIDResources +from influxdb_client.domain.template_export_by_name import TemplateExportByName +from influxdb_client.domain.template_export_by_name_resources import TemplateExportByNameResources +from influxdb_client.domain.template_kind import TemplateKind +from influxdb_client.domain.template_summary import TemplateSummary +from influxdb_client.domain.template_summary_diff import TemplateSummaryDiff +from influxdb_client.domain.template_summary_diff_buckets import TemplateSummaryDiffBuckets +from influxdb_client.domain.template_summary_diff_buckets_new_old import TemplateSummaryDiffBucketsNewOld +from influxdb_client.domain.template_summary_diff_checks import TemplateSummaryDiffChecks +from influxdb_client.domain.template_summary_diff_dashboards import TemplateSummaryDiffDashboards +from influxdb_client.domain.template_summary_diff_dashboards_new_old import TemplateSummaryDiffDashboardsNewOld +from influxdb_client.domain.template_summary_diff_label_mappings import TemplateSummaryDiffLabelMappings +from influxdb_client.domain.template_summary_diff_labels import TemplateSummaryDiffLabels +from influxdb_client.domain.template_summary_diff_labels_new_old import TemplateSummaryDiffLabelsNewOld +from influxdb_client.domain.template_summary_diff_notification_endpoints import TemplateSummaryDiffNotificationEndpoints +from influxdb_client.domain.template_summary_diff_notification_rules import TemplateSummaryDiffNotificationRules +from influxdb_client.domain.template_summary_diff_notification_rules_new_old import TemplateSummaryDiffNotificationRulesNewOld +from influxdb_client.domain.template_summary_diff_tasks import TemplateSummaryDiffTasks +from influxdb_client.domain.template_summary_diff_tasks_new_old import TemplateSummaryDiffTasksNewOld +from influxdb_client.domain.template_summary_diff_telegraf_configs import TemplateSummaryDiffTelegrafConfigs +from influxdb_client.domain.template_summary_diff_variables import TemplateSummaryDiffVariables +from influxdb_client.domain.template_summary_diff_variables_new_old import TemplateSummaryDiffVariablesNewOld +from influxdb_client.domain.template_summary_errors import TemplateSummaryErrors +from influxdb_client.domain.template_summary_label import TemplateSummaryLabel +from influxdb_client.domain.template_summary_label_properties import TemplateSummaryLabelProperties +from influxdb_client.domain.template_summary_summary import TemplateSummarySummary +from influxdb_client.domain.template_summary_summary_buckets import TemplateSummarySummaryBuckets +from influxdb_client.domain.template_summary_summary_dashboards import TemplateSummarySummaryDashboards +from influxdb_client.domain.template_summary_summary_label_mappings import TemplateSummarySummaryLabelMappings +from influxdb_client.domain.template_summary_summary_notification_rules import TemplateSummarySummaryNotificationRules +from influxdb_client.domain.template_summary_summary_status_rules import TemplateSummarySummaryStatusRules +from influxdb_client.domain.template_summary_summary_tag_rules import TemplateSummarySummaryTagRules +from influxdb_client.domain.template_summary_summary_tasks import TemplateSummarySummaryTasks +from influxdb_client.domain.template_summary_summary_variables import TemplateSummarySummaryVariables from influxdb_client.domain.test_statement import TestStatement from influxdb_client.domain.threshold import Threshold from influxdb_client.domain.threshold_base import ThresholdBase diff --git a/influxdb_client/api_client.py b/influxdb_client/api_client.py index 8907cf8d..6059e7bb 100644 --- a/influxdb_client/api_client.py +++ b/influxdb_client/api_client.py @@ -1,8 +1,8 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/client/__init__.py b/influxdb_client/client/__init__.py index 5858de7f..77c51a11 100644 --- a/influxdb_client/client/__init__.py +++ b/influxdb_client/client/__init__.py @@ -1,9 +1,9 @@ # flake8: noqa """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech @@ -14,31 +14,42 @@ # import apis into api package from influxdb_client.service.authorizations_service import AuthorizationsService +from influxdb_client.service.backup_service import BackupService from influxdb_client.service.buckets_service import BucketsService from influxdb_client.service.cells_service import CellsService from influxdb_client.service.checks_service import ChecksService +from influxdb_client.service.config_service import ConfigService from influxdb_client.service.dbr_ps_service import DBRPsService from influxdb_client.service.dashboards_service import DashboardsService from influxdb_client.service.delete_service import DeleteService from influxdb_client.service.health_service import HealthService from influxdb_client.service.invocable_scripts_service import InvocableScriptsService from influxdb_client.service.labels_service import LabelsService +from influxdb_client.service.legacy_authorizations_service import LegacyAuthorizationsService +from influxdb_client.service.metrics_service import MetricsService from influxdb_client.service.notification_endpoints_service import NotificationEndpointsService from influxdb_client.service.notification_rules_service import NotificationRulesService from influxdb_client.service.organizations_service import OrganizationsService from influxdb_client.service.ping_service import PingService from influxdb_client.service.query_service import QueryService from influxdb_client.service.ready_service import ReadyService +from influxdb_client.service.remote_connections_service import RemoteConnectionsService +from influxdb_client.service.replications_service import ReplicationsService +from influxdb_client.service.resources_service import ResourcesService +from influxdb_client.service.restore_service import RestoreService +from influxdb_client.service.routes_service import RoutesService from influxdb_client.service.rules_service import RulesService from influxdb_client.service.scraper_targets_service import ScraperTargetsService from influxdb_client.service.secrets_service import SecretsService from influxdb_client.service.setup_service import SetupService +from influxdb_client.service.signin_service import SigninService +from influxdb_client.service.signout_service import SignoutService from influxdb_client.service.sources_service import SourcesService from influxdb_client.service.tasks_service import TasksService +from influxdb_client.service.telegraf_plugins_service import TelegrafPluginsService from influxdb_client.service.telegrafs_service import TelegrafsService from influxdb_client.service.templates_service import TemplatesService from influxdb_client.service.users_service import UsersService from influxdb_client.service.variables_service import VariablesService from influxdb_client.service.views_service import ViewsService from influxdb_client.service.write_service import WriteService -from influxdb_client.service.default_service import DefaultService diff --git a/influxdb_client/client/write/__init__.py b/influxdb_client/client/write/__init__.py index 5858de7f..77c51a11 100644 --- a/influxdb_client/client/write/__init__.py +++ b/influxdb_client/client/write/__init__.py @@ -1,9 +1,9 @@ # flake8: noqa """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech @@ -14,31 +14,42 @@ # import apis into api package from influxdb_client.service.authorizations_service import AuthorizationsService +from influxdb_client.service.backup_service import BackupService from influxdb_client.service.buckets_service import BucketsService from influxdb_client.service.cells_service import CellsService from influxdb_client.service.checks_service import ChecksService +from influxdb_client.service.config_service import ConfigService from influxdb_client.service.dbr_ps_service import DBRPsService from influxdb_client.service.dashboards_service import DashboardsService from influxdb_client.service.delete_service import DeleteService from influxdb_client.service.health_service import HealthService from influxdb_client.service.invocable_scripts_service import InvocableScriptsService from influxdb_client.service.labels_service import LabelsService +from influxdb_client.service.legacy_authorizations_service import LegacyAuthorizationsService +from influxdb_client.service.metrics_service import MetricsService from influxdb_client.service.notification_endpoints_service import NotificationEndpointsService from influxdb_client.service.notification_rules_service import NotificationRulesService from influxdb_client.service.organizations_service import OrganizationsService from influxdb_client.service.ping_service import PingService from influxdb_client.service.query_service import QueryService from influxdb_client.service.ready_service import ReadyService +from influxdb_client.service.remote_connections_service import RemoteConnectionsService +from influxdb_client.service.replications_service import ReplicationsService +from influxdb_client.service.resources_service import ResourcesService +from influxdb_client.service.restore_service import RestoreService +from influxdb_client.service.routes_service import RoutesService from influxdb_client.service.rules_service import RulesService from influxdb_client.service.scraper_targets_service import ScraperTargetsService from influxdb_client.service.secrets_service import SecretsService from influxdb_client.service.setup_service import SetupService +from influxdb_client.service.signin_service import SigninService +from influxdb_client.service.signout_service import SignoutService from influxdb_client.service.sources_service import SourcesService from influxdb_client.service.tasks_service import TasksService +from influxdb_client.service.telegraf_plugins_service import TelegrafPluginsService from influxdb_client.service.telegrafs_service import TelegrafsService from influxdb_client.service.templates_service import TemplatesService from influxdb_client.service.users_service import UsersService from influxdb_client.service.variables_service import VariablesService from influxdb_client.service.views_service import ViewsService from influxdb_client.service.write_service import WriteService -from influxdb_client.service.default_service import DefaultService diff --git a/influxdb_client/configuration.py b/influxdb_client/configuration.py index 0132cf15..fcb3c667 100644 --- a/influxdb_client/configuration.py +++ b/influxdb_client/configuration.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech @@ -229,13 +229,20 @@ def auth_settings(self): :return: The Auth Settings information dict. """ return { - 'BasicAuth': + 'BasicAuthentication': { 'type': 'basic', 'in': 'header', 'key': 'Authorization', 'value': self.get_basic_auth_token() }, + 'TokenAuthentication': + { + 'type': 'api_key', + 'in': 'header', + 'key': 'Authorization', + 'value': self.get_api_key_with_prefix('Authorization') + }, } diff --git a/influxdb_client/domain/__init__.py b/influxdb_client/domain/__init__.py index 463fcb26..61351d00 100644 --- a/influxdb_client/domain/__init__.py +++ b/influxdb_client/domain/__init__.py @@ -2,9 +2,9 @@ # flake8: noqa """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech @@ -33,7 +33,9 @@ from influxdb_client.domain.boolean_literal import BooleanLiteral from influxdb_client.domain.bucket import Bucket from influxdb_client.domain.bucket_links import BucketLinks +from influxdb_client.domain.bucket_metadata_manifest import BucketMetadataManifest from influxdb_client.domain.bucket_retention_rules import BucketRetentionRules +from influxdb_client.domain.bucket_shard_mapping import BucketShardMapping from influxdb_client.domain.buckets import Buckets from influxdb_client.domain.builder_aggregate_function_type import BuilderAggregateFunctionType from influxdb_client.domain.builder_config import BuilderConfig @@ -55,11 +57,14 @@ from influxdb_client.domain.check_view_properties import CheckViewProperties from influxdb_client.domain.checks import Checks from influxdb_client.domain.conditional_expression import ConditionalExpression +from influxdb_client.domain.config import Config from influxdb_client.domain.constant_variable_properties import ConstantVariableProperties from influxdb_client.domain.create_cell import CreateCell from influxdb_client.domain.create_dashboard_request import CreateDashboardRequest from influxdb_client.domain.custom_check import CustomCheck from influxdb_client.domain.dbrp import DBRP +from influxdb_client.domain.dbrp_create import DBRPCreate +from influxdb_client.domain.dbrp_get import DBRPGet from influxdb_client.domain.dbrp_update import DBRPUpdate from influxdb_client.domain.dbr_ps import DBRPs from influxdb_client.domain.dashboard import Dashboard @@ -74,13 +79,6 @@ from influxdb_client.domain.dialect import Dialect from influxdb_client.domain.dict_expression import DictExpression from influxdb_client.domain.dict_item import DictItem -from influxdb_client.domain.document import Document -from influxdb_client.domain.document_create import DocumentCreate -from influxdb_client.domain.document_links import DocumentLinks -from influxdb_client.domain.document_list_entry import DocumentListEntry -from influxdb_client.domain.document_meta import DocumentMeta -from influxdb_client.domain.document_update import DocumentUpdate -from influxdb_client.domain.documents import Documents from influxdb_client.domain.duration import Duration from influxdb_client.domain.duration_literal import DurationLiteral from influxdb_client.domain.error import Error @@ -113,11 +111,13 @@ from influxdb_client.domain.label_update import LabelUpdate from influxdb_client.domain.labels_response import LabelsResponse from influxdb_client.domain.language_request import LanguageRequest +from influxdb_client.domain.legacy_authorization_post_request import LegacyAuthorizationPostRequest from influxdb_client.domain.lesser_threshold import LesserThreshold from influxdb_client.domain.line_plus_single_stat_properties import LinePlusSingleStatProperties from influxdb_client.domain.line_protocol_error import LineProtocolError from influxdb_client.domain.line_protocol_length_error import LineProtocolLengthError from influxdb_client.domain.links import Links +from influxdb_client.domain.list_stacks_response import ListStacksResponse from influxdb_client.domain.log_event import LogEvent from influxdb_client.domain.logical_expression import LogicalExpression from influxdb_client.domain.logs import Logs @@ -125,6 +125,7 @@ from influxdb_client.domain.markdown_view_properties import MarkdownViewProperties from influxdb_client.domain.member_assignment import MemberAssignment from influxdb_client.domain.member_expression import MemberExpression +from influxdb_client.domain.metadata_backup import MetadataBackup from influxdb_client.domain.model_property import ModelProperty from influxdb_client.domain.mosaic_view_properties import MosaicViewProperties from influxdb_client.domain.node import Node @@ -159,6 +160,8 @@ from influxdb_client.domain.patch_dashboard_request import PatchDashboardRequest from influxdb_client.domain.patch_organization_request import PatchOrganizationRequest from influxdb_client.domain.patch_retention_rule import PatchRetentionRule +from influxdb_client.domain.patch_stack_request import PatchStackRequest +from influxdb_client.domain.patch_stack_request_additional_resources import PatchStackRequestAdditionalResources from influxdb_client.domain.permission import Permission from influxdb_client.domain.permission_resource import PermissionResource from influxdb_client.domain.pipe_expression import PipeExpression @@ -168,6 +171,8 @@ from influxdb_client.domain.post_notification_endpoint import PostNotificationEndpoint from influxdb_client.domain.post_notification_rule import PostNotificationRule from influxdb_client.domain.post_organization_request import PostOrganizationRequest +from influxdb_client.domain.post_restore_kv_response import PostRestoreKVResponse +from influxdb_client.domain.post_stack_request import PostStackRequest from influxdb_client.domain.property_key import PropertyKey from influxdb_client.domain.query import Query from influxdb_client.domain.query_edit_mode import QueryEditMode @@ -176,12 +181,22 @@ from influxdb_client.domain.range_threshold import RangeThreshold from influxdb_client.domain.ready import Ready from influxdb_client.domain.regexp_literal import RegexpLiteral +from influxdb_client.domain.remote_connection import RemoteConnection +from influxdb_client.domain.remote_connection_creation_request import RemoteConnectionCreationRequest +from influxdb_client.domain.remote_connection_update_request import RemoteConnectionUpdateRequest +from influxdb_client.domain.remote_connections import RemoteConnections from influxdb_client.domain.renamable_field import RenamableField +from influxdb_client.domain.replication import Replication +from influxdb_client.domain.replication_creation_request import ReplicationCreationRequest +from influxdb_client.domain.replication_update_request import ReplicationUpdateRequest +from influxdb_client.domain.replications import Replications from influxdb_client.domain.resource_member import ResourceMember from influxdb_client.domain.resource_members import ResourceMembers from influxdb_client.domain.resource_members_links import ResourceMembersLinks from influxdb_client.domain.resource_owner import ResourceOwner from influxdb_client.domain.resource_owners import ResourceOwners +from influxdb_client.domain.restored_bucket_mappings import RestoredBucketMappings +from influxdb_client.domain.retention_policy_manifest import RetentionPolicyManifest from influxdb_client.domain.return_statement import ReturnStatement from influxdb_client.domain.routes import Routes from influxdb_client.domain.routes_external import RoutesExternal @@ -207,6 +222,10 @@ from influxdb_client.domain.scripts import Scripts from influxdb_client.domain.secret_keys import SecretKeys from influxdb_client.domain.secret_keys_response import SecretKeysResponse +from influxdb_client.domain.shard_group_manifest import ShardGroupManifest +from influxdb_client.domain.shard_manifest import ShardManifest +from influxdb_client.domain.shard_owner import ShardOwner +from influxdb_client.domain.simple_table_view_properties import SimpleTableViewProperties from influxdb_client.domain.single_stat_view_properties import SingleStatViewProperties from influxdb_client.domain.slack_notification_endpoint import SlackNotificationEndpoint from influxdb_client.domain.slack_notification_rule import SlackNotificationRule @@ -214,10 +233,16 @@ from influxdb_client.domain.source import Source from influxdb_client.domain.source_links import SourceLinks from influxdb_client.domain.sources import Sources +from influxdb_client.domain.stack import Stack +from influxdb_client.domain.stack_associations import StackAssociations +from influxdb_client.domain.stack_events import StackEvents +from influxdb_client.domain.stack_links import StackLinks +from influxdb_client.domain.stack_resources import StackResources from influxdb_client.domain.statement import Statement from influxdb_client.domain.static_legend import StaticLegend from influxdb_client.domain.status_rule import StatusRule from influxdb_client.domain.string_literal import StringLiteral +from influxdb_client.domain.subscription_manifest import SubscriptionManifest from influxdb_client.domain.table_view_properties import TableViewProperties from influxdb_client.domain.table_view_properties_table_options import TableViewPropertiesTableOptions from influxdb_client.domain.tag_rule import TagRule @@ -229,6 +254,8 @@ from influxdb_client.domain.tasks import Tasks from influxdb_client.domain.telegraf import Telegraf from influxdb_client.domain.telegraf_plugin import TelegrafPlugin +from influxdb_client.domain.telegraf_plugin_request import TelegrafPluginRequest +from influxdb_client.domain.telegraf_plugin_request_plugins import TelegrafPluginRequestPlugins from influxdb_client.domain.telegraf_plugins import TelegrafPlugins from influxdb_client.domain.telegraf_request import TelegrafRequest from influxdb_client.domain.telegraf_request_metadata import TelegrafRequestMetadata @@ -236,6 +263,47 @@ from influxdb_client.domain.telegram_notification_endpoint import TelegramNotificationEndpoint from influxdb_client.domain.telegram_notification_rule import TelegramNotificationRule from influxdb_client.domain.telegram_notification_rule_base import TelegramNotificationRuleBase +from influxdb_client.domain.template_apply import TemplateApply +from influxdb_client.domain.template_apply_remotes import TemplateApplyRemotes +from influxdb_client.domain.template_apply_template import TemplateApplyTemplate +from influxdb_client.domain.template_chart import TemplateChart +from influxdb_client.domain.template_export_by_id import TemplateExportByID +from influxdb_client.domain.template_export_by_id_org_ids import TemplateExportByIDOrgIDs +from influxdb_client.domain.template_export_by_id_resource_filters import TemplateExportByIDResourceFilters +from influxdb_client.domain.template_export_by_id_resources import TemplateExportByIDResources +from influxdb_client.domain.template_export_by_name import TemplateExportByName +from influxdb_client.domain.template_export_by_name_resources import TemplateExportByNameResources +from influxdb_client.domain.template_kind import TemplateKind +from influxdb_client.domain.template_summary import TemplateSummary +from influxdb_client.domain.template_summary_diff import TemplateSummaryDiff +from influxdb_client.domain.template_summary_diff_buckets import TemplateSummaryDiffBuckets +from influxdb_client.domain.template_summary_diff_buckets_new_old import TemplateSummaryDiffBucketsNewOld +from influxdb_client.domain.template_summary_diff_checks import TemplateSummaryDiffChecks +from influxdb_client.domain.template_summary_diff_dashboards import TemplateSummaryDiffDashboards +from influxdb_client.domain.template_summary_diff_dashboards_new_old import TemplateSummaryDiffDashboardsNewOld +from influxdb_client.domain.template_summary_diff_label_mappings import TemplateSummaryDiffLabelMappings +from influxdb_client.domain.template_summary_diff_labels import TemplateSummaryDiffLabels +from influxdb_client.domain.template_summary_diff_labels_new_old import TemplateSummaryDiffLabelsNewOld +from influxdb_client.domain.template_summary_diff_notification_endpoints import TemplateSummaryDiffNotificationEndpoints +from influxdb_client.domain.template_summary_diff_notification_rules import TemplateSummaryDiffNotificationRules +from influxdb_client.domain.template_summary_diff_notification_rules_new_old import TemplateSummaryDiffNotificationRulesNewOld +from influxdb_client.domain.template_summary_diff_tasks import TemplateSummaryDiffTasks +from influxdb_client.domain.template_summary_diff_tasks_new_old import TemplateSummaryDiffTasksNewOld +from influxdb_client.domain.template_summary_diff_telegraf_configs import TemplateSummaryDiffTelegrafConfigs +from influxdb_client.domain.template_summary_diff_variables import TemplateSummaryDiffVariables +from influxdb_client.domain.template_summary_diff_variables_new_old import TemplateSummaryDiffVariablesNewOld +from influxdb_client.domain.template_summary_errors import TemplateSummaryErrors +from influxdb_client.domain.template_summary_label import TemplateSummaryLabel +from influxdb_client.domain.template_summary_label_properties import TemplateSummaryLabelProperties +from influxdb_client.domain.template_summary_summary import TemplateSummarySummary +from influxdb_client.domain.template_summary_summary_buckets import TemplateSummarySummaryBuckets +from influxdb_client.domain.template_summary_summary_dashboards import TemplateSummarySummaryDashboards +from influxdb_client.domain.template_summary_summary_label_mappings import TemplateSummarySummaryLabelMappings +from influxdb_client.domain.template_summary_summary_notification_rules import TemplateSummarySummaryNotificationRules +from influxdb_client.domain.template_summary_summary_status_rules import TemplateSummarySummaryStatusRules +from influxdb_client.domain.template_summary_summary_tag_rules import TemplateSummarySummaryTagRules +from influxdb_client.domain.template_summary_summary_tasks import TemplateSummarySummaryTasks +from influxdb_client.domain.template_summary_summary_variables import TemplateSummarySummaryVariables from influxdb_client.domain.test_statement import TestStatement from influxdb_client.domain.threshold import Threshold from influxdb_client.domain.threshold_base import ThresholdBase diff --git a/influxdb_client/domain/add_resource_member_request_body.py b/influxdb_client/domain/add_resource_member_request_body.py index 6424c1b5..64d03580 100644 --- a/influxdb_client/domain/add_resource_member_request_body.py +++ b/influxdb_client/domain/add_resource_member_request_body.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/analyze_query_response.py b/influxdb_client/domain/analyze_query_response.py index da1f36a9..061b7418 100644 --- a/influxdb_client/domain/analyze_query_response.py +++ b/influxdb_client/domain/analyze_query_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/analyze_query_response_errors.py b/influxdb_client/domain/analyze_query_response_errors.py index eb51ddad..bbad3fef 100644 --- a/influxdb_client/domain/analyze_query_response_errors.py +++ b/influxdb_client/domain/analyze_query_response_errors.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/array_expression.py b/influxdb_client/domain/array_expression.py index d282dcef..ad13398a 100644 --- a/influxdb_client/domain/array_expression.py +++ b/influxdb_client/domain/array_expression.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/ast_response.py b/influxdb_client/domain/ast_response.py index fd622531..7cb8089d 100644 --- a/influxdb_client/domain/ast_response.py +++ b/influxdb_client/domain/ast_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/authorization.py b/influxdb_client/domain/authorization.py index 45b2e75c..161a62a3 100644 --- a/influxdb_client/domain/authorization.py +++ b/influxdb_client/domain/authorization.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/authorization_post_request.py b/influxdb_client/domain/authorization_post_request.py index d4ac6f4d..412025d9 100644 --- a/influxdb_client/domain/authorization_post_request.py +++ b/influxdb_client/domain/authorization_post_request.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/authorization_update_request.py b/influxdb_client/domain/authorization_update_request.py index 6a03f442..fc230aef 100644 --- a/influxdb_client/domain/authorization_update_request.py +++ b/influxdb_client/domain/authorization_update_request.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/authorizations.py b/influxdb_client/domain/authorizations.py index 0081ce71..8d17f78f 100644 --- a/influxdb_client/domain/authorizations.py +++ b/influxdb_client/domain/authorizations.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/axes.py b/influxdb_client/domain/axes.py index 38784fbb..0e8117cc 100644 --- a/influxdb_client/domain/axes.py +++ b/influxdb_client/domain/axes.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/axis.py b/influxdb_client/domain/axis.py index a822bfe2..25e1b2d6 100644 --- a/influxdb_client/domain/axis.py +++ b/influxdb_client/domain/axis.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/axis_scale.py b/influxdb_client/domain/axis_scale.py index e6652b7c..1fafa2f1 100644 --- a/influxdb_client/domain/axis_scale.py +++ b/influxdb_client/domain/axis_scale.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/bad_statement.py b/influxdb_client/domain/bad_statement.py index 71df966f..2ee727bb 100644 --- a/influxdb_client/domain/bad_statement.py +++ b/influxdb_client/domain/bad_statement.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/band_view_properties.py b/influxdb_client/domain/band_view_properties.py index ab8d9f98..6ad9b1c5 100644 --- a/influxdb_client/domain/band_view_properties.py +++ b/influxdb_client/domain/band_view_properties.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/binary_expression.py b/influxdb_client/domain/binary_expression.py index 4a1803fd..4360aa07 100644 --- a/influxdb_client/domain/binary_expression.py +++ b/influxdb_client/domain/binary_expression.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/block.py b/influxdb_client/domain/block.py index b8c20e91..4eebbbd4 100644 --- a/influxdb_client/domain/block.py +++ b/influxdb_client/domain/block.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/boolean_literal.py b/influxdb_client/domain/boolean_literal.py index 9d183a70..65957952 100644 --- a/influxdb_client/domain/boolean_literal.py +++ b/influxdb_client/domain/boolean_literal.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/bucket.py b/influxdb_client/domain/bucket.py index 8df0e898..d6b5d819 100644 --- a/influxdb_client/domain/bucket.py +++ b/influxdb_client/domain/bucket.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/bucket_links.py b/influxdb_client/domain/bucket_links.py index f3f627ab..483150e8 100644 --- a/influxdb_client/domain/bucket_links.py +++ b/influxdb_client/domain/bucket_links.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/bucket_metadata_manifest.py b/influxdb_client/domain/bucket_metadata_manifest.py new file mode 100644 index 00000000..c84d8bef --- /dev/null +++ b/influxdb_client/domain/bucket_metadata_manifest.py @@ -0,0 +1,253 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class BucketMetadataManifest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'organization_id': 'str', + 'organization_name': 'str', + 'bucket_id': 'str', + 'bucket_name': 'str', + 'description': 'str', + 'default_retention_policy': 'str', + 'retention_policies': 'list[RetentionPolicyManifest]' + } + + attribute_map = { + 'organization_id': 'organizationID', + 'organization_name': 'organizationName', + 'bucket_id': 'bucketID', + 'bucket_name': 'bucketName', + 'description': 'description', + 'default_retention_policy': 'defaultRetentionPolicy', + 'retention_policies': 'retentionPolicies' + } + + def __init__(self, organization_id=None, organization_name=None, bucket_id=None, bucket_name=None, description=None, default_retention_policy=None, retention_policies=None): # noqa: E501,D401,D403 + """BucketMetadataManifest - a model defined in OpenAPI.""" # noqa: E501 + self._organization_id = None + self._organization_name = None + self._bucket_id = None + self._bucket_name = None + self._description = None + self._default_retention_policy = None + self._retention_policies = None + self.discriminator = None + + self.organization_id = organization_id + self.organization_name = organization_name + self.bucket_id = bucket_id + self.bucket_name = bucket_name + if description is not None: + self.description = description + self.default_retention_policy = default_retention_policy + self.retention_policies = retention_policies + + @property + def organization_id(self): + """Get the organization_id of this BucketMetadataManifest. + + :return: The organization_id of this BucketMetadataManifest. + :rtype: str + """ # noqa: E501 + return self._organization_id + + @organization_id.setter + def organization_id(self, organization_id): + """Set the organization_id of this BucketMetadataManifest. + + :param organization_id: The organization_id of this BucketMetadataManifest. + :type: str + """ # noqa: E501 + if organization_id is None: + raise ValueError("Invalid value for `organization_id`, must not be `None`") # noqa: E501 + self._organization_id = organization_id + + @property + def organization_name(self): + """Get the organization_name of this BucketMetadataManifest. + + :return: The organization_name of this BucketMetadataManifest. + :rtype: str + """ # noqa: E501 + return self._organization_name + + @organization_name.setter + def organization_name(self, organization_name): + """Set the organization_name of this BucketMetadataManifest. + + :param organization_name: The organization_name of this BucketMetadataManifest. + :type: str + """ # noqa: E501 + if organization_name is None: + raise ValueError("Invalid value for `organization_name`, must not be `None`") # noqa: E501 + self._organization_name = organization_name + + @property + def bucket_id(self): + """Get the bucket_id of this BucketMetadataManifest. + + :return: The bucket_id of this BucketMetadataManifest. + :rtype: str + """ # noqa: E501 + return self._bucket_id + + @bucket_id.setter + def bucket_id(self, bucket_id): + """Set the bucket_id of this BucketMetadataManifest. + + :param bucket_id: The bucket_id of this BucketMetadataManifest. + :type: str + """ # noqa: E501 + if bucket_id is None: + raise ValueError("Invalid value for `bucket_id`, must not be `None`") # noqa: E501 + self._bucket_id = bucket_id + + @property + def bucket_name(self): + """Get the bucket_name of this BucketMetadataManifest. + + :return: The bucket_name of this BucketMetadataManifest. + :rtype: str + """ # noqa: E501 + return self._bucket_name + + @bucket_name.setter + def bucket_name(self, bucket_name): + """Set the bucket_name of this BucketMetadataManifest. + + :param bucket_name: The bucket_name of this BucketMetadataManifest. + :type: str + """ # noqa: E501 + if bucket_name is None: + raise ValueError("Invalid value for `bucket_name`, must not be `None`") # noqa: E501 + self._bucket_name = bucket_name + + @property + def description(self): + """Get the description of this BucketMetadataManifest. + + :return: The description of this BucketMetadataManifest. + :rtype: str + """ # noqa: E501 + return self._description + + @description.setter + def description(self, description): + """Set the description of this BucketMetadataManifest. + + :param description: The description of this BucketMetadataManifest. + :type: str + """ # noqa: E501 + self._description = description + + @property + def default_retention_policy(self): + """Get the default_retention_policy of this BucketMetadataManifest. + + :return: The default_retention_policy of this BucketMetadataManifest. + :rtype: str + """ # noqa: E501 + return self._default_retention_policy + + @default_retention_policy.setter + def default_retention_policy(self, default_retention_policy): + """Set the default_retention_policy of this BucketMetadataManifest. + + :param default_retention_policy: The default_retention_policy of this BucketMetadataManifest. + :type: str + """ # noqa: E501 + if default_retention_policy is None: + raise ValueError("Invalid value for `default_retention_policy`, must not be `None`") # noqa: E501 + self._default_retention_policy = default_retention_policy + + @property + def retention_policies(self): + """Get the retention_policies of this BucketMetadataManifest. + + :return: The retention_policies of this BucketMetadataManifest. + :rtype: list[RetentionPolicyManifest] + """ # noqa: E501 + return self._retention_policies + + @retention_policies.setter + def retention_policies(self, retention_policies): + """Set the retention_policies of this BucketMetadataManifest. + + :param retention_policies: The retention_policies of this BucketMetadataManifest. + :type: list[RetentionPolicyManifest] + """ # noqa: E501 + if retention_policies is None: + raise ValueError("Invalid value for `retention_policies`, must not be `None`") # noqa: E501 + self._retention_policies = retention_policies + + def to_dict(self): + """Return the model properties as a dict.""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Return the string representation of the model.""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`.""" + return self.to_str() + + def __eq__(self, other): + """Return true if both objects are equal.""" + if not isinstance(other, BucketMetadataManifest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Return true if both objects are not equal.""" + return not self == other diff --git a/influxdb_client/domain/bucket_retention_rules.py b/influxdb_client/domain/bucket_retention_rules.py index 266621d7..c528aac6 100644 --- a/influxdb_client/domain/bucket_retention_rules.py +++ b/influxdb_client/domain/bucket_retention_rules.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/bucket_shard_mapping.py b/influxdb_client/domain/bucket_shard_mapping.py new file mode 100644 index 00000000..84253b77 --- /dev/null +++ b/influxdb_client/domain/bucket_shard_mapping.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class BucketShardMapping(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'old_id': 'int', + 'new_id': 'int' + } + + attribute_map = { + 'old_id': 'oldId', + 'new_id': 'newId' + } + + def __init__(self, old_id=None, new_id=None): # noqa: E501,D401,D403 + """BucketShardMapping - a model defined in OpenAPI.""" # noqa: E501 + self._old_id = None + self._new_id = None + self.discriminator = None + + self.old_id = old_id + self.new_id = new_id + + @property + def old_id(self): + """Get the old_id of this BucketShardMapping. + + :return: The old_id of this BucketShardMapping. + :rtype: int + """ # noqa: E501 + return self._old_id + + @old_id.setter + def old_id(self, old_id): + """Set the old_id of this BucketShardMapping. + + :param old_id: The old_id of this BucketShardMapping. + :type: int + """ # noqa: E501 + if old_id is None: + raise ValueError("Invalid value for `old_id`, must not be `None`") # noqa: E501 + self._old_id = old_id + + @property + def new_id(self): + """Get the new_id of this BucketShardMapping. + + :return: The new_id of this BucketShardMapping. + :rtype: int + """ # noqa: E501 + return self._new_id + + @new_id.setter + def new_id(self, new_id): + """Set the new_id of this BucketShardMapping. + + :param new_id: The new_id of this BucketShardMapping. + :type: int + """ # noqa: E501 + if new_id is None: + raise ValueError("Invalid value for `new_id`, must not be `None`") # noqa: E501 + self._new_id = new_id + + def to_dict(self): + """Return the model properties as a dict.""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Return the string representation of the model.""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`.""" + return self.to_str() + + def __eq__(self, other): + """Return true if both objects are equal.""" + if not isinstance(other, BucketShardMapping): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Return true if both objects are not equal.""" + return not self == other diff --git a/influxdb_client/domain/buckets.py b/influxdb_client/domain/buckets.py index d6aa6a8f..70325f3c 100644 --- a/influxdb_client/domain/buckets.py +++ b/influxdb_client/domain/buckets.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/builder_aggregate_function_type.py b/influxdb_client/domain/builder_aggregate_function_type.py index 0fe68f36..3910d072 100644 --- a/influxdb_client/domain/builder_aggregate_function_type.py +++ b/influxdb_client/domain/builder_aggregate_function_type.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/builder_config.py b/influxdb_client/domain/builder_config.py index 9c5e9376..ce24f2e5 100644 --- a/influxdb_client/domain/builder_config.py +++ b/influxdb_client/domain/builder_config.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/builder_config_aggregate_window.py b/influxdb_client/domain/builder_config_aggregate_window.py index 4e22f25b..919830a7 100644 --- a/influxdb_client/domain/builder_config_aggregate_window.py +++ b/influxdb_client/domain/builder_config_aggregate_window.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/builder_functions_type.py b/influxdb_client/domain/builder_functions_type.py index cd8f86e7..d1818642 100644 --- a/influxdb_client/domain/builder_functions_type.py +++ b/influxdb_client/domain/builder_functions_type.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/builder_tags_type.py b/influxdb_client/domain/builder_tags_type.py index c929b703..a3297777 100644 --- a/influxdb_client/domain/builder_tags_type.py +++ b/influxdb_client/domain/builder_tags_type.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/builtin_statement.py b/influxdb_client/domain/builtin_statement.py index 20861765..4e9f4dad 100644 --- a/influxdb_client/domain/builtin_statement.py +++ b/influxdb_client/domain/builtin_statement.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/call_expression.py b/influxdb_client/domain/call_expression.py index eb57f54d..177c2476 100644 --- a/influxdb_client/domain/call_expression.py +++ b/influxdb_client/domain/call_expression.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/cell.py b/influxdb_client/domain/cell.py index a03c7b71..684080fc 100644 --- a/influxdb_client/domain/cell.py +++ b/influxdb_client/domain/cell.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/cell_links.py b/influxdb_client/domain/cell_links.py index f551d58c..7a6777ac 100644 --- a/influxdb_client/domain/cell_links.py +++ b/influxdb_client/domain/cell_links.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/cell_update.py b/influxdb_client/domain/cell_update.py index 0c5fe25d..dcfdb3f8 100644 --- a/influxdb_client/domain/cell_update.py +++ b/influxdb_client/domain/cell_update.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/cell_with_view_properties.py b/influxdb_client/domain/cell_with_view_properties.py index 421b309e..83a6ebf7 100644 --- a/influxdb_client/domain/cell_with_view_properties.py +++ b/influxdb_client/domain/cell_with_view_properties.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/check.py b/influxdb_client/domain/check.py index 249bc058..b9a57208 100644 --- a/influxdb_client/domain/check.py +++ b/influxdb_client/domain/check.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/check_base.py b/influxdb_client/domain/check_base.py index fde5b082..af2a1608 100644 --- a/influxdb_client/domain/check_base.py +++ b/influxdb_client/domain/check_base.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/check_base_links.py b/influxdb_client/domain/check_base_links.py index eb02a7cb..958401ae 100644 --- a/influxdb_client/domain/check_base_links.py +++ b/influxdb_client/domain/check_base_links.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/check_discriminator.py b/influxdb_client/domain/check_discriminator.py index c2a1ecf2..a74f5815 100644 --- a/influxdb_client/domain/check_discriminator.py +++ b/influxdb_client/domain/check_discriminator.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/check_patch.py b/influxdb_client/domain/check_patch.py index 316945ba..0be11b2d 100644 --- a/influxdb_client/domain/check_patch.py +++ b/influxdb_client/domain/check_patch.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/check_status_level.py b/influxdb_client/domain/check_status_level.py index 321dcc59..a15cce84 100644 --- a/influxdb_client/domain/check_status_level.py +++ b/influxdb_client/domain/check_status_level.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/check_view_properties.py b/influxdb_client/domain/check_view_properties.py index 7fbc3ef2..9b409c1e 100644 --- a/influxdb_client/domain/check_view_properties.py +++ b/influxdb_client/domain/check_view_properties.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/checks.py b/influxdb_client/domain/checks.py index 27c8f428..ac072448 100644 --- a/influxdb_client/domain/checks.py +++ b/influxdb_client/domain/checks.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/conditional_expression.py b/influxdb_client/domain/conditional_expression.py index 1da9837f..514f7e72 100644 --- a/influxdb_client/domain/conditional_expression.py +++ b/influxdb_client/domain/conditional_expression.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/documents.py b/influxdb_client/domain/config.py similarity index 68% rename from influxdb_client/domain/documents.py rename to influxdb_client/domain/config.py index f6146ba0..617e7989 100644 --- a/influxdb_client/domain/documents.py +++ b/influxdb_client/domain/config.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech @@ -16,7 +16,7 @@ import six -class Documents(object): +class Config(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -32,38 +32,38 @@ class Documents(object): and the value is json key in definition. """ openapi_types = { - 'documents': 'list[DocumentListEntry]' + 'config': 'object' } attribute_map = { - 'documents': 'documents' + 'config': 'config' } - def __init__(self, documents=None): # noqa: E501,D401,D403 - """Documents - a model defined in OpenAPI.""" # noqa: E501 - self._documents = None + def __init__(self, config=None): # noqa: E501,D401,D403 + """Config - a model defined in OpenAPI.""" # noqa: E501 + self._config = None self.discriminator = None - if documents is not None: - self.documents = documents + if config is not None: + self.config = config @property - def documents(self): - """Get the documents of this Documents. + def config(self): + """Get the config of this Config. - :return: The documents of this Documents. - :rtype: list[DocumentListEntry] + :return: The config of this Config. + :rtype: object """ # noqa: E501 - return self._documents + return self._config - @documents.setter - def documents(self, documents): - """Set the documents of this Documents. + @config.setter + def config(self, config): + """Set the config of this Config. - :param documents: The documents of this Documents. - :type: list[DocumentListEntry] + :param config: The config of this Config. + :type: object """ # noqa: E501 - self._documents = documents + self._config = config def to_dict(self): """Return the model properties as a dict.""" @@ -99,7 +99,7 @@ def __repr__(self): def __eq__(self, other): """Return true if both objects are equal.""" - if not isinstance(other, Documents): + if not isinstance(other, Config): return False return self.__dict__ == other.__dict__ diff --git a/influxdb_client/domain/constant_variable_properties.py b/influxdb_client/domain/constant_variable_properties.py index 65a9aab9..7273f2d1 100644 --- a/influxdb_client/domain/constant_variable_properties.py +++ b/influxdb_client/domain/constant_variable_properties.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/create_cell.py b/influxdb_client/domain/create_cell.py index 01390714..b5006987 100644 --- a/influxdb_client/domain/create_cell.py +++ b/influxdb_client/domain/create_cell.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/create_dashboard_request.py b/influxdb_client/domain/create_dashboard_request.py index 8af0b139..13289742 100644 --- a/influxdb_client/domain/create_dashboard_request.py +++ b/influxdb_client/domain/create_dashboard_request.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/custom_check.py b/influxdb_client/domain/custom_check.py index bab58872..2694aa85 100644 --- a/influxdb_client/domain/custom_check.py +++ b/influxdb_client/domain/custom_check.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/dashboard.py b/influxdb_client/domain/dashboard.py index 61edaf01..e906deb4 100644 --- a/influxdb_client/domain/dashboard.py +++ b/influxdb_client/domain/dashboard.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/dashboard_color.py b/influxdb_client/domain/dashboard_color.py index 9348ff6c..c48dc962 100644 --- a/influxdb_client/domain/dashboard_color.py +++ b/influxdb_client/domain/dashboard_color.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/dashboard_query.py b/influxdb_client/domain/dashboard_query.py index 1521aaab..7b27fa3f 100644 --- a/influxdb_client/domain/dashboard_query.py +++ b/influxdb_client/domain/dashboard_query.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/dashboard_with_view_properties.py b/influxdb_client/domain/dashboard_with_view_properties.py index a222051c..bee8930f 100644 --- a/influxdb_client/domain/dashboard_with_view_properties.py +++ b/influxdb_client/domain/dashboard_with_view_properties.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/dashboards.py b/influxdb_client/domain/dashboards.py index 739cab89..a35fd815 100644 --- a/influxdb_client/domain/dashboards.py +++ b/influxdb_client/domain/dashboards.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/date_time_literal.py b/influxdb_client/domain/date_time_literal.py index 71b8b803..8e594f7c 100644 --- a/influxdb_client/domain/date_time_literal.py +++ b/influxdb_client/domain/date_time_literal.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/dbr_ps.py b/influxdb_client/domain/dbr_ps.py index a35d7eb3..6a3cc411 100644 --- a/influxdb_client/domain/dbr_ps.py +++ b/influxdb_client/domain/dbr_ps.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/dbrp.py b/influxdb_client/domain/dbrp.py index a3ae158b..7f852770 100644 --- a/influxdb_client/domain/dbrp.py +++ b/influxdb_client/domain/dbrp.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech @@ -34,7 +34,6 @@ class DBRP(object): openapi_types = { 'id': 'str', 'org_id': 'str', - 'org': 'str', 'bucket_id': 'str', 'database': 'str', 'retention_policy': 'str', @@ -45,7 +44,6 @@ class DBRP(object): attribute_map = { 'id': 'id', 'org_id': 'orgID', - 'org': 'org', 'bucket_id': 'bucketID', 'database': 'database', 'retention_policy': 'retention_policy', @@ -53,11 +51,10 @@ class DBRP(object): 'links': 'links' } - def __init__(self, id=None, org_id=None, org=None, bucket_id=None, database=None, retention_policy=None, default=None, links=None): # noqa: E501,D401,D403 + def __init__(self, id=None, org_id=None, bucket_id=None, database=None, retention_policy=None, default=None, links=None): # noqa: E501,D401,D403 """DBRP - a model defined in OpenAPI.""" # noqa: E501 self._id = None self._org_id = None - self._org = None self._bucket_id = None self._database = None self._retention_policy = None @@ -65,16 +62,12 @@ def __init__(self, id=None, org_id=None, org=None, bucket_id=None, database=None self._links = None self.discriminator = None - if id is not None: - self.id = id + self.id = id self.org_id = org_id - if org is not None: - self.org = org self.bucket_id = bucket_id self.database = database self.retention_policy = retention_policy - if default is not None: - self.default = default + self.default = default if links is not None: self.links = links @@ -98,6 +91,8 @@ def id(self, id): :param id: The id of this DBRP. :type: str """ # noqa: E501 + if id is None: + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 self._id = id @property @@ -124,28 +119,6 @@ def org_id(self, org_id): raise ValueError("Invalid value for `org_id`, must not be `None`") # noqa: E501 self._org_id = org_id - @property - def org(self): - """Get the org of this DBRP. - - the organization that owns this mapping. - - :return: The org of this DBRP. - :rtype: str - """ # noqa: E501 - return self._org - - @org.setter - def org(self, org): - """Set the org of this DBRP. - - the organization that owns this mapping. - - :param org: The org of this DBRP. - :type: str - """ # noqa: E501 - self._org = org - @property def bucket_id(self): """Get the bucket_id of this DBRP. @@ -238,6 +211,8 @@ def default(self, default): :param default: The default of this DBRP. :type: bool """ # noqa: E501 + if default is None: + raise ValueError("Invalid value for `default`, must not be `None`") # noqa: E501 self._default = default @property diff --git a/influxdb_client/domain/dbrp_create.py b/influxdb_client/domain/dbrp_create.py new file mode 100644 index 00000000..312ccb08 --- /dev/null +++ b/influxdb_client/domain/dbrp_create.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class DBRPCreate(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'org_id': 'str', + 'org': 'str', + 'bucket_id': 'str', + 'database': 'str', + 'retention_policy': 'str', + 'default': 'bool' + } + + attribute_map = { + 'org_id': 'orgID', + 'org': 'org', + 'bucket_id': 'bucketID', + 'database': 'database', + 'retention_policy': 'retention_policy', + 'default': 'default' + } + + def __init__(self, org_id=None, org=None, bucket_id=None, database=None, retention_policy=None, default=None): # noqa: E501,D401,D403 + """DBRPCreate - a model defined in OpenAPI.""" # noqa: E501 + self._org_id = None + self._org = None + self._bucket_id = None + self._database = None + self._retention_policy = None + self._default = None + self.discriminator = None + + if org_id is not None: + self.org_id = org_id + if org is not None: + self.org = org + self.bucket_id = bucket_id + self.database = database + self.retention_policy = retention_policy + if default is not None: + self.default = default + + @property + def org_id(self): + """Get the org_id of this DBRPCreate. + + the organization ID that owns this mapping. + + :return: The org_id of this DBRPCreate. + :rtype: str + """ # noqa: E501 + return self._org_id + + @org_id.setter + def org_id(self, org_id): + """Set the org_id of this DBRPCreate. + + the organization ID that owns this mapping. + + :param org_id: The org_id of this DBRPCreate. + :type: str + """ # noqa: E501 + self._org_id = org_id + + @property + def org(self): + """Get the org of this DBRPCreate. + + the organization that owns this mapping. + + :return: The org of this DBRPCreate. + :rtype: str + """ # noqa: E501 + return self._org + + @org.setter + def org(self, org): + """Set the org of this DBRPCreate. + + the organization that owns this mapping. + + :param org: The org of this DBRPCreate. + :type: str + """ # noqa: E501 + self._org = org + + @property + def bucket_id(self): + """Get the bucket_id of this DBRPCreate. + + the bucket ID used as target for the translation. + + :return: The bucket_id of this DBRPCreate. + :rtype: str + """ # noqa: E501 + return self._bucket_id + + @bucket_id.setter + def bucket_id(self, bucket_id): + """Set the bucket_id of this DBRPCreate. + + the bucket ID used as target for the translation. + + :param bucket_id: The bucket_id of this DBRPCreate. + :type: str + """ # noqa: E501 + if bucket_id is None: + raise ValueError("Invalid value for `bucket_id`, must not be `None`") # noqa: E501 + self._bucket_id = bucket_id + + @property + def database(self): + """Get the database of this DBRPCreate. + + InfluxDB v1 database + + :return: The database of this DBRPCreate. + :rtype: str + """ # noqa: E501 + return self._database + + @database.setter + def database(self, database): + """Set the database of this DBRPCreate. + + InfluxDB v1 database + + :param database: The database of this DBRPCreate. + :type: str + """ # noqa: E501 + if database is None: + raise ValueError("Invalid value for `database`, must not be `None`") # noqa: E501 + self._database = database + + @property + def retention_policy(self): + """Get the retention_policy of this DBRPCreate. + + InfluxDB v1 retention policy + + :return: The retention_policy of this DBRPCreate. + :rtype: str + """ # noqa: E501 + return self._retention_policy + + @retention_policy.setter + def retention_policy(self, retention_policy): + """Set the retention_policy of this DBRPCreate. + + InfluxDB v1 retention policy + + :param retention_policy: The retention_policy of this DBRPCreate. + :type: str + """ # noqa: E501 + if retention_policy is None: + raise ValueError("Invalid value for `retention_policy`, must not be `None`") # noqa: E501 + self._retention_policy = retention_policy + + @property + def default(self): + """Get the default of this DBRPCreate. + + Specify if this mapping represents the default retention policy for the database specificed. + + :return: The default of this DBRPCreate. + :rtype: bool + """ # noqa: E501 + return self._default + + @default.setter + def default(self, default): + """Set the default of this DBRPCreate. + + Specify if this mapping represents the default retention policy for the database specificed. + + :param default: The default of this DBRPCreate. + :type: bool + """ # noqa: E501 + self._default = default + + def to_dict(self): + """Return the model properties as a dict.""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Return the string representation of the model.""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`.""" + return self.to_str() + + def __eq__(self, other): + """Return true if both objects are equal.""" + if not isinstance(other, DBRPCreate): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Return true if both objects are not equal.""" + return not self == other diff --git a/influxdb_client/domain/document_update.py b/influxdb_client/domain/dbrp_get.py similarity index 65% rename from influxdb_client/domain/document_update.py rename to influxdb_client/domain/dbrp_get.py index 9a7af36c..65cbc2f2 100644 --- a/influxdb_client/domain/document_update.py +++ b/influxdb_client/domain/dbrp_get.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech @@ -16,7 +16,7 @@ import six -class DocumentUpdate(object): +class DBRPGet(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -32,59 +32,36 @@ class DocumentUpdate(object): and the value is json key in definition. """ openapi_types = { - 'meta': 'DocumentMeta', - 'content': 'object' + 'content': 'DBRP' } attribute_map = { - 'meta': 'meta', 'content': 'content' } - def __init__(self, meta=None, content=None): # noqa: E501,D401,D403 - """DocumentUpdate - a model defined in OpenAPI.""" # noqa: E501 - self._meta = None + def __init__(self, content=None): # noqa: E501,D401,D403 + """DBRPGet - a model defined in OpenAPI.""" # noqa: E501 self._content = None self.discriminator = None - if meta is not None: - self.meta = meta if content is not None: self.content = content - @property - def meta(self): - """Get the meta of this DocumentUpdate. - - :return: The meta of this DocumentUpdate. - :rtype: DocumentMeta - """ # noqa: E501 - return self._meta - - @meta.setter - def meta(self, meta): - """Set the meta of this DocumentUpdate. - - :param meta: The meta of this DocumentUpdate. - :type: DocumentMeta - """ # noqa: E501 - self._meta = meta - @property def content(self): - """Get the content of this DocumentUpdate. + """Get the content of this DBRPGet. - :return: The content of this DocumentUpdate. - :rtype: object + :return: The content of this DBRPGet. + :rtype: DBRP """ # noqa: E501 return self._content @content.setter def content(self, content): - """Set the content of this DocumentUpdate. + """Set the content of this DBRPGet. - :param content: The content of this DocumentUpdate. - :type: object + :param content: The content of this DBRPGet. + :type: DBRP """ # noqa: E501 self._content = content @@ -122,7 +99,7 @@ def __repr__(self): def __eq__(self, other): """Return true if both objects are equal.""" - if not isinstance(other, DocumentUpdate): + if not isinstance(other, DBRPGet): return False return self.__dict__ == other.__dict__ diff --git a/influxdb_client/domain/dbrp_update.py b/influxdb_client/domain/dbrp_update.py index 28ee6086..ccfa57a3 100644 --- a/influxdb_client/domain/dbrp_update.py +++ b/influxdb_client/domain/dbrp_update.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech @@ -32,57 +32,25 @@ class DBRPUpdate(object): and the value is json key in definition. """ openapi_types = { - 'database': 'str', 'retention_policy': 'str', - 'default': 'bool', - 'links': 'Links' + 'default': 'bool' } attribute_map = { - 'database': 'database', 'retention_policy': 'retention_policy', - 'default': 'default', - 'links': 'links' + 'default': 'default' } - def __init__(self, database=None, retention_policy=None, default=None, links=None): # noqa: E501,D401,D403 + def __init__(self, retention_policy=None, default=None): # noqa: E501,D401,D403 """DBRPUpdate - a model defined in OpenAPI.""" # noqa: E501 - self._database = None self._retention_policy = None self._default = None - self._links = None self.discriminator = None - if database is not None: - self.database = database if retention_policy is not None: self.retention_policy = retention_policy if default is not None: self.default = default - if links is not None: - self.links = links - - @property - def database(self): - """Get the database of this DBRPUpdate. - - InfluxDB v1 database - - :return: The database of this DBRPUpdate. - :rtype: str - """ # noqa: E501 - return self._database - - @database.setter - def database(self, database): - """Set the database of this DBRPUpdate. - - InfluxDB v1 database - - :param database: The database of this DBRPUpdate. - :type: str - """ # noqa: E501 - self._database = database @property def retention_policy(self): @@ -124,24 +92,6 @@ def default(self, default): """ # noqa: E501 self._default = default - @property - def links(self): - """Get the links of this DBRPUpdate. - - :return: The links of this DBRPUpdate. - :rtype: Links - """ # noqa: E501 - return self._links - - @links.setter - def links(self, links): - """Set the links of this DBRPUpdate. - - :param links: The links of this DBRPUpdate. - :type: Links - """ # noqa: E501 - self._links = links - def to_dict(self): """Return the model properties as a dict.""" result = {} diff --git a/influxdb_client/domain/deadman_check.py b/influxdb_client/domain/deadman_check.py index d4c7efc7..981ca55f 100644 --- a/influxdb_client/domain/deadman_check.py +++ b/influxdb_client/domain/deadman_check.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/decimal_places.py b/influxdb_client/domain/decimal_places.py index 9e758b09..f5541dda 100644 --- a/influxdb_client/domain/decimal_places.py +++ b/influxdb_client/domain/decimal_places.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/delete_predicate_request.py b/influxdb_client/domain/delete_predicate_request.py index 0255c4f6..7afb278e 100644 --- a/influxdb_client/domain/delete_predicate_request.py +++ b/influxdb_client/domain/delete_predicate_request.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/dialect.py b/influxdb_client/domain/dialect.py index b8c8859f..4096b89e 100644 --- a/influxdb_client/domain/dialect.py +++ b/influxdb_client/domain/dialect.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/dict_expression.py b/influxdb_client/domain/dict_expression.py index 8e92b237..71a417f5 100644 --- a/influxdb_client/domain/dict_expression.py +++ b/influxdb_client/domain/dict_expression.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/dict_item.py b/influxdb_client/domain/dict_item.py index de2a3e10..edfaa2b7 100644 --- a/influxdb_client/domain/dict_item.py +++ b/influxdb_client/domain/dict_item.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/document.py b/influxdb_client/domain/document.py deleted file mode 100644 index 9b3fa7fe..00000000 --- a/influxdb_client/domain/document.py +++ /dev/null @@ -1,204 +0,0 @@ -# coding: utf-8 - -""" -Influx OSS API Service. - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - -OpenAPI spec version: 2.0.0 -Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class Document(object): - """NOTE: This class is auto generated by OpenAPI Generator. - - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - openapi_types = { - 'id': 'str', - 'meta': 'DocumentMeta', - 'content': 'object', - 'labels': 'list[Label]', - 'links': 'DocumentLinks' - } - - attribute_map = { - 'id': 'id', - 'meta': 'meta', - 'content': 'content', - 'labels': 'labels', - 'links': 'links' - } - - def __init__(self, id=None, meta=None, content=None, labels=None, links=None): # noqa: E501,D401,D403 - """Document - a model defined in OpenAPI.""" # noqa: E501 - self._id = None - self._meta = None - self._content = None - self._labels = None - self._links = None - self.discriminator = None - - self.id = id - self.meta = meta - self.content = content - if labels is not None: - self.labels = labels - if links is not None: - self.links = links - - @property - def id(self): - """Get the id of this Document. - - :return: The id of this Document. - :rtype: str - """ # noqa: E501 - return self._id - - @id.setter - def id(self, id): - """Set the id of this Document. - - :param id: The id of this Document. - :type: str - """ # noqa: E501 - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - self._id = id - - @property - def meta(self): - """Get the meta of this Document. - - :return: The meta of this Document. - :rtype: DocumentMeta - """ # noqa: E501 - return self._meta - - @meta.setter - def meta(self, meta): - """Set the meta of this Document. - - :param meta: The meta of this Document. - :type: DocumentMeta - """ # noqa: E501 - if meta is None: - raise ValueError("Invalid value for `meta`, must not be `None`") # noqa: E501 - self._meta = meta - - @property - def content(self): - """Get the content of this Document. - - :return: The content of this Document. - :rtype: object - """ # noqa: E501 - return self._content - - @content.setter - def content(self, content): - """Set the content of this Document. - - :param content: The content of this Document. - :type: object - """ # noqa: E501 - if content is None: - raise ValueError("Invalid value for `content`, must not be `None`") # noqa: E501 - self._content = content - - @property - def labels(self): - """Get the labels of this Document. - - :return: The labels of this Document. - :rtype: list[Label] - """ # noqa: E501 - return self._labels - - @labels.setter - def labels(self, labels): - """Set the labels of this Document. - - :param labels: The labels of this Document. - :type: list[Label] - """ # noqa: E501 - self._labels = labels - - @property - def links(self): - """Get the links of this Document. - - :return: The links of this Document. - :rtype: DocumentLinks - """ # noqa: E501 - return self._links - - @links.setter - def links(self, links): - """Set the links of this Document. - - :param links: The links of this Document. - :type: DocumentLinks - """ # noqa: E501 - self._links = links - - def to_dict(self): - """Return the model properties as a dict.""" - result = {} - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Return the string representation of the model.""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`.""" - return self.to_str() - - def __eq__(self, other): - """Return true if both objects are equal.""" - if not isinstance(other, Document): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Return true if both objects are not equal.""" - return not self == other diff --git a/influxdb_client/domain/document_create.py b/influxdb_client/domain/document_create.py deleted file mode 100644 index 9d07e41f..00000000 --- a/influxdb_client/domain/document_create.py +++ /dev/null @@ -1,215 +0,0 @@ -# coding: utf-8 - -""" -Influx OSS API Service. - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - -OpenAPI spec version: 2.0.0 -Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class DocumentCreate(object): - """NOTE: This class is auto generated by OpenAPI Generator. - - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - openapi_types = { - 'meta': 'DocumentMeta', - 'content': 'object', - 'org': 'str', - 'org_id': 'str', - 'labels': 'list[str]' - } - - attribute_map = { - 'meta': 'meta', - 'content': 'content', - 'org': 'org', - 'org_id': 'orgID', - 'labels': 'labels' - } - - def __init__(self, meta=None, content=None, org=None, org_id=None, labels=None): # noqa: E501,D401,D403 - """DocumentCreate - a model defined in OpenAPI.""" # noqa: E501 - self._meta = None - self._content = None - self._org = None - self._org_id = None - self._labels = None - self.discriminator = None - - self.meta = meta - self.content = content - if org is not None: - self.org = org - if org_id is not None: - self.org_id = org_id - if labels is not None: - self.labels = labels - - @property - def meta(self): - """Get the meta of this DocumentCreate. - - :return: The meta of this DocumentCreate. - :rtype: DocumentMeta - """ # noqa: E501 - return self._meta - - @meta.setter - def meta(self, meta): - """Set the meta of this DocumentCreate. - - :param meta: The meta of this DocumentCreate. - :type: DocumentMeta - """ # noqa: E501 - if meta is None: - raise ValueError("Invalid value for `meta`, must not be `None`") # noqa: E501 - self._meta = meta - - @property - def content(self): - """Get the content of this DocumentCreate. - - :return: The content of this DocumentCreate. - :rtype: object - """ # noqa: E501 - return self._content - - @content.setter - def content(self, content): - """Set the content of this DocumentCreate. - - :param content: The content of this DocumentCreate. - :type: object - """ # noqa: E501 - if content is None: - raise ValueError("Invalid value for `content`, must not be `None`") # noqa: E501 - self._content = content - - @property - def org(self): - """Get the org of this DocumentCreate. - - The organization Name. Specify either `orgID` or `org`. - - :return: The org of this DocumentCreate. - :rtype: str - """ # noqa: E501 - return self._org - - @org.setter - def org(self, org): - """Set the org of this DocumentCreate. - - The organization Name. Specify either `orgID` or `org`. - - :param org: The org of this DocumentCreate. - :type: str - """ # noqa: E501 - self._org = org - - @property - def org_id(self): - """Get the org_id of this DocumentCreate. - - The organization Name. Specify either `orgID` or `org`. - - :return: The org_id of this DocumentCreate. - :rtype: str - """ # noqa: E501 - return self._org_id - - @org_id.setter - def org_id(self, org_id): - """Set the org_id of this DocumentCreate. - - The organization Name. Specify either `orgID` or `org`. - - :param org_id: The org_id of this DocumentCreate. - :type: str - """ # noqa: E501 - self._org_id = org_id - - @property - def labels(self): - """Get the labels of this DocumentCreate. - - An array of label IDs to be added as labels to the document. - - :return: The labels of this DocumentCreate. - :rtype: list[str] - """ # noqa: E501 - return self._labels - - @labels.setter - def labels(self, labels): - """Set the labels of this DocumentCreate. - - An array of label IDs to be added as labels to the document. - - :param labels: The labels of this DocumentCreate. - :type: list[str] - """ # noqa: E501 - self._labels = labels - - def to_dict(self): - """Return the model properties as a dict.""" - result = {} - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Return the string representation of the model.""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`.""" - return self.to_str() - - def __eq__(self, other): - """Return true if both objects are equal.""" - if not isinstance(other, DocumentCreate): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Return true if both objects are not equal.""" - return not self == other diff --git a/influxdb_client/domain/duration.py b/influxdb_client/domain/duration.py index 4c147392..fff99e1c 100644 --- a/influxdb_client/domain/duration.py +++ b/influxdb_client/domain/duration.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/duration_literal.py b/influxdb_client/domain/duration_literal.py index 76b2c131..6b6b5266 100644 --- a/influxdb_client/domain/duration_literal.py +++ b/influxdb_client/domain/duration_literal.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/error.py b/influxdb_client/domain/error.py index 97edecda..7cbee523 100644 --- a/influxdb_client/domain/error.py +++ b/influxdb_client/domain/error.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/expression.py b/influxdb_client/domain/expression.py index 71a50e56..809a9e5e 100644 --- a/influxdb_client/domain/expression.py +++ b/influxdb_client/domain/expression.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/expression_statement.py b/influxdb_client/domain/expression_statement.py index 5c4d1d47..bc6e3b38 100644 --- a/influxdb_client/domain/expression_statement.py +++ b/influxdb_client/domain/expression_statement.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/field.py b/influxdb_client/domain/field.py index db2fa020..6821696b 100644 --- a/influxdb_client/domain/field.py +++ b/influxdb_client/domain/field.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/file.py b/influxdb_client/domain/file.py index f7b7df1a..add5ff4e 100644 --- a/influxdb_client/domain/file.py +++ b/influxdb_client/domain/file.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/float_literal.py b/influxdb_client/domain/float_literal.py index 53c25303..215e91a6 100644 --- a/influxdb_client/domain/float_literal.py +++ b/influxdb_client/domain/float_literal.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/flux_response.py b/influxdb_client/domain/flux_response.py index 0f67f865..ef5deeb3 100644 --- a/influxdb_client/domain/flux_response.py +++ b/influxdb_client/domain/flux_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/flux_suggestion.py b/influxdb_client/domain/flux_suggestion.py index 4579a342..83af0367 100644 --- a/influxdb_client/domain/flux_suggestion.py +++ b/influxdb_client/domain/flux_suggestion.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/flux_suggestions.py b/influxdb_client/domain/flux_suggestions.py index 234b89c3..d6e2ab63 100644 --- a/influxdb_client/domain/flux_suggestions.py +++ b/influxdb_client/domain/flux_suggestions.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/function_expression.py b/influxdb_client/domain/function_expression.py index 14a3508e..753d8c17 100644 --- a/influxdb_client/domain/function_expression.py +++ b/influxdb_client/domain/function_expression.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/gauge_view_properties.py b/influxdb_client/domain/gauge_view_properties.py index ce8b2773..11aa180a 100644 --- a/influxdb_client/domain/gauge_view_properties.py +++ b/influxdb_client/domain/gauge_view_properties.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/greater_threshold.py b/influxdb_client/domain/greater_threshold.py index 5d9791e4..341bb0b6 100644 --- a/influxdb_client/domain/greater_threshold.py +++ b/influxdb_client/domain/greater_threshold.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/health_check.py b/influxdb_client/domain/health_check.py index 656549b2..5e7808a1 100644 --- a/influxdb_client/domain/health_check.py +++ b/influxdb_client/domain/health_check.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/heatmap_view_properties.py b/influxdb_client/domain/heatmap_view_properties.py index 43f5e873..582e8b52 100644 --- a/influxdb_client/domain/heatmap_view_properties.py +++ b/influxdb_client/domain/heatmap_view_properties.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/histogram_view_properties.py b/influxdb_client/domain/histogram_view_properties.py index b40dc412..ee02018f 100644 --- a/influxdb_client/domain/histogram_view_properties.py +++ b/influxdb_client/domain/histogram_view_properties.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/http_notification_endpoint.py b/influxdb_client/domain/http_notification_endpoint.py index cdabc19b..3878976c 100644 --- a/influxdb_client/domain/http_notification_endpoint.py +++ b/influxdb_client/domain/http_notification_endpoint.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/http_notification_rule.py b/influxdb_client/domain/http_notification_rule.py index b0abcd6f..b64be1f1 100644 --- a/influxdb_client/domain/http_notification_rule.py +++ b/influxdb_client/domain/http_notification_rule.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/http_notification_rule_base.py b/influxdb_client/domain/http_notification_rule_base.py index a35019b3..cd79a407 100644 --- a/influxdb_client/domain/http_notification_rule_base.py +++ b/influxdb_client/domain/http_notification_rule_base.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/identifier.py b/influxdb_client/domain/identifier.py index b7465bfe..cfba561c 100644 --- a/influxdb_client/domain/identifier.py +++ b/influxdb_client/domain/identifier.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/import_declaration.py b/influxdb_client/domain/import_declaration.py index f4ae7722..a5cac46f 100644 --- a/influxdb_client/domain/import_declaration.py +++ b/influxdb_client/domain/import_declaration.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/index_expression.py b/influxdb_client/domain/index_expression.py index 90bcf25d..4d63f9d8 100644 --- a/influxdb_client/domain/index_expression.py +++ b/influxdb_client/domain/index_expression.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/integer_literal.py b/influxdb_client/domain/integer_literal.py index 015d1058..f999eb2d 100644 --- a/influxdb_client/domain/integer_literal.py +++ b/influxdb_client/domain/integer_literal.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/is_onboarding.py b/influxdb_client/domain/is_onboarding.py index 125dea98..30b93690 100644 --- a/influxdb_client/domain/is_onboarding.py +++ b/influxdb_client/domain/is_onboarding.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/label.py b/influxdb_client/domain/label.py index 3be4fc3c..2b7edcda 100644 --- a/influxdb_client/domain/label.py +++ b/influxdb_client/domain/label.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/label_create_request.py b/influxdb_client/domain/label_create_request.py index 80fcf71c..3bf977b2 100644 --- a/influxdb_client/domain/label_create_request.py +++ b/influxdb_client/domain/label_create_request.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/label_mapping.py b/influxdb_client/domain/label_mapping.py index 8aec87a1..05e74b48 100644 --- a/influxdb_client/domain/label_mapping.py +++ b/influxdb_client/domain/label_mapping.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/label_response.py b/influxdb_client/domain/label_response.py index 08620409..f84969bf 100644 --- a/influxdb_client/domain/label_response.py +++ b/influxdb_client/domain/label_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/label_update.py b/influxdb_client/domain/label_update.py index 875e417e..ef4fc6f7 100644 --- a/influxdb_client/domain/label_update.py +++ b/influxdb_client/domain/label_update.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/labels_response.py b/influxdb_client/domain/labels_response.py index e94221d3..15267fa3 100644 --- a/influxdb_client/domain/labels_response.py +++ b/influxdb_client/domain/labels_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/language_request.py b/influxdb_client/domain/language_request.py index 6c3ffa8e..1f9da8cf 100644 --- a/influxdb_client/domain/language_request.py +++ b/influxdb_client/domain/language_request.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/legacy_authorization_post_request.py b/influxdb_client/domain/legacy_authorization_post_request.py new file mode 100644 index 00000000..58dc2758 --- /dev/null +++ b/influxdb_client/domain/legacy_authorization_post_request.py @@ -0,0 +1,201 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six +from influxdb_client.domain.authorization_update_request import AuthorizationUpdateRequest + + +class LegacyAuthorizationPostRequest(AuthorizationUpdateRequest): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'org_id': 'str', + 'user_id': 'str', + 'token': 'str', + 'permissions': 'list[Permission]', + 'status': 'str', + 'description': 'str' + } + + attribute_map = { + 'org_id': 'orgID', + 'user_id': 'userID', + 'token': 'token', + 'permissions': 'permissions', + 'status': 'status', + 'description': 'description' + } + + def __init__(self, org_id=None, user_id=None, token=None, permissions=None, status='active', description=None): # noqa: E501,D401,D403 + """LegacyAuthorizationPostRequest - a model defined in OpenAPI.""" # noqa: E501 + AuthorizationUpdateRequest.__init__(self, status=status, description=description) # noqa: E501 + + self._org_id = None + self._user_id = None + self._token = None + self._permissions = None + self.discriminator = None + + if org_id is not None: + self.org_id = org_id + if user_id is not None: + self.user_id = user_id + if token is not None: + self.token = token + if permissions is not None: + self.permissions = permissions + + @property + def org_id(self): + """Get the org_id of this LegacyAuthorizationPostRequest. + + ID of org that authorization is scoped to. + + :return: The org_id of this LegacyAuthorizationPostRequest. + :rtype: str + """ # noqa: E501 + return self._org_id + + @org_id.setter + def org_id(self, org_id): + """Set the org_id of this LegacyAuthorizationPostRequest. + + ID of org that authorization is scoped to. + + :param org_id: The org_id of this LegacyAuthorizationPostRequest. + :type: str + """ # noqa: E501 + self._org_id = org_id + + @property + def user_id(self): + """Get the user_id of this LegacyAuthorizationPostRequest. + + ID of user that authorization is scoped to. + + :return: The user_id of this LegacyAuthorizationPostRequest. + :rtype: str + """ # noqa: E501 + return self._user_id + + @user_id.setter + def user_id(self, user_id): + """Set the user_id of this LegacyAuthorizationPostRequest. + + ID of user that authorization is scoped to. + + :param user_id: The user_id of this LegacyAuthorizationPostRequest. + :type: str + """ # noqa: E501 + self._user_id = user_id + + @property + def token(self): + """Get the token of this LegacyAuthorizationPostRequest. + + Token (name) of the authorization + + :return: The token of this LegacyAuthorizationPostRequest. + :rtype: str + """ # noqa: E501 + return self._token + + @token.setter + def token(self, token): + """Set the token of this LegacyAuthorizationPostRequest. + + Token (name) of the authorization + + :param token: The token of this LegacyAuthorizationPostRequest. + :type: str + """ # noqa: E501 + self._token = token + + @property + def permissions(self): + """Get the permissions of this LegacyAuthorizationPostRequest. + + List of permissions for an auth. An auth must have at least one Permission. + + :return: The permissions of this LegacyAuthorizationPostRequest. + :rtype: list[Permission] + """ # noqa: E501 + return self._permissions + + @permissions.setter + def permissions(self, permissions): + """Set the permissions of this LegacyAuthorizationPostRequest. + + List of permissions for an auth. An auth must have at least one Permission. + + :param permissions: The permissions of this LegacyAuthorizationPostRequest. + :type: list[Permission] + """ # noqa: E501 + self._permissions = permissions + + def to_dict(self): + """Return the model properties as a dict.""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Return the string representation of the model.""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`.""" + return self.to_str() + + def __eq__(self, other): + """Return true if both objects are equal.""" + if not isinstance(other, LegacyAuthorizationPostRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Return true if both objects are not equal.""" + return not self == other diff --git a/influxdb_client/domain/lesser_threshold.py b/influxdb_client/domain/lesser_threshold.py index 0a4cd9f3..48de49b7 100644 --- a/influxdb_client/domain/lesser_threshold.py +++ b/influxdb_client/domain/lesser_threshold.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/line_plus_single_stat_properties.py b/influxdb_client/domain/line_plus_single_stat_properties.py index 849d6f57..e1c94ea6 100644 --- a/influxdb_client/domain/line_plus_single_stat_properties.py +++ b/influxdb_client/domain/line_plus_single_stat_properties.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/line_protocol_error.py b/influxdb_client/domain/line_protocol_error.py index 9c055e48..29c03c43 100644 --- a/influxdb_client/domain/line_protocol_error.py +++ b/influxdb_client/domain/line_protocol_error.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/line_protocol_length_error.py b/influxdb_client/domain/line_protocol_length_error.py index a94da2ab..6666b10c 100644 --- a/influxdb_client/domain/line_protocol_length_error.py +++ b/influxdb_client/domain/line_protocol_length_error.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech @@ -33,26 +33,22 @@ class LineProtocolLengthError(object): """ openapi_types = { 'code': 'str', - 'message': 'str', - 'max_length': 'int' + 'message': 'str' } attribute_map = { 'code': 'code', - 'message': 'message', - 'max_length': 'maxLength' + 'message': 'message' } - def __init__(self, code=None, message=None, max_length=None): # noqa: E501,D401,D403 + def __init__(self, code=None, message=None): # noqa: E501,D401,D403 """LineProtocolLengthError - a model defined in OpenAPI.""" # noqa: E501 self._code = None self._message = None - self._max_length = None self.discriminator = None self.code = code self.message = message - self.max_length = max_length @property def code(self): @@ -102,30 +98,6 @@ def message(self, message): raise ValueError("Invalid value for `message`, must not be `None`") # noqa: E501 self._message = message - @property - def max_length(self): - """Get the max_length of this LineProtocolLengthError. - - Max length in bytes for a body of line-protocol. - - :return: The max_length of this LineProtocolLengthError. - :rtype: int - """ # noqa: E501 - return self._max_length - - @max_length.setter - def max_length(self, max_length): - """Set the max_length of this LineProtocolLengthError. - - Max length in bytes for a body of line-protocol. - - :param max_length: The max_length of this LineProtocolLengthError. - :type: int - """ # noqa: E501 - if max_length is None: - raise ValueError("Invalid value for `max_length`, must not be `None`") # noqa: E501 - self._max_length = max_length - def to_dict(self): """Return the model properties as a dict.""" result = {} diff --git a/influxdb_client/domain/links.py b/influxdb_client/domain/links.py index 369149f0..85dcb570 100644 --- a/influxdb_client/domain/links.py +++ b/influxdb_client/domain/links.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/list_stacks_response.py b/influxdb_client/domain/list_stacks_response.py new file mode 100644 index 00000000..e1004c11 --- /dev/null +++ b/influxdb_client/domain/list_stacks_response.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class ListStacksResponse(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'stacks': 'list[Stack]' + } + + attribute_map = { + 'stacks': 'stacks' + } + + def __init__(self, stacks=None): # noqa: E501,D401,D403 + """ListStacksResponse - a model defined in OpenAPI.""" # noqa: E501 + self._stacks = None + self.discriminator = None + + if stacks is not None: + self.stacks = stacks + + @property + def stacks(self): + """Get the stacks of this ListStacksResponse. + + :return: The stacks of this ListStacksResponse. + :rtype: list[Stack] + """ # noqa: E501 + return self._stacks + + @stacks.setter + def stacks(self, stacks): + """Set the stacks of this ListStacksResponse. + + :param stacks: The stacks of this ListStacksResponse. + :type: list[Stack] + """ # noqa: E501 + self._stacks = stacks + + def to_dict(self): + """Return the model properties as a dict.""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Return the string representation of the model.""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`.""" + return self.to_str() + + def __eq__(self, other): + """Return true if both objects are equal.""" + if not isinstance(other, ListStacksResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Return true if both objects are not equal.""" + return not self == other diff --git a/influxdb_client/domain/log_event.py b/influxdb_client/domain/log_event.py index 0de87139..4b1724e5 100644 --- a/influxdb_client/domain/log_event.py +++ b/influxdb_client/domain/log_event.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/logical_expression.py b/influxdb_client/domain/logical_expression.py index 1bfb4f03..9c43dc30 100644 --- a/influxdb_client/domain/logical_expression.py +++ b/influxdb_client/domain/logical_expression.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/logs.py b/influxdb_client/domain/logs.py index 09f534f4..a042e36f 100644 --- a/influxdb_client/domain/logs.py +++ b/influxdb_client/domain/logs.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/map_variable_properties.py b/influxdb_client/domain/map_variable_properties.py index 16ae1056..650e417d 100644 --- a/influxdb_client/domain/map_variable_properties.py +++ b/influxdb_client/domain/map_variable_properties.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/markdown_view_properties.py b/influxdb_client/domain/markdown_view_properties.py index 4a57bc9c..2535d1a2 100644 --- a/influxdb_client/domain/markdown_view_properties.py +++ b/influxdb_client/domain/markdown_view_properties.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/member_assignment.py b/influxdb_client/domain/member_assignment.py index d3e4fcf3..35223404 100644 --- a/influxdb_client/domain/member_assignment.py +++ b/influxdb_client/domain/member_assignment.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/member_expression.py b/influxdb_client/domain/member_expression.py index 3b7c0b5d..6704f3bd 100644 --- a/influxdb_client/domain/member_expression.py +++ b/influxdb_client/domain/member_expression.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/metadata_backup.py b/influxdb_client/domain/metadata_backup.py new file mode 100644 index 00000000..03cbb98e --- /dev/null +++ b/influxdb_client/domain/metadata_backup.py @@ -0,0 +1,158 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class MetadataBackup(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'kv': 'file', + 'sql': 'file', + 'buckets': 'list[BucketMetadataManifest]' + } + + attribute_map = { + 'kv': 'kv', + 'sql': 'sql', + 'buckets': 'buckets' + } + + def __init__(self, kv=None, sql=None, buckets=None): # noqa: E501,D401,D403 + """MetadataBackup - a model defined in OpenAPI.""" # noqa: E501 + self._kv = None + self._sql = None + self._buckets = None + self.discriminator = None + + self.kv = kv + self.sql = sql + self.buckets = buckets + + @property + def kv(self): + """Get the kv of this MetadataBackup. + + :return: The kv of this MetadataBackup. + :rtype: file + """ # noqa: E501 + return self._kv + + @kv.setter + def kv(self, kv): + """Set the kv of this MetadataBackup. + + :param kv: The kv of this MetadataBackup. + :type: file + """ # noqa: E501 + if kv is None: + raise ValueError("Invalid value for `kv`, must not be `None`") # noqa: E501 + self._kv = kv + + @property + def sql(self): + """Get the sql of this MetadataBackup. + + :return: The sql of this MetadataBackup. + :rtype: file + """ # noqa: E501 + return self._sql + + @sql.setter + def sql(self, sql): + """Set the sql of this MetadataBackup. + + :param sql: The sql of this MetadataBackup. + :type: file + """ # noqa: E501 + if sql is None: + raise ValueError("Invalid value for `sql`, must not be `None`") # noqa: E501 + self._sql = sql + + @property + def buckets(self): + """Get the buckets of this MetadataBackup. + + :return: The buckets of this MetadataBackup. + :rtype: list[BucketMetadataManifest] + """ # noqa: E501 + return self._buckets + + @buckets.setter + def buckets(self, buckets): + """Set the buckets of this MetadataBackup. + + :param buckets: The buckets of this MetadataBackup. + :type: list[BucketMetadataManifest] + """ # noqa: E501 + if buckets is None: + raise ValueError("Invalid value for `buckets`, must not be `None`") # noqa: E501 + self._buckets = buckets + + def to_dict(self): + """Return the model properties as a dict.""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Return the string representation of the model.""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`.""" + return self.to_str() + + def __eq__(self, other): + """Return true if both objects are equal.""" + if not isinstance(other, MetadataBackup): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Return true if both objects are not equal.""" + return not self == other diff --git a/influxdb_client/domain/model_property.py b/influxdb_client/domain/model_property.py index d00af210..feefba76 100644 --- a/influxdb_client/domain/model_property.py +++ b/influxdb_client/domain/model_property.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/mosaic_view_properties.py b/influxdb_client/domain/mosaic_view_properties.py index 7b54191b..0464ee4a 100644 --- a/influxdb_client/domain/mosaic_view_properties.py +++ b/influxdb_client/domain/mosaic_view_properties.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/node.py b/influxdb_client/domain/node.py index 52e40e70..454a983d 100644 --- a/influxdb_client/domain/node.py +++ b/influxdb_client/domain/node.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/notification_endpoint.py b/influxdb_client/domain/notification_endpoint.py index d1df46a4..ac698294 100644 --- a/influxdb_client/domain/notification_endpoint.py +++ b/influxdb_client/domain/notification_endpoint.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/notification_endpoint_base.py b/influxdb_client/domain/notification_endpoint_base.py index 3269a944..16da4e9c 100644 --- a/influxdb_client/domain/notification_endpoint_base.py +++ b/influxdb_client/domain/notification_endpoint_base.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/notification_endpoint_base_links.py b/influxdb_client/domain/notification_endpoint_base_links.py index bf5de070..cd4a5b5e 100644 --- a/influxdb_client/domain/notification_endpoint_base_links.py +++ b/influxdb_client/domain/notification_endpoint_base_links.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/notification_endpoint_discriminator.py b/influxdb_client/domain/notification_endpoint_discriminator.py index 7a1d4671..330f5ad3 100644 --- a/influxdb_client/domain/notification_endpoint_discriminator.py +++ b/influxdb_client/domain/notification_endpoint_discriminator.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/notification_endpoint_type.py b/influxdb_client/domain/notification_endpoint_type.py index ce504969..16596e01 100644 --- a/influxdb_client/domain/notification_endpoint_type.py +++ b/influxdb_client/domain/notification_endpoint_type.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/notification_endpoint_update.py b/influxdb_client/domain/notification_endpoint_update.py index ffbf5fcf..6b1c15b3 100644 --- a/influxdb_client/domain/notification_endpoint_update.py +++ b/influxdb_client/domain/notification_endpoint_update.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/notification_endpoints.py b/influxdb_client/domain/notification_endpoints.py index f5b2a9ee..b4b83860 100644 --- a/influxdb_client/domain/notification_endpoints.py +++ b/influxdb_client/domain/notification_endpoints.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/notification_rule.py b/influxdb_client/domain/notification_rule.py index 592f0917..b82016bc 100644 --- a/influxdb_client/domain/notification_rule.py +++ b/influxdb_client/domain/notification_rule.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/notification_rule_base.py b/influxdb_client/domain/notification_rule_base.py index ed55bee4..90547564 100644 --- a/influxdb_client/domain/notification_rule_base.py +++ b/influxdb_client/domain/notification_rule_base.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/notification_rule_base_links.py b/influxdb_client/domain/notification_rule_base_links.py index 2d504d60..8cedc670 100644 --- a/influxdb_client/domain/notification_rule_base_links.py +++ b/influxdb_client/domain/notification_rule_base_links.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/notification_rule_discriminator.py b/influxdb_client/domain/notification_rule_discriminator.py index 852c04be..3ccc894f 100644 --- a/influxdb_client/domain/notification_rule_discriminator.py +++ b/influxdb_client/domain/notification_rule_discriminator.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/notification_rule_update.py b/influxdb_client/domain/notification_rule_update.py index 6a174ea1..71265143 100644 --- a/influxdb_client/domain/notification_rule_update.py +++ b/influxdb_client/domain/notification_rule_update.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/notification_rules.py b/influxdb_client/domain/notification_rules.py index de4b756f..26df980e 100644 --- a/influxdb_client/domain/notification_rules.py +++ b/influxdb_client/domain/notification_rules.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/object_expression.py b/influxdb_client/domain/object_expression.py index 65789eda..e56b4ddc 100644 --- a/influxdb_client/domain/object_expression.py +++ b/influxdb_client/domain/object_expression.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/onboarding_request.py b/influxdb_client/domain/onboarding_request.py index f9793cb6..735d6623 100644 --- a/influxdb_client/domain/onboarding_request.py +++ b/influxdb_client/domain/onboarding_request.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/onboarding_response.py b/influxdb_client/domain/onboarding_response.py index ed4d3e82..8721097f 100644 --- a/influxdb_client/domain/onboarding_response.py +++ b/influxdb_client/domain/onboarding_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/option_statement.py b/influxdb_client/domain/option_statement.py index 1538b3a9..23911f5b 100644 --- a/influxdb_client/domain/option_statement.py +++ b/influxdb_client/domain/option_statement.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/organization.py b/influxdb_client/domain/organization.py index bc918780..276fec85 100644 --- a/influxdb_client/domain/organization.py +++ b/influxdb_client/domain/organization.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/organization_links.py b/influxdb_client/domain/organization_links.py index 5bb180c1..31b6dbc8 100644 --- a/influxdb_client/domain/organization_links.py +++ b/influxdb_client/domain/organization_links.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/organizations.py b/influxdb_client/domain/organizations.py index 3adaaca6..80c9a648 100644 --- a/influxdb_client/domain/organizations.py +++ b/influxdb_client/domain/organizations.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/package.py b/influxdb_client/domain/package.py index eeb6d85f..8ba3a525 100644 --- a/influxdb_client/domain/package.py +++ b/influxdb_client/domain/package.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/package_clause.py b/influxdb_client/domain/package_clause.py index ec33b1ad..657d6357 100644 --- a/influxdb_client/domain/package_clause.py +++ b/influxdb_client/domain/package_clause.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/pager_duty_notification_endpoint.py b/influxdb_client/domain/pager_duty_notification_endpoint.py index 7e6c4f28..d6b48749 100644 --- a/influxdb_client/domain/pager_duty_notification_endpoint.py +++ b/influxdb_client/domain/pager_duty_notification_endpoint.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/pager_duty_notification_rule.py b/influxdb_client/domain/pager_duty_notification_rule.py index bacda826..99c90f81 100644 --- a/influxdb_client/domain/pager_duty_notification_rule.py +++ b/influxdb_client/domain/pager_duty_notification_rule.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/pager_duty_notification_rule_base.py b/influxdb_client/domain/pager_duty_notification_rule_base.py index 028fd06c..7f215259 100644 --- a/influxdb_client/domain/pager_duty_notification_rule_base.py +++ b/influxdb_client/domain/pager_duty_notification_rule_base.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/paren_expression.py b/influxdb_client/domain/paren_expression.py index 09f4e889..18508b37 100644 --- a/influxdb_client/domain/paren_expression.py +++ b/influxdb_client/domain/paren_expression.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/password_reset_body.py b/influxdb_client/domain/password_reset_body.py index 7f117eff..a93b8437 100644 --- a/influxdb_client/domain/password_reset_body.py +++ b/influxdb_client/domain/password_reset_body.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/patch_bucket_request.py b/influxdb_client/domain/patch_bucket_request.py index 922e2cb1..8f4d4b7b 100644 --- a/influxdb_client/domain/patch_bucket_request.py +++ b/influxdb_client/domain/patch_bucket_request.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/patch_dashboard_request.py b/influxdb_client/domain/patch_dashboard_request.py index 0472fb23..56fdcf49 100644 --- a/influxdb_client/domain/patch_dashboard_request.py +++ b/influxdb_client/domain/patch_dashboard_request.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/patch_organization_request.py b/influxdb_client/domain/patch_organization_request.py index b04d55c4..63576340 100644 --- a/influxdb_client/domain/patch_organization_request.py +++ b/influxdb_client/domain/patch_organization_request.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/patch_retention_rule.py b/influxdb_client/domain/patch_retention_rule.py index 0df66bba..0b0abf4d 100644 --- a/influxdb_client/domain/patch_retention_rule.py +++ b/influxdb_client/domain/patch_retention_rule.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/patch_stack_request.py b/influxdb_client/domain/patch_stack_request.py new file mode 100644 index 00000000..5634f5ed --- /dev/null +++ b/influxdb_client/domain/patch_stack_request.py @@ -0,0 +1,175 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class PatchStackRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'name': 'str', + 'description': 'str', + 'template_ur_ls': 'list[str]', + 'additional_resources': 'list[PatchStackRequestAdditionalResources]' + } + + attribute_map = { + 'name': 'name', + 'description': 'description', + 'template_ur_ls': 'templateURLs', + 'additional_resources': 'additionalResources' + } + + def __init__(self, name=None, description=None, template_ur_ls=None, additional_resources=None): # noqa: E501,D401,D403 + """PatchStackRequest - a model defined in OpenAPI.""" # noqa: E501 + self._name = None + self._description = None + self._template_ur_ls = None + self._additional_resources = None + self.discriminator = None + + self.name = name + self.description = description + self.template_ur_ls = template_ur_ls + if additional_resources is not None: + self.additional_resources = additional_resources + + @property + def name(self): + """Get the name of this PatchStackRequest. + + :return: The name of this PatchStackRequest. + :rtype: str + """ # noqa: E501 + return self._name + + @name.setter + def name(self, name): + """Set the name of this PatchStackRequest. + + :param name: The name of this PatchStackRequest. + :type: str + """ # noqa: E501 + self._name = name + + @property + def description(self): + """Get the description of this PatchStackRequest. + + :return: The description of this PatchStackRequest. + :rtype: str + """ # noqa: E501 + return self._description + + @description.setter + def description(self, description): + """Set the description of this PatchStackRequest. + + :param description: The description of this PatchStackRequest. + :type: str + """ # noqa: E501 + self._description = description + + @property + def template_ur_ls(self): + """Get the template_ur_ls of this PatchStackRequest. + + :return: The template_ur_ls of this PatchStackRequest. + :rtype: list[str] + """ # noqa: E501 + return self._template_ur_ls + + @template_ur_ls.setter + def template_ur_ls(self, template_ur_ls): + """Set the template_ur_ls of this PatchStackRequest. + + :param template_ur_ls: The template_ur_ls of this PatchStackRequest. + :type: list[str] + """ # noqa: E501 + self._template_ur_ls = template_ur_ls + + @property + def additional_resources(self): + """Get the additional_resources of this PatchStackRequest. + + :return: The additional_resources of this PatchStackRequest. + :rtype: list[PatchStackRequestAdditionalResources] + """ # noqa: E501 + return self._additional_resources + + @additional_resources.setter + def additional_resources(self, additional_resources): + """Set the additional_resources of this PatchStackRequest. + + :param additional_resources: The additional_resources of this PatchStackRequest. + :type: list[PatchStackRequestAdditionalResources] + """ # noqa: E501 + self._additional_resources = additional_resources + + def to_dict(self): + """Return the model properties as a dict.""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Return the string representation of the model.""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`.""" + return self.to_str() + + def __eq__(self, other): + """Return true if both objects are equal.""" + if not isinstance(other, PatchStackRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Return true if both objects are not equal.""" + return not self == other diff --git a/influxdb_client/domain/patch_stack_request_additional_resources.py b/influxdb_client/domain/patch_stack_request_additional_resources.py new file mode 100644 index 00000000..e58ddaeb --- /dev/null +++ b/influxdb_client/domain/patch_stack_request_additional_resources.py @@ -0,0 +1,157 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class PatchStackRequestAdditionalResources(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'resource_id': 'str', + 'kind': 'str', + 'template_meta_name': 'str' + } + + attribute_map = { + 'resource_id': 'resourceID', + 'kind': 'kind', + 'template_meta_name': 'templateMetaName' + } + + def __init__(self, resource_id=None, kind=None, template_meta_name=None): # noqa: E501,D401,D403 + """PatchStackRequestAdditionalResources - a model defined in OpenAPI.""" # noqa: E501 + self._resource_id = None + self._kind = None + self._template_meta_name = None + self.discriminator = None + + self.resource_id = resource_id + self.kind = kind + if template_meta_name is not None: + self.template_meta_name = template_meta_name + + @property + def resource_id(self): + """Get the resource_id of this PatchStackRequestAdditionalResources. + + :return: The resource_id of this PatchStackRequestAdditionalResources. + :rtype: str + """ # noqa: E501 + return self._resource_id + + @resource_id.setter + def resource_id(self, resource_id): + """Set the resource_id of this PatchStackRequestAdditionalResources. + + :param resource_id: The resource_id of this PatchStackRequestAdditionalResources. + :type: str + """ # noqa: E501 + if resource_id is None: + raise ValueError("Invalid value for `resource_id`, must not be `None`") # noqa: E501 + self._resource_id = resource_id + + @property + def kind(self): + """Get the kind of this PatchStackRequestAdditionalResources. + + :return: The kind of this PatchStackRequestAdditionalResources. + :rtype: str + """ # noqa: E501 + return self._kind + + @kind.setter + def kind(self, kind): + """Set the kind of this PatchStackRequestAdditionalResources. + + :param kind: The kind of this PatchStackRequestAdditionalResources. + :type: str + """ # noqa: E501 + if kind is None: + raise ValueError("Invalid value for `kind`, must not be `None`") # noqa: E501 + self._kind = kind + + @property + def template_meta_name(self): + """Get the template_meta_name of this PatchStackRequestAdditionalResources. + + :return: The template_meta_name of this PatchStackRequestAdditionalResources. + :rtype: str + """ # noqa: E501 + return self._template_meta_name + + @template_meta_name.setter + def template_meta_name(self, template_meta_name): + """Set the template_meta_name of this PatchStackRequestAdditionalResources. + + :param template_meta_name: The template_meta_name of this PatchStackRequestAdditionalResources. + :type: str + """ # noqa: E501 + self._template_meta_name = template_meta_name + + def to_dict(self): + """Return the model properties as a dict.""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Return the string representation of the model.""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`.""" + return self.to_str() + + def __eq__(self, other): + """Return true if both objects are equal.""" + if not isinstance(other, PatchStackRequestAdditionalResources): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Return true if both objects are not equal.""" + return not self == other diff --git a/influxdb_client/domain/permission.py b/influxdb_client/domain/permission.py index f448701f..70d5966e 100644 --- a/influxdb_client/domain/permission.py +++ b/influxdb_client/domain/permission.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/permission_resource.py b/influxdb_client/domain/permission_resource.py index 1539c7d4..a1e56e83 100644 --- a/influxdb_client/domain/permission_resource.py +++ b/influxdb_client/domain/permission_resource.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech @@ -57,10 +57,14 @@ def __init__(self, type=None, id=None, name=None, org_id=None, org=None): # noq self.discriminator = None self.type = type - self.id = id - self.name = name - self.org_id = org_id - self.org = org + if id is not None: + self.id = id + if name is not None: + self.name = name + if org_id is not None: + self.org_id = org_id + if org is not None: + self.org = org @property def type(self): diff --git a/influxdb_client/domain/pipe_expression.py b/influxdb_client/domain/pipe_expression.py index 1e7a2976..a7ab92f6 100644 --- a/influxdb_client/domain/pipe_expression.py +++ b/influxdb_client/domain/pipe_expression.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/pipe_literal.py b/influxdb_client/domain/pipe_literal.py index 74ab6591..a7461ffd 100644 --- a/influxdb_client/domain/pipe_literal.py +++ b/influxdb_client/domain/pipe_literal.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/post_bucket_request.py b/influxdb_client/domain/post_bucket_request.py index 8520c069..3e2522cb 100644 --- a/influxdb_client/domain/post_bucket_request.py +++ b/influxdb_client/domain/post_bucket_request.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/post_check.py b/influxdb_client/domain/post_check.py index 2f17669d..8323ae46 100644 --- a/influxdb_client/domain/post_check.py +++ b/influxdb_client/domain/post_check.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/post_notification_endpoint.py b/influxdb_client/domain/post_notification_endpoint.py index 0e6f6296..be1b67cf 100644 --- a/influxdb_client/domain/post_notification_endpoint.py +++ b/influxdb_client/domain/post_notification_endpoint.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/post_notification_rule.py b/influxdb_client/domain/post_notification_rule.py index 22fe922a..ebc5f9f9 100644 --- a/influxdb_client/domain/post_notification_rule.py +++ b/influxdb_client/domain/post_notification_rule.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/post_organization_request.py b/influxdb_client/domain/post_organization_request.py index 2b567f50..1ed5dfaa 100644 --- a/influxdb_client/domain/post_organization_request.py +++ b/influxdb_client/domain/post_organization_request.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/post_restore_kv_response.py b/influxdb_client/domain/post_restore_kv_response.py new file mode 100644 index 00000000..87a2c42b --- /dev/null +++ b/influxdb_client/domain/post_restore_kv_response.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class PostRestoreKVResponse(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'token': 'str' + } + + attribute_map = { + 'token': 'token' + } + + def __init__(self, token=None): # noqa: E501,D401,D403 + """PostRestoreKVResponse - a model defined in OpenAPI.""" # noqa: E501 + self._token = None + self.discriminator = None + + if token is not None: + self.token = token + + @property + def token(self): + """Get the token of this PostRestoreKVResponse. + + token is the root token for the instance after restore (this is overwritten during the restore) + + :return: The token of this PostRestoreKVResponse. + :rtype: str + """ # noqa: E501 + return self._token + + @token.setter + def token(self, token): + """Set the token of this PostRestoreKVResponse. + + token is the root token for the instance after restore (this is overwritten during the restore) + + :param token: The token of this PostRestoreKVResponse. + :type: str + """ # noqa: E501 + self._token = token + + def to_dict(self): + """Return the model properties as a dict.""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Return the string representation of the model.""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`.""" + return self.to_str() + + def __eq__(self, other): + """Return true if both objects are equal.""" + if not isinstance(other, PostRestoreKVResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Return true if both objects are not equal.""" + return not self == other diff --git a/influxdb_client/domain/post_stack_request.py b/influxdb_client/domain/post_stack_request.py new file mode 100644 index 00000000..126a7564 --- /dev/null +++ b/influxdb_client/domain/post_stack_request.py @@ -0,0 +1,178 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class PostStackRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'org_id': 'str', + 'name': 'str', + 'description': 'str', + 'urls': 'list[str]' + } + + attribute_map = { + 'org_id': 'orgID', + 'name': 'name', + 'description': 'description', + 'urls': 'urls' + } + + def __init__(self, org_id=None, name=None, description=None, urls=None): # noqa: E501,D401,D403 + """PostStackRequest - a model defined in OpenAPI.""" # noqa: E501 + self._org_id = None + self._name = None + self._description = None + self._urls = None + self.discriminator = None + + if org_id is not None: + self.org_id = org_id + if name is not None: + self.name = name + if description is not None: + self.description = description + if urls is not None: + self.urls = urls + + @property + def org_id(self): + """Get the org_id of this PostStackRequest. + + :return: The org_id of this PostStackRequest. + :rtype: str + """ # noqa: E501 + return self._org_id + + @org_id.setter + def org_id(self, org_id): + """Set the org_id of this PostStackRequest. + + :param org_id: The org_id of this PostStackRequest. + :type: str + """ # noqa: E501 + self._org_id = org_id + + @property + def name(self): + """Get the name of this PostStackRequest. + + :return: The name of this PostStackRequest. + :rtype: str + """ # noqa: E501 + return self._name + + @name.setter + def name(self, name): + """Set the name of this PostStackRequest. + + :param name: The name of this PostStackRequest. + :type: str + """ # noqa: E501 + self._name = name + + @property + def description(self): + """Get the description of this PostStackRequest. + + :return: The description of this PostStackRequest. + :rtype: str + """ # noqa: E501 + return self._description + + @description.setter + def description(self, description): + """Set the description of this PostStackRequest. + + :param description: The description of this PostStackRequest. + :type: str + """ # noqa: E501 + self._description = description + + @property + def urls(self): + """Get the urls of this PostStackRequest. + + :return: The urls of this PostStackRequest. + :rtype: list[str] + """ # noqa: E501 + return self._urls + + @urls.setter + def urls(self, urls): + """Set the urls of this PostStackRequest. + + :param urls: The urls of this PostStackRequest. + :type: list[str] + """ # noqa: E501 + self._urls = urls + + def to_dict(self): + """Return the model properties as a dict.""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Return the string representation of the model.""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`.""" + return self.to_str() + + def __eq__(self, other): + """Return true if both objects are equal.""" + if not isinstance(other, PostStackRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Return true if both objects are not equal.""" + return not self == other diff --git a/influxdb_client/domain/property_key.py b/influxdb_client/domain/property_key.py index 2a4ef2ed..9a4713b5 100644 --- a/influxdb_client/domain/property_key.py +++ b/influxdb_client/domain/property_key.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/query.py b/influxdb_client/domain/query.py index 9c7474e0..66edc941 100644 --- a/influxdb_client/domain/query.py +++ b/influxdb_client/domain/query.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/query_edit_mode.py b/influxdb_client/domain/query_edit_mode.py index 4cf03e47..f91dafb0 100644 --- a/influxdb_client/domain/query_edit_mode.py +++ b/influxdb_client/domain/query_edit_mode.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/query_variable_properties.py b/influxdb_client/domain/query_variable_properties.py index 4fedf51f..96a70742 100644 --- a/influxdb_client/domain/query_variable_properties.py +++ b/influxdb_client/domain/query_variable_properties.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/query_variable_properties_values.py b/influxdb_client/domain/query_variable_properties_values.py index 623ea261..1425f10a 100644 --- a/influxdb_client/domain/query_variable_properties_values.py +++ b/influxdb_client/domain/query_variable_properties_values.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/range_threshold.py b/influxdb_client/domain/range_threshold.py index 11931f12..59cec625 100644 --- a/influxdb_client/domain/range_threshold.py +++ b/influxdb_client/domain/range_threshold.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/ready.py b/influxdb_client/domain/ready.py index cbb50961..ca2dba55 100644 --- a/influxdb_client/domain/ready.py +++ b/influxdb_client/domain/ready.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/regexp_literal.py b/influxdb_client/domain/regexp_literal.py index f547b258..9d66a67a 100644 --- a/influxdb_client/domain/regexp_literal.py +++ b/influxdb_client/domain/regexp_literal.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/remote_connection.py b/influxdb_client/domain/remote_connection.py new file mode 100644 index 00000000..16171897 --- /dev/null +++ b/influxdb_client/domain/remote_connection.py @@ -0,0 +1,253 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class RemoteConnection(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'id': 'str', + 'name': 'str', + 'org_id': 'str', + 'description': 'str', + 'remote_url': 'str', + 'remote_org_id': 'str', + 'allow_insecure_tls': 'bool' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'org_id': 'orgID', + 'description': 'description', + 'remote_url': 'remoteURL', + 'remote_org_id': 'remoteOrgID', + 'allow_insecure_tls': 'allowInsecureTLS' + } + + def __init__(self, id=None, name=None, org_id=None, description=None, remote_url=None, remote_org_id=None, allow_insecure_tls=False): # noqa: E501,D401,D403 + """RemoteConnection - a model defined in OpenAPI.""" # noqa: E501 + self._id = None + self._name = None + self._org_id = None + self._description = None + self._remote_url = None + self._remote_org_id = None + self._allow_insecure_tls = None + self.discriminator = None + + self.id = id + self.name = name + self.org_id = org_id + if description is not None: + self.description = description + self.remote_url = remote_url + self.remote_org_id = remote_org_id + self.allow_insecure_tls = allow_insecure_tls + + @property + def id(self): + """Get the id of this RemoteConnection. + + :return: The id of this RemoteConnection. + :rtype: str + """ # noqa: E501 + return self._id + + @id.setter + def id(self, id): + """Set the id of this RemoteConnection. + + :param id: The id of this RemoteConnection. + :type: str + """ # noqa: E501 + if id is None: + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + self._id = id + + @property + def name(self): + """Get the name of this RemoteConnection. + + :return: The name of this RemoteConnection. + :rtype: str + """ # noqa: E501 + return self._name + + @name.setter + def name(self, name): + """Set the name of this RemoteConnection. + + :param name: The name of this RemoteConnection. + :type: str + """ # noqa: E501 + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + self._name = name + + @property + def org_id(self): + """Get the org_id of this RemoteConnection. + + :return: The org_id of this RemoteConnection. + :rtype: str + """ # noqa: E501 + return self._org_id + + @org_id.setter + def org_id(self, org_id): + """Set the org_id of this RemoteConnection. + + :param org_id: The org_id of this RemoteConnection. + :type: str + """ # noqa: E501 + if org_id is None: + raise ValueError("Invalid value for `org_id`, must not be `None`") # noqa: E501 + self._org_id = org_id + + @property + def description(self): + """Get the description of this RemoteConnection. + + :return: The description of this RemoteConnection. + :rtype: str + """ # noqa: E501 + return self._description + + @description.setter + def description(self, description): + """Set the description of this RemoteConnection. + + :param description: The description of this RemoteConnection. + :type: str + """ # noqa: E501 + self._description = description + + @property + def remote_url(self): + """Get the remote_url of this RemoteConnection. + + :return: The remote_url of this RemoteConnection. + :rtype: str + """ # noqa: E501 + return self._remote_url + + @remote_url.setter + def remote_url(self, remote_url): + """Set the remote_url of this RemoteConnection. + + :param remote_url: The remote_url of this RemoteConnection. + :type: str + """ # noqa: E501 + if remote_url is None: + raise ValueError("Invalid value for `remote_url`, must not be `None`") # noqa: E501 + self._remote_url = remote_url + + @property + def remote_org_id(self): + """Get the remote_org_id of this RemoteConnection. + + :return: The remote_org_id of this RemoteConnection. + :rtype: str + """ # noqa: E501 + return self._remote_org_id + + @remote_org_id.setter + def remote_org_id(self, remote_org_id): + """Set the remote_org_id of this RemoteConnection. + + :param remote_org_id: The remote_org_id of this RemoteConnection. + :type: str + """ # noqa: E501 + if remote_org_id is None: + raise ValueError("Invalid value for `remote_org_id`, must not be `None`") # noqa: E501 + self._remote_org_id = remote_org_id + + @property + def allow_insecure_tls(self): + """Get the allow_insecure_tls of this RemoteConnection. + + :return: The allow_insecure_tls of this RemoteConnection. + :rtype: bool + """ # noqa: E501 + return self._allow_insecure_tls + + @allow_insecure_tls.setter + def allow_insecure_tls(self, allow_insecure_tls): + """Set the allow_insecure_tls of this RemoteConnection. + + :param allow_insecure_tls: The allow_insecure_tls of this RemoteConnection. + :type: bool + """ # noqa: E501 + if allow_insecure_tls is None: + raise ValueError("Invalid value for `allow_insecure_tls`, must not be `None`") # noqa: E501 + self._allow_insecure_tls = allow_insecure_tls + + def to_dict(self): + """Return the model properties as a dict.""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Return the string representation of the model.""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`.""" + return self.to_str() + + def __eq__(self, other): + """Return true if both objects are equal.""" + if not isinstance(other, RemoteConnection): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Return true if both objects are not equal.""" + return not self == other diff --git a/influxdb_client/domain/remote_connection_creation_request.py b/influxdb_client/domain/remote_connection_creation_request.py new file mode 100644 index 00000000..dd5c11ae --- /dev/null +++ b/influxdb_client/domain/remote_connection_creation_request.py @@ -0,0 +1,253 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class RemoteConnectionCreationRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'name': 'str', + 'description': 'str', + 'org_id': 'str', + 'remote_url': 'str', + 'remote_api_token': 'str', + 'remote_org_id': 'str', + 'allow_insecure_tls': 'bool' + } + + attribute_map = { + 'name': 'name', + 'description': 'description', + 'org_id': 'orgID', + 'remote_url': 'remoteURL', + 'remote_api_token': 'remoteAPIToken', + 'remote_org_id': 'remoteOrgID', + 'allow_insecure_tls': 'allowInsecureTLS' + } + + def __init__(self, name=None, description=None, org_id=None, remote_url=None, remote_api_token=None, remote_org_id=None, allow_insecure_tls=False): # noqa: E501,D401,D403 + """RemoteConnectionCreationRequest - a model defined in OpenAPI.""" # noqa: E501 + self._name = None + self._description = None + self._org_id = None + self._remote_url = None + self._remote_api_token = None + self._remote_org_id = None + self._allow_insecure_tls = None + self.discriminator = None + + self.name = name + if description is not None: + self.description = description + self.org_id = org_id + self.remote_url = remote_url + self.remote_api_token = remote_api_token + self.remote_org_id = remote_org_id + self.allow_insecure_tls = allow_insecure_tls + + @property + def name(self): + """Get the name of this RemoteConnectionCreationRequest. + + :return: The name of this RemoteConnectionCreationRequest. + :rtype: str + """ # noqa: E501 + return self._name + + @name.setter + def name(self, name): + """Set the name of this RemoteConnectionCreationRequest. + + :param name: The name of this RemoteConnectionCreationRequest. + :type: str + """ # noqa: E501 + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + self._name = name + + @property + def description(self): + """Get the description of this RemoteConnectionCreationRequest. + + :return: The description of this RemoteConnectionCreationRequest. + :rtype: str + """ # noqa: E501 + return self._description + + @description.setter + def description(self, description): + """Set the description of this RemoteConnectionCreationRequest. + + :param description: The description of this RemoteConnectionCreationRequest. + :type: str + """ # noqa: E501 + self._description = description + + @property + def org_id(self): + """Get the org_id of this RemoteConnectionCreationRequest. + + :return: The org_id of this RemoteConnectionCreationRequest. + :rtype: str + """ # noqa: E501 + return self._org_id + + @org_id.setter + def org_id(self, org_id): + """Set the org_id of this RemoteConnectionCreationRequest. + + :param org_id: The org_id of this RemoteConnectionCreationRequest. + :type: str + """ # noqa: E501 + if org_id is None: + raise ValueError("Invalid value for `org_id`, must not be `None`") # noqa: E501 + self._org_id = org_id + + @property + def remote_url(self): + """Get the remote_url of this RemoteConnectionCreationRequest. + + :return: The remote_url of this RemoteConnectionCreationRequest. + :rtype: str + """ # noqa: E501 + return self._remote_url + + @remote_url.setter + def remote_url(self, remote_url): + """Set the remote_url of this RemoteConnectionCreationRequest. + + :param remote_url: The remote_url of this RemoteConnectionCreationRequest. + :type: str + """ # noqa: E501 + if remote_url is None: + raise ValueError("Invalid value for `remote_url`, must not be `None`") # noqa: E501 + self._remote_url = remote_url + + @property + def remote_api_token(self): + """Get the remote_api_token of this RemoteConnectionCreationRequest. + + :return: The remote_api_token of this RemoteConnectionCreationRequest. + :rtype: str + """ # noqa: E501 + return self._remote_api_token + + @remote_api_token.setter + def remote_api_token(self, remote_api_token): + """Set the remote_api_token of this RemoteConnectionCreationRequest. + + :param remote_api_token: The remote_api_token of this RemoteConnectionCreationRequest. + :type: str + """ # noqa: E501 + if remote_api_token is None: + raise ValueError("Invalid value for `remote_api_token`, must not be `None`") # noqa: E501 + self._remote_api_token = remote_api_token + + @property + def remote_org_id(self): + """Get the remote_org_id of this RemoteConnectionCreationRequest. + + :return: The remote_org_id of this RemoteConnectionCreationRequest. + :rtype: str + """ # noqa: E501 + return self._remote_org_id + + @remote_org_id.setter + def remote_org_id(self, remote_org_id): + """Set the remote_org_id of this RemoteConnectionCreationRequest. + + :param remote_org_id: The remote_org_id of this RemoteConnectionCreationRequest. + :type: str + """ # noqa: E501 + if remote_org_id is None: + raise ValueError("Invalid value for `remote_org_id`, must not be `None`") # noqa: E501 + self._remote_org_id = remote_org_id + + @property + def allow_insecure_tls(self): + """Get the allow_insecure_tls of this RemoteConnectionCreationRequest. + + :return: The allow_insecure_tls of this RemoteConnectionCreationRequest. + :rtype: bool + """ # noqa: E501 + return self._allow_insecure_tls + + @allow_insecure_tls.setter + def allow_insecure_tls(self, allow_insecure_tls): + """Set the allow_insecure_tls of this RemoteConnectionCreationRequest. + + :param allow_insecure_tls: The allow_insecure_tls of this RemoteConnectionCreationRequest. + :type: bool + """ # noqa: E501 + if allow_insecure_tls is None: + raise ValueError("Invalid value for `allow_insecure_tls`, must not be `None`") # noqa: E501 + self._allow_insecure_tls = allow_insecure_tls + + def to_dict(self): + """Return the model properties as a dict.""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Return the string representation of the model.""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`.""" + return self.to_str() + + def __eq__(self, other): + """Return true if both objects are equal.""" + if not isinstance(other, RemoteConnectionCreationRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Return true if both objects are not equal.""" + return not self == other diff --git a/influxdb_client/domain/remote_connection_update_request.py b/influxdb_client/domain/remote_connection_update_request.py new file mode 100644 index 00000000..01850813 --- /dev/null +++ b/influxdb_client/domain/remote_connection_update_request.py @@ -0,0 +1,224 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class RemoteConnectionUpdateRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'name': 'str', + 'description': 'str', + 'remote_url': 'str', + 'remote_api_token': 'str', + 'remote_org_id': 'str', + 'allow_insecure_tls': 'bool' + } + + attribute_map = { + 'name': 'name', + 'description': 'description', + 'remote_url': 'remoteURL', + 'remote_api_token': 'remoteAPIToken', + 'remote_org_id': 'remoteOrgID', + 'allow_insecure_tls': 'allowInsecureTLS' + } + + def __init__(self, name=None, description=None, remote_url=None, remote_api_token=None, remote_org_id=None, allow_insecure_tls=False): # noqa: E501,D401,D403 + """RemoteConnectionUpdateRequest - a model defined in OpenAPI.""" # noqa: E501 + self._name = None + self._description = None + self._remote_url = None + self._remote_api_token = None + self._remote_org_id = None + self._allow_insecure_tls = None + self.discriminator = None + + if name is not None: + self.name = name + if description is not None: + self.description = description + if remote_url is not None: + self.remote_url = remote_url + if remote_api_token is not None: + self.remote_api_token = remote_api_token + if remote_org_id is not None: + self.remote_org_id = remote_org_id + if allow_insecure_tls is not None: + self.allow_insecure_tls = allow_insecure_tls + + @property + def name(self): + """Get the name of this RemoteConnectionUpdateRequest. + + :return: The name of this RemoteConnectionUpdateRequest. + :rtype: str + """ # noqa: E501 + return self._name + + @name.setter + def name(self, name): + """Set the name of this RemoteConnectionUpdateRequest. + + :param name: The name of this RemoteConnectionUpdateRequest. + :type: str + """ # noqa: E501 + self._name = name + + @property + def description(self): + """Get the description of this RemoteConnectionUpdateRequest. + + :return: The description of this RemoteConnectionUpdateRequest. + :rtype: str + """ # noqa: E501 + return self._description + + @description.setter + def description(self, description): + """Set the description of this RemoteConnectionUpdateRequest. + + :param description: The description of this RemoteConnectionUpdateRequest. + :type: str + """ # noqa: E501 + self._description = description + + @property + def remote_url(self): + """Get the remote_url of this RemoteConnectionUpdateRequest. + + :return: The remote_url of this RemoteConnectionUpdateRequest. + :rtype: str + """ # noqa: E501 + return self._remote_url + + @remote_url.setter + def remote_url(self, remote_url): + """Set the remote_url of this RemoteConnectionUpdateRequest. + + :param remote_url: The remote_url of this RemoteConnectionUpdateRequest. + :type: str + """ # noqa: E501 + self._remote_url = remote_url + + @property + def remote_api_token(self): + """Get the remote_api_token of this RemoteConnectionUpdateRequest. + + :return: The remote_api_token of this RemoteConnectionUpdateRequest. + :rtype: str + """ # noqa: E501 + return self._remote_api_token + + @remote_api_token.setter + def remote_api_token(self, remote_api_token): + """Set the remote_api_token of this RemoteConnectionUpdateRequest. + + :param remote_api_token: The remote_api_token of this RemoteConnectionUpdateRequest. + :type: str + """ # noqa: E501 + self._remote_api_token = remote_api_token + + @property + def remote_org_id(self): + """Get the remote_org_id of this RemoteConnectionUpdateRequest. + + :return: The remote_org_id of this RemoteConnectionUpdateRequest. + :rtype: str + """ # noqa: E501 + return self._remote_org_id + + @remote_org_id.setter + def remote_org_id(self, remote_org_id): + """Set the remote_org_id of this RemoteConnectionUpdateRequest. + + :param remote_org_id: The remote_org_id of this RemoteConnectionUpdateRequest. + :type: str + """ # noqa: E501 + self._remote_org_id = remote_org_id + + @property + def allow_insecure_tls(self): + """Get the allow_insecure_tls of this RemoteConnectionUpdateRequest. + + :return: The allow_insecure_tls of this RemoteConnectionUpdateRequest. + :rtype: bool + """ # noqa: E501 + return self._allow_insecure_tls + + @allow_insecure_tls.setter + def allow_insecure_tls(self, allow_insecure_tls): + """Set the allow_insecure_tls of this RemoteConnectionUpdateRequest. + + :param allow_insecure_tls: The allow_insecure_tls of this RemoteConnectionUpdateRequest. + :type: bool + """ # noqa: E501 + self._allow_insecure_tls = allow_insecure_tls + + def to_dict(self): + """Return the model properties as a dict.""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Return the string representation of the model.""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`.""" + return self.to_str() + + def __eq__(self, other): + """Return true if both objects are equal.""" + if not isinstance(other, RemoteConnectionUpdateRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Return true if both objects are not equal.""" + return not self == other diff --git a/influxdb_client/domain/remote_connections.py b/influxdb_client/domain/remote_connections.py new file mode 100644 index 00000000..9f9276f5 --- /dev/null +++ b/influxdb_client/domain/remote_connections.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class RemoteConnections(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'remotes': 'list[RemoteConnection]' + } + + attribute_map = { + 'remotes': 'remotes' + } + + def __init__(self, remotes=None): # noqa: E501,D401,D403 + """RemoteConnections - a model defined in OpenAPI.""" # noqa: E501 + self._remotes = None + self.discriminator = None + + if remotes is not None: + self.remotes = remotes + + @property + def remotes(self): + """Get the remotes of this RemoteConnections. + + :return: The remotes of this RemoteConnections. + :rtype: list[RemoteConnection] + """ # noqa: E501 + return self._remotes + + @remotes.setter + def remotes(self, remotes): + """Set the remotes of this RemoteConnections. + + :param remotes: The remotes of this RemoteConnections. + :type: list[RemoteConnection] + """ # noqa: E501 + self._remotes = remotes + + def to_dict(self): + """Return the model properties as a dict.""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Return the string representation of the model.""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`.""" + return self.to_str() + + def __eq__(self, other): + """Return true if both objects are equal.""" + if not isinstance(other, RemoteConnections): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Return true if both objects are not equal.""" + return not self == other diff --git a/influxdb_client/domain/renamable_field.py b/influxdb_client/domain/renamable_field.py index adfaad3a..7b77df82 100644 --- a/influxdb_client/domain/renamable_field.py +++ b/influxdb_client/domain/renamable_field.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/replication.py b/influxdb_client/domain/replication.py new file mode 100644 index 00000000..e5d678ac --- /dev/null +++ b/influxdb_client/domain/replication.py @@ -0,0 +1,370 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class Replication(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'id': 'str', + 'name': 'str', + 'description': 'str', + 'org_id': 'str', + 'remote_id': 'str', + 'local_bucket_id': 'str', + 'remote_bucket_id': 'str', + 'max_queue_size_bytes': 'int', + 'current_queue_size_bytes': 'int', + 'latest_response_code': 'int', + 'latest_error_message': 'str', + 'drop_non_retryable_data': 'bool' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'description': 'description', + 'org_id': 'orgID', + 'remote_id': 'remoteID', + 'local_bucket_id': 'localBucketID', + 'remote_bucket_id': 'remoteBucketID', + 'max_queue_size_bytes': 'maxQueueSizeBytes', + 'current_queue_size_bytes': 'currentQueueSizeBytes', + 'latest_response_code': 'latestResponseCode', + 'latest_error_message': 'latestErrorMessage', + 'drop_non_retryable_data': 'dropNonRetryableData' + } + + def __init__(self, id=None, name=None, description=None, org_id=None, remote_id=None, local_bucket_id=None, remote_bucket_id=None, max_queue_size_bytes=None, current_queue_size_bytes=None, latest_response_code=None, latest_error_message=None, drop_non_retryable_data=None): # noqa: E501,D401,D403 + """Replication - a model defined in OpenAPI.""" # noqa: E501 + self._id = None + self._name = None + self._description = None + self._org_id = None + self._remote_id = None + self._local_bucket_id = None + self._remote_bucket_id = None + self._max_queue_size_bytes = None + self._current_queue_size_bytes = None + self._latest_response_code = None + self._latest_error_message = None + self._drop_non_retryable_data = None + self.discriminator = None + + self.id = id + self.name = name + if description is not None: + self.description = description + self.org_id = org_id + self.remote_id = remote_id + self.local_bucket_id = local_bucket_id + self.remote_bucket_id = remote_bucket_id + self.max_queue_size_bytes = max_queue_size_bytes + self.current_queue_size_bytes = current_queue_size_bytes + if latest_response_code is not None: + self.latest_response_code = latest_response_code + if latest_error_message is not None: + self.latest_error_message = latest_error_message + if drop_non_retryable_data is not None: + self.drop_non_retryable_data = drop_non_retryable_data + + @property + def id(self): + """Get the id of this Replication. + + :return: The id of this Replication. + :rtype: str + """ # noqa: E501 + return self._id + + @id.setter + def id(self, id): + """Set the id of this Replication. + + :param id: The id of this Replication. + :type: str + """ # noqa: E501 + if id is None: + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + self._id = id + + @property + def name(self): + """Get the name of this Replication. + + :return: The name of this Replication. + :rtype: str + """ # noqa: E501 + return self._name + + @name.setter + def name(self, name): + """Set the name of this Replication. + + :param name: The name of this Replication. + :type: str + """ # noqa: E501 + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + self._name = name + + @property + def description(self): + """Get the description of this Replication. + + :return: The description of this Replication. + :rtype: str + """ # noqa: E501 + return self._description + + @description.setter + def description(self, description): + """Set the description of this Replication. + + :param description: The description of this Replication. + :type: str + """ # noqa: E501 + self._description = description + + @property + def org_id(self): + """Get the org_id of this Replication. + + :return: The org_id of this Replication. + :rtype: str + """ # noqa: E501 + return self._org_id + + @org_id.setter + def org_id(self, org_id): + """Set the org_id of this Replication. + + :param org_id: The org_id of this Replication. + :type: str + """ # noqa: E501 + if org_id is None: + raise ValueError("Invalid value for `org_id`, must not be `None`") # noqa: E501 + self._org_id = org_id + + @property + def remote_id(self): + """Get the remote_id of this Replication. + + :return: The remote_id of this Replication. + :rtype: str + """ # noqa: E501 + return self._remote_id + + @remote_id.setter + def remote_id(self, remote_id): + """Set the remote_id of this Replication. + + :param remote_id: The remote_id of this Replication. + :type: str + """ # noqa: E501 + if remote_id is None: + raise ValueError("Invalid value for `remote_id`, must not be `None`") # noqa: E501 + self._remote_id = remote_id + + @property + def local_bucket_id(self): + """Get the local_bucket_id of this Replication. + + :return: The local_bucket_id of this Replication. + :rtype: str + """ # noqa: E501 + return self._local_bucket_id + + @local_bucket_id.setter + def local_bucket_id(self, local_bucket_id): + """Set the local_bucket_id of this Replication. + + :param local_bucket_id: The local_bucket_id of this Replication. + :type: str + """ # noqa: E501 + if local_bucket_id is None: + raise ValueError("Invalid value for `local_bucket_id`, must not be `None`") # noqa: E501 + self._local_bucket_id = local_bucket_id + + @property + def remote_bucket_id(self): + """Get the remote_bucket_id of this Replication. + + :return: The remote_bucket_id of this Replication. + :rtype: str + """ # noqa: E501 + return self._remote_bucket_id + + @remote_bucket_id.setter + def remote_bucket_id(self, remote_bucket_id): + """Set the remote_bucket_id of this Replication. + + :param remote_bucket_id: The remote_bucket_id of this Replication. + :type: str + """ # noqa: E501 + if remote_bucket_id is None: + raise ValueError("Invalid value for `remote_bucket_id`, must not be `None`") # noqa: E501 + self._remote_bucket_id = remote_bucket_id + + @property + def max_queue_size_bytes(self): + """Get the max_queue_size_bytes of this Replication. + + :return: The max_queue_size_bytes of this Replication. + :rtype: int + """ # noqa: E501 + return self._max_queue_size_bytes + + @max_queue_size_bytes.setter + def max_queue_size_bytes(self, max_queue_size_bytes): + """Set the max_queue_size_bytes of this Replication. + + :param max_queue_size_bytes: The max_queue_size_bytes of this Replication. + :type: int + """ # noqa: E501 + if max_queue_size_bytes is None: + raise ValueError("Invalid value for `max_queue_size_bytes`, must not be `None`") # noqa: E501 + self._max_queue_size_bytes = max_queue_size_bytes + + @property + def current_queue_size_bytes(self): + """Get the current_queue_size_bytes of this Replication. + + :return: The current_queue_size_bytes of this Replication. + :rtype: int + """ # noqa: E501 + return self._current_queue_size_bytes + + @current_queue_size_bytes.setter + def current_queue_size_bytes(self, current_queue_size_bytes): + """Set the current_queue_size_bytes of this Replication. + + :param current_queue_size_bytes: The current_queue_size_bytes of this Replication. + :type: int + """ # noqa: E501 + if current_queue_size_bytes is None: + raise ValueError("Invalid value for `current_queue_size_bytes`, must not be `None`") # noqa: E501 + self._current_queue_size_bytes = current_queue_size_bytes + + @property + def latest_response_code(self): + """Get the latest_response_code of this Replication. + + :return: The latest_response_code of this Replication. + :rtype: int + """ # noqa: E501 + return self._latest_response_code + + @latest_response_code.setter + def latest_response_code(self, latest_response_code): + """Set the latest_response_code of this Replication. + + :param latest_response_code: The latest_response_code of this Replication. + :type: int + """ # noqa: E501 + self._latest_response_code = latest_response_code + + @property + def latest_error_message(self): + """Get the latest_error_message of this Replication. + + :return: The latest_error_message of this Replication. + :rtype: str + """ # noqa: E501 + return self._latest_error_message + + @latest_error_message.setter + def latest_error_message(self, latest_error_message): + """Set the latest_error_message of this Replication. + + :param latest_error_message: The latest_error_message of this Replication. + :type: str + """ # noqa: E501 + self._latest_error_message = latest_error_message + + @property + def drop_non_retryable_data(self): + """Get the drop_non_retryable_data of this Replication. + + :return: The drop_non_retryable_data of this Replication. + :rtype: bool + """ # noqa: E501 + return self._drop_non_retryable_data + + @drop_non_retryable_data.setter + def drop_non_retryable_data(self, drop_non_retryable_data): + """Set the drop_non_retryable_data of this Replication. + + :param drop_non_retryable_data: The drop_non_retryable_data of this Replication. + :type: bool + """ # noqa: E501 + self._drop_non_retryable_data = drop_non_retryable_data + + def to_dict(self): + """Return the model properties as a dict.""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Return the string representation of the model.""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`.""" + return self.to_str() + + def __eq__(self, other): + """Return true if both objects are equal.""" + if not isinstance(other, Replication): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Return true if both objects are not equal.""" + return not self == other diff --git a/influxdb_client/domain/replication_creation_request.py b/influxdb_client/domain/replication_creation_request.py new file mode 100644 index 00000000..9edadfe1 --- /dev/null +++ b/influxdb_client/domain/replication_creation_request.py @@ -0,0 +1,278 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class ReplicationCreationRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'name': 'str', + 'description': 'str', + 'org_id': 'str', + 'remote_id': 'str', + 'local_bucket_id': 'str', + 'remote_bucket_id': 'str', + 'max_queue_size_bytes': 'int', + 'drop_non_retryable_data': 'bool' + } + + attribute_map = { + 'name': 'name', + 'description': 'description', + 'org_id': 'orgID', + 'remote_id': 'remoteID', + 'local_bucket_id': 'localBucketID', + 'remote_bucket_id': 'remoteBucketID', + 'max_queue_size_bytes': 'maxQueueSizeBytes', + 'drop_non_retryable_data': 'dropNonRetryableData' + } + + def __init__(self, name=None, description=None, org_id=None, remote_id=None, local_bucket_id=None, remote_bucket_id=None, max_queue_size_bytes=67108860, drop_non_retryable_data=False): # noqa: E501,D401,D403 + """ReplicationCreationRequest - a model defined in OpenAPI.""" # noqa: E501 + self._name = None + self._description = None + self._org_id = None + self._remote_id = None + self._local_bucket_id = None + self._remote_bucket_id = None + self._max_queue_size_bytes = None + self._drop_non_retryable_data = None + self.discriminator = None + + self.name = name + if description is not None: + self.description = description + self.org_id = org_id + self.remote_id = remote_id + self.local_bucket_id = local_bucket_id + self.remote_bucket_id = remote_bucket_id + self.max_queue_size_bytes = max_queue_size_bytes + if drop_non_retryable_data is not None: + self.drop_non_retryable_data = drop_non_retryable_data + + @property + def name(self): + """Get the name of this ReplicationCreationRequest. + + :return: The name of this ReplicationCreationRequest. + :rtype: str + """ # noqa: E501 + return self._name + + @name.setter + def name(self, name): + """Set the name of this ReplicationCreationRequest. + + :param name: The name of this ReplicationCreationRequest. + :type: str + """ # noqa: E501 + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + self._name = name + + @property + def description(self): + """Get the description of this ReplicationCreationRequest. + + :return: The description of this ReplicationCreationRequest. + :rtype: str + """ # noqa: E501 + return self._description + + @description.setter + def description(self, description): + """Set the description of this ReplicationCreationRequest. + + :param description: The description of this ReplicationCreationRequest. + :type: str + """ # noqa: E501 + self._description = description + + @property + def org_id(self): + """Get the org_id of this ReplicationCreationRequest. + + :return: The org_id of this ReplicationCreationRequest. + :rtype: str + """ # noqa: E501 + return self._org_id + + @org_id.setter + def org_id(self, org_id): + """Set the org_id of this ReplicationCreationRequest. + + :param org_id: The org_id of this ReplicationCreationRequest. + :type: str + """ # noqa: E501 + if org_id is None: + raise ValueError("Invalid value for `org_id`, must not be `None`") # noqa: E501 + self._org_id = org_id + + @property + def remote_id(self): + """Get the remote_id of this ReplicationCreationRequest. + + :return: The remote_id of this ReplicationCreationRequest. + :rtype: str + """ # noqa: E501 + return self._remote_id + + @remote_id.setter + def remote_id(self, remote_id): + """Set the remote_id of this ReplicationCreationRequest. + + :param remote_id: The remote_id of this ReplicationCreationRequest. + :type: str + """ # noqa: E501 + if remote_id is None: + raise ValueError("Invalid value for `remote_id`, must not be `None`") # noqa: E501 + self._remote_id = remote_id + + @property + def local_bucket_id(self): + """Get the local_bucket_id of this ReplicationCreationRequest. + + :return: The local_bucket_id of this ReplicationCreationRequest. + :rtype: str + """ # noqa: E501 + return self._local_bucket_id + + @local_bucket_id.setter + def local_bucket_id(self, local_bucket_id): + """Set the local_bucket_id of this ReplicationCreationRequest. + + :param local_bucket_id: The local_bucket_id of this ReplicationCreationRequest. + :type: str + """ # noqa: E501 + if local_bucket_id is None: + raise ValueError("Invalid value for `local_bucket_id`, must not be `None`") # noqa: E501 + self._local_bucket_id = local_bucket_id + + @property + def remote_bucket_id(self): + """Get the remote_bucket_id of this ReplicationCreationRequest. + + :return: The remote_bucket_id of this ReplicationCreationRequest. + :rtype: str + """ # noqa: E501 + return self._remote_bucket_id + + @remote_bucket_id.setter + def remote_bucket_id(self, remote_bucket_id): + """Set the remote_bucket_id of this ReplicationCreationRequest. + + :param remote_bucket_id: The remote_bucket_id of this ReplicationCreationRequest. + :type: str + """ # noqa: E501 + if remote_bucket_id is None: + raise ValueError("Invalid value for `remote_bucket_id`, must not be `None`") # noqa: E501 + self._remote_bucket_id = remote_bucket_id + + @property + def max_queue_size_bytes(self): + """Get the max_queue_size_bytes of this ReplicationCreationRequest. + + :return: The max_queue_size_bytes of this ReplicationCreationRequest. + :rtype: int + """ # noqa: E501 + return self._max_queue_size_bytes + + @max_queue_size_bytes.setter + def max_queue_size_bytes(self, max_queue_size_bytes): + """Set the max_queue_size_bytes of this ReplicationCreationRequest. + + :param max_queue_size_bytes: The max_queue_size_bytes of this ReplicationCreationRequest. + :type: int + """ # noqa: E501 + if max_queue_size_bytes is None: + raise ValueError("Invalid value for `max_queue_size_bytes`, must not be `None`") # noqa: E501 + if max_queue_size_bytes is not None and max_queue_size_bytes < 33554430: # noqa: E501 + raise ValueError("Invalid value for `max_queue_size_bytes`, must be a value greater than or equal to `33554430`") # noqa: E501 + self._max_queue_size_bytes = max_queue_size_bytes + + @property + def drop_non_retryable_data(self): + """Get the drop_non_retryable_data of this ReplicationCreationRequest. + + :return: The drop_non_retryable_data of this ReplicationCreationRequest. + :rtype: bool + """ # noqa: E501 + return self._drop_non_retryable_data + + @drop_non_retryable_data.setter + def drop_non_retryable_data(self, drop_non_retryable_data): + """Set the drop_non_retryable_data of this ReplicationCreationRequest. + + :param drop_non_retryable_data: The drop_non_retryable_data of this ReplicationCreationRequest. + :type: bool + """ # noqa: E501 + self._drop_non_retryable_data = drop_non_retryable_data + + def to_dict(self): + """Return the model properties as a dict.""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Return the string representation of the model.""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`.""" + return self.to_str() + + def __eq__(self, other): + """Return true if both objects are equal.""" + if not isinstance(other, ReplicationCreationRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Return true if both objects are not equal.""" + return not self == other diff --git a/influxdb_client/domain/replication_update_request.py b/influxdb_client/domain/replication_update_request.py new file mode 100644 index 00000000..e8a075cc --- /dev/null +++ b/influxdb_client/domain/replication_update_request.py @@ -0,0 +1,226 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class ReplicationUpdateRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'name': 'str', + 'description': 'str', + 'remote_id': 'str', + 'remote_bucket_id': 'str', + 'max_queue_size_bytes': 'int', + 'drop_non_retryable_data': 'bool' + } + + attribute_map = { + 'name': 'name', + 'description': 'description', + 'remote_id': 'remoteID', + 'remote_bucket_id': 'remoteBucketID', + 'max_queue_size_bytes': 'maxQueueSizeBytes', + 'drop_non_retryable_data': 'dropNonRetryableData' + } + + def __init__(self, name=None, description=None, remote_id=None, remote_bucket_id=None, max_queue_size_bytes=None, drop_non_retryable_data=None): # noqa: E501,D401,D403 + """ReplicationUpdateRequest - a model defined in OpenAPI.""" # noqa: E501 + self._name = None + self._description = None + self._remote_id = None + self._remote_bucket_id = None + self._max_queue_size_bytes = None + self._drop_non_retryable_data = None + self.discriminator = None + + if name is not None: + self.name = name + if description is not None: + self.description = description + if remote_id is not None: + self.remote_id = remote_id + if remote_bucket_id is not None: + self.remote_bucket_id = remote_bucket_id + if max_queue_size_bytes is not None: + self.max_queue_size_bytes = max_queue_size_bytes + if drop_non_retryable_data is not None: + self.drop_non_retryable_data = drop_non_retryable_data + + @property + def name(self): + """Get the name of this ReplicationUpdateRequest. + + :return: The name of this ReplicationUpdateRequest. + :rtype: str + """ # noqa: E501 + return self._name + + @name.setter + def name(self, name): + """Set the name of this ReplicationUpdateRequest. + + :param name: The name of this ReplicationUpdateRequest. + :type: str + """ # noqa: E501 + self._name = name + + @property + def description(self): + """Get the description of this ReplicationUpdateRequest. + + :return: The description of this ReplicationUpdateRequest. + :rtype: str + """ # noqa: E501 + return self._description + + @description.setter + def description(self, description): + """Set the description of this ReplicationUpdateRequest. + + :param description: The description of this ReplicationUpdateRequest. + :type: str + """ # noqa: E501 + self._description = description + + @property + def remote_id(self): + """Get the remote_id of this ReplicationUpdateRequest. + + :return: The remote_id of this ReplicationUpdateRequest. + :rtype: str + """ # noqa: E501 + return self._remote_id + + @remote_id.setter + def remote_id(self, remote_id): + """Set the remote_id of this ReplicationUpdateRequest. + + :param remote_id: The remote_id of this ReplicationUpdateRequest. + :type: str + """ # noqa: E501 + self._remote_id = remote_id + + @property + def remote_bucket_id(self): + """Get the remote_bucket_id of this ReplicationUpdateRequest. + + :return: The remote_bucket_id of this ReplicationUpdateRequest. + :rtype: str + """ # noqa: E501 + return self._remote_bucket_id + + @remote_bucket_id.setter + def remote_bucket_id(self, remote_bucket_id): + """Set the remote_bucket_id of this ReplicationUpdateRequest. + + :param remote_bucket_id: The remote_bucket_id of this ReplicationUpdateRequest. + :type: str + """ # noqa: E501 + self._remote_bucket_id = remote_bucket_id + + @property + def max_queue_size_bytes(self): + """Get the max_queue_size_bytes of this ReplicationUpdateRequest. + + :return: The max_queue_size_bytes of this ReplicationUpdateRequest. + :rtype: int + """ # noqa: E501 + return self._max_queue_size_bytes + + @max_queue_size_bytes.setter + def max_queue_size_bytes(self, max_queue_size_bytes): + """Set the max_queue_size_bytes of this ReplicationUpdateRequest. + + :param max_queue_size_bytes: The max_queue_size_bytes of this ReplicationUpdateRequest. + :type: int + """ # noqa: E501 + if max_queue_size_bytes is not None and max_queue_size_bytes < 33554430: # noqa: E501 + raise ValueError("Invalid value for `max_queue_size_bytes`, must be a value greater than or equal to `33554430`") # noqa: E501 + self._max_queue_size_bytes = max_queue_size_bytes + + @property + def drop_non_retryable_data(self): + """Get the drop_non_retryable_data of this ReplicationUpdateRequest. + + :return: The drop_non_retryable_data of this ReplicationUpdateRequest. + :rtype: bool + """ # noqa: E501 + return self._drop_non_retryable_data + + @drop_non_retryable_data.setter + def drop_non_retryable_data(self, drop_non_retryable_data): + """Set the drop_non_retryable_data of this ReplicationUpdateRequest. + + :param drop_non_retryable_data: The drop_non_retryable_data of this ReplicationUpdateRequest. + :type: bool + """ # noqa: E501 + self._drop_non_retryable_data = drop_non_retryable_data + + def to_dict(self): + """Return the model properties as a dict.""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Return the string representation of the model.""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`.""" + return self.to_str() + + def __eq__(self, other): + """Return true if both objects are equal.""" + if not isinstance(other, ReplicationUpdateRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Return true if both objects are not equal.""" + return not self == other diff --git a/influxdb_client/domain/replications.py b/influxdb_client/domain/replications.py new file mode 100644 index 00000000..60ea47bc --- /dev/null +++ b/influxdb_client/domain/replications.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class Replications(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'replications': 'list[Replication]' + } + + attribute_map = { + 'replications': 'replications' + } + + def __init__(self, replications=None): # noqa: E501,D401,D403 + """Replications - a model defined in OpenAPI.""" # noqa: E501 + self._replications = None + self.discriminator = None + + if replications is not None: + self.replications = replications + + @property + def replications(self): + """Get the replications of this Replications. + + :return: The replications of this Replications. + :rtype: list[Replication] + """ # noqa: E501 + return self._replications + + @replications.setter + def replications(self, replications): + """Set the replications of this Replications. + + :param replications: The replications of this Replications. + :type: list[Replication] + """ # noqa: E501 + self._replications = replications + + def to_dict(self): + """Return the model properties as a dict.""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Return the string representation of the model.""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`.""" + return self.to_str() + + def __eq__(self, other): + """Return true if both objects are equal.""" + if not isinstance(other, Replications): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Return true if both objects are not equal.""" + return not self == other diff --git a/influxdb_client/domain/resource_member.py b/influxdb_client/domain/resource_member.py index e1a0f9ff..cfdca24f 100644 --- a/influxdb_client/domain/resource_member.py +++ b/influxdb_client/domain/resource_member.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/resource_members.py b/influxdb_client/domain/resource_members.py index 69bf2b7d..87e0582a 100644 --- a/influxdb_client/domain/resource_members.py +++ b/influxdb_client/domain/resource_members.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/resource_members_links.py b/influxdb_client/domain/resource_members_links.py index d3fd0447..2585c8e7 100644 --- a/influxdb_client/domain/resource_members_links.py +++ b/influxdb_client/domain/resource_members_links.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/resource_owner.py b/influxdb_client/domain/resource_owner.py index 579e16cd..7aee0a7c 100644 --- a/influxdb_client/domain/resource_owner.py +++ b/influxdb_client/domain/resource_owner.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/resource_owners.py b/influxdb_client/domain/resource_owners.py index 14c36970..af42a049 100644 --- a/influxdb_client/domain/resource_owners.py +++ b/influxdb_client/domain/resource_owners.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/document_list_entry.py b/influxdb_client/domain/restored_bucket_mappings.py similarity index 52% rename from influxdb_client/domain/document_list_entry.py rename to influxdb_client/domain/restored_bucket_mappings.py index 086380a5..425a1e44 100644 --- a/influxdb_client/domain/document_list_entry.py +++ b/influxdb_client/domain/restored_bucket_mappings.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech @@ -16,7 +16,7 @@ import six -class DocumentListEntry(object): +class RestoredBucketMappings(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -33,47 +33,45 @@ class DocumentListEntry(object): """ openapi_types = { 'id': 'str', - 'meta': 'DocumentMeta', - 'labels': 'list[Label]', - 'links': 'DocumentLinks' + 'name': 'str', + 'shard_mappings': 'list[BucketShardMapping]' } attribute_map = { 'id': 'id', - 'meta': 'meta', - 'labels': 'labels', - 'links': 'links' + 'name': 'name', + 'shard_mappings': 'shardMappings' } - def __init__(self, id=None, meta=None, labels=None, links=None): # noqa: E501,D401,D403 - """DocumentListEntry - a model defined in OpenAPI.""" # noqa: E501 + def __init__(self, id=None, name=None, shard_mappings=None): # noqa: E501,D401,D403 + """RestoredBucketMappings - a model defined in OpenAPI.""" # noqa: E501 self._id = None - self._meta = None - self._labels = None - self._links = None + self._name = None + self._shard_mappings = None self.discriminator = None self.id = id - self.meta = meta - if labels is not None: - self.labels = labels - if links is not None: - self.links = links + self.name = name + self.shard_mappings = shard_mappings @property def id(self): - """Get the id of this DocumentListEntry. + """Get the id of this RestoredBucketMappings. - :return: The id of this DocumentListEntry. + New ID of the restored bucket + + :return: The id of this RestoredBucketMappings. :rtype: str """ # noqa: E501 return self._id @id.setter def id(self, id): - """Set the id of this DocumentListEntry. + """Set the id of this RestoredBucketMappings. + + New ID of the restored bucket - :param id: The id of this DocumentListEntry. + :param id: The id of this RestoredBucketMappings. :type: str """ # noqa: E501 if id is None: @@ -81,60 +79,44 @@ def id(self, id): self._id = id @property - def meta(self): - """Get the meta of this DocumentListEntry. - - :return: The meta of this DocumentListEntry. - :rtype: DocumentMeta - """ # noqa: E501 - return self._meta - - @meta.setter - def meta(self, meta): - """Set the meta of this DocumentListEntry. + def name(self): + """Get the name of this RestoredBucketMappings. - :param meta: The meta of this DocumentListEntry. - :type: DocumentMeta - """ # noqa: E501 - if meta is None: - raise ValueError("Invalid value for `meta`, must not be `None`") # noqa: E501 - self._meta = meta - - @property - def labels(self): - """Get the labels of this DocumentListEntry. - - :return: The labels of this DocumentListEntry. - :rtype: list[Label] + :return: The name of this RestoredBucketMappings. + :rtype: str """ # noqa: E501 - return self._labels + return self._name - @labels.setter - def labels(self, labels): - """Set the labels of this DocumentListEntry. + @name.setter + def name(self, name): + """Set the name of this RestoredBucketMappings. - :param labels: The labels of this DocumentListEntry. - :type: list[Label] + :param name: The name of this RestoredBucketMappings. + :type: str """ # noqa: E501 - self._labels = labels + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + self._name = name @property - def links(self): - """Get the links of this DocumentListEntry. + def shard_mappings(self): + """Get the shard_mappings of this RestoredBucketMappings. - :return: The links of this DocumentListEntry. - :rtype: DocumentLinks + :return: The shard_mappings of this RestoredBucketMappings. + :rtype: list[BucketShardMapping] """ # noqa: E501 - return self._links + return self._shard_mappings - @links.setter - def links(self, links): - """Set the links of this DocumentListEntry. + @shard_mappings.setter + def shard_mappings(self, shard_mappings): + """Set the shard_mappings of this RestoredBucketMappings. - :param links: The links of this DocumentListEntry. - :type: DocumentLinks + :param shard_mappings: The shard_mappings of this RestoredBucketMappings. + :type: list[BucketShardMapping] """ # noqa: E501 - self._links = links + if shard_mappings is None: + raise ValueError("Invalid value for `shard_mappings`, must not be `None`") # noqa: E501 + self._shard_mappings = shard_mappings def to_dict(self): """Return the model properties as a dict.""" @@ -170,7 +152,7 @@ def __repr__(self): def __eq__(self, other): """Return true if both objects are equal.""" - if not isinstance(other, DocumentListEntry): + if not isinstance(other, RestoredBucketMappings): return False return self.__dict__ == other.__dict__ diff --git a/influxdb_client/domain/retention_policy_manifest.py b/influxdb_client/domain/retention_policy_manifest.py new file mode 100644 index 00000000..49009aa6 --- /dev/null +++ b/influxdb_client/domain/retention_policy_manifest.py @@ -0,0 +1,230 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class RetentionPolicyManifest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'name': 'str', + 'replica_n': 'int', + 'duration': 'int', + 'shard_group_duration': 'int', + 'shard_groups': 'list[ShardGroupManifest]', + 'subscriptions': 'list[SubscriptionManifest]' + } + + attribute_map = { + 'name': 'name', + 'replica_n': 'replicaN', + 'duration': 'duration', + 'shard_group_duration': 'shardGroupDuration', + 'shard_groups': 'shardGroups', + 'subscriptions': 'subscriptions' + } + + def __init__(self, name=None, replica_n=None, duration=None, shard_group_duration=None, shard_groups=None, subscriptions=None): # noqa: E501,D401,D403 + """RetentionPolicyManifest - a model defined in OpenAPI.""" # noqa: E501 + self._name = None + self._replica_n = None + self._duration = None + self._shard_group_duration = None + self._shard_groups = None + self._subscriptions = None + self.discriminator = None + + self.name = name + self.replica_n = replica_n + self.duration = duration + self.shard_group_duration = shard_group_duration + self.shard_groups = shard_groups + self.subscriptions = subscriptions + + @property + def name(self): + """Get the name of this RetentionPolicyManifest. + + :return: The name of this RetentionPolicyManifest. + :rtype: str + """ # noqa: E501 + return self._name + + @name.setter + def name(self, name): + """Set the name of this RetentionPolicyManifest. + + :param name: The name of this RetentionPolicyManifest. + :type: str + """ # noqa: E501 + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + self._name = name + + @property + def replica_n(self): + """Get the replica_n of this RetentionPolicyManifest. + + :return: The replica_n of this RetentionPolicyManifest. + :rtype: int + """ # noqa: E501 + return self._replica_n + + @replica_n.setter + def replica_n(self, replica_n): + """Set the replica_n of this RetentionPolicyManifest. + + :param replica_n: The replica_n of this RetentionPolicyManifest. + :type: int + """ # noqa: E501 + if replica_n is None: + raise ValueError("Invalid value for `replica_n`, must not be `None`") # noqa: E501 + self._replica_n = replica_n + + @property + def duration(self): + """Get the duration of this RetentionPolicyManifest. + + :return: The duration of this RetentionPolicyManifest. + :rtype: int + """ # noqa: E501 + return self._duration + + @duration.setter + def duration(self, duration): + """Set the duration of this RetentionPolicyManifest. + + :param duration: The duration of this RetentionPolicyManifest. + :type: int + """ # noqa: E501 + if duration is None: + raise ValueError("Invalid value for `duration`, must not be `None`") # noqa: E501 + self._duration = duration + + @property + def shard_group_duration(self): + """Get the shard_group_duration of this RetentionPolicyManifest. + + :return: The shard_group_duration of this RetentionPolicyManifest. + :rtype: int + """ # noqa: E501 + return self._shard_group_duration + + @shard_group_duration.setter + def shard_group_duration(self, shard_group_duration): + """Set the shard_group_duration of this RetentionPolicyManifest. + + :param shard_group_duration: The shard_group_duration of this RetentionPolicyManifest. + :type: int + """ # noqa: E501 + if shard_group_duration is None: + raise ValueError("Invalid value for `shard_group_duration`, must not be `None`") # noqa: E501 + self._shard_group_duration = shard_group_duration + + @property + def shard_groups(self): + """Get the shard_groups of this RetentionPolicyManifest. + + :return: The shard_groups of this RetentionPolicyManifest. + :rtype: list[ShardGroupManifest] + """ # noqa: E501 + return self._shard_groups + + @shard_groups.setter + def shard_groups(self, shard_groups): + """Set the shard_groups of this RetentionPolicyManifest. + + :param shard_groups: The shard_groups of this RetentionPolicyManifest. + :type: list[ShardGroupManifest] + """ # noqa: E501 + if shard_groups is None: + raise ValueError("Invalid value for `shard_groups`, must not be `None`") # noqa: E501 + self._shard_groups = shard_groups + + @property + def subscriptions(self): + """Get the subscriptions of this RetentionPolicyManifest. + + :return: The subscriptions of this RetentionPolicyManifest. + :rtype: list[SubscriptionManifest] + """ # noqa: E501 + return self._subscriptions + + @subscriptions.setter + def subscriptions(self, subscriptions): + """Set the subscriptions of this RetentionPolicyManifest. + + :param subscriptions: The subscriptions of this RetentionPolicyManifest. + :type: list[SubscriptionManifest] + """ # noqa: E501 + if subscriptions is None: + raise ValueError("Invalid value for `subscriptions`, must not be `None`") # noqa: E501 + self._subscriptions = subscriptions + + def to_dict(self): + """Return the model properties as a dict.""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Return the string representation of the model.""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`.""" + return self.to_str() + + def __eq__(self, other): + """Return true if both objects are equal.""" + if not isinstance(other, RetentionPolicyManifest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Return true if both objects are not equal.""" + return not self == other diff --git a/influxdb_client/domain/return_statement.py b/influxdb_client/domain/return_statement.py index 43307668..de98a07f 100644 --- a/influxdb_client/domain/return_statement.py +++ b/influxdb_client/domain/return_statement.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/routes.py b/influxdb_client/domain/routes.py index 90b6c23e..4c5f04c3 100644 --- a/influxdb_client/domain/routes.py +++ b/influxdb_client/domain/routes.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/routes_external.py b/influxdb_client/domain/routes_external.py index 9757214f..2b0ceb72 100644 --- a/influxdb_client/domain/routes_external.py +++ b/influxdb_client/domain/routes_external.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/routes_query.py b/influxdb_client/domain/routes_query.py index 721068b3..32b1ea35 100644 --- a/influxdb_client/domain/routes_query.py +++ b/influxdb_client/domain/routes_query.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/routes_system.py b/influxdb_client/domain/routes_system.py index cc6ad351..42aca1d6 100644 --- a/influxdb_client/domain/routes_system.py +++ b/influxdb_client/domain/routes_system.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/rule_status_level.py b/influxdb_client/domain/rule_status_level.py index 92bb75a6..7ad6decc 100644 --- a/influxdb_client/domain/rule_status_level.py +++ b/influxdb_client/domain/rule_status_level.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/run.py b/influxdb_client/domain/run.py index a0316121..65164b36 100644 --- a/influxdb_client/domain/run.py +++ b/influxdb_client/domain/run.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/run_links.py b/influxdb_client/domain/run_links.py index 861fd9b3..1faa3dd0 100644 --- a/influxdb_client/domain/run_links.py +++ b/influxdb_client/domain/run_links.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/run_manually.py b/influxdb_client/domain/run_manually.py index ce93eaa1..3deaf3f4 100644 --- a/influxdb_client/domain/run_manually.py +++ b/influxdb_client/domain/run_manually.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/runs.py b/influxdb_client/domain/runs.py index d914989d..a6b24f17 100644 --- a/influxdb_client/domain/runs.py +++ b/influxdb_client/domain/runs.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/scatter_view_properties.py b/influxdb_client/domain/scatter_view_properties.py index a858b832..75c6a50c 100644 --- a/influxdb_client/domain/scatter_view_properties.py +++ b/influxdb_client/domain/scatter_view_properties.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/schema_type.py b/influxdb_client/domain/schema_type.py index d4633f69..eac4cc5f 100644 --- a/influxdb_client/domain/schema_type.py +++ b/influxdb_client/domain/schema_type.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/scraper_target_request.py b/influxdb_client/domain/scraper_target_request.py index eee45931..167d934a 100644 --- a/influxdb_client/domain/scraper_target_request.py +++ b/influxdb_client/domain/scraper_target_request.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/scraper_target_response.py b/influxdb_client/domain/scraper_target_response.py index 0a716238..20b7f732 100644 --- a/influxdb_client/domain/scraper_target_response.py +++ b/influxdb_client/domain/scraper_target_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech @@ -99,7 +99,7 @@ def id(self, id): def org(self): """Get the org of this ScraperTargetResponse. - The organization name. + The name of the organization. :return: The org of this ScraperTargetResponse. :rtype: str @@ -110,7 +110,7 @@ def org(self): def org(self, org): """Set the org of this ScraperTargetResponse. - The organization name. + The name of the organization. :param org: The org of this ScraperTargetResponse. :type: str diff --git a/influxdb_client/domain/scraper_target_responses.py b/influxdb_client/domain/scraper_target_responses.py index 620eac1b..b10ebf70 100644 --- a/influxdb_client/domain/scraper_target_responses.py +++ b/influxdb_client/domain/scraper_target_responses.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/script.py b/influxdb_client/domain/script.py index a6b5cb3d..9c6bb8fc 100644 --- a/influxdb_client/domain/script.py +++ b/influxdb_client/domain/script.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/script_create_request.py b/influxdb_client/domain/script_create_request.py index 7adacc5e..5dca0b0b 100644 --- a/influxdb_client/domain/script_create_request.py +++ b/influxdb_client/domain/script_create_request.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech @@ -34,7 +34,6 @@ class ScriptCreateRequest(object): openapi_types = { 'name': 'str', 'description': 'str', - 'org_id': 'str', 'script': 'str', 'language': 'ScriptLanguage' } @@ -42,23 +41,20 @@ class ScriptCreateRequest(object): attribute_map = { 'name': 'name', 'description': 'description', - 'org_id': 'orgID', 'script': 'script', 'language': 'language' } - def __init__(self, name=None, description=None, org_id=None, script=None, language=None): # noqa: E501,D401,D403 + def __init__(self, name=None, description=None, script=None, language=None): # noqa: E501,D401,D403 """ScriptCreateRequest - a model defined in OpenAPI.""" # noqa: E501 self._name = None self._description = None - self._org_id = None self._script = None self._language = None self.discriminator = None self.name = name self.description = description - self.org_id = org_id self.script = script self.language = language @@ -106,26 +102,6 @@ def description(self, description): raise ValueError("Invalid value for `description`, must not be `None`") # noqa: E501 self._description = description - @property - def org_id(self): - """Get the org_id of this ScriptCreateRequest. - - :return: The org_id of this ScriptCreateRequest. - :rtype: str - """ # noqa: E501 - return self._org_id - - @org_id.setter - def org_id(self, org_id): - """Set the org_id of this ScriptCreateRequest. - - :param org_id: The org_id of this ScriptCreateRequest. - :type: str - """ # noqa: E501 - if org_id is None: - raise ValueError("Invalid value for `org_id`, must not be `None`") # noqa: E501 - self._org_id = org_id - @property def script(self): """Get the script of this ScriptCreateRequest. diff --git a/influxdb_client/domain/script_invocation_params.py b/influxdb_client/domain/script_invocation_params.py index 1299b94d..f4902599 100644 --- a/influxdb_client/domain/script_invocation_params.py +++ b/influxdb_client/domain/script_invocation_params.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/script_language.py b/influxdb_client/domain/script_language.py index b3ca3ab5..df0de26f 100644 --- a/influxdb_client/domain/script_language.py +++ b/influxdb_client/domain/script_language.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/script_update_request.py b/influxdb_client/domain/script_update_request.py index b373aeda..105fe8df 100644 --- a/influxdb_client/domain/script_update_request.py +++ b/influxdb_client/domain/script_update_request.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/scripts.py b/influxdb_client/domain/scripts.py index 1f5b0f12..4cde3981 100644 --- a/influxdb_client/domain/scripts.py +++ b/influxdb_client/domain/scripts.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/secret_keys.py b/influxdb_client/domain/secret_keys.py index 54bd5b6c..78f082e4 100644 --- a/influxdb_client/domain/secret_keys.py +++ b/influxdb_client/domain/secret_keys.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/secret_keys_response.py b/influxdb_client/domain/secret_keys_response.py index 39bc31de..44d3bb0b 100644 --- a/influxdb_client/domain/secret_keys_response.py +++ b/influxdb_client/domain/secret_keys_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/shard_group_manifest.py b/influxdb_client/domain/shard_group_manifest.py new file mode 100644 index 00000000..32c8eeed --- /dev/null +++ b/influxdb_client/domain/shard_group_manifest.py @@ -0,0 +1,228 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class ShardGroupManifest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'id': 'int', + 'start_time': 'datetime', + 'end_time': 'datetime', + 'deleted_at': 'datetime', + 'truncated_at': 'datetime', + 'shards': 'list[ShardManifest]' + } + + attribute_map = { + 'id': 'id', + 'start_time': 'startTime', + 'end_time': 'endTime', + 'deleted_at': 'deletedAt', + 'truncated_at': 'truncatedAt', + 'shards': 'shards' + } + + def __init__(self, id=None, start_time=None, end_time=None, deleted_at=None, truncated_at=None, shards=None): # noqa: E501,D401,D403 + """ShardGroupManifest - a model defined in OpenAPI.""" # noqa: E501 + self._id = None + self._start_time = None + self._end_time = None + self._deleted_at = None + self._truncated_at = None + self._shards = None + self.discriminator = None + + self.id = id + self.start_time = start_time + self.end_time = end_time + if deleted_at is not None: + self.deleted_at = deleted_at + if truncated_at is not None: + self.truncated_at = truncated_at + self.shards = shards + + @property + def id(self): + """Get the id of this ShardGroupManifest. + + :return: The id of this ShardGroupManifest. + :rtype: int + """ # noqa: E501 + return self._id + + @id.setter + def id(self, id): + """Set the id of this ShardGroupManifest. + + :param id: The id of this ShardGroupManifest. + :type: int + """ # noqa: E501 + if id is None: + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + self._id = id + + @property + def start_time(self): + """Get the start_time of this ShardGroupManifest. + + :return: The start_time of this ShardGroupManifest. + :rtype: datetime + """ # noqa: E501 + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """Set the start_time of this ShardGroupManifest. + + :param start_time: The start_time of this ShardGroupManifest. + :type: datetime + """ # noqa: E501 + if start_time is None: + raise ValueError("Invalid value for `start_time`, must not be `None`") # noqa: E501 + self._start_time = start_time + + @property + def end_time(self): + """Get the end_time of this ShardGroupManifest. + + :return: The end_time of this ShardGroupManifest. + :rtype: datetime + """ # noqa: E501 + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Set the end_time of this ShardGroupManifest. + + :param end_time: The end_time of this ShardGroupManifest. + :type: datetime + """ # noqa: E501 + if end_time is None: + raise ValueError("Invalid value for `end_time`, must not be `None`") # noqa: E501 + self._end_time = end_time + + @property + def deleted_at(self): + """Get the deleted_at of this ShardGroupManifest. + + :return: The deleted_at of this ShardGroupManifest. + :rtype: datetime + """ # noqa: E501 + return self._deleted_at + + @deleted_at.setter + def deleted_at(self, deleted_at): + """Set the deleted_at of this ShardGroupManifest. + + :param deleted_at: The deleted_at of this ShardGroupManifest. + :type: datetime + """ # noqa: E501 + self._deleted_at = deleted_at + + @property + def truncated_at(self): + """Get the truncated_at of this ShardGroupManifest. + + :return: The truncated_at of this ShardGroupManifest. + :rtype: datetime + """ # noqa: E501 + return self._truncated_at + + @truncated_at.setter + def truncated_at(self, truncated_at): + """Set the truncated_at of this ShardGroupManifest. + + :param truncated_at: The truncated_at of this ShardGroupManifest. + :type: datetime + """ # noqa: E501 + self._truncated_at = truncated_at + + @property + def shards(self): + """Get the shards of this ShardGroupManifest. + + :return: The shards of this ShardGroupManifest. + :rtype: list[ShardManifest] + """ # noqa: E501 + return self._shards + + @shards.setter + def shards(self, shards): + """Set the shards of this ShardGroupManifest. + + :param shards: The shards of this ShardGroupManifest. + :type: list[ShardManifest] + """ # noqa: E501 + if shards is None: + raise ValueError("Invalid value for `shards`, must not be `None`") # noqa: E501 + self._shards = shards + + def to_dict(self): + """Return the model properties as a dict.""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Return the string representation of the model.""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`.""" + return self.to_str() + + def __eq__(self, other): + """Return true if both objects are equal.""" + if not isinstance(other, ShardGroupManifest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Return true if both objects are not equal.""" + return not self == other diff --git a/influxdb_client/domain/shard_manifest.py b/influxdb_client/domain/shard_manifest.py new file mode 100644 index 00000000..d5b45f72 --- /dev/null +++ b/influxdb_client/domain/shard_manifest.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class ShardManifest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'id': 'int', + 'shard_owners': 'list[ShardOwner]' + } + + attribute_map = { + 'id': 'id', + 'shard_owners': 'shardOwners' + } + + def __init__(self, id=None, shard_owners=None): # noqa: E501,D401,D403 + """ShardManifest - a model defined in OpenAPI.""" # noqa: E501 + self._id = None + self._shard_owners = None + self.discriminator = None + + self.id = id + self.shard_owners = shard_owners + + @property + def id(self): + """Get the id of this ShardManifest. + + :return: The id of this ShardManifest. + :rtype: int + """ # noqa: E501 + return self._id + + @id.setter + def id(self, id): + """Set the id of this ShardManifest. + + :param id: The id of this ShardManifest. + :type: int + """ # noqa: E501 + if id is None: + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + self._id = id + + @property + def shard_owners(self): + """Get the shard_owners of this ShardManifest. + + :return: The shard_owners of this ShardManifest. + :rtype: list[ShardOwner] + """ # noqa: E501 + return self._shard_owners + + @shard_owners.setter + def shard_owners(self, shard_owners): + """Set the shard_owners of this ShardManifest. + + :param shard_owners: The shard_owners of this ShardManifest. + :type: list[ShardOwner] + """ # noqa: E501 + if shard_owners is None: + raise ValueError("Invalid value for `shard_owners`, must not be `None`") # noqa: E501 + self._shard_owners = shard_owners + + def to_dict(self): + """Return the model properties as a dict.""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Return the string representation of the model.""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`.""" + return self.to_str() + + def __eq__(self, other): + """Return true if both objects are equal.""" + if not isinstance(other, ShardManifest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Return true if both objects are not equal.""" + return not self == other diff --git a/influxdb_client/domain/shard_owner.py b/influxdb_client/domain/shard_owner.py new file mode 100644 index 00000000..aef649e9 --- /dev/null +++ b/influxdb_client/domain/shard_owner.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class ShardOwner(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'node_id': 'int' + } + + attribute_map = { + 'node_id': 'nodeID' + } + + def __init__(self, node_id=None): # noqa: E501,D401,D403 + """ShardOwner - a model defined in OpenAPI.""" # noqa: E501 + self._node_id = None + self.discriminator = None + + self.node_id = node_id + + @property + def node_id(self): + """Get the node_id of this ShardOwner. + + ID of the node that owns a shard. + + :return: The node_id of this ShardOwner. + :rtype: int + """ # noqa: E501 + return self._node_id + + @node_id.setter + def node_id(self, node_id): + """Set the node_id of this ShardOwner. + + ID of the node that owns a shard. + + :param node_id: The node_id of this ShardOwner. + :type: int + """ # noqa: E501 + if node_id is None: + raise ValueError("Invalid value for `node_id`, must not be `None`") # noqa: E501 + self._node_id = node_id + + def to_dict(self): + """Return the model properties as a dict.""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Return the string representation of the model.""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`.""" + return self.to_str() + + def __eq__(self, other): + """Return true if both objects are equal.""" + if not isinstance(other, ShardOwner): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Return true if both objects are not equal.""" + return not self == other diff --git a/influxdb_client/domain/simple_table_view_properties.py b/influxdb_client/domain/simple_table_view_properties.py new file mode 100644 index 00000000..c246c600 --- /dev/null +++ b/influxdb_client/domain/simple_table_view_properties.py @@ -0,0 +1,237 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six +from influxdb_client.domain.view_properties import ViewProperties + + +class SimpleTableViewProperties(ViewProperties): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'type': 'str', + 'show_all': 'bool', + 'queries': 'list[DashboardQuery]', + 'shape': 'str', + 'note': 'str', + 'show_note_when_empty': 'bool' + } + + attribute_map = { + 'type': 'type', + 'show_all': 'showAll', + 'queries': 'queries', + 'shape': 'shape', + 'note': 'note', + 'show_note_when_empty': 'showNoteWhenEmpty' + } + + def __init__(self, type=None, show_all=None, queries=None, shape=None, note=None, show_note_when_empty=None): # noqa: E501,D401,D403 + """SimpleTableViewProperties - a model defined in OpenAPI.""" # noqa: E501 + ViewProperties.__init__(self) # noqa: E501 + + self._type = None + self._show_all = None + self._queries = None + self._shape = None + self._note = None + self._show_note_when_empty = None + self.discriminator = None + + self.type = type + self.show_all = show_all + self.queries = queries + self.shape = shape + self.note = note + self.show_note_when_empty = show_note_when_empty + + @property + def type(self): + """Get the type of this SimpleTableViewProperties. + + :return: The type of this SimpleTableViewProperties. + :rtype: str + """ # noqa: E501 + return self._type + + @type.setter + def type(self, type): + """Set the type of this SimpleTableViewProperties. + + :param type: The type of this SimpleTableViewProperties. + :type: str + """ # noqa: E501 + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 + self._type = type + + @property + def show_all(self): + """Get the show_all of this SimpleTableViewProperties. + + :return: The show_all of this SimpleTableViewProperties. + :rtype: bool + """ # noqa: E501 + return self._show_all + + @show_all.setter + def show_all(self, show_all): + """Set the show_all of this SimpleTableViewProperties. + + :param show_all: The show_all of this SimpleTableViewProperties. + :type: bool + """ # noqa: E501 + if show_all is None: + raise ValueError("Invalid value for `show_all`, must not be `None`") # noqa: E501 + self._show_all = show_all + + @property + def queries(self): + """Get the queries of this SimpleTableViewProperties. + + :return: The queries of this SimpleTableViewProperties. + :rtype: list[DashboardQuery] + """ # noqa: E501 + return self._queries + + @queries.setter + def queries(self, queries): + """Set the queries of this SimpleTableViewProperties. + + :param queries: The queries of this SimpleTableViewProperties. + :type: list[DashboardQuery] + """ # noqa: E501 + if queries is None: + raise ValueError("Invalid value for `queries`, must not be `None`") # noqa: E501 + self._queries = queries + + @property + def shape(self): + """Get the shape of this SimpleTableViewProperties. + + :return: The shape of this SimpleTableViewProperties. + :rtype: str + """ # noqa: E501 + return self._shape + + @shape.setter + def shape(self, shape): + """Set the shape of this SimpleTableViewProperties. + + :param shape: The shape of this SimpleTableViewProperties. + :type: str + """ # noqa: E501 + if shape is None: + raise ValueError("Invalid value for `shape`, must not be `None`") # noqa: E501 + self._shape = shape + + @property + def note(self): + """Get the note of this SimpleTableViewProperties. + + :return: The note of this SimpleTableViewProperties. + :rtype: str + """ # noqa: E501 + return self._note + + @note.setter + def note(self, note): + """Set the note of this SimpleTableViewProperties. + + :param note: The note of this SimpleTableViewProperties. + :type: str + """ # noqa: E501 + if note is None: + raise ValueError("Invalid value for `note`, must not be `None`") # noqa: E501 + self._note = note + + @property + def show_note_when_empty(self): + """Get the show_note_when_empty of this SimpleTableViewProperties. + + If true, will display note when empty + + :return: The show_note_when_empty of this SimpleTableViewProperties. + :rtype: bool + """ # noqa: E501 + return self._show_note_when_empty + + @show_note_when_empty.setter + def show_note_when_empty(self, show_note_when_empty): + """Set the show_note_when_empty of this SimpleTableViewProperties. + + If true, will display note when empty + + :param show_note_when_empty: The show_note_when_empty of this SimpleTableViewProperties. + :type: bool + """ # noqa: E501 + if show_note_when_empty is None: + raise ValueError("Invalid value for `show_note_when_empty`, must not be `None`") # noqa: E501 + self._show_note_when_empty = show_note_when_empty + + def to_dict(self): + """Return the model properties as a dict.""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Return the string representation of the model.""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`.""" + return self.to_str() + + def __eq__(self, other): + """Return true if both objects are equal.""" + if not isinstance(other, SimpleTableViewProperties): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Return true if both objects are not equal.""" + return not self == other diff --git a/influxdb_client/domain/single_stat_view_properties.py b/influxdb_client/domain/single_stat_view_properties.py index cf822a49..efae2928 100644 --- a/influxdb_client/domain/single_stat_view_properties.py +++ b/influxdb_client/domain/single_stat_view_properties.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/slack_notification_endpoint.py b/influxdb_client/domain/slack_notification_endpoint.py index 96204236..7c048e41 100644 --- a/influxdb_client/domain/slack_notification_endpoint.py +++ b/influxdb_client/domain/slack_notification_endpoint.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/slack_notification_rule.py b/influxdb_client/domain/slack_notification_rule.py index b455eab8..fc4738a7 100644 --- a/influxdb_client/domain/slack_notification_rule.py +++ b/influxdb_client/domain/slack_notification_rule.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/slack_notification_rule_base.py b/influxdb_client/domain/slack_notification_rule_base.py index 0506b7e1..1c39e116 100644 --- a/influxdb_client/domain/slack_notification_rule_base.py +++ b/influxdb_client/domain/slack_notification_rule_base.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/smtp_notification_rule.py b/influxdb_client/domain/smtp_notification_rule.py index 53a57c26..627286f1 100644 --- a/influxdb_client/domain/smtp_notification_rule.py +++ b/influxdb_client/domain/smtp_notification_rule.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/smtp_notification_rule_base.py b/influxdb_client/domain/smtp_notification_rule_base.py index c32c1dd4..3d27c80d 100644 --- a/influxdb_client/domain/smtp_notification_rule_base.py +++ b/influxdb_client/domain/smtp_notification_rule_base.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/source.py b/influxdb_client/domain/source.py index ec61331c..aa2130ab 100644 --- a/influxdb_client/domain/source.py +++ b/influxdb_client/domain/source.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/source_links.py b/influxdb_client/domain/source_links.py index cd0292cc..ffa3f608 100644 --- a/influxdb_client/domain/source_links.py +++ b/influxdb_client/domain/source_links.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/sources.py b/influxdb_client/domain/sources.py index 1e7f9e7c..5bf54f63 100644 --- a/influxdb_client/domain/sources.py +++ b/influxdb_client/domain/sources.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/stack.py b/influxdb_client/domain/stack.py new file mode 100644 index 00000000..62caaa60 --- /dev/null +++ b/influxdb_client/domain/stack.py @@ -0,0 +1,178 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class Stack(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'id': 'str', + 'org_id': 'str', + 'created_at': 'datetime', + 'events': 'list[StackEvents]' + } + + attribute_map = { + 'id': 'id', + 'org_id': 'orgID', + 'created_at': 'createdAt', + 'events': 'events' + } + + def __init__(self, id=None, org_id=None, created_at=None, events=None): # noqa: E501,D401,D403 + """Stack - a model defined in OpenAPI.""" # noqa: E501 + self._id = None + self._org_id = None + self._created_at = None + self._events = None + self.discriminator = None + + if id is not None: + self.id = id + if org_id is not None: + self.org_id = org_id + if created_at is not None: + self.created_at = created_at + if events is not None: + self.events = events + + @property + def id(self): + """Get the id of this Stack. + + :return: The id of this Stack. + :rtype: str + """ # noqa: E501 + return self._id + + @id.setter + def id(self, id): + """Set the id of this Stack. + + :param id: The id of this Stack. + :type: str + """ # noqa: E501 + self._id = id + + @property + def org_id(self): + """Get the org_id of this Stack. + + :return: The org_id of this Stack. + :rtype: str + """ # noqa: E501 + return self._org_id + + @org_id.setter + def org_id(self, org_id): + """Set the org_id of this Stack. + + :param org_id: The org_id of this Stack. + :type: str + """ # noqa: E501 + self._org_id = org_id + + @property + def created_at(self): + """Get the created_at of this Stack. + + :return: The created_at of this Stack. + :rtype: datetime + """ # noqa: E501 + return self._created_at + + @created_at.setter + def created_at(self, created_at): + """Set the created_at of this Stack. + + :param created_at: The created_at of this Stack. + :type: datetime + """ # noqa: E501 + self._created_at = created_at + + @property + def events(self): + """Get the events of this Stack. + + :return: The events of this Stack. + :rtype: list[StackEvents] + """ # noqa: E501 + return self._events + + @events.setter + def events(self, events): + """Set the events of this Stack. + + :param events: The events of this Stack. + :type: list[StackEvents] + """ # noqa: E501 + self._events = events + + def to_dict(self): + """Return the model properties as a dict.""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Return the string representation of the model.""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`.""" + return self.to_str() + + def __eq__(self, other): + """Return true if both objects are equal.""" + if not isinstance(other, Stack): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Return true if both objects are not equal.""" + return not self == other diff --git a/influxdb_client/domain/stack_associations.py b/influxdb_client/domain/stack_associations.py new file mode 100644 index 00000000..5c9d6d5c --- /dev/null +++ b/influxdb_client/domain/stack_associations.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class StackAssociations(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'kind': 'TemplateKind', + 'meta_name': 'str' + } + + attribute_map = { + 'kind': 'kind', + 'meta_name': 'metaName' + } + + def __init__(self, kind=None, meta_name=None): # noqa: E501,D401,D403 + """StackAssociations - a model defined in OpenAPI.""" # noqa: E501 + self._kind = None + self._meta_name = None + self.discriminator = None + + if kind is not None: + self.kind = kind + if meta_name is not None: + self.meta_name = meta_name + + @property + def kind(self): + """Get the kind of this StackAssociations. + + :return: The kind of this StackAssociations. + :rtype: TemplateKind + """ # noqa: E501 + return self._kind + + @kind.setter + def kind(self, kind): + """Set the kind of this StackAssociations. + + :param kind: The kind of this StackAssociations. + :type: TemplateKind + """ # noqa: E501 + self._kind = kind + + @property + def meta_name(self): + """Get the meta_name of this StackAssociations. + + :return: The meta_name of this StackAssociations. + :rtype: str + """ # noqa: E501 + return self._meta_name + + @meta_name.setter + def meta_name(self, meta_name): + """Set the meta_name of this StackAssociations. + + :param meta_name: The meta_name of this StackAssociations. + :type: str + """ # noqa: E501 + self._meta_name = meta_name + + def to_dict(self): + """Return the model properties as a dict.""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Return the string representation of the model.""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`.""" + return self.to_str() + + def __eq__(self, other): + """Return true if both objects are equal.""" + if not isinstance(other, StackAssociations): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Return true if both objects are not equal.""" + return not self == other diff --git a/influxdb_client/domain/document_meta.py b/influxdb_client/domain/stack_events.py similarity index 50% rename from influxdb_client/domain/document_meta.py rename to influxdb_client/domain/stack_events.py index 1492175c..c5c9e48f 100644 --- a/influxdb_client/domain/document_meta.py +++ b/influxdb_client/domain/stack_events.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech @@ -16,7 +16,7 @@ import six -class DocumentMeta(object): +class StackEvents(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -32,175 +32,173 @@ class DocumentMeta(object): and the value is json key in definition. """ openapi_types = { + 'event_type': 'str', 'name': 'str', - 'type': 'str', - 'template_id': 'str', 'description': 'str', - 'version': 'str', - 'created_at': 'datetime', + 'sources': 'list[str]', + 'resources': 'list[StackResources]', + 'urls': 'list[str]', 'updated_at': 'datetime' } attribute_map = { + 'event_type': 'eventType', 'name': 'name', - 'type': 'type', - 'template_id': 'templateID', 'description': 'description', - 'version': 'version', - 'created_at': 'createdAt', + 'sources': 'sources', + 'resources': 'resources', + 'urls': 'urls', 'updated_at': 'updatedAt' } - def __init__(self, name=None, type=None, template_id=None, description=None, version=None, created_at=None, updated_at=None): # noqa: E501,D401,D403 - """DocumentMeta - a model defined in OpenAPI.""" # noqa: E501 + def __init__(self, event_type=None, name=None, description=None, sources=None, resources=None, urls=None, updated_at=None): # noqa: E501,D401,D403 + """StackEvents - a model defined in OpenAPI.""" # noqa: E501 + self._event_type = None self._name = None - self._type = None - self._template_id = None self._description = None - self._version = None - self._created_at = None + self._sources = None + self._resources = None + self._urls = None self._updated_at = None self.discriminator = None - self.name = name - if type is not None: - self.type = type - if template_id is not None: - self.template_id = template_id + if event_type is not None: + self.event_type = event_type + if name is not None: + self.name = name if description is not None: self.description = description - self.version = version - if created_at is not None: - self.created_at = created_at + if sources is not None: + self.sources = sources + if resources is not None: + self.resources = resources + if urls is not None: + self.urls = urls if updated_at is not None: self.updated_at = updated_at @property - def name(self): - """Get the name of this DocumentMeta. + def event_type(self): + """Get the event_type of this StackEvents. - :return: The name of this DocumentMeta. + :return: The event_type of this StackEvents. :rtype: str """ # noqa: E501 - return self._name + return self._event_type - @name.setter - def name(self, name): - """Set the name of this DocumentMeta. + @event_type.setter + def event_type(self, event_type): + """Set the event_type of this StackEvents. - :param name: The name of this DocumentMeta. + :param event_type: The event_type of this StackEvents. :type: str """ # noqa: E501 - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - self._name = name + self._event_type = event_type @property - def type(self): - """Get the type of this DocumentMeta. + def name(self): + """Get the name of this StackEvents. - :return: The type of this DocumentMeta. + :return: The name of this StackEvents. :rtype: str """ # noqa: E501 - return self._type + return self._name - @type.setter - def type(self, type): - """Set the type of this DocumentMeta. + @name.setter + def name(self, name): + """Set the name of this StackEvents. - :param type: The type of this DocumentMeta. + :param name: The name of this StackEvents. :type: str """ # noqa: E501 - self._type = type + self._name = name @property - def template_id(self): - """Get the template_id of this DocumentMeta. + def description(self): + """Get the description of this StackEvents. - :return: The template_id of this DocumentMeta. + :return: The description of this StackEvents. :rtype: str """ # noqa: E501 - return self._template_id + return self._description - @template_id.setter - def template_id(self, template_id): - """Set the template_id of this DocumentMeta. + @description.setter + def description(self, description): + """Set the description of this StackEvents. - :param template_id: The template_id of this DocumentMeta. + :param description: The description of this StackEvents. :type: str """ # noqa: E501 - self._template_id = template_id + self._description = description @property - def description(self): - """Get the description of this DocumentMeta. + def sources(self): + """Get the sources of this StackEvents. - :return: The description of this DocumentMeta. - :rtype: str + :return: The sources of this StackEvents. + :rtype: list[str] """ # noqa: E501 - return self._description + return self._sources - @description.setter - def description(self, description): - """Set the description of this DocumentMeta. + @sources.setter + def sources(self, sources): + """Set the sources of this StackEvents. - :param description: The description of this DocumentMeta. - :type: str + :param sources: The sources of this StackEvents. + :type: list[str] """ # noqa: E501 - self._description = description + self._sources = sources @property - def version(self): - """Get the version of this DocumentMeta. + def resources(self): + """Get the resources of this StackEvents. - :return: The version of this DocumentMeta. - :rtype: str + :return: The resources of this StackEvents. + :rtype: list[StackResources] """ # noqa: E501 - return self._version + return self._resources - @version.setter - def version(self, version): - """Set the version of this DocumentMeta. + @resources.setter + def resources(self, resources): + """Set the resources of this StackEvents. - :param version: The version of this DocumentMeta. - :type: str + :param resources: The resources of this StackEvents. + :type: list[StackResources] """ # noqa: E501 - if version is None: - raise ValueError("Invalid value for `version`, must not be `None`") # noqa: E501 - self._version = version + self._resources = resources @property - def created_at(self): - """Get the created_at of this DocumentMeta. + def urls(self): + """Get the urls of this StackEvents. - :return: The created_at of this DocumentMeta. - :rtype: datetime + :return: The urls of this StackEvents. + :rtype: list[str] """ # noqa: E501 - return self._created_at + return self._urls - @created_at.setter - def created_at(self, created_at): - """Set the created_at of this DocumentMeta. + @urls.setter + def urls(self, urls): + """Set the urls of this StackEvents. - :param created_at: The created_at of this DocumentMeta. - :type: datetime + :param urls: The urls of this StackEvents. + :type: list[str] """ # noqa: E501 - self._created_at = created_at + self._urls = urls @property def updated_at(self): - """Get the updated_at of this DocumentMeta. + """Get the updated_at of this StackEvents. - :return: The updated_at of this DocumentMeta. + :return: The updated_at of this StackEvents. :rtype: datetime """ # noqa: E501 return self._updated_at @updated_at.setter def updated_at(self, updated_at): - """Set the updated_at of this DocumentMeta. + """Set the updated_at of this StackEvents. - :param updated_at: The updated_at of this DocumentMeta. + :param updated_at: The updated_at of this StackEvents. :type: datetime """ # noqa: E501 self._updated_at = updated_at @@ -239,7 +237,7 @@ def __repr__(self): def __eq__(self, other): """Return true if both objects are equal.""" - if not isinstance(other, DocumentMeta): + if not isinstance(other, StackEvents): return False return self.__dict__ == other.__dict__ diff --git a/influxdb_client/domain/document_links.py b/influxdb_client/domain/stack_links.py similarity index 81% rename from influxdb_client/domain/document_links.py rename to influxdb_client/domain/stack_links.py index 6495c417..ff035182 100644 --- a/influxdb_client/domain/document_links.py +++ b/influxdb_client/domain/stack_links.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech @@ -16,7 +16,7 @@ import six -class DocumentLinks(object): +class StackLinks(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -40,7 +40,7 @@ class DocumentLinks(object): } def __init__(self, _self=None): # noqa: E501,D401,D403 - """DocumentLinks - a model defined in OpenAPI.""" # noqa: E501 + """StackLinks - a model defined in OpenAPI.""" # noqa: E501 self.__self = None self.discriminator = None @@ -49,22 +49,18 @@ def __init__(self, _self=None): # noqa: E501,D401,D403 @property def _self(self): - """Get the _self of this DocumentLinks. + """Get the _self of this StackLinks. - URI of resource. - - :return: The _self of this DocumentLinks. + :return: The _self of this StackLinks. :rtype: str """ # noqa: E501 return self.__self @_self.setter def _self(self, _self): - """Set the _self of this DocumentLinks. - - URI of resource. + """Set the _self of this StackLinks. - :param _self: The _self of this DocumentLinks. + :param _self: The _self of this StackLinks. :type: str """ # noqa: E501 self.__self = _self @@ -103,7 +99,7 @@ def __repr__(self): def __eq__(self, other): """Return true if both objects are equal.""" - if not isinstance(other, DocumentLinks): + if not isinstance(other, StackLinks): return False return self.__dict__ == other.__dict__ diff --git a/influxdb_client/domain/stack_resources.py b/influxdb_client/domain/stack_resources.py new file mode 100644 index 00000000..4a328864 --- /dev/null +++ b/influxdb_client/domain/stack_resources.py @@ -0,0 +1,224 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class StackResources(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'api_version': 'str', + 'resource_id': 'str', + 'kind': 'TemplateKind', + 'template_meta_name': 'str', + 'associations': 'list[StackAssociations]', + 'links': 'StackLinks' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'resource_id': 'resourceID', + 'kind': 'kind', + 'template_meta_name': 'templateMetaName', + 'associations': 'associations', + 'links': 'links' + } + + def __init__(self, api_version=None, resource_id=None, kind=None, template_meta_name=None, associations=None, links=None): # noqa: E501,D401,D403 + """StackResources - a model defined in OpenAPI.""" # noqa: E501 + self._api_version = None + self._resource_id = None + self._kind = None + self._template_meta_name = None + self._associations = None + self._links = None + self.discriminator = None + + if api_version is not None: + self.api_version = api_version + if resource_id is not None: + self.resource_id = resource_id + if kind is not None: + self.kind = kind + if template_meta_name is not None: + self.template_meta_name = template_meta_name + if associations is not None: + self.associations = associations + if links is not None: + self.links = links + + @property + def api_version(self): + """Get the api_version of this StackResources. + + :return: The api_version of this StackResources. + :rtype: str + """ # noqa: E501 + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """Set the api_version of this StackResources. + + :param api_version: The api_version of this StackResources. + :type: str + """ # noqa: E501 + self._api_version = api_version + + @property + def resource_id(self): + """Get the resource_id of this StackResources. + + :return: The resource_id of this StackResources. + :rtype: str + """ # noqa: E501 + return self._resource_id + + @resource_id.setter + def resource_id(self, resource_id): + """Set the resource_id of this StackResources. + + :param resource_id: The resource_id of this StackResources. + :type: str + """ # noqa: E501 + self._resource_id = resource_id + + @property + def kind(self): + """Get the kind of this StackResources. + + :return: The kind of this StackResources. + :rtype: TemplateKind + """ # noqa: E501 + return self._kind + + @kind.setter + def kind(self, kind): + """Set the kind of this StackResources. + + :param kind: The kind of this StackResources. + :type: TemplateKind + """ # noqa: E501 + self._kind = kind + + @property + def template_meta_name(self): + """Get the template_meta_name of this StackResources. + + :return: The template_meta_name of this StackResources. + :rtype: str + """ # noqa: E501 + return self._template_meta_name + + @template_meta_name.setter + def template_meta_name(self, template_meta_name): + """Set the template_meta_name of this StackResources. + + :param template_meta_name: The template_meta_name of this StackResources. + :type: str + """ # noqa: E501 + self._template_meta_name = template_meta_name + + @property + def associations(self): + """Get the associations of this StackResources. + + :return: The associations of this StackResources. + :rtype: list[StackAssociations] + """ # noqa: E501 + return self._associations + + @associations.setter + def associations(self, associations): + """Set the associations of this StackResources. + + :param associations: The associations of this StackResources. + :type: list[StackAssociations] + """ # noqa: E501 + self._associations = associations + + @property + def links(self): + """Get the links of this StackResources. + + :return: The links of this StackResources. + :rtype: StackLinks + """ # noqa: E501 + return self._links + + @links.setter + def links(self, links): + """Set the links of this StackResources. + + :param links: The links of this StackResources. + :type: StackLinks + """ # noqa: E501 + self._links = links + + def to_dict(self): + """Return the model properties as a dict.""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Return the string representation of the model.""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`.""" + return self.to_str() + + def __eq__(self, other): + """Return true if both objects are equal.""" + if not isinstance(other, StackResources): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Return true if both objects are not equal.""" + return not self == other diff --git a/influxdb_client/domain/statement.py b/influxdb_client/domain/statement.py index c2924843..64373bf1 100644 --- a/influxdb_client/domain/statement.py +++ b/influxdb_client/domain/statement.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/static_legend.py b/influxdb_client/domain/static_legend.py index e357dde5..ce57e78b 100644 --- a/influxdb_client/domain/static_legend.py +++ b/influxdb_client/domain/static_legend.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech @@ -34,7 +34,7 @@ class StaticLegend(object): openapi_types = { 'colorize_rows': 'bool', 'height_ratio': 'float', - 'hide': 'bool', + 'show': 'bool', 'opacity': 'float', 'orientation_threshold': 'int', 'value_axis': 'str', @@ -44,18 +44,18 @@ class StaticLegend(object): attribute_map = { 'colorize_rows': 'colorizeRows', 'height_ratio': 'heightRatio', - 'hide': 'hide', + 'show': 'show', 'opacity': 'opacity', 'orientation_threshold': 'orientationThreshold', 'value_axis': 'valueAxis', 'width_ratio': 'widthRatio' } - def __init__(self, colorize_rows=None, height_ratio=None, hide=None, opacity=None, orientation_threshold=None, value_axis=None, width_ratio=None): # noqa: E501,D401,D403 + def __init__(self, colorize_rows=None, height_ratio=None, show=None, opacity=None, orientation_threshold=None, value_axis=None, width_ratio=None): # noqa: E501,D401,D403 """StaticLegend - a model defined in OpenAPI.""" # noqa: E501 self._colorize_rows = None self._height_ratio = None - self._hide = None + self._show = None self._opacity = None self._orientation_threshold = None self._value_axis = None @@ -66,8 +66,8 @@ def __init__(self, colorize_rows=None, height_ratio=None, hide=None, opacity=Non self.colorize_rows = colorize_rows if height_ratio is not None: self.height_ratio = height_ratio - if hide is not None: - self.hide = hide + if show is not None: + self.show = show if opacity is not None: self.opacity = opacity if orientation_threshold is not None: @@ -114,22 +114,22 @@ def height_ratio(self, height_ratio): self._height_ratio = height_ratio @property - def hide(self): - """Get the hide of this StaticLegend. + def show(self): + """Get the show of this StaticLegend. - :return: The hide of this StaticLegend. + :return: The show of this StaticLegend. :rtype: bool """ # noqa: E501 - return self._hide + return self._show - @hide.setter - def hide(self, hide): - """Set the hide of this StaticLegend. + @show.setter + def show(self, show): + """Set the show of this StaticLegend. - :param hide: The hide of this StaticLegend. + :param show: The show of this StaticLegend. :type: bool """ # noqa: E501 - self._hide = hide + self._show = show @property def opacity(self): diff --git a/influxdb_client/domain/status_rule.py b/influxdb_client/domain/status_rule.py index ed05f142..885dd88e 100644 --- a/influxdb_client/domain/status_rule.py +++ b/influxdb_client/domain/status_rule.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/string_literal.py b/influxdb_client/domain/string_literal.py index 38a949de..7e87d39c 100644 --- a/influxdb_client/domain/string_literal.py +++ b/influxdb_client/domain/string_literal.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/subscription_manifest.py b/influxdb_client/domain/subscription_manifest.py new file mode 100644 index 00000000..bedf78dc --- /dev/null +++ b/influxdb_client/domain/subscription_manifest.py @@ -0,0 +1,158 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class SubscriptionManifest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'name': 'str', + 'mode': 'str', + 'destinations': 'list[str]' + } + + attribute_map = { + 'name': 'name', + 'mode': 'mode', + 'destinations': 'destinations' + } + + def __init__(self, name=None, mode=None, destinations=None): # noqa: E501,D401,D403 + """SubscriptionManifest - a model defined in OpenAPI.""" # noqa: E501 + self._name = None + self._mode = None + self._destinations = None + self.discriminator = None + + self.name = name + self.mode = mode + self.destinations = destinations + + @property + def name(self): + """Get the name of this SubscriptionManifest. + + :return: The name of this SubscriptionManifest. + :rtype: str + """ # noqa: E501 + return self._name + + @name.setter + def name(self, name): + """Set the name of this SubscriptionManifest. + + :param name: The name of this SubscriptionManifest. + :type: str + """ # noqa: E501 + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + self._name = name + + @property + def mode(self): + """Get the mode of this SubscriptionManifest. + + :return: The mode of this SubscriptionManifest. + :rtype: str + """ # noqa: E501 + return self._mode + + @mode.setter + def mode(self, mode): + """Set the mode of this SubscriptionManifest. + + :param mode: The mode of this SubscriptionManifest. + :type: str + """ # noqa: E501 + if mode is None: + raise ValueError("Invalid value for `mode`, must not be `None`") # noqa: E501 + self._mode = mode + + @property + def destinations(self): + """Get the destinations of this SubscriptionManifest. + + :return: The destinations of this SubscriptionManifest. + :rtype: list[str] + """ # noqa: E501 + return self._destinations + + @destinations.setter + def destinations(self, destinations): + """Set the destinations of this SubscriptionManifest. + + :param destinations: The destinations of this SubscriptionManifest. + :type: list[str] + """ # noqa: E501 + if destinations is None: + raise ValueError("Invalid value for `destinations`, must not be `None`") # noqa: E501 + self._destinations = destinations + + def to_dict(self): + """Return the model properties as a dict.""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Return the string representation of the model.""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`.""" + return self.to_str() + + def __eq__(self, other): + """Return true if both objects are equal.""" + if not isinstance(other, SubscriptionManifest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Return true if both objects are not equal.""" + return not self == other diff --git a/influxdb_client/domain/table_view_properties.py b/influxdb_client/domain/table_view_properties.py index 4125fdf4..6f449e19 100644 --- a/influxdb_client/domain/table_view_properties.py +++ b/influxdb_client/domain/table_view_properties.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/table_view_properties_table_options.py b/influxdb_client/domain/table_view_properties_table_options.py index c5cf66af..9256db55 100644 --- a/influxdb_client/domain/table_view_properties_table_options.py +++ b/influxdb_client/domain/table_view_properties_table_options.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/tag_rule.py b/influxdb_client/domain/tag_rule.py index eaf4f7e5..4a627a10 100644 --- a/influxdb_client/domain/tag_rule.py +++ b/influxdb_client/domain/tag_rule.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/task.py b/influxdb_client/domain/task.py index b4a2ccde..c79c545b 100644 --- a/influxdb_client/domain/task.py +++ b/influxdb_client/domain/task.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech @@ -37,6 +37,7 @@ class Task(object): 'org_id': 'str', 'org': 'str', 'name': 'str', + 'owner_id': 'str', 'description': 'str', 'status': 'TaskStatusType', 'labels': 'list[Label]', @@ -59,6 +60,7 @@ class Task(object): 'org_id': 'orgID', 'org': 'org', 'name': 'name', + 'owner_id': 'ownerID', 'description': 'description', 'status': 'status', 'labels': 'labels', @@ -75,13 +77,14 @@ class Task(object): 'links': 'links' } - def __init__(self, id=None, type=None, org_id=None, org=None, name=None, description=None, status=None, labels=None, authorization_id=None, flux=None, every=None, cron=None, offset=None, latest_completed=None, last_run_status=None, last_run_error=None, created_at=None, updated_at=None, links=None): # noqa: E501,D401,D403 + def __init__(self, id=None, type=None, org_id=None, org=None, name=None, owner_id=None, description=None, status=None, labels=None, authorization_id=None, flux=None, every=None, cron=None, offset=None, latest_completed=None, last_run_status=None, last_run_error=None, created_at=None, updated_at=None, links=None): # noqa: E501,D401,D403 """Task - a model defined in OpenAPI.""" # noqa: E501 self._id = None self._type = None self._org_id = None self._org = None self._name = None + self._owner_id = None self._description = None self._status = None self._labels = None @@ -105,6 +108,8 @@ def __init__(self, id=None, type=None, org_id=None, org=None, name=None, descrip if org is not None: self.org = org self.name = name + if owner_id is not None: + self.owner_id = owner_id if description is not None: self.description = description if status is not None: @@ -245,6 +250,28 @@ def name(self, name): raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name + @property + def owner_id(self): + """Get the owner_id of this Task. + + The ID of the user who owns this Task. + + :return: The owner_id of this Task. + :rtype: str + """ # noqa: E501 + return self._owner_id + + @owner_id.setter + def owner_id(self, owner_id): + """Set the owner_id of this Task. + + The ID of the user who owns this Task. + + :param owner_id: The owner_id of this Task. + :type: str + """ # noqa: E501 + self._owner_id = owner_id + @property def description(self): """Get the description of this Task. diff --git a/influxdb_client/domain/task_create_request.py b/influxdb_client/domain/task_create_request.py index 7c030670..e6a9692f 100644 --- a/influxdb_client/domain/task_create_request.py +++ b/influxdb_client/domain/task_create_request.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/task_links.py b/influxdb_client/domain/task_links.py index b5c8251f..fee0227f 100644 --- a/influxdb_client/domain/task_links.py +++ b/influxdb_client/domain/task_links.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/task_status_type.py b/influxdb_client/domain/task_status_type.py index 8c64d638..558145a6 100644 --- a/influxdb_client/domain/task_status_type.py +++ b/influxdb_client/domain/task_status_type.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/task_update_request.py b/influxdb_client/domain/task_update_request.py index e43c24f3..253c93f8 100644 --- a/influxdb_client/domain/task_update_request.py +++ b/influxdb_client/domain/task_update_request.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/tasks.py b/influxdb_client/domain/tasks.py index be4f321a..b0c6efed 100644 --- a/influxdb_client/domain/tasks.py +++ b/influxdb_client/domain/tasks.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/telegraf.py b/influxdb_client/domain/telegraf.py index 2248a917..55dc5d13 100644 --- a/influxdb_client/domain/telegraf.py +++ b/influxdb_client/domain/telegraf.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/telegraf_plugin.py b/influxdb_client/domain/telegraf_plugin.py index 8c73202b..23f35825 100644 --- a/influxdb_client/domain/telegraf_plugin.py +++ b/influxdb_client/domain/telegraf_plugin.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/telegraf_plugin_request.py b/influxdb_client/domain/telegraf_plugin_request.py new file mode 100644 index 00000000..13a44bee --- /dev/null +++ b/influxdb_client/domain/telegraf_plugin_request.py @@ -0,0 +1,224 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class TelegrafPluginRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'name': 'str', + 'description': 'str', + 'plugins': 'list[TelegrafPluginRequestPlugins]', + 'metadata': 'TelegrafRequestMetadata', + 'config': 'str', + 'org_id': 'str' + } + + attribute_map = { + 'name': 'name', + 'description': 'description', + 'plugins': 'plugins', + 'metadata': 'metadata', + 'config': 'config', + 'org_id': 'orgID' + } + + def __init__(self, name=None, description=None, plugins=None, metadata=None, config=None, org_id=None): # noqa: E501,D401,D403 + """TelegrafPluginRequest - a model defined in OpenAPI.""" # noqa: E501 + self._name = None + self._description = None + self._plugins = None + self._metadata = None + self._config = None + self._org_id = None + self.discriminator = None + + if name is not None: + self.name = name + if description is not None: + self.description = description + if plugins is not None: + self.plugins = plugins + if metadata is not None: + self.metadata = metadata + if config is not None: + self.config = config + if org_id is not None: + self.org_id = org_id + + @property + def name(self): + """Get the name of this TelegrafPluginRequest. + + :return: The name of this TelegrafPluginRequest. + :rtype: str + """ # noqa: E501 + return self._name + + @name.setter + def name(self, name): + """Set the name of this TelegrafPluginRequest. + + :param name: The name of this TelegrafPluginRequest. + :type: str + """ # noqa: E501 + self._name = name + + @property + def description(self): + """Get the description of this TelegrafPluginRequest. + + :return: The description of this TelegrafPluginRequest. + :rtype: str + """ # noqa: E501 + return self._description + + @description.setter + def description(self, description): + """Set the description of this TelegrafPluginRequest. + + :param description: The description of this TelegrafPluginRequest. + :type: str + """ # noqa: E501 + self._description = description + + @property + def plugins(self): + """Get the plugins of this TelegrafPluginRequest. + + :return: The plugins of this TelegrafPluginRequest. + :rtype: list[TelegrafPluginRequestPlugins] + """ # noqa: E501 + return self._plugins + + @plugins.setter + def plugins(self, plugins): + """Set the plugins of this TelegrafPluginRequest. + + :param plugins: The plugins of this TelegrafPluginRequest. + :type: list[TelegrafPluginRequestPlugins] + """ # noqa: E501 + self._plugins = plugins + + @property + def metadata(self): + """Get the metadata of this TelegrafPluginRequest. + + :return: The metadata of this TelegrafPluginRequest. + :rtype: TelegrafRequestMetadata + """ # noqa: E501 + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Set the metadata of this TelegrafPluginRequest. + + :param metadata: The metadata of this TelegrafPluginRequest. + :type: TelegrafRequestMetadata + """ # noqa: E501 + self._metadata = metadata + + @property + def config(self): + """Get the config of this TelegrafPluginRequest. + + :return: The config of this TelegrafPluginRequest. + :rtype: str + """ # noqa: E501 + return self._config + + @config.setter + def config(self, config): + """Set the config of this TelegrafPluginRequest. + + :param config: The config of this TelegrafPluginRequest. + :type: str + """ # noqa: E501 + self._config = config + + @property + def org_id(self): + """Get the org_id of this TelegrafPluginRequest. + + :return: The org_id of this TelegrafPluginRequest. + :rtype: str + """ # noqa: E501 + return self._org_id + + @org_id.setter + def org_id(self, org_id): + """Set the org_id of this TelegrafPluginRequest. + + :param org_id: The org_id of this TelegrafPluginRequest. + :type: str + """ # noqa: E501 + self._org_id = org_id + + def to_dict(self): + """Return the model properties as a dict.""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Return the string representation of the model.""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`.""" + return self.to_str() + + def __eq__(self, other): + """Return true if both objects are equal.""" + if not isinstance(other, TelegrafPluginRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Return true if both objects are not equal.""" + return not self == other diff --git a/influxdb_client/domain/telegraf_plugin_request_plugins.py b/influxdb_client/domain/telegraf_plugin_request_plugins.py new file mode 100644 index 00000000..5d9b7b35 --- /dev/null +++ b/influxdb_client/domain/telegraf_plugin_request_plugins.py @@ -0,0 +1,201 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class TelegrafPluginRequestPlugins(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'type': 'str', + 'name': 'str', + 'alias': 'str', + 'description': 'str', + 'config': 'dict(str, object)' + } + + attribute_map = { + 'type': 'type', + 'name': 'name', + 'alias': 'alias', + 'description': 'description', + 'config': 'config' + } + + def __init__(self, type=None, name=None, alias=None, description=None, config=None): # noqa: E501,D401,D403 + """TelegrafPluginRequestPlugins - a model defined in OpenAPI.""" # noqa: E501 + self._type = None + self._name = None + self._alias = None + self._description = None + self._config = None + self.discriminator = None + + if type is not None: + self.type = type + if name is not None: + self.name = name + if alias is not None: + self.alias = alias + if description is not None: + self.description = description + if config is not None: + self.config = config + + @property + def type(self): + """Get the type of this TelegrafPluginRequestPlugins. + + :return: The type of this TelegrafPluginRequestPlugins. + :rtype: str + """ # noqa: E501 + return self._type + + @type.setter + def type(self, type): + """Set the type of this TelegrafPluginRequestPlugins. + + :param type: The type of this TelegrafPluginRequestPlugins. + :type: str + """ # noqa: E501 + self._type = type + + @property + def name(self): + """Get the name of this TelegrafPluginRequestPlugins. + + :return: The name of this TelegrafPluginRequestPlugins. + :rtype: str + """ # noqa: E501 + return self._name + + @name.setter + def name(self, name): + """Set the name of this TelegrafPluginRequestPlugins. + + :param name: The name of this TelegrafPluginRequestPlugins. + :type: str + """ # noqa: E501 + self._name = name + + @property + def alias(self): + """Get the alias of this TelegrafPluginRequestPlugins. + + :return: The alias of this TelegrafPluginRequestPlugins. + :rtype: str + """ # noqa: E501 + return self._alias + + @alias.setter + def alias(self, alias): + """Set the alias of this TelegrafPluginRequestPlugins. + + :param alias: The alias of this TelegrafPluginRequestPlugins. + :type: str + """ # noqa: E501 + self._alias = alias + + @property + def description(self): + """Get the description of this TelegrafPluginRequestPlugins. + + :return: The description of this TelegrafPluginRequestPlugins. + :rtype: str + """ # noqa: E501 + return self._description + + @description.setter + def description(self, description): + """Set the description of this TelegrafPluginRequestPlugins. + + :param description: The description of this TelegrafPluginRequestPlugins. + :type: str + """ # noqa: E501 + self._description = description + + @property + def config(self): + """Get the config of this TelegrafPluginRequestPlugins. + + :return: The config of this TelegrafPluginRequestPlugins. + :rtype: dict(str, object) + """ # noqa: E501 + return self._config + + @config.setter + def config(self, config): + """Set the config of this TelegrafPluginRequestPlugins. + + :param config: The config of this TelegrafPluginRequestPlugins. + :type: dict(str, object) + """ # noqa: E501 + self._config = config + + def to_dict(self): + """Return the model properties as a dict.""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Return the string representation of the model.""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`.""" + return self.to_str() + + def __eq__(self, other): + """Return true if both objects are equal.""" + if not isinstance(other, TelegrafPluginRequestPlugins): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Return true if both objects are not equal.""" + return not self == other diff --git a/influxdb_client/domain/telegraf_plugins.py b/influxdb_client/domain/telegraf_plugins.py index 6beb4fa4..07478132 100644 --- a/influxdb_client/domain/telegraf_plugins.py +++ b/influxdb_client/domain/telegraf_plugins.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/telegraf_request.py b/influxdb_client/domain/telegraf_request.py index 256d9db9..2e14f41a 100644 --- a/influxdb_client/domain/telegraf_request.py +++ b/influxdb_client/domain/telegraf_request.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/telegraf_request_metadata.py b/influxdb_client/domain/telegraf_request_metadata.py index 06fa4012..43ed4245 100644 --- a/influxdb_client/domain/telegraf_request_metadata.py +++ b/influxdb_client/domain/telegraf_request_metadata.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/telegrafs.py b/influxdb_client/domain/telegrafs.py index 1856ad16..df41034d 100644 --- a/influxdb_client/domain/telegrafs.py +++ b/influxdb_client/domain/telegrafs.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/telegram_notification_endpoint.py b/influxdb_client/domain/telegram_notification_endpoint.py index 8b6231c1..54508533 100644 --- a/influxdb_client/domain/telegram_notification_endpoint.py +++ b/influxdb_client/domain/telegram_notification_endpoint.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/telegram_notification_rule.py b/influxdb_client/domain/telegram_notification_rule.py index c641980e..649149b7 100644 --- a/influxdb_client/domain/telegram_notification_rule.py +++ b/influxdb_client/domain/telegram_notification_rule.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/telegram_notification_rule_base.py b/influxdb_client/domain/telegram_notification_rule_base.py index 34871f2b..0c5b496a 100644 --- a/influxdb_client/domain/telegram_notification_rule_base.py +++ b/influxdb_client/domain/telegram_notification_rule_base.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/template_apply.py b/influxdb_client/domain/template_apply.py new file mode 100644 index 00000000..334ff440 --- /dev/null +++ b/influxdb_client/domain/template_apply.py @@ -0,0 +1,293 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class TemplateApply(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dry_run': 'bool', + 'org_id': 'str', + 'stack_id': 'str', + 'template': 'TemplateApplyTemplate', + 'templates': 'list[TemplateApplyTemplate]', + 'env_refs': 'dict(str, object)', + 'secrets': 'dict(str, str)', + 'remotes': 'list[TemplateApplyRemotes]', + 'actions': 'list[object]' + } + + attribute_map = { + 'dry_run': 'dryRun', + 'org_id': 'orgID', + 'stack_id': 'stackID', + 'template': 'template', + 'templates': 'templates', + 'env_refs': 'envRefs', + 'secrets': 'secrets', + 'remotes': 'remotes', + 'actions': 'actions' + } + + def __init__(self, dry_run=None, org_id=None, stack_id=None, template=None, templates=None, env_refs=None, secrets=None, remotes=None, actions=None): # noqa: E501,D401,D403 + """TemplateApply - a model defined in OpenAPI.""" # noqa: E501 + self._dry_run = None + self._org_id = None + self._stack_id = None + self._template = None + self._templates = None + self._env_refs = None + self._secrets = None + self._remotes = None + self._actions = None + self.discriminator = None + + if dry_run is not None: + self.dry_run = dry_run + if org_id is not None: + self.org_id = org_id + if stack_id is not None: + self.stack_id = stack_id + if template is not None: + self.template = template + if templates is not None: + self.templates = templates + if env_refs is not None: + self.env_refs = env_refs + if secrets is not None: + self.secrets = secrets + if remotes is not None: + self.remotes = remotes + if actions is not None: + self.actions = actions + + @property + def dry_run(self): + """Get the dry_run of this TemplateApply. + + :return: The dry_run of this TemplateApply. + :rtype: bool + """ # noqa: E501 + return self._dry_run + + @dry_run.setter + def dry_run(self, dry_run): + """Set the dry_run of this TemplateApply. + + :param dry_run: The dry_run of this TemplateApply. + :type: bool + """ # noqa: E501 + self._dry_run = dry_run + + @property + def org_id(self): + """Get the org_id of this TemplateApply. + + :return: The org_id of this TemplateApply. + :rtype: str + """ # noqa: E501 + return self._org_id + + @org_id.setter + def org_id(self, org_id): + """Set the org_id of this TemplateApply. + + :param org_id: The org_id of this TemplateApply. + :type: str + """ # noqa: E501 + self._org_id = org_id + + @property + def stack_id(self): + """Get the stack_id of this TemplateApply. + + :return: The stack_id of this TemplateApply. + :rtype: str + """ # noqa: E501 + return self._stack_id + + @stack_id.setter + def stack_id(self, stack_id): + """Set the stack_id of this TemplateApply. + + :param stack_id: The stack_id of this TemplateApply. + :type: str + """ # noqa: E501 + self._stack_id = stack_id + + @property + def template(self): + """Get the template of this TemplateApply. + + :return: The template of this TemplateApply. + :rtype: TemplateApplyTemplate + """ # noqa: E501 + return self._template + + @template.setter + def template(self, template): + """Set the template of this TemplateApply. + + :param template: The template of this TemplateApply. + :type: TemplateApplyTemplate + """ # noqa: E501 + self._template = template + + @property + def templates(self): + """Get the templates of this TemplateApply. + + :return: The templates of this TemplateApply. + :rtype: list[TemplateApplyTemplate] + """ # noqa: E501 + return self._templates + + @templates.setter + def templates(self, templates): + """Set the templates of this TemplateApply. + + :param templates: The templates of this TemplateApply. + :type: list[TemplateApplyTemplate] + """ # noqa: E501 + self._templates = templates + + @property + def env_refs(self): + """Get the env_refs of this TemplateApply. + + :return: The env_refs of this TemplateApply. + :rtype: dict(str, object) + """ # noqa: E501 + return self._env_refs + + @env_refs.setter + def env_refs(self, env_refs): + """Set the env_refs of this TemplateApply. + + :param env_refs: The env_refs of this TemplateApply. + :type: dict(str, object) + """ # noqa: E501 + self._env_refs = env_refs + + @property + def secrets(self): + """Get the secrets of this TemplateApply. + + :return: The secrets of this TemplateApply. + :rtype: dict(str, str) + """ # noqa: E501 + return self._secrets + + @secrets.setter + def secrets(self, secrets): + """Set the secrets of this TemplateApply. + + :param secrets: The secrets of this TemplateApply. + :type: dict(str, str) + """ # noqa: E501 + self._secrets = secrets + + @property + def remotes(self): + """Get the remotes of this TemplateApply. + + :return: The remotes of this TemplateApply. + :rtype: list[TemplateApplyRemotes] + """ # noqa: E501 + return self._remotes + + @remotes.setter + def remotes(self, remotes): + """Set the remotes of this TemplateApply. + + :param remotes: The remotes of this TemplateApply. + :type: list[TemplateApplyRemotes] + """ # noqa: E501 + self._remotes = remotes + + @property + def actions(self): + """Get the actions of this TemplateApply. + + :return: The actions of this TemplateApply. + :rtype: list[object] + """ # noqa: E501 + return self._actions + + @actions.setter + def actions(self, actions): + """Set the actions of this TemplateApply. + + :param actions: The actions of this TemplateApply. + :type: list[object] + """ # noqa: E501 + self._actions = actions + + def to_dict(self): + """Return the model properties as a dict.""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Return the string representation of the model.""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`.""" + return self.to_str() + + def __eq__(self, other): + """Return true if both objects are equal.""" + if not isinstance(other, TemplateApply): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Return true if both objects are not equal.""" + return not self == other diff --git a/influxdb_client/domain/template_apply_remotes.py b/influxdb_client/domain/template_apply_remotes.py new file mode 100644 index 00000000..000aec72 --- /dev/null +++ b/influxdb_client/domain/template_apply_remotes.py @@ -0,0 +1,133 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class TemplateApplyRemotes(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'url': 'str', + 'content_type': 'str' + } + + attribute_map = { + 'url': 'url', + 'content_type': 'contentType' + } + + def __init__(self, url=None, content_type=None): # noqa: E501,D401,D403 + """TemplateApplyRemotes - a model defined in OpenAPI.""" # noqa: E501 + self._url = None + self._content_type = None + self.discriminator = None + + self.url = url + if content_type is not None: + self.content_type = content_type + + @property + def url(self): + """Get the url of this TemplateApplyRemotes. + + :return: The url of this TemplateApplyRemotes. + :rtype: str + """ # noqa: E501 + return self._url + + @url.setter + def url(self, url): + """Set the url of this TemplateApplyRemotes. + + :param url: The url of this TemplateApplyRemotes. + :type: str + """ # noqa: E501 + if url is None: + raise ValueError("Invalid value for `url`, must not be `None`") # noqa: E501 + self._url = url + + @property + def content_type(self): + """Get the content_type of this TemplateApplyRemotes. + + :return: The content_type of this TemplateApplyRemotes. + :rtype: str + """ # noqa: E501 + return self._content_type + + @content_type.setter + def content_type(self, content_type): + """Set the content_type of this TemplateApplyRemotes. + + :param content_type: The content_type of this TemplateApplyRemotes. + :type: str + """ # noqa: E501 + self._content_type = content_type + + def to_dict(self): + """Return the model properties as a dict.""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Return the string representation of the model.""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`.""" + return self.to_str() + + def __eq__(self, other): + """Return true if both objects are equal.""" + if not isinstance(other, TemplateApplyRemotes): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Return true if both objects are not equal.""" + return not self == other diff --git a/influxdb_client/domain/template_apply_template.py b/influxdb_client/domain/template_apply_template.py new file mode 100644 index 00000000..23dd5091 --- /dev/null +++ b/influxdb_client/domain/template_apply_template.py @@ -0,0 +1,155 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class TemplateApplyTemplate(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'content_type': 'str', + 'sources': 'list[str]', + 'contents': 'list[object]' + } + + attribute_map = { + 'content_type': 'contentType', + 'sources': 'sources', + 'contents': 'contents' + } + + def __init__(self, content_type=None, sources=None, contents=None): # noqa: E501,D401,D403 + """TemplateApplyTemplate - a model defined in OpenAPI.""" # noqa: E501 + self._content_type = None + self._sources = None + self._contents = None + self.discriminator = None + + if content_type is not None: + self.content_type = content_type + if sources is not None: + self.sources = sources + if contents is not None: + self.contents = contents + + @property + def content_type(self): + """Get the content_type of this TemplateApplyTemplate. + + :return: The content_type of this TemplateApplyTemplate. + :rtype: str + """ # noqa: E501 + return self._content_type + + @content_type.setter + def content_type(self, content_type): + """Set the content_type of this TemplateApplyTemplate. + + :param content_type: The content_type of this TemplateApplyTemplate. + :type: str + """ # noqa: E501 + self._content_type = content_type + + @property + def sources(self): + """Get the sources of this TemplateApplyTemplate. + + :return: The sources of this TemplateApplyTemplate. + :rtype: list[str] + """ # noqa: E501 + return self._sources + + @sources.setter + def sources(self, sources): + """Set the sources of this TemplateApplyTemplate. + + :param sources: The sources of this TemplateApplyTemplate. + :type: list[str] + """ # noqa: E501 + self._sources = sources + + @property + def contents(self): + """Get the contents of this TemplateApplyTemplate. + + :return: The contents of this TemplateApplyTemplate. + :rtype: list[object] + """ # noqa: E501 + return self._contents + + @contents.setter + def contents(self, contents): + """Set the contents of this TemplateApplyTemplate. + + :param contents: The contents of this TemplateApplyTemplate. + :type: list[object] + """ # noqa: E501 + self._contents = contents + + def to_dict(self): + """Return the model properties as a dict.""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Return the string representation of the model.""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`.""" + return self.to_str() + + def __eq__(self, other): + """Return true if both objects are equal.""" + if not isinstance(other, TemplateApplyTemplate): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Return true if both objects are not equal.""" + return not self == other diff --git a/influxdb_client/domain/template_chart.py b/influxdb_client/domain/template_chart.py new file mode 100644 index 00000000..ee6e3466 --- /dev/null +++ b/influxdb_client/domain/template_chart.py @@ -0,0 +1,201 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class TemplateChart(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'x_pos': 'int', + 'y_pos': 'int', + 'height': 'int', + 'width': 'int', + 'properties': 'ViewProperties' + } + + attribute_map = { + 'x_pos': 'xPos', + 'y_pos': 'yPos', + 'height': 'height', + 'width': 'width', + 'properties': 'properties' + } + + def __init__(self, x_pos=None, y_pos=None, height=None, width=None, properties=None): # noqa: E501,D401,D403 + """TemplateChart - a model defined in OpenAPI.""" # noqa: E501 + self._x_pos = None + self._y_pos = None + self._height = None + self._width = None + self._properties = None + self.discriminator = None + + if x_pos is not None: + self.x_pos = x_pos + if y_pos is not None: + self.y_pos = y_pos + if height is not None: + self.height = height + if width is not None: + self.width = width + if properties is not None: + self.properties = properties + + @property + def x_pos(self): + """Get the x_pos of this TemplateChart. + + :return: The x_pos of this TemplateChart. + :rtype: int + """ # noqa: E501 + return self._x_pos + + @x_pos.setter + def x_pos(self, x_pos): + """Set the x_pos of this TemplateChart. + + :param x_pos: The x_pos of this TemplateChart. + :type: int + """ # noqa: E501 + self._x_pos = x_pos + + @property + def y_pos(self): + """Get the y_pos of this TemplateChart. + + :return: The y_pos of this TemplateChart. + :rtype: int + """ # noqa: E501 + return self._y_pos + + @y_pos.setter + def y_pos(self, y_pos): + """Set the y_pos of this TemplateChart. + + :param y_pos: The y_pos of this TemplateChart. + :type: int + """ # noqa: E501 + self._y_pos = y_pos + + @property + def height(self): + """Get the height of this TemplateChart. + + :return: The height of this TemplateChart. + :rtype: int + """ # noqa: E501 + return self._height + + @height.setter + def height(self, height): + """Set the height of this TemplateChart. + + :param height: The height of this TemplateChart. + :type: int + """ # noqa: E501 + self._height = height + + @property + def width(self): + """Get the width of this TemplateChart. + + :return: The width of this TemplateChart. + :rtype: int + """ # noqa: E501 + return self._width + + @width.setter + def width(self, width): + """Set the width of this TemplateChart. + + :param width: The width of this TemplateChart. + :type: int + """ # noqa: E501 + self._width = width + + @property + def properties(self): + """Get the properties of this TemplateChart. + + :return: The properties of this TemplateChart. + :rtype: ViewProperties + """ # noqa: E501 + return self._properties + + @properties.setter + def properties(self, properties): + """Set the properties of this TemplateChart. + + :param properties: The properties of this TemplateChart. + :type: ViewProperties + """ # noqa: E501 + self._properties = properties + + def to_dict(self): + """Return the model properties as a dict.""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Return the string representation of the model.""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`.""" + return self.to_str() + + def __eq__(self, other): + """Return true if both objects are equal.""" + if not isinstance(other, TemplateChart): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Return true if both objects are not equal.""" + return not self == other diff --git a/influxdb_client/domain/template_export_by_id.py b/influxdb_client/domain/template_export_by_id.py new file mode 100644 index 00000000..4309e47c --- /dev/null +++ b/influxdb_client/domain/template_export_by_id.py @@ -0,0 +1,155 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class TemplateExportByID(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'stack_id': 'str', + 'org_ids': 'list[TemplateExportByIDOrgIDs]', + 'resources': 'list[TemplateExportByIDResources]' + } + + attribute_map = { + 'stack_id': 'stackID', + 'org_ids': 'orgIDs', + 'resources': 'resources' + } + + def __init__(self, stack_id=None, org_ids=None, resources=None): # noqa: E501,D401,D403 + """TemplateExportByID - a model defined in OpenAPI.""" # noqa: E501 + self._stack_id = None + self._org_ids = None + self._resources = None + self.discriminator = None + + if stack_id is not None: + self.stack_id = stack_id + if org_ids is not None: + self.org_ids = org_ids + if resources is not None: + self.resources = resources + + @property + def stack_id(self): + """Get the stack_id of this TemplateExportByID. + + :return: The stack_id of this TemplateExportByID. + :rtype: str + """ # noqa: E501 + return self._stack_id + + @stack_id.setter + def stack_id(self, stack_id): + """Set the stack_id of this TemplateExportByID. + + :param stack_id: The stack_id of this TemplateExportByID. + :type: str + """ # noqa: E501 + self._stack_id = stack_id + + @property + def org_ids(self): + """Get the org_ids of this TemplateExportByID. + + :return: The org_ids of this TemplateExportByID. + :rtype: list[TemplateExportByIDOrgIDs] + """ # noqa: E501 + return self._org_ids + + @org_ids.setter + def org_ids(self, org_ids): + """Set the org_ids of this TemplateExportByID. + + :param org_ids: The org_ids of this TemplateExportByID. + :type: list[TemplateExportByIDOrgIDs] + """ # noqa: E501 + self._org_ids = org_ids + + @property + def resources(self): + """Get the resources of this TemplateExportByID. + + :return: The resources of this TemplateExportByID. + :rtype: list[TemplateExportByIDResources] + """ # noqa: E501 + return self._resources + + @resources.setter + def resources(self, resources): + """Set the resources of this TemplateExportByID. + + :param resources: The resources of this TemplateExportByID. + :type: list[TemplateExportByIDResources] + """ # noqa: E501 + self._resources = resources + + def to_dict(self): + """Return the model properties as a dict.""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Return the string representation of the model.""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`.""" + return self.to_str() + + def __eq__(self, other): + """Return true if both objects are equal.""" + if not isinstance(other, TemplateExportByID): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Return true if both objects are not equal.""" + return not self == other diff --git a/influxdb_client/domain/template_export_by_id_org_ids.py b/influxdb_client/domain/template_export_by_id_org_ids.py new file mode 100644 index 00000000..9e1a35c4 --- /dev/null +++ b/influxdb_client/domain/template_export_by_id_org_ids.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class TemplateExportByIDOrgIDs(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'org_id': 'str', + 'resource_filters': 'TemplateExportByIDResourceFilters' + } + + attribute_map = { + 'org_id': 'orgID', + 'resource_filters': 'resourceFilters' + } + + def __init__(self, org_id=None, resource_filters=None): # noqa: E501,D401,D403 + """TemplateExportByIDOrgIDs - a model defined in OpenAPI.""" # noqa: E501 + self._org_id = None + self._resource_filters = None + self.discriminator = None + + if org_id is not None: + self.org_id = org_id + if resource_filters is not None: + self.resource_filters = resource_filters + + @property + def org_id(self): + """Get the org_id of this TemplateExportByIDOrgIDs. + + :return: The org_id of this TemplateExportByIDOrgIDs. + :rtype: str + """ # noqa: E501 + return self._org_id + + @org_id.setter + def org_id(self, org_id): + """Set the org_id of this TemplateExportByIDOrgIDs. + + :param org_id: The org_id of this TemplateExportByIDOrgIDs. + :type: str + """ # noqa: E501 + self._org_id = org_id + + @property + def resource_filters(self): + """Get the resource_filters of this TemplateExportByIDOrgIDs. + + :return: The resource_filters of this TemplateExportByIDOrgIDs. + :rtype: TemplateExportByIDResourceFilters + """ # noqa: E501 + return self._resource_filters + + @resource_filters.setter + def resource_filters(self, resource_filters): + """Set the resource_filters of this TemplateExportByIDOrgIDs. + + :param resource_filters: The resource_filters of this TemplateExportByIDOrgIDs. + :type: TemplateExportByIDResourceFilters + """ # noqa: E501 + self._resource_filters = resource_filters + + def to_dict(self): + """Return the model properties as a dict.""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Return the string representation of the model.""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`.""" + return self.to_str() + + def __eq__(self, other): + """Return true if both objects are equal.""" + if not isinstance(other, TemplateExportByIDOrgIDs): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Return true if both objects are not equal.""" + return not self == other diff --git a/influxdb_client/domain/template_export_by_id_resource_filters.py b/influxdb_client/domain/template_export_by_id_resource_filters.py new file mode 100644 index 00000000..1d5c4f01 --- /dev/null +++ b/influxdb_client/domain/template_export_by_id_resource_filters.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class TemplateExportByIDResourceFilters(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'by_label': 'list[str]', + 'by_resource_kind': 'list[TemplateKind]' + } + + attribute_map = { + 'by_label': 'byLabel', + 'by_resource_kind': 'byResourceKind' + } + + def __init__(self, by_label=None, by_resource_kind=None): # noqa: E501,D401,D403 + """TemplateExportByIDResourceFilters - a model defined in OpenAPI.""" # noqa: E501 + self._by_label = None + self._by_resource_kind = None + self.discriminator = None + + if by_label is not None: + self.by_label = by_label + if by_resource_kind is not None: + self.by_resource_kind = by_resource_kind + + @property + def by_label(self): + """Get the by_label of this TemplateExportByIDResourceFilters. + + :return: The by_label of this TemplateExportByIDResourceFilters. + :rtype: list[str] + """ # noqa: E501 + return self._by_label + + @by_label.setter + def by_label(self, by_label): + """Set the by_label of this TemplateExportByIDResourceFilters. + + :param by_label: The by_label of this TemplateExportByIDResourceFilters. + :type: list[str] + """ # noqa: E501 + self._by_label = by_label + + @property + def by_resource_kind(self): + """Get the by_resource_kind of this TemplateExportByIDResourceFilters. + + :return: The by_resource_kind of this TemplateExportByIDResourceFilters. + :rtype: list[TemplateKind] + """ # noqa: E501 + return self._by_resource_kind + + @by_resource_kind.setter + def by_resource_kind(self, by_resource_kind): + """Set the by_resource_kind of this TemplateExportByIDResourceFilters. + + :param by_resource_kind: The by_resource_kind of this TemplateExportByIDResourceFilters. + :type: list[TemplateKind] + """ # noqa: E501 + self._by_resource_kind = by_resource_kind + + def to_dict(self): + """Return the model properties as a dict.""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Return the string representation of the model.""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`.""" + return self.to_str() + + def __eq__(self, other): + """Return true if both objects are equal.""" + if not isinstance(other, TemplateExportByIDResourceFilters): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Return true if both objects are not equal.""" + return not self == other diff --git a/influxdb_client/domain/template_export_by_id_resources.py b/influxdb_client/domain/template_export_by_id_resources.py new file mode 100644 index 00000000..c53760fd --- /dev/null +++ b/influxdb_client/domain/template_export_by_id_resources.py @@ -0,0 +1,161 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class TemplateExportByIDResources(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'id': 'str', + 'kind': 'TemplateKind', + 'name': 'str' + } + + attribute_map = { + 'id': 'id', + 'kind': 'kind', + 'name': 'name' + } + + def __init__(self, id=None, kind=None, name=None): # noqa: E501,D401,D403 + """TemplateExportByIDResources - a model defined in OpenAPI.""" # noqa: E501 + self._id = None + self._kind = None + self._name = None + self.discriminator = None + + self.id = id + self.kind = kind + if name is not None: + self.name = name + + @property + def id(self): + """Get the id of this TemplateExportByIDResources. + + :return: The id of this TemplateExportByIDResources. + :rtype: str + """ # noqa: E501 + return self._id + + @id.setter + def id(self, id): + """Set the id of this TemplateExportByIDResources. + + :param id: The id of this TemplateExportByIDResources. + :type: str + """ # noqa: E501 + if id is None: + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + self._id = id + + @property + def kind(self): + """Get the kind of this TemplateExportByIDResources. + + :return: The kind of this TemplateExportByIDResources. + :rtype: TemplateKind + """ # noqa: E501 + return self._kind + + @kind.setter + def kind(self, kind): + """Set the kind of this TemplateExportByIDResources. + + :param kind: The kind of this TemplateExportByIDResources. + :type: TemplateKind + """ # noqa: E501 + if kind is None: + raise ValueError("Invalid value for `kind`, must not be `None`") # noqa: E501 + self._kind = kind + + @property + def name(self): + """Get the name of this TemplateExportByIDResources. + + if defined with id, name is used for resource exported by id. if defined independently, resources strictly matching name are exported + + :return: The name of this TemplateExportByIDResources. + :rtype: str + """ # noqa: E501 + return self._name + + @name.setter + def name(self, name): + """Set the name of this TemplateExportByIDResources. + + if defined with id, name is used for resource exported by id. if defined independently, resources strictly matching name are exported + + :param name: The name of this TemplateExportByIDResources. + :type: str + """ # noqa: E501 + self._name = name + + def to_dict(self): + """Return the model properties as a dict.""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Return the string representation of the model.""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`.""" + return self.to_str() + + def __eq__(self, other): + """Return true if both objects are equal.""" + if not isinstance(other, TemplateExportByIDResources): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Return true if both objects are not equal.""" + return not self == other diff --git a/influxdb_client/domain/template_export_by_name.py b/influxdb_client/domain/template_export_by_name.py new file mode 100644 index 00000000..740c796a --- /dev/null +++ b/influxdb_client/domain/template_export_by_name.py @@ -0,0 +1,155 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class TemplateExportByName(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'stack_id': 'str', + 'org_ids': 'list[TemplateExportByIDOrgIDs]', + 'resources': 'list[TemplateExportByNameResources]' + } + + attribute_map = { + 'stack_id': 'stackID', + 'org_ids': 'orgIDs', + 'resources': 'resources' + } + + def __init__(self, stack_id=None, org_ids=None, resources=None): # noqa: E501,D401,D403 + """TemplateExportByName - a model defined in OpenAPI.""" # noqa: E501 + self._stack_id = None + self._org_ids = None + self._resources = None + self.discriminator = None + + if stack_id is not None: + self.stack_id = stack_id + if org_ids is not None: + self.org_ids = org_ids + if resources is not None: + self.resources = resources + + @property + def stack_id(self): + """Get the stack_id of this TemplateExportByName. + + :return: The stack_id of this TemplateExportByName. + :rtype: str + """ # noqa: E501 + return self._stack_id + + @stack_id.setter + def stack_id(self, stack_id): + """Set the stack_id of this TemplateExportByName. + + :param stack_id: The stack_id of this TemplateExportByName. + :type: str + """ # noqa: E501 + self._stack_id = stack_id + + @property + def org_ids(self): + """Get the org_ids of this TemplateExportByName. + + :return: The org_ids of this TemplateExportByName. + :rtype: list[TemplateExportByIDOrgIDs] + """ # noqa: E501 + return self._org_ids + + @org_ids.setter + def org_ids(self, org_ids): + """Set the org_ids of this TemplateExportByName. + + :param org_ids: The org_ids of this TemplateExportByName. + :type: list[TemplateExportByIDOrgIDs] + """ # noqa: E501 + self._org_ids = org_ids + + @property + def resources(self): + """Get the resources of this TemplateExportByName. + + :return: The resources of this TemplateExportByName. + :rtype: list[TemplateExportByNameResources] + """ # noqa: E501 + return self._resources + + @resources.setter + def resources(self, resources): + """Set the resources of this TemplateExportByName. + + :param resources: The resources of this TemplateExportByName. + :type: list[TemplateExportByNameResources] + """ # noqa: E501 + self._resources = resources + + def to_dict(self): + """Return the model properties as a dict.""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Return the string representation of the model.""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`.""" + return self.to_str() + + def __eq__(self, other): + """Return true if both objects are equal.""" + if not isinstance(other, TemplateExportByName): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Return true if both objects are not equal.""" + return not self == other diff --git a/influxdb_client/domain/template_export_by_name_resources.py b/influxdb_client/domain/template_export_by_name_resources.py new file mode 100644 index 00000000..058fafbb --- /dev/null +++ b/influxdb_client/domain/template_export_by_name_resources.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class TemplateExportByNameResources(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'kind': 'TemplateKind', + 'name': 'str' + } + + attribute_map = { + 'kind': 'kind', + 'name': 'name' + } + + def __init__(self, kind=None, name=None): # noqa: E501,D401,D403 + """TemplateExportByNameResources - a model defined in OpenAPI.""" # noqa: E501 + self._kind = None + self._name = None + self.discriminator = None + + self.kind = kind + self.name = name + + @property + def kind(self): + """Get the kind of this TemplateExportByNameResources. + + :return: The kind of this TemplateExportByNameResources. + :rtype: TemplateKind + """ # noqa: E501 + return self._kind + + @kind.setter + def kind(self, kind): + """Set the kind of this TemplateExportByNameResources. + + :param kind: The kind of this TemplateExportByNameResources. + :type: TemplateKind + """ # noqa: E501 + if kind is None: + raise ValueError("Invalid value for `kind`, must not be `None`") # noqa: E501 + self._kind = kind + + @property + def name(self): + """Get the name of this TemplateExportByNameResources. + + :return: The name of this TemplateExportByNameResources. + :rtype: str + """ # noqa: E501 + return self._name + + @name.setter + def name(self, name): + """Set the name of this TemplateExportByNameResources. + + :param name: The name of this TemplateExportByNameResources. + :type: str + """ # noqa: E501 + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + self._name = name + + def to_dict(self): + """Return the model properties as a dict.""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Return the string representation of the model.""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`.""" + return self.to_str() + + def __eq__(self, other): + """Return true if both objects are equal.""" + if not isinstance(other, TemplateExportByNameResources): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Return true if both objects are not equal.""" + return not self == other diff --git a/influxdb_client/domain/template_kind.py b/influxdb_client/domain/template_kind.py new file mode 100644 index 00000000..2f9d8b72 --- /dev/null +++ b/influxdb_client/domain/template_kind.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class TemplateKind(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + BUCKET = "Bucket" + CHECK = "Check" + CHECKDEADMAN = "CheckDeadman" + CHECKTHRESHOLD = "CheckThreshold" + DASHBOARD = "Dashboard" + LABEL = "Label" + NOTIFICATIONENDPOINT = "NotificationEndpoint" + NOTIFICATIONENDPOINTHTTP = "NotificationEndpointHTTP" + NOTIFICATIONENDPOINTPAGERDUTY = "NotificationEndpointPagerDuty" + NOTIFICATIONENDPOINTSLACK = "NotificationEndpointSlack" + NOTIFICATIONRULE = "NotificationRule" + TASK = "Task" + TELEGRAF = "Telegraf" + VARIABLE = "Variable" + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501,D401,D403 + """TemplateKind - a model defined in OpenAPI.""" # noqa: E501 self.discriminator = None + + def to_dict(self): + """Return the model properties as a dict.""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Return the string representation of the model.""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`.""" + return self.to_str() + + def __eq__(self, other): + """Return true if both objects are equal.""" + if not isinstance(other, TemplateKind): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Return true if both objects are not equal.""" + return not self == other diff --git a/influxdb_client/domain/template_summary.py b/influxdb_client/domain/template_summary.py new file mode 100644 index 00000000..fd328152 --- /dev/null +++ b/influxdb_client/domain/template_summary.py @@ -0,0 +1,201 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class TemplateSummary(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'sources': 'list[str]', + 'stack_id': 'str', + 'summary': 'TemplateSummarySummary', + 'diff': 'TemplateSummaryDiff', + 'errors': 'list[TemplateSummaryErrors]' + } + + attribute_map = { + 'sources': 'sources', + 'stack_id': 'stackID', + 'summary': 'summary', + 'diff': 'diff', + 'errors': 'errors' + } + + def __init__(self, sources=None, stack_id=None, summary=None, diff=None, errors=None): # noqa: E501,D401,D403 + """TemplateSummary - a model defined in OpenAPI.""" # noqa: E501 + self._sources = None + self._stack_id = None + self._summary = None + self._diff = None + self._errors = None + self.discriminator = None + + if sources is not None: + self.sources = sources + if stack_id is not None: + self.stack_id = stack_id + if summary is not None: + self.summary = summary + if diff is not None: + self.diff = diff + if errors is not None: + self.errors = errors + + @property + def sources(self): + """Get the sources of this TemplateSummary. + + :return: The sources of this TemplateSummary. + :rtype: list[str] + """ # noqa: E501 + return self._sources + + @sources.setter + def sources(self, sources): + """Set the sources of this TemplateSummary. + + :param sources: The sources of this TemplateSummary. + :type: list[str] + """ # noqa: E501 + self._sources = sources + + @property + def stack_id(self): + """Get the stack_id of this TemplateSummary. + + :return: The stack_id of this TemplateSummary. + :rtype: str + """ # noqa: E501 + return self._stack_id + + @stack_id.setter + def stack_id(self, stack_id): + """Set the stack_id of this TemplateSummary. + + :param stack_id: The stack_id of this TemplateSummary. + :type: str + """ # noqa: E501 + self._stack_id = stack_id + + @property + def summary(self): + """Get the summary of this TemplateSummary. + + :return: The summary of this TemplateSummary. + :rtype: TemplateSummarySummary + """ # noqa: E501 + return self._summary + + @summary.setter + def summary(self, summary): + """Set the summary of this TemplateSummary. + + :param summary: The summary of this TemplateSummary. + :type: TemplateSummarySummary + """ # noqa: E501 + self._summary = summary + + @property + def diff(self): + """Get the diff of this TemplateSummary. + + :return: The diff of this TemplateSummary. + :rtype: TemplateSummaryDiff + """ # noqa: E501 + return self._diff + + @diff.setter + def diff(self, diff): + """Set the diff of this TemplateSummary. + + :param diff: The diff of this TemplateSummary. + :type: TemplateSummaryDiff + """ # noqa: E501 + self._diff = diff + + @property + def errors(self): + """Get the errors of this TemplateSummary. + + :return: The errors of this TemplateSummary. + :rtype: list[TemplateSummaryErrors] + """ # noqa: E501 + return self._errors + + @errors.setter + def errors(self, errors): + """Set the errors of this TemplateSummary. + + :param errors: The errors of this TemplateSummary. + :type: list[TemplateSummaryErrors] + """ # noqa: E501 + self._errors = errors + + def to_dict(self): + """Return the model properties as a dict.""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Return the string representation of the model.""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`.""" + return self.to_str() + + def __eq__(self, other): + """Return true if both objects are equal.""" + if not isinstance(other, TemplateSummary): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Return true if both objects are not equal.""" + return not self == other diff --git a/influxdb_client/domain/template_summary_diff.py b/influxdb_client/domain/template_summary_diff.py new file mode 100644 index 00000000..97207f3b --- /dev/null +++ b/influxdb_client/domain/template_summary_diff.py @@ -0,0 +1,316 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class TemplateSummaryDiff(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'buckets': 'list[TemplateSummaryDiffBuckets]', + 'checks': 'list[TemplateSummaryDiffChecks]', + 'dashboards': 'list[TemplateSummaryDiffDashboards]', + 'labels': 'list[TemplateSummaryDiffLabels]', + 'label_mappings': 'list[TemplateSummaryDiffLabelMappings]', + 'notification_endpoints': 'list[TemplateSummaryDiffNotificationEndpoints]', + 'notification_rules': 'list[TemplateSummaryDiffNotificationRules]', + 'tasks': 'list[TemplateSummaryDiffTasks]', + 'telegraf_configs': 'list[TemplateSummaryDiffTelegrafConfigs]', + 'variables': 'list[TemplateSummaryDiffVariables]' + } + + attribute_map = { + 'buckets': 'buckets', + 'checks': 'checks', + 'dashboards': 'dashboards', + 'labels': 'labels', + 'label_mappings': 'labelMappings', + 'notification_endpoints': 'notificationEndpoints', + 'notification_rules': 'notificationRules', + 'tasks': 'tasks', + 'telegraf_configs': 'telegrafConfigs', + 'variables': 'variables' + } + + def __init__(self, buckets=None, checks=None, dashboards=None, labels=None, label_mappings=None, notification_endpoints=None, notification_rules=None, tasks=None, telegraf_configs=None, variables=None): # noqa: E501,D401,D403 + """TemplateSummaryDiff - a model defined in OpenAPI.""" # noqa: E501 + self._buckets = None + self._checks = None + self._dashboards = None + self._labels = None + self._label_mappings = None + self._notification_endpoints = None + self._notification_rules = None + self._tasks = None + self._telegraf_configs = None + self._variables = None + self.discriminator = None + + if buckets is not None: + self.buckets = buckets + if checks is not None: + self.checks = checks + if dashboards is not None: + self.dashboards = dashboards + if labels is not None: + self.labels = labels + if label_mappings is not None: + self.label_mappings = label_mappings + if notification_endpoints is not None: + self.notification_endpoints = notification_endpoints + if notification_rules is not None: + self.notification_rules = notification_rules + if tasks is not None: + self.tasks = tasks + if telegraf_configs is not None: + self.telegraf_configs = telegraf_configs + if variables is not None: + self.variables = variables + + @property + def buckets(self): + """Get the buckets of this TemplateSummaryDiff. + + :return: The buckets of this TemplateSummaryDiff. + :rtype: list[TemplateSummaryDiffBuckets] + """ # noqa: E501 + return self._buckets + + @buckets.setter + def buckets(self, buckets): + """Set the buckets of this TemplateSummaryDiff. + + :param buckets: The buckets of this TemplateSummaryDiff. + :type: list[TemplateSummaryDiffBuckets] + """ # noqa: E501 + self._buckets = buckets + + @property + def checks(self): + """Get the checks of this TemplateSummaryDiff. + + :return: The checks of this TemplateSummaryDiff. + :rtype: list[TemplateSummaryDiffChecks] + """ # noqa: E501 + return self._checks + + @checks.setter + def checks(self, checks): + """Set the checks of this TemplateSummaryDiff. + + :param checks: The checks of this TemplateSummaryDiff. + :type: list[TemplateSummaryDiffChecks] + """ # noqa: E501 + self._checks = checks + + @property + def dashboards(self): + """Get the dashboards of this TemplateSummaryDiff. + + :return: The dashboards of this TemplateSummaryDiff. + :rtype: list[TemplateSummaryDiffDashboards] + """ # noqa: E501 + return self._dashboards + + @dashboards.setter + def dashboards(self, dashboards): + """Set the dashboards of this TemplateSummaryDiff. + + :param dashboards: The dashboards of this TemplateSummaryDiff. + :type: list[TemplateSummaryDiffDashboards] + """ # noqa: E501 + self._dashboards = dashboards + + @property + def labels(self): + """Get the labels of this TemplateSummaryDiff. + + :return: The labels of this TemplateSummaryDiff. + :rtype: list[TemplateSummaryDiffLabels] + """ # noqa: E501 + return self._labels + + @labels.setter + def labels(self, labels): + """Set the labels of this TemplateSummaryDiff. + + :param labels: The labels of this TemplateSummaryDiff. + :type: list[TemplateSummaryDiffLabels] + """ # noqa: E501 + self._labels = labels + + @property + def label_mappings(self): + """Get the label_mappings of this TemplateSummaryDiff. + + :return: The label_mappings of this TemplateSummaryDiff. + :rtype: list[TemplateSummaryDiffLabelMappings] + """ # noqa: E501 + return self._label_mappings + + @label_mappings.setter + def label_mappings(self, label_mappings): + """Set the label_mappings of this TemplateSummaryDiff. + + :param label_mappings: The label_mappings of this TemplateSummaryDiff. + :type: list[TemplateSummaryDiffLabelMappings] + """ # noqa: E501 + self._label_mappings = label_mappings + + @property + def notification_endpoints(self): + """Get the notification_endpoints of this TemplateSummaryDiff. + + :return: The notification_endpoints of this TemplateSummaryDiff. + :rtype: list[TemplateSummaryDiffNotificationEndpoints] + """ # noqa: E501 + return self._notification_endpoints + + @notification_endpoints.setter + def notification_endpoints(self, notification_endpoints): + """Set the notification_endpoints of this TemplateSummaryDiff. + + :param notification_endpoints: The notification_endpoints of this TemplateSummaryDiff. + :type: list[TemplateSummaryDiffNotificationEndpoints] + """ # noqa: E501 + self._notification_endpoints = notification_endpoints + + @property + def notification_rules(self): + """Get the notification_rules of this TemplateSummaryDiff. + + :return: The notification_rules of this TemplateSummaryDiff. + :rtype: list[TemplateSummaryDiffNotificationRules] + """ # noqa: E501 + return self._notification_rules + + @notification_rules.setter + def notification_rules(self, notification_rules): + """Set the notification_rules of this TemplateSummaryDiff. + + :param notification_rules: The notification_rules of this TemplateSummaryDiff. + :type: list[TemplateSummaryDiffNotificationRules] + """ # noqa: E501 + self._notification_rules = notification_rules + + @property + def tasks(self): + """Get the tasks of this TemplateSummaryDiff. + + :return: The tasks of this TemplateSummaryDiff. + :rtype: list[TemplateSummaryDiffTasks] + """ # noqa: E501 + return self._tasks + + @tasks.setter + def tasks(self, tasks): + """Set the tasks of this TemplateSummaryDiff. + + :param tasks: The tasks of this TemplateSummaryDiff. + :type: list[TemplateSummaryDiffTasks] + """ # noqa: E501 + self._tasks = tasks + + @property + def telegraf_configs(self): + """Get the telegraf_configs of this TemplateSummaryDiff. + + :return: The telegraf_configs of this TemplateSummaryDiff. + :rtype: list[TemplateSummaryDiffTelegrafConfigs] + """ # noqa: E501 + return self._telegraf_configs + + @telegraf_configs.setter + def telegraf_configs(self, telegraf_configs): + """Set the telegraf_configs of this TemplateSummaryDiff. + + :param telegraf_configs: The telegraf_configs of this TemplateSummaryDiff. + :type: list[TemplateSummaryDiffTelegrafConfigs] + """ # noqa: E501 + self._telegraf_configs = telegraf_configs + + @property + def variables(self): + """Get the variables of this TemplateSummaryDiff. + + :return: The variables of this TemplateSummaryDiff. + :rtype: list[TemplateSummaryDiffVariables] + """ # noqa: E501 + return self._variables + + @variables.setter + def variables(self, variables): + """Set the variables of this TemplateSummaryDiff. + + :param variables: The variables of this TemplateSummaryDiff. + :type: list[TemplateSummaryDiffVariables] + """ # noqa: E501 + self._variables = variables + + def to_dict(self): + """Return the model properties as a dict.""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Return the string representation of the model.""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`.""" + return self.to_str() + + def __eq__(self, other): + """Return true if both objects are equal.""" + if not isinstance(other, TemplateSummaryDiff): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Return true if both objects are not equal.""" + return not self == other diff --git a/influxdb_client/domain/template_summary_diff_buckets.py b/influxdb_client/domain/template_summary_diff_buckets.py new file mode 100644 index 00000000..0a58e299 --- /dev/null +++ b/influxdb_client/domain/template_summary_diff_buckets.py @@ -0,0 +1,224 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class TemplateSummaryDiffBuckets(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'kind': 'TemplateKind', + 'state_status': 'str', + 'id': 'str', + 'template_meta_name': 'str', + 'new': 'TemplateSummaryDiffBucketsNewOld', + 'old': 'TemplateSummaryDiffBucketsNewOld' + } + + attribute_map = { + 'kind': 'kind', + 'state_status': 'stateStatus', + 'id': 'id', + 'template_meta_name': 'templateMetaName', + 'new': 'new', + 'old': 'old' + } + + def __init__(self, kind=None, state_status=None, id=None, template_meta_name=None, new=None, old=None): # noqa: E501,D401,D403 + """TemplateSummaryDiffBuckets - a model defined in OpenAPI.""" # noqa: E501 + self._kind = None + self._state_status = None + self._id = None + self._template_meta_name = None + self._new = None + self._old = None + self.discriminator = None + + if kind is not None: + self.kind = kind + if state_status is not None: + self.state_status = state_status + if id is not None: + self.id = id + if template_meta_name is not None: + self.template_meta_name = template_meta_name + if new is not None: + self.new = new + if old is not None: + self.old = old + + @property + def kind(self): + """Get the kind of this TemplateSummaryDiffBuckets. + + :return: The kind of this TemplateSummaryDiffBuckets. + :rtype: TemplateKind + """ # noqa: E501 + return self._kind + + @kind.setter + def kind(self, kind): + """Set the kind of this TemplateSummaryDiffBuckets. + + :param kind: The kind of this TemplateSummaryDiffBuckets. + :type: TemplateKind + """ # noqa: E501 + self._kind = kind + + @property + def state_status(self): + """Get the state_status of this TemplateSummaryDiffBuckets. + + :return: The state_status of this TemplateSummaryDiffBuckets. + :rtype: str + """ # noqa: E501 + return self._state_status + + @state_status.setter + def state_status(self, state_status): + """Set the state_status of this TemplateSummaryDiffBuckets. + + :param state_status: The state_status of this TemplateSummaryDiffBuckets. + :type: str + """ # noqa: E501 + self._state_status = state_status + + @property + def id(self): + """Get the id of this TemplateSummaryDiffBuckets. + + :return: The id of this TemplateSummaryDiffBuckets. + :rtype: str + """ # noqa: E501 + return self._id + + @id.setter + def id(self, id): + """Set the id of this TemplateSummaryDiffBuckets. + + :param id: The id of this TemplateSummaryDiffBuckets. + :type: str + """ # noqa: E501 + self._id = id + + @property + def template_meta_name(self): + """Get the template_meta_name of this TemplateSummaryDiffBuckets. + + :return: The template_meta_name of this TemplateSummaryDiffBuckets. + :rtype: str + """ # noqa: E501 + return self._template_meta_name + + @template_meta_name.setter + def template_meta_name(self, template_meta_name): + """Set the template_meta_name of this TemplateSummaryDiffBuckets. + + :param template_meta_name: The template_meta_name of this TemplateSummaryDiffBuckets. + :type: str + """ # noqa: E501 + self._template_meta_name = template_meta_name + + @property + def new(self): + """Get the new of this TemplateSummaryDiffBuckets. + + :return: The new of this TemplateSummaryDiffBuckets. + :rtype: TemplateSummaryDiffBucketsNewOld + """ # noqa: E501 + return self._new + + @new.setter + def new(self, new): + """Set the new of this TemplateSummaryDiffBuckets. + + :param new: The new of this TemplateSummaryDiffBuckets. + :type: TemplateSummaryDiffBucketsNewOld + """ # noqa: E501 + self._new = new + + @property + def old(self): + """Get the old of this TemplateSummaryDiffBuckets. + + :return: The old of this TemplateSummaryDiffBuckets. + :rtype: TemplateSummaryDiffBucketsNewOld + """ # noqa: E501 + return self._old + + @old.setter + def old(self, old): + """Set the old of this TemplateSummaryDiffBuckets. + + :param old: The old of this TemplateSummaryDiffBuckets. + :type: TemplateSummaryDiffBucketsNewOld + """ # noqa: E501 + self._old = old + + def to_dict(self): + """Return the model properties as a dict.""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Return the string representation of the model.""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`.""" + return self.to_str() + + def __eq__(self, other): + """Return true if both objects are equal.""" + if not isinstance(other, TemplateSummaryDiffBuckets): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Return true if both objects are not equal.""" + return not self == other diff --git a/influxdb_client/domain/template_summary_diff_buckets_new_old.py b/influxdb_client/domain/template_summary_diff_buckets_new_old.py new file mode 100644 index 00000000..62ad7ef7 --- /dev/null +++ b/influxdb_client/domain/template_summary_diff_buckets_new_old.py @@ -0,0 +1,159 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class TemplateSummaryDiffBucketsNewOld(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'name': 'str', + 'description': 'str', + 'retention_rules': 'list[BucketRetentionRules]' + } + + attribute_map = { + 'name': 'name', + 'description': 'description', + 'retention_rules': 'retentionRules' + } + + def __init__(self, name=None, description=None, retention_rules=None): # noqa: E501,D401,D403 + """TemplateSummaryDiffBucketsNewOld - a model defined in OpenAPI.""" # noqa: E501 + self._name = None + self._description = None + self._retention_rules = None + self.discriminator = None + + if name is not None: + self.name = name + if description is not None: + self.description = description + if retention_rules is not None: + self.retention_rules = retention_rules + + @property + def name(self): + """Get the name of this TemplateSummaryDiffBucketsNewOld. + + :return: The name of this TemplateSummaryDiffBucketsNewOld. + :rtype: str + """ # noqa: E501 + return self._name + + @name.setter + def name(self, name): + """Set the name of this TemplateSummaryDiffBucketsNewOld. + + :param name: The name of this TemplateSummaryDiffBucketsNewOld. + :type: str + """ # noqa: E501 + self._name = name + + @property + def description(self): + """Get the description of this TemplateSummaryDiffBucketsNewOld. + + :return: The description of this TemplateSummaryDiffBucketsNewOld. + :rtype: str + """ # noqa: E501 + return self._description + + @description.setter + def description(self, description): + """Set the description of this TemplateSummaryDiffBucketsNewOld. + + :param description: The description of this TemplateSummaryDiffBucketsNewOld. + :type: str + """ # noqa: E501 + self._description = description + + @property + def retention_rules(self): + """Get the retention_rules of this TemplateSummaryDiffBucketsNewOld. + + Rules to expire or retain data. No rules means data never expires. + + :return: The retention_rules of this TemplateSummaryDiffBucketsNewOld. + :rtype: list[BucketRetentionRules] + """ # noqa: E501 + return self._retention_rules + + @retention_rules.setter + def retention_rules(self, retention_rules): + """Set the retention_rules of this TemplateSummaryDiffBucketsNewOld. + + Rules to expire or retain data. No rules means data never expires. + + :param retention_rules: The retention_rules of this TemplateSummaryDiffBucketsNewOld. + :type: list[BucketRetentionRules] + """ # noqa: E501 + self._retention_rules = retention_rules + + def to_dict(self): + """Return the model properties as a dict.""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Return the string representation of the model.""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`.""" + return self.to_str() + + def __eq__(self, other): + """Return true if both objects are equal.""" + if not isinstance(other, TemplateSummaryDiffBucketsNewOld): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Return true if both objects are not equal.""" + return not self == other diff --git a/influxdb_client/domain/template_summary_diff_checks.py b/influxdb_client/domain/template_summary_diff_checks.py new file mode 100644 index 00000000..adba9ca3 --- /dev/null +++ b/influxdb_client/domain/template_summary_diff_checks.py @@ -0,0 +1,224 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class TemplateSummaryDiffChecks(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'kind': 'TemplateKind', + 'state_status': 'str', + 'id': 'str', + 'template_meta_name': 'str', + 'new': 'CheckDiscriminator', + 'old': 'CheckDiscriminator' + } + + attribute_map = { + 'kind': 'kind', + 'state_status': 'stateStatus', + 'id': 'id', + 'template_meta_name': 'templateMetaName', + 'new': 'new', + 'old': 'old' + } + + def __init__(self, kind=None, state_status=None, id=None, template_meta_name=None, new=None, old=None): # noqa: E501,D401,D403 + """TemplateSummaryDiffChecks - a model defined in OpenAPI.""" # noqa: E501 + self._kind = None + self._state_status = None + self._id = None + self._template_meta_name = None + self._new = None + self._old = None + self.discriminator = None + + if kind is not None: + self.kind = kind + if state_status is not None: + self.state_status = state_status + if id is not None: + self.id = id + if template_meta_name is not None: + self.template_meta_name = template_meta_name + if new is not None: + self.new = new + if old is not None: + self.old = old + + @property + def kind(self): + """Get the kind of this TemplateSummaryDiffChecks. + + :return: The kind of this TemplateSummaryDiffChecks. + :rtype: TemplateKind + """ # noqa: E501 + return self._kind + + @kind.setter + def kind(self, kind): + """Set the kind of this TemplateSummaryDiffChecks. + + :param kind: The kind of this TemplateSummaryDiffChecks. + :type: TemplateKind + """ # noqa: E501 + self._kind = kind + + @property + def state_status(self): + """Get the state_status of this TemplateSummaryDiffChecks. + + :return: The state_status of this TemplateSummaryDiffChecks. + :rtype: str + """ # noqa: E501 + return self._state_status + + @state_status.setter + def state_status(self, state_status): + """Set the state_status of this TemplateSummaryDiffChecks. + + :param state_status: The state_status of this TemplateSummaryDiffChecks. + :type: str + """ # noqa: E501 + self._state_status = state_status + + @property + def id(self): + """Get the id of this TemplateSummaryDiffChecks. + + :return: The id of this TemplateSummaryDiffChecks. + :rtype: str + """ # noqa: E501 + return self._id + + @id.setter + def id(self, id): + """Set the id of this TemplateSummaryDiffChecks. + + :param id: The id of this TemplateSummaryDiffChecks. + :type: str + """ # noqa: E501 + self._id = id + + @property + def template_meta_name(self): + """Get the template_meta_name of this TemplateSummaryDiffChecks. + + :return: The template_meta_name of this TemplateSummaryDiffChecks. + :rtype: str + """ # noqa: E501 + return self._template_meta_name + + @template_meta_name.setter + def template_meta_name(self, template_meta_name): + """Set the template_meta_name of this TemplateSummaryDiffChecks. + + :param template_meta_name: The template_meta_name of this TemplateSummaryDiffChecks. + :type: str + """ # noqa: E501 + self._template_meta_name = template_meta_name + + @property + def new(self): + """Get the new of this TemplateSummaryDiffChecks. + + :return: The new of this TemplateSummaryDiffChecks. + :rtype: CheckDiscriminator + """ # noqa: E501 + return self._new + + @new.setter + def new(self, new): + """Set the new of this TemplateSummaryDiffChecks. + + :param new: The new of this TemplateSummaryDiffChecks. + :type: CheckDiscriminator + """ # noqa: E501 + self._new = new + + @property + def old(self): + """Get the old of this TemplateSummaryDiffChecks. + + :return: The old of this TemplateSummaryDiffChecks. + :rtype: CheckDiscriminator + """ # noqa: E501 + return self._old + + @old.setter + def old(self, old): + """Set the old of this TemplateSummaryDiffChecks. + + :param old: The old of this TemplateSummaryDiffChecks. + :type: CheckDiscriminator + """ # noqa: E501 + self._old = old + + def to_dict(self): + """Return the model properties as a dict.""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Return the string representation of the model.""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`.""" + return self.to_str() + + def __eq__(self, other): + """Return true if both objects are equal.""" + if not isinstance(other, TemplateSummaryDiffChecks): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Return true if both objects are not equal.""" + return not self == other diff --git a/influxdb_client/domain/template_summary_diff_dashboards.py b/influxdb_client/domain/template_summary_diff_dashboards.py new file mode 100644 index 00000000..282e09e6 --- /dev/null +++ b/influxdb_client/domain/template_summary_diff_dashboards.py @@ -0,0 +1,224 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class TemplateSummaryDiffDashboards(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'state_status': 'str', + 'id': 'str', + 'kind': 'TemplateKind', + 'template_meta_name': 'str', + 'new': 'TemplateSummaryDiffDashboardsNewOld', + 'old': 'TemplateSummaryDiffDashboardsNewOld' + } + + attribute_map = { + 'state_status': 'stateStatus', + 'id': 'id', + 'kind': 'kind', + 'template_meta_name': 'templateMetaName', + 'new': 'new', + 'old': 'old' + } + + def __init__(self, state_status=None, id=None, kind=None, template_meta_name=None, new=None, old=None): # noqa: E501,D401,D403 + """TemplateSummaryDiffDashboards - a model defined in OpenAPI.""" # noqa: E501 + self._state_status = None + self._id = None + self._kind = None + self._template_meta_name = None + self._new = None + self._old = None + self.discriminator = None + + if state_status is not None: + self.state_status = state_status + if id is not None: + self.id = id + if kind is not None: + self.kind = kind + if template_meta_name is not None: + self.template_meta_name = template_meta_name + if new is not None: + self.new = new + if old is not None: + self.old = old + + @property + def state_status(self): + """Get the state_status of this TemplateSummaryDiffDashboards. + + :return: The state_status of this TemplateSummaryDiffDashboards. + :rtype: str + """ # noqa: E501 + return self._state_status + + @state_status.setter + def state_status(self, state_status): + """Set the state_status of this TemplateSummaryDiffDashboards. + + :param state_status: The state_status of this TemplateSummaryDiffDashboards. + :type: str + """ # noqa: E501 + self._state_status = state_status + + @property + def id(self): + """Get the id of this TemplateSummaryDiffDashboards. + + :return: The id of this TemplateSummaryDiffDashboards. + :rtype: str + """ # noqa: E501 + return self._id + + @id.setter + def id(self, id): + """Set the id of this TemplateSummaryDiffDashboards. + + :param id: The id of this TemplateSummaryDiffDashboards. + :type: str + """ # noqa: E501 + self._id = id + + @property + def kind(self): + """Get the kind of this TemplateSummaryDiffDashboards. + + :return: The kind of this TemplateSummaryDiffDashboards. + :rtype: TemplateKind + """ # noqa: E501 + return self._kind + + @kind.setter + def kind(self, kind): + """Set the kind of this TemplateSummaryDiffDashboards. + + :param kind: The kind of this TemplateSummaryDiffDashboards. + :type: TemplateKind + """ # noqa: E501 + self._kind = kind + + @property + def template_meta_name(self): + """Get the template_meta_name of this TemplateSummaryDiffDashboards. + + :return: The template_meta_name of this TemplateSummaryDiffDashboards. + :rtype: str + """ # noqa: E501 + return self._template_meta_name + + @template_meta_name.setter + def template_meta_name(self, template_meta_name): + """Set the template_meta_name of this TemplateSummaryDiffDashboards. + + :param template_meta_name: The template_meta_name of this TemplateSummaryDiffDashboards. + :type: str + """ # noqa: E501 + self._template_meta_name = template_meta_name + + @property + def new(self): + """Get the new of this TemplateSummaryDiffDashboards. + + :return: The new of this TemplateSummaryDiffDashboards. + :rtype: TemplateSummaryDiffDashboardsNewOld + """ # noqa: E501 + return self._new + + @new.setter + def new(self, new): + """Set the new of this TemplateSummaryDiffDashboards. + + :param new: The new of this TemplateSummaryDiffDashboards. + :type: TemplateSummaryDiffDashboardsNewOld + """ # noqa: E501 + self._new = new + + @property + def old(self): + """Get the old of this TemplateSummaryDiffDashboards. + + :return: The old of this TemplateSummaryDiffDashboards. + :rtype: TemplateSummaryDiffDashboardsNewOld + """ # noqa: E501 + return self._old + + @old.setter + def old(self, old): + """Set the old of this TemplateSummaryDiffDashboards. + + :param old: The old of this TemplateSummaryDiffDashboards. + :type: TemplateSummaryDiffDashboardsNewOld + """ # noqa: E501 + self._old = old + + def to_dict(self): + """Return the model properties as a dict.""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Return the string representation of the model.""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`.""" + return self.to_str() + + def __eq__(self, other): + """Return true if both objects are equal.""" + if not isinstance(other, TemplateSummaryDiffDashboards): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Return true if both objects are not equal.""" + return not self == other diff --git a/influxdb_client/domain/template_summary_diff_dashboards_new_old.py b/influxdb_client/domain/template_summary_diff_dashboards_new_old.py new file mode 100644 index 00000000..5042c556 --- /dev/null +++ b/influxdb_client/domain/template_summary_diff_dashboards_new_old.py @@ -0,0 +1,155 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class TemplateSummaryDiffDashboardsNewOld(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'name': 'str', + 'description': 'str', + 'charts': 'list[TemplateChart]' + } + + attribute_map = { + 'name': 'name', + 'description': 'description', + 'charts': 'charts' + } + + def __init__(self, name=None, description=None, charts=None): # noqa: E501,D401,D403 + """TemplateSummaryDiffDashboardsNewOld - a model defined in OpenAPI.""" # noqa: E501 + self._name = None + self._description = None + self._charts = None + self.discriminator = None + + if name is not None: + self.name = name + if description is not None: + self.description = description + if charts is not None: + self.charts = charts + + @property + def name(self): + """Get the name of this TemplateSummaryDiffDashboardsNewOld. + + :return: The name of this TemplateSummaryDiffDashboardsNewOld. + :rtype: str + """ # noqa: E501 + return self._name + + @name.setter + def name(self, name): + """Set the name of this TemplateSummaryDiffDashboardsNewOld. + + :param name: The name of this TemplateSummaryDiffDashboardsNewOld. + :type: str + """ # noqa: E501 + self._name = name + + @property + def description(self): + """Get the description of this TemplateSummaryDiffDashboardsNewOld. + + :return: The description of this TemplateSummaryDiffDashboardsNewOld. + :rtype: str + """ # noqa: E501 + return self._description + + @description.setter + def description(self, description): + """Set the description of this TemplateSummaryDiffDashboardsNewOld. + + :param description: The description of this TemplateSummaryDiffDashboardsNewOld. + :type: str + """ # noqa: E501 + self._description = description + + @property + def charts(self): + """Get the charts of this TemplateSummaryDiffDashboardsNewOld. + + :return: The charts of this TemplateSummaryDiffDashboardsNewOld. + :rtype: list[TemplateChart] + """ # noqa: E501 + return self._charts + + @charts.setter + def charts(self, charts): + """Set the charts of this TemplateSummaryDiffDashboardsNewOld. + + :param charts: The charts of this TemplateSummaryDiffDashboardsNewOld. + :type: list[TemplateChart] + """ # noqa: E501 + self._charts = charts + + def to_dict(self): + """Return the model properties as a dict.""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Return the string representation of the model.""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`.""" + return self.to_str() + + def __eq__(self, other): + """Return true if both objects are equal.""" + if not isinstance(other, TemplateSummaryDiffDashboardsNewOld): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Return true if both objects are not equal.""" + return not self == other diff --git a/influxdb_client/domain/template_summary_diff_label_mappings.py b/influxdb_client/domain/template_summary_diff_label_mappings.py new file mode 100644 index 00000000..535f095e --- /dev/null +++ b/influxdb_client/domain/template_summary_diff_label_mappings.py @@ -0,0 +1,270 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class TemplateSummaryDiffLabelMappings(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'status': 'str', + 'resource_type': 'str', + 'resource_id': 'str', + 'resource_template_meta_name': 'str', + 'resource_name': 'str', + 'label_id': 'str', + 'label_template_meta_name': 'str', + 'label_name': 'str' + } + + attribute_map = { + 'status': 'status', + 'resource_type': 'resourceType', + 'resource_id': 'resourceID', + 'resource_template_meta_name': 'resourceTemplateMetaName', + 'resource_name': 'resourceName', + 'label_id': 'labelID', + 'label_template_meta_name': 'labelTemplateMetaName', + 'label_name': 'labelName' + } + + def __init__(self, status=None, resource_type=None, resource_id=None, resource_template_meta_name=None, resource_name=None, label_id=None, label_template_meta_name=None, label_name=None): # noqa: E501,D401,D403 + """TemplateSummaryDiffLabelMappings - a model defined in OpenAPI.""" # noqa: E501 + self._status = None + self._resource_type = None + self._resource_id = None + self._resource_template_meta_name = None + self._resource_name = None + self._label_id = None + self._label_template_meta_name = None + self._label_name = None + self.discriminator = None + + if status is not None: + self.status = status + if resource_type is not None: + self.resource_type = resource_type + if resource_id is not None: + self.resource_id = resource_id + if resource_template_meta_name is not None: + self.resource_template_meta_name = resource_template_meta_name + if resource_name is not None: + self.resource_name = resource_name + if label_id is not None: + self.label_id = label_id + if label_template_meta_name is not None: + self.label_template_meta_name = label_template_meta_name + if label_name is not None: + self.label_name = label_name + + @property + def status(self): + """Get the status of this TemplateSummaryDiffLabelMappings. + + :return: The status of this TemplateSummaryDiffLabelMappings. + :rtype: str + """ # noqa: E501 + return self._status + + @status.setter + def status(self, status): + """Set the status of this TemplateSummaryDiffLabelMappings. + + :param status: The status of this TemplateSummaryDiffLabelMappings. + :type: str + """ # noqa: E501 + self._status = status + + @property + def resource_type(self): + """Get the resource_type of this TemplateSummaryDiffLabelMappings. + + :return: The resource_type of this TemplateSummaryDiffLabelMappings. + :rtype: str + """ # noqa: E501 + return self._resource_type + + @resource_type.setter + def resource_type(self, resource_type): + """Set the resource_type of this TemplateSummaryDiffLabelMappings. + + :param resource_type: The resource_type of this TemplateSummaryDiffLabelMappings. + :type: str + """ # noqa: E501 + self._resource_type = resource_type + + @property + def resource_id(self): + """Get the resource_id of this TemplateSummaryDiffLabelMappings. + + :return: The resource_id of this TemplateSummaryDiffLabelMappings. + :rtype: str + """ # noqa: E501 + return self._resource_id + + @resource_id.setter + def resource_id(self, resource_id): + """Set the resource_id of this TemplateSummaryDiffLabelMappings. + + :param resource_id: The resource_id of this TemplateSummaryDiffLabelMappings. + :type: str + """ # noqa: E501 + self._resource_id = resource_id + + @property + def resource_template_meta_name(self): + """Get the resource_template_meta_name of this TemplateSummaryDiffLabelMappings. + + :return: The resource_template_meta_name of this TemplateSummaryDiffLabelMappings. + :rtype: str + """ # noqa: E501 + return self._resource_template_meta_name + + @resource_template_meta_name.setter + def resource_template_meta_name(self, resource_template_meta_name): + """Set the resource_template_meta_name of this TemplateSummaryDiffLabelMappings. + + :param resource_template_meta_name: The resource_template_meta_name of this TemplateSummaryDiffLabelMappings. + :type: str + """ # noqa: E501 + self._resource_template_meta_name = resource_template_meta_name + + @property + def resource_name(self): + """Get the resource_name of this TemplateSummaryDiffLabelMappings. + + :return: The resource_name of this TemplateSummaryDiffLabelMappings. + :rtype: str + """ # noqa: E501 + return self._resource_name + + @resource_name.setter + def resource_name(self, resource_name): + """Set the resource_name of this TemplateSummaryDiffLabelMappings. + + :param resource_name: The resource_name of this TemplateSummaryDiffLabelMappings. + :type: str + """ # noqa: E501 + self._resource_name = resource_name + + @property + def label_id(self): + """Get the label_id of this TemplateSummaryDiffLabelMappings. + + :return: The label_id of this TemplateSummaryDiffLabelMappings. + :rtype: str + """ # noqa: E501 + return self._label_id + + @label_id.setter + def label_id(self, label_id): + """Set the label_id of this TemplateSummaryDiffLabelMappings. + + :param label_id: The label_id of this TemplateSummaryDiffLabelMappings. + :type: str + """ # noqa: E501 + self._label_id = label_id + + @property + def label_template_meta_name(self): + """Get the label_template_meta_name of this TemplateSummaryDiffLabelMappings. + + :return: The label_template_meta_name of this TemplateSummaryDiffLabelMappings. + :rtype: str + """ # noqa: E501 + return self._label_template_meta_name + + @label_template_meta_name.setter + def label_template_meta_name(self, label_template_meta_name): + """Set the label_template_meta_name of this TemplateSummaryDiffLabelMappings. + + :param label_template_meta_name: The label_template_meta_name of this TemplateSummaryDiffLabelMappings. + :type: str + """ # noqa: E501 + self._label_template_meta_name = label_template_meta_name + + @property + def label_name(self): + """Get the label_name of this TemplateSummaryDiffLabelMappings. + + :return: The label_name of this TemplateSummaryDiffLabelMappings. + :rtype: str + """ # noqa: E501 + return self._label_name + + @label_name.setter + def label_name(self, label_name): + """Set the label_name of this TemplateSummaryDiffLabelMappings. + + :param label_name: The label_name of this TemplateSummaryDiffLabelMappings. + :type: str + """ # noqa: E501 + self._label_name = label_name + + def to_dict(self): + """Return the model properties as a dict.""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Return the string representation of the model.""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`.""" + return self.to_str() + + def __eq__(self, other): + """Return true if both objects are equal.""" + if not isinstance(other, TemplateSummaryDiffLabelMappings): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Return true if both objects are not equal.""" + return not self == other diff --git a/influxdb_client/domain/template_summary_diff_labels.py b/influxdb_client/domain/template_summary_diff_labels.py new file mode 100644 index 00000000..74ee4740 --- /dev/null +++ b/influxdb_client/domain/template_summary_diff_labels.py @@ -0,0 +1,224 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class TemplateSummaryDiffLabels(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'state_status': 'str', + 'kind': 'TemplateKind', + 'id': 'str', + 'template_meta_name': 'str', + 'new': 'TemplateSummaryDiffLabelsNewOld', + 'old': 'TemplateSummaryDiffLabelsNewOld' + } + + attribute_map = { + 'state_status': 'stateStatus', + 'kind': 'kind', + 'id': 'id', + 'template_meta_name': 'templateMetaName', + 'new': 'new', + 'old': 'old' + } + + def __init__(self, state_status=None, kind=None, id=None, template_meta_name=None, new=None, old=None): # noqa: E501,D401,D403 + """TemplateSummaryDiffLabels - a model defined in OpenAPI.""" # noqa: E501 + self._state_status = None + self._kind = None + self._id = None + self._template_meta_name = None + self._new = None + self._old = None + self.discriminator = None + + if state_status is not None: + self.state_status = state_status + if kind is not None: + self.kind = kind + if id is not None: + self.id = id + if template_meta_name is not None: + self.template_meta_name = template_meta_name + if new is not None: + self.new = new + if old is not None: + self.old = old + + @property + def state_status(self): + """Get the state_status of this TemplateSummaryDiffLabels. + + :return: The state_status of this TemplateSummaryDiffLabels. + :rtype: str + """ # noqa: E501 + return self._state_status + + @state_status.setter + def state_status(self, state_status): + """Set the state_status of this TemplateSummaryDiffLabels. + + :param state_status: The state_status of this TemplateSummaryDiffLabels. + :type: str + """ # noqa: E501 + self._state_status = state_status + + @property + def kind(self): + """Get the kind of this TemplateSummaryDiffLabels. + + :return: The kind of this TemplateSummaryDiffLabels. + :rtype: TemplateKind + """ # noqa: E501 + return self._kind + + @kind.setter + def kind(self, kind): + """Set the kind of this TemplateSummaryDiffLabels. + + :param kind: The kind of this TemplateSummaryDiffLabels. + :type: TemplateKind + """ # noqa: E501 + self._kind = kind + + @property + def id(self): + """Get the id of this TemplateSummaryDiffLabels. + + :return: The id of this TemplateSummaryDiffLabels. + :rtype: str + """ # noqa: E501 + return self._id + + @id.setter + def id(self, id): + """Set the id of this TemplateSummaryDiffLabels. + + :param id: The id of this TemplateSummaryDiffLabels. + :type: str + """ # noqa: E501 + self._id = id + + @property + def template_meta_name(self): + """Get the template_meta_name of this TemplateSummaryDiffLabels. + + :return: The template_meta_name of this TemplateSummaryDiffLabels. + :rtype: str + """ # noqa: E501 + return self._template_meta_name + + @template_meta_name.setter + def template_meta_name(self, template_meta_name): + """Set the template_meta_name of this TemplateSummaryDiffLabels. + + :param template_meta_name: The template_meta_name of this TemplateSummaryDiffLabels. + :type: str + """ # noqa: E501 + self._template_meta_name = template_meta_name + + @property + def new(self): + """Get the new of this TemplateSummaryDiffLabels. + + :return: The new of this TemplateSummaryDiffLabels. + :rtype: TemplateSummaryDiffLabelsNewOld + """ # noqa: E501 + return self._new + + @new.setter + def new(self, new): + """Set the new of this TemplateSummaryDiffLabels. + + :param new: The new of this TemplateSummaryDiffLabels. + :type: TemplateSummaryDiffLabelsNewOld + """ # noqa: E501 + self._new = new + + @property + def old(self): + """Get the old of this TemplateSummaryDiffLabels. + + :return: The old of this TemplateSummaryDiffLabels. + :rtype: TemplateSummaryDiffLabelsNewOld + """ # noqa: E501 + return self._old + + @old.setter + def old(self, old): + """Set the old of this TemplateSummaryDiffLabels. + + :param old: The old of this TemplateSummaryDiffLabels. + :type: TemplateSummaryDiffLabelsNewOld + """ # noqa: E501 + self._old = old + + def to_dict(self): + """Return the model properties as a dict.""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Return the string representation of the model.""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`.""" + return self.to_str() + + def __eq__(self, other): + """Return true if both objects are equal.""" + if not isinstance(other, TemplateSummaryDiffLabels): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Return true if both objects are not equal.""" + return not self == other diff --git a/influxdb_client/domain/template_summary_diff_labels_new_old.py b/influxdb_client/domain/template_summary_diff_labels_new_old.py new file mode 100644 index 00000000..34bfc4ae --- /dev/null +++ b/influxdb_client/domain/template_summary_diff_labels_new_old.py @@ -0,0 +1,155 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class TemplateSummaryDiffLabelsNewOld(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'name': 'str', + 'color': 'str', + 'description': 'str' + } + + attribute_map = { + 'name': 'name', + 'color': 'color', + 'description': 'description' + } + + def __init__(self, name=None, color=None, description=None): # noqa: E501,D401,D403 + """TemplateSummaryDiffLabelsNewOld - a model defined in OpenAPI.""" # noqa: E501 + self._name = None + self._color = None + self._description = None + self.discriminator = None + + if name is not None: + self.name = name + if color is not None: + self.color = color + if description is not None: + self.description = description + + @property + def name(self): + """Get the name of this TemplateSummaryDiffLabelsNewOld. + + :return: The name of this TemplateSummaryDiffLabelsNewOld. + :rtype: str + """ # noqa: E501 + return self._name + + @name.setter + def name(self, name): + """Set the name of this TemplateSummaryDiffLabelsNewOld. + + :param name: The name of this TemplateSummaryDiffLabelsNewOld. + :type: str + """ # noqa: E501 + self._name = name + + @property + def color(self): + """Get the color of this TemplateSummaryDiffLabelsNewOld. + + :return: The color of this TemplateSummaryDiffLabelsNewOld. + :rtype: str + """ # noqa: E501 + return self._color + + @color.setter + def color(self, color): + """Set the color of this TemplateSummaryDiffLabelsNewOld. + + :param color: The color of this TemplateSummaryDiffLabelsNewOld. + :type: str + """ # noqa: E501 + self._color = color + + @property + def description(self): + """Get the description of this TemplateSummaryDiffLabelsNewOld. + + :return: The description of this TemplateSummaryDiffLabelsNewOld. + :rtype: str + """ # noqa: E501 + return self._description + + @description.setter + def description(self, description): + """Set the description of this TemplateSummaryDiffLabelsNewOld. + + :param description: The description of this TemplateSummaryDiffLabelsNewOld. + :type: str + """ # noqa: E501 + self._description = description + + def to_dict(self): + """Return the model properties as a dict.""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Return the string representation of the model.""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`.""" + return self.to_str() + + def __eq__(self, other): + """Return true if both objects are equal.""" + if not isinstance(other, TemplateSummaryDiffLabelsNewOld): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Return true if both objects are not equal.""" + return not self == other diff --git a/influxdb_client/domain/template_summary_diff_notification_endpoints.py b/influxdb_client/domain/template_summary_diff_notification_endpoints.py new file mode 100644 index 00000000..7d742f45 --- /dev/null +++ b/influxdb_client/domain/template_summary_diff_notification_endpoints.py @@ -0,0 +1,224 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class TemplateSummaryDiffNotificationEndpoints(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'kind': 'TemplateKind', + 'state_status': 'str', + 'id': 'str', + 'template_meta_name': 'str', + 'new': 'NotificationEndpointDiscriminator', + 'old': 'NotificationEndpointDiscriminator' + } + + attribute_map = { + 'kind': 'kind', + 'state_status': 'stateStatus', + 'id': 'id', + 'template_meta_name': 'templateMetaName', + 'new': 'new', + 'old': 'old' + } + + def __init__(self, kind=None, state_status=None, id=None, template_meta_name=None, new=None, old=None): # noqa: E501,D401,D403 + """TemplateSummaryDiffNotificationEndpoints - a model defined in OpenAPI.""" # noqa: E501 + self._kind = None + self._state_status = None + self._id = None + self._template_meta_name = None + self._new = None + self._old = None + self.discriminator = None + + if kind is not None: + self.kind = kind + if state_status is not None: + self.state_status = state_status + if id is not None: + self.id = id + if template_meta_name is not None: + self.template_meta_name = template_meta_name + if new is not None: + self.new = new + if old is not None: + self.old = old + + @property + def kind(self): + """Get the kind of this TemplateSummaryDiffNotificationEndpoints. + + :return: The kind of this TemplateSummaryDiffNotificationEndpoints. + :rtype: TemplateKind + """ # noqa: E501 + return self._kind + + @kind.setter + def kind(self, kind): + """Set the kind of this TemplateSummaryDiffNotificationEndpoints. + + :param kind: The kind of this TemplateSummaryDiffNotificationEndpoints. + :type: TemplateKind + """ # noqa: E501 + self._kind = kind + + @property + def state_status(self): + """Get the state_status of this TemplateSummaryDiffNotificationEndpoints. + + :return: The state_status of this TemplateSummaryDiffNotificationEndpoints. + :rtype: str + """ # noqa: E501 + return self._state_status + + @state_status.setter + def state_status(self, state_status): + """Set the state_status of this TemplateSummaryDiffNotificationEndpoints. + + :param state_status: The state_status of this TemplateSummaryDiffNotificationEndpoints. + :type: str + """ # noqa: E501 + self._state_status = state_status + + @property + def id(self): + """Get the id of this TemplateSummaryDiffNotificationEndpoints. + + :return: The id of this TemplateSummaryDiffNotificationEndpoints. + :rtype: str + """ # noqa: E501 + return self._id + + @id.setter + def id(self, id): + """Set the id of this TemplateSummaryDiffNotificationEndpoints. + + :param id: The id of this TemplateSummaryDiffNotificationEndpoints. + :type: str + """ # noqa: E501 + self._id = id + + @property + def template_meta_name(self): + """Get the template_meta_name of this TemplateSummaryDiffNotificationEndpoints. + + :return: The template_meta_name of this TemplateSummaryDiffNotificationEndpoints. + :rtype: str + """ # noqa: E501 + return self._template_meta_name + + @template_meta_name.setter + def template_meta_name(self, template_meta_name): + """Set the template_meta_name of this TemplateSummaryDiffNotificationEndpoints. + + :param template_meta_name: The template_meta_name of this TemplateSummaryDiffNotificationEndpoints. + :type: str + """ # noqa: E501 + self._template_meta_name = template_meta_name + + @property + def new(self): + """Get the new of this TemplateSummaryDiffNotificationEndpoints. + + :return: The new of this TemplateSummaryDiffNotificationEndpoints. + :rtype: NotificationEndpointDiscriminator + """ # noqa: E501 + return self._new + + @new.setter + def new(self, new): + """Set the new of this TemplateSummaryDiffNotificationEndpoints. + + :param new: The new of this TemplateSummaryDiffNotificationEndpoints. + :type: NotificationEndpointDiscriminator + """ # noqa: E501 + self._new = new + + @property + def old(self): + """Get the old of this TemplateSummaryDiffNotificationEndpoints. + + :return: The old of this TemplateSummaryDiffNotificationEndpoints. + :rtype: NotificationEndpointDiscriminator + """ # noqa: E501 + return self._old + + @old.setter + def old(self, old): + """Set the old of this TemplateSummaryDiffNotificationEndpoints. + + :param old: The old of this TemplateSummaryDiffNotificationEndpoints. + :type: NotificationEndpointDiscriminator + """ # noqa: E501 + self._old = old + + def to_dict(self): + """Return the model properties as a dict.""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Return the string representation of the model.""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`.""" + return self.to_str() + + def __eq__(self, other): + """Return true if both objects are equal.""" + if not isinstance(other, TemplateSummaryDiffNotificationEndpoints): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Return true if both objects are not equal.""" + return not self == other diff --git a/influxdb_client/domain/template_summary_diff_notification_rules.py b/influxdb_client/domain/template_summary_diff_notification_rules.py new file mode 100644 index 00000000..72402be0 --- /dev/null +++ b/influxdb_client/domain/template_summary_diff_notification_rules.py @@ -0,0 +1,224 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class TemplateSummaryDiffNotificationRules(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'kind': 'TemplateKind', + 'state_status': 'str', + 'id': 'str', + 'template_meta_name': 'str', + 'new': 'TemplateSummaryDiffNotificationRulesNewOld', + 'old': 'TemplateSummaryDiffNotificationRulesNewOld' + } + + attribute_map = { + 'kind': 'kind', + 'state_status': 'stateStatus', + 'id': 'id', + 'template_meta_name': 'templateMetaName', + 'new': 'new', + 'old': 'old' + } + + def __init__(self, kind=None, state_status=None, id=None, template_meta_name=None, new=None, old=None): # noqa: E501,D401,D403 + """TemplateSummaryDiffNotificationRules - a model defined in OpenAPI.""" # noqa: E501 + self._kind = None + self._state_status = None + self._id = None + self._template_meta_name = None + self._new = None + self._old = None + self.discriminator = None + + if kind is not None: + self.kind = kind + if state_status is not None: + self.state_status = state_status + if id is not None: + self.id = id + if template_meta_name is not None: + self.template_meta_name = template_meta_name + if new is not None: + self.new = new + if old is not None: + self.old = old + + @property + def kind(self): + """Get the kind of this TemplateSummaryDiffNotificationRules. + + :return: The kind of this TemplateSummaryDiffNotificationRules. + :rtype: TemplateKind + """ # noqa: E501 + return self._kind + + @kind.setter + def kind(self, kind): + """Set the kind of this TemplateSummaryDiffNotificationRules. + + :param kind: The kind of this TemplateSummaryDiffNotificationRules. + :type: TemplateKind + """ # noqa: E501 + self._kind = kind + + @property + def state_status(self): + """Get the state_status of this TemplateSummaryDiffNotificationRules. + + :return: The state_status of this TemplateSummaryDiffNotificationRules. + :rtype: str + """ # noqa: E501 + return self._state_status + + @state_status.setter + def state_status(self, state_status): + """Set the state_status of this TemplateSummaryDiffNotificationRules. + + :param state_status: The state_status of this TemplateSummaryDiffNotificationRules. + :type: str + """ # noqa: E501 + self._state_status = state_status + + @property + def id(self): + """Get the id of this TemplateSummaryDiffNotificationRules. + + :return: The id of this TemplateSummaryDiffNotificationRules. + :rtype: str + """ # noqa: E501 + return self._id + + @id.setter + def id(self, id): + """Set the id of this TemplateSummaryDiffNotificationRules. + + :param id: The id of this TemplateSummaryDiffNotificationRules. + :type: str + """ # noqa: E501 + self._id = id + + @property + def template_meta_name(self): + """Get the template_meta_name of this TemplateSummaryDiffNotificationRules. + + :return: The template_meta_name of this TemplateSummaryDiffNotificationRules. + :rtype: str + """ # noqa: E501 + return self._template_meta_name + + @template_meta_name.setter + def template_meta_name(self, template_meta_name): + """Set the template_meta_name of this TemplateSummaryDiffNotificationRules. + + :param template_meta_name: The template_meta_name of this TemplateSummaryDiffNotificationRules. + :type: str + """ # noqa: E501 + self._template_meta_name = template_meta_name + + @property + def new(self): + """Get the new of this TemplateSummaryDiffNotificationRules. + + :return: The new of this TemplateSummaryDiffNotificationRules. + :rtype: TemplateSummaryDiffNotificationRulesNewOld + """ # noqa: E501 + return self._new + + @new.setter + def new(self, new): + """Set the new of this TemplateSummaryDiffNotificationRules. + + :param new: The new of this TemplateSummaryDiffNotificationRules. + :type: TemplateSummaryDiffNotificationRulesNewOld + """ # noqa: E501 + self._new = new + + @property + def old(self): + """Get the old of this TemplateSummaryDiffNotificationRules. + + :return: The old of this TemplateSummaryDiffNotificationRules. + :rtype: TemplateSummaryDiffNotificationRulesNewOld + """ # noqa: E501 + return self._old + + @old.setter + def old(self, old): + """Set the old of this TemplateSummaryDiffNotificationRules. + + :param old: The old of this TemplateSummaryDiffNotificationRules. + :type: TemplateSummaryDiffNotificationRulesNewOld + """ # noqa: E501 + self._old = old + + def to_dict(self): + """Return the model properties as a dict.""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Return the string representation of the model.""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`.""" + return self.to_str() + + def __eq__(self, other): + """Return true if both objects are equal.""" + if not isinstance(other, TemplateSummaryDiffNotificationRules): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Return true if both objects are not equal.""" + return not self == other diff --git a/influxdb_client/domain/template_summary_diff_notification_rules_new_old.py b/influxdb_client/domain/template_summary_diff_notification_rules_new_old.py new file mode 100644 index 00000000..787526f0 --- /dev/null +++ b/influxdb_client/domain/template_summary_diff_notification_rules_new_old.py @@ -0,0 +1,339 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class TemplateSummaryDiffNotificationRulesNewOld(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'name': 'str', + 'description': 'str', + 'endpoint_name': 'str', + 'endpoint_id': 'str', + 'endpoint_type': 'str', + 'every': 'str', + 'offset': 'str', + 'message_template': 'str', + 'status': 'str', + 'status_rules': 'list[TemplateSummarySummaryStatusRules]', + 'tag_rules': 'list[TemplateSummarySummaryTagRules]' + } + + attribute_map = { + 'name': 'name', + 'description': 'description', + 'endpoint_name': 'endpointName', + 'endpoint_id': 'endpointID', + 'endpoint_type': 'endpointType', + 'every': 'every', + 'offset': 'offset', + 'message_template': 'messageTemplate', + 'status': 'status', + 'status_rules': 'statusRules', + 'tag_rules': 'tagRules' + } + + def __init__(self, name=None, description=None, endpoint_name=None, endpoint_id=None, endpoint_type=None, every=None, offset=None, message_template=None, status=None, status_rules=None, tag_rules=None): # noqa: E501,D401,D403 + """TemplateSummaryDiffNotificationRulesNewOld - a model defined in OpenAPI.""" # noqa: E501 + self._name = None + self._description = None + self._endpoint_name = None + self._endpoint_id = None + self._endpoint_type = None + self._every = None + self._offset = None + self._message_template = None + self._status = None + self._status_rules = None + self._tag_rules = None + self.discriminator = None + + if name is not None: + self.name = name + if description is not None: + self.description = description + if endpoint_name is not None: + self.endpoint_name = endpoint_name + if endpoint_id is not None: + self.endpoint_id = endpoint_id + if endpoint_type is not None: + self.endpoint_type = endpoint_type + if every is not None: + self.every = every + if offset is not None: + self.offset = offset + if message_template is not None: + self.message_template = message_template + if status is not None: + self.status = status + if status_rules is not None: + self.status_rules = status_rules + if tag_rules is not None: + self.tag_rules = tag_rules + + @property + def name(self): + """Get the name of this TemplateSummaryDiffNotificationRulesNewOld. + + :return: The name of this TemplateSummaryDiffNotificationRulesNewOld. + :rtype: str + """ # noqa: E501 + return self._name + + @name.setter + def name(self, name): + """Set the name of this TemplateSummaryDiffNotificationRulesNewOld. + + :param name: The name of this TemplateSummaryDiffNotificationRulesNewOld. + :type: str + """ # noqa: E501 + self._name = name + + @property + def description(self): + """Get the description of this TemplateSummaryDiffNotificationRulesNewOld. + + :return: The description of this TemplateSummaryDiffNotificationRulesNewOld. + :rtype: str + """ # noqa: E501 + return self._description + + @description.setter + def description(self, description): + """Set the description of this TemplateSummaryDiffNotificationRulesNewOld. + + :param description: The description of this TemplateSummaryDiffNotificationRulesNewOld. + :type: str + """ # noqa: E501 + self._description = description + + @property + def endpoint_name(self): + """Get the endpoint_name of this TemplateSummaryDiffNotificationRulesNewOld. + + :return: The endpoint_name of this TemplateSummaryDiffNotificationRulesNewOld. + :rtype: str + """ # noqa: E501 + return self._endpoint_name + + @endpoint_name.setter + def endpoint_name(self, endpoint_name): + """Set the endpoint_name of this TemplateSummaryDiffNotificationRulesNewOld. + + :param endpoint_name: The endpoint_name of this TemplateSummaryDiffNotificationRulesNewOld. + :type: str + """ # noqa: E501 + self._endpoint_name = endpoint_name + + @property + def endpoint_id(self): + """Get the endpoint_id of this TemplateSummaryDiffNotificationRulesNewOld. + + :return: The endpoint_id of this TemplateSummaryDiffNotificationRulesNewOld. + :rtype: str + """ # noqa: E501 + return self._endpoint_id + + @endpoint_id.setter + def endpoint_id(self, endpoint_id): + """Set the endpoint_id of this TemplateSummaryDiffNotificationRulesNewOld. + + :param endpoint_id: The endpoint_id of this TemplateSummaryDiffNotificationRulesNewOld. + :type: str + """ # noqa: E501 + self._endpoint_id = endpoint_id + + @property + def endpoint_type(self): + """Get the endpoint_type of this TemplateSummaryDiffNotificationRulesNewOld. + + :return: The endpoint_type of this TemplateSummaryDiffNotificationRulesNewOld. + :rtype: str + """ # noqa: E501 + return self._endpoint_type + + @endpoint_type.setter + def endpoint_type(self, endpoint_type): + """Set the endpoint_type of this TemplateSummaryDiffNotificationRulesNewOld. + + :param endpoint_type: The endpoint_type of this TemplateSummaryDiffNotificationRulesNewOld. + :type: str + """ # noqa: E501 + self._endpoint_type = endpoint_type + + @property + def every(self): + """Get the every of this TemplateSummaryDiffNotificationRulesNewOld. + + :return: The every of this TemplateSummaryDiffNotificationRulesNewOld. + :rtype: str + """ # noqa: E501 + return self._every + + @every.setter + def every(self, every): + """Set the every of this TemplateSummaryDiffNotificationRulesNewOld. + + :param every: The every of this TemplateSummaryDiffNotificationRulesNewOld. + :type: str + """ # noqa: E501 + self._every = every + + @property + def offset(self): + """Get the offset of this TemplateSummaryDiffNotificationRulesNewOld. + + :return: The offset of this TemplateSummaryDiffNotificationRulesNewOld. + :rtype: str + """ # noqa: E501 + return self._offset + + @offset.setter + def offset(self, offset): + """Set the offset of this TemplateSummaryDiffNotificationRulesNewOld. + + :param offset: The offset of this TemplateSummaryDiffNotificationRulesNewOld. + :type: str + """ # noqa: E501 + self._offset = offset + + @property + def message_template(self): + """Get the message_template of this TemplateSummaryDiffNotificationRulesNewOld. + + :return: The message_template of this TemplateSummaryDiffNotificationRulesNewOld. + :rtype: str + """ # noqa: E501 + return self._message_template + + @message_template.setter + def message_template(self, message_template): + """Set the message_template of this TemplateSummaryDiffNotificationRulesNewOld. + + :param message_template: The message_template of this TemplateSummaryDiffNotificationRulesNewOld. + :type: str + """ # noqa: E501 + self._message_template = message_template + + @property + def status(self): + """Get the status of this TemplateSummaryDiffNotificationRulesNewOld. + + :return: The status of this TemplateSummaryDiffNotificationRulesNewOld. + :rtype: str + """ # noqa: E501 + return self._status + + @status.setter + def status(self, status): + """Set the status of this TemplateSummaryDiffNotificationRulesNewOld. + + :param status: The status of this TemplateSummaryDiffNotificationRulesNewOld. + :type: str + """ # noqa: E501 + self._status = status + + @property + def status_rules(self): + """Get the status_rules of this TemplateSummaryDiffNotificationRulesNewOld. + + :return: The status_rules of this TemplateSummaryDiffNotificationRulesNewOld. + :rtype: list[TemplateSummarySummaryStatusRules] + """ # noqa: E501 + return self._status_rules + + @status_rules.setter + def status_rules(self, status_rules): + """Set the status_rules of this TemplateSummaryDiffNotificationRulesNewOld. + + :param status_rules: The status_rules of this TemplateSummaryDiffNotificationRulesNewOld. + :type: list[TemplateSummarySummaryStatusRules] + """ # noqa: E501 + self._status_rules = status_rules + + @property + def tag_rules(self): + """Get the tag_rules of this TemplateSummaryDiffNotificationRulesNewOld. + + :return: The tag_rules of this TemplateSummaryDiffNotificationRulesNewOld. + :rtype: list[TemplateSummarySummaryTagRules] + """ # noqa: E501 + return self._tag_rules + + @tag_rules.setter + def tag_rules(self, tag_rules): + """Set the tag_rules of this TemplateSummaryDiffNotificationRulesNewOld. + + :param tag_rules: The tag_rules of this TemplateSummaryDiffNotificationRulesNewOld. + :type: list[TemplateSummarySummaryTagRules] + """ # noqa: E501 + self._tag_rules = tag_rules + + def to_dict(self): + """Return the model properties as a dict.""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Return the string representation of the model.""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`.""" + return self.to_str() + + def __eq__(self, other): + """Return true if both objects are equal.""" + if not isinstance(other, TemplateSummaryDiffNotificationRulesNewOld): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Return true if both objects are not equal.""" + return not self == other diff --git a/influxdb_client/domain/template_summary_diff_tasks.py b/influxdb_client/domain/template_summary_diff_tasks.py new file mode 100644 index 00000000..0fa84412 --- /dev/null +++ b/influxdb_client/domain/template_summary_diff_tasks.py @@ -0,0 +1,224 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class TemplateSummaryDiffTasks(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'kind': 'TemplateKind', + 'state_status': 'str', + 'id': 'str', + 'template_meta_name': 'str', + 'new': 'TemplateSummaryDiffTasksNewOld', + 'old': 'TemplateSummaryDiffTasksNewOld' + } + + attribute_map = { + 'kind': 'kind', + 'state_status': 'stateStatus', + 'id': 'id', + 'template_meta_name': 'templateMetaName', + 'new': 'new', + 'old': 'old' + } + + def __init__(self, kind=None, state_status=None, id=None, template_meta_name=None, new=None, old=None): # noqa: E501,D401,D403 + """TemplateSummaryDiffTasks - a model defined in OpenAPI.""" # noqa: E501 + self._kind = None + self._state_status = None + self._id = None + self._template_meta_name = None + self._new = None + self._old = None + self.discriminator = None + + if kind is not None: + self.kind = kind + if state_status is not None: + self.state_status = state_status + if id is not None: + self.id = id + if template_meta_name is not None: + self.template_meta_name = template_meta_name + if new is not None: + self.new = new + if old is not None: + self.old = old + + @property + def kind(self): + """Get the kind of this TemplateSummaryDiffTasks. + + :return: The kind of this TemplateSummaryDiffTasks. + :rtype: TemplateKind + """ # noqa: E501 + return self._kind + + @kind.setter + def kind(self, kind): + """Set the kind of this TemplateSummaryDiffTasks. + + :param kind: The kind of this TemplateSummaryDiffTasks. + :type: TemplateKind + """ # noqa: E501 + self._kind = kind + + @property + def state_status(self): + """Get the state_status of this TemplateSummaryDiffTasks. + + :return: The state_status of this TemplateSummaryDiffTasks. + :rtype: str + """ # noqa: E501 + return self._state_status + + @state_status.setter + def state_status(self, state_status): + """Set the state_status of this TemplateSummaryDiffTasks. + + :param state_status: The state_status of this TemplateSummaryDiffTasks. + :type: str + """ # noqa: E501 + self._state_status = state_status + + @property + def id(self): + """Get the id of this TemplateSummaryDiffTasks. + + :return: The id of this TemplateSummaryDiffTasks. + :rtype: str + """ # noqa: E501 + return self._id + + @id.setter + def id(self, id): + """Set the id of this TemplateSummaryDiffTasks. + + :param id: The id of this TemplateSummaryDiffTasks. + :type: str + """ # noqa: E501 + self._id = id + + @property + def template_meta_name(self): + """Get the template_meta_name of this TemplateSummaryDiffTasks. + + :return: The template_meta_name of this TemplateSummaryDiffTasks. + :rtype: str + """ # noqa: E501 + return self._template_meta_name + + @template_meta_name.setter + def template_meta_name(self, template_meta_name): + """Set the template_meta_name of this TemplateSummaryDiffTasks. + + :param template_meta_name: The template_meta_name of this TemplateSummaryDiffTasks. + :type: str + """ # noqa: E501 + self._template_meta_name = template_meta_name + + @property + def new(self): + """Get the new of this TemplateSummaryDiffTasks. + + :return: The new of this TemplateSummaryDiffTasks. + :rtype: TemplateSummaryDiffTasksNewOld + """ # noqa: E501 + return self._new + + @new.setter + def new(self, new): + """Set the new of this TemplateSummaryDiffTasks. + + :param new: The new of this TemplateSummaryDiffTasks. + :type: TemplateSummaryDiffTasksNewOld + """ # noqa: E501 + self._new = new + + @property + def old(self): + """Get the old of this TemplateSummaryDiffTasks. + + :return: The old of this TemplateSummaryDiffTasks. + :rtype: TemplateSummaryDiffTasksNewOld + """ # noqa: E501 + return self._old + + @old.setter + def old(self, old): + """Set the old of this TemplateSummaryDiffTasks. + + :param old: The old of this TemplateSummaryDiffTasks. + :type: TemplateSummaryDiffTasksNewOld + """ # noqa: E501 + self._old = old + + def to_dict(self): + """Return the model properties as a dict.""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Return the string representation of the model.""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`.""" + return self.to_str() + + def __eq__(self, other): + """Return true if both objects are equal.""" + if not isinstance(other, TemplateSummaryDiffTasks): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Return true if both objects are not equal.""" + return not self == other diff --git a/influxdb_client/domain/template_summary_diff_tasks_new_old.py b/influxdb_client/domain/template_summary_diff_tasks_new_old.py new file mode 100644 index 00000000..ec6dcfff --- /dev/null +++ b/influxdb_client/domain/template_summary_diff_tasks_new_old.py @@ -0,0 +1,247 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class TemplateSummaryDiffTasksNewOld(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'name': 'str', + 'cron': 'str', + 'description': 'str', + 'every': 'str', + 'offset': 'str', + 'query': 'str', + 'status': 'str' + } + + attribute_map = { + 'name': 'name', + 'cron': 'cron', + 'description': 'description', + 'every': 'every', + 'offset': 'offset', + 'query': 'query', + 'status': 'status' + } + + def __init__(self, name=None, cron=None, description=None, every=None, offset=None, query=None, status=None): # noqa: E501,D401,D403 + """TemplateSummaryDiffTasksNewOld - a model defined in OpenAPI.""" # noqa: E501 + self._name = None + self._cron = None + self._description = None + self._every = None + self._offset = None + self._query = None + self._status = None + self.discriminator = None + + if name is not None: + self.name = name + if cron is not None: + self.cron = cron + if description is not None: + self.description = description + if every is not None: + self.every = every + if offset is not None: + self.offset = offset + if query is not None: + self.query = query + if status is not None: + self.status = status + + @property + def name(self): + """Get the name of this TemplateSummaryDiffTasksNewOld. + + :return: The name of this TemplateSummaryDiffTasksNewOld. + :rtype: str + """ # noqa: E501 + return self._name + + @name.setter + def name(self, name): + """Set the name of this TemplateSummaryDiffTasksNewOld. + + :param name: The name of this TemplateSummaryDiffTasksNewOld. + :type: str + """ # noqa: E501 + self._name = name + + @property + def cron(self): + """Get the cron of this TemplateSummaryDiffTasksNewOld. + + :return: The cron of this TemplateSummaryDiffTasksNewOld. + :rtype: str + """ # noqa: E501 + return self._cron + + @cron.setter + def cron(self, cron): + """Set the cron of this TemplateSummaryDiffTasksNewOld. + + :param cron: The cron of this TemplateSummaryDiffTasksNewOld. + :type: str + """ # noqa: E501 + self._cron = cron + + @property + def description(self): + """Get the description of this TemplateSummaryDiffTasksNewOld. + + :return: The description of this TemplateSummaryDiffTasksNewOld. + :rtype: str + """ # noqa: E501 + return self._description + + @description.setter + def description(self, description): + """Set the description of this TemplateSummaryDiffTasksNewOld. + + :param description: The description of this TemplateSummaryDiffTasksNewOld. + :type: str + """ # noqa: E501 + self._description = description + + @property + def every(self): + """Get the every of this TemplateSummaryDiffTasksNewOld. + + :return: The every of this TemplateSummaryDiffTasksNewOld. + :rtype: str + """ # noqa: E501 + return self._every + + @every.setter + def every(self, every): + """Set the every of this TemplateSummaryDiffTasksNewOld. + + :param every: The every of this TemplateSummaryDiffTasksNewOld. + :type: str + """ # noqa: E501 + self._every = every + + @property + def offset(self): + """Get the offset of this TemplateSummaryDiffTasksNewOld. + + :return: The offset of this TemplateSummaryDiffTasksNewOld. + :rtype: str + """ # noqa: E501 + return self._offset + + @offset.setter + def offset(self, offset): + """Set the offset of this TemplateSummaryDiffTasksNewOld. + + :param offset: The offset of this TemplateSummaryDiffTasksNewOld. + :type: str + """ # noqa: E501 + self._offset = offset + + @property + def query(self): + """Get the query of this TemplateSummaryDiffTasksNewOld. + + :return: The query of this TemplateSummaryDiffTasksNewOld. + :rtype: str + """ # noqa: E501 + return self._query + + @query.setter + def query(self, query): + """Set the query of this TemplateSummaryDiffTasksNewOld. + + :param query: The query of this TemplateSummaryDiffTasksNewOld. + :type: str + """ # noqa: E501 + self._query = query + + @property + def status(self): + """Get the status of this TemplateSummaryDiffTasksNewOld. + + :return: The status of this TemplateSummaryDiffTasksNewOld. + :rtype: str + """ # noqa: E501 + return self._status + + @status.setter + def status(self, status): + """Set the status of this TemplateSummaryDiffTasksNewOld. + + :param status: The status of this TemplateSummaryDiffTasksNewOld. + :type: str + """ # noqa: E501 + self._status = status + + def to_dict(self): + """Return the model properties as a dict.""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Return the string representation of the model.""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`.""" + return self.to_str() + + def __eq__(self, other): + """Return true if both objects are equal.""" + if not isinstance(other, TemplateSummaryDiffTasksNewOld): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Return true if both objects are not equal.""" + return not self == other diff --git a/influxdb_client/domain/template_summary_diff_telegraf_configs.py b/influxdb_client/domain/template_summary_diff_telegraf_configs.py new file mode 100644 index 00000000..f08828dc --- /dev/null +++ b/influxdb_client/domain/template_summary_diff_telegraf_configs.py @@ -0,0 +1,224 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class TemplateSummaryDiffTelegrafConfigs(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'kind': 'TemplateKind', + 'state_status': 'str', + 'id': 'str', + 'template_meta_name': 'str', + 'new': 'TelegrafRequest', + 'old': 'TelegrafRequest' + } + + attribute_map = { + 'kind': 'kind', + 'state_status': 'stateStatus', + 'id': 'id', + 'template_meta_name': 'templateMetaName', + 'new': 'new', + 'old': 'old' + } + + def __init__(self, kind=None, state_status=None, id=None, template_meta_name=None, new=None, old=None): # noqa: E501,D401,D403 + """TemplateSummaryDiffTelegrafConfigs - a model defined in OpenAPI.""" # noqa: E501 + self._kind = None + self._state_status = None + self._id = None + self._template_meta_name = None + self._new = None + self._old = None + self.discriminator = None + + if kind is not None: + self.kind = kind + if state_status is not None: + self.state_status = state_status + if id is not None: + self.id = id + if template_meta_name is not None: + self.template_meta_name = template_meta_name + if new is not None: + self.new = new + if old is not None: + self.old = old + + @property + def kind(self): + """Get the kind of this TemplateSummaryDiffTelegrafConfigs. + + :return: The kind of this TemplateSummaryDiffTelegrafConfigs. + :rtype: TemplateKind + """ # noqa: E501 + return self._kind + + @kind.setter + def kind(self, kind): + """Set the kind of this TemplateSummaryDiffTelegrafConfigs. + + :param kind: The kind of this TemplateSummaryDiffTelegrafConfigs. + :type: TemplateKind + """ # noqa: E501 + self._kind = kind + + @property + def state_status(self): + """Get the state_status of this TemplateSummaryDiffTelegrafConfigs. + + :return: The state_status of this TemplateSummaryDiffTelegrafConfigs. + :rtype: str + """ # noqa: E501 + return self._state_status + + @state_status.setter + def state_status(self, state_status): + """Set the state_status of this TemplateSummaryDiffTelegrafConfigs. + + :param state_status: The state_status of this TemplateSummaryDiffTelegrafConfigs. + :type: str + """ # noqa: E501 + self._state_status = state_status + + @property + def id(self): + """Get the id of this TemplateSummaryDiffTelegrafConfigs. + + :return: The id of this TemplateSummaryDiffTelegrafConfigs. + :rtype: str + """ # noqa: E501 + return self._id + + @id.setter + def id(self, id): + """Set the id of this TemplateSummaryDiffTelegrafConfigs. + + :param id: The id of this TemplateSummaryDiffTelegrafConfigs. + :type: str + """ # noqa: E501 + self._id = id + + @property + def template_meta_name(self): + """Get the template_meta_name of this TemplateSummaryDiffTelegrafConfigs. + + :return: The template_meta_name of this TemplateSummaryDiffTelegrafConfigs. + :rtype: str + """ # noqa: E501 + return self._template_meta_name + + @template_meta_name.setter + def template_meta_name(self, template_meta_name): + """Set the template_meta_name of this TemplateSummaryDiffTelegrafConfigs. + + :param template_meta_name: The template_meta_name of this TemplateSummaryDiffTelegrafConfigs. + :type: str + """ # noqa: E501 + self._template_meta_name = template_meta_name + + @property + def new(self): + """Get the new of this TemplateSummaryDiffTelegrafConfigs. + + :return: The new of this TemplateSummaryDiffTelegrafConfigs. + :rtype: TelegrafRequest + """ # noqa: E501 + return self._new + + @new.setter + def new(self, new): + """Set the new of this TemplateSummaryDiffTelegrafConfigs. + + :param new: The new of this TemplateSummaryDiffTelegrafConfigs. + :type: TelegrafRequest + """ # noqa: E501 + self._new = new + + @property + def old(self): + """Get the old of this TemplateSummaryDiffTelegrafConfigs. + + :return: The old of this TemplateSummaryDiffTelegrafConfigs. + :rtype: TelegrafRequest + """ # noqa: E501 + return self._old + + @old.setter + def old(self, old): + """Set the old of this TemplateSummaryDiffTelegrafConfigs. + + :param old: The old of this TemplateSummaryDiffTelegrafConfigs. + :type: TelegrafRequest + """ # noqa: E501 + self._old = old + + def to_dict(self): + """Return the model properties as a dict.""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Return the string representation of the model.""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`.""" + return self.to_str() + + def __eq__(self, other): + """Return true if both objects are equal.""" + if not isinstance(other, TemplateSummaryDiffTelegrafConfigs): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Return true if both objects are not equal.""" + return not self == other diff --git a/influxdb_client/domain/template_summary_diff_variables.py b/influxdb_client/domain/template_summary_diff_variables.py new file mode 100644 index 00000000..6ceace15 --- /dev/null +++ b/influxdb_client/domain/template_summary_diff_variables.py @@ -0,0 +1,224 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class TemplateSummaryDiffVariables(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'kind': 'TemplateKind', + 'state_status': 'str', + 'id': 'str', + 'template_meta_name': 'str', + 'new': 'TemplateSummaryDiffVariablesNewOld', + 'old': 'TemplateSummaryDiffVariablesNewOld' + } + + attribute_map = { + 'kind': 'kind', + 'state_status': 'stateStatus', + 'id': 'id', + 'template_meta_name': 'templateMetaName', + 'new': 'new', + 'old': 'old' + } + + def __init__(self, kind=None, state_status=None, id=None, template_meta_name=None, new=None, old=None): # noqa: E501,D401,D403 + """TemplateSummaryDiffVariables - a model defined in OpenAPI.""" # noqa: E501 + self._kind = None + self._state_status = None + self._id = None + self._template_meta_name = None + self._new = None + self._old = None + self.discriminator = None + + if kind is not None: + self.kind = kind + if state_status is not None: + self.state_status = state_status + if id is not None: + self.id = id + if template_meta_name is not None: + self.template_meta_name = template_meta_name + if new is not None: + self.new = new + if old is not None: + self.old = old + + @property + def kind(self): + """Get the kind of this TemplateSummaryDiffVariables. + + :return: The kind of this TemplateSummaryDiffVariables. + :rtype: TemplateKind + """ # noqa: E501 + return self._kind + + @kind.setter + def kind(self, kind): + """Set the kind of this TemplateSummaryDiffVariables. + + :param kind: The kind of this TemplateSummaryDiffVariables. + :type: TemplateKind + """ # noqa: E501 + self._kind = kind + + @property + def state_status(self): + """Get the state_status of this TemplateSummaryDiffVariables. + + :return: The state_status of this TemplateSummaryDiffVariables. + :rtype: str + """ # noqa: E501 + return self._state_status + + @state_status.setter + def state_status(self, state_status): + """Set the state_status of this TemplateSummaryDiffVariables. + + :param state_status: The state_status of this TemplateSummaryDiffVariables. + :type: str + """ # noqa: E501 + self._state_status = state_status + + @property + def id(self): + """Get the id of this TemplateSummaryDiffVariables. + + :return: The id of this TemplateSummaryDiffVariables. + :rtype: str + """ # noqa: E501 + return self._id + + @id.setter + def id(self, id): + """Set the id of this TemplateSummaryDiffVariables. + + :param id: The id of this TemplateSummaryDiffVariables. + :type: str + """ # noqa: E501 + self._id = id + + @property + def template_meta_name(self): + """Get the template_meta_name of this TemplateSummaryDiffVariables. + + :return: The template_meta_name of this TemplateSummaryDiffVariables. + :rtype: str + """ # noqa: E501 + return self._template_meta_name + + @template_meta_name.setter + def template_meta_name(self, template_meta_name): + """Set the template_meta_name of this TemplateSummaryDiffVariables. + + :param template_meta_name: The template_meta_name of this TemplateSummaryDiffVariables. + :type: str + """ # noqa: E501 + self._template_meta_name = template_meta_name + + @property + def new(self): + """Get the new of this TemplateSummaryDiffVariables. + + :return: The new of this TemplateSummaryDiffVariables. + :rtype: TemplateSummaryDiffVariablesNewOld + """ # noqa: E501 + return self._new + + @new.setter + def new(self, new): + """Set the new of this TemplateSummaryDiffVariables. + + :param new: The new of this TemplateSummaryDiffVariables. + :type: TemplateSummaryDiffVariablesNewOld + """ # noqa: E501 + self._new = new + + @property + def old(self): + """Get the old of this TemplateSummaryDiffVariables. + + :return: The old of this TemplateSummaryDiffVariables. + :rtype: TemplateSummaryDiffVariablesNewOld + """ # noqa: E501 + return self._old + + @old.setter + def old(self, old): + """Set the old of this TemplateSummaryDiffVariables. + + :param old: The old of this TemplateSummaryDiffVariables. + :type: TemplateSummaryDiffVariablesNewOld + """ # noqa: E501 + self._old = old + + def to_dict(self): + """Return the model properties as a dict.""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Return the string representation of the model.""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`.""" + return self.to_str() + + def __eq__(self, other): + """Return true if both objects are equal.""" + if not isinstance(other, TemplateSummaryDiffVariables): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Return true if both objects are not equal.""" + return not self == other diff --git a/influxdb_client/domain/template_summary_diff_variables_new_old.py b/influxdb_client/domain/template_summary_diff_variables_new_old.py new file mode 100644 index 00000000..8b536ac9 --- /dev/null +++ b/influxdb_client/domain/template_summary_diff_variables_new_old.py @@ -0,0 +1,155 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class TemplateSummaryDiffVariablesNewOld(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'name': 'str', + 'description': 'str', + 'args': 'VariableProperties' + } + + attribute_map = { + 'name': 'name', + 'description': 'description', + 'args': 'args' + } + + def __init__(self, name=None, description=None, args=None): # noqa: E501,D401,D403 + """TemplateSummaryDiffVariablesNewOld - a model defined in OpenAPI.""" # noqa: E501 + self._name = None + self._description = None + self._args = None + self.discriminator = None + + if name is not None: + self.name = name + if description is not None: + self.description = description + if args is not None: + self.args = args + + @property + def name(self): + """Get the name of this TemplateSummaryDiffVariablesNewOld. + + :return: The name of this TemplateSummaryDiffVariablesNewOld. + :rtype: str + """ # noqa: E501 + return self._name + + @name.setter + def name(self, name): + """Set the name of this TemplateSummaryDiffVariablesNewOld. + + :param name: The name of this TemplateSummaryDiffVariablesNewOld. + :type: str + """ # noqa: E501 + self._name = name + + @property + def description(self): + """Get the description of this TemplateSummaryDiffVariablesNewOld. + + :return: The description of this TemplateSummaryDiffVariablesNewOld. + :rtype: str + """ # noqa: E501 + return self._description + + @description.setter + def description(self, description): + """Set the description of this TemplateSummaryDiffVariablesNewOld. + + :param description: The description of this TemplateSummaryDiffVariablesNewOld. + :type: str + """ # noqa: E501 + self._description = description + + @property + def args(self): + """Get the args of this TemplateSummaryDiffVariablesNewOld. + + :return: The args of this TemplateSummaryDiffVariablesNewOld. + :rtype: VariableProperties + """ # noqa: E501 + return self._args + + @args.setter + def args(self, args): + """Set the args of this TemplateSummaryDiffVariablesNewOld. + + :param args: The args of this TemplateSummaryDiffVariablesNewOld. + :type: VariableProperties + """ # noqa: E501 + self._args = args + + def to_dict(self): + """Return the model properties as a dict.""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Return the string representation of the model.""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`.""" + return self.to_str() + + def __eq__(self, other): + """Return true if both objects are equal.""" + if not isinstance(other, TemplateSummaryDiffVariablesNewOld): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Return true if both objects are not equal.""" + return not self == other diff --git a/influxdb_client/domain/template_summary_errors.py b/influxdb_client/domain/template_summary_errors.py new file mode 100644 index 00000000..aa6f572d --- /dev/null +++ b/influxdb_client/domain/template_summary_errors.py @@ -0,0 +1,178 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class TemplateSummaryErrors(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'kind': 'TemplateKind', + 'reason': 'str', + 'fields': 'list[str]', + 'indexes': 'list[int]' + } + + attribute_map = { + 'kind': 'kind', + 'reason': 'reason', + 'fields': 'fields', + 'indexes': 'indexes' + } + + def __init__(self, kind=None, reason=None, fields=None, indexes=None): # noqa: E501,D401,D403 + """TemplateSummaryErrors - a model defined in OpenAPI.""" # noqa: E501 + self._kind = None + self._reason = None + self._fields = None + self._indexes = None + self.discriminator = None + + if kind is not None: + self.kind = kind + if reason is not None: + self.reason = reason + if fields is not None: + self.fields = fields + if indexes is not None: + self.indexes = indexes + + @property + def kind(self): + """Get the kind of this TemplateSummaryErrors. + + :return: The kind of this TemplateSummaryErrors. + :rtype: TemplateKind + """ # noqa: E501 + return self._kind + + @kind.setter + def kind(self, kind): + """Set the kind of this TemplateSummaryErrors. + + :param kind: The kind of this TemplateSummaryErrors. + :type: TemplateKind + """ # noqa: E501 + self._kind = kind + + @property + def reason(self): + """Get the reason of this TemplateSummaryErrors. + + :return: The reason of this TemplateSummaryErrors. + :rtype: str + """ # noqa: E501 + return self._reason + + @reason.setter + def reason(self, reason): + """Set the reason of this TemplateSummaryErrors. + + :param reason: The reason of this TemplateSummaryErrors. + :type: str + """ # noqa: E501 + self._reason = reason + + @property + def fields(self): + """Get the fields of this TemplateSummaryErrors. + + :return: The fields of this TemplateSummaryErrors. + :rtype: list[str] + """ # noqa: E501 + return self._fields + + @fields.setter + def fields(self, fields): + """Set the fields of this TemplateSummaryErrors. + + :param fields: The fields of this TemplateSummaryErrors. + :type: list[str] + """ # noqa: E501 + self._fields = fields + + @property + def indexes(self): + """Get the indexes of this TemplateSummaryErrors. + + :return: The indexes of this TemplateSummaryErrors. + :rtype: list[int] + """ # noqa: E501 + return self._indexes + + @indexes.setter + def indexes(self, indexes): + """Set the indexes of this TemplateSummaryErrors. + + :param indexes: The indexes of this TemplateSummaryErrors. + :type: list[int] + """ # noqa: E501 + self._indexes = indexes + + def to_dict(self): + """Return the model properties as a dict.""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Return the string representation of the model.""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`.""" + return self.to_str() + + def __eq__(self, other): + """Return true if both objects are equal.""" + if not isinstance(other, TemplateSummaryErrors): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Return true if both objects are not equal.""" + return not self == other diff --git a/influxdb_client/domain/template_summary_label.py b/influxdb_client/domain/template_summary_label.py new file mode 100644 index 00000000..fad3cdb0 --- /dev/null +++ b/influxdb_client/domain/template_summary_label.py @@ -0,0 +1,247 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class TemplateSummaryLabel(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'id': 'str', + 'org_id': 'str', + 'kind': 'TemplateKind', + 'template_meta_name': 'str', + 'name': 'str', + 'properties': 'TemplateSummaryLabelProperties', + 'env_references': 'list[object]' + } + + attribute_map = { + 'id': 'id', + 'org_id': 'orgID', + 'kind': 'kind', + 'template_meta_name': 'templateMetaName', + 'name': 'name', + 'properties': 'properties', + 'env_references': 'envReferences' + } + + def __init__(self, id=None, org_id=None, kind=None, template_meta_name=None, name=None, properties=None, env_references=None): # noqa: E501,D401,D403 + """TemplateSummaryLabel - a model defined in OpenAPI.""" # noqa: E501 + self._id = None + self._org_id = None + self._kind = None + self._template_meta_name = None + self._name = None + self._properties = None + self._env_references = None + self.discriminator = None + + if id is not None: + self.id = id + if org_id is not None: + self.org_id = org_id + if kind is not None: + self.kind = kind + if template_meta_name is not None: + self.template_meta_name = template_meta_name + if name is not None: + self.name = name + if properties is not None: + self.properties = properties + if env_references is not None: + self.env_references = env_references + + @property + def id(self): + """Get the id of this TemplateSummaryLabel. + + :return: The id of this TemplateSummaryLabel. + :rtype: str + """ # noqa: E501 + return self._id + + @id.setter + def id(self, id): + """Set the id of this TemplateSummaryLabel. + + :param id: The id of this TemplateSummaryLabel. + :type: str + """ # noqa: E501 + self._id = id + + @property + def org_id(self): + """Get the org_id of this TemplateSummaryLabel. + + :return: The org_id of this TemplateSummaryLabel. + :rtype: str + """ # noqa: E501 + return self._org_id + + @org_id.setter + def org_id(self, org_id): + """Set the org_id of this TemplateSummaryLabel. + + :param org_id: The org_id of this TemplateSummaryLabel. + :type: str + """ # noqa: E501 + self._org_id = org_id + + @property + def kind(self): + """Get the kind of this TemplateSummaryLabel. + + :return: The kind of this TemplateSummaryLabel. + :rtype: TemplateKind + """ # noqa: E501 + return self._kind + + @kind.setter + def kind(self, kind): + """Set the kind of this TemplateSummaryLabel. + + :param kind: The kind of this TemplateSummaryLabel. + :type: TemplateKind + """ # noqa: E501 + self._kind = kind + + @property + def template_meta_name(self): + """Get the template_meta_name of this TemplateSummaryLabel. + + :return: The template_meta_name of this TemplateSummaryLabel. + :rtype: str + """ # noqa: E501 + return self._template_meta_name + + @template_meta_name.setter + def template_meta_name(self, template_meta_name): + """Set the template_meta_name of this TemplateSummaryLabel. + + :param template_meta_name: The template_meta_name of this TemplateSummaryLabel. + :type: str + """ # noqa: E501 + self._template_meta_name = template_meta_name + + @property + def name(self): + """Get the name of this TemplateSummaryLabel. + + :return: The name of this TemplateSummaryLabel. + :rtype: str + """ # noqa: E501 + return self._name + + @name.setter + def name(self, name): + """Set the name of this TemplateSummaryLabel. + + :param name: The name of this TemplateSummaryLabel. + :type: str + """ # noqa: E501 + self._name = name + + @property + def properties(self): + """Get the properties of this TemplateSummaryLabel. + + :return: The properties of this TemplateSummaryLabel. + :rtype: TemplateSummaryLabelProperties + """ # noqa: E501 + return self._properties + + @properties.setter + def properties(self, properties): + """Set the properties of this TemplateSummaryLabel. + + :param properties: The properties of this TemplateSummaryLabel. + :type: TemplateSummaryLabelProperties + """ # noqa: E501 + self._properties = properties + + @property + def env_references(self): + """Get the env_references of this TemplateSummaryLabel. + + :return: The env_references of this TemplateSummaryLabel. + :rtype: list[object] + """ # noqa: E501 + return self._env_references + + @env_references.setter + def env_references(self, env_references): + """Set the env_references of this TemplateSummaryLabel. + + :param env_references: The env_references of this TemplateSummaryLabel. + :type: list[object] + """ # noqa: E501 + self._env_references = env_references + + def to_dict(self): + """Return the model properties as a dict.""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Return the string representation of the model.""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`.""" + return self.to_str() + + def __eq__(self, other): + """Return true if both objects are equal.""" + if not isinstance(other, TemplateSummaryLabel): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Return true if both objects are not equal.""" + return not self == other diff --git a/influxdb_client/domain/template_summary_label_properties.py b/influxdb_client/domain/template_summary_label_properties.py new file mode 100644 index 00000000..5f125296 --- /dev/null +++ b/influxdb_client/domain/template_summary_label_properties.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class TemplateSummaryLabelProperties(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'color': 'str', + 'description': 'str' + } + + attribute_map = { + 'color': 'color', + 'description': 'description' + } + + def __init__(self, color=None, description=None): # noqa: E501,D401,D403 + """TemplateSummaryLabelProperties - a model defined in OpenAPI.""" # noqa: E501 + self._color = None + self._description = None + self.discriminator = None + + if color is not None: + self.color = color + if description is not None: + self.description = description + + @property + def color(self): + """Get the color of this TemplateSummaryLabelProperties. + + :return: The color of this TemplateSummaryLabelProperties. + :rtype: str + """ # noqa: E501 + return self._color + + @color.setter + def color(self, color): + """Set the color of this TemplateSummaryLabelProperties. + + :param color: The color of this TemplateSummaryLabelProperties. + :type: str + """ # noqa: E501 + self._color = color + + @property + def description(self): + """Get the description of this TemplateSummaryLabelProperties. + + :return: The description of this TemplateSummaryLabelProperties. + :rtype: str + """ # noqa: E501 + return self._description + + @description.setter + def description(self, description): + """Set the description of this TemplateSummaryLabelProperties. + + :param description: The description of this TemplateSummaryLabelProperties. + :type: str + """ # noqa: E501 + self._description = description + + def to_dict(self): + """Return the model properties as a dict.""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Return the string representation of the model.""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`.""" + return self.to_str() + + def __eq__(self, other): + """Return true if both objects are equal.""" + if not isinstance(other, TemplateSummaryLabelProperties): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Return true if both objects are not equal.""" + return not self == other diff --git a/influxdb_client/domain/template_summary_summary.py b/influxdb_client/domain/template_summary_summary.py new file mode 100644 index 00000000..1ca03b97 --- /dev/null +++ b/influxdb_client/domain/template_summary_summary.py @@ -0,0 +1,362 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class TemplateSummarySummary(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'buckets': 'list[TemplateSummarySummaryBuckets]', + 'checks': 'list[CheckDiscriminator]', + 'dashboards': 'list[TemplateSummarySummaryDashboards]', + 'labels': 'list[TemplateSummaryLabel]', + 'label_mappings': 'list[TemplateSummarySummaryLabelMappings]', + 'missing_env_refs': 'list[str]', + 'missing_secrets': 'list[str]', + 'notification_endpoints': 'list[NotificationEndpointDiscriminator]', + 'notification_rules': 'list[TemplateSummarySummaryNotificationRules]', + 'tasks': 'list[TemplateSummarySummaryTasks]', + 'telegraf_configs': 'list[TelegrafRequest]', + 'variables': 'list[TemplateSummarySummaryVariables]' + } + + attribute_map = { + 'buckets': 'buckets', + 'checks': 'checks', + 'dashboards': 'dashboards', + 'labels': 'labels', + 'label_mappings': 'labelMappings', + 'missing_env_refs': 'missingEnvRefs', + 'missing_secrets': 'missingSecrets', + 'notification_endpoints': 'notificationEndpoints', + 'notification_rules': 'notificationRules', + 'tasks': 'tasks', + 'telegraf_configs': 'telegrafConfigs', + 'variables': 'variables' + } + + def __init__(self, buckets=None, checks=None, dashboards=None, labels=None, label_mappings=None, missing_env_refs=None, missing_secrets=None, notification_endpoints=None, notification_rules=None, tasks=None, telegraf_configs=None, variables=None): # noqa: E501,D401,D403 + """TemplateSummarySummary - a model defined in OpenAPI.""" # noqa: E501 + self._buckets = None + self._checks = None + self._dashboards = None + self._labels = None + self._label_mappings = None + self._missing_env_refs = None + self._missing_secrets = None + self._notification_endpoints = None + self._notification_rules = None + self._tasks = None + self._telegraf_configs = None + self._variables = None + self.discriminator = None + + if buckets is not None: + self.buckets = buckets + if checks is not None: + self.checks = checks + if dashboards is not None: + self.dashboards = dashboards + if labels is not None: + self.labels = labels + if label_mappings is not None: + self.label_mappings = label_mappings + if missing_env_refs is not None: + self.missing_env_refs = missing_env_refs + if missing_secrets is not None: + self.missing_secrets = missing_secrets + if notification_endpoints is not None: + self.notification_endpoints = notification_endpoints + if notification_rules is not None: + self.notification_rules = notification_rules + if tasks is not None: + self.tasks = tasks + if telegraf_configs is not None: + self.telegraf_configs = telegraf_configs + if variables is not None: + self.variables = variables + + @property + def buckets(self): + """Get the buckets of this TemplateSummarySummary. + + :return: The buckets of this TemplateSummarySummary. + :rtype: list[TemplateSummarySummaryBuckets] + """ # noqa: E501 + return self._buckets + + @buckets.setter + def buckets(self, buckets): + """Set the buckets of this TemplateSummarySummary. + + :param buckets: The buckets of this TemplateSummarySummary. + :type: list[TemplateSummarySummaryBuckets] + """ # noqa: E501 + self._buckets = buckets + + @property + def checks(self): + """Get the checks of this TemplateSummarySummary. + + :return: The checks of this TemplateSummarySummary. + :rtype: list[CheckDiscriminator] + """ # noqa: E501 + return self._checks + + @checks.setter + def checks(self, checks): + """Set the checks of this TemplateSummarySummary. + + :param checks: The checks of this TemplateSummarySummary. + :type: list[CheckDiscriminator] + """ # noqa: E501 + self._checks = checks + + @property + def dashboards(self): + """Get the dashboards of this TemplateSummarySummary. + + :return: The dashboards of this TemplateSummarySummary. + :rtype: list[TemplateSummarySummaryDashboards] + """ # noqa: E501 + return self._dashboards + + @dashboards.setter + def dashboards(self, dashboards): + """Set the dashboards of this TemplateSummarySummary. + + :param dashboards: The dashboards of this TemplateSummarySummary. + :type: list[TemplateSummarySummaryDashboards] + """ # noqa: E501 + self._dashboards = dashboards + + @property + def labels(self): + """Get the labels of this TemplateSummarySummary. + + :return: The labels of this TemplateSummarySummary. + :rtype: list[TemplateSummaryLabel] + """ # noqa: E501 + return self._labels + + @labels.setter + def labels(self, labels): + """Set the labels of this TemplateSummarySummary. + + :param labels: The labels of this TemplateSummarySummary. + :type: list[TemplateSummaryLabel] + """ # noqa: E501 + self._labels = labels + + @property + def label_mappings(self): + """Get the label_mappings of this TemplateSummarySummary. + + :return: The label_mappings of this TemplateSummarySummary. + :rtype: list[TemplateSummarySummaryLabelMappings] + """ # noqa: E501 + return self._label_mappings + + @label_mappings.setter + def label_mappings(self, label_mappings): + """Set the label_mappings of this TemplateSummarySummary. + + :param label_mappings: The label_mappings of this TemplateSummarySummary. + :type: list[TemplateSummarySummaryLabelMappings] + """ # noqa: E501 + self._label_mappings = label_mappings + + @property + def missing_env_refs(self): + """Get the missing_env_refs of this TemplateSummarySummary. + + :return: The missing_env_refs of this TemplateSummarySummary. + :rtype: list[str] + """ # noqa: E501 + return self._missing_env_refs + + @missing_env_refs.setter + def missing_env_refs(self, missing_env_refs): + """Set the missing_env_refs of this TemplateSummarySummary. + + :param missing_env_refs: The missing_env_refs of this TemplateSummarySummary. + :type: list[str] + """ # noqa: E501 + self._missing_env_refs = missing_env_refs + + @property + def missing_secrets(self): + """Get the missing_secrets of this TemplateSummarySummary. + + :return: The missing_secrets of this TemplateSummarySummary. + :rtype: list[str] + """ # noqa: E501 + return self._missing_secrets + + @missing_secrets.setter + def missing_secrets(self, missing_secrets): + """Set the missing_secrets of this TemplateSummarySummary. + + :param missing_secrets: The missing_secrets of this TemplateSummarySummary. + :type: list[str] + """ # noqa: E501 + self._missing_secrets = missing_secrets + + @property + def notification_endpoints(self): + """Get the notification_endpoints of this TemplateSummarySummary. + + :return: The notification_endpoints of this TemplateSummarySummary. + :rtype: list[NotificationEndpointDiscriminator] + """ # noqa: E501 + return self._notification_endpoints + + @notification_endpoints.setter + def notification_endpoints(self, notification_endpoints): + """Set the notification_endpoints of this TemplateSummarySummary. + + :param notification_endpoints: The notification_endpoints of this TemplateSummarySummary. + :type: list[NotificationEndpointDiscriminator] + """ # noqa: E501 + self._notification_endpoints = notification_endpoints + + @property + def notification_rules(self): + """Get the notification_rules of this TemplateSummarySummary. + + :return: The notification_rules of this TemplateSummarySummary. + :rtype: list[TemplateSummarySummaryNotificationRules] + """ # noqa: E501 + return self._notification_rules + + @notification_rules.setter + def notification_rules(self, notification_rules): + """Set the notification_rules of this TemplateSummarySummary. + + :param notification_rules: The notification_rules of this TemplateSummarySummary. + :type: list[TemplateSummarySummaryNotificationRules] + """ # noqa: E501 + self._notification_rules = notification_rules + + @property + def tasks(self): + """Get the tasks of this TemplateSummarySummary. + + :return: The tasks of this TemplateSummarySummary. + :rtype: list[TemplateSummarySummaryTasks] + """ # noqa: E501 + return self._tasks + + @tasks.setter + def tasks(self, tasks): + """Set the tasks of this TemplateSummarySummary. + + :param tasks: The tasks of this TemplateSummarySummary. + :type: list[TemplateSummarySummaryTasks] + """ # noqa: E501 + self._tasks = tasks + + @property + def telegraf_configs(self): + """Get the telegraf_configs of this TemplateSummarySummary. + + :return: The telegraf_configs of this TemplateSummarySummary. + :rtype: list[TelegrafRequest] + """ # noqa: E501 + return self._telegraf_configs + + @telegraf_configs.setter + def telegraf_configs(self, telegraf_configs): + """Set the telegraf_configs of this TemplateSummarySummary. + + :param telegraf_configs: The telegraf_configs of this TemplateSummarySummary. + :type: list[TelegrafRequest] + """ # noqa: E501 + self._telegraf_configs = telegraf_configs + + @property + def variables(self): + """Get the variables of this TemplateSummarySummary. + + :return: The variables of this TemplateSummarySummary. + :rtype: list[TemplateSummarySummaryVariables] + """ # noqa: E501 + return self._variables + + @variables.setter + def variables(self, variables): + """Set the variables of this TemplateSummarySummary. + + :param variables: The variables of this TemplateSummarySummary. + :type: list[TemplateSummarySummaryVariables] + """ # noqa: E501 + self._variables = variables + + def to_dict(self): + """Return the model properties as a dict.""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Return the string representation of the model.""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`.""" + return self.to_str() + + def __eq__(self, other): + """Return true if both objects are equal.""" + if not isinstance(other, TemplateSummarySummary): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Return true if both objects are not equal.""" + return not self == other diff --git a/influxdb_client/domain/template_summary_summary_buckets.py b/influxdb_client/domain/template_summary_summary_buckets.py new file mode 100644 index 00000000..ccb5ada6 --- /dev/null +++ b/influxdb_client/domain/template_summary_summary_buckets.py @@ -0,0 +1,293 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class TemplateSummarySummaryBuckets(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'id': 'str', + 'org_id': 'str', + 'kind': 'TemplateKind', + 'template_meta_name': 'str', + 'name': 'str', + 'description': 'str', + 'retention_period': 'int', + 'label_associations': 'list[TemplateSummaryLabel]', + 'env_references': 'list[object]' + } + + attribute_map = { + 'id': 'id', + 'org_id': 'orgID', + 'kind': 'kind', + 'template_meta_name': 'templateMetaName', + 'name': 'name', + 'description': 'description', + 'retention_period': 'retentionPeriod', + 'label_associations': 'labelAssociations', + 'env_references': 'envReferences' + } + + def __init__(self, id=None, org_id=None, kind=None, template_meta_name=None, name=None, description=None, retention_period=None, label_associations=None, env_references=None): # noqa: E501,D401,D403 + """TemplateSummarySummaryBuckets - a model defined in OpenAPI.""" # noqa: E501 + self._id = None + self._org_id = None + self._kind = None + self._template_meta_name = None + self._name = None + self._description = None + self._retention_period = None + self._label_associations = None + self._env_references = None + self.discriminator = None + + if id is not None: + self.id = id + if org_id is not None: + self.org_id = org_id + if kind is not None: + self.kind = kind + if template_meta_name is not None: + self.template_meta_name = template_meta_name + if name is not None: + self.name = name + if description is not None: + self.description = description + if retention_period is not None: + self.retention_period = retention_period + if label_associations is not None: + self.label_associations = label_associations + if env_references is not None: + self.env_references = env_references + + @property + def id(self): + """Get the id of this TemplateSummarySummaryBuckets. + + :return: The id of this TemplateSummarySummaryBuckets. + :rtype: str + """ # noqa: E501 + return self._id + + @id.setter + def id(self, id): + """Set the id of this TemplateSummarySummaryBuckets. + + :param id: The id of this TemplateSummarySummaryBuckets. + :type: str + """ # noqa: E501 + self._id = id + + @property + def org_id(self): + """Get the org_id of this TemplateSummarySummaryBuckets. + + :return: The org_id of this TemplateSummarySummaryBuckets. + :rtype: str + """ # noqa: E501 + return self._org_id + + @org_id.setter + def org_id(self, org_id): + """Set the org_id of this TemplateSummarySummaryBuckets. + + :param org_id: The org_id of this TemplateSummarySummaryBuckets. + :type: str + """ # noqa: E501 + self._org_id = org_id + + @property + def kind(self): + """Get the kind of this TemplateSummarySummaryBuckets. + + :return: The kind of this TemplateSummarySummaryBuckets. + :rtype: TemplateKind + """ # noqa: E501 + return self._kind + + @kind.setter + def kind(self, kind): + """Set the kind of this TemplateSummarySummaryBuckets. + + :param kind: The kind of this TemplateSummarySummaryBuckets. + :type: TemplateKind + """ # noqa: E501 + self._kind = kind + + @property + def template_meta_name(self): + """Get the template_meta_name of this TemplateSummarySummaryBuckets. + + :return: The template_meta_name of this TemplateSummarySummaryBuckets. + :rtype: str + """ # noqa: E501 + return self._template_meta_name + + @template_meta_name.setter + def template_meta_name(self, template_meta_name): + """Set the template_meta_name of this TemplateSummarySummaryBuckets. + + :param template_meta_name: The template_meta_name of this TemplateSummarySummaryBuckets. + :type: str + """ # noqa: E501 + self._template_meta_name = template_meta_name + + @property + def name(self): + """Get the name of this TemplateSummarySummaryBuckets. + + :return: The name of this TemplateSummarySummaryBuckets. + :rtype: str + """ # noqa: E501 + return self._name + + @name.setter + def name(self, name): + """Set the name of this TemplateSummarySummaryBuckets. + + :param name: The name of this TemplateSummarySummaryBuckets. + :type: str + """ # noqa: E501 + self._name = name + + @property + def description(self): + """Get the description of this TemplateSummarySummaryBuckets. + + :return: The description of this TemplateSummarySummaryBuckets. + :rtype: str + """ # noqa: E501 + return self._description + + @description.setter + def description(self, description): + """Set the description of this TemplateSummarySummaryBuckets. + + :param description: The description of this TemplateSummarySummaryBuckets. + :type: str + """ # noqa: E501 + self._description = description + + @property + def retention_period(self): + """Get the retention_period of this TemplateSummarySummaryBuckets. + + :return: The retention_period of this TemplateSummarySummaryBuckets. + :rtype: int + """ # noqa: E501 + return self._retention_period + + @retention_period.setter + def retention_period(self, retention_period): + """Set the retention_period of this TemplateSummarySummaryBuckets. + + :param retention_period: The retention_period of this TemplateSummarySummaryBuckets. + :type: int + """ # noqa: E501 + self._retention_period = retention_period + + @property + def label_associations(self): + """Get the label_associations of this TemplateSummarySummaryBuckets. + + :return: The label_associations of this TemplateSummarySummaryBuckets. + :rtype: list[TemplateSummaryLabel] + """ # noqa: E501 + return self._label_associations + + @label_associations.setter + def label_associations(self, label_associations): + """Set the label_associations of this TemplateSummarySummaryBuckets. + + :param label_associations: The label_associations of this TemplateSummarySummaryBuckets. + :type: list[TemplateSummaryLabel] + """ # noqa: E501 + self._label_associations = label_associations + + @property + def env_references(self): + """Get the env_references of this TemplateSummarySummaryBuckets. + + :return: The env_references of this TemplateSummarySummaryBuckets. + :rtype: list[object] + """ # noqa: E501 + return self._env_references + + @env_references.setter + def env_references(self, env_references): + """Set the env_references of this TemplateSummarySummaryBuckets. + + :param env_references: The env_references of this TemplateSummarySummaryBuckets. + :type: list[object] + """ # noqa: E501 + self._env_references = env_references + + def to_dict(self): + """Return the model properties as a dict.""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Return the string representation of the model.""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`.""" + return self.to_str() + + def __eq__(self, other): + """Return true if both objects are equal.""" + if not isinstance(other, TemplateSummarySummaryBuckets): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Return true if both objects are not equal.""" + return not self == other diff --git a/influxdb_client/domain/template_summary_summary_dashboards.py b/influxdb_client/domain/template_summary_summary_dashboards.py new file mode 100644 index 00000000..7c440fb7 --- /dev/null +++ b/influxdb_client/domain/template_summary_summary_dashboards.py @@ -0,0 +1,293 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class TemplateSummarySummaryDashboards(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'id': 'str', + 'org_id': 'str', + 'kind': 'TemplateKind', + 'template_meta_name': 'str', + 'name': 'str', + 'description': 'str', + 'label_associations': 'list[TemplateSummaryLabel]', + 'charts': 'list[TemplateChart]', + 'env_references': 'list[object]' + } + + attribute_map = { + 'id': 'id', + 'org_id': 'orgID', + 'kind': 'kind', + 'template_meta_name': 'templateMetaName', + 'name': 'name', + 'description': 'description', + 'label_associations': 'labelAssociations', + 'charts': 'charts', + 'env_references': 'envReferences' + } + + def __init__(self, id=None, org_id=None, kind=None, template_meta_name=None, name=None, description=None, label_associations=None, charts=None, env_references=None): # noqa: E501,D401,D403 + """TemplateSummarySummaryDashboards - a model defined in OpenAPI.""" # noqa: E501 + self._id = None + self._org_id = None + self._kind = None + self._template_meta_name = None + self._name = None + self._description = None + self._label_associations = None + self._charts = None + self._env_references = None + self.discriminator = None + + if id is not None: + self.id = id + if org_id is not None: + self.org_id = org_id + if kind is not None: + self.kind = kind + if template_meta_name is not None: + self.template_meta_name = template_meta_name + if name is not None: + self.name = name + if description is not None: + self.description = description + if label_associations is not None: + self.label_associations = label_associations + if charts is not None: + self.charts = charts + if env_references is not None: + self.env_references = env_references + + @property + def id(self): + """Get the id of this TemplateSummarySummaryDashboards. + + :return: The id of this TemplateSummarySummaryDashboards. + :rtype: str + """ # noqa: E501 + return self._id + + @id.setter + def id(self, id): + """Set the id of this TemplateSummarySummaryDashboards. + + :param id: The id of this TemplateSummarySummaryDashboards. + :type: str + """ # noqa: E501 + self._id = id + + @property + def org_id(self): + """Get the org_id of this TemplateSummarySummaryDashboards. + + :return: The org_id of this TemplateSummarySummaryDashboards. + :rtype: str + """ # noqa: E501 + return self._org_id + + @org_id.setter + def org_id(self, org_id): + """Set the org_id of this TemplateSummarySummaryDashboards. + + :param org_id: The org_id of this TemplateSummarySummaryDashboards. + :type: str + """ # noqa: E501 + self._org_id = org_id + + @property + def kind(self): + """Get the kind of this TemplateSummarySummaryDashboards. + + :return: The kind of this TemplateSummarySummaryDashboards. + :rtype: TemplateKind + """ # noqa: E501 + return self._kind + + @kind.setter + def kind(self, kind): + """Set the kind of this TemplateSummarySummaryDashboards. + + :param kind: The kind of this TemplateSummarySummaryDashboards. + :type: TemplateKind + """ # noqa: E501 + self._kind = kind + + @property + def template_meta_name(self): + """Get the template_meta_name of this TemplateSummarySummaryDashboards. + + :return: The template_meta_name of this TemplateSummarySummaryDashboards. + :rtype: str + """ # noqa: E501 + return self._template_meta_name + + @template_meta_name.setter + def template_meta_name(self, template_meta_name): + """Set the template_meta_name of this TemplateSummarySummaryDashboards. + + :param template_meta_name: The template_meta_name of this TemplateSummarySummaryDashboards. + :type: str + """ # noqa: E501 + self._template_meta_name = template_meta_name + + @property + def name(self): + """Get the name of this TemplateSummarySummaryDashboards. + + :return: The name of this TemplateSummarySummaryDashboards. + :rtype: str + """ # noqa: E501 + return self._name + + @name.setter + def name(self, name): + """Set the name of this TemplateSummarySummaryDashboards. + + :param name: The name of this TemplateSummarySummaryDashboards. + :type: str + """ # noqa: E501 + self._name = name + + @property + def description(self): + """Get the description of this TemplateSummarySummaryDashboards. + + :return: The description of this TemplateSummarySummaryDashboards. + :rtype: str + """ # noqa: E501 + return self._description + + @description.setter + def description(self, description): + """Set the description of this TemplateSummarySummaryDashboards. + + :param description: The description of this TemplateSummarySummaryDashboards. + :type: str + """ # noqa: E501 + self._description = description + + @property + def label_associations(self): + """Get the label_associations of this TemplateSummarySummaryDashboards. + + :return: The label_associations of this TemplateSummarySummaryDashboards. + :rtype: list[TemplateSummaryLabel] + """ # noqa: E501 + return self._label_associations + + @label_associations.setter + def label_associations(self, label_associations): + """Set the label_associations of this TemplateSummarySummaryDashboards. + + :param label_associations: The label_associations of this TemplateSummarySummaryDashboards. + :type: list[TemplateSummaryLabel] + """ # noqa: E501 + self._label_associations = label_associations + + @property + def charts(self): + """Get the charts of this TemplateSummarySummaryDashboards. + + :return: The charts of this TemplateSummarySummaryDashboards. + :rtype: list[TemplateChart] + """ # noqa: E501 + return self._charts + + @charts.setter + def charts(self, charts): + """Set the charts of this TemplateSummarySummaryDashboards. + + :param charts: The charts of this TemplateSummarySummaryDashboards. + :type: list[TemplateChart] + """ # noqa: E501 + self._charts = charts + + @property + def env_references(self): + """Get the env_references of this TemplateSummarySummaryDashboards. + + :return: The env_references of this TemplateSummarySummaryDashboards. + :rtype: list[object] + """ # noqa: E501 + return self._env_references + + @env_references.setter + def env_references(self, env_references): + """Set the env_references of this TemplateSummarySummaryDashboards. + + :param env_references: The env_references of this TemplateSummarySummaryDashboards. + :type: list[object] + """ # noqa: E501 + self._env_references = env_references + + def to_dict(self): + """Return the model properties as a dict.""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Return the string representation of the model.""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`.""" + return self.to_str() + + def __eq__(self, other): + """Return true if both objects are equal.""" + if not isinstance(other, TemplateSummarySummaryDashboards): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Return true if both objects are not equal.""" + return not self == other diff --git a/influxdb_client/domain/template_summary_summary_label_mappings.py b/influxdb_client/domain/template_summary_summary_label_mappings.py new file mode 100644 index 00000000..39f65b2e --- /dev/null +++ b/influxdb_client/domain/template_summary_summary_label_mappings.py @@ -0,0 +1,270 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class TemplateSummarySummaryLabelMappings(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'status': 'str', + 'resource_template_meta_name': 'str', + 'resource_name': 'str', + 'resource_id': 'str', + 'resource_type': 'str', + 'label_template_meta_name': 'str', + 'label_name': 'str', + 'label_id': 'str' + } + + attribute_map = { + 'status': 'status', + 'resource_template_meta_name': 'resourceTemplateMetaName', + 'resource_name': 'resourceName', + 'resource_id': 'resourceID', + 'resource_type': 'resourceType', + 'label_template_meta_name': 'labelTemplateMetaName', + 'label_name': 'labelName', + 'label_id': 'labelID' + } + + def __init__(self, status=None, resource_template_meta_name=None, resource_name=None, resource_id=None, resource_type=None, label_template_meta_name=None, label_name=None, label_id=None): # noqa: E501,D401,D403 + """TemplateSummarySummaryLabelMappings - a model defined in OpenAPI.""" # noqa: E501 + self._status = None + self._resource_template_meta_name = None + self._resource_name = None + self._resource_id = None + self._resource_type = None + self._label_template_meta_name = None + self._label_name = None + self._label_id = None + self.discriminator = None + + if status is not None: + self.status = status + if resource_template_meta_name is not None: + self.resource_template_meta_name = resource_template_meta_name + if resource_name is not None: + self.resource_name = resource_name + if resource_id is not None: + self.resource_id = resource_id + if resource_type is not None: + self.resource_type = resource_type + if label_template_meta_name is not None: + self.label_template_meta_name = label_template_meta_name + if label_name is not None: + self.label_name = label_name + if label_id is not None: + self.label_id = label_id + + @property + def status(self): + """Get the status of this TemplateSummarySummaryLabelMappings. + + :return: The status of this TemplateSummarySummaryLabelMappings. + :rtype: str + """ # noqa: E501 + return self._status + + @status.setter + def status(self, status): + """Set the status of this TemplateSummarySummaryLabelMappings. + + :param status: The status of this TemplateSummarySummaryLabelMappings. + :type: str + """ # noqa: E501 + self._status = status + + @property + def resource_template_meta_name(self): + """Get the resource_template_meta_name of this TemplateSummarySummaryLabelMappings. + + :return: The resource_template_meta_name of this TemplateSummarySummaryLabelMappings. + :rtype: str + """ # noqa: E501 + return self._resource_template_meta_name + + @resource_template_meta_name.setter + def resource_template_meta_name(self, resource_template_meta_name): + """Set the resource_template_meta_name of this TemplateSummarySummaryLabelMappings. + + :param resource_template_meta_name: The resource_template_meta_name of this TemplateSummarySummaryLabelMappings. + :type: str + """ # noqa: E501 + self._resource_template_meta_name = resource_template_meta_name + + @property + def resource_name(self): + """Get the resource_name of this TemplateSummarySummaryLabelMappings. + + :return: The resource_name of this TemplateSummarySummaryLabelMappings. + :rtype: str + """ # noqa: E501 + return self._resource_name + + @resource_name.setter + def resource_name(self, resource_name): + """Set the resource_name of this TemplateSummarySummaryLabelMappings. + + :param resource_name: The resource_name of this TemplateSummarySummaryLabelMappings. + :type: str + """ # noqa: E501 + self._resource_name = resource_name + + @property + def resource_id(self): + """Get the resource_id of this TemplateSummarySummaryLabelMappings. + + :return: The resource_id of this TemplateSummarySummaryLabelMappings. + :rtype: str + """ # noqa: E501 + return self._resource_id + + @resource_id.setter + def resource_id(self, resource_id): + """Set the resource_id of this TemplateSummarySummaryLabelMappings. + + :param resource_id: The resource_id of this TemplateSummarySummaryLabelMappings. + :type: str + """ # noqa: E501 + self._resource_id = resource_id + + @property + def resource_type(self): + """Get the resource_type of this TemplateSummarySummaryLabelMappings. + + :return: The resource_type of this TemplateSummarySummaryLabelMappings. + :rtype: str + """ # noqa: E501 + return self._resource_type + + @resource_type.setter + def resource_type(self, resource_type): + """Set the resource_type of this TemplateSummarySummaryLabelMappings. + + :param resource_type: The resource_type of this TemplateSummarySummaryLabelMappings. + :type: str + """ # noqa: E501 + self._resource_type = resource_type + + @property + def label_template_meta_name(self): + """Get the label_template_meta_name of this TemplateSummarySummaryLabelMappings. + + :return: The label_template_meta_name of this TemplateSummarySummaryLabelMappings. + :rtype: str + """ # noqa: E501 + return self._label_template_meta_name + + @label_template_meta_name.setter + def label_template_meta_name(self, label_template_meta_name): + """Set the label_template_meta_name of this TemplateSummarySummaryLabelMappings. + + :param label_template_meta_name: The label_template_meta_name of this TemplateSummarySummaryLabelMappings. + :type: str + """ # noqa: E501 + self._label_template_meta_name = label_template_meta_name + + @property + def label_name(self): + """Get the label_name of this TemplateSummarySummaryLabelMappings. + + :return: The label_name of this TemplateSummarySummaryLabelMappings. + :rtype: str + """ # noqa: E501 + return self._label_name + + @label_name.setter + def label_name(self, label_name): + """Set the label_name of this TemplateSummarySummaryLabelMappings. + + :param label_name: The label_name of this TemplateSummarySummaryLabelMappings. + :type: str + """ # noqa: E501 + self._label_name = label_name + + @property + def label_id(self): + """Get the label_id of this TemplateSummarySummaryLabelMappings. + + :return: The label_id of this TemplateSummarySummaryLabelMappings. + :rtype: str + """ # noqa: E501 + return self._label_id + + @label_id.setter + def label_id(self, label_id): + """Set the label_id of this TemplateSummarySummaryLabelMappings. + + :param label_id: The label_id of this TemplateSummarySummaryLabelMappings. + :type: str + """ # noqa: E501 + self._label_id = label_id + + def to_dict(self): + """Return the model properties as a dict.""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Return the string representation of the model.""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`.""" + return self.to_str() + + def __eq__(self, other): + """Return true if both objects are equal.""" + if not isinstance(other, TemplateSummarySummaryLabelMappings): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Return true if both objects are not equal.""" + return not self == other diff --git a/influxdb_client/domain/template_summary_summary_notification_rules.py b/influxdb_client/domain/template_summary_summary_notification_rules.py new file mode 100644 index 00000000..3a61fedf --- /dev/null +++ b/influxdb_client/domain/template_summary_summary_notification_rules.py @@ -0,0 +1,431 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class TemplateSummarySummaryNotificationRules(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'kind': 'TemplateKind', + 'template_meta_name': 'str', + 'name': 'str', + 'description': 'str', + 'endpoint_template_meta_name': 'str', + 'endpoint_id': 'str', + 'endpoint_type': 'str', + 'every': 'str', + 'offset': 'str', + 'message_template': 'str', + 'status': 'str', + 'status_rules': 'list[TemplateSummarySummaryStatusRules]', + 'tag_rules': 'list[TemplateSummarySummaryTagRules]', + 'label_associations': 'list[TemplateSummaryLabel]', + 'env_references': 'list[object]' + } + + attribute_map = { + 'kind': 'kind', + 'template_meta_name': 'templateMetaName', + 'name': 'name', + 'description': 'description', + 'endpoint_template_meta_name': 'endpointTemplateMetaName', + 'endpoint_id': 'endpointID', + 'endpoint_type': 'endpointType', + 'every': 'every', + 'offset': 'offset', + 'message_template': 'messageTemplate', + 'status': 'status', + 'status_rules': 'statusRules', + 'tag_rules': 'tagRules', + 'label_associations': 'labelAssociations', + 'env_references': 'envReferences' + } + + def __init__(self, kind=None, template_meta_name=None, name=None, description=None, endpoint_template_meta_name=None, endpoint_id=None, endpoint_type=None, every=None, offset=None, message_template=None, status=None, status_rules=None, tag_rules=None, label_associations=None, env_references=None): # noqa: E501,D401,D403 + """TemplateSummarySummaryNotificationRules - a model defined in OpenAPI.""" # noqa: E501 + self._kind = None + self._template_meta_name = None + self._name = None + self._description = None + self._endpoint_template_meta_name = None + self._endpoint_id = None + self._endpoint_type = None + self._every = None + self._offset = None + self._message_template = None + self._status = None + self._status_rules = None + self._tag_rules = None + self._label_associations = None + self._env_references = None + self.discriminator = None + + if kind is not None: + self.kind = kind + if template_meta_name is not None: + self.template_meta_name = template_meta_name + if name is not None: + self.name = name + if description is not None: + self.description = description + if endpoint_template_meta_name is not None: + self.endpoint_template_meta_name = endpoint_template_meta_name + if endpoint_id is not None: + self.endpoint_id = endpoint_id + if endpoint_type is not None: + self.endpoint_type = endpoint_type + if every is not None: + self.every = every + if offset is not None: + self.offset = offset + if message_template is not None: + self.message_template = message_template + if status is not None: + self.status = status + if status_rules is not None: + self.status_rules = status_rules + if tag_rules is not None: + self.tag_rules = tag_rules + if label_associations is not None: + self.label_associations = label_associations + if env_references is not None: + self.env_references = env_references + + @property + def kind(self): + """Get the kind of this TemplateSummarySummaryNotificationRules. + + :return: The kind of this TemplateSummarySummaryNotificationRules. + :rtype: TemplateKind + """ # noqa: E501 + return self._kind + + @kind.setter + def kind(self, kind): + """Set the kind of this TemplateSummarySummaryNotificationRules. + + :param kind: The kind of this TemplateSummarySummaryNotificationRules. + :type: TemplateKind + """ # noqa: E501 + self._kind = kind + + @property + def template_meta_name(self): + """Get the template_meta_name of this TemplateSummarySummaryNotificationRules. + + :return: The template_meta_name of this TemplateSummarySummaryNotificationRules. + :rtype: str + """ # noqa: E501 + return self._template_meta_name + + @template_meta_name.setter + def template_meta_name(self, template_meta_name): + """Set the template_meta_name of this TemplateSummarySummaryNotificationRules. + + :param template_meta_name: The template_meta_name of this TemplateSummarySummaryNotificationRules. + :type: str + """ # noqa: E501 + self._template_meta_name = template_meta_name + + @property + def name(self): + """Get the name of this TemplateSummarySummaryNotificationRules. + + :return: The name of this TemplateSummarySummaryNotificationRules. + :rtype: str + """ # noqa: E501 + return self._name + + @name.setter + def name(self, name): + """Set the name of this TemplateSummarySummaryNotificationRules. + + :param name: The name of this TemplateSummarySummaryNotificationRules. + :type: str + """ # noqa: E501 + self._name = name + + @property + def description(self): + """Get the description of this TemplateSummarySummaryNotificationRules. + + :return: The description of this TemplateSummarySummaryNotificationRules. + :rtype: str + """ # noqa: E501 + return self._description + + @description.setter + def description(self, description): + """Set the description of this TemplateSummarySummaryNotificationRules. + + :param description: The description of this TemplateSummarySummaryNotificationRules. + :type: str + """ # noqa: E501 + self._description = description + + @property + def endpoint_template_meta_name(self): + """Get the endpoint_template_meta_name of this TemplateSummarySummaryNotificationRules. + + :return: The endpoint_template_meta_name of this TemplateSummarySummaryNotificationRules. + :rtype: str + """ # noqa: E501 + return self._endpoint_template_meta_name + + @endpoint_template_meta_name.setter + def endpoint_template_meta_name(self, endpoint_template_meta_name): + """Set the endpoint_template_meta_name of this TemplateSummarySummaryNotificationRules. + + :param endpoint_template_meta_name: The endpoint_template_meta_name of this TemplateSummarySummaryNotificationRules. + :type: str + """ # noqa: E501 + self._endpoint_template_meta_name = endpoint_template_meta_name + + @property + def endpoint_id(self): + """Get the endpoint_id of this TemplateSummarySummaryNotificationRules. + + :return: The endpoint_id of this TemplateSummarySummaryNotificationRules. + :rtype: str + """ # noqa: E501 + return self._endpoint_id + + @endpoint_id.setter + def endpoint_id(self, endpoint_id): + """Set the endpoint_id of this TemplateSummarySummaryNotificationRules. + + :param endpoint_id: The endpoint_id of this TemplateSummarySummaryNotificationRules. + :type: str + """ # noqa: E501 + self._endpoint_id = endpoint_id + + @property + def endpoint_type(self): + """Get the endpoint_type of this TemplateSummarySummaryNotificationRules. + + :return: The endpoint_type of this TemplateSummarySummaryNotificationRules. + :rtype: str + """ # noqa: E501 + return self._endpoint_type + + @endpoint_type.setter + def endpoint_type(self, endpoint_type): + """Set the endpoint_type of this TemplateSummarySummaryNotificationRules. + + :param endpoint_type: The endpoint_type of this TemplateSummarySummaryNotificationRules. + :type: str + """ # noqa: E501 + self._endpoint_type = endpoint_type + + @property + def every(self): + """Get the every of this TemplateSummarySummaryNotificationRules. + + :return: The every of this TemplateSummarySummaryNotificationRules. + :rtype: str + """ # noqa: E501 + return self._every + + @every.setter + def every(self, every): + """Set the every of this TemplateSummarySummaryNotificationRules. + + :param every: The every of this TemplateSummarySummaryNotificationRules. + :type: str + """ # noqa: E501 + self._every = every + + @property + def offset(self): + """Get the offset of this TemplateSummarySummaryNotificationRules. + + :return: The offset of this TemplateSummarySummaryNotificationRules. + :rtype: str + """ # noqa: E501 + return self._offset + + @offset.setter + def offset(self, offset): + """Set the offset of this TemplateSummarySummaryNotificationRules. + + :param offset: The offset of this TemplateSummarySummaryNotificationRules. + :type: str + """ # noqa: E501 + self._offset = offset + + @property + def message_template(self): + """Get the message_template of this TemplateSummarySummaryNotificationRules. + + :return: The message_template of this TemplateSummarySummaryNotificationRules. + :rtype: str + """ # noqa: E501 + return self._message_template + + @message_template.setter + def message_template(self, message_template): + """Set the message_template of this TemplateSummarySummaryNotificationRules. + + :param message_template: The message_template of this TemplateSummarySummaryNotificationRules. + :type: str + """ # noqa: E501 + self._message_template = message_template + + @property + def status(self): + """Get the status of this TemplateSummarySummaryNotificationRules. + + :return: The status of this TemplateSummarySummaryNotificationRules. + :rtype: str + """ # noqa: E501 + return self._status + + @status.setter + def status(self, status): + """Set the status of this TemplateSummarySummaryNotificationRules. + + :param status: The status of this TemplateSummarySummaryNotificationRules. + :type: str + """ # noqa: E501 + self._status = status + + @property + def status_rules(self): + """Get the status_rules of this TemplateSummarySummaryNotificationRules. + + :return: The status_rules of this TemplateSummarySummaryNotificationRules. + :rtype: list[TemplateSummarySummaryStatusRules] + """ # noqa: E501 + return self._status_rules + + @status_rules.setter + def status_rules(self, status_rules): + """Set the status_rules of this TemplateSummarySummaryNotificationRules. + + :param status_rules: The status_rules of this TemplateSummarySummaryNotificationRules. + :type: list[TemplateSummarySummaryStatusRules] + """ # noqa: E501 + self._status_rules = status_rules + + @property + def tag_rules(self): + """Get the tag_rules of this TemplateSummarySummaryNotificationRules. + + :return: The tag_rules of this TemplateSummarySummaryNotificationRules. + :rtype: list[TemplateSummarySummaryTagRules] + """ # noqa: E501 + return self._tag_rules + + @tag_rules.setter + def tag_rules(self, tag_rules): + """Set the tag_rules of this TemplateSummarySummaryNotificationRules. + + :param tag_rules: The tag_rules of this TemplateSummarySummaryNotificationRules. + :type: list[TemplateSummarySummaryTagRules] + """ # noqa: E501 + self._tag_rules = tag_rules + + @property + def label_associations(self): + """Get the label_associations of this TemplateSummarySummaryNotificationRules. + + :return: The label_associations of this TemplateSummarySummaryNotificationRules. + :rtype: list[TemplateSummaryLabel] + """ # noqa: E501 + return self._label_associations + + @label_associations.setter + def label_associations(self, label_associations): + """Set the label_associations of this TemplateSummarySummaryNotificationRules. + + :param label_associations: The label_associations of this TemplateSummarySummaryNotificationRules. + :type: list[TemplateSummaryLabel] + """ # noqa: E501 + self._label_associations = label_associations + + @property + def env_references(self): + """Get the env_references of this TemplateSummarySummaryNotificationRules. + + :return: The env_references of this TemplateSummarySummaryNotificationRules. + :rtype: list[object] + """ # noqa: E501 + return self._env_references + + @env_references.setter + def env_references(self, env_references): + """Set the env_references of this TemplateSummarySummaryNotificationRules. + + :param env_references: The env_references of this TemplateSummarySummaryNotificationRules. + :type: list[object] + """ # noqa: E501 + self._env_references = env_references + + def to_dict(self): + """Return the model properties as a dict.""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Return the string representation of the model.""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`.""" + return self.to_str() + + def __eq__(self, other): + """Return true if both objects are equal.""" + if not isinstance(other, TemplateSummarySummaryNotificationRules): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Return true if both objects are not equal.""" + return not self == other diff --git a/influxdb_client/domain/template_summary_summary_status_rules.py b/influxdb_client/domain/template_summary_summary_status_rules.py new file mode 100644 index 00000000..7bef1e21 --- /dev/null +++ b/influxdb_client/domain/template_summary_summary_status_rules.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class TemplateSummarySummaryStatusRules(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'current_level': 'str', + 'previous_level': 'str' + } + + attribute_map = { + 'current_level': 'currentLevel', + 'previous_level': 'previousLevel' + } + + def __init__(self, current_level=None, previous_level=None): # noqa: E501,D401,D403 + """TemplateSummarySummaryStatusRules - a model defined in OpenAPI.""" # noqa: E501 + self._current_level = None + self._previous_level = None + self.discriminator = None + + if current_level is not None: + self.current_level = current_level + if previous_level is not None: + self.previous_level = previous_level + + @property + def current_level(self): + """Get the current_level of this TemplateSummarySummaryStatusRules. + + :return: The current_level of this TemplateSummarySummaryStatusRules. + :rtype: str + """ # noqa: E501 + return self._current_level + + @current_level.setter + def current_level(self, current_level): + """Set the current_level of this TemplateSummarySummaryStatusRules. + + :param current_level: The current_level of this TemplateSummarySummaryStatusRules. + :type: str + """ # noqa: E501 + self._current_level = current_level + + @property + def previous_level(self): + """Get the previous_level of this TemplateSummarySummaryStatusRules. + + :return: The previous_level of this TemplateSummarySummaryStatusRules. + :rtype: str + """ # noqa: E501 + return self._previous_level + + @previous_level.setter + def previous_level(self, previous_level): + """Set the previous_level of this TemplateSummarySummaryStatusRules. + + :param previous_level: The previous_level of this TemplateSummarySummaryStatusRules. + :type: str + """ # noqa: E501 + self._previous_level = previous_level + + def to_dict(self): + """Return the model properties as a dict.""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Return the string representation of the model.""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`.""" + return self.to_str() + + def __eq__(self, other): + """Return true if both objects are equal.""" + if not isinstance(other, TemplateSummarySummaryStatusRules): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Return true if both objects are not equal.""" + return not self == other diff --git a/influxdb_client/domain/template_summary_summary_tag_rules.py b/influxdb_client/domain/template_summary_summary_tag_rules.py new file mode 100644 index 00000000..3f82ed9f --- /dev/null +++ b/influxdb_client/domain/template_summary_summary_tag_rules.py @@ -0,0 +1,155 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class TemplateSummarySummaryTagRules(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'key': 'str', + 'value': 'str', + 'operator': 'str' + } + + attribute_map = { + 'key': 'key', + 'value': 'value', + 'operator': 'operator' + } + + def __init__(self, key=None, value=None, operator=None): # noqa: E501,D401,D403 + """TemplateSummarySummaryTagRules - a model defined in OpenAPI.""" # noqa: E501 + self._key = None + self._value = None + self._operator = None + self.discriminator = None + + if key is not None: + self.key = key + if value is not None: + self.value = value + if operator is not None: + self.operator = operator + + @property + def key(self): + """Get the key of this TemplateSummarySummaryTagRules. + + :return: The key of this TemplateSummarySummaryTagRules. + :rtype: str + """ # noqa: E501 + return self._key + + @key.setter + def key(self, key): + """Set the key of this TemplateSummarySummaryTagRules. + + :param key: The key of this TemplateSummarySummaryTagRules. + :type: str + """ # noqa: E501 + self._key = key + + @property + def value(self): + """Get the value of this TemplateSummarySummaryTagRules. + + :return: The value of this TemplateSummarySummaryTagRules. + :rtype: str + """ # noqa: E501 + return self._value + + @value.setter + def value(self, value): + """Set the value of this TemplateSummarySummaryTagRules. + + :param value: The value of this TemplateSummarySummaryTagRules. + :type: str + """ # noqa: E501 + self._value = value + + @property + def operator(self): + """Get the operator of this TemplateSummarySummaryTagRules. + + :return: The operator of this TemplateSummarySummaryTagRules. + :rtype: str + """ # noqa: E501 + return self._operator + + @operator.setter + def operator(self, operator): + """Set the operator of this TemplateSummarySummaryTagRules. + + :param operator: The operator of this TemplateSummarySummaryTagRules. + :type: str + """ # noqa: E501 + self._operator = operator + + def to_dict(self): + """Return the model properties as a dict.""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Return the string representation of the model.""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`.""" + return self.to_str() + + def __eq__(self, other): + """Return true if both objects are equal.""" + if not isinstance(other, TemplateSummarySummaryTagRules): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Return true if both objects are not equal.""" + return not self == other diff --git a/influxdb_client/domain/template_summary_summary_tasks.py b/influxdb_client/domain/template_summary_summary_tasks.py new file mode 100644 index 00000000..b1c1efe2 --- /dev/null +++ b/influxdb_client/domain/template_summary_summary_tasks.py @@ -0,0 +1,339 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class TemplateSummarySummaryTasks(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'kind': 'TemplateKind', + 'template_meta_name': 'str', + 'id': 'str', + 'name': 'str', + 'cron': 'str', + 'description': 'str', + 'every': 'str', + 'offset': 'str', + 'query': 'str', + 'status': 'str', + 'env_references': 'list[object]' + } + + attribute_map = { + 'kind': 'kind', + 'template_meta_name': 'templateMetaName', + 'id': 'id', + 'name': 'name', + 'cron': 'cron', + 'description': 'description', + 'every': 'every', + 'offset': 'offset', + 'query': 'query', + 'status': 'status', + 'env_references': 'envReferences' + } + + def __init__(self, kind=None, template_meta_name=None, id=None, name=None, cron=None, description=None, every=None, offset=None, query=None, status=None, env_references=None): # noqa: E501,D401,D403 + """TemplateSummarySummaryTasks - a model defined in OpenAPI.""" # noqa: E501 + self._kind = None + self._template_meta_name = None + self._id = None + self._name = None + self._cron = None + self._description = None + self._every = None + self._offset = None + self._query = None + self._status = None + self._env_references = None + self.discriminator = None + + if kind is not None: + self.kind = kind + if template_meta_name is not None: + self.template_meta_name = template_meta_name + if id is not None: + self.id = id + if name is not None: + self.name = name + if cron is not None: + self.cron = cron + if description is not None: + self.description = description + if every is not None: + self.every = every + if offset is not None: + self.offset = offset + if query is not None: + self.query = query + if status is not None: + self.status = status + if env_references is not None: + self.env_references = env_references + + @property + def kind(self): + """Get the kind of this TemplateSummarySummaryTasks. + + :return: The kind of this TemplateSummarySummaryTasks. + :rtype: TemplateKind + """ # noqa: E501 + return self._kind + + @kind.setter + def kind(self, kind): + """Set the kind of this TemplateSummarySummaryTasks. + + :param kind: The kind of this TemplateSummarySummaryTasks. + :type: TemplateKind + """ # noqa: E501 + self._kind = kind + + @property + def template_meta_name(self): + """Get the template_meta_name of this TemplateSummarySummaryTasks. + + :return: The template_meta_name of this TemplateSummarySummaryTasks. + :rtype: str + """ # noqa: E501 + return self._template_meta_name + + @template_meta_name.setter + def template_meta_name(self, template_meta_name): + """Set the template_meta_name of this TemplateSummarySummaryTasks. + + :param template_meta_name: The template_meta_name of this TemplateSummarySummaryTasks. + :type: str + """ # noqa: E501 + self._template_meta_name = template_meta_name + + @property + def id(self): + """Get the id of this TemplateSummarySummaryTasks. + + :return: The id of this TemplateSummarySummaryTasks. + :rtype: str + """ # noqa: E501 + return self._id + + @id.setter + def id(self, id): + """Set the id of this TemplateSummarySummaryTasks. + + :param id: The id of this TemplateSummarySummaryTasks. + :type: str + """ # noqa: E501 + self._id = id + + @property + def name(self): + """Get the name of this TemplateSummarySummaryTasks. + + :return: The name of this TemplateSummarySummaryTasks. + :rtype: str + """ # noqa: E501 + return self._name + + @name.setter + def name(self, name): + """Set the name of this TemplateSummarySummaryTasks. + + :param name: The name of this TemplateSummarySummaryTasks. + :type: str + """ # noqa: E501 + self._name = name + + @property + def cron(self): + """Get the cron of this TemplateSummarySummaryTasks. + + :return: The cron of this TemplateSummarySummaryTasks. + :rtype: str + """ # noqa: E501 + return self._cron + + @cron.setter + def cron(self, cron): + """Set the cron of this TemplateSummarySummaryTasks. + + :param cron: The cron of this TemplateSummarySummaryTasks. + :type: str + """ # noqa: E501 + self._cron = cron + + @property + def description(self): + """Get the description of this TemplateSummarySummaryTasks. + + :return: The description of this TemplateSummarySummaryTasks. + :rtype: str + """ # noqa: E501 + return self._description + + @description.setter + def description(self, description): + """Set the description of this TemplateSummarySummaryTasks. + + :param description: The description of this TemplateSummarySummaryTasks. + :type: str + """ # noqa: E501 + self._description = description + + @property + def every(self): + """Get the every of this TemplateSummarySummaryTasks. + + :return: The every of this TemplateSummarySummaryTasks. + :rtype: str + """ # noqa: E501 + return self._every + + @every.setter + def every(self, every): + """Set the every of this TemplateSummarySummaryTasks. + + :param every: The every of this TemplateSummarySummaryTasks. + :type: str + """ # noqa: E501 + self._every = every + + @property + def offset(self): + """Get the offset of this TemplateSummarySummaryTasks. + + :return: The offset of this TemplateSummarySummaryTasks. + :rtype: str + """ # noqa: E501 + return self._offset + + @offset.setter + def offset(self, offset): + """Set the offset of this TemplateSummarySummaryTasks. + + :param offset: The offset of this TemplateSummarySummaryTasks. + :type: str + """ # noqa: E501 + self._offset = offset + + @property + def query(self): + """Get the query of this TemplateSummarySummaryTasks. + + :return: The query of this TemplateSummarySummaryTasks. + :rtype: str + """ # noqa: E501 + return self._query + + @query.setter + def query(self, query): + """Set the query of this TemplateSummarySummaryTasks. + + :param query: The query of this TemplateSummarySummaryTasks. + :type: str + """ # noqa: E501 + self._query = query + + @property + def status(self): + """Get the status of this TemplateSummarySummaryTasks. + + :return: The status of this TemplateSummarySummaryTasks. + :rtype: str + """ # noqa: E501 + return self._status + + @status.setter + def status(self, status): + """Set the status of this TemplateSummarySummaryTasks. + + :param status: The status of this TemplateSummarySummaryTasks. + :type: str + """ # noqa: E501 + self._status = status + + @property + def env_references(self): + """Get the env_references of this TemplateSummarySummaryTasks. + + :return: The env_references of this TemplateSummarySummaryTasks. + :rtype: list[object] + """ # noqa: E501 + return self._env_references + + @env_references.setter + def env_references(self, env_references): + """Set the env_references of this TemplateSummarySummaryTasks. + + :param env_references: The env_references of this TemplateSummarySummaryTasks. + :type: list[object] + """ # noqa: E501 + self._env_references = env_references + + def to_dict(self): + """Return the model properties as a dict.""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Return the string representation of the model.""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`.""" + return self.to_str() + + def __eq__(self, other): + """Return true if both objects are equal.""" + if not isinstance(other, TemplateSummarySummaryTasks): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Return true if both objects are not equal.""" + return not self == other diff --git a/influxdb_client/domain/template_summary_summary_variables.py b/influxdb_client/domain/template_summary_summary_variables.py new file mode 100644 index 00000000..e3592dbf --- /dev/null +++ b/influxdb_client/domain/template_summary_summary_variables.py @@ -0,0 +1,293 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class TemplateSummarySummaryVariables(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'kind': 'TemplateKind', + 'template_meta_name': 'str', + 'id': 'str', + 'org_id': 'str', + 'name': 'str', + 'description': 'str', + 'arguments': 'VariableProperties', + 'label_associations': 'list[TemplateSummaryLabel]', + 'env_references': 'list[object]' + } + + attribute_map = { + 'kind': 'kind', + 'template_meta_name': 'templateMetaName', + 'id': 'id', + 'org_id': 'orgID', + 'name': 'name', + 'description': 'description', + 'arguments': 'arguments', + 'label_associations': 'labelAssociations', + 'env_references': 'envReferences' + } + + def __init__(self, kind=None, template_meta_name=None, id=None, org_id=None, name=None, description=None, arguments=None, label_associations=None, env_references=None): # noqa: E501,D401,D403 + """TemplateSummarySummaryVariables - a model defined in OpenAPI.""" # noqa: E501 + self._kind = None + self._template_meta_name = None + self._id = None + self._org_id = None + self._name = None + self._description = None + self._arguments = None + self._label_associations = None + self._env_references = None + self.discriminator = None + + if kind is not None: + self.kind = kind + if template_meta_name is not None: + self.template_meta_name = template_meta_name + if id is not None: + self.id = id + if org_id is not None: + self.org_id = org_id + if name is not None: + self.name = name + if description is not None: + self.description = description + if arguments is not None: + self.arguments = arguments + if label_associations is not None: + self.label_associations = label_associations + if env_references is not None: + self.env_references = env_references + + @property + def kind(self): + """Get the kind of this TemplateSummarySummaryVariables. + + :return: The kind of this TemplateSummarySummaryVariables. + :rtype: TemplateKind + """ # noqa: E501 + return self._kind + + @kind.setter + def kind(self, kind): + """Set the kind of this TemplateSummarySummaryVariables. + + :param kind: The kind of this TemplateSummarySummaryVariables. + :type: TemplateKind + """ # noqa: E501 + self._kind = kind + + @property + def template_meta_name(self): + """Get the template_meta_name of this TemplateSummarySummaryVariables. + + :return: The template_meta_name of this TemplateSummarySummaryVariables. + :rtype: str + """ # noqa: E501 + return self._template_meta_name + + @template_meta_name.setter + def template_meta_name(self, template_meta_name): + """Set the template_meta_name of this TemplateSummarySummaryVariables. + + :param template_meta_name: The template_meta_name of this TemplateSummarySummaryVariables. + :type: str + """ # noqa: E501 + self._template_meta_name = template_meta_name + + @property + def id(self): + """Get the id of this TemplateSummarySummaryVariables. + + :return: The id of this TemplateSummarySummaryVariables. + :rtype: str + """ # noqa: E501 + return self._id + + @id.setter + def id(self, id): + """Set the id of this TemplateSummarySummaryVariables. + + :param id: The id of this TemplateSummarySummaryVariables. + :type: str + """ # noqa: E501 + self._id = id + + @property + def org_id(self): + """Get the org_id of this TemplateSummarySummaryVariables. + + :return: The org_id of this TemplateSummarySummaryVariables. + :rtype: str + """ # noqa: E501 + return self._org_id + + @org_id.setter + def org_id(self, org_id): + """Set the org_id of this TemplateSummarySummaryVariables. + + :param org_id: The org_id of this TemplateSummarySummaryVariables. + :type: str + """ # noqa: E501 + self._org_id = org_id + + @property + def name(self): + """Get the name of this TemplateSummarySummaryVariables. + + :return: The name of this TemplateSummarySummaryVariables. + :rtype: str + """ # noqa: E501 + return self._name + + @name.setter + def name(self, name): + """Set the name of this TemplateSummarySummaryVariables. + + :param name: The name of this TemplateSummarySummaryVariables. + :type: str + """ # noqa: E501 + self._name = name + + @property + def description(self): + """Get the description of this TemplateSummarySummaryVariables. + + :return: The description of this TemplateSummarySummaryVariables. + :rtype: str + """ # noqa: E501 + return self._description + + @description.setter + def description(self, description): + """Set the description of this TemplateSummarySummaryVariables. + + :param description: The description of this TemplateSummarySummaryVariables. + :type: str + """ # noqa: E501 + self._description = description + + @property + def arguments(self): + """Get the arguments of this TemplateSummarySummaryVariables. + + :return: The arguments of this TemplateSummarySummaryVariables. + :rtype: VariableProperties + """ # noqa: E501 + return self._arguments + + @arguments.setter + def arguments(self, arguments): + """Set the arguments of this TemplateSummarySummaryVariables. + + :param arguments: The arguments of this TemplateSummarySummaryVariables. + :type: VariableProperties + """ # noqa: E501 + self._arguments = arguments + + @property + def label_associations(self): + """Get the label_associations of this TemplateSummarySummaryVariables. + + :return: The label_associations of this TemplateSummarySummaryVariables. + :rtype: list[TemplateSummaryLabel] + """ # noqa: E501 + return self._label_associations + + @label_associations.setter + def label_associations(self, label_associations): + """Set the label_associations of this TemplateSummarySummaryVariables. + + :param label_associations: The label_associations of this TemplateSummarySummaryVariables. + :type: list[TemplateSummaryLabel] + """ # noqa: E501 + self._label_associations = label_associations + + @property + def env_references(self): + """Get the env_references of this TemplateSummarySummaryVariables. + + :return: The env_references of this TemplateSummarySummaryVariables. + :rtype: list[object] + """ # noqa: E501 + return self._env_references + + @env_references.setter + def env_references(self, env_references): + """Set the env_references of this TemplateSummarySummaryVariables. + + :param env_references: The env_references of this TemplateSummarySummaryVariables. + :type: list[object] + """ # noqa: E501 + self._env_references = env_references + + def to_dict(self): + """Return the model properties as a dict.""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Return the string representation of the model.""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`.""" + return self.to_str() + + def __eq__(self, other): + """Return true if both objects are equal.""" + if not isinstance(other, TemplateSummarySummaryVariables): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Return true if both objects are not equal.""" + return not self == other diff --git a/influxdb_client/domain/test_statement.py b/influxdb_client/domain/test_statement.py index ab40cfb5..e4bbef6b 100644 --- a/influxdb_client/domain/test_statement.py +++ b/influxdb_client/domain/test_statement.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/threshold.py b/influxdb_client/domain/threshold.py index a05193f4..a4f86392 100644 --- a/influxdb_client/domain/threshold.py +++ b/influxdb_client/domain/threshold.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/threshold_base.py b/influxdb_client/domain/threshold_base.py index df9a570c..958dccf9 100644 --- a/influxdb_client/domain/threshold_base.py +++ b/influxdb_client/domain/threshold_base.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/threshold_check.py b/influxdb_client/domain/threshold_check.py index 2c3590f8..f07a3c87 100644 --- a/influxdb_client/domain/threshold_check.py +++ b/influxdb_client/domain/threshold_check.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/unary_expression.py b/influxdb_client/domain/unary_expression.py index 699f49b3..14cc0385 100644 --- a/influxdb_client/domain/unary_expression.py +++ b/influxdb_client/domain/unary_expression.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/unsigned_integer_literal.py b/influxdb_client/domain/unsigned_integer_literal.py index 89c11b61..acedede3 100644 --- a/influxdb_client/domain/unsigned_integer_literal.py +++ b/influxdb_client/domain/unsigned_integer_literal.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/user.py b/influxdb_client/domain/user.py index c5bd079c..76c7053b 100644 --- a/influxdb_client/domain/user.py +++ b/influxdb_client/domain/user.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/user_response.py b/influxdb_client/domain/user_response.py index 31c12d95..68938166 100644 --- a/influxdb_client/domain/user_response.py +++ b/influxdb_client/domain/user_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/user_response_links.py b/influxdb_client/domain/user_response_links.py index be75d208..6bdea56a 100644 --- a/influxdb_client/domain/user_response_links.py +++ b/influxdb_client/domain/user_response_links.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/users.py b/influxdb_client/domain/users.py index 68771418..029d3768 100644 --- a/influxdb_client/domain/users.py +++ b/influxdb_client/domain/users.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/variable.py b/influxdb_client/domain/variable.py index 0b49d631..fcf9f99f 100644 --- a/influxdb_client/domain/variable.py +++ b/influxdb_client/domain/variable.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/variable_assignment.py b/influxdb_client/domain/variable_assignment.py index f36ac8c6..59acccca 100644 --- a/influxdb_client/domain/variable_assignment.py +++ b/influxdb_client/domain/variable_assignment.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/variable_links.py b/influxdb_client/domain/variable_links.py index 91e5f39c..f708b326 100644 --- a/influxdb_client/domain/variable_links.py +++ b/influxdb_client/domain/variable_links.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/variable_properties.py b/influxdb_client/domain/variable_properties.py index d5dfa43c..affc2734 100644 --- a/influxdb_client/domain/variable_properties.py +++ b/influxdb_client/domain/variable_properties.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/variables.py b/influxdb_client/domain/variables.py index 799e60a1..31944dde 100644 --- a/influxdb_client/domain/variables.py +++ b/influxdb_client/domain/variables.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/view.py b/influxdb_client/domain/view.py index 5ce28231..2384587d 100644 --- a/influxdb_client/domain/view.py +++ b/influxdb_client/domain/view.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/view_links.py b/influxdb_client/domain/view_links.py index 703f0558..0c2730cf 100644 --- a/influxdb_client/domain/view_links.py +++ b/influxdb_client/domain/view_links.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/view_properties.py b/influxdb_client/domain/view_properties.py index f58b9fa9..e340453c 100644 --- a/influxdb_client/domain/view_properties.py +++ b/influxdb_client/domain/view_properties.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/views.py b/influxdb_client/domain/views.py index b3481b70..cdb67693 100644 --- a/influxdb_client/domain/views.py +++ b/influxdb_client/domain/views.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/write_precision.py b/influxdb_client/domain/write_precision.py index ac8bae0e..1065ff7d 100644 --- a/influxdb_client/domain/write_precision.py +++ b/influxdb_client/domain/write_precision.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/xy_geom.py b/influxdb_client/domain/xy_geom.py index b1801e0d..9e88d71c 100644 --- a/influxdb_client/domain/xy_geom.py +++ b/influxdb_client/domain/xy_geom.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/domain/xy_view_properties.py b/influxdb_client/domain/xy_view_properties.py index 31924d54..74368d0b 100644 --- a/influxdb_client/domain/xy_view_properties.py +++ b/influxdb_client/domain/xy_view_properties.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech @@ -37,6 +37,7 @@ class XYViewProperties(ViewProperties): 'type': 'str', 'queries': 'list[DashboardQuery]', 'colors': 'list[DashboardColor]', + 'color_mapping': 'dict(str, str)', 'shape': 'str', 'note': 'str', 'show_note_when_empty': 'bool', @@ -67,6 +68,7 @@ class XYViewProperties(ViewProperties): 'type': 'type', 'queries': 'queries', 'colors': 'colors', + 'color_mapping': 'colorMapping', 'shape': 'shape', 'note': 'note', 'show_note_when_empty': 'showNoteWhenEmpty', @@ -92,7 +94,7 @@ class XYViewProperties(ViewProperties): 'legend_orientation_threshold': 'legendOrientationThreshold' } - def __init__(self, time_format=None, type=None, queries=None, colors=None, shape=None, note=None, show_note_when_empty=None, axes=None, static_legend=None, x_column=None, generate_x_axis_ticks=None, x_total_ticks=None, x_tick_start=None, x_tick_step=None, y_column=None, generate_y_axis_ticks=None, y_total_ticks=None, y_tick_start=None, y_tick_step=None, shade_below=None, hover_dimension=None, position=None, geom=None, legend_colorize_rows=None, legend_hide=None, legend_opacity=None, legend_orientation_threshold=None): # noqa: E501,D401,D403 + def __init__(self, time_format=None, type=None, queries=None, colors=None, color_mapping=None, shape=None, note=None, show_note_when_empty=None, axes=None, static_legend=None, x_column=None, generate_x_axis_ticks=None, x_total_ticks=None, x_tick_start=None, x_tick_step=None, y_column=None, generate_y_axis_ticks=None, y_total_ticks=None, y_tick_start=None, y_tick_step=None, shade_below=None, hover_dimension=None, position=None, geom=None, legend_colorize_rows=None, legend_hide=None, legend_opacity=None, legend_orientation_threshold=None): # noqa: E501,D401,D403 """XYViewProperties - a model defined in OpenAPI.""" # noqa: E501 ViewProperties.__init__(self) # noqa: E501 @@ -100,6 +102,7 @@ def __init__(self, time_format=None, type=None, queries=None, colors=None, shape self._type = None self._queries = None self._colors = None + self._color_mapping = None self._shape = None self._note = None self._show_note_when_empty = None @@ -130,6 +133,8 @@ def __init__(self, time_format=None, type=None, queries=None, colors=None, shape self.type = type self.queries = queries self.colors = colors + if color_mapping is not None: + self.color_mapping = color_mapping self.shape = shape self.note = note self.show_note_when_empty = show_note_when_empty @@ -253,6 +258,28 @@ def colors(self, colors): raise ValueError("Invalid value for `colors`, must not be `None`") # noqa: E501 self._colors = colors + @property + def color_mapping(self): + """Get the color_mapping of this XYViewProperties. + + A color mapping is an object that maps time series data to a UI color scheme to allow the UI to render graphs consistent colors across reloads. + + :return: The color_mapping of this XYViewProperties. + :rtype: dict(str, str) + """ # noqa: E501 + return self._color_mapping + + @color_mapping.setter + def color_mapping(self, color_mapping): + """Set the color_mapping of this XYViewProperties. + + A color mapping is an object that maps time series data to a UI color scheme to allow the UI to render graphs consistent colors across reloads. + + :param color_mapping: The color_mapping of this XYViewProperties. + :type: dict(str, str) + """ # noqa: E501 + self._color_mapping = color_mapping + @property def shape(self): """Get the shape of this XYViewProperties. diff --git a/influxdb_client/rest.py b/influxdb_client/rest.py index df7b474f..120d803e 100644 --- a/influxdb_client/rest.py +++ b/influxdb_client/rest.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/service/__init__.py b/influxdb_client/service/__init__.py index 5858de7f..77c51a11 100644 --- a/influxdb_client/service/__init__.py +++ b/influxdb_client/service/__init__.py @@ -1,9 +1,9 @@ # flake8: noqa """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech @@ -14,31 +14,42 @@ # import apis into api package from influxdb_client.service.authorizations_service import AuthorizationsService +from influxdb_client.service.backup_service import BackupService from influxdb_client.service.buckets_service import BucketsService from influxdb_client.service.cells_service import CellsService from influxdb_client.service.checks_service import ChecksService +from influxdb_client.service.config_service import ConfigService from influxdb_client.service.dbr_ps_service import DBRPsService from influxdb_client.service.dashboards_service import DashboardsService from influxdb_client.service.delete_service import DeleteService from influxdb_client.service.health_service import HealthService from influxdb_client.service.invocable_scripts_service import InvocableScriptsService from influxdb_client.service.labels_service import LabelsService +from influxdb_client.service.legacy_authorizations_service import LegacyAuthorizationsService +from influxdb_client.service.metrics_service import MetricsService from influxdb_client.service.notification_endpoints_service import NotificationEndpointsService from influxdb_client.service.notification_rules_service import NotificationRulesService from influxdb_client.service.organizations_service import OrganizationsService from influxdb_client.service.ping_service import PingService from influxdb_client.service.query_service import QueryService from influxdb_client.service.ready_service import ReadyService +from influxdb_client.service.remote_connections_service import RemoteConnectionsService +from influxdb_client.service.replications_service import ReplicationsService +from influxdb_client.service.resources_service import ResourcesService +from influxdb_client.service.restore_service import RestoreService +from influxdb_client.service.routes_service import RoutesService from influxdb_client.service.rules_service import RulesService from influxdb_client.service.scraper_targets_service import ScraperTargetsService from influxdb_client.service.secrets_service import SecretsService from influxdb_client.service.setup_service import SetupService +from influxdb_client.service.signin_service import SigninService +from influxdb_client.service.signout_service import SignoutService from influxdb_client.service.sources_service import SourcesService from influxdb_client.service.tasks_service import TasksService +from influxdb_client.service.telegraf_plugins_service import TelegrafPluginsService from influxdb_client.service.telegrafs_service import TelegrafsService from influxdb_client.service.templates_service import TemplatesService from influxdb_client.service.users_service import UsersService from influxdb_client.service.variables_service import VariablesService from influxdb_client.service.views_service import ViewsService from influxdb_client.service.write_service import WriteService -from influxdb_client.service.default_service import DefaultService diff --git a/influxdb_client/service/authorizations_service.py b/influxdb_client/service/authorizations_service.py index 61a78aa2..8df663c7 100644 --- a/influxdb_client/service/authorizations_service.py +++ b/influxdb_client/service/authorizations_service.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/service/default_service.py b/influxdb_client/service/backup_service.py similarity index 57% rename from influxdb_client/service/default_service.py rename to influxdb_client/service/backup_service.py index d79a76f9..29421bd3 100644 --- a/influxdb_client/service/default_service.py +++ b/influxdb_client/service/backup_service.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech @@ -18,7 +18,7 @@ import six -class DefaultService(object): +class BackupService(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -27,43 +27,43 @@ class DefaultService(object): """ def __init__(self, api_client=None): # noqa: E501,D401,D403 - """DefaultService - a operation defined in OpenAPI.""" + """BackupService - a operation defined in OpenAPI.""" if api_client is None: raise ValueError("Invalid value for `api_client`, must be defined.") self.api_client = api_client - def get_routes(self, **kwargs): # noqa: E501,D401,D403 - """Map of all top level routes available. + def get_backup_kv(self, **kwargs): # noqa: E501,D401,D403 + """Download snapshot of metadata stored in the server's embedded KV store. Should not be used in versions greater than 2.1.x, as it doesn't include metadata stored in embedded SQL.. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_routes(async_req=True) + >>> thread = api.get_backup_kv(async_req=True) >>> result = thread.get() :param async_req bool :param str zap_trace_span: OpenTracing span context - :return: Routes + :return: file If the method is called asynchronously, returns the request thread. """ # noqa: E501 kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.get_routes_with_http_info(**kwargs) # noqa: E501 + return self.get_backup_kv_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.get_routes_with_http_info(**kwargs) # noqa: E501 + (data) = self.get_backup_kv_with_http_info(**kwargs) # noqa: E501 return data - def get_routes_with_http_info(self, **kwargs): # noqa: E501,D401,D403 - """Map of all top level routes available. + def get_backup_kv_with_http_info(self, **kwargs): # noqa: E501,D401,D403 + """Download snapshot of metadata stored in the server's embedded KV store. Should not be used in versions greater than 2.1.x, as it doesn't include metadata stored in embedded SQL.. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_routes_with_http_info(async_req=True) + >>> thread = api.get_backup_kv_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool :param str zap_trace_span: OpenTracing span context - :return: Routes + :return: file If the method is called asynchronously, returns the request thread. """ # noqa: E501 @@ -80,7 +80,7 @@ def get_routes_with_http_info(self, **kwargs): # noqa: E501,D401,D403 if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_routes" % key + " to method get_backup_kv" % key ) local_var_params[key] = val del local_var_params['kwargs'] @@ -101,7 +101,7 @@ def get_routes_with_http_info(self, **kwargs): # noqa: E501,D401,D403 body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 + ['application/octet-stream', 'application/json']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 @@ -112,14 +112,14 @@ def get_routes_with_http_info(self, **kwargs): # noqa: E501,D401,D403 urlopen_kw = kwargs['urlopen_kw'] return self.api_client.call_api( - '/api/v2/', 'GET', + '/api/v2/backup/kv', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='Routes', # noqa: E501 + response_type='file', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -128,46 +128,46 @@ def get_routes_with_http_info(self, **kwargs): # noqa: E501,D401,D403 collection_formats=collection_formats, urlopen_kw=urlopen_kw) - def get_telegraf_plugins(self, **kwargs): # noqa: E501,D401,D403 - """get_telegraf_plugins. + def get_backup_metadata(self, **kwargs): # noqa: E501,D401,D403 + """Download snapshot of all metadata in the server. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_telegraf_plugins(async_req=True) + >>> thread = api.get_backup_metadata(async_req=True) >>> result = thread.get() :param async_req bool :param str zap_trace_span: OpenTracing span context - :param str type: The type of plugin desired. - :return: TelegrafPlugins + :param str accept_encoding: Indicates the content encoding (usually a compression algorithm) that the client can understand. + :return: MetadataBackup If the method is called asynchronously, returns the request thread. """ # noqa: E501 kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.get_telegraf_plugins_with_http_info(**kwargs) # noqa: E501 + return self.get_backup_metadata_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.get_telegraf_plugins_with_http_info(**kwargs) # noqa: E501 + (data) = self.get_backup_metadata_with_http_info(**kwargs) # noqa: E501 return data - def get_telegraf_plugins_with_http_info(self, **kwargs): # noqa: E501,D401,D403 - """get_telegraf_plugins. + def get_backup_metadata_with_http_info(self, **kwargs): # noqa: E501,D401,D403 + """Download snapshot of all metadata in the server. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_telegraf_plugins_with_http_info(async_req=True) + >>> thread = api.get_backup_metadata_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool :param str zap_trace_span: OpenTracing span context - :param str type: The type of plugin desired. - :return: TelegrafPlugins + :param str accept_encoding: Indicates the content encoding (usually a compression algorithm) that the client can understand. + :return: MetadataBackup If the method is called asynchronously, returns the request thread. """ # noqa: E501 local_var_params = locals() - all_params = ['zap_trace_span', 'type'] # noqa: E501 + all_params = ['zap_trace_span', 'accept_encoding'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -178,7 +178,7 @@ def get_telegraf_plugins_with_http_info(self, **kwargs): # noqa: E501,D401,D403 if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_telegraf_plugins" % key + " to method get_backup_metadata" % key ) local_var_params[key] = val del local_var_params['kwargs'] @@ -188,12 +188,12 @@ def get_telegraf_plugins_with_http_info(self, **kwargs): # noqa: E501,D401,D403 path_params = {} query_params = [] - if 'type' in local_var_params: - query_params.append(('type', local_var_params['type'])) # noqa: E501 header_params = {} if 'zap_trace_span' in local_var_params: header_params['Zap-Trace-Span'] = local_var_params['zap_trace_span'] # noqa: E501 + if 'accept_encoding' in local_var_params: + header_params['Accept-Encoding'] = local_var_params['accept_encoding'] # noqa: E501 form_params = [] local_var_files = {} @@ -201,7 +201,7 @@ def get_telegraf_plugins_with_http_info(self, **kwargs): # noqa: E501,D401,D403 body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 + ['multipart/mixed', 'application/json']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 @@ -212,14 +212,14 @@ def get_telegraf_plugins_with_http_info(self, **kwargs): # noqa: E501,D401,D403 urlopen_kw = kwargs['urlopen_kw'] return self.api_client.call_api( - '/api/v2/telegraf/plugins', 'GET', + '/api/v2/backup/metadata', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='TelegrafPlugins', # noqa: E501 + response_type='MetadataBackup', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -228,46 +228,50 @@ def get_telegraf_plugins_with_http_info(self, **kwargs): # noqa: E501,D401,D403 collection_formats=collection_formats, urlopen_kw=urlopen_kw) - def post_signin(self, **kwargs): # noqa: E501,D401,D403 - """Exchange basic auth credentials for session. + def get_backup_shard_id(self, shard_id, **kwargs): # noqa: E501,D401,D403 + """Download snapshot of all TSM data in a shard. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.post_signin(async_req=True) + >>> thread = api.get_backup_shard_id(shard_id, async_req=True) >>> result = thread.get() :param async_req bool + :param int shard_id: The shard ID. (required) :param str zap_trace_span: OpenTracing span context - :param str authorization: An auth credential for the Basic scheme - :return: None + :param str accept_encoding: Indicates the content encoding (usually a compression algorithm) that the client can understand. + :param datetime since: Earliest time to include in the snapshot. RFC3339 format. + :return: file If the method is called asynchronously, returns the request thread. """ # noqa: E501 kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.post_signin_with_http_info(**kwargs) # noqa: E501 + return self.get_backup_shard_id_with_http_info(shard_id, **kwargs) # noqa: E501 else: - (data) = self.post_signin_with_http_info(**kwargs) # noqa: E501 + (data) = self.get_backup_shard_id_with_http_info(shard_id, **kwargs) # noqa: E501 return data - def post_signin_with_http_info(self, **kwargs): # noqa: E501,D401,D403 - """Exchange basic auth credentials for session. + def get_backup_shard_id_with_http_info(self, shard_id, **kwargs): # noqa: E501,D401,D403 + """Download snapshot of all TSM data in a shard. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.post_signin_with_http_info(async_req=True) + >>> thread = api.get_backup_shard_id_with_http_info(shard_id, async_req=True) >>> result = thread.get() :param async_req bool + :param int shard_id: The shard ID. (required) :param str zap_trace_span: OpenTracing span context - :param str authorization: An auth credential for the Basic scheme - :return: None + :param str accept_encoding: Indicates the content encoding (usually a compression algorithm) that the client can understand. + :param datetime since: Earliest time to include in the snapshot. RFC3339 format. + :return: file If the method is called asynchronously, returns the request thread. """ # noqa: E501 local_var_params = locals() - all_params = ['zap_trace_span', 'authorization'] # noqa: E501 + all_params = ['shard_id', 'zap_trace_span', 'accept_encoding', 'since'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -278,22 +282,30 @@ def post_signin_with_http_info(self, **kwargs): # noqa: E501,D401,D403 if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method post_signin" % key + " to method get_backup_shard_id" % key ) local_var_params[key] = val del local_var_params['kwargs'] + # verify the required parameter 'shard_id' is set + if ('shard_id' not in local_var_params or + local_var_params['shard_id'] is None): + raise ValueError("Missing the required parameter `shard_id` when calling `get_backup_shard_id`") # noqa: E501 collection_formats = {} path_params = {} + if 'shard_id' in local_var_params: + path_params['shardID'] = local_var_params['shard_id'] # noqa: E501 query_params = [] + if 'since' in local_var_params: + query_params.append(('since', local_var_params['since'])) # noqa: E501 header_params = {} if 'zap_trace_span' in local_var_params: header_params['Zap-Trace-Span'] = local_var_params['zap_trace_span'] # noqa: E501 - if 'authorization' in local_var_params: - header_params['Authorization'] = local_var_params['authorization'] # noqa: E501 + if 'accept_encoding' in local_var_params: + header_params['Accept-Encoding'] = local_var_params['accept_encoding'] # noqa: E501 form_params = [] local_var_files = {} @@ -301,103 +313,7 @@ def post_signin_with_http_info(self, **kwargs): # noqa: E501,D401,D403 body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['BasicAuth'] # noqa: E501 - - # urlopen optional setting - urlopen_kw = None - if 'urlopen_kw' in kwargs: - urlopen_kw = kwargs['urlopen_kw'] - - return self.api_client.call_api( - '/api/v2/signin', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, # noqa: E501 - auth_settings=auth_settings, - async_req=local_var_params.get('async_req'), - _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - urlopen_kw=urlopen_kw) - - def post_signout(self, **kwargs): # noqa: E501,D401,D403 - """Expire the current session. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.post_signout(async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str zap_trace_span: OpenTracing span context - :return: None - If the method is called asynchronously, - returns the request thread. - """ # noqa: E501 - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.post_signout_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.post_signout_with_http_info(**kwargs) # noqa: E501 - return data - - def post_signout_with_http_info(self, **kwargs): # noqa: E501,D401,D403 - """Expire the current session. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.post_signout_with_http_info(async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str zap_trace_span: OpenTracing span context - :return: None - If the method is called asynchronously, - returns the request thread. - """ # noqa: E501 - local_var_params = locals() - - all_params = ['zap_trace_span'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - all_params.append('urlopen_kw') - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method post_signout" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - if 'zap_trace_span' in local_var_params: - header_params['Zap-Trace-Span'] = local_var_params['zap_trace_span'] # noqa: E501 - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 + ['application/octet-stream', 'application/json']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 @@ -408,14 +324,14 @@ def post_signout_with_http_info(self, **kwargs): # noqa: E501,D401,D403 urlopen_kw = kwargs['urlopen_kw'] return self.api_client.call_api( - '/api/v2/signout', 'POST', + '/api/v2/backup/shards/{shardID}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type=None, # noqa: E501 + response_type='file', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 diff --git a/influxdb_client/service/buckets_service.py b/influxdb_client/service/buckets_service.py index 0ae373a6..d4469272 100644 --- a/influxdb_client/service/buckets_service.py +++ b/influxdb_client/service/buckets_service.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech @@ -485,7 +485,7 @@ def get_buckets(self, **kwargs): # noqa: E501,D401,D403 :param int offset: :param int limit: :param str after: The last resource ID from which to seek from (but not including). This is to be used instead of `offset`. - :param str org: The organization name. + :param str org: The name of the organization. :param str org_id: The organization ID. :param str name: Only returns buckets with a specific name. :param str id: Only returns buckets with a specific ID. @@ -513,7 +513,7 @@ def get_buckets_with_http_info(self, **kwargs): # noqa: E501,D401,D403 :param int offset: :param int limit: :param str after: The last resource ID from which to seek from (but not including). This is to be used instead of `offset`. - :param str org: The organization name. + :param str org: The name of the organization. :param str org_id: The organization ID. :param str name: Only returns buckets with a specific name. :param str id: Only returns buckets with a specific ID. @@ -1029,7 +1029,7 @@ def get_sources_id_buckets(self, source_id, **kwargs): # noqa: E501,D401,D403 :param async_req bool :param str source_id: The source ID. (required) :param str zap_trace_span: OpenTracing span context - :param str org: The organization name. + :param str org: The name of the organization. :return: Buckets If the method is called asynchronously, returns the request thread. @@ -1052,7 +1052,7 @@ def get_sources_id_buckets_with_http_info(self, source_id, **kwargs): # noqa: E :param async_req bool :param str source_id: The source ID. (required) :param str zap_trace_span: OpenTracing span context - :param str org: The organization name. + :param str org: The name of the organization. :return: Buckets If the method is called asynchronously, returns the request thread. diff --git a/influxdb_client/service/cells_service.py b/influxdb_client/service/cells_service.py index 21c9741a..b3d65734 100644 --- a/influxdb_client/service/cells_service.py +++ b/influxdb_client/service/cells_service.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/service/checks_service.py b/influxdb_client/service/checks_service.py index 9525993d..60643ce2 100644 --- a/influxdb_client/service/checks_service.py +++ b/influxdb_client/service/checks_service.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech @@ -353,7 +353,7 @@ def delete_checks_id_labels_id_with_http_info(self, check_id, label_id, **kwargs urlopen_kw=urlopen_kw) def get_checks(self, org_id, **kwargs): # noqa: E501,D401,D403 - """Get all checks. + """List all checks. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -377,7 +377,7 @@ def get_checks(self, org_id, **kwargs): # noqa: E501,D401,D403 return data def get_checks_with_http_info(self, org_id, **kwargs): # noqa: E501,D401,D403 - """Get all checks. + """List all checks. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -471,7 +471,7 @@ def get_checks_with_http_info(self, org_id, **kwargs): # noqa: E501,D401,D403 urlopen_kw=urlopen_kw) def get_checks_id(self, check_id, **kwargs): # noqa: E501,D401,D403 - """Get a check. + """Retrieve a check. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -493,7 +493,7 @@ def get_checks_id(self, check_id, **kwargs): # noqa: E501,D401,D403 return data def get_checks_id_with_http_info(self, check_id, **kwargs): # noqa: E501,D401,D403 - """Get a check. + """Retrieve a check. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -679,7 +679,7 @@ def get_checks_id_labels_with_http_info(self, check_id, **kwargs): # noqa: E501 urlopen_kw=urlopen_kw) def get_checks_id_query(self, check_id, **kwargs): # noqa: E501,D401,D403 - """Get a check query. + """Retrieve a check query. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -701,7 +701,7 @@ def get_checks_id_query(self, check_id, **kwargs): # noqa: E501,D401,D403 return data def get_checks_id_query_with_http_info(self, check_id, **kwargs): # noqa: E501,D401,D403 - """Get a check query. + """Retrieve a check query. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True diff --git a/influxdb_client/service/config_service.py b/influxdb_client/service/config_service.py new file mode 100644 index 00000000..0f178e56 --- /dev/null +++ b/influxdb_client/service/config_service.py @@ -0,0 +1,129 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + + +class ConfigService(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None): # noqa: E501,D401,D403 + """ConfigService - a operation defined in OpenAPI.""" + if api_client is None: + raise ValueError("Invalid value for `api_client`, must be defined.") + self.api_client = api_client + + def get_config(self, **kwargs): # noqa: E501,D401,D403 + """Get the run-time configuration of the instance. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_config(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str zap_trace_span: OpenTracing span context + :return: Config + If the method is called asynchronously, + returns the request thread. + """ # noqa: E501 + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_config_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.get_config_with_http_info(**kwargs) # noqa: E501 + return data + + def get_config_with_http_info(self, **kwargs): # noqa: E501,D401,D403 + """Get the run-time configuration of the instance. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_config_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str zap_trace_span: OpenTracing span context + :return: Config + If the method is called asynchronously, + returns the request thread. + """ # noqa: E501 + local_var_params = locals() + + all_params = ['zap_trace_span'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + all_params.append('urlopen_kw') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_config" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'zap_trace_span' in local_var_params: + header_params['Zap-Trace-Span'] = local_var_params['zap_trace_span'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + # urlopen optional setting + urlopen_kw = None + if 'urlopen_kw' in kwargs: + urlopen_kw = kwargs['urlopen_kw'] + + return self.api_client.call_api( + '/api/v2/config', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Config', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + urlopen_kw=urlopen_kw) diff --git a/influxdb_client/service/dashboards_service.py b/influxdb_client/service/dashboards_service.py index 47fa7e96..0074bfe9 100644 --- a/influxdb_client/service/dashboards_service.py +++ b/influxdb_client/service/dashboards_service.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech @@ -585,7 +585,7 @@ def delete_dashboards_id_owners_id_with_http_info(self, user_id, dashboard_id, * urlopen_kw=urlopen_kw) def get_dashboards(self, **kwargs): # noqa: E501,D401,D403 - """Get all dashboards. + """List all dashboards. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -597,11 +597,11 @@ def get_dashboards(self, **kwargs): # noqa: E501,D401,D403 :param int offset: :param int limit: :param bool descending: - :param str owner: The owner ID. + :param str owner: A user identifier. Returns only dashboards where this user has the `owner` role. :param str sort_by: The column to sort by. - :param list[str] id: List of dashboard IDs to return. If both `id` and `owner` are specified, only `id` is used. - :param str org_id: The organization ID. - :param str org: The organization name. + :param list[str] id: A list of dashboard identifiers. Returns only the listed dashboards. If both `id` and `owner` are specified, only `id` is used. + :param str org_id: The identifier of the organization. + :param str org: The name of the organization. :return: Dashboards If the method is called asynchronously, returns the request thread. @@ -614,7 +614,7 @@ def get_dashboards(self, **kwargs): # noqa: E501,D401,D403 return data def get_dashboards_with_http_info(self, **kwargs): # noqa: E501,D401,D403 - """Get all dashboards. + """List all dashboards. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -626,11 +626,11 @@ def get_dashboards_with_http_info(self, **kwargs): # noqa: E501,D401,D403 :param int offset: :param int limit: :param bool descending: - :param str owner: The owner ID. + :param str owner: A user identifier. Returns only dashboards where this user has the `owner` role. :param str sort_by: The column to sort by. - :param list[str] id: List of dashboard IDs to return. If both `id` and `owner` are specified, only `id` is used. - :param str org_id: The organization ID. - :param str org: The organization name. + :param list[str] id: A list of dashboard identifiers. Returns only the listed dashboards. If both `id` and `owner` are specified, only `id` is used. + :param str org_id: The identifier of the organization. + :param str org: The name of the organization. :return: Dashboards If the method is called asynchronously, returns the request thread. @@ -720,7 +720,7 @@ def get_dashboards_with_http_info(self, **kwargs): # noqa: E501,D401,D403 urlopen_kw=urlopen_kw) def get_dashboards_id(self, dashboard_id, **kwargs): # noqa: E501,D401,D403 - """Get a Dashboard. + """Retrieve a Dashboard. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -743,7 +743,7 @@ def get_dashboards_id(self, dashboard_id, **kwargs): # noqa: E501,D401,D403 return data def get_dashboards_id_with_http_info(self, dashboard_id, **kwargs): # noqa: E501,D401,D403 - """Get a Dashboard. + """Retrieve a Dashboard. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True diff --git a/influxdb_client/service/dbr_ps_service.py b/influxdb_client/service/dbr_ps_service.py index bc58883f..8ba96319 100644 --- a/influxdb_client/service/dbr_ps_service.py +++ b/influxdb_client/service/dbr_ps_service.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech @@ -32,48 +32,50 @@ def __init__(self, api_client=None): # noqa: E501,D401,D403 raise ValueError("Invalid value for `api_client`, must be defined.") self.api_client = api_client - def delete_dbrpid(self, org_id, dbrp_id, **kwargs): # noqa: E501,D401,D403 + def delete_dbrpid(self, dbrp_id, **kwargs): # noqa: E501,D401,D403 """Delete a database retention policy. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_dbrpid(org_id, dbrp_id, async_req=True) + >>> thread = api.delete_dbrpid(dbrp_id, async_req=True) >>> result = thread.get() :param async_req bool - :param str org_id: Specifies the organization ID of the mapping (required) :param str dbrp_id: The database retention policy mapping (required) :param str zap_trace_span: OpenTracing span context + :param str org_id: Specifies the organization ID of the mapping + :param str org: Specifies the organization name of the mapping :return: None If the method is called asynchronously, returns the request thread. """ # noqa: E501 kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_dbrpid_with_http_info(org_id, dbrp_id, **kwargs) # noqa: E501 + return self.delete_dbrpid_with_http_info(dbrp_id, **kwargs) # noqa: E501 else: - (data) = self.delete_dbrpid_with_http_info(org_id, dbrp_id, **kwargs) # noqa: E501 + (data) = self.delete_dbrpid_with_http_info(dbrp_id, **kwargs) # noqa: E501 return data - def delete_dbrpid_with_http_info(self, org_id, dbrp_id, **kwargs): # noqa: E501,D401,D403 + def delete_dbrpid_with_http_info(self, dbrp_id, **kwargs): # noqa: E501,D401,D403 """Delete a database retention policy. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_dbrpid_with_http_info(org_id, dbrp_id, async_req=True) + >>> thread = api.delete_dbrpid_with_http_info(dbrp_id, async_req=True) >>> result = thread.get() :param async_req bool - :param str org_id: Specifies the organization ID of the mapping (required) :param str dbrp_id: The database retention policy mapping (required) :param str zap_trace_span: OpenTracing span context + :param str org_id: Specifies the organization ID of the mapping + :param str org: Specifies the organization name of the mapping :return: None If the method is called asynchronously, returns the request thread. """ # noqa: E501 local_var_params = locals() - all_params = ['org_id', 'dbrp_id', 'zap_trace_span'] # noqa: E501 + all_params = ['dbrp_id', 'zap_trace_span', 'org_id', 'org'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -88,10 +90,6 @@ def delete_dbrpid_with_http_info(self, org_id, dbrp_id, **kwargs): # noqa: E501 ) local_var_params[key] = val del local_var_params['kwargs'] - # verify the required parameter 'org_id' is set - if ('org_id' not in local_var_params or - local_var_params['org_id'] is None): - raise ValueError("Missing the required parameter `org_id` when calling `delete_dbrpid`") # noqa: E501 # verify the required parameter 'dbrp_id' is set if ('dbrp_id' not in local_var_params or local_var_params['dbrp_id'] is None): @@ -106,6 +104,8 @@ def delete_dbrpid_with_http_info(self, org_id, dbrp_id, **kwargs): # noqa: E501 query_params = [] if 'org_id' in local_var_params: query_params.append(('orgID', local_var_params['org_id'])) # noqa: E501 + if 'org' in local_var_params: + query_params.append(('org', local_var_params['org'])) # noqa: E501 header_params = {} if 'zap_trace_span' in local_var_params: @@ -144,17 +144,18 @@ def delete_dbrpid_with_http_info(self, org_id, dbrp_id, **kwargs): # noqa: E501 collection_formats=collection_formats, urlopen_kw=urlopen_kw) - def get_dbr_ps(self, org_id, **kwargs): # noqa: E501,D401,D403 - """List all database retention policy mappings. + def get_dbr_ps(self, **kwargs): # noqa: E501,D401,D403 + """List database retention policy mappings. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_dbr_ps(org_id, async_req=True) + >>> thread = api.get_dbr_ps(async_req=True) >>> result = thread.get() :param async_req bool - :param str org_id: Specifies the organization ID to filter on (required) :param str zap_trace_span: OpenTracing span context + :param str org_id: Specifies the organization ID to filter on + :param str org: Specifies the organization name to filter on :param str id: Specifies the mapping ID to filter on :param str bucket_id: Specifies the bucket ID to filter on :param bool default: Specifies filtering on default @@ -166,22 +167,23 @@ def get_dbr_ps(self, org_id, **kwargs): # noqa: E501,D401,D403 """ # noqa: E501 kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.get_dbr_ps_with_http_info(org_id, **kwargs) # noqa: E501 + return self.get_dbr_ps_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.get_dbr_ps_with_http_info(org_id, **kwargs) # noqa: E501 + (data) = self.get_dbr_ps_with_http_info(**kwargs) # noqa: E501 return data - def get_dbr_ps_with_http_info(self, org_id, **kwargs): # noqa: E501,D401,D403 - """List all database retention policy mappings. + def get_dbr_ps_with_http_info(self, **kwargs): # noqa: E501,D401,D403 + """List database retention policy mappings. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_dbr_ps_with_http_info(org_id, async_req=True) + >>> thread = api.get_dbr_ps_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool - :param str org_id: Specifies the organization ID to filter on (required) :param str zap_trace_span: OpenTracing span context + :param str org_id: Specifies the organization ID to filter on + :param str org: Specifies the organization name to filter on :param str id: Specifies the mapping ID to filter on :param str bucket_id: Specifies the bucket ID to filter on :param bool default: Specifies filtering on default @@ -193,7 +195,7 @@ def get_dbr_ps_with_http_info(self, org_id, **kwargs): # noqa: E501,D401,D403 """ # noqa: E501 local_var_params = locals() - all_params = ['org_id', 'zap_trace_span', 'id', 'bucket_id', 'default', 'db', 'rp'] # noqa: E501 + all_params = ['zap_trace_span', 'org_id', 'org', 'id', 'bucket_id', 'default', 'db', 'rp'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -208,10 +210,6 @@ def get_dbr_ps_with_http_info(self, org_id, **kwargs): # noqa: E501,D401,D403 ) local_var_params[key] = val del local_var_params['kwargs'] - # verify the required parameter 'org_id' is set - if ('org_id' not in local_var_params or - local_var_params['org_id'] is None): - raise ValueError("Missing the required parameter `org_id` when calling `get_dbr_ps`") # noqa: E501 collection_formats = {} @@ -220,6 +218,8 @@ def get_dbr_ps_with_http_info(self, org_id, **kwargs): # noqa: E501,D401,D403 query_params = [] if 'org_id' in local_var_params: query_params.append(('orgID', local_var_params['org_id'])) # noqa: E501 + if 'org' in local_var_params: + query_params.append(('org', local_var_params['org'])) # noqa: E501 if 'id' in local_var_params: query_params.append(('id', local_var_params['id'])) # noqa: E501 if 'bucket_id' in local_var_params: @@ -268,48 +268,50 @@ def get_dbr_ps_with_http_info(self, org_id, **kwargs): # noqa: E501,D401,D403 collection_formats=collection_formats, urlopen_kw=urlopen_kw) - def get_dbr_ps_id(self, org_id, dbrp_id, **kwargs): # noqa: E501,D401,D403 + def get_dbr_ps_id(self, dbrp_id, **kwargs): # noqa: E501,D401,D403 """Retrieve a database retention policy mapping. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_dbr_ps_id(org_id, dbrp_id, async_req=True) + >>> thread = api.get_dbr_ps_id(dbrp_id, async_req=True) >>> result = thread.get() :param async_req bool - :param str org_id: Specifies the organization ID of the mapping (required) :param str dbrp_id: The database retention policy mapping ID (required) :param str zap_trace_span: OpenTracing span context - :return: DBRP + :param str org_id: Specifies the organization ID of the mapping + :param str org: Specifies the organization name of the mapping + :return: DBRPGet If the method is called asynchronously, returns the request thread. """ # noqa: E501 kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.get_dbr_ps_id_with_http_info(org_id, dbrp_id, **kwargs) # noqa: E501 + return self.get_dbr_ps_id_with_http_info(dbrp_id, **kwargs) # noqa: E501 else: - (data) = self.get_dbr_ps_id_with_http_info(org_id, dbrp_id, **kwargs) # noqa: E501 + (data) = self.get_dbr_ps_id_with_http_info(dbrp_id, **kwargs) # noqa: E501 return data - def get_dbr_ps_id_with_http_info(self, org_id, dbrp_id, **kwargs): # noqa: E501,D401,D403 + def get_dbr_ps_id_with_http_info(self, dbrp_id, **kwargs): # noqa: E501,D401,D403 """Retrieve a database retention policy mapping. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_dbr_ps_id_with_http_info(org_id, dbrp_id, async_req=True) + >>> thread = api.get_dbr_ps_id_with_http_info(dbrp_id, async_req=True) >>> result = thread.get() :param async_req bool - :param str org_id: Specifies the organization ID of the mapping (required) :param str dbrp_id: The database retention policy mapping ID (required) :param str zap_trace_span: OpenTracing span context - :return: DBRP + :param str org_id: Specifies the organization ID of the mapping + :param str org: Specifies the organization name of the mapping + :return: DBRPGet If the method is called asynchronously, returns the request thread. """ # noqa: E501 local_var_params = locals() - all_params = ['org_id', 'dbrp_id', 'zap_trace_span'] # noqa: E501 + all_params = ['dbrp_id', 'zap_trace_span', 'org_id', 'org'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -324,10 +326,6 @@ def get_dbr_ps_id_with_http_info(self, org_id, dbrp_id, **kwargs): # noqa: E501 ) local_var_params[key] = val del local_var_params['kwargs'] - # verify the required parameter 'org_id' is set - if ('org_id' not in local_var_params or - local_var_params['org_id'] is None): - raise ValueError("Missing the required parameter `org_id` when calling `get_dbr_ps_id`") # noqa: E501 # verify the required parameter 'dbrp_id' is set if ('dbrp_id' not in local_var_params or local_var_params['dbrp_id'] is None): @@ -342,6 +340,8 @@ def get_dbr_ps_id_with_http_info(self, org_id, dbrp_id, **kwargs): # noqa: E501 query_params = [] if 'org_id' in local_var_params: query_params.append(('orgID', local_var_params['org_id'])) # noqa: E501 + if 'org' in local_var_params: + query_params.append(('org', local_var_params['org'])) # noqa: E501 header_params = {} if 'zap_trace_span' in local_var_params: @@ -371,7 +371,7 @@ def get_dbr_ps_id_with_http_info(self, org_id, dbrp_id, **kwargs): # noqa: E501 body=body_params, post_params=form_params, files=local_var_files, - response_type='DBRP', # noqa: E501 + response_type='DBRPGet', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -380,50 +380,52 @@ def get_dbr_ps_id_with_http_info(self, org_id, dbrp_id, **kwargs): # noqa: E501 collection_formats=collection_formats, urlopen_kw=urlopen_kw) - def patch_dbrpid(self, org_id, dbrp_id, dbrp_update, **kwargs): # noqa: E501,D401,D403 + def patch_dbrpid(self, dbrp_id, dbrp_update, **kwargs): # noqa: E501,D401,D403 """Update a database retention policy mapping. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.patch_dbrpid(org_id, dbrp_id, dbrp_update, async_req=True) + >>> thread = api.patch_dbrpid(dbrp_id, dbrp_update, async_req=True) >>> result = thread.get() :param async_req bool - :param str org_id: Specifies the organization ID of the mapping (required) :param str dbrp_id: The database retention policy mapping. (required) :param DBRPUpdate dbrp_update: Database retention policy update to apply (required) :param str zap_trace_span: OpenTracing span context - :return: DBRP + :param str org_id: Specifies the organization ID of the mapping + :param str org: Specifies the organization name of the mapping + :return: DBRPGet If the method is called asynchronously, returns the request thread. """ # noqa: E501 kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_dbrpid_with_http_info(org_id, dbrp_id, dbrp_update, **kwargs) # noqa: E501 + return self.patch_dbrpid_with_http_info(dbrp_id, dbrp_update, **kwargs) # noqa: E501 else: - (data) = self.patch_dbrpid_with_http_info(org_id, dbrp_id, dbrp_update, **kwargs) # noqa: E501 + (data) = self.patch_dbrpid_with_http_info(dbrp_id, dbrp_update, **kwargs) # noqa: E501 return data - def patch_dbrpid_with_http_info(self, org_id, dbrp_id, dbrp_update, **kwargs): # noqa: E501,D401,D403 + def patch_dbrpid_with_http_info(self, dbrp_id, dbrp_update, **kwargs): # noqa: E501,D401,D403 """Update a database retention policy mapping. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.patch_dbrpid_with_http_info(org_id, dbrp_id, dbrp_update, async_req=True) + >>> thread = api.patch_dbrpid_with_http_info(dbrp_id, dbrp_update, async_req=True) >>> result = thread.get() :param async_req bool - :param str org_id: Specifies the organization ID of the mapping (required) :param str dbrp_id: The database retention policy mapping. (required) :param DBRPUpdate dbrp_update: Database retention policy update to apply (required) :param str zap_trace_span: OpenTracing span context - :return: DBRP + :param str org_id: Specifies the organization ID of the mapping + :param str org: Specifies the organization name of the mapping + :return: DBRPGet If the method is called asynchronously, returns the request thread. """ # noqa: E501 local_var_params = locals() - all_params = ['org_id', 'dbrp_id', 'dbrp_update', 'zap_trace_span'] # noqa: E501 + all_params = ['dbrp_id', 'dbrp_update', 'zap_trace_span', 'org_id', 'org'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -438,10 +440,6 @@ def patch_dbrpid_with_http_info(self, org_id, dbrp_id, dbrp_update, **kwargs): ) local_var_params[key] = val del local_var_params['kwargs'] - # verify the required parameter 'org_id' is set - if ('org_id' not in local_var_params or - local_var_params['org_id'] is None): - raise ValueError("Missing the required parameter `org_id` when calling `patch_dbrpid`") # noqa: E501 # verify the required parameter 'dbrp_id' is set if ('dbrp_id' not in local_var_params or local_var_params['dbrp_id'] is None): @@ -460,6 +458,8 @@ def patch_dbrpid_with_http_info(self, org_id, dbrp_id, dbrp_update, **kwargs): query_params = [] if 'org_id' in local_var_params: query_params.append(('orgID', local_var_params['org_id'])) # noqa: E501 + if 'org' in local_var_params: + query_params.append(('org', local_var_params['org'])) # noqa: E501 header_params = {} if 'zap_trace_span' in local_var_params: @@ -495,7 +495,7 @@ def patch_dbrpid_with_http_info(self, org_id, dbrp_id, dbrp_update, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='DBRP', # noqa: E501 + response_type='DBRPGet', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -504,16 +504,16 @@ def patch_dbrpid_with_http_info(self, org_id, dbrp_id, dbrp_update, **kwargs): collection_formats=collection_formats, urlopen_kw=urlopen_kw) - def post_dbrp(self, dbrp, **kwargs): # noqa: E501,D401,D403 + def post_dbrp(self, dbrp_create, **kwargs): # noqa: E501,D401,D403 """Add a database retention policy mapping. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.post_dbrp(dbrp, async_req=True) + >>> thread = api.post_dbrp(dbrp_create, async_req=True) >>> result = thread.get() :param async_req bool - :param DBRP dbrp: The database retention policy mapping to add (required) + :param DBRPCreate dbrp_create: The database retention policy mapping to add (required) :param str zap_trace_span: OpenTracing span context :return: DBRP If the method is called asynchronously, @@ -521,21 +521,21 @@ def post_dbrp(self, dbrp, **kwargs): # noqa: E501,D401,D403 """ # noqa: E501 kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.post_dbrp_with_http_info(dbrp, **kwargs) # noqa: E501 + return self.post_dbrp_with_http_info(dbrp_create, **kwargs) # noqa: E501 else: - (data) = self.post_dbrp_with_http_info(dbrp, **kwargs) # noqa: E501 + (data) = self.post_dbrp_with_http_info(dbrp_create, **kwargs) # noqa: E501 return data - def post_dbrp_with_http_info(self, dbrp, **kwargs): # noqa: E501,D401,D403 + def post_dbrp_with_http_info(self, dbrp_create, **kwargs): # noqa: E501,D401,D403 """Add a database retention policy mapping. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.post_dbrp_with_http_info(dbrp, async_req=True) + >>> thread = api.post_dbrp_with_http_info(dbrp_create, async_req=True) >>> result = thread.get() :param async_req bool - :param DBRP dbrp: The database retention policy mapping to add (required) + :param DBRPCreate dbrp_create: The database retention policy mapping to add (required) :param str zap_trace_span: OpenTracing span context :return: DBRP If the method is called asynchronously, @@ -543,7 +543,7 @@ def post_dbrp_with_http_info(self, dbrp, **kwargs): # noqa: E501,D401,D403 """ # noqa: E501 local_var_params = locals() - all_params = ['dbrp', 'zap_trace_span'] # noqa: E501 + all_params = ['dbrp_create', 'zap_trace_span'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -558,10 +558,10 @@ def post_dbrp_with_http_info(self, dbrp, **kwargs): # noqa: E501,D401,D403 ) local_var_params[key] = val del local_var_params['kwargs'] - # verify the required parameter 'dbrp' is set - if ('dbrp' not in local_var_params or - local_var_params['dbrp'] is None): - raise ValueError("Missing the required parameter `dbrp` when calling `post_dbrp`") # noqa: E501 + # verify the required parameter 'dbrp_create' is set + if ('dbrp_create' not in local_var_params or + local_var_params['dbrp_create'] is None): + raise ValueError("Missing the required parameter `dbrp_create` when calling `post_dbrp`") # noqa: E501 collection_formats = {} @@ -577,8 +577,8 @@ def post_dbrp_with_http_info(self, dbrp, **kwargs): # noqa: E501,D401,D403 local_var_files = {} body_params = None - if 'dbrp' in local_var_params: - body_params = local_var_params['dbrp'] + if 'dbrp_create' in local_var_params: + body_params = local_var_params['dbrp_create'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 diff --git a/influxdb_client/service/delete_service.py b/influxdb_client/service/delete_service.py index 4adadf13..174d6ce6 100644 --- a/influxdb_client/service/delete_service.py +++ b/influxdb_client/service/delete_service.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech @@ -33,7 +33,7 @@ def __init__(self, api_client=None): # noqa: E501,D401,D403 self.api_client = api_client def post_delete(self, delete_predicate_request, **kwargs): # noqa: E501,D401,D403 - """Delete time series data from InfluxDB. + """Delete data. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -41,7 +41,7 @@ def post_delete(self, delete_predicate_request, **kwargs): # noqa: E501,D401,D4 >>> result = thread.get() :param async_req bool - :param DeletePredicateRequest delete_predicate_request: Predicate delete request (required) + :param DeletePredicateRequest delete_predicate_request: Deletes data from an InfluxDB bucket. (required) :param str zap_trace_span: OpenTracing span context :param str org: Specifies the organization to delete data from. :param str bucket: Specifies the bucket to delete data from. @@ -59,7 +59,7 @@ def post_delete(self, delete_predicate_request, **kwargs): # noqa: E501,D401,D4 return data def post_delete_with_http_info(self, delete_predicate_request, **kwargs): # noqa: E501,D401,D403 - """Delete time series data from InfluxDB. + """Delete data. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -67,7 +67,7 @@ def post_delete_with_http_info(self, delete_predicate_request, **kwargs): # noq >>> result = thread.get() :param async_req bool - :param DeletePredicateRequest delete_predicate_request: Predicate delete request (required) + :param DeletePredicateRequest delete_predicate_request: Deletes data from an InfluxDB bucket. (required) :param str zap_trace_span: OpenTracing span context :param str org: Specifies the organization to delete data from. :param str bucket: Specifies the bucket to delete data from. diff --git a/influxdb_client/service/health_service.py b/influxdb_client/service/health_service.py index 0ffc48a4..963abf51 100644 --- a/influxdb_client/service/health_service.py +++ b/influxdb_client/service/health_service.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/service/invocable_scripts_service.py b/influxdb_client/service/invocable_scripts_service.py index 50a5c4f6..699dea37 100644 --- a/influxdb_client/service/invocable_scripts_service.py +++ b/influxdb_client/service/invocable_scripts_service.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/service/labels_service.py b/influxdb_client/service/labels_service.py index 7319645e..c3bb3989 100644 --- a/influxdb_client/service/labels_service.py +++ b/influxdb_client/service/labels_service.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech @@ -137,7 +137,7 @@ def delete_labels_id_with_http_info(self, label_id, **kwargs): # noqa: E501,D40 urlopen_kw=urlopen_kw) def get_labels(self, **kwargs): # noqa: E501,D401,D403 - """Get all labels. + """List all labels. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -159,7 +159,7 @@ def get_labels(self, **kwargs): # noqa: E501,D401,D403 return data def get_labels_with_http_info(self, **kwargs): # noqa: E501,D401,D403 - """Get all labels. + """List all labels. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -237,7 +237,7 @@ def get_labels_with_http_info(self, **kwargs): # noqa: E501,D401,D403 urlopen_kw=urlopen_kw) def get_labels_id(self, label_id, **kwargs): # noqa: E501,D401,D403 - """Get a label. + """Retrieve a label. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -259,7 +259,7 @@ def get_labels_id(self, label_id, **kwargs): # noqa: E501,D401,D403 return data def get_labels_id_with_http_info(self, label_id, **kwargs): # noqa: E501,D401,D403 - """Get a label. + """Retrieve a label. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True diff --git a/influxdb_client/service/legacy_authorizations_service.py b/influxdb_client/service/legacy_authorizations_service.py new file mode 100644 index 00000000..80289420 --- /dev/null +++ b/influxdb_client/service/legacy_authorizations_service.py @@ -0,0 +1,701 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + + +class LegacyAuthorizationsService(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None): # noqa: E501,D401,D403 + """LegacyAuthorizationsService - a operation defined in OpenAPI.""" + if api_client is None: + raise ValueError("Invalid value for `api_client`, must be defined.") + self.api_client = api_client + + def delete_legacy_authorizations_id(self, auth_id, **kwargs): # noqa: E501,D401,D403 + """Delete a legacy authorization. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_legacy_authorizations_id(auth_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str auth_id: The ID of the legacy authorization to delete. (required) + :param str zap_trace_span: OpenTracing span context + :return: None + If the method is called asynchronously, + returns the request thread. + """ # noqa: E501 + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.delete_legacy_authorizations_id_with_http_info(auth_id, **kwargs) # noqa: E501 + else: + (data) = self.delete_legacy_authorizations_id_with_http_info(auth_id, **kwargs) # noqa: E501 + return data + + def delete_legacy_authorizations_id_with_http_info(self, auth_id, **kwargs): # noqa: E501,D401,D403 + """Delete a legacy authorization. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_legacy_authorizations_id_with_http_info(auth_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str auth_id: The ID of the legacy authorization to delete. (required) + :param str zap_trace_span: OpenTracing span context + :return: None + If the method is called asynchronously, + returns the request thread. + """ # noqa: E501 + local_var_params = locals() + + all_params = ['auth_id', 'zap_trace_span'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + all_params.append('urlopen_kw') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_legacy_authorizations_id" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'auth_id' is set + if ('auth_id' not in local_var_params or + local_var_params['auth_id'] is None): + raise ValueError("Missing the required parameter `auth_id` when calling `delete_legacy_authorizations_id`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'auth_id' in local_var_params: + path_params['authID'] = local_var_params['auth_id'] # noqa: E501 + + query_params = [] + + header_params = {} + if 'zap_trace_span' in local_var_params: + header_params['Zap-Trace-Span'] = local_var_params['zap_trace_span'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + # urlopen optional setting + urlopen_kw = None + if 'urlopen_kw' in kwargs: + urlopen_kw = kwargs['urlopen_kw'] + + return self.api_client.call_api( + '/private/legacy/authorizations/{authID}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + urlopen_kw=urlopen_kw) + + def get_legacy_authorizations(self, **kwargs): # noqa: E501,D401,D403 + """List all legacy authorizations. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_legacy_authorizations(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str zap_trace_span: OpenTracing span context + :param str user_id: Only show legacy authorizations that belong to a user ID. + :param str user: Only show legacy authorizations that belong to a user name. + :param str org_id: Only show legacy authorizations that belong to an organization ID. + :param str org: Only show legacy authorizations that belong to a organization name. + :param str token: Only show legacy authorizations with a specified token (auth name). + :param str auth_id: Only show legacy authorizations with a specified auth ID. + :return: Authorizations + If the method is called asynchronously, + returns the request thread. + """ # noqa: E501 + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_legacy_authorizations_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.get_legacy_authorizations_with_http_info(**kwargs) # noqa: E501 + return data + + def get_legacy_authorizations_with_http_info(self, **kwargs): # noqa: E501,D401,D403 + """List all legacy authorizations. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_legacy_authorizations_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str zap_trace_span: OpenTracing span context + :param str user_id: Only show legacy authorizations that belong to a user ID. + :param str user: Only show legacy authorizations that belong to a user name. + :param str org_id: Only show legacy authorizations that belong to an organization ID. + :param str org: Only show legacy authorizations that belong to a organization name. + :param str token: Only show legacy authorizations with a specified token (auth name). + :param str auth_id: Only show legacy authorizations with a specified auth ID. + :return: Authorizations + If the method is called asynchronously, + returns the request thread. + """ # noqa: E501 + local_var_params = locals() + + all_params = ['zap_trace_span', 'user_id', 'user', 'org_id', 'org', 'token', 'auth_id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + all_params.append('urlopen_kw') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_legacy_authorizations" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'user_id' in local_var_params: + query_params.append(('userID', local_var_params['user_id'])) # noqa: E501 + if 'user' in local_var_params: + query_params.append(('user', local_var_params['user'])) # noqa: E501 + if 'org_id' in local_var_params: + query_params.append(('orgID', local_var_params['org_id'])) # noqa: E501 + if 'org' in local_var_params: + query_params.append(('org', local_var_params['org'])) # noqa: E501 + if 'token' in local_var_params: + query_params.append(('token', local_var_params['token'])) # noqa: E501 + if 'auth_id' in local_var_params: + query_params.append(('authID', local_var_params['auth_id'])) # noqa: E501 + + header_params = {} + if 'zap_trace_span' in local_var_params: + header_params['Zap-Trace-Span'] = local_var_params['zap_trace_span'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + # urlopen optional setting + urlopen_kw = None + if 'urlopen_kw' in kwargs: + urlopen_kw = kwargs['urlopen_kw'] + + return self.api_client.call_api( + '/private/legacy/authorizations', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Authorizations', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + urlopen_kw=urlopen_kw) + + def get_legacy_authorizations_id(self, auth_id, **kwargs): # noqa: E501,D401,D403 + """Retrieve a legacy authorization. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_legacy_authorizations_id(auth_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str auth_id: The ID of the legacy authorization to get. (required) + :param str zap_trace_span: OpenTracing span context + :return: Authorization + If the method is called asynchronously, + returns the request thread. + """ # noqa: E501 + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_legacy_authorizations_id_with_http_info(auth_id, **kwargs) # noqa: E501 + else: + (data) = self.get_legacy_authorizations_id_with_http_info(auth_id, **kwargs) # noqa: E501 + return data + + def get_legacy_authorizations_id_with_http_info(self, auth_id, **kwargs): # noqa: E501,D401,D403 + """Retrieve a legacy authorization. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_legacy_authorizations_id_with_http_info(auth_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str auth_id: The ID of the legacy authorization to get. (required) + :param str zap_trace_span: OpenTracing span context + :return: Authorization + If the method is called asynchronously, + returns the request thread. + """ # noqa: E501 + local_var_params = locals() + + all_params = ['auth_id', 'zap_trace_span'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + all_params.append('urlopen_kw') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_legacy_authorizations_id" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'auth_id' is set + if ('auth_id' not in local_var_params or + local_var_params['auth_id'] is None): + raise ValueError("Missing the required parameter `auth_id` when calling `get_legacy_authorizations_id`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'auth_id' in local_var_params: + path_params['authID'] = local_var_params['auth_id'] # noqa: E501 + + query_params = [] + + header_params = {} + if 'zap_trace_span' in local_var_params: + header_params['Zap-Trace-Span'] = local_var_params['zap_trace_span'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + # urlopen optional setting + urlopen_kw = None + if 'urlopen_kw' in kwargs: + urlopen_kw = kwargs['urlopen_kw'] + + return self.api_client.call_api( + '/private/legacy/authorizations/{authID}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Authorization', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + urlopen_kw=urlopen_kw) + + def patch_legacy_authorizations_id(self, auth_id, authorization_update_request, **kwargs): # noqa: E501,D401,D403 + """Update a legacy authorization to be active or inactive. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.patch_legacy_authorizations_id(auth_id, authorization_update_request, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str auth_id: The ID of the legacy authorization to update. (required) + :param AuthorizationUpdateRequest authorization_update_request: Legacy authorization to update (required) + :param str zap_trace_span: OpenTracing span context + :return: Authorization + If the method is called asynchronously, + returns the request thread. + """ # noqa: E501 + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.patch_legacy_authorizations_id_with_http_info(auth_id, authorization_update_request, **kwargs) # noqa: E501 + else: + (data) = self.patch_legacy_authorizations_id_with_http_info(auth_id, authorization_update_request, **kwargs) # noqa: E501 + return data + + def patch_legacy_authorizations_id_with_http_info(self, auth_id, authorization_update_request, **kwargs): # noqa: E501,D401,D403 + """Update a legacy authorization to be active or inactive. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.patch_legacy_authorizations_id_with_http_info(auth_id, authorization_update_request, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str auth_id: The ID of the legacy authorization to update. (required) + :param AuthorizationUpdateRequest authorization_update_request: Legacy authorization to update (required) + :param str zap_trace_span: OpenTracing span context + :return: Authorization + If the method is called asynchronously, + returns the request thread. + """ # noqa: E501 + local_var_params = locals() + + all_params = ['auth_id', 'authorization_update_request', 'zap_trace_span'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + all_params.append('urlopen_kw') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_legacy_authorizations_id" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'auth_id' is set + if ('auth_id' not in local_var_params or + local_var_params['auth_id'] is None): + raise ValueError("Missing the required parameter `auth_id` when calling `patch_legacy_authorizations_id`") # noqa: E501 + # verify the required parameter 'authorization_update_request' is set + if ('authorization_update_request' not in local_var_params or + local_var_params['authorization_update_request'] is None): + raise ValueError("Missing the required parameter `authorization_update_request` when calling `patch_legacy_authorizations_id`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'auth_id' in local_var_params: + path_params['authID'] = local_var_params['auth_id'] # noqa: E501 + + query_params = [] + + header_params = {} + if 'zap_trace_span' in local_var_params: + header_params['Zap-Trace-Span'] = local_var_params['zap_trace_span'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'authorization_update_request' in local_var_params: + body_params = local_var_params['authorization_update_request'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + # urlopen optional setting + urlopen_kw = None + if 'urlopen_kw' in kwargs: + urlopen_kw = kwargs['urlopen_kw'] + + return self.api_client.call_api( + '/private/legacy/authorizations/{authID}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Authorization', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + urlopen_kw=urlopen_kw) + + def post_legacy_authorizations(self, legacy_authorization_post_request, **kwargs): # noqa: E501,D401,D403 + """Create a legacy authorization. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.post_legacy_authorizations(legacy_authorization_post_request, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param LegacyAuthorizationPostRequest legacy_authorization_post_request: Legacy authorization to create (required) + :param str zap_trace_span: OpenTracing span context + :return: Authorization + If the method is called asynchronously, + returns the request thread. + """ # noqa: E501 + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.post_legacy_authorizations_with_http_info(legacy_authorization_post_request, **kwargs) # noqa: E501 + else: + (data) = self.post_legacy_authorizations_with_http_info(legacy_authorization_post_request, **kwargs) # noqa: E501 + return data + + def post_legacy_authorizations_with_http_info(self, legacy_authorization_post_request, **kwargs): # noqa: E501,D401,D403 + """Create a legacy authorization. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.post_legacy_authorizations_with_http_info(legacy_authorization_post_request, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param LegacyAuthorizationPostRequest legacy_authorization_post_request: Legacy authorization to create (required) + :param str zap_trace_span: OpenTracing span context + :return: Authorization + If the method is called asynchronously, + returns the request thread. + """ # noqa: E501 + local_var_params = locals() + + all_params = ['legacy_authorization_post_request', 'zap_trace_span'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + all_params.append('urlopen_kw') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method post_legacy_authorizations" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'legacy_authorization_post_request' is set + if ('legacy_authorization_post_request' not in local_var_params or + local_var_params['legacy_authorization_post_request'] is None): + raise ValueError("Missing the required parameter `legacy_authorization_post_request` when calling `post_legacy_authorizations`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'zap_trace_span' in local_var_params: + header_params['Zap-Trace-Span'] = local_var_params['zap_trace_span'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'legacy_authorization_post_request' in local_var_params: + body_params = local_var_params['legacy_authorization_post_request'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + # urlopen optional setting + urlopen_kw = None + if 'urlopen_kw' in kwargs: + urlopen_kw = kwargs['urlopen_kw'] + + return self.api_client.call_api( + '/private/legacy/authorizations', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Authorization', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + urlopen_kw=urlopen_kw) + + def post_legacy_authorizations_id_password(self, auth_id, password_reset_body, **kwargs): # noqa: E501,D401,D403 + """Set a legacy authorization password. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.post_legacy_authorizations_id_password(auth_id, password_reset_body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str auth_id: The ID of the legacy authorization to update. (required) + :param PasswordResetBody password_reset_body: New password (required) + :param str zap_trace_span: OpenTracing span context + :return: None + If the method is called asynchronously, + returns the request thread. + """ # noqa: E501 + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.post_legacy_authorizations_id_password_with_http_info(auth_id, password_reset_body, **kwargs) # noqa: E501 + else: + (data) = self.post_legacy_authorizations_id_password_with_http_info(auth_id, password_reset_body, **kwargs) # noqa: E501 + return data + + def post_legacy_authorizations_id_password_with_http_info(self, auth_id, password_reset_body, **kwargs): # noqa: E501,D401,D403 + """Set a legacy authorization password. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.post_legacy_authorizations_id_password_with_http_info(auth_id, password_reset_body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str auth_id: The ID of the legacy authorization to update. (required) + :param PasswordResetBody password_reset_body: New password (required) + :param str zap_trace_span: OpenTracing span context + :return: None + If the method is called asynchronously, + returns the request thread. + """ # noqa: E501 + local_var_params = locals() + + all_params = ['auth_id', 'password_reset_body', 'zap_trace_span'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + all_params.append('urlopen_kw') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method post_legacy_authorizations_id_password" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'auth_id' is set + if ('auth_id' not in local_var_params or + local_var_params['auth_id'] is None): + raise ValueError("Missing the required parameter `auth_id` when calling `post_legacy_authorizations_id_password`") # noqa: E501 + # verify the required parameter 'password_reset_body' is set + if ('password_reset_body' not in local_var_params or + local_var_params['password_reset_body'] is None): + raise ValueError("Missing the required parameter `password_reset_body` when calling `post_legacy_authorizations_id_password`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'auth_id' in local_var_params: + path_params['authID'] = local_var_params['auth_id'] # noqa: E501 + + query_params = [] + + header_params = {} + if 'zap_trace_span' in local_var_params: + header_params['Zap-Trace-Span'] = local_var_params['zap_trace_span'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'password_reset_body' in local_var_params: + body_params = local_var_params['password_reset_body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + # urlopen optional setting + urlopen_kw = None + if 'urlopen_kw' in kwargs: + urlopen_kw = kwargs['urlopen_kw'] + + return self.api_client.call_api( + '/private/legacy/authorizations/{authID}/password', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + urlopen_kw=urlopen_kw) diff --git a/influxdb_client/service/metrics_service.py b/influxdb_client/service/metrics_service.py new file mode 100644 index 00000000..86aeaba0 --- /dev/null +++ b/influxdb_client/service/metrics_service.py @@ -0,0 +1,129 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + + +class MetricsService(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None): # noqa: E501,D401,D403 + """MetricsService - a operation defined in OpenAPI.""" + if api_client is None: + raise ValueError("Invalid value for `api_client`, must be defined.") + self.api_client = api_client + + def get_metrics(self, **kwargs): # noqa: E501,D401,D403 + """Get metrics of an instance. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_metrics(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str zap_trace_span: OpenTracing span context + :return: str + If the method is called asynchronously, + returns the request thread. + """ # noqa: E501 + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_metrics_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.get_metrics_with_http_info(**kwargs) # noqa: E501 + return data + + def get_metrics_with_http_info(self, **kwargs): # noqa: E501,D401,D403 + """Get metrics of an instance. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_metrics_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str zap_trace_span: OpenTracing span context + :return: str + If the method is called asynchronously, + returns the request thread. + """ # noqa: E501 + local_var_params = locals() + + all_params = ['zap_trace_span'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + all_params.append('urlopen_kw') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_metrics" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'zap_trace_span' in local_var_params: + header_params['Zap-Trace-Span'] = local_var_params['zap_trace_span'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['text/plain', 'application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + # urlopen optional setting + urlopen_kw = None + if 'urlopen_kw' in kwargs: + urlopen_kw = kwargs['urlopen_kw'] + + return self.api_client.call_api( + '/metrics', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + urlopen_kw=urlopen_kw) diff --git a/influxdb_client/service/notification_endpoints_service.py b/influxdb_client/service/notification_endpoints_service.py index 5d498f2f..c745c48d 100644 --- a/influxdb_client/service/notification_endpoints_service.py +++ b/influxdb_client/service/notification_endpoints_service.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech @@ -353,7 +353,7 @@ def delete_notification_endpoints_id_labels_id_with_http_info(self, endpoint_id, urlopen_kw=urlopen_kw) def get_notification_endpoints(self, org_id, **kwargs): # noqa: E501,D401,D403 - """Get all notification endpoints. + """List all notification endpoints. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -377,7 +377,7 @@ def get_notification_endpoints(self, org_id, **kwargs): # noqa: E501,D401,D403 return data def get_notification_endpoints_with_http_info(self, org_id, **kwargs): # noqa: E501,D401,D403 - """Get all notification endpoints. + """List all notification endpoints. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -471,7 +471,7 @@ def get_notification_endpoints_with_http_info(self, org_id, **kwargs): # noqa: urlopen_kw=urlopen_kw) def get_notification_endpoints_id(self, endpoint_id, **kwargs): # noqa: E501,D401,D403 - """Get a notification endpoint. + """Retrieve a notification endpoint. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -493,7 +493,7 @@ def get_notification_endpoints_id(self, endpoint_id, **kwargs): # noqa: E501,D4 return data def get_notification_endpoints_id_with_http_info(self, endpoint_id, **kwargs): # noqa: E501,D401,D403 - """Get a notification endpoint. + """Retrieve a notification endpoint. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True diff --git a/influxdb_client/service/notification_rules_service.py b/influxdb_client/service/notification_rules_service.py index 6b543643..10f052a9 100644 --- a/influxdb_client/service/notification_rules_service.py +++ b/influxdb_client/service/notification_rules_service.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech @@ -353,7 +353,7 @@ def delete_notification_rules_id_labels_id_with_http_info(self, rule_id, label_i urlopen_kw=urlopen_kw) def get_notification_rules(self, org_id, **kwargs): # noqa: E501,D401,D403 - """Get all notification rules. + """List all notification rules. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -379,7 +379,7 @@ def get_notification_rules(self, org_id, **kwargs): # noqa: E501,D401,D403 return data def get_notification_rules_with_http_info(self, org_id, **kwargs): # noqa: E501,D401,D403 - """Get all notification rules. + """List all notification rules. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -481,7 +481,7 @@ def get_notification_rules_with_http_info(self, org_id, **kwargs): # noqa: E501 urlopen_kw=urlopen_kw) def get_notification_rules_id(self, rule_id, **kwargs): # noqa: E501,D401,D403 - """Get a notification rule. + """Retrieve a notification rule. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -503,7 +503,7 @@ def get_notification_rules_id(self, rule_id, **kwargs): # noqa: E501,D401,D403 return data def get_notification_rules_id_with_http_info(self, rule_id, **kwargs): # noqa: E501,D401,D403 - """Get a notification rule. + """Retrieve a notification rule. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True diff --git a/influxdb_client/service/organizations_service.py b/influxdb_client/service/organizations_service.py index e44c06f7..8d7a2654 100644 --- a/influxdb_client/service/organizations_service.py +++ b/influxdb_client/service/organizations_service.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech @@ -798,110 +798,6 @@ def get_orgs_id_owners_with_http_info(self, org_id, **kwargs): # noqa: E501,D40 collection_formats=collection_formats, urlopen_kw=urlopen_kw) - def get_orgs_id_secrets(self, org_id, **kwargs): # noqa: E501,D401,D403 - """List all secret keys for an organization. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_orgs_id_secrets(org_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str org_id: The organization ID. (required) - :param str zap_trace_span: OpenTracing span context - :return: SecretKeysResponse - If the method is called asynchronously, - returns the request thread. - """ # noqa: E501 - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_orgs_id_secrets_with_http_info(org_id, **kwargs) # noqa: E501 - else: - (data) = self.get_orgs_id_secrets_with_http_info(org_id, **kwargs) # noqa: E501 - return data - - def get_orgs_id_secrets_with_http_info(self, org_id, **kwargs): # noqa: E501,D401,D403 - """List all secret keys for an organization. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_orgs_id_secrets_with_http_info(org_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str org_id: The organization ID. (required) - :param str zap_trace_span: OpenTracing span context - :return: SecretKeysResponse - If the method is called asynchronously, - returns the request thread. - """ # noqa: E501 - local_var_params = locals() - - all_params = ['org_id', 'zap_trace_span'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - all_params.append('urlopen_kw') - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_orgs_id_secrets" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - # verify the required parameter 'org_id' is set - if ('org_id' not in local_var_params or - local_var_params['org_id'] is None): - raise ValueError("Missing the required parameter `org_id` when calling `get_orgs_id_secrets`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'org_id' in local_var_params: - path_params['orgID'] = local_var_params['org_id'] # noqa: E501 - - query_params = [] - - header_params = {} - if 'zap_trace_span' in local_var_params: - header_params['Zap-Trace-Span'] = local_var_params['zap_trace_span'] # noqa: E501 - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - # urlopen optional setting - urlopen_kw = None - if 'urlopen_kw' in kwargs: - urlopen_kw = kwargs['urlopen_kw'] - - return self.api_client.call_api( - '/api/v2/orgs/{orgID}/secrets', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='SecretKeysResponse', # noqa: E501 - auth_settings=auth_settings, - async_req=local_var_params.get('async_req'), - _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - urlopen_kw=urlopen_kw) - def patch_orgs_id(self, org_id, patch_organization_request, **kwargs): # noqa: E501,D401,D403 """Update an organization. @@ -1018,122 +914,6 @@ def patch_orgs_id_with_http_info(self, org_id, patch_organization_request, **kwa collection_formats=collection_formats, urlopen_kw=urlopen_kw) - def patch_orgs_id_secrets(self, org_id, request_body, **kwargs): # noqa: E501,D401,D403 - """Update secrets in an organization. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.patch_orgs_id_secrets(org_id, request_body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str org_id: The organization ID. (required) - :param dict(str, str) request_body: Secret key value pairs to update/add (required) - :param str zap_trace_span: OpenTracing span context - :return: None - If the method is called asynchronously, - returns the request thread. - """ # noqa: E501 - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_orgs_id_secrets_with_http_info(org_id, request_body, **kwargs) # noqa: E501 - else: - (data) = self.patch_orgs_id_secrets_with_http_info(org_id, request_body, **kwargs) # noqa: E501 - return data - - def patch_orgs_id_secrets_with_http_info(self, org_id, request_body, **kwargs): # noqa: E501,D401,D403 - """Update secrets in an organization. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.patch_orgs_id_secrets_with_http_info(org_id, request_body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str org_id: The organization ID. (required) - :param dict(str, str) request_body: Secret key value pairs to update/add (required) - :param str zap_trace_span: OpenTracing span context - :return: None - If the method is called asynchronously, - returns the request thread. - """ # noqa: E501 - local_var_params = locals() - - all_params = ['org_id', 'request_body', 'zap_trace_span'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - all_params.append('urlopen_kw') - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method patch_orgs_id_secrets" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - # verify the required parameter 'org_id' is set - if ('org_id' not in local_var_params or - local_var_params['org_id'] is None): - raise ValueError("Missing the required parameter `org_id` when calling `patch_orgs_id_secrets`") # noqa: E501 - # verify the required parameter 'request_body' is set - if ('request_body' not in local_var_params or - local_var_params['request_body'] is None): - raise ValueError("Missing the required parameter `request_body` when calling `patch_orgs_id_secrets`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'org_id' in local_var_params: - path_params['orgID'] = local_var_params['org_id'] # noqa: E501 - - query_params = [] - - header_params = {} - if 'zap_trace_span' in local_var_params: - header_params['Zap-Trace-Span'] = local_var_params['zap_trace_span'] # noqa: E501 - - form_params = [] - local_var_files = {} - - body_params = None - if 'request_body' in local_var_params: - body_params = local_var_params['request_body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - # urlopen optional setting - urlopen_kw = None - if 'urlopen_kw' in kwargs: - urlopen_kw = kwargs['urlopen_kw'] - - return self.api_client.call_api( - '/api/v2/orgs/{orgID}/secrets', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, # noqa: E501 - auth_settings=auth_settings, - async_req=local_var_params.get('async_req'), - _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - urlopen_kw=urlopen_kw) - def post_orgs(self, post_organization_request, **kwargs): # noqa: E501,D401,D403 """Create an organization. @@ -1473,119 +1253,3 @@ def post_orgs_id_owners_with_http_info(self, org_id, add_resource_member_request _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats, urlopen_kw=urlopen_kw) - - def post_orgs_id_secrets(self, org_id, secret_keys, **kwargs): # noqa: E501,D401,D403 - """Delete secrets from an organization. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.post_orgs_id_secrets(org_id, secret_keys, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str org_id: The organization ID. (required) - :param SecretKeys secret_keys: Secret key to delete (required) - :param str zap_trace_span: OpenTracing span context - :return: None - If the method is called asynchronously, - returns the request thread. - """ # noqa: E501 - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.post_orgs_id_secrets_with_http_info(org_id, secret_keys, **kwargs) # noqa: E501 - else: - (data) = self.post_orgs_id_secrets_with_http_info(org_id, secret_keys, **kwargs) # noqa: E501 - return data - - def post_orgs_id_secrets_with_http_info(self, org_id, secret_keys, **kwargs): # noqa: E501,D401,D403 - """Delete secrets from an organization. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.post_orgs_id_secrets_with_http_info(org_id, secret_keys, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str org_id: The organization ID. (required) - :param SecretKeys secret_keys: Secret key to delete (required) - :param str zap_trace_span: OpenTracing span context - :return: None - If the method is called asynchronously, - returns the request thread. - """ # noqa: E501 - local_var_params = locals() - - all_params = ['org_id', 'secret_keys', 'zap_trace_span'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - all_params.append('urlopen_kw') - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method post_orgs_id_secrets" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - # verify the required parameter 'org_id' is set - if ('org_id' not in local_var_params or - local_var_params['org_id'] is None): - raise ValueError("Missing the required parameter `org_id` when calling `post_orgs_id_secrets`") # noqa: E501 - # verify the required parameter 'secret_keys' is set - if ('secret_keys' not in local_var_params or - local_var_params['secret_keys'] is None): - raise ValueError("Missing the required parameter `secret_keys` when calling `post_orgs_id_secrets`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'org_id' in local_var_params: - path_params['orgID'] = local_var_params['org_id'] # noqa: E501 - - query_params = [] - - header_params = {} - if 'zap_trace_span' in local_var_params: - header_params['Zap-Trace-Span'] = local_var_params['zap_trace_span'] # noqa: E501 - - form_params = [] - local_var_files = {} - - body_params = None - if 'secret_keys' in local_var_params: - body_params = local_var_params['secret_keys'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - # urlopen optional setting - urlopen_kw = None - if 'urlopen_kw' in kwargs: - urlopen_kw = kwargs['urlopen_kw'] - - return self.api_client.call_api( - '/api/v2/orgs/{orgID}/secrets/delete', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, # noqa: E501 - auth_settings=auth_settings, - async_req=local_var_params.get('async_req'), - _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - urlopen_kw=urlopen_kw) diff --git a/influxdb_client/service/ping_service.py b/influxdb_client/service/ping_service.py index 02e72bc9..8e8c3768 100644 --- a/influxdb_client/service/ping_service.py +++ b/influxdb_client/service/ping_service.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 diff --git a/influxdb_client/service/query_service.py b/influxdb_client/service/query_service.py index 8638a595..884b5792 100644 --- a/influxdb_client/service/query_service.py +++ b/influxdb_client/service/query_service.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech @@ -33,7 +33,7 @@ def __init__(self, api_client=None): # noqa: E501,D401,D403 self.api_client = api_client def get_query_suggestions(self, **kwargs): # noqa: E501,D401,D403 - """get_query_suggestions. + """Retrieve query suggestions. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -54,7 +54,7 @@ def get_query_suggestions(self, **kwargs): # noqa: E501,D401,D403 return data def get_query_suggestions_with_http_info(self, **kwargs): # noqa: E501,D401,D403 - """get_query_suggestions. + """Retrieve query suggestions. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -129,7 +129,7 @@ def get_query_suggestions_with_http_info(self, **kwargs): # noqa: E501,D401,D40 urlopen_kw=urlopen_kw) def get_query_suggestions_name(self, name, **kwargs): # noqa: E501,D401,D403 - """get_query_suggestions_name. + """Retrieve query suggestions for a branching suggestion. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -151,7 +151,7 @@ def get_query_suggestions_name(self, name, **kwargs): # noqa: E501,D401,D403 return data def get_query_suggestions_name_with_http_info(self, name, **kwargs): # noqa: E501,D401,D403 - """get_query_suggestions_name. + """Retrieve query suggestions for a branching suggestion. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -233,8 +233,9 @@ def get_query_suggestions_name_with_http_info(self, name, **kwargs): # noqa: E5 urlopen_kw=urlopen_kw) def post_query(self, **kwargs): # noqa: E501,D401,D403 - """Query InfluxDB. + """Query data. + Retrieves data from InfluxDB buckets. To query data, you need the following: - **organization** – _See [View organizations](https://docs.influxdata.com/influxdb/v2.1/organizations/view-orgs/#view-your-organization-id) for instructions on viewing your organization ID._ - **API token** – _See [View tokens](https://docs.influxdata.com/influxdb/v2.1/security/tokens/view-tokens/) for instructions on viewing your API token._ - **InfluxDB URL** – _See [InfluxDB URLs](https://docs.influxdata.com/influxdb/v2.1/reference/urls/)_. - **Flux query** – _See [Flux](https://docs.influxdata.com/flux/v0.x/)._ For more information and examples, see [Query with the InfluxDB API](https://docs.influxdata.com/influxdb/v2.1/query-data/execute-queries/influx-api/). This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.post_query(async_req=True) @@ -242,9 +243,9 @@ def post_query(self, **kwargs): # noqa: E501,D401,D403 :param async_req bool :param str zap_trace_span: OpenTracing span context - :param str accept_encoding: The Accept-Encoding request HTTP header advertises which content encoding, usually a compression algorithm, the client is able to understand. + :param str accept_encoding: Indicates the content encoding (usually a compression algorithm) that the client can understand. :param str content_type: - :param str org: Specifies the name of the organization executing the query. Takes either the ID or Name interchangeably. If both `orgID` and `org` are specified, `org` takes precedence. + :param str org: Specifies the name of the organization executing the query. Takes either the ID or Name. If both `orgID` and `org` are specified, `org` takes precedence. :param str org_id: Specifies the ID of the organization executing the query. If both `orgID` and `org` are specified, `org` takes precedence. :param Query query: Flux query or specification to execute :return: str @@ -259,8 +260,9 @@ def post_query(self, **kwargs): # noqa: E501,D401,D403 return data def post_query_with_http_info(self, **kwargs): # noqa: E501,D401,D403 - """Query InfluxDB. + """Query data. + Retrieves data from InfluxDB buckets. To query data, you need the following: - **organization** – _See [View organizations](https://docs.influxdata.com/influxdb/v2.1/organizations/view-orgs/#view-your-organization-id) for instructions on viewing your organization ID._ - **API token** – _See [View tokens](https://docs.influxdata.com/influxdb/v2.1/security/tokens/view-tokens/) for instructions on viewing your API token._ - **InfluxDB URL** – _See [InfluxDB URLs](https://docs.influxdata.com/influxdb/v2.1/reference/urls/)_. - **Flux query** – _See [Flux](https://docs.influxdata.com/flux/v0.x/)._ For more information and examples, see [Query with the InfluxDB API](https://docs.influxdata.com/influxdb/v2.1/query-data/execute-queries/influx-api/). This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.post_query_with_http_info(async_req=True) @@ -268,9 +270,9 @@ def post_query_with_http_info(self, **kwargs): # noqa: E501,D401,D403 :param async_req bool :param str zap_trace_span: OpenTracing span context - :param str accept_encoding: The Accept-Encoding request HTTP header advertises which content encoding, usually a compression algorithm, the client is able to understand. + :param str accept_encoding: Indicates the content encoding (usually a compression algorithm) that the client can understand. :param str content_type: - :param str org: Specifies the name of the organization executing the query. Takes either the ID or Name interchangeably. If both `orgID` and `org` are specified, `org` takes precedence. + :param str org: Specifies the name of the organization executing the query. Takes either the ID or Name. If both `orgID` and `org` are specified, `org` takes precedence. :param str org_id: Specifies the ID of the organization executing the query. If both `orgID` and `org` are specified, `org` takes precedence. :param Query query: Flux query or specification to execute :return: str @@ -353,7 +355,7 @@ def post_query_with_http_info(self, **kwargs): # noqa: E501,D401,D403 urlopen_kw=urlopen_kw) def post_query_analyze(self, **kwargs): # noqa: E501,D401,D403 - """Analyze an InfluxQL or Flux query. + """Analyze a Flux query. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -363,7 +365,7 @@ def post_query_analyze(self, **kwargs): # noqa: E501,D401,D403 :param async_req bool :param str zap_trace_span: OpenTracing span context :param str content_type: - :param Query query: Flux or InfluxQL query to analyze + :param Query query: Flux query to analyze :return: AnalyzeQueryResponse If the method is called asynchronously, returns the request thread. @@ -376,7 +378,7 @@ def post_query_analyze(self, **kwargs): # noqa: E501,D401,D403 return data def post_query_analyze_with_http_info(self, **kwargs): # noqa: E501,D401,D403 - """Analyze an InfluxQL or Flux query. + """Analyze a Flux query. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -386,7 +388,7 @@ def post_query_analyze_with_http_info(self, **kwargs): # noqa: E501,D401,D403 :param async_req bool :param str zap_trace_span: OpenTracing span context :param str content_type: - :param Query query: Flux or InfluxQL query to analyze + :param Query query: Flux query to analyze :return: AnalyzeQueryResponse If the method is called asynchronously, returns the request thread. @@ -461,7 +463,7 @@ def post_query_analyze_with_http_info(self, **kwargs): # noqa: E501,D401,D403 urlopen_kw=urlopen_kw) def post_query_ast(self, **kwargs): # noqa: E501,D401,D403 - """post_query_ast. + """Generate an Abstract Syntax Tree (AST) from a query. Analyzes flux query and generates a query specification. This method makes a synchronous HTTP request by default. To make an @@ -485,7 +487,7 @@ def post_query_ast(self, **kwargs): # noqa: E501,D401,D403 return data def post_query_ast_with_http_info(self, **kwargs): # noqa: E501,D401,D403 - """post_query_ast. + """Generate an Abstract Syntax Tree (AST) from a query. Analyzes flux query and generates a query specification. This method makes a synchronous HTTP request by default. To make an diff --git a/influxdb_client/service/ready_service.py b/influxdb_client/service/ready_service.py index aa2bb21e..cb013867 100644 --- a/influxdb_client/service/ready_service.py +++ b/influxdb_client/service/ready_service.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/service/remote_connections_service.py b/influxdb_client/service/remote_connections_service.py new file mode 100644 index 00000000..b6503de2 --- /dev/null +++ b/influxdb_client/service/remote_connections_service.py @@ -0,0 +1,573 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + + +class RemoteConnectionsService(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None): # noqa: E501,D401,D403 + """RemoteConnectionsService - a operation defined in OpenAPI.""" + if api_client is None: + raise ValueError("Invalid value for `api_client`, must be defined.") + self.api_client = api_client + + def delete_remote_connection_by_id(self, remote_id, **kwargs): # noqa: E501,D401,D403 + """Delete a remote connection. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_remote_connection_by_id(remote_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str remote_id: (required) + :param str zap_trace_span: OpenTracing span context + :return: None + If the method is called asynchronously, + returns the request thread. + """ # noqa: E501 + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.delete_remote_connection_by_id_with_http_info(remote_id, **kwargs) # noqa: E501 + else: + (data) = self.delete_remote_connection_by_id_with_http_info(remote_id, **kwargs) # noqa: E501 + return data + + def delete_remote_connection_by_id_with_http_info(self, remote_id, **kwargs): # noqa: E501,D401,D403 + """Delete a remote connection. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_remote_connection_by_id_with_http_info(remote_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str remote_id: (required) + :param str zap_trace_span: OpenTracing span context + :return: None + If the method is called asynchronously, + returns the request thread. + """ # noqa: E501 + local_var_params = locals() + + all_params = ['remote_id', 'zap_trace_span'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + all_params.append('urlopen_kw') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_remote_connection_by_id" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'remote_id' is set + if ('remote_id' not in local_var_params or + local_var_params['remote_id'] is None): + raise ValueError("Missing the required parameter `remote_id` when calling `delete_remote_connection_by_id`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'remote_id' in local_var_params: + path_params['remoteID'] = local_var_params['remote_id'] # noqa: E501 + + query_params = [] + + header_params = {} + if 'zap_trace_span' in local_var_params: + header_params['Zap-Trace-Span'] = local_var_params['zap_trace_span'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + # urlopen optional setting + urlopen_kw = None + if 'urlopen_kw' in kwargs: + urlopen_kw = kwargs['urlopen_kw'] + + return self.api_client.call_api( + '/api/v2/remotes/{remoteID}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + urlopen_kw=urlopen_kw) + + def get_remote_connection_by_id(self, remote_id, **kwargs): # noqa: E501,D401,D403 + """Retrieve a remote connection. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_remote_connection_by_id(remote_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str remote_id: (required) + :param str zap_trace_span: OpenTracing span context + :return: RemoteConnection + If the method is called asynchronously, + returns the request thread. + """ # noqa: E501 + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_remote_connection_by_id_with_http_info(remote_id, **kwargs) # noqa: E501 + else: + (data) = self.get_remote_connection_by_id_with_http_info(remote_id, **kwargs) # noqa: E501 + return data + + def get_remote_connection_by_id_with_http_info(self, remote_id, **kwargs): # noqa: E501,D401,D403 + """Retrieve a remote connection. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_remote_connection_by_id_with_http_info(remote_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str remote_id: (required) + :param str zap_trace_span: OpenTracing span context + :return: RemoteConnection + If the method is called asynchronously, + returns the request thread. + """ # noqa: E501 + local_var_params = locals() + + all_params = ['remote_id', 'zap_trace_span'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + all_params.append('urlopen_kw') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_remote_connection_by_id" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'remote_id' is set + if ('remote_id' not in local_var_params or + local_var_params['remote_id'] is None): + raise ValueError("Missing the required parameter `remote_id` when calling `get_remote_connection_by_id`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'remote_id' in local_var_params: + path_params['remoteID'] = local_var_params['remote_id'] # noqa: E501 + + query_params = [] + + header_params = {} + if 'zap_trace_span' in local_var_params: + header_params['Zap-Trace-Span'] = local_var_params['zap_trace_span'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + # urlopen optional setting + urlopen_kw = None + if 'urlopen_kw' in kwargs: + urlopen_kw = kwargs['urlopen_kw'] + + return self.api_client.call_api( + '/api/v2/remotes/{remoteID}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='RemoteConnection', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + urlopen_kw=urlopen_kw) + + def get_remote_connections(self, org_id, **kwargs): # noqa: E501,D401,D403 + """List all remote connections. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_remote_connections(org_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str org_id: The organization ID. (required) + :param str zap_trace_span: OpenTracing span context + :param str name: + :param str remote_url: + :return: RemoteConnections + If the method is called asynchronously, + returns the request thread. + """ # noqa: E501 + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_remote_connections_with_http_info(org_id, **kwargs) # noqa: E501 + else: + (data) = self.get_remote_connections_with_http_info(org_id, **kwargs) # noqa: E501 + return data + + def get_remote_connections_with_http_info(self, org_id, **kwargs): # noqa: E501,D401,D403 + """List all remote connections. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_remote_connections_with_http_info(org_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str org_id: The organization ID. (required) + :param str zap_trace_span: OpenTracing span context + :param str name: + :param str remote_url: + :return: RemoteConnections + If the method is called asynchronously, + returns the request thread. + """ # noqa: E501 + local_var_params = locals() + + all_params = ['org_id', 'zap_trace_span', 'name', 'remote_url'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + all_params.append('urlopen_kw') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_remote_connections" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'org_id' is set + if ('org_id' not in local_var_params or + local_var_params['org_id'] is None): + raise ValueError("Missing the required parameter `org_id` when calling `get_remote_connections`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'org_id' in local_var_params: + query_params.append(('orgID', local_var_params['org_id'])) # noqa: E501 + if 'name' in local_var_params: + query_params.append(('name', local_var_params['name'])) # noqa: E501 + if 'remote_url' in local_var_params: + query_params.append(('remoteURL', local_var_params['remote_url'])) # noqa: E501 + + header_params = {} + if 'zap_trace_span' in local_var_params: + header_params['Zap-Trace-Span'] = local_var_params['zap_trace_span'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + # urlopen optional setting + urlopen_kw = None + if 'urlopen_kw' in kwargs: + urlopen_kw = kwargs['urlopen_kw'] + + return self.api_client.call_api( + '/api/v2/remotes', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='RemoteConnections', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + urlopen_kw=urlopen_kw) + + def patch_remote_connection_by_id(self, remote_id, remote_connection_update_request, **kwargs): # noqa: E501,D401,D403 + """Update a remote connection. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.patch_remote_connection_by_id(remote_id, remote_connection_update_request, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str remote_id: (required) + :param RemoteConnectionUpdateRequest remote_connection_update_request: (required) + :param str zap_trace_span: OpenTracing span context + :return: RemoteConnection + If the method is called asynchronously, + returns the request thread. + """ # noqa: E501 + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.patch_remote_connection_by_id_with_http_info(remote_id, remote_connection_update_request, **kwargs) # noqa: E501 + else: + (data) = self.patch_remote_connection_by_id_with_http_info(remote_id, remote_connection_update_request, **kwargs) # noqa: E501 + return data + + def patch_remote_connection_by_id_with_http_info(self, remote_id, remote_connection_update_request, **kwargs): # noqa: E501,D401,D403 + """Update a remote connection. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.patch_remote_connection_by_id_with_http_info(remote_id, remote_connection_update_request, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str remote_id: (required) + :param RemoteConnectionUpdateRequest remote_connection_update_request: (required) + :param str zap_trace_span: OpenTracing span context + :return: RemoteConnection + If the method is called asynchronously, + returns the request thread. + """ # noqa: E501 + local_var_params = locals() + + all_params = ['remote_id', 'remote_connection_update_request', 'zap_trace_span'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + all_params.append('urlopen_kw') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_remote_connection_by_id" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'remote_id' is set + if ('remote_id' not in local_var_params or + local_var_params['remote_id'] is None): + raise ValueError("Missing the required parameter `remote_id` when calling `patch_remote_connection_by_id`") # noqa: E501 + # verify the required parameter 'remote_connection_update_request' is set + if ('remote_connection_update_request' not in local_var_params or + local_var_params['remote_connection_update_request'] is None): + raise ValueError("Missing the required parameter `remote_connection_update_request` when calling `patch_remote_connection_by_id`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'remote_id' in local_var_params: + path_params['remoteID'] = local_var_params['remote_id'] # noqa: E501 + + query_params = [] + + header_params = {} + if 'zap_trace_span' in local_var_params: + header_params['Zap-Trace-Span'] = local_var_params['zap_trace_span'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'remote_connection_update_request' in local_var_params: + body_params = local_var_params['remote_connection_update_request'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + # urlopen optional setting + urlopen_kw = None + if 'urlopen_kw' in kwargs: + urlopen_kw = kwargs['urlopen_kw'] + + return self.api_client.call_api( + '/api/v2/remotes/{remoteID}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='RemoteConnection', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + urlopen_kw=urlopen_kw) + + def post_remote_connection(self, remote_connection_creation_request, **kwargs): # noqa: E501,D401,D403 + """Register a new remote connection. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.post_remote_connection(remote_connection_creation_request, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param RemoteConnectionCreationRequest remote_connection_creation_request: (required) + :return: RemoteConnection + If the method is called asynchronously, + returns the request thread. + """ # noqa: E501 + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.post_remote_connection_with_http_info(remote_connection_creation_request, **kwargs) # noqa: E501 + else: + (data) = self.post_remote_connection_with_http_info(remote_connection_creation_request, **kwargs) # noqa: E501 + return data + + def post_remote_connection_with_http_info(self, remote_connection_creation_request, **kwargs): # noqa: E501,D401,D403 + """Register a new remote connection. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.post_remote_connection_with_http_info(remote_connection_creation_request, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param RemoteConnectionCreationRequest remote_connection_creation_request: (required) + :return: RemoteConnection + If the method is called asynchronously, + returns the request thread. + """ # noqa: E501 + local_var_params = locals() + + all_params = ['remote_connection_creation_request'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + all_params.append('urlopen_kw') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method post_remote_connection" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'remote_connection_creation_request' is set + if ('remote_connection_creation_request' not in local_var_params or + local_var_params['remote_connection_creation_request'] is None): + raise ValueError("Missing the required parameter `remote_connection_creation_request` when calling `post_remote_connection`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'remote_connection_creation_request' in local_var_params: + body_params = local_var_params['remote_connection_creation_request'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + # urlopen optional setting + urlopen_kw = None + if 'urlopen_kw' in kwargs: + urlopen_kw = kwargs['urlopen_kw'] + + return self.api_client.call_api( + '/api/v2/remotes', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='RemoteConnection', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + urlopen_kw=urlopen_kw) diff --git a/influxdb_client/service/replications_service.py b/influxdb_client/service/replications_service.py new file mode 100644 index 00000000..dd6c9557 --- /dev/null +++ b/influxdb_client/service/replications_service.py @@ -0,0 +1,693 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + + +class ReplicationsService(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None): # noqa: E501,D401,D403 + """ReplicationsService - a operation defined in OpenAPI.""" + if api_client is None: + raise ValueError("Invalid value for `api_client`, must be defined.") + self.api_client = api_client + + def delete_replication_by_id(self, replication_id, **kwargs): # noqa: E501,D401,D403 + """Delete a replication. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_replication_by_id(replication_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str replication_id: (required) + :param str zap_trace_span: OpenTracing span context + :return: None + If the method is called asynchronously, + returns the request thread. + """ # noqa: E501 + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.delete_replication_by_id_with_http_info(replication_id, **kwargs) # noqa: E501 + else: + (data) = self.delete_replication_by_id_with_http_info(replication_id, **kwargs) # noqa: E501 + return data + + def delete_replication_by_id_with_http_info(self, replication_id, **kwargs): # noqa: E501,D401,D403 + """Delete a replication. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_replication_by_id_with_http_info(replication_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str replication_id: (required) + :param str zap_trace_span: OpenTracing span context + :return: None + If the method is called asynchronously, + returns the request thread. + """ # noqa: E501 + local_var_params = locals() + + all_params = ['replication_id', 'zap_trace_span'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + all_params.append('urlopen_kw') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_replication_by_id" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'replication_id' is set + if ('replication_id' not in local_var_params or + local_var_params['replication_id'] is None): + raise ValueError("Missing the required parameter `replication_id` when calling `delete_replication_by_id`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'replication_id' in local_var_params: + path_params['replicationID'] = local_var_params['replication_id'] # noqa: E501 + + query_params = [] + + header_params = {} + if 'zap_trace_span' in local_var_params: + header_params['Zap-Trace-Span'] = local_var_params['zap_trace_span'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + # urlopen optional setting + urlopen_kw = None + if 'urlopen_kw' in kwargs: + urlopen_kw = kwargs['urlopen_kw'] + + return self.api_client.call_api( + '/api/v2/replications/{replicationID}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + urlopen_kw=urlopen_kw) + + def get_replication_by_id(self, replication_id, **kwargs): # noqa: E501,D401,D403 + """Retrieve a replication. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_replication_by_id(replication_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str replication_id: (required) + :param str zap_trace_span: OpenTracing span context + :return: Replication + If the method is called asynchronously, + returns the request thread. + """ # noqa: E501 + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_replication_by_id_with_http_info(replication_id, **kwargs) # noqa: E501 + else: + (data) = self.get_replication_by_id_with_http_info(replication_id, **kwargs) # noqa: E501 + return data + + def get_replication_by_id_with_http_info(self, replication_id, **kwargs): # noqa: E501,D401,D403 + """Retrieve a replication. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_replication_by_id_with_http_info(replication_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str replication_id: (required) + :param str zap_trace_span: OpenTracing span context + :return: Replication + If the method is called asynchronously, + returns the request thread. + """ # noqa: E501 + local_var_params = locals() + + all_params = ['replication_id', 'zap_trace_span'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + all_params.append('urlopen_kw') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_replication_by_id" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'replication_id' is set + if ('replication_id' not in local_var_params or + local_var_params['replication_id'] is None): + raise ValueError("Missing the required parameter `replication_id` when calling `get_replication_by_id`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'replication_id' in local_var_params: + path_params['replicationID'] = local_var_params['replication_id'] # noqa: E501 + + query_params = [] + + header_params = {} + if 'zap_trace_span' in local_var_params: + header_params['Zap-Trace-Span'] = local_var_params['zap_trace_span'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + # urlopen optional setting + urlopen_kw = None + if 'urlopen_kw' in kwargs: + urlopen_kw = kwargs['urlopen_kw'] + + return self.api_client.call_api( + '/api/v2/replications/{replicationID}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Replication', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + urlopen_kw=urlopen_kw) + + def get_replications(self, org_id, **kwargs): # noqa: E501,D401,D403 + """List all replications. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_replications(org_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str org_id: The organization ID. (required) + :param str zap_trace_span: OpenTracing span context + :param str name: + :param str remote_id: + :param str local_bucket_id: + :return: Replications + If the method is called asynchronously, + returns the request thread. + """ # noqa: E501 + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_replications_with_http_info(org_id, **kwargs) # noqa: E501 + else: + (data) = self.get_replications_with_http_info(org_id, **kwargs) # noqa: E501 + return data + + def get_replications_with_http_info(self, org_id, **kwargs): # noqa: E501,D401,D403 + """List all replications. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_replications_with_http_info(org_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str org_id: The organization ID. (required) + :param str zap_trace_span: OpenTracing span context + :param str name: + :param str remote_id: + :param str local_bucket_id: + :return: Replications + If the method is called asynchronously, + returns the request thread. + """ # noqa: E501 + local_var_params = locals() + + all_params = ['org_id', 'zap_trace_span', 'name', 'remote_id', 'local_bucket_id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + all_params.append('urlopen_kw') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_replications" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'org_id' is set + if ('org_id' not in local_var_params or + local_var_params['org_id'] is None): + raise ValueError("Missing the required parameter `org_id` when calling `get_replications`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'org_id' in local_var_params: + query_params.append(('orgID', local_var_params['org_id'])) # noqa: E501 + if 'name' in local_var_params: + query_params.append(('name', local_var_params['name'])) # noqa: E501 + if 'remote_id' in local_var_params: + query_params.append(('remoteID', local_var_params['remote_id'])) # noqa: E501 + if 'local_bucket_id' in local_var_params: + query_params.append(('localBucketID', local_var_params['local_bucket_id'])) # noqa: E501 + + header_params = {} + if 'zap_trace_span' in local_var_params: + header_params['Zap-Trace-Span'] = local_var_params['zap_trace_span'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + # urlopen optional setting + urlopen_kw = None + if 'urlopen_kw' in kwargs: + urlopen_kw = kwargs['urlopen_kw'] + + return self.api_client.call_api( + '/api/v2/replications', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Replications', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + urlopen_kw=urlopen_kw) + + def patch_replication_by_id(self, replication_id, replication_update_request, **kwargs): # noqa: E501,D401,D403 + """Update a replication. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.patch_replication_by_id(replication_id, replication_update_request, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str replication_id: (required) + :param ReplicationUpdateRequest replication_update_request: (required) + :param str zap_trace_span: OpenTracing span context + :param bool validate: If true, validate the updated information, but don't save it. + :return: Replication + If the method is called asynchronously, + returns the request thread. + """ # noqa: E501 + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.patch_replication_by_id_with_http_info(replication_id, replication_update_request, **kwargs) # noqa: E501 + else: + (data) = self.patch_replication_by_id_with_http_info(replication_id, replication_update_request, **kwargs) # noqa: E501 + return data + + def patch_replication_by_id_with_http_info(self, replication_id, replication_update_request, **kwargs): # noqa: E501,D401,D403 + """Update a replication. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.patch_replication_by_id_with_http_info(replication_id, replication_update_request, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str replication_id: (required) + :param ReplicationUpdateRequest replication_update_request: (required) + :param str zap_trace_span: OpenTracing span context + :param bool validate: If true, validate the updated information, but don't save it. + :return: Replication + If the method is called asynchronously, + returns the request thread. + """ # noqa: E501 + local_var_params = locals() + + all_params = ['replication_id', 'replication_update_request', 'zap_trace_span', 'validate'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + all_params.append('urlopen_kw') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method patch_replication_by_id" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'replication_id' is set + if ('replication_id' not in local_var_params or + local_var_params['replication_id'] is None): + raise ValueError("Missing the required parameter `replication_id` when calling `patch_replication_by_id`") # noqa: E501 + # verify the required parameter 'replication_update_request' is set + if ('replication_update_request' not in local_var_params or + local_var_params['replication_update_request'] is None): + raise ValueError("Missing the required parameter `replication_update_request` when calling `patch_replication_by_id`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'replication_id' in local_var_params: + path_params['replicationID'] = local_var_params['replication_id'] # noqa: E501 + + query_params = [] + if 'validate' in local_var_params: + query_params.append(('validate', local_var_params['validate'])) # noqa: E501 + + header_params = {} + if 'zap_trace_span' in local_var_params: + header_params['Zap-Trace-Span'] = local_var_params['zap_trace_span'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'replication_update_request' in local_var_params: + body_params = local_var_params['replication_update_request'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + # urlopen optional setting + urlopen_kw = None + if 'urlopen_kw' in kwargs: + urlopen_kw = kwargs['urlopen_kw'] + + return self.api_client.call_api( + '/api/v2/replications/{replicationID}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Replication', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + urlopen_kw=urlopen_kw) + + def post_replication(self, replication_creation_request, **kwargs): # noqa: E501,D401,D403 + """Register a new replication. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.post_replication(replication_creation_request, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param ReplicationCreationRequest replication_creation_request: (required) + :param str zap_trace_span: OpenTracing span context + :param bool validate: If true, validate the replication, but don't save it. + :return: Replication + If the method is called asynchronously, + returns the request thread. + """ # noqa: E501 + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.post_replication_with_http_info(replication_creation_request, **kwargs) # noqa: E501 + else: + (data) = self.post_replication_with_http_info(replication_creation_request, **kwargs) # noqa: E501 + return data + + def post_replication_with_http_info(self, replication_creation_request, **kwargs): # noqa: E501,D401,D403 + """Register a new replication. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.post_replication_with_http_info(replication_creation_request, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param ReplicationCreationRequest replication_creation_request: (required) + :param str zap_trace_span: OpenTracing span context + :param bool validate: If true, validate the replication, but don't save it. + :return: Replication + If the method is called asynchronously, + returns the request thread. + """ # noqa: E501 + local_var_params = locals() + + all_params = ['replication_creation_request', 'zap_trace_span', 'validate'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + all_params.append('urlopen_kw') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method post_replication" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'replication_creation_request' is set + if ('replication_creation_request' not in local_var_params or + local_var_params['replication_creation_request'] is None): + raise ValueError("Missing the required parameter `replication_creation_request` when calling `post_replication`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'validate' in local_var_params: + query_params.append(('validate', local_var_params['validate'])) # noqa: E501 + + header_params = {} + if 'zap_trace_span' in local_var_params: + header_params['Zap-Trace-Span'] = local_var_params['zap_trace_span'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'replication_creation_request' in local_var_params: + body_params = local_var_params['replication_creation_request'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + # urlopen optional setting + urlopen_kw = None + if 'urlopen_kw' in kwargs: + urlopen_kw = kwargs['urlopen_kw'] + + return self.api_client.call_api( + '/api/v2/replications', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Replication', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + urlopen_kw=urlopen_kw) + + def post_validate_replication_by_id(self, replication_id, **kwargs): # noqa: E501,D401,D403 + """Validate a replication. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.post_validate_replication_by_id(replication_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str replication_id: (required) + :param str zap_trace_span: OpenTracing span context + :return: None + If the method is called asynchronously, + returns the request thread. + """ # noqa: E501 + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.post_validate_replication_by_id_with_http_info(replication_id, **kwargs) # noqa: E501 + else: + (data) = self.post_validate_replication_by_id_with_http_info(replication_id, **kwargs) # noqa: E501 + return data + + def post_validate_replication_by_id_with_http_info(self, replication_id, **kwargs): # noqa: E501,D401,D403 + """Validate a replication. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.post_validate_replication_by_id_with_http_info(replication_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str replication_id: (required) + :param str zap_trace_span: OpenTracing span context + :return: None + If the method is called asynchronously, + returns the request thread. + """ # noqa: E501 + local_var_params = locals() + + all_params = ['replication_id', 'zap_trace_span'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + all_params.append('urlopen_kw') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method post_validate_replication_by_id" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'replication_id' is set + if ('replication_id' not in local_var_params or + local_var_params['replication_id'] is None): + raise ValueError("Missing the required parameter `replication_id` when calling `post_validate_replication_by_id`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'replication_id' in local_var_params: + path_params['replicationID'] = local_var_params['replication_id'] # noqa: E501 + + query_params = [] + + header_params = {} + if 'zap_trace_span' in local_var_params: + header_params['Zap-Trace-Span'] = local_var_params['zap_trace_span'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + # urlopen optional setting + urlopen_kw = None + if 'urlopen_kw' in kwargs: + urlopen_kw = kwargs['urlopen_kw'] + + return self.api_client.call_api( + '/api/v2/replications/{replicationID}/validate', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + urlopen_kw=urlopen_kw) diff --git a/influxdb_client/service/resources_service.py b/influxdb_client/service/resources_service.py new file mode 100644 index 00000000..0cdc0ee5 --- /dev/null +++ b/influxdb_client/service/resources_service.py @@ -0,0 +1,129 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + + +class ResourcesService(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None): # noqa: E501,D401,D403 + """ResourcesService - a operation defined in OpenAPI.""" + if api_client is None: + raise ValueError("Invalid value for `api_client`, must be defined.") + self.api_client = api_client + + def get_resources(self, **kwargs): # noqa: E501,D401,D403 + """List all known resources. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_resources(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str zap_trace_span: OpenTracing span context + :return: list[str] + If the method is called asynchronously, + returns the request thread. + """ # noqa: E501 + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_resources_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.get_resources_with_http_info(**kwargs) # noqa: E501 + return data + + def get_resources_with_http_info(self, **kwargs): # noqa: E501,D401,D403 + """List all known resources. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_resources_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str zap_trace_span: OpenTracing span context + :return: list[str] + If the method is called asynchronously, + returns the request thread. + """ # noqa: E501 + local_var_params = locals() + + all_params = ['zap_trace_span'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + all_params.append('urlopen_kw') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_resources" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'zap_trace_span' in local_var_params: + header_params['Zap-Trace-Span'] = local_var_params['zap_trace_span'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + # urlopen optional setting + urlopen_kw = None + if 'urlopen_kw' in kwargs: + urlopen_kw = kwargs['urlopen_kw'] + + return self.api_client.call_api( + '/api/v2/resources', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='list[str]', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + urlopen_kw=urlopen_kw) diff --git a/influxdb_client/service/restore_service.py b/influxdb_client/service/restore_service.py new file mode 100644 index 00000000..008b963c --- /dev/null +++ b/influxdb_client/service/restore_service.py @@ -0,0 +1,617 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + + +class RestoreService(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None): # noqa: E501,D401,D403 + """RestoreService - a operation defined in OpenAPI.""" + if api_client is None: + raise ValueError("Invalid value for `api_client`, must be defined.") + self.api_client = api_client + + def post_restore_bucket_id(self, bucket_id, body, **kwargs): # noqa: E501,D401,D403 + """Overwrite storage metadata for a bucket with shard info from a backup.. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.post_restore_bucket_id(bucket_id, body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bucket_id: The bucket ID. (required) + :param str body: Database info serialized as protobuf. (required) + :param str zap_trace_span: OpenTracing span context + :param str content_type: + :return: str + If the method is called asynchronously, + returns the request thread. + """ # noqa: E501 + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.post_restore_bucket_id_with_http_info(bucket_id, body, **kwargs) # noqa: E501 + else: + (data) = self.post_restore_bucket_id_with_http_info(bucket_id, body, **kwargs) # noqa: E501 + return data + + def post_restore_bucket_id_with_http_info(self, bucket_id, body, **kwargs): # noqa: E501,D401,D403 + """Overwrite storage metadata for a bucket with shard info from a backup.. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.post_restore_bucket_id_with_http_info(bucket_id, body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bucket_id: The bucket ID. (required) + :param str body: Database info serialized as protobuf. (required) + :param str zap_trace_span: OpenTracing span context + :param str content_type: + :return: str + If the method is called asynchronously, + returns the request thread. + """ # noqa: E501 + local_var_params = locals() + + all_params = ['bucket_id', 'body', 'zap_trace_span', 'content_type'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + all_params.append('urlopen_kw') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method post_restore_bucket_id" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'bucket_id' is set + if ('bucket_id' not in local_var_params or + local_var_params['bucket_id'] is None): + raise ValueError("Missing the required parameter `bucket_id` when calling `post_restore_bucket_id`") # noqa: E501 + # verify the required parameter 'body' is set + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `post_restore_bucket_id`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bucket_id' in local_var_params: + path_params['bucketID'] = local_var_params['bucket_id'] # noqa: E501 + + query_params = [] + + header_params = {} + if 'zap_trace_span' in local_var_params: + header_params['Zap-Trace-Span'] = local_var_params['zap_trace_span'] # noqa: E501 + if 'content_type' in local_var_params: + header_params['Content-Type'] = local_var_params['content_type'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['text/plain']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + # urlopen optional setting + urlopen_kw = None + if 'urlopen_kw' in kwargs: + urlopen_kw = kwargs['urlopen_kw'] + + return self.api_client.call_api( + '/api/v2/restore/bucket/{bucketID}', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + urlopen_kw=urlopen_kw) + + def post_restore_bucket_metadata(self, bucket_metadata_manifest, **kwargs): # noqa: E501,D401,D403 + """Create a new bucket pre-seeded with shard info from a backup.. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.post_restore_bucket_metadata(bucket_metadata_manifest, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param BucketMetadataManifest bucket_metadata_manifest: Metadata manifest for a bucket. (required) + :param str zap_trace_span: OpenTracing span context + :return: RestoredBucketMappings + If the method is called asynchronously, + returns the request thread. + """ # noqa: E501 + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.post_restore_bucket_metadata_with_http_info(bucket_metadata_manifest, **kwargs) # noqa: E501 + else: + (data) = self.post_restore_bucket_metadata_with_http_info(bucket_metadata_manifest, **kwargs) # noqa: E501 + return data + + def post_restore_bucket_metadata_with_http_info(self, bucket_metadata_manifest, **kwargs): # noqa: E501,D401,D403 + """Create a new bucket pre-seeded with shard info from a backup.. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.post_restore_bucket_metadata_with_http_info(bucket_metadata_manifest, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param BucketMetadataManifest bucket_metadata_manifest: Metadata manifest for a bucket. (required) + :param str zap_trace_span: OpenTracing span context + :return: RestoredBucketMappings + If the method is called asynchronously, + returns the request thread. + """ # noqa: E501 + local_var_params = locals() + + all_params = ['bucket_metadata_manifest', 'zap_trace_span'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + all_params.append('urlopen_kw') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method post_restore_bucket_metadata" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'bucket_metadata_manifest' is set + if ('bucket_metadata_manifest' not in local_var_params or + local_var_params['bucket_metadata_manifest'] is None): + raise ValueError("Missing the required parameter `bucket_metadata_manifest` when calling `post_restore_bucket_metadata`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'zap_trace_span' in local_var_params: + header_params['Zap-Trace-Span'] = local_var_params['zap_trace_span'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'bucket_metadata_manifest' in local_var_params: + body_params = local_var_params['bucket_metadata_manifest'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + # urlopen optional setting + urlopen_kw = None + if 'urlopen_kw' in kwargs: + urlopen_kw = kwargs['urlopen_kw'] + + return self.api_client.call_api( + '/api/v2/restore/bucketMetadata', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='RestoredBucketMappings', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + urlopen_kw=urlopen_kw) + + def post_restore_kv(self, body, **kwargs): # noqa: E501,D401,D403 + """Overwrite the embedded KV store on the server with a backed-up snapshot.. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.post_restore_kv(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param file body: Full KV snapshot. (required) + :param str zap_trace_span: OpenTracing span context + :param str content_encoding: The value tells InfluxDB what compression is applied to the line protocol in the request payload. To make an API request with a GZIP payload, send `Content-Encoding: gzip` as a request header. + :param str content_type: + :return: PostRestoreKVResponse + If the method is called asynchronously, + returns the request thread. + """ # noqa: E501 + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.post_restore_kv_with_http_info(body, **kwargs) # noqa: E501 + else: + (data) = self.post_restore_kv_with_http_info(body, **kwargs) # noqa: E501 + return data + + def post_restore_kv_with_http_info(self, body, **kwargs): # noqa: E501,D401,D403 + """Overwrite the embedded KV store on the server with a backed-up snapshot.. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.post_restore_kv_with_http_info(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param file body: Full KV snapshot. (required) + :param str zap_trace_span: OpenTracing span context + :param str content_encoding: The value tells InfluxDB what compression is applied to the line protocol in the request payload. To make an API request with a GZIP payload, send `Content-Encoding: gzip` as a request header. + :param str content_type: + :return: PostRestoreKVResponse + If the method is called asynchronously, + returns the request thread. + """ # noqa: E501 + local_var_params = locals() + + all_params = ['body', 'zap_trace_span', 'content_encoding', 'content_type'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + all_params.append('urlopen_kw') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method post_restore_kv" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `post_restore_kv`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'zap_trace_span' in local_var_params: + header_params['Zap-Trace-Span'] = local_var_params['zap_trace_span'] # noqa: E501 + if 'content_encoding' in local_var_params: + header_params['Content-Encoding'] = local_var_params['content_encoding'] # noqa: E501 + if 'content_type' in local_var_params: + header_params['Content-Type'] = local_var_params['content_type'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['text/plain']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + # urlopen optional setting + urlopen_kw = None + if 'urlopen_kw' in kwargs: + urlopen_kw = kwargs['urlopen_kw'] + + return self.api_client.call_api( + '/api/v2/restore/kv', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='PostRestoreKVResponse', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + urlopen_kw=urlopen_kw) + + def post_restore_shard_id(self, shard_id, body, **kwargs): # noqa: E501,D401,D403 + """Restore a TSM snapshot into a shard.. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.post_restore_shard_id(shard_id, body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str shard_id: The shard ID. (required) + :param file body: TSM snapshot. (required) + :param str zap_trace_span: OpenTracing span context + :param str content_encoding: The value tells InfluxDB what compression is applied to the line protocol in the request payload. To make an API request with a GZIP payload, send `Content-Encoding: gzip` as a request header. + :param str content_type: + :return: None + If the method is called asynchronously, + returns the request thread. + """ # noqa: E501 + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.post_restore_shard_id_with_http_info(shard_id, body, **kwargs) # noqa: E501 + else: + (data) = self.post_restore_shard_id_with_http_info(shard_id, body, **kwargs) # noqa: E501 + return data + + def post_restore_shard_id_with_http_info(self, shard_id, body, **kwargs): # noqa: E501,D401,D403 + """Restore a TSM snapshot into a shard.. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.post_restore_shard_id_with_http_info(shard_id, body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str shard_id: The shard ID. (required) + :param file body: TSM snapshot. (required) + :param str zap_trace_span: OpenTracing span context + :param str content_encoding: The value tells InfluxDB what compression is applied to the line protocol in the request payload. To make an API request with a GZIP payload, send `Content-Encoding: gzip` as a request header. + :param str content_type: + :return: None + If the method is called asynchronously, + returns the request thread. + """ # noqa: E501 + local_var_params = locals() + + all_params = ['shard_id', 'body', 'zap_trace_span', 'content_encoding', 'content_type'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + all_params.append('urlopen_kw') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method post_restore_shard_id" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'shard_id' is set + if ('shard_id' not in local_var_params or + local_var_params['shard_id'] is None): + raise ValueError("Missing the required parameter `shard_id` when calling `post_restore_shard_id`") # noqa: E501 + # verify the required parameter 'body' is set + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `post_restore_shard_id`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'shard_id' in local_var_params: + path_params['shardID'] = local_var_params['shard_id'] # noqa: E501 + + query_params = [] + + header_params = {} + if 'zap_trace_span' in local_var_params: + header_params['Zap-Trace-Span'] = local_var_params['zap_trace_span'] # noqa: E501 + if 'content_encoding' in local_var_params: + header_params['Content-Encoding'] = local_var_params['content_encoding'] # noqa: E501 + if 'content_type' in local_var_params: + header_params['Content-Type'] = local_var_params['content_type'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['text/plain']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + # urlopen optional setting + urlopen_kw = None + if 'urlopen_kw' in kwargs: + urlopen_kw = kwargs['urlopen_kw'] + + return self.api_client.call_api( + '/api/v2/restore/shards/{shardID}', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + urlopen_kw=urlopen_kw) + + def post_restore_sql(self, body, **kwargs): # noqa: E501,D401,D403 + """Overwrite the embedded SQL store on the server with a backed-up snapshot.. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.post_restore_sql(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param file body: Full SQL snapshot. (required) + :param str zap_trace_span: OpenTracing span context + :param str content_encoding: The value tells InfluxDB what compression is applied to the line protocol in the request payload. To make an API request with a GZIP payload, send `Content-Encoding: gzip` as a request header. + :param str content_type: + :return: None + If the method is called asynchronously, + returns the request thread. + """ # noqa: E501 + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.post_restore_sql_with_http_info(body, **kwargs) # noqa: E501 + else: + (data) = self.post_restore_sql_with_http_info(body, **kwargs) # noqa: E501 + return data + + def post_restore_sql_with_http_info(self, body, **kwargs): # noqa: E501,D401,D403 + """Overwrite the embedded SQL store on the server with a backed-up snapshot.. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.post_restore_sql_with_http_info(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param file body: Full SQL snapshot. (required) + :param str zap_trace_span: OpenTracing span context + :param str content_encoding: The value tells InfluxDB what compression is applied to the line protocol in the request payload. To make an API request with a GZIP payload, send `Content-Encoding: gzip` as a request header. + :param str content_type: + :return: None + If the method is called asynchronously, + returns the request thread. + """ # noqa: E501 + local_var_params = locals() + + all_params = ['body', 'zap_trace_span', 'content_encoding', 'content_type'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + all_params.append('urlopen_kw') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method post_restore_sql" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `post_restore_sql`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'zap_trace_span' in local_var_params: + header_params['Zap-Trace-Span'] = local_var_params['zap_trace_span'] # noqa: E501 + if 'content_encoding' in local_var_params: + header_params['Content-Encoding'] = local_var_params['content_encoding'] # noqa: E501 + if 'content_type' in local_var_params: + header_params['Content-Type'] = local_var_params['content_type'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['text/plain']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + # urlopen optional setting + urlopen_kw = None + if 'urlopen_kw' in kwargs: + urlopen_kw = kwargs['urlopen_kw'] + + return self.api_client.call_api( + '/api/v2/restore/sql', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + urlopen_kw=urlopen_kw) diff --git a/influxdb_client/service/routes_service.py b/influxdb_client/service/routes_service.py new file mode 100644 index 00000000..9a3935c0 --- /dev/null +++ b/influxdb_client/service/routes_service.py @@ -0,0 +1,129 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + + +class RoutesService(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None): # noqa: E501,D401,D403 + """RoutesService - a operation defined in OpenAPI.""" + if api_client is None: + raise ValueError("Invalid value for `api_client`, must be defined.") + self.api_client = api_client + + def get_routes(self, **kwargs): # noqa: E501,D401,D403 + """List all top level routes. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_routes(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str zap_trace_span: OpenTracing span context + :return: Routes + If the method is called asynchronously, + returns the request thread. + """ # noqa: E501 + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_routes_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.get_routes_with_http_info(**kwargs) # noqa: E501 + return data + + def get_routes_with_http_info(self, **kwargs): # noqa: E501,D401,D403 + """List all top level routes. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_routes_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str zap_trace_span: OpenTracing span context + :return: Routes + If the method is called asynchronously, + returns the request thread. + """ # noqa: E501 + local_var_params = locals() + + all_params = ['zap_trace_span'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + all_params.append('urlopen_kw') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_routes" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'zap_trace_span' in local_var_params: + header_params['Zap-Trace-Span'] = local_var_params['zap_trace_span'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + # urlopen optional setting + urlopen_kw = None + if 'urlopen_kw' in kwargs: + urlopen_kw = kwargs['urlopen_kw'] + + return self.api_client.call_api( + '/api/v2/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Routes', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + urlopen_kw=urlopen_kw) diff --git a/influxdb_client/service/rules_service.py b/influxdb_client/service/rules_service.py index 8b2b95a1..b6e3eb7e 100644 --- a/influxdb_client/service/rules_service.py +++ b/influxdb_client/service/rules_service.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech @@ -33,7 +33,7 @@ def __init__(self, api_client=None): # noqa: E501,D401,D403 self.api_client = api_client def get_notification_rules_id_query(self, rule_id, **kwargs): # noqa: E501,D401,D403 - """Get a notification rule query. + """Retrieve a notification rule query. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -55,7 +55,7 @@ def get_notification_rules_id_query(self, rule_id, **kwargs): # noqa: E501,D401 return data def get_notification_rules_id_query_with_http_info(self, rule_id, **kwargs): # noqa: E501,D401,D403 - """Get a notification rule query. + """Retrieve a notification rule query. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True diff --git a/influxdb_client/service/scraper_targets_service.py b/influxdb_client/service/scraper_targets_service.py index be35a7fa..922e7b35 100644 --- a/influxdb_client/service/scraper_targets_service.py +++ b/influxdb_client/service/scraper_targets_service.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech @@ -41,7 +41,7 @@ def delete_scrapers_id(self, scraper_target_id, **kwargs): # noqa: E501,D401,D4 >>> result = thread.get() :param async_req bool - :param str scraper_target_id: The scraper target ID. (required) + :param str scraper_target_id: The identifier of the scraper target. (required) :param str zap_trace_span: OpenTracing span context :return: None If the method is called asynchronously, @@ -63,7 +63,7 @@ def delete_scrapers_id_with_http_info(self, scraper_target_id, **kwargs): # noq >>> result = thread.get() :param async_req bool - :param str scraper_target_id: The scraper target ID. (required) + :param str scraper_target_id: The identifier of the scraper target. (required) :param str zap_trace_span: OpenTracing span context :return: None If the method is called asynchronously, @@ -473,7 +473,7 @@ def delete_scrapers_id_owners_id_with_http_info(self, user_id, scraper_target_id urlopen_kw=urlopen_kw) def get_scrapers(self, **kwargs): # noqa: E501,D401,D403 - """Get all scraper targets. + """List all scraper targets. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -498,7 +498,7 @@ def get_scrapers(self, **kwargs): # noqa: E501,D401,D403 return data def get_scrapers_with_http_info(self, **kwargs): # noqa: E501,D401,D403 - """Get all scraper targets. + """List all scraper targets. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -586,7 +586,7 @@ def get_scrapers_with_http_info(self, **kwargs): # noqa: E501,D401,D403 urlopen_kw=urlopen_kw) def get_scrapers_id(self, scraper_target_id, **kwargs): # noqa: E501,D401,D403 - """Get a scraper target by ID. + """Retrieve a scraper target. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -594,7 +594,7 @@ def get_scrapers_id(self, scraper_target_id, **kwargs): # noqa: E501,D401,D403 >>> result = thread.get() :param async_req bool - :param str scraper_target_id: The scraper target ID. (required) + :param str scraper_target_id: The identifier of the scraper target. (required) :param str zap_trace_span: OpenTracing span context :return: ScraperTargetResponse If the method is called asynchronously, @@ -608,7 +608,7 @@ def get_scrapers_id(self, scraper_target_id, **kwargs): # noqa: E501,D401,D403 return data def get_scrapers_id_with_http_info(self, scraper_target_id, **kwargs): # noqa: E501,D401,D403 - """Get a scraper target by ID. + """Retrieve a scraper target. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -616,7 +616,7 @@ def get_scrapers_id_with_http_info(self, scraper_target_id, **kwargs): # noqa: >>> result = thread.get() :param async_req bool - :param str scraper_target_id: The scraper target ID. (required) + :param str scraper_target_id: The identifier of the scraper target. (required) :param str zap_trace_span: OpenTracing span context :return: ScraperTargetResponse If the method is called asynchronously, @@ -1010,7 +1010,7 @@ def patch_scrapers_id(self, scraper_target_id, scraper_target_request, **kwargs) >>> result = thread.get() :param async_req bool - :param str scraper_target_id: The scraper target ID. (required) + :param str scraper_target_id: The identifier of the scraper target. (required) :param ScraperTargetRequest scraper_target_request: Scraper target update to apply (required) :param str zap_trace_span: OpenTracing span context :return: ScraperTargetResponse @@ -1033,7 +1033,7 @@ def patch_scrapers_id_with_http_info(self, scraper_target_id, scraper_target_req >>> result = thread.get() :param async_req bool - :param str scraper_target_id: The scraper target ID. (required) + :param str scraper_target_id: The identifier of the scraper target. (required) :param ScraperTargetRequest scraper_target_request: Scraper target update to apply (required) :param str zap_trace_span: OpenTracing span context :return: ScraperTargetResponse diff --git a/influxdb_client/service/secrets_service.py b/influxdb_client/service/secrets_service.py index 21fe6e05..7e87c4bc 100644 --- a/influxdb_client/service/secrets_service.py +++ b/influxdb_client/service/secrets_service.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech @@ -32,6 +32,118 @@ def __init__(self, api_client=None): # noqa: E501,D401,D403 raise ValueError("Invalid value for `api_client`, must be defined.") self.api_client = api_client + def delete_orgs_id_secrets_id(self, org_id, secret_id, **kwargs): # noqa: E501,D401,D403 + """Delete a secret from an organization. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_orgs_id_secrets_id(org_id, secret_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str org_id: The organization ID. (required) + :param str secret_id: The secret ID. (required) + :param str zap_trace_span: OpenTracing span context + :return: None + If the method is called asynchronously, + returns the request thread. + """ # noqa: E501 + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.delete_orgs_id_secrets_id_with_http_info(org_id, secret_id, **kwargs) # noqa: E501 + else: + (data) = self.delete_orgs_id_secrets_id_with_http_info(org_id, secret_id, **kwargs) # noqa: E501 + return data + + def delete_orgs_id_secrets_id_with_http_info(self, org_id, secret_id, **kwargs): # noqa: E501,D401,D403 + """Delete a secret from an organization. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_orgs_id_secrets_id_with_http_info(org_id, secret_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str org_id: The organization ID. (required) + :param str secret_id: The secret ID. (required) + :param str zap_trace_span: OpenTracing span context + :return: None + If the method is called asynchronously, + returns the request thread. + """ # noqa: E501 + local_var_params = locals() + + all_params = ['org_id', 'secret_id', 'zap_trace_span'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + all_params.append('urlopen_kw') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_orgs_id_secrets_id" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'org_id' is set + if ('org_id' not in local_var_params or + local_var_params['org_id'] is None): + raise ValueError("Missing the required parameter `org_id` when calling `delete_orgs_id_secrets_id`") # noqa: E501 + # verify the required parameter 'secret_id' is set + if ('secret_id' not in local_var_params or + local_var_params['secret_id'] is None): + raise ValueError("Missing the required parameter `secret_id` when calling `delete_orgs_id_secrets_id`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'org_id' in local_var_params: + path_params['orgID'] = local_var_params['org_id'] # noqa: E501 + if 'secret_id' in local_var_params: + path_params['secretID'] = local_var_params['secret_id'] # noqa: E501 + + query_params = [] + + header_params = {} + if 'zap_trace_span' in local_var_params: + header_params['Zap-Trace-Span'] = local_var_params['zap_trace_span'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + # urlopen optional setting + urlopen_kw = None + if 'urlopen_kw' in kwargs: + urlopen_kw = kwargs['urlopen_kw'] + + return self.api_client.call_api( + '/api/v2/orgs/{orgID}/secrets/{secretID}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + urlopen_kw=urlopen_kw) + def get_orgs_id_secrets(self, org_id, **kwargs): # noqa: E501,D401,D403 """List all secret keys for an organization. diff --git a/influxdb_client/service/setup_service.py b/influxdb_client/service/setup_service.py index 190cd841..88a05cad 100644 --- a/influxdb_client/service/setup_service.py +++ b/influxdb_client/service/setup_service.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/service/signin_service.py b/influxdb_client/service/signin_service.py new file mode 100644 index 00000000..a4625d4a --- /dev/null +++ b/influxdb_client/service/signin_service.py @@ -0,0 +1,135 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + + +class SigninService(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None): # noqa: E501,D401,D403 + """SigninService - a operation defined in OpenAPI.""" + if api_client is None: + raise ValueError("Invalid value for `api_client`, must be defined.") + self.api_client = api_client + + def post_signin(self, **kwargs): # noqa: E501,D401,D403 + """Create a user session.. + + Authenticates ***Basic Auth*** credentials for a user. If successful, creates a new UI session for the user. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.post_signin(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str zap_trace_span: OpenTracing span context + :param str authorization: An auth credential for the Basic scheme + :return: None + If the method is called asynchronously, + returns the request thread. + """ # noqa: E501 + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.post_signin_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.post_signin_with_http_info(**kwargs) # noqa: E501 + return data + + def post_signin_with_http_info(self, **kwargs): # noqa: E501,D401,D403 + """Create a user session.. + + Authenticates ***Basic Auth*** credentials for a user. If successful, creates a new UI session for the user. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.post_signin_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str zap_trace_span: OpenTracing span context + :param str authorization: An auth credential for the Basic scheme + :return: None + If the method is called asynchronously, + returns the request thread. + """ # noqa: E501 + local_var_params = locals() + + all_params = ['zap_trace_span', 'authorization'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + all_params.append('urlopen_kw') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method post_signin" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'zap_trace_span' in local_var_params: + header_params['Zap-Trace-Span'] = local_var_params['zap_trace_span'] # noqa: E501 + if 'authorization' in local_var_params: + header_params['Authorization'] = local_var_params['authorization'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['BasicAuthentication'] # noqa: E501 + + # urlopen optional setting + urlopen_kw = None + if 'urlopen_kw' in kwargs: + urlopen_kw = kwargs['urlopen_kw'] + + return self.api_client.call_api( + '/api/v2/signin', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + urlopen_kw=urlopen_kw) diff --git a/influxdb_client/service/signout_service.py b/influxdb_client/service/signout_service.py new file mode 100644 index 00000000..ffee18b1 --- /dev/null +++ b/influxdb_client/service/signout_service.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + + +class SignoutService(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None): # noqa: E501,D401,D403 + """SignoutService - a operation defined in OpenAPI.""" + if api_client is None: + raise ValueError("Invalid value for `api_client`, must be defined.") + self.api_client = api_client + + def post_signout(self, **kwargs): # noqa: E501,D401,D403 + """Expire the current UI session. + + Expires the current UI session for the user. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.post_signout(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str zap_trace_span: OpenTracing span context + :return: None + If the method is called asynchronously, + returns the request thread. + """ # noqa: E501 + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.post_signout_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.post_signout_with_http_info(**kwargs) # noqa: E501 + return data + + def post_signout_with_http_info(self, **kwargs): # noqa: E501,D401,D403 + """Expire the current UI session. + + Expires the current UI session for the user. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.post_signout_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str zap_trace_span: OpenTracing span context + :return: None + If the method is called asynchronously, + returns the request thread. + """ # noqa: E501 + local_var_params = locals() + + all_params = ['zap_trace_span'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + all_params.append('urlopen_kw') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method post_signout" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'zap_trace_span' in local_var_params: + header_params['Zap-Trace-Span'] = local_var_params['zap_trace_span'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + # urlopen optional setting + urlopen_kw = None + if 'urlopen_kw' in kwargs: + urlopen_kw = kwargs['urlopen_kw'] + + return self.api_client.call_api( + '/api/v2/signout', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + urlopen_kw=urlopen_kw) diff --git a/influxdb_client/service/sources_service.py b/influxdb_client/service/sources_service.py index acf2fa39..cf4d056d 100644 --- a/influxdb_client/service/sources_service.py +++ b/influxdb_client/service/sources_service.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech @@ -137,7 +137,7 @@ def delete_sources_id_with_http_info(self, source_id, **kwargs): # noqa: E501,D urlopen_kw=urlopen_kw) def get_sources(self, **kwargs): # noqa: E501,D401,D403 - """Get all sources. + """List all sources. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -146,7 +146,7 @@ def get_sources(self, **kwargs): # noqa: E501,D401,D403 :param async_req bool :param str zap_trace_span: OpenTracing span context - :param str org: The organization name. + :param str org: The name of the organization. :return: Sources If the method is called asynchronously, returns the request thread. @@ -159,7 +159,7 @@ def get_sources(self, **kwargs): # noqa: E501,D401,D403 return data def get_sources_with_http_info(self, **kwargs): # noqa: E501,D401,D403 - """Get all sources. + """List all sources. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -168,7 +168,7 @@ def get_sources_with_http_info(self, **kwargs): # noqa: E501,D401,D403 :param async_req bool :param str zap_trace_span: OpenTracing span context - :param str org: The organization name. + :param str org: The name of the organization. :return: Sources If the method is called asynchronously, returns the request thread. @@ -237,7 +237,7 @@ def get_sources_with_http_info(self, **kwargs): # noqa: E501,D401,D403 urlopen_kw=urlopen_kw) def get_sources_id(self, source_id, **kwargs): # noqa: E501,D401,D403 - """Get a source. + """Retrieve a source. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -259,7 +259,7 @@ def get_sources_id(self, source_id, **kwargs): # noqa: E501,D401,D403 return data def get_sources_id_with_http_info(self, source_id, **kwargs): # noqa: E501,D401,D403 - """Get a source. + """Retrieve a source. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -351,7 +351,7 @@ def get_sources_id_buckets(self, source_id, **kwargs): # noqa: E501,D401,D403 :param async_req bool :param str source_id: The source ID. (required) :param str zap_trace_span: OpenTracing span context - :param str org: The organization name. + :param str org: The name of the organization. :return: Buckets If the method is called asynchronously, returns the request thread. @@ -374,7 +374,7 @@ def get_sources_id_buckets_with_http_info(self, source_id, **kwargs): # noqa: E :param async_req bool :param str source_id: The source ID. (required) :param str zap_trace_span: OpenTracing span context - :param str org: The organization name. + :param str org: The name of the organization. :return: Buckets If the method is called asynchronously, returns the request thread. diff --git a/influxdb_client/service/tasks_service.py b/influxdb_client/service/tasks_service.py index a6a9e95a..fbd4b272 100644 --- a/influxdb_client/service/tasks_service.py +++ b/influxdb_client/service/tasks_service.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech @@ -603,6 +603,7 @@ def get_tasks(self, **kwargs): # noqa: E501,D401,D403 :param str org_id: Filter tasks to a specific organization ID. :param str status: Filter tasks by a status--"inactive" or "active". :param int limit: The number of tasks to return + :param str type: Type of task, unset by default. :return: Tasks If the method is called asynchronously, returns the request thread. @@ -631,13 +632,14 @@ def get_tasks_with_http_info(self, **kwargs): # noqa: E501,D401,D403 :param str org_id: Filter tasks to a specific organization ID. :param str status: Filter tasks by a status--"inactive" or "active". :param int limit: The number of tasks to return + :param str type: Type of task, unset by default. :return: Tasks If the method is called asynchronously, returns the request thread. """ # noqa: E501 local_var_params = locals() - all_params = ['zap_trace_span', 'name', 'after', 'user', 'org', 'org_id', 'status', 'limit'] # noqa: E501 + all_params = ['zap_trace_span', 'name', 'after', 'user', 'org', 'org_id', 'status', 'limit', 'type'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -676,6 +678,8 @@ def get_tasks_with_http_info(self, **kwargs): # noqa: E501,D401,D403 query_params.append(('status', local_var_params['status'])) # noqa: E501 if 'limit' in local_var_params: query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'type' in local_var_params: + query_params.append(('type', local_var_params['type'])) # noqa: E501 header_params = {} if 'zap_trace_span' in local_var_params: diff --git a/influxdb_client/service/telegraf_plugins_service.py b/influxdb_client/service/telegraf_plugins_service.py new file mode 100644 index 00000000..91e5549d --- /dev/null +++ b/influxdb_client/service/telegraf_plugins_service.py @@ -0,0 +1,133 @@ +# coding: utf-8 + +""" +InfluxDB OSS API Service. + +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 + +OpenAPI spec version: 2.0.0 +Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + + +class TelegrafPluginsService(object): + """NOTE: This class is auto generated by OpenAPI Generator. + + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None): # noqa: E501,D401,D403 + """TelegrafPluginsService - a operation defined in OpenAPI.""" + if api_client is None: + raise ValueError("Invalid value for `api_client`, must be defined.") + self.api_client = api_client + + def get_telegraf_plugins(self, **kwargs): # noqa: E501,D401,D403 + """List all Telegraf plugins. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_telegraf_plugins(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str zap_trace_span: OpenTracing span context + :param str type: The type of plugin desired. + :return: TelegrafPlugins + If the method is called asynchronously, + returns the request thread. + """ # noqa: E501 + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_telegraf_plugins_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.get_telegraf_plugins_with_http_info(**kwargs) # noqa: E501 + return data + + def get_telegraf_plugins_with_http_info(self, **kwargs): # noqa: E501,D401,D403 + """List all Telegraf plugins. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_telegraf_plugins_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str zap_trace_span: OpenTracing span context + :param str type: The type of plugin desired. + :return: TelegrafPlugins + If the method is called asynchronously, + returns the request thread. + """ # noqa: E501 + local_var_params = locals() + + all_params = ['zap_trace_span', 'type'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + all_params.append('urlopen_kw') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_telegraf_plugins" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'type' in local_var_params: + query_params.append(('type', local_var_params['type'])) # noqa: E501 + + header_params = {} + if 'zap_trace_span' in local_var_params: + header_params['Zap-Trace-Span'] = local_var_params['zap_trace_span'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + # urlopen optional setting + urlopen_kw = None + if 'urlopen_kw' in kwargs: + urlopen_kw = kwargs['urlopen_kw'] + + return self.api_client.call_api( + '/api/v2/telegraf/plugins', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='TelegrafPlugins', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + urlopen_kw=urlopen_kw) diff --git a/influxdb_client/service/telegrafs_service.py b/influxdb_client/service/telegrafs_service.py index 64e5c0c2..066cce1c 100644 --- a/influxdb_client/service/telegrafs_service.py +++ b/influxdb_client/service/telegrafs_service.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech @@ -33,7 +33,7 @@ def __init__(self, api_client=None): # noqa: E501,D401,D403 self.api_client = api_client def delete_telegrafs_id(self, telegraf_id, **kwargs): # noqa: E501,D401,D403 - """Delete a Telegraf config. + """Delete a Telegraf configuration. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -41,7 +41,7 @@ def delete_telegrafs_id(self, telegraf_id, **kwargs): # noqa: E501,D401,D403 >>> result = thread.get() :param async_req bool - :param str telegraf_id: The Telegraf config ID. (required) + :param str telegraf_id: The Telegraf configuration ID. (required) :param str zap_trace_span: OpenTracing span context :return: None If the method is called asynchronously, @@ -55,7 +55,7 @@ def delete_telegrafs_id(self, telegraf_id, **kwargs): # noqa: E501,D401,D403 return data def delete_telegrafs_id_with_http_info(self, telegraf_id, **kwargs): # noqa: E501,D401,D403 - """Delete a Telegraf config. + """Delete a Telegraf configuration. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -63,7 +63,7 @@ def delete_telegrafs_id_with_http_info(self, telegraf_id, **kwargs): # noqa: E5 >>> result = thread.get() :param async_req bool - :param str telegraf_id: The Telegraf config ID. (required) + :param str telegraf_id: The Telegraf configuration ID. (required) :param str zap_trace_span: OpenTracing span context :return: None If the method is called asynchronously, @@ -473,7 +473,7 @@ def delete_telegrafs_id_owners_id_with_http_info(self, user_id, telegraf_id, **k urlopen_kw=urlopen_kw) def get_telegrafs(self, **kwargs): # noqa: E501,D401,D403 - """get_telegrafs. + """List all Telegraf configurations. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -495,7 +495,7 @@ def get_telegrafs(self, **kwargs): # noqa: E501,D401,D403 return data def get_telegrafs_with_http_info(self, **kwargs): # noqa: E501,D401,D403 - """get_telegrafs. + """List all Telegraf configurations. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -573,7 +573,7 @@ def get_telegrafs_with_http_info(self, **kwargs): # noqa: E501,D401,D403 urlopen_kw=urlopen_kw) def get_telegrafs_id(self, telegraf_id, **kwargs): # noqa: E501,D401,D403 - """Retrieve a Telegraf config. + """Retrieve a Telegraf configuration. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -581,7 +581,7 @@ def get_telegrafs_id(self, telegraf_id, **kwargs): # noqa: E501,D401,D403 >>> result = thread.get() :param async_req bool - :param str telegraf_id: The Telegraf config ID. (required) + :param str telegraf_id: The Telegraf configuration ID. (required) :param str zap_trace_span: OpenTracing span context :param str accept: :return: str @@ -596,7 +596,7 @@ def get_telegrafs_id(self, telegraf_id, **kwargs): # noqa: E501,D401,D403 return data def get_telegrafs_id_with_http_info(self, telegraf_id, **kwargs): # noqa: E501,D401,D403 - """Retrieve a Telegraf config. + """Retrieve a Telegraf configuration. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -604,7 +604,7 @@ def get_telegrafs_id_with_http_info(self, telegraf_id, **kwargs): # noqa: E501, >>> result = thread.get() :param async_req bool - :param str telegraf_id: The Telegraf config ID. (required) + :param str telegraf_id: The Telegraf configuration ID. (required) :param str zap_trace_span: OpenTracing span context :param str accept: :return: str @@ -889,7 +889,7 @@ def get_telegrafs_id_members_with_http_info(self, telegraf_id, **kwargs): # noq urlopen_kw=urlopen_kw) def get_telegrafs_id_owners(self, telegraf_id, **kwargs): # noqa: E501,D401,D403 - """List all owners of a Telegraf config. + """List all owners of a Telegraf configuration. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -897,7 +897,7 @@ def get_telegrafs_id_owners(self, telegraf_id, **kwargs): # noqa: E501,D401,D40 >>> result = thread.get() :param async_req bool - :param str telegraf_id: The Telegraf config ID. (required) + :param str telegraf_id: The Telegraf configuration ID. (required) :param str zap_trace_span: OpenTracing span context :return: ResourceOwners If the method is called asynchronously, @@ -911,7 +911,7 @@ def get_telegrafs_id_owners(self, telegraf_id, **kwargs): # noqa: E501,D401,D40 return data def get_telegrafs_id_owners_with_http_info(self, telegraf_id, **kwargs): # noqa: E501,D401,D403 - """List all owners of a Telegraf config. + """List all owners of a Telegraf configuration. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -919,7 +919,7 @@ def get_telegrafs_id_owners_with_http_info(self, telegraf_id, **kwargs): # noqa >>> result = thread.get() :param async_req bool - :param str telegraf_id: The Telegraf config ID. (required) + :param str telegraf_id: The Telegraf configuration ID. (required) :param str zap_trace_span: OpenTracing span context :return: ResourceOwners If the method is called asynchronously, @@ -992,16 +992,16 @@ def get_telegrafs_id_owners_with_http_info(self, telegraf_id, **kwargs): # noqa collection_formats=collection_formats, urlopen_kw=urlopen_kw) - def post_telegrafs(self, telegraf_request, **kwargs): # noqa: E501,D401,D403 - """Create a Telegraf config. + def post_telegrafs(self, telegraf_plugin_request, **kwargs): # noqa: E501,D401,D403 + """Create a Telegraf configuration. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.post_telegrafs(telegraf_request, async_req=True) + >>> thread = api.post_telegrafs(telegraf_plugin_request, async_req=True) >>> result = thread.get() :param async_req bool - :param TelegrafRequest telegraf_request: Telegraf config to create (required) + :param TelegrafPluginRequest telegraf_plugin_request: Telegraf configuration to create (required) :param str zap_trace_span: OpenTracing span context :return: Telegraf If the method is called asynchronously, @@ -1009,21 +1009,21 @@ def post_telegrafs(self, telegraf_request, **kwargs): # noqa: E501,D401,D403 """ # noqa: E501 kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.post_telegrafs_with_http_info(telegraf_request, **kwargs) # noqa: E501 + return self.post_telegrafs_with_http_info(telegraf_plugin_request, **kwargs) # noqa: E501 else: - (data) = self.post_telegrafs_with_http_info(telegraf_request, **kwargs) # noqa: E501 + (data) = self.post_telegrafs_with_http_info(telegraf_plugin_request, **kwargs) # noqa: E501 return data - def post_telegrafs_with_http_info(self, telegraf_request, **kwargs): # noqa: E501,D401,D403 - """Create a Telegraf config. + def post_telegrafs_with_http_info(self, telegraf_plugin_request, **kwargs): # noqa: E501,D401,D403 + """Create a Telegraf configuration. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.post_telegrafs_with_http_info(telegraf_request, async_req=True) + >>> thread = api.post_telegrafs_with_http_info(telegraf_plugin_request, async_req=True) >>> result = thread.get() :param async_req bool - :param TelegrafRequest telegraf_request: Telegraf config to create (required) + :param TelegrafPluginRequest telegraf_plugin_request: Telegraf configuration to create (required) :param str zap_trace_span: OpenTracing span context :return: Telegraf If the method is called asynchronously, @@ -1031,7 +1031,7 @@ def post_telegrafs_with_http_info(self, telegraf_request, **kwargs): # noqa: E5 """ # noqa: E501 local_var_params = locals() - all_params = ['telegraf_request', 'zap_trace_span'] # noqa: E501 + all_params = ['telegraf_plugin_request', 'zap_trace_span'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -1046,10 +1046,10 @@ def post_telegrafs_with_http_info(self, telegraf_request, **kwargs): # noqa: E5 ) local_var_params[key] = val del local_var_params['kwargs'] - # verify the required parameter 'telegraf_request' is set - if ('telegraf_request' not in local_var_params or - local_var_params['telegraf_request'] is None): - raise ValueError("Missing the required parameter `telegraf_request` when calling `post_telegrafs`") # noqa: E501 + # verify the required parameter 'telegraf_plugin_request' is set + if ('telegraf_plugin_request' not in local_var_params or + local_var_params['telegraf_plugin_request'] is None): + raise ValueError("Missing the required parameter `telegraf_plugin_request` when calling `post_telegrafs`") # noqa: E501 collection_formats = {} @@ -1065,8 +1065,8 @@ def post_telegrafs_with_http_info(self, telegraf_request, **kwargs): # noqa: E5 local_var_files = {} body_params = None - if 'telegraf_request' in local_var_params: - body_params = local_var_params['telegraf_request'] + if 'telegraf_plugin_request' in local_var_params: + body_params = local_var_params['telegraf_plugin_request'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -1333,7 +1333,7 @@ def post_telegrafs_id_members_with_http_info(self, telegraf_id, add_resource_mem urlopen_kw=urlopen_kw) def post_telegrafs_id_owners(self, telegraf_id, add_resource_member_request_body, **kwargs): # noqa: E501,D401,D403 - """Add an owner to a Telegraf config. + """Add an owner to a Telegraf configuration. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -1341,7 +1341,7 @@ def post_telegrafs_id_owners(self, telegraf_id, add_resource_member_request_body >>> result = thread.get() :param async_req bool - :param str telegraf_id: The Telegraf config ID. (required) + :param str telegraf_id: The Telegraf configuration ID. (required) :param AddResourceMemberRequestBody add_resource_member_request_body: User to add as owner (required) :param str zap_trace_span: OpenTracing span context :return: ResourceOwner @@ -1356,7 +1356,7 @@ def post_telegrafs_id_owners(self, telegraf_id, add_resource_member_request_body return data def post_telegrafs_id_owners_with_http_info(self, telegraf_id, add_resource_member_request_body, **kwargs): # noqa: E501,D401,D403 - """Add an owner to a Telegraf config. + """Add an owner to a Telegraf configuration. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -1364,7 +1364,7 @@ def post_telegrafs_id_owners_with_http_info(self, telegraf_id, add_resource_memb >>> result = thread.get() :param async_req bool - :param str telegraf_id: The Telegraf config ID. (required) + :param str telegraf_id: The Telegraf configuration ID. (required) :param AddResourceMemberRequestBody add_resource_member_request_body: User to add as owner (required) :param str zap_trace_span: OpenTracing span context :return: ResourceOwner @@ -1448,17 +1448,17 @@ def post_telegrafs_id_owners_with_http_info(self, telegraf_id, add_resource_memb collection_formats=collection_formats, urlopen_kw=urlopen_kw) - def put_telegrafs_id(self, telegraf_id, telegraf_request, **kwargs): # noqa: E501,D401,D403 - """Update a Telegraf config. + def put_telegrafs_id(self, telegraf_id, telegraf_plugin_request, **kwargs): # noqa: E501,D401,D403 + """Update a Telegraf configuration. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.put_telegrafs_id(telegraf_id, telegraf_request, async_req=True) + >>> thread = api.put_telegrafs_id(telegraf_id, telegraf_plugin_request, async_req=True) >>> result = thread.get() :param async_req bool :param str telegraf_id: The Telegraf config ID. (required) - :param TelegrafRequest telegraf_request: Telegraf config update to apply (required) + :param TelegrafPluginRequest telegraf_plugin_request: Telegraf configuration update to apply (required) :param str zap_trace_span: OpenTracing span context :return: Telegraf If the method is called asynchronously, @@ -1466,22 +1466,22 @@ def put_telegrafs_id(self, telegraf_id, telegraf_request, **kwargs): # noqa: E5 """ # noqa: E501 kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.put_telegrafs_id_with_http_info(telegraf_id, telegraf_request, **kwargs) # noqa: E501 + return self.put_telegrafs_id_with_http_info(telegraf_id, telegraf_plugin_request, **kwargs) # noqa: E501 else: - (data) = self.put_telegrafs_id_with_http_info(telegraf_id, telegraf_request, **kwargs) # noqa: E501 + (data) = self.put_telegrafs_id_with_http_info(telegraf_id, telegraf_plugin_request, **kwargs) # noqa: E501 return data - def put_telegrafs_id_with_http_info(self, telegraf_id, telegraf_request, **kwargs): # noqa: E501,D401,D403 - """Update a Telegraf config. + def put_telegrafs_id_with_http_info(self, telegraf_id, telegraf_plugin_request, **kwargs): # noqa: E501,D401,D403 + """Update a Telegraf configuration. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.put_telegrafs_id_with_http_info(telegraf_id, telegraf_request, async_req=True) + >>> thread = api.put_telegrafs_id_with_http_info(telegraf_id, telegraf_plugin_request, async_req=True) >>> result = thread.get() :param async_req bool :param str telegraf_id: The Telegraf config ID. (required) - :param TelegrafRequest telegraf_request: Telegraf config update to apply (required) + :param TelegrafPluginRequest telegraf_plugin_request: Telegraf configuration update to apply (required) :param str zap_trace_span: OpenTracing span context :return: Telegraf If the method is called asynchronously, @@ -1489,7 +1489,7 @@ def put_telegrafs_id_with_http_info(self, telegraf_id, telegraf_request, **kwarg """ # noqa: E501 local_var_params = locals() - all_params = ['telegraf_id', 'telegraf_request', 'zap_trace_span'] # noqa: E501 + all_params = ['telegraf_id', 'telegraf_plugin_request', 'zap_trace_span'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -1508,10 +1508,10 @@ def put_telegrafs_id_with_http_info(self, telegraf_id, telegraf_request, **kwarg if ('telegraf_id' not in local_var_params or local_var_params['telegraf_id'] is None): raise ValueError("Missing the required parameter `telegraf_id` when calling `put_telegrafs_id`") # noqa: E501 - # verify the required parameter 'telegraf_request' is set - if ('telegraf_request' not in local_var_params or - local_var_params['telegraf_request'] is None): - raise ValueError("Missing the required parameter `telegraf_request` when calling `put_telegrafs_id`") # noqa: E501 + # verify the required parameter 'telegraf_plugin_request' is set + if ('telegraf_plugin_request' not in local_var_params or + local_var_params['telegraf_plugin_request'] is None): + raise ValueError("Missing the required parameter `telegraf_plugin_request` when calling `put_telegrafs_id`") # noqa: E501 collection_formats = {} @@ -1529,8 +1529,8 @@ def put_telegrafs_id_with_http_info(self, telegraf_id, telegraf_request, **kwarg local_var_files = {} body_params = None - if 'telegraf_request' in local_var_params: - body_params = local_var_params['telegraf_request'] + if 'telegraf_plugin_request' in local_var_params: + body_params = local_var_params['telegraf_plugin_request'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 diff --git a/influxdb_client/service/templates_service.py b/influxdb_client/service/templates_service.py index 390fde8e..de2c56b4 100644 --- a/influxdb_client/service/templates_service.py +++ b/influxdb_client/service/templates_service.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech @@ -32,46 +32,46 @@ def __init__(self, api_client=None): # noqa: E501,D401,D403 raise ValueError("Invalid value for `api_client`, must be defined.") self.api_client = api_client - def delete_documents_templates_id(self, template_id, **kwargs): # noqa: E501,D401,D403 - """Delete a template. + def apply_template(self, template_apply, **kwargs): # noqa: E501,D401,D403 + """Apply or dry-run a template. + Applies or performs a dry-run of template in an organization. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_documents_templates_id(template_id, async_req=True) + >>> thread = api.apply_template(template_apply, async_req=True) >>> result = thread.get() :param async_req bool - :param str template_id: The template ID. (required) - :param str zap_trace_span: OpenTracing span context - :return: None + :param TemplateApply template_apply: (required) + :return: TemplateSummary If the method is called asynchronously, returns the request thread. """ # noqa: E501 kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_documents_templates_id_with_http_info(template_id, **kwargs) # noqa: E501 + return self.apply_template_with_http_info(template_apply, **kwargs) # noqa: E501 else: - (data) = self.delete_documents_templates_id_with_http_info(template_id, **kwargs) # noqa: E501 + (data) = self.apply_template_with_http_info(template_apply, **kwargs) # noqa: E501 return data - def delete_documents_templates_id_with_http_info(self, template_id, **kwargs): # noqa: E501,D401,D403 - """Delete a template. + def apply_template_with_http_info(self, template_apply, **kwargs): # noqa: E501,D401,D403 + """Apply or dry-run a template. + Applies or performs a dry-run of template in an organization. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_documents_templates_id_with_http_info(template_id, async_req=True) + >>> thread = api.apply_template_with_http_info(template_apply, async_req=True) >>> result = thread.get() :param async_req bool - :param str template_id: The template ID. (required) - :param str zap_trace_span: OpenTracing span context - :return: None + :param TemplateApply template_apply: (required) + :return: TemplateSummary If the method is called asynchronously, returns the request thread. """ # noqa: E501 local_var_params = locals() - all_params = ['template_id', 'zap_trace_span'] # noqa: E501 + all_params = ['template_apply'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -82,35 +82,37 @@ def delete_documents_templates_id_with_http_info(self, template_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_documents_templates_id" % key + " to method apply_template" % key ) local_var_params[key] = val del local_var_params['kwargs'] - # verify the required parameter 'template_id' is set - if ('template_id' not in local_var_params or - local_var_params['template_id'] is None): - raise ValueError("Missing the required parameter `template_id` when calling `delete_documents_templates_id`") # noqa: E501 + # verify the required parameter 'template_apply' is set + if ('template_apply' not in local_var_params or + local_var_params['template_apply'] is None): + raise ValueError("Missing the required parameter `template_apply` when calling `apply_template`") # noqa: E501 collection_formats = {} path_params = {} - if 'template_id' in local_var_params: - path_params['templateID'] = local_var_params['template_id'] # noqa: E501 query_params = [] header_params = {} - if 'zap_trace_span' in local_var_params: - header_params['Zap-Trace-Span'] = local_var_params['zap_trace_span'] # noqa: E501 form_params = [] local_var_files = {} body_params = None + if 'template_apply' in local_var_params: + body_params = local_var_params['template_apply'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json', 'application/x-jsonnet', 'text/yml']) # noqa: E501 + # Authentication setting auth_settings = [] # noqa: E501 @@ -120,14 +122,14 @@ def delete_documents_templates_id_with_http_info(self, template_id, **kwargs): urlopen_kw = kwargs['urlopen_kw'] return self.api_client.call_api( - '/api/v2/documents/templates/{templateID}', 'DELETE', + '/api/v2/templates/apply', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type=None, # noqa: E501 + response_type='TemplateSummary', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -136,48 +138,44 @@ def delete_documents_templates_id_with_http_info(self, template_id, **kwargs): collection_formats=collection_formats, urlopen_kw=urlopen_kw) - def delete_documents_templates_id_labels_id(self, template_id, label_id, **kwargs): # noqa: E501,D401,D403 - """Delete a label from a template. + def create_stack(self, **kwargs): # noqa: E501,D401,D403 + """Create a new stack. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_documents_templates_id_labels_id(template_id, label_id, async_req=True) + >>> thread = api.create_stack(async_req=True) >>> result = thread.get() :param async_req bool - :param str template_id: The template ID. (required) - :param str label_id: The label ID. (required) - :param str zap_trace_span: OpenTracing span context - :return: None + :param PostStackRequest post_stack_request: + :return: Stack If the method is called asynchronously, returns the request thread. """ # noqa: E501 kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_documents_templates_id_labels_id_with_http_info(template_id, label_id, **kwargs) # noqa: E501 + return self.create_stack_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.delete_documents_templates_id_labels_id_with_http_info(template_id, label_id, **kwargs) # noqa: E501 + (data) = self.create_stack_with_http_info(**kwargs) # noqa: E501 return data - def delete_documents_templates_id_labels_id_with_http_info(self, template_id, label_id, **kwargs): # noqa: E501,D401,D403 - """Delete a label from a template. + def create_stack_with_http_info(self, **kwargs): # noqa: E501,D401,D403 + """Create a new stack. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_documents_templates_id_labels_id_with_http_info(template_id, label_id, async_req=True) + >>> thread = api.create_stack_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool - :param str template_id: The template ID. (required) - :param str label_id: The label ID. (required) - :param str zap_trace_span: OpenTracing span context - :return: None + :param PostStackRequest post_stack_request: + :return: Stack If the method is called asynchronously, returns the request thread. """ # noqa: E501 local_var_params = locals() - all_params = ['template_id', 'label_id', 'zap_trace_span'] # noqa: E501 + all_params = ['post_stack_request'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -188,41 +186,33 @@ def delete_documents_templates_id_labels_id_with_http_info(self, template_id, la if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_documents_templates_id_labels_id" % key + " to method create_stack" % key ) local_var_params[key] = val del local_var_params['kwargs'] - # verify the required parameter 'template_id' is set - if ('template_id' not in local_var_params or - local_var_params['template_id'] is None): - raise ValueError("Missing the required parameter `template_id` when calling `delete_documents_templates_id_labels_id`") # noqa: E501 - # verify the required parameter 'label_id' is set - if ('label_id' not in local_var_params or - local_var_params['label_id'] is None): - raise ValueError("Missing the required parameter `label_id` when calling `delete_documents_templates_id_labels_id`") # noqa: E501 collection_formats = {} path_params = {} - if 'template_id' in local_var_params: - path_params['templateID'] = local_var_params['template_id'] # noqa: E501 - if 'label_id' in local_var_params: - path_params['labelID'] = local_var_params['label_id'] # noqa: E501 query_params = [] header_params = {} - if 'zap_trace_span' in local_var_params: - header_params['Zap-Trace-Span'] = local_var_params['zap_trace_span'] # noqa: E501 form_params = [] local_var_files = {} body_params = None + if 'post_stack_request' in local_var_params: + body_params = local_var_params['post_stack_request'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + # Authentication setting auth_settings = [] # noqa: E501 @@ -232,14 +222,14 @@ def delete_documents_templates_id_labels_id_with_http_info(self, template_id, la urlopen_kw = kwargs['urlopen_kw'] return self.api_client.call_api( - '/api/v2/documents/templates/{templateID}/labels/{labelID}', 'DELETE', + '/api/v2/stacks', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type=None, # noqa: E501 + response_type='Stack', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -248,48 +238,46 @@ def delete_documents_templates_id_labels_id_with_http_info(self, template_id, la collection_formats=collection_formats, urlopen_kw=urlopen_kw) - def get_documents_templates(self, **kwargs): # noqa: E501,D401,D403 - """get_documents_templates. + def delete_stack(self, stack_id, org_id, **kwargs): # noqa: E501,D401,D403 + """Delete a stack and associated resources. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_documents_templates(async_req=True) + >>> thread = api.delete_stack(stack_id, org_id, async_req=True) >>> result = thread.get() :param async_req bool - :param str zap_trace_span: OpenTracing span context - :param str org: Specifies the name of the organization of the template. - :param str org_id: Specifies the organization ID of the template. - :return: Documents + :param str stack_id: The identifier of the stack. (required) + :param str org_id: The identifier of the organization. (required) + :return: None If the method is called asynchronously, returns the request thread. """ # noqa: E501 kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.get_documents_templates_with_http_info(**kwargs) # noqa: E501 + return self.delete_stack_with_http_info(stack_id, org_id, **kwargs) # noqa: E501 else: - (data) = self.get_documents_templates_with_http_info(**kwargs) # noqa: E501 + (data) = self.delete_stack_with_http_info(stack_id, org_id, **kwargs) # noqa: E501 return data - def get_documents_templates_with_http_info(self, **kwargs): # noqa: E501,D401,D403 - """get_documents_templates. + def delete_stack_with_http_info(self, stack_id, org_id, **kwargs): # noqa: E501,D401,D403 + """Delete a stack and associated resources. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_documents_templates_with_http_info(async_req=True) + >>> thread = api.delete_stack_with_http_info(stack_id, org_id, async_req=True) >>> result = thread.get() :param async_req bool - :param str zap_trace_span: OpenTracing span context - :param str org: Specifies the name of the organization of the template. - :param str org_id: Specifies the organization ID of the template. - :return: Documents + :param str stack_id: The identifier of the stack. (required) + :param str org_id: The identifier of the organization. (required) + :return: None If the method is called asynchronously, returns the request thread. """ # noqa: E501 local_var_params = locals() - all_params = ['zap_trace_span', 'org', 'org_id'] # noqa: E501 + all_params = ['stack_id', 'org_id'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -300,24 +288,30 @@ def get_documents_templates_with_http_info(self, **kwargs): # noqa: E501,D401,D if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_documents_templates" % key + " to method delete_stack" % key ) local_var_params[key] = val del local_var_params['kwargs'] + # verify the required parameter 'stack_id' is set + if ('stack_id' not in local_var_params or + local_var_params['stack_id'] is None): + raise ValueError("Missing the required parameter `stack_id` when calling `delete_stack`") # noqa: E501 + # verify the required parameter 'org_id' is set + if ('org_id' not in local_var_params or + local_var_params['org_id'] is None): + raise ValueError("Missing the required parameter `org_id` when calling `delete_stack`") # noqa: E501 collection_formats = {} path_params = {} + if 'stack_id' in local_var_params: + path_params['stack_id'] = local_var_params['stack_id'] # noqa: E501 query_params = [] - if 'org' in local_var_params: - query_params.append(('org', local_var_params['org'])) # noqa: E501 if 'org_id' in local_var_params: query_params.append(('orgID', local_var_params['org_id'])) # noqa: E501 header_params = {} - if 'zap_trace_span' in local_var_params: - header_params['Zap-Trace-Span'] = local_var_params['zap_trace_span'] # noqa: E501 form_params = [] local_var_files = {} @@ -336,14 +330,14 @@ def get_documents_templates_with_http_info(self, **kwargs): # noqa: E501,D401,D urlopen_kw = kwargs['urlopen_kw'] return self.api_client.call_api( - '/api/v2/documents/templates', 'GET', + '/api/v2/stacks/{stack_id}', 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='Documents', # noqa: E501 + response_type=None, # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -352,46 +346,44 @@ def get_documents_templates_with_http_info(self, **kwargs): # noqa: E501,D401,D collection_formats=collection_formats, urlopen_kw=urlopen_kw) - def get_documents_templates_id(self, template_id, **kwargs): # noqa: E501,D401,D403 - """get_documents_templates_id. + def export_template(self, **kwargs): # noqa: E501,D401,D403 + """Export a new template. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_documents_templates_id(template_id, async_req=True) + >>> thread = api.export_template(async_req=True) >>> result = thread.get() :param async_req bool - :param str template_id: The template ID. (required) - :param str zap_trace_span: OpenTracing span context - :return: Document + :param UNKNOWN_BASE_TYPE unknown_base_type: Export resources as an InfluxDB template. + :return: list[object] If the method is called asynchronously, returns the request thread. """ # noqa: E501 kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.get_documents_templates_id_with_http_info(template_id, **kwargs) # noqa: E501 + return self.export_template_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.get_documents_templates_id_with_http_info(template_id, **kwargs) # noqa: E501 + (data) = self.export_template_with_http_info(**kwargs) # noqa: E501 return data - def get_documents_templates_id_with_http_info(self, template_id, **kwargs): # noqa: E501,D401,D403 - """get_documents_templates_id. + def export_template_with_http_info(self, **kwargs): # noqa: E501,D401,D403 + """Export a new template. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_documents_templates_id_with_http_info(template_id, async_req=True) + >>> thread = api.export_template_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool - :param str template_id: The template ID. (required) - :param str zap_trace_span: OpenTracing span context - :return: Document + :param UNKNOWN_BASE_TYPE unknown_base_type: Export resources as an InfluxDB template. + :return: list[object] If the method is called asynchronously, returns the request thread. """ # noqa: E501 local_var_params = locals() - all_params = ['template_id', 'zap_trace_span'] # noqa: E501 + all_params = ['unknown_base_type'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -402,33 +394,31 @@ def get_documents_templates_id_with_http_info(self, template_id, **kwargs): # n if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_documents_templates_id" % key + " to method export_template" % key ) local_var_params[key] = val del local_var_params['kwargs'] - # verify the required parameter 'template_id' is set - if ('template_id' not in local_var_params or - local_var_params['template_id'] is None): - raise ValueError("Missing the required parameter `template_id` when calling `get_documents_templates_id`") # noqa: E501 collection_formats = {} path_params = {} - if 'template_id' in local_var_params: - path_params['templateID'] = local_var_params['template_id'] # noqa: E501 query_params = [] header_params = {} - if 'zap_trace_span' in local_var_params: - header_params['Zap-Trace-Span'] = local_var_params['zap_trace_span'] # noqa: E501 form_params = [] local_var_files = {} body_params = None + if 'unknown_base_type' in local_var_params: + body_params = local_var_params['unknown_base_type'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/x-yaml']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['application/json']) # noqa: E501 # Authentication setting @@ -440,14 +430,14 @@ def get_documents_templates_id_with_http_info(self, template_id, **kwargs): # n urlopen_kw = kwargs['urlopen_kw'] return self.api_client.call_api( - '/api/v2/documents/templates/{templateID}', 'GET', + '/api/v2/templates/export', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='Document', # noqa: E501 + response_type='list[object]', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -456,46 +446,48 @@ def get_documents_templates_id_with_http_info(self, template_id, **kwargs): # n collection_formats=collection_formats, urlopen_kw=urlopen_kw) - def get_documents_templates_id_labels(self, template_id, **kwargs): # noqa: E501,D401,D403 - """List all labels for a template. + def list_stacks(self, org_id, **kwargs): # noqa: E501,D401,D403 + """List installed templates. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_documents_templates_id_labels(template_id, async_req=True) + >>> thread = api.list_stacks(org_id, async_req=True) >>> result = thread.get() :param async_req bool - :param str template_id: The template ID. (required) - :param str zap_trace_span: OpenTracing span context - :return: LabelsResponse + :param str org_id: The organization ID of the stacks (required) + :param str name: A collection of names to filter the list by. + :param str stack_id: A collection of stackIDs to filter the list by. + :return: ListStacksResponse If the method is called asynchronously, returns the request thread. """ # noqa: E501 kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.get_documents_templates_id_labels_with_http_info(template_id, **kwargs) # noqa: E501 + return self.list_stacks_with_http_info(org_id, **kwargs) # noqa: E501 else: - (data) = self.get_documents_templates_id_labels_with_http_info(template_id, **kwargs) # noqa: E501 + (data) = self.list_stacks_with_http_info(org_id, **kwargs) # noqa: E501 return data - def get_documents_templates_id_labels_with_http_info(self, template_id, **kwargs): # noqa: E501,D401,D403 - """List all labels for a template. + def list_stacks_with_http_info(self, org_id, **kwargs): # noqa: E501,D401,D403 + """List installed templates. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_documents_templates_id_labels_with_http_info(template_id, async_req=True) + >>> thread = api.list_stacks_with_http_info(org_id, async_req=True) >>> result = thread.get() :param async_req bool - :param str template_id: The template ID. (required) - :param str zap_trace_span: OpenTracing span context - :return: LabelsResponse + :param str org_id: The organization ID of the stacks (required) + :param str name: A collection of names to filter the list by. + :param str stack_id: A collection of stackIDs to filter the list by. + :return: ListStacksResponse If the method is called asynchronously, returns the request thread. """ # noqa: E501 local_var_params = locals() - all_params = ['template_id', 'zap_trace_span'] # noqa: E501 + all_params = ['org_id', 'name', 'stack_id'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -506,26 +498,28 @@ def get_documents_templates_id_labels_with_http_info(self, template_id, **kwargs if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_documents_templates_id_labels" % key + " to method list_stacks" % key ) local_var_params[key] = val del local_var_params['kwargs'] - # verify the required parameter 'template_id' is set - if ('template_id' not in local_var_params or - local_var_params['template_id'] is None): - raise ValueError("Missing the required parameter `template_id` when calling `get_documents_templates_id_labels`") # noqa: E501 + # verify the required parameter 'org_id' is set + if ('org_id' not in local_var_params or + local_var_params['org_id'] is None): + raise ValueError("Missing the required parameter `org_id` when calling `list_stacks`") # noqa: E501 collection_formats = {} path_params = {} - if 'template_id' in local_var_params: - path_params['templateID'] = local_var_params['template_id'] # noqa: E501 query_params = [] + if 'org_id' in local_var_params: + query_params.append(('orgID', local_var_params['org_id'])) # noqa: E501 + if 'name' in local_var_params: + query_params.append(('name', local_var_params['name'])) # noqa: E501 + if 'stack_id' in local_var_params: + query_params.append(('stackID', local_var_params['stack_id'])) # noqa: E501 header_params = {} - if 'zap_trace_span' in local_var_params: - header_params['Zap-Trace-Span'] = local_var_params['zap_trace_span'] # noqa: E501 form_params = [] local_var_files = {} @@ -544,14 +538,14 @@ def get_documents_templates_id_labels_with_http_info(self, template_id, **kwargs urlopen_kw = kwargs['urlopen_kw'] return self.api_client.call_api( - '/api/v2/documents/templates/{templateID}/labels', 'GET', + '/api/v2/stacks', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='LabelsResponse', # noqa: E501 + response_type='ListStacksResponse', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -560,46 +554,44 @@ def get_documents_templates_id_labels_with_http_info(self, template_id, **kwargs collection_formats=collection_formats, urlopen_kw=urlopen_kw) - def post_documents_templates(self, document_create, **kwargs): # noqa: E501,D401,D403 - """Create a template. + def read_stack(self, stack_id, **kwargs): # noqa: E501,D401,D403 + """Retrieve a stack. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.post_documents_templates(document_create, async_req=True) + >>> thread = api.read_stack(stack_id, async_req=True) >>> result = thread.get() :param async_req bool - :param DocumentCreate document_create: Template that will be created (required) - :param str zap_trace_span: OpenTracing span context - :return: Document + :param str stack_id: The identifier of the stack. (required) + :return: Stack If the method is called asynchronously, returns the request thread. """ # noqa: E501 kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.post_documents_templates_with_http_info(document_create, **kwargs) # noqa: E501 + return self.read_stack_with_http_info(stack_id, **kwargs) # noqa: E501 else: - (data) = self.post_documents_templates_with_http_info(document_create, **kwargs) # noqa: E501 + (data) = self.read_stack_with_http_info(stack_id, **kwargs) # noqa: E501 return data - def post_documents_templates_with_http_info(self, document_create, **kwargs): # noqa: E501,D401,D403 - """Create a template. + def read_stack_with_http_info(self, stack_id, **kwargs): # noqa: E501,D401,D403 + """Retrieve a stack. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.post_documents_templates_with_http_info(document_create, async_req=True) + >>> thread = api.read_stack_with_http_info(stack_id, async_req=True) >>> result = thread.get() :param async_req bool - :param DocumentCreate document_create: Template that will be created (required) - :param str zap_trace_span: OpenTracing span context - :return: Document + :param str stack_id: The identifier of the stack. (required) + :return: Stack If the method is called asynchronously, returns the request thread. """ # noqa: E501 local_var_params = locals() - all_params = ['document_create', 'zap_trace_span'] # noqa: E501 + all_params = ['stack_id'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -610,39 +602,33 @@ def post_documents_templates_with_http_info(self, document_create, **kwargs): # if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method post_documents_templates" % key + " to method read_stack" % key ) local_var_params[key] = val del local_var_params['kwargs'] - # verify the required parameter 'document_create' is set - if ('document_create' not in local_var_params or - local_var_params['document_create'] is None): - raise ValueError("Missing the required parameter `document_create` when calling `post_documents_templates`") # noqa: E501 + # verify the required parameter 'stack_id' is set + if ('stack_id' not in local_var_params or + local_var_params['stack_id'] is None): + raise ValueError("Missing the required parameter `stack_id` when calling `read_stack`") # noqa: E501 collection_formats = {} path_params = {} + if 'stack_id' in local_var_params: + path_params['stack_id'] = local_var_params['stack_id'] # noqa: E501 query_params = [] header_params = {} - if 'zap_trace_span' in local_var_params: - header_params['Zap-Trace-Span'] = local_var_params['zap_trace_span'] # noqa: E501 form_params = [] local_var_files = {} body_params = None - if 'document_create' in local_var_params: - body_params = local_var_params['document_create'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = [] # noqa: E501 @@ -652,14 +638,14 @@ def post_documents_templates_with_http_info(self, document_create, **kwargs): # urlopen_kw = kwargs['urlopen_kw'] return self.api_client.call_api( - '/api/v2/documents/templates', 'POST', + '/api/v2/stacks/{stack_id}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='Document', # noqa: E501 + response_type='Stack', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -668,48 +654,44 @@ def post_documents_templates_with_http_info(self, document_create, **kwargs): # collection_formats=collection_formats, urlopen_kw=urlopen_kw) - def post_documents_templates_id_labels(self, template_id, label_mapping, **kwargs): # noqa: E501,D401,D403 - """Add a label to a template. + def uninstall_stack(self, stack_id, **kwargs): # noqa: E501,D401,D403 + """Uninstall a stack. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.post_documents_templates_id_labels(template_id, label_mapping, async_req=True) + >>> thread = api.uninstall_stack(stack_id, async_req=True) >>> result = thread.get() :param async_req bool - :param str template_id: The template ID. (required) - :param LabelMapping label_mapping: Label to add (required) - :param str zap_trace_span: OpenTracing span context - :return: LabelResponse + :param str stack_id: The identifier of the stack. (required) + :return: Stack If the method is called asynchronously, returns the request thread. """ # noqa: E501 kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.post_documents_templates_id_labels_with_http_info(template_id, label_mapping, **kwargs) # noqa: E501 + return self.uninstall_stack_with_http_info(stack_id, **kwargs) # noqa: E501 else: - (data) = self.post_documents_templates_id_labels_with_http_info(template_id, label_mapping, **kwargs) # noqa: E501 + (data) = self.uninstall_stack_with_http_info(stack_id, **kwargs) # noqa: E501 return data - def post_documents_templates_id_labels_with_http_info(self, template_id, label_mapping, **kwargs): # noqa: E501,D401,D403 - """Add a label to a template. + def uninstall_stack_with_http_info(self, stack_id, **kwargs): # noqa: E501,D401,D403 + """Uninstall a stack. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.post_documents_templates_id_labels_with_http_info(template_id, label_mapping, async_req=True) + >>> thread = api.uninstall_stack_with_http_info(stack_id, async_req=True) >>> result = thread.get() :param async_req bool - :param str template_id: The template ID. (required) - :param LabelMapping label_mapping: Label to add (required) - :param str zap_trace_span: OpenTracing span context - :return: LabelResponse + :param str stack_id: The identifier of the stack. (required) + :return: Stack If the method is called asynchronously, returns the request thread. """ # noqa: E501 local_var_params = locals() - all_params = ['template_id', 'label_mapping', 'zap_trace_span'] # noqa: E501 + all_params = ['stack_id'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -720,45 +702,33 @@ def post_documents_templates_id_labels_with_http_info(self, template_id, label_m if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method post_documents_templates_id_labels" % key + " to method uninstall_stack" % key ) local_var_params[key] = val del local_var_params['kwargs'] - # verify the required parameter 'template_id' is set - if ('template_id' not in local_var_params or - local_var_params['template_id'] is None): - raise ValueError("Missing the required parameter `template_id` when calling `post_documents_templates_id_labels`") # noqa: E501 - # verify the required parameter 'label_mapping' is set - if ('label_mapping' not in local_var_params or - local_var_params['label_mapping'] is None): - raise ValueError("Missing the required parameter `label_mapping` when calling `post_documents_templates_id_labels`") # noqa: E501 + # verify the required parameter 'stack_id' is set + if ('stack_id' not in local_var_params or + local_var_params['stack_id'] is None): + raise ValueError("Missing the required parameter `stack_id` when calling `uninstall_stack`") # noqa: E501 collection_formats = {} path_params = {} - if 'template_id' in local_var_params: - path_params['templateID'] = local_var_params['template_id'] # noqa: E501 + if 'stack_id' in local_var_params: + path_params['stack_id'] = local_var_params['stack_id'] # noqa: E501 query_params = [] header_params = {} - if 'zap_trace_span' in local_var_params: - header_params['Zap-Trace-Span'] = local_var_params['zap_trace_span'] # noqa: E501 form_params = [] local_var_files = {} body_params = None - if 'label_mapping' in local_var_params: - body_params = local_var_params['label_mapping'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = [] # noqa: E501 @@ -768,14 +738,14 @@ def post_documents_templates_id_labels_with_http_info(self, template_id, label_m urlopen_kw = kwargs['urlopen_kw'] return self.api_client.call_api( - '/api/v2/documents/templates/{templateID}/labels', 'POST', + '/api/v2/stacks/{stack_id}/uninstall', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='LabelResponse', # noqa: E501 + response_type='Stack', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -784,48 +754,46 @@ def post_documents_templates_id_labels_with_http_info(self, template_id, label_m collection_formats=collection_formats, urlopen_kw=urlopen_kw) - def put_documents_templates_id(self, template_id, document_update, **kwargs): # noqa: E501,D401,D403 - """put_documents_templates_id. + def update_stack(self, stack_id, **kwargs): # noqa: E501,D401,D403 + """Update a stack. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.put_documents_templates_id(template_id, document_update, async_req=True) + >>> thread = api.update_stack(stack_id, async_req=True) >>> result = thread.get() :param async_req bool - :param str template_id: The template ID. (required) - :param DocumentUpdate document_update: Template that will be updated (required) - :param str zap_trace_span: OpenTracing span context - :return: Document + :param str stack_id: The identifier of the stack. (required) + :param PatchStackRequest patch_stack_request: + :return: Stack If the method is called asynchronously, returns the request thread. """ # noqa: E501 kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.put_documents_templates_id_with_http_info(template_id, document_update, **kwargs) # noqa: E501 + return self.update_stack_with_http_info(stack_id, **kwargs) # noqa: E501 else: - (data) = self.put_documents_templates_id_with_http_info(template_id, document_update, **kwargs) # noqa: E501 + (data) = self.update_stack_with_http_info(stack_id, **kwargs) # noqa: E501 return data - def put_documents_templates_id_with_http_info(self, template_id, document_update, **kwargs): # noqa: E501,D401,D403 - """put_documents_templates_id. + def update_stack_with_http_info(self, stack_id, **kwargs): # noqa: E501,D401,D403 + """Update a stack. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.put_documents_templates_id_with_http_info(template_id, document_update, async_req=True) + >>> thread = api.update_stack_with_http_info(stack_id, async_req=True) >>> result = thread.get() :param async_req bool - :param str template_id: The template ID. (required) - :param DocumentUpdate document_update: Template that will be updated (required) - :param str zap_trace_span: OpenTracing span context - :return: Document + :param str stack_id: The identifier of the stack. (required) + :param PatchStackRequest patch_stack_request: + :return: Stack If the method is called asynchronously, returns the request thread. """ # noqa: E501 local_var_params = locals() - all_params = ['template_id', 'document_update', 'zap_trace_span'] # noqa: E501 + all_params = ['stack_id', 'patch_stack_request'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -836,37 +804,31 @@ def put_documents_templates_id_with_http_info(self, template_id, document_update if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method put_documents_templates_id" % key + " to method update_stack" % key ) local_var_params[key] = val del local_var_params['kwargs'] - # verify the required parameter 'template_id' is set - if ('template_id' not in local_var_params or - local_var_params['template_id'] is None): - raise ValueError("Missing the required parameter `template_id` when calling `put_documents_templates_id`") # noqa: E501 - # verify the required parameter 'document_update' is set - if ('document_update' not in local_var_params or - local_var_params['document_update'] is None): - raise ValueError("Missing the required parameter `document_update` when calling `put_documents_templates_id`") # noqa: E501 + # verify the required parameter 'stack_id' is set + if ('stack_id' not in local_var_params or + local_var_params['stack_id'] is None): + raise ValueError("Missing the required parameter `stack_id` when calling `update_stack`") # noqa: E501 collection_formats = {} path_params = {} - if 'template_id' in local_var_params: - path_params['templateID'] = local_var_params['template_id'] # noqa: E501 + if 'stack_id' in local_var_params: + path_params['stack_id'] = local_var_params['stack_id'] # noqa: E501 query_params = [] header_params = {} - if 'zap_trace_span' in local_var_params: - header_params['Zap-Trace-Span'] = local_var_params['zap_trace_span'] # noqa: E501 form_params = [] local_var_files = {} body_params = None - if 'document_update' in local_var_params: - body_params = local_var_params['document_update'] + if 'patch_stack_request' in local_var_params: + body_params = local_var_params['patch_stack_request'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -884,14 +846,14 @@ def put_documents_templates_id_with_http_info(self, template_id, document_update urlopen_kw = kwargs['urlopen_kw'] return self.api_client.call_api( - '/api/v2/documents/templates/{templateID}', 'PUT', + '/api/v2/stacks/{stack_id}', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='Document', # noqa: E501 + response_type='Stack', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 diff --git a/influxdb_client/service/users_service.py b/influxdb_client/service/users_service.py index d80861c0..c894e17a 100644 --- a/influxdb_client/service/users_service.py +++ b/influxdb_client/service/users_service.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech @@ -233,7 +233,7 @@ def get_flags_with_http_info(self, **kwargs): # noqa: E501,D401,D403 urlopen_kw=urlopen_kw) def get_me(self, **kwargs): # noqa: E501,D401,D403 - """Return the current authenticated user. + """Retrieve the currently authenticated user. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -254,7 +254,7 @@ def get_me(self, **kwargs): # noqa: E501,D401,D403 return data def get_me_with_http_info(self, **kwargs): # noqa: E501,D401,D403 - """Return the current authenticated user. + """Retrieve the currently authenticated user. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -874,7 +874,7 @@ def post_users_id_password_with_http_info(self, user_id, password_reset_body, ** ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['BasicAuth'] # noqa: E501 + auth_settings = ['BasicAuthentication'] # noqa: E501 # urlopen optional setting urlopen_kw = None @@ -986,7 +986,7 @@ def put_me_password_with_http_info(self, password_reset_body, **kwargs): # noqa ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['BasicAuth'] # noqa: E501 + auth_settings = ['BasicAuthentication'] # noqa: E501 # urlopen optional setting urlopen_kw = None diff --git a/influxdb_client/service/variables_service.py b/influxdb_client/service/variables_service.py index 999e4c9b..25ddc260 100644 --- a/influxdb_client/service/variables_service.py +++ b/influxdb_client/service/variables_service.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech @@ -249,7 +249,7 @@ def delete_variables_id_labels_id_with_http_info(self, variable_id, label_id, ** urlopen_kw=urlopen_kw) def get_variables(self, **kwargs): # noqa: E501,D401,D403 - """Get all variables. + """List all variables. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -258,7 +258,7 @@ def get_variables(self, **kwargs): # noqa: E501,D401,D403 :param async_req bool :param str zap_trace_span: OpenTracing span context - :param str org: The organization name. + :param str org: The name of the organization. :param str org_id: The organization ID. :return: Variables If the method is called asynchronously, @@ -272,7 +272,7 @@ def get_variables(self, **kwargs): # noqa: E501,D401,D403 return data def get_variables_with_http_info(self, **kwargs): # noqa: E501,D401,D403 - """Get all variables. + """List all variables. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -281,7 +281,7 @@ def get_variables_with_http_info(self, **kwargs): # noqa: E501,D401,D403 :param async_req bool :param str zap_trace_span: OpenTracing span context - :param str org: The organization name. + :param str org: The name of the organization. :param str org_id: The organization ID. :return: Variables If the method is called asynchronously, @@ -353,7 +353,7 @@ def get_variables_with_http_info(self, **kwargs): # noqa: E501,D401,D403 urlopen_kw=urlopen_kw) def get_variables_id(self, variable_id, **kwargs): # noqa: E501,D401,D403 - """Get a variable. + """Retrieve a variable. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -375,7 +375,7 @@ def get_variables_id(self, variable_id, **kwargs): # noqa: E501,D401,D403 return data def get_variables_id_with_http_info(self, variable_id, **kwargs): # noqa: E501,D401,D403 - """Get a variable. + """Retrieve a variable. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True diff --git a/influxdb_client/service/views_service.py b/influxdb_client/service/views_service.py index 02f1c61b..bb39417c 100644 --- a/influxdb_client/service/views_service.py +++ b/influxdb_client/service/views_service.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech diff --git a/influxdb_client/service/write_service.py b/influxdb_client/service/write_service.py index 68baf36c..78d795ba 100644 --- a/influxdb_client/service/write_service.py +++ b/influxdb_client/service/write_service.py @@ -1,9 +1,9 @@ # coding: utf-8 """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech @@ -33,23 +33,24 @@ def __init__(self, api_client=None): # noqa: E501,D401,D403 self.api_client = api_client def post_write(self, org, bucket, body, **kwargs): # noqa: E501,D401,D403 - """Write time series data into InfluxDB. + """Write data. + Writes data to a bucket. To write data into InfluxDB, you need the following: - **organization name or ID** – _See [View organizations](https://docs.influxdata.com/influxdb/v2.1/organizations/view-orgs/#view-your-organization-id) for instructions on viewing your organization ID._ - **bucket** – _See [View buckets](https://docs.influxdata.com/influxdb/v2.1/organizations/buckets/view-buckets/) for instructions on viewing your bucket ID._ - **API token** – _See [View tokens](https://docs.influxdata.com/influxdb/v2.1/security/tokens/view-tokens/) for instructions on viewing your API token._ - **InfluxDB URL** – _See [InfluxDB URLs](https://docs.influxdata.com/influxdb/v2.1/reference/urls/)_. - data in [line protocol](https://docs.influxdata.com/influxdb/v2.1/reference/syntax/line-protocol) format. InfluxDB Cloud enforces rate and size limits different from InfluxDB OSS. For details, see Responses. For more information and examples, see the following: - [Write data with the InfluxDB API](https://docs.influxdata.com/influxdb/v2.1/write-data/developer-tools/api). - [Optimize writes to InfluxDB](https://docs.influxdata.com/influxdb/v2.1/write-data/best-practices/optimize-writes/). This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.post_write(org, bucket, body, async_req=True) >>> result = thread.get() :param async_req bool - :param str org: Specifies the destination organization for writes. Takes either the ID or Name interchangeably. If both `orgID` and `org` are specified, `org` takes precedence. (required) + :param str org: The parameter value specifies the destination organization for writes. The database writes all points in the batch to this organization. If you provide both `orgID` and `org` parameters, `org` takes precedence. (required) :param str bucket: The destination bucket for writes. (required) - :param str body: Line protocol body (required) + :param str body: Data in line protocol format. (required) :param str zap_trace_span: OpenTracing span context - :param str content_encoding: When present, its value indicates to the database that compression is applied to the line-protocol body. - :param str content_type: Content-Type is used to indicate the format of the data sent to the server. - :param int content_length: Content-Length is an entity header is indicating the size of the entity-body, in bytes, sent to the database. If the length is greater than the database max body configuration option, a 413 response is sent. - :param str accept: Specifies the return content format. - :param str org_id: Specifies the ID of the destination organization for writes. If both `orgID` and `org` are specified, `org` takes precedence. + :param str content_encoding: The value tells InfluxDB what compression is applied to the line protocol in the request payload. To make an API request with a GZIP payload, send `Content-Encoding: gzip` as a request header. + :param str content_type: The header value indicates the format of the data in the request body. + :param int content_length: The header value indicates the size of the entity-body, in bytes, sent to the database. If the length is greater than the database's `max body` configuration option, the server responds with status code `413`. + :param str accept: The header value specifies the response format. + :param str org_id: The parameter value specifies the ID of the destination organization for writes. If both `orgID` and `org` are specified, `org` takes precedence. :param WritePrecision precision: The precision for the unix timestamps within the body line-protocol. :return: None If the method is called asynchronously, @@ -63,23 +64,24 @@ def post_write(self, org, bucket, body, **kwargs): # noqa: E501,D401,D403 return data def post_write_with_http_info(self, org, bucket, body, **kwargs): # noqa: E501,D401,D403 - """Write time series data into InfluxDB. + """Write data. + Writes data to a bucket. To write data into InfluxDB, you need the following: - **organization name or ID** – _See [View organizations](https://docs.influxdata.com/influxdb/v2.1/organizations/view-orgs/#view-your-organization-id) for instructions on viewing your organization ID._ - **bucket** – _See [View buckets](https://docs.influxdata.com/influxdb/v2.1/organizations/buckets/view-buckets/) for instructions on viewing your bucket ID._ - **API token** – _See [View tokens](https://docs.influxdata.com/influxdb/v2.1/security/tokens/view-tokens/) for instructions on viewing your API token._ - **InfluxDB URL** – _See [InfluxDB URLs](https://docs.influxdata.com/influxdb/v2.1/reference/urls/)_. - data in [line protocol](https://docs.influxdata.com/influxdb/v2.1/reference/syntax/line-protocol) format. InfluxDB Cloud enforces rate and size limits different from InfluxDB OSS. For details, see Responses. For more information and examples, see the following: - [Write data with the InfluxDB API](https://docs.influxdata.com/influxdb/v2.1/write-data/developer-tools/api). - [Optimize writes to InfluxDB](https://docs.influxdata.com/influxdb/v2.1/write-data/best-practices/optimize-writes/). This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.post_write_with_http_info(org, bucket, body, async_req=True) >>> result = thread.get() :param async_req bool - :param str org: Specifies the destination organization for writes. Takes either the ID or Name interchangeably. If both `orgID` and `org` are specified, `org` takes precedence. (required) + :param str org: The parameter value specifies the destination organization for writes. The database writes all points in the batch to this organization. If you provide both `orgID` and `org` parameters, `org` takes precedence. (required) :param str bucket: The destination bucket for writes. (required) - :param str body: Line protocol body (required) + :param str body: Data in line protocol format. (required) :param str zap_trace_span: OpenTracing span context - :param str content_encoding: When present, its value indicates to the database that compression is applied to the line-protocol body. - :param str content_type: Content-Type is used to indicate the format of the data sent to the server. - :param int content_length: Content-Length is an entity header is indicating the size of the entity-body, in bytes, sent to the database. If the length is greater than the database max body configuration option, a 413 response is sent. - :param str accept: Specifies the return content format. - :param str org_id: Specifies the ID of the destination organization for writes. If both `orgID` and `org` are specified, `org` takes precedence. + :param str content_encoding: The value tells InfluxDB what compression is applied to the line protocol in the request payload. To make an API request with a GZIP payload, send `Content-Encoding: gzip` as a request header. + :param str content_type: The header value indicates the format of the data in the request body. + :param int content_length: The header value indicates the size of the entity-body, in bytes, sent to the database. If the length is greater than the database's `max body` configuration option, the server responds with status code `413`. + :param str accept: The header value specifies the response format. + :param str org_id: The parameter value specifies the ID of the destination organization for writes. If both `orgID` and `org` are specified, `org` takes precedence. :param WritePrecision precision: The precision for the unix timestamps within the body line-protocol. :return: None If the method is called asynchronously, @@ -149,7 +151,7 @@ def post_write_with_http_info(self, org, bucket, body, **kwargs): # noqa: E501, body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 + ['application/json', 'text/html', ]) # noqa: E501 # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 diff --git a/tests/__init__.py b/tests/__init__.py index 5858de7f..77c51a11 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -1,9 +1,9 @@ # flake8: noqa """ -Influx OSS API Service. +InfluxDB OSS API Service. -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 +The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech @@ -14,31 +14,42 @@ # import apis into api package from influxdb_client.service.authorizations_service import AuthorizationsService +from influxdb_client.service.backup_service import BackupService from influxdb_client.service.buckets_service import BucketsService from influxdb_client.service.cells_service import CellsService from influxdb_client.service.checks_service import ChecksService +from influxdb_client.service.config_service import ConfigService from influxdb_client.service.dbr_ps_service import DBRPsService from influxdb_client.service.dashboards_service import DashboardsService from influxdb_client.service.delete_service import DeleteService from influxdb_client.service.health_service import HealthService from influxdb_client.service.invocable_scripts_service import InvocableScriptsService from influxdb_client.service.labels_service import LabelsService +from influxdb_client.service.legacy_authorizations_service import LegacyAuthorizationsService +from influxdb_client.service.metrics_service import MetricsService from influxdb_client.service.notification_endpoints_service import NotificationEndpointsService from influxdb_client.service.notification_rules_service import NotificationRulesService from influxdb_client.service.organizations_service import OrganizationsService from influxdb_client.service.ping_service import PingService from influxdb_client.service.query_service import QueryService from influxdb_client.service.ready_service import ReadyService +from influxdb_client.service.remote_connections_service import RemoteConnectionsService +from influxdb_client.service.replications_service import ReplicationsService +from influxdb_client.service.resources_service import ResourcesService +from influxdb_client.service.restore_service import RestoreService +from influxdb_client.service.routes_service import RoutesService from influxdb_client.service.rules_service import RulesService from influxdb_client.service.scraper_targets_service import ScraperTargetsService from influxdb_client.service.secrets_service import SecretsService from influxdb_client.service.setup_service import SetupService +from influxdb_client.service.signin_service import SigninService +from influxdb_client.service.signout_service import SignoutService from influxdb_client.service.sources_service import SourcesService from influxdb_client.service.tasks_service import TasksService +from influxdb_client.service.telegraf_plugins_service import TelegrafPluginsService from influxdb_client.service.telegrafs_service import TelegrafsService from influxdb_client.service.templates_service import TemplatesService from influxdb_client.service.users_service import UsersService from influxdb_client.service.variables_service import VariablesService from influxdb_client.service.views_service import ViewsService from influxdb_client.service.write_service import WriteService -from influxdb_client.service.default_service import DefaultService From f03bf8bd899c6c6ab8874d13e01a21b58d187a67 Mon Sep 17 00:00:00 2001 From: Jakub Bednar Date: Wed, 26 Jan 2022 09:28:12 +0100 Subject: [PATCH 2/4] docs: update CHANGELOG.md --- CHANGELOG.md | 33 ++++++++++++++++++++++ influxdb_client/service/restore_service.py | 12 ++++---- influxdb_client/service/write_service.py | 4 +-- 3 files changed, 41 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 664e384c..a3ce4c7b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,38 @@ ## 1.26.0 [unreleased] +### Breaking Changes + +This release introduces a support for new version of InfluxDB OSS API definitions - [oss.yml](https://github.com/influxdata/openapi/blob/master/contracts/oss.yml). The following breaking changes are in underlying API services and doesn't affect common apis such as - `WriteApi`, `QueryApi`, `BucketsApi`, `OrganizationsApi`... +- 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](https://github.com/influxdata/community-templates). For more info see - [influxdb#19300](https://github.com/influxdata/influxdb/pull/19300), [openapi#192](https://github.com/influxdata/openapi/pull/192) +- `TelegrafsService` uses `TelegrafPluginRequest` to create `Telegraf` configuration +- `TelegrafsService` uses `TelegrafPluginRequest` to update `Telegraf` configuration + +### API +1. [#399](https://github.com/influxdata/influxdb-client-python/pull/399): Use the latest InfluxDB OSS API definitions to generated APIs + ## 1.25.0 [2022-01-20] ### Features diff --git a/influxdb_client/service/restore_service.py b/influxdb_client/service/restore_service.py index 008b963c..5196f3e6 100644 --- a/influxdb_client/service/restore_service.py +++ b/influxdb_client/service/restore_service.py @@ -271,7 +271,7 @@ def post_restore_kv(self, body, **kwargs): # noqa: E501,D401,D403 :param async_req bool :param file body: Full KV snapshot. (required) :param str zap_trace_span: OpenTracing span context - :param str content_encoding: The value tells InfluxDB what compression is applied to the line protocol in the request payload. To make an API request with a GZIP payload, send `Content-Encoding: gzip` as a request header. + :param str content_encoding: The value tells InfluxDB what compression is applied to the line protocol in the request payload. To make an API request with a GZIP payload, send `Content-Encoding: gzip` as a request header. :param str content_type: :return: PostRestoreKVResponse If the method is called asynchronously, @@ -295,7 +295,7 @@ def post_restore_kv_with_http_info(self, body, **kwargs): # noqa: E501,D401,D40 :param async_req bool :param file body: Full KV snapshot. (required) :param str zap_trace_span: OpenTracing span context - :param str content_encoding: The value tells InfluxDB what compression is applied to the line protocol in the request payload. To make an API request with a GZIP payload, send `Content-Encoding: gzip` as a request header. + :param str content_encoding: The value tells InfluxDB what compression is applied to the line protocol in the request payload. To make an API request with a GZIP payload, send `Content-Encoding: gzip` as a request header. :param str content_type: :return: PostRestoreKVResponse If the method is called asynchronously, @@ -388,7 +388,7 @@ def post_restore_shard_id(self, shard_id, body, **kwargs): # noqa: E501,D401,D4 :param str shard_id: The shard ID. (required) :param file body: TSM snapshot. (required) :param str zap_trace_span: OpenTracing span context - :param str content_encoding: The value tells InfluxDB what compression is applied to the line protocol in the request payload. To make an API request with a GZIP payload, send `Content-Encoding: gzip` as a request header. + :param str content_encoding: The value tells InfluxDB what compression is applied to the line protocol in the request payload. To make an API request with a GZIP payload, send `Content-Encoding: gzip` as a request header. :param str content_type: :return: None If the method is called asynchronously, @@ -413,7 +413,7 @@ def post_restore_shard_id_with_http_info(self, shard_id, body, **kwargs): # noq :param str shard_id: The shard ID. (required) :param file body: TSM snapshot. (required) :param str zap_trace_span: OpenTracing span context - :param str content_encoding: The value tells InfluxDB what compression is applied to the line protocol in the request payload. To make an API request with a GZIP payload, send `Content-Encoding: gzip` as a request header. + :param str content_encoding: The value tells InfluxDB what compression is applied to the line protocol in the request payload. To make an API request with a GZIP payload, send `Content-Encoding: gzip` as a request header. :param str content_type: :return: None If the method is called asynchronously, @@ -511,7 +511,7 @@ def post_restore_sql(self, body, **kwargs): # noqa: E501,D401,D403 :param async_req bool :param file body: Full SQL snapshot. (required) :param str zap_trace_span: OpenTracing span context - :param str content_encoding: The value tells InfluxDB what compression is applied to the line protocol in the request payload. To make an API request with a GZIP payload, send `Content-Encoding: gzip` as a request header. + :param str content_encoding: The value tells InfluxDB what compression is applied to the line protocol in the request payload. To make an API request with a GZIP payload, send `Content-Encoding: gzip` as a request header. :param str content_type: :return: None If the method is called asynchronously, @@ -535,7 +535,7 @@ def post_restore_sql_with_http_info(self, body, **kwargs): # noqa: E501,D401,D4 :param async_req bool :param file body: Full SQL snapshot. (required) :param str zap_trace_span: OpenTracing span context - :param str content_encoding: The value tells InfluxDB what compression is applied to the line protocol in the request payload. To make an API request with a GZIP payload, send `Content-Encoding: gzip` as a request header. + :param str content_encoding: The value tells InfluxDB what compression is applied to the line protocol in the request payload. To make an API request with a GZIP payload, send `Content-Encoding: gzip` as a request header. :param str content_type: :return: None If the method is called asynchronously, diff --git a/influxdb_client/service/write_service.py b/influxdb_client/service/write_service.py index 78d795ba..6639a112 100644 --- a/influxdb_client/service/write_service.py +++ b/influxdb_client/service/write_service.py @@ -46,7 +46,7 @@ def post_write(self, org, bucket, body, **kwargs): # noqa: E501,D401,D403 :param str bucket: The destination bucket for writes. (required) :param str body: Data in line protocol format. (required) :param str zap_trace_span: OpenTracing span context - :param str content_encoding: The value tells InfluxDB what compression is applied to the line protocol in the request payload. To make an API request with a GZIP payload, send `Content-Encoding: gzip` as a request header. + :param str content_encoding: The value tells InfluxDB what compression is applied to the line protocol in the request payload. To make an API request with a GZIP payload, send `Content-Encoding: gzip` as a request header. :param str content_type: The header value indicates the format of the data in the request body. :param int content_length: The header value indicates the size of the entity-body, in bytes, sent to the database. If the length is greater than the database's `max body` configuration option, the server responds with status code `413`. :param str accept: The header value specifies the response format. @@ -77,7 +77,7 @@ def post_write_with_http_info(self, org, bucket, body, **kwargs): # noqa: E501, :param str bucket: The destination bucket for writes. (required) :param str body: Data in line protocol format. (required) :param str zap_trace_span: OpenTracing span context - :param str content_encoding: The value tells InfluxDB what compression is applied to the line protocol in the request payload. To make an API request with a GZIP payload, send `Content-Encoding: gzip` as a request header. + :param str content_encoding: The value tells InfluxDB what compression is applied to the line protocol in the request payload. To make an API request with a GZIP payload, send `Content-Encoding: gzip` as a request header. :param str content_type: The header value indicates the format of the data in the request body. :param int content_length: The header value indicates the size of the entity-body, in bytes, sent to the database. If the length is greater than the database's `max body` configuration option, the server responds with status code `413`. :param str accept: The header value specifies the response format. From 046a48328648160ae5befe72ea8b0f7fb8bb550c Mon Sep 17 00:00:00 2001 From: Jakub Bednar Date: Thu, 27 Jan 2022 14:37:25 +0100 Subject: [PATCH 3/4] docs: add example How to use Templates and Stack API --- examples/README.md | 1 + examples/templates_management.py | 76 ++++++++++++++++++++++++++++++++ 2 files changed, 77 insertions(+) create mode 100644 examples/templates_management.py diff --git a/examples/README.md b/examples/README.md index ef52b0ff..5ea32ec5 100644 --- a/examples/README.md +++ b/examples/README.md @@ -21,6 +21,7 @@ - [buckets_management.py](buckets_management.py) - How to create, list and delete Buckets - [monitoring_and_alerting.py](monitoring_and_alerting.py) - How to create the Check with Slack notification. - [task_example.py](task_example.py) - How to create a Task by API +- [templates_management.py](templates_management.py) - How to use Templates and Stack API ## Others - [influx_cloud.py](influx_cloud.py) - How to connect to InfluxDB 2 Cloud diff --git a/examples/templates_management.py b/examples/templates_management.py new file mode 100644 index 00000000..2892ed23 --- /dev/null +++ b/examples/templates_management.py @@ -0,0 +1,76 @@ +""" +How to use Templates and Stack API. +""" +import datetime + +from influxdb_client import InfluxDBClient, TemplatesService, TemplateApply, TemplateApplyRemotes, PatchStackRequest, \ + TemplateApplyTemplate + +""" +Define credentials +""" +url = 'http://localhost:8086' +token = 'my-token' +bucket_name = 'my-bucket' +org_name = 'my-org' + +with InfluxDBClient(url=url, token=token, org=org_name, debug=True) as client: + uniqueId = str(datetime.datetime.now()) + """ + Find Organization ID by Organization API. + """ + org = client.organizations_api().find_organizations(org=org_name)[0] + + """ + Initialize Template service + """ + templates_service = TemplatesService(api_client=client.api_client) + + """ + Apply 'Linux System Monitoring Template' + """ + template_yaml_url = "https://raw.githubusercontent.com/influxdata/community-templates/master/linux_system/linux_system.yml" # noqa: E501 + template_linux = templates_service.apply_template( + template_apply=TemplateApply(dry_run=False, + org_id=org.id, + remotes=[TemplateApplyRemotes(url=template_yaml_url)])) + """ + Set Stack name + """ + templates_service.update_stack(stack_id=template_linux.stack_id, + patch_stack_request=PatchStackRequest(name="linux_system")) + + """ + Create template as a inline definition + """ + template_definition = { + "apiVersion": "influxdata.com/v2alpha1", + "kind": "Bucket", + "metadata": {"name": "template-bucket"}, + "spec": {"description": "bucket 1 description"} + } + template_inline = templates_service.apply_template( + template_apply=TemplateApply(dry_run=False, + org_id=org.id, + template=TemplateApplyTemplate(content_type="json", + contents=[template_definition]))) + """ + Set Stack name + """ + templates_service.update_stack(stack_id=template_inline.stack_id, + patch_stack_request=PatchStackRequest(name="inline_stack")) + + """ + List installed stacks + """ + print(f"\n------- List -------\n") + stacks = templates_service.list_stacks(org_id=org.id).stacks + print("\n".join([f" ---\n ID: {it.id}\n Stack: {it}" for it in stacks])) + print("---") + + """ + Delete previously created Script + """ + print(f"------- Delete -------\n") + templates_service.delete_stack(stack_id=template_linux.stack_id, org_id=org.id) + print(f" Successfully deleted script: '{template_linux.stack_id}'") From 7ca442a76e4dbc9727e4dfe2142fed6243e9d844 Mon Sep 17 00:00:00 2001 From: Jakub Bednar Date: Thu, 27 Jan 2022 14:44:33 +0100 Subject: [PATCH 4/4] docs: add example How to use Templates and Stack API --- examples/templates_management.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/templates_management.py b/examples/templates_management.py index 2892ed23..cf638b18 100644 --- a/examples/templates_management.py +++ b/examples/templates_management.py @@ -41,7 +41,7 @@ patch_stack_request=PatchStackRequest(name="linux_system")) """ - Create template as a inline definition + Create template as an inline definition """ template_definition = { "apiVersion": "influxdata.com/v2alpha1", @@ -69,8 +69,8 @@ print("---") """ - Delete previously created Script + Delete previously created Stack """ print(f"------- Delete -------\n") templates_service.delete_stack(stack_id=template_linux.stack_id, org_id=org.id) - print(f" Successfully deleted script: '{template_linux.stack_id}'") + print(f" Successfully deleted stack: '{template_linux.stack_id}'")