volcano-sdk 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE +203 -0
- data/README.md +758 -0
- data/lib/volcano/auth.rb +113 -0
- data/lib/volcano/auth_anonymous.rb +51 -0
- data/lib/volcano/auth_confirm_email.rb +19 -0
- data/lib/volcano/auth_email_change.rb +75 -0
- data/lib/volcano/auth_get_user.rb +110 -0
- data/lib/volcano/auth_hosted.rb +43 -0
- data/lib/volcano/auth_oauth.rb +102 -0
- data/lib/volcano/auth_oauth_api.rb +51 -0
- data/lib/volcano/auth_oauth_sign_in.rb +61 -0
- data/lib/volcano/auth_oauth_token.rb +51 -0
- data/lib/volcano/auth_refresh.rb +117 -0
- data/lib/volcano/auth_resend_confirmation.rb +19 -0
- data/lib/volcano/auth_reset_password.rb +23 -0
- data/lib/volcano/auth_reset_password_for_email.rb +19 -0
- data/lib/volcano/auth_sessions.rb +139 -0
- data/lib/volcano/auth_sign_up.rb +40 -0
- data/lib/volcano/auth_state.rb +148 -0
- data/lib/volcano/auth_update_user.rb +32 -0
- data/lib/volcano/client.rb +121 -0
- data/lib/volcano/connection_string.rb +85 -0
- data/lib/volcano/database.rb +243 -0
- data/lib/volcano/errors.rb +38 -0
- data/lib/volcano/function_resolution.rb +120 -0
- data/lib/volcano/function_response.rb +26 -0
- data/lib/volcano/functions.rb +136 -0
- data/lib/volcano/generated/lib/volcano-generated/api/anon_keys_api.rb +471 -0
- data/lib/volcano/generated/lib/volcano-generated/api/auth_admin_api.rb +739 -0
- data/lib/volcano/generated/lib/volcano-generated/api/auth_configuration_api.rb +1798 -0
- data/lib/volcano/generated/lib/volcano-generated/api/authentication_api.rb +1523 -0
- data/lib/volcano/generated/lib/volcano-generated/api/database_backups_api.rb +791 -0
- data/lib/volcano/generated/lib/volcano-generated/api/database_branches_api.rb +665 -0
- data/lib/volcano/generated/lib/volcano-generated/api/database_queries_api.rb +905 -0
- data/lib/volcano/generated/lib/volcano-generated/api/databases_api.rb +819 -0
- data/lib/volcano/generated/lib/volcano-generated/api/frontends_api.rb +913 -0
- data/lib/volcano/generated/lib/volcano-generated/api/functions_api.rb +1355 -0
- data/lib/volcano/generated/lib/volcano-generated/api/git_connections_api.rb +1012 -0
- data/lib/volcano/generated/lib/volcano-generated/api/locks_api.rb +480 -0
- data/lib/volcano/generated/lib/volcano-generated/api/logs_api.rb +250 -0
- data/lib/volcano/generated/lib/volcano-generated/api/o_auth_authentication_api.rb +962 -0
- data/lib/volcano/generated/lib/volcano-generated/api/o_auth_configuration_api.rb +452 -0
- data/lib/volcano/generated/lib/volcano-generated/api/project_imports_api.rb +599 -0
- data/lib/volcano/generated/lib/volcano-generated/api/projects_api.rb +1862 -0
- data/lib/volcano/generated/lib/volcano-generated/api/realtime_api.rb +222 -0
- data/lib/volcano/generated/lib/volcano-generated/api/service_keys_api.rb +402 -0
- data/lib/volcano/generated/lib/volcano-generated/api/storage_admin_api.rb +189 -0
- data/lib/volcano/generated/lib/volcano-generated/api/storage_buckets_api.rb +437 -0
- data/lib/volcano/generated/lib/volcano-generated/api/storage_objects_api.rb +857 -0
- data/lib/volcano/generated/lib/volcano-generated/api/storage_policies_api.rb +277 -0
- data/lib/volcano/generated/lib/volcano-generated/api/system_api.rb +79 -0
- data/lib/volcano/generated/lib/volcano-generated/api/variables_api.rb +454 -0
- data/lib/volcano/generated/lib/volcano-generated/api_client.rb +393 -0
- data/lib/volcano/generated/lib/volcano-generated/api_error.rb +58 -0
- data/lib/volcano/generated/lib/volcano-generated/api_model_base.rb +88 -0
- data/lib/volcano/generated/lib/volcano-generated/configuration.rb +337 -0
- data/lib/volcano/generated/lib/volcano-generated/models/anon_key.rb +257 -0
- data/lib/volcano/generated/lib/volcano-generated/models/auth_config.rb +728 -0
- data/lib/volcano/generated/lib/volcano-generated/models/auth_confirm_email200_response.rb +181 -0
- data/lib/volcano/generated/lib/volcano-generated/models/auth_confirm_email_change200_response.rb +156 -0
- data/lib/volcano/generated/lib/volcano-generated/models/auth_confirm_email_change_request.rb +164 -0
- data/lib/volcano/generated/lib/volcano-generated/models/auth_confirm_email_request.rb +165 -0
- data/lib/volcano/generated/lib/volcano-generated/models/auth_convert_anonymous200_response.rb +147 -0
- data/lib/volcano/generated/lib/volcano-generated/models/auth_device_authorize_request.rb +165 -0
- data/lib/volcano/generated/lib/volcano-generated/models/auth_device_token_request.rb +240 -0
- data/lib/volcano/generated/lib/volcano-generated/models/auth_device_verify200_response.rb +156 -0
- data/lib/volcano/generated/lib/volcano-generated/models/auth_device_verify_request.rb +209 -0
- data/lib/volcano/generated/lib/volcano-generated/models/auth_forgot_password200_response.rb +147 -0
- data/lib/volcano/generated/lib/volcano-generated/models/auth_forgot_password_request.rb +164 -0
- data/lib/volcano/generated/lib/volcano-generated/models/auth_get_my_sessions200_response.rb +231 -0
- data/lib/volcano/generated/lib/volcano-generated/models/auth_hosted_page.rb +225 -0
- data/lib/volcano/generated/lib/volcano-generated/models/auth_hosted_page_defaults.rb +193 -0
- data/lib/volcano/generated/lib/volcano-generated/models/auth_hosted_page_response.rb +203 -0
- data/lib/volcano/generated/lib/volcano-generated/models/auth_hosted_page_runtime.rb +220 -0
- data/lib/volcano/generated/lib/volcano-generated/models/auth_identities_response.rb +166 -0
- data/lib/volcano/generated/lib/volcano-generated/models/auth_identity.rb +273 -0
- data/lib/volcano/generated/lib/volcano-generated/models/auth_insights_interval.rb +41 -0
- data/lib/volcano/generated/lib/volcano-generated/models/auth_insights_response.rb +270 -0
- data/lib/volcano/generated/lib/volcano-generated/models/auth_insights_series_point.rb +263 -0
- data/lib/volcano/generated/lib/volcano-generated/models/auth_insights_summary.rb +210 -0
- data/lib/volcano/generated/lib/volcano-generated/models/auth_insights_window.rb +238 -0
- data/lib/volcano/generated/lib/volcano-generated/models/auth_link_o_auth_provider200_response.rb +147 -0
- data/lib/volcano/generated/lib/volcano-generated/models/auth_list_o_auth_providers200_response.rb +149 -0
- data/lib/volcano/generated/lib/volcano-generated/models/auth_list_o_auth_providers200_response_providers_inner.rb +165 -0
- data/lib/volcano/generated/lib/volcano-generated/models/auth_method_summary.rb +370 -0
- data/lib/volcano/generated/lib/volcano-generated/models/auth_methods_response.rb +166 -0
- data/lib/volcano/generated/lib/volcano-generated/models/auth_o_auth_exchange_request.rb +190 -0
- data/lib/volcano/generated/lib/volcano-generated/models/auth_page_appearance_defaults.rb +212 -0
- data/lib/volcano/generated/lib/volcano-generated/models/auth_page_appearance_options.rb +306 -0
- data/lib/volcano/generated/lib/volcano-generated/models/auth_page_appearance_response.rb +299 -0
- data/lib/volcano/generated/lib/volcano-generated/models/auth_page_density.rb +41 -0
- data/lib/volcano/generated/lib/volcano-generated/models/auth_page_font.rb +43 -0
- data/lib/volcano/generated/lib/volcano-generated/models/auth_page_layout.rb +41 -0
- data/lib/volcano/generated/lib/volcano-generated/models/auth_page_radius.rb +42 -0
- data/lib/volcano/generated/lib/volcano-generated/models/auth_page_scale.rb +41 -0
- data/lib/volcano/generated/lib/volcano-generated/models/auth_page_theme.rb +318 -0
- data/lib/volcano/generated/lib/volcano-generated/models/auth_page_theme_colors.rb +323 -0
- data/lib/volcano/generated/lib/volcano-generated/models/auth_password_policy.rb +409 -0
- data/lib/volcano/generated/lib/volcano-generated/models/auth_platform_exchange_request.rb +164 -0
- data/lib/volcano/generated/lib/volcano-generated/models/auth_refresh_request.rb +190 -0
- data/lib/volcano/generated/lib/volcano-generated/models/auth_request_email_change200_response.rb +156 -0
- data/lib/volcano/generated/lib/volcano-generated/models/auth_request_email_change_request.rb +164 -0
- data/lib/volcano/generated/lib/volcano-generated/models/auth_reset_password200_response.rb +147 -0
- data/lib/volcano/generated/lib/volcano-generated/models/auth_reset_password_request.rb +192 -0
- data/lib/volcano/generated/lib/volcano-generated/models/auth_session.rb +393 -0
- data/lib/volcano/generated/lib/volcano-generated/models/auth_signin_request.rb +233 -0
- data/lib/volcano/generated/lib/volcano-generated/models/auth_signup_anonymous_request.rb +150 -0
- data/lib/volcano/generated/lib/volcano-generated/models/auth_signup_request.rb +202 -0
- data/lib/volcano/generated/lib/volcano-generated/models/auth_signup_response.rb +193 -0
- data/lib/volcano/generated/lib/volcano-generated/models/auth_token_response.rb +254 -0
- data/lib/volcano/generated/lib/volcano-generated/models/auth_update_user_request.rb +160 -0
- data/lib/volcano/generated/lib/volcano-generated/models/auth_user.rb +330 -0
- data/lib/volcano/generated/lib/volcano-generated/models/ban_auth_user_request.rb +148 -0
- data/lib/volcano/generated/lib/volcano-generated/models/ban_user_response.rb +278 -0
- data/lib/volcano/generated/lib/volcano-generated/models/batch_function_deploy_failure.rb +242 -0
- data/lib/volcano/generated/lib/volcano-generated/models/batch_function_deploy_response.rb +205 -0
- data/lib/volcano/generated/lib/volcano-generated/models/call_o_auth_provider_api200_response.rb +272 -0
- data/lib/volcano/generated/lib/volcano-generated/models/call_o_auth_provider_api_request.rb +223 -0
- data/lib/volcano/generated/lib/volcano-generated/models/complete_upload_session_response.rb +148 -0
- data/lib/volcano/generated/lib/volcano-generated/models/configure_auth_methods_request.rb +167 -0
- data/lib/volcano/generated/lib/volcano-generated/models/configure_auth_methods_request_oauth_providers_inner.rb +156 -0
- data/lib/volcano/generated/lib/volcano-generated/models/connect_project_git_request.rb +250 -0
- data/lib/volcano/generated/lib/volcano-generated/models/create_anon_key_request.rb +228 -0
- data/lib/volcano/generated/lib/volcano-generated/models/create_database_backup_request.rb +185 -0
- data/lib/volcano/generated/lib/volcano-generated/models/create_database_branch_request.rb +223 -0
- data/lib/volcano/generated/lib/volcano-generated/models/create_database_request.rb +290 -0
- data/lib/volcano/generated/lib/volcano-generated/models/create_database_restore_request.rb +187 -0
- data/lib/volcano/generated/lib/volcano-generated/models/create_email_template_request.rb +270 -0
- data/lib/volcano/generated/lib/volcano-generated/models/create_frontend_custom_domain_request.rb +191 -0
- data/lib/volcano/generated/lib/volcano-generated/models/create_function_scheduler_request.rb +252 -0
- data/lib/volcano/generated/lib/volcano-generated/models/create_o_auth_config_request.rb +230 -0
- data/lib/volcano/generated/lib/volcano-generated/models/create_project_request.rb +219 -0
- data/lib/volcano/generated/lib/volcano-generated/models/create_service_key_request.rb +206 -0
- data/lib/volcano/generated/lib/volcano-generated/models/create_storage_bucket_request.rb +216 -0
- data/lib/volcano/generated/lib/volcano-generated/models/create_storage_policy_request.rb +243 -0
- data/lib/volcano/generated/lib/volcano-generated/models/create_upload_session_request.rb +276 -0
- data/lib/volcano/generated/lib/volcano-generated/models/create_upload_session_response.rb +179 -0
- data/lib/volcano/generated/lib/volcano-generated/models/create_variable_request.rb +219 -0
- data/lib/volcano/generated/lib/volcano-generated/models/database.rb +442 -0
- data/lib/volcano/generated/lib/volcano-generated/models/database_backup.rb +283 -0
- data/lib/volcano/generated/lib/volcano-generated/models/database_backup_list.rb +175 -0
- data/lib/volcano/generated/lib/volcano-generated/models/database_backup_schedule.rb +167 -0
- data/lib/volcano/generated/lib/volcano-generated/models/database_backup_schedule_entry.rb +301 -0
- data/lib/volcano/generated/lib/volcano-generated/models/database_branch.rb +480 -0
- data/lib/volcano/generated/lib/volcano-generated/models/database_branch_list.rb +166 -0
- data/lib/volcano/generated/lib/volcano-generated/models/database_branch_storage.rb +228 -0
- data/lib/volcano/generated/lib/volcano-generated/models/database_delete_request.rb +203 -0
- data/lib/volcano/generated/lib/volcano-generated/models/database_insert_request.rb +194 -0
- data/lib/volcano/generated/lib/volcano-generated/models/database_query_filter.rb +242 -0
- data/lib/volcano/generated/lib/volcano-generated/models/database_query_filter_value.rb +106 -0
- data/lib/volcano/generated/lib/volcano-generated/models/database_query_filter_value_one_of_inner.rb +105 -0
- data/lib/volcano/generated/lib/volcano-generated/models/database_query_order.rb +187 -0
- data/lib/volcano/generated/lib/volcano-generated/models/database_query_performance_database.rb +190 -0
- data/lib/volcano/generated/lib/volcano-generated/models/database_query_performance_item.rb +411 -0
- data/lib/volcano/generated/lib/volcano-generated/models/database_query_performance_response.rb +166 -0
- data/lib/volcano/generated/lib/volcano-generated/models/database_query_result.rb +161 -0
- data/lib/volcano/generated/lib/volcano-generated/models/database_restore.rb +388 -0
- data/lib/volcano/generated/lib/volcano-generated/models/database_restore_list.rb +166 -0
- data/lib/volcano/generated/lib/volcano-generated/models/database_restore_window.rb +159 -0
- data/lib/volcano/generated/lib/volcano-generated/models/database_select_request.rb +268 -0
- data/lib/volcano/generated/lib/volcano-generated/models/database_stats.rb +447 -0
- data/lib/volcano/generated/lib/volcano-generated/models/database_update_request.rb +232 -0
- data/lib/volcano/generated/lib/volcano-generated/models/delete_database202_response.rb +156 -0
- data/lib/volcano/generated/lib/volcano-generated/models/delete_database_backup200_response.rb +190 -0
- data/lib/volcano/generated/lib/volcano-generated/models/delete_database_branch202_response.rb +190 -0
- data/lib/volcano/generated/lib/volcano-generated/models/deployment_phase.rb +263 -0
- data/lib/volcano/generated/lib/volcano-generated/models/deployment_progress.rb +324 -0
- data/lib/volcano/generated/lib/volcano-generated/models/deployment_reference.rb +165 -0
- data/lib/volcano/generated/lib/volcano-generated/models/device_authorization_response.rb +296 -0
- data/lib/volcano/generated/lib/volcano-generated/models/email_template.rb +305 -0
- data/lib/volcano/generated/lib/volcano-generated/models/error.rb +174 -0
- data/lib/volcano/generated/lib/volcano-generated/models/export_project_source_request.rb +174 -0
- data/lib/volcano/generated/lib/volcano-generated/models/frontend.rb +504 -0
- data/lib/volcano/generated/lib/volcano-generated/models/frontend_custom_domain_response.rb +370 -0
- data/lib/volcano/generated/lib/volcano-generated/models/frontend_custom_domain_tls_config.rb +253 -0
- data/lib/volcano/generated/lib/volcano-generated/models/frontend_deployment.rb +487 -0
- data/lib/volcano/generated/lib/volcano-generated/models/frontend_domain_routing_record.rb +240 -0
- data/lib/volcano/generated/lib/volcano-generated/models/frontend_domain_verification_record.rb +216 -0
- data/lib/volcano/generated/lib/volcano-generated/models/frontend_usage_daily_entry.rb +247 -0
- data/lib/volcano/generated/lib/volcano-generated/models/frontend_usage_data.rb +204 -0
- data/lib/volcano/generated/lib/volcano-generated/models/frontend_usage_history_response.rb +298 -0
- data/lib/volcano/generated/lib/volcano-generated/models/function.rb +565 -0
- data/lib/volcano/generated/lib/volcano-generated/models/function_deployment.rb +477 -0
- data/lib/volcano/generated/lib/volcano-generated/models/function_http_auth_mode.rb +40 -0
- data/lib/volcano/generated/lib/volcano-generated/models/function_invocation_mode.rb +40 -0
- data/lib/volcano/generated/lib/volcano-generated/models/function_invocation_request.rb +150 -0
- data/lib/volcano/generated/lib/volcano-generated/models/function_region.rb +219 -0
- data/lib/volcano/generated/lib/volcano-generated/models/function_runtime_deployment.rb +250 -0
- data/lib/volcano/generated/lib/volcano-generated/models/function_runtime_option.rb +245 -0
- data/lib/volcano/generated/lib/volcano-generated/models/function_runtimes_response.rb +166 -0
- data/lib/volcano/generated/lib/volcano-generated/models/function_scheduler.rb +330 -0
- data/lib/volcano/generated/lib/volcano-generated/models/function_scheduler_list_response.rb +290 -0
- data/lib/volcano/generated/lib/volcano-generated/models/get_auth_methods200_response.rb +178 -0
- data/lib/volcano/generated/lib/volcano-generated/models/get_auth_methods200_response_email_password.rb +165 -0
- data/lib/volcano/generated/lib/volcano-generated/models/get_auth_methods200_response_oauth_providers_inner.rb +194 -0
- data/lib/volcano/generated/lib/volcano-generated/models/git_connect_start_response.rb +164 -0
- data/lib/volcano/generated/lib/volcano-generated/models/git_connection.rb +346 -0
- data/lib/volcano/generated/lib/volcano-generated/models/git_connections_response.rb +166 -0
- data/lib/volcano/generated/lib/volcano-generated/models/git_installation.rb +242 -0
- data/lib/volcano/generated/lib/volcano-generated/models/git_installations_response.rb +166 -0
- data/lib/volcano/generated/lib/volcano-generated/models/git_repositories_response.rb +166 -0
- data/lib/volcano/generated/lib/volcano-generated/models/git_repository.rb +270 -0
- data/lib/volcano/generated/lib/volcano-generated/models/hosted_auth_page_type.rb +44 -0
- data/lib/volcano/generated/lib/volcano-generated/models/hosted_login_email_check_request.rb +164 -0
- data/lib/volcano/generated/lib/volcano-generated/models/hosted_login_email_check_response.rb +147 -0
- data/lib/volcano/generated/lib/volcano-generated/models/hosted_login_options_response.rb +185 -0
- data/lib/volcano/generated/lib/volcano-generated/models/hosted_renderable_page_type.rb +43 -0
- data/lib/volcano/generated/lib/volcano-generated/models/import_connect_start_response.rb +164 -0
- data/lib/volcano/generated/lib/volcano-generated/models/import_connection.rb +432 -0
- data/lib/volcano/generated/lib/volcano-generated/models/import_connections_response.rb +166 -0
- data/lib/volcano/generated/lib/volcano-generated/models/import_provider.rb +39 -0
- data/lib/volcano/generated/lib/volcano-generated/models/import_source.rb +242 -0
- data/lib/volcano/generated/lib/volcano-generated/models/import_sources_response.rb +166 -0
- data/lib/volcano/generated/lib/volcano-generated/models/list_anon_keys200_response.rb +189 -0
- data/lib/volcano/generated/lib/volcano-generated/models/list_available_o_auth_providers200_response.rb +149 -0
- data/lib/volcano/generated/lib/volcano-generated/models/list_available_o_auth_providers200_response_providers_inner.rb +167 -0
- data/lib/volcano/generated/lib/volcano-generated/models/list_database_regions200_response_inner.rb +158 -0
- data/lib/volcano/generated/lib/volcano-generated/models/list_email_templates200_response.rb +149 -0
- data/lib/volcano/generated/lib/volcano-generated/models/list_o_auth_configs200_response.rb +149 -0
- data/lib/volcano/generated/lib/volcano-generated/models/list_postgres_versions200_response_inner.rb +178 -0
- data/lib/volcano/generated/lib/volcano-generated/models/list_storage_buckets200_response.rb +104 -0
- data/lib/volcano/generated/lib/volcano-generated/models/list_storage_objects_admin200_response.rb +205 -0
- data/lib/volcano/generated/lib/volcano-generated/models/live_log_level.rb +44 -0
- data/lib/volcano/generated/lib/volcano-generated/models/log_activity_bucket.rb +246 -0
- data/lib/volcano/generated/lib/volcano-generated/models/log_activity_bucket_counts.rb +226 -0
- data/lib/volcano/generated/lib/volcano-generated/models/log_activity_request.rb +252 -0
- data/lib/volcano/generated/lib/volcano-generated/models/log_activity_response.rb +194 -0
- data/lib/volcano/generated/lib/volcano-generated/models/log_database_request_resource.rb +221 -0
- data/lib/volcano/generated/lib/volcano-generated/models/log_deployment.rb +210 -0
- data/lib/volcano/generated/lib/volcano-generated/models/log_deployment_request_selector.rb +170 -0
- data/lib/volcano/generated/lib/volcano-generated/models/log_event.rb +257 -0
- data/lib/volcano/generated/lib/volcano-generated/models/log_event_body.rb +108 -0
- data/lib/volcano/generated/lib/volcano-generated/models/log_frontend_request_resource.rb +230 -0
- data/lib/volcano/generated/lib/volcano-generated/models/log_function_request_resource.rb +230 -0
- data/lib/volcano/generated/lib/volcano-generated/models/log_request_resource.rb +58 -0
- data/lib/volcano/generated/lib/volcano-generated/models/log_resource.rb +227 -0
- data/lib/volcano/generated/lib/volcano-generated/models/log_search_event.rb +297 -0
- data/lib/volcano/generated/lib/volcano-generated/models/log_search_request.rb +264 -0
- data/lib/volcano/generated/lib/volcano-generated/models/log_search_response.rb +232 -0
- data/lib/volcano/generated/lib/volcano-generated/models/log_stream_request.rb +244 -0
- data/lib/volcano/generated/lib/volcano-generated/models/metric_usage_data.rb +278 -0
- data/lib/volcano/generated/lib/volcano-generated/models/o_auth_config.rb +256 -0
- data/lib/volcano/generated/lib/volcano-generated/models/o_auth_error_response.rb +173 -0
- data/lib/volcano/generated/lib/volcano-generated/models/paginated_auth_users.rb +284 -0
- data/lib/volcano/generated/lib/volcano-generated/models/paginated_databases.rb +304 -0
- data/lib/volcano/generated/lib/volcano-generated/models/paginated_frontend_deployments.rb +284 -0
- data/lib/volcano/generated/lib/volcano-generated/models/paginated_frontends.rb +304 -0
- data/lib/volcano/generated/lib/volcano-generated/models/paginated_function_deployments.rb +284 -0
- data/lib/volcano/generated/lib/volcano-generated/models/paginated_functions.rb +304 -0
- data/lib/volcano/generated/lib/volcano-generated/models/paginated_project_custom_domains.rb +284 -0
- data/lib/volcano/generated/lib/volcano-generated/models/paginated_project_deployments.rb +306 -0
- data/lib/volcano/generated/lib/volcano-generated/models/paginated_projects.rb +368 -0
- data/lib/volcano/generated/lib/volcano-generated/models/paginated_service_keys.rb +304 -0
- data/lib/volcano/generated/lib/volcano-generated/models/paginated_storage_buckets.rb +251 -0
- data/lib/volcano/generated/lib/volcano-generated/models/paginated_variables.rb +304 -0
- data/lib/volcano/generated/lib/volcano-generated/models/platform_exchange_response.rb +242 -0
- data/lib/volcano/generated/lib/volcano-generated/models/preview_auth_page_request.rb +221 -0
- data/lib/volcano/generated/lib/volcano-generated/models/preview_auth_page_response.rb +190 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project.rb +419 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_config.rb +273 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_config_apply_result.rb +261 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_config_apply_result_entry.rb +245 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_config_apply_summary.rb +320 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_config_auth.rb +238 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_config_auth_cors.rb +176 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_config_auth_email.rb +175 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_config_auth_email_from.rb +156 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_config_auth_email_password_provider.rb +147 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_config_auth_email_smtp.rb +184 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_config_auth_email_verification.rb +158 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_config_auth_managed_pages.rb +175 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_config_auth_page_appearance.rb +156 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_config_auth_page_layouts.rb +214 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_config_auth_password.rb +211 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_config_auth_password_reset.rb +167 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_config_auth_providers.rb +159 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_config_auth_rate_limits.rb +175 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_config_auth_redirects.rb +180 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_config_auth_sessions.rb +158 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_config_auth_signup.rb +232 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_config_auth_tokens.rb +175 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_config_bucket.rb +226 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_config_bucket_policy.rb +250 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_config_custom_domain.rb +175 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_config_database.rb +274 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_config_email_template.rb +205 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_config_email_templates.rb +175 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_config_frontend.rb +183 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_config_function.rb +248 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_config_hosted_page.rb +203 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_config_hosted_pages.rb +193 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_config_missing_resource.rb +214 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_config_o_auth_provider.rb +238 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_config_project.rb +209 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_config_realtime.rb +174 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_config_scheduler.rb +229 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_config_skipped_resource.rb +240 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_config_validation_error.rb +201 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_config_validation_error_response.rb +193 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_config_variable.rb +199 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_deployment.rb +412 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_deployment_resource.rb +241 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_deployment_summary.rb +312 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_frontend_custom_domain.rb +403 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_frontend_custom_domain_all_of_frontend.rb +191 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_git_connection.rb +296 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_git_connection_summary.rb +294 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_git_deploy_settings.rb +239 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_health_category.rb +40 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_health_check.rb +316 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_health_data_status.rb +42 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_health_evidence.rb +251 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_health_resource.rb +240 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_health_response.rb +356 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_health_scope.rb +164 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_health_status.rb +42 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_health_summary.rb +186 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_import_action.rb +238 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_import_action_code.rb +42 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_import_destination.rb +238 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_import_destination_mode.rb +39 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_import_disposition.rb +42 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_import_finding.rb +327 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_import_impact.rb +41 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_import_preflight_request.rb +305 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_import_readiness.rb +41 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_import_report.rb +476 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_import_resource.rb +270 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_import_resource_kind.rb +43 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_import_run.rb +412 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_import_run_status.rb +43 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_import_start_request.rb +365 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_import_summary.rb +348 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_import_target.rb +39 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_lock_lease.rb +192 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_lock_lease_request.rb +183 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_lock_state.rb +185 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_metrics_data_status.rb +41 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_metrics_dimensions.rb +190 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_metrics_group_by.rb +40 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_metrics_metric.rb +42 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_metrics_query.rb +250 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_metrics_query_request.rb +210 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_metrics_query_response.rb +227 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_metrics_query_time_range.rb +188 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_metrics_result.rb +292 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_metrics_unit.rb +41 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_metrics_value.rb +199 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_metrics_window.rb +190 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_source_export.rb +302 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_source_export_omission.rb +218 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_source_export_skip.rb +217 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_source_export_state.rb +228 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_usage_response.rb +234 -0
- data/lib/volcano/generated/lib/volcano-generated/models/realtime_config.rb +217 -0
- data/lib/volcano/generated/lib/volcano-generated/models/realtime_plan_limits.rb +189 -0
- data/lib/volcano/generated/lib/volcano-generated/models/realtime_stats.rb +178 -0
- data/lib/volcano/generated/lib/volcano-generated/models/refresh_o_auth_provider_token200_response.rb +165 -0
- data/lib/volcano/generated/lib/volcano-generated/models/reset_database_password200_response.rb +177 -0
- data/lib/volcano/generated/lib/volcano-generated/models/resolve_function_response.rb +248 -0
- data/lib/volcano/generated/lib/volcano-generated/models/resource_reference.rb +241 -0
- data/lib/volcano/generated/lib/volcano-generated/models/schedule_request.rb +210 -0
- data/lib/volcano/generated/lib/volcano-generated/models/service_key.rb +294 -0
- data/lib/volcano/generated/lib/volcano-generated/models/set_project_git_production_branch_request.rb +183 -0
- data/lib/volcano/generated/lib/volcano-generated/models/storage_bucket.rb +282 -0
- data/lib/volcano/generated/lib/volcano-generated/models/storage_copy_request.rb +192 -0
- data/lib/volcano/generated/lib/volcano-generated/models/storage_list_response.rb +159 -0
- data/lib/volcano/generated/lib/volcano-generated/models/storage_move_request.rb +192 -0
- data/lib/volcano/generated/lib/volcano-generated/models/storage_object.rb +359 -0
- data/lib/volcano/generated/lib/volcano-generated/models/storage_object_with_bucket.rb +383 -0
- data/lib/volcano/generated/lib/volcano-generated/models/storage_policy.rb +313 -0
- data/lib/volcano/generated/lib/volcano-generated/models/storage_stats.rb +220 -0
- data/lib/volcano/generated/lib/volcano-generated/models/storage_visibility_request.rb +165 -0
- data/lib/volcano/generated/lib/volcano-generated/models/test_email_request.rb +234 -0
- data/lib/volcano/generated/lib/volcano-generated/models/test_email_response.rb +164 -0
- data/lib/volcano/generated/lib/volcano-generated/models/unban_user_response.rb +267 -0
- data/lib/volcano/generated/lib/volcano-generated/models/update_auth_config_request.rb +626 -0
- data/lib/volcano/generated/lib/volcano-generated/models/update_auth_hosted_page_request.rb +175 -0
- data/lib/volcano/generated/lib/volcano-generated/models/update_auth_page_layout_request.rb +186 -0
- data/lib/volcano/generated/lib/volcano-generated/models/update_auth_page_theme_request.rb +164 -0
- data/lib/volcano/generated/lib/volcano-generated/models/update_database_branch_request.rb +184 -0
- data/lib/volcano/generated/lib/volcano-generated/models/update_database_type_request.rb +190 -0
- data/lib/volcano/generated/lib/volcano-generated/models/update_email_template_request.rb +165 -0
- data/lib/volcano/generated/lib/volcano-generated/models/update_function_request.rb +201 -0
- data/lib/volcano/generated/lib/volcano-generated/models/update_function_scheduler_request.rb +225 -0
- data/lib/volcano/generated/lib/volcano-generated/models/update_o_auth_config_request.rb +187 -0
- data/lib/volcano/generated/lib/volcano-generated/models/update_project_git_deploy_settings_request.rb +211 -0
- data/lib/volcano/generated/lib/volcano-generated/models/update_project_request.rb +198 -0
- data/lib/volcano/generated/lib/volcano-generated/models/update_realtime_config_request.rb +179 -0
- data/lib/volcano/generated/lib/volcano-generated/models/update_storage_bucket_request.rb +158 -0
- data/lib/volcano/generated/lib/volcano-generated/models/update_variable_request.rb +164 -0
- data/lib/volcano/generated/lib/volcano-generated/models/upload_session_part.rb +169 -0
- data/lib/volcano/generated/lib/volcano-generated/models/upload_session_status_response.rb +295 -0
- data/lib/volcano/generated/lib/volcano-generated/models/upload_storage_object201_response.rb +104 -0
- data/lib/volcano/generated/lib/volcano-generated/models/usage_data_point.rb +193 -0
- data/lib/volcano/generated/lib/volcano-generated/models/variable.rb +389 -0
- data/lib/volcano/generated/lib/volcano-generated/version.rb +15 -0
- data/lib/volcano/generated/lib/volcano-generated.rb +405 -0
- data/lib/volcano/generated_transport.rb +131 -0
- data/lib/volcano/generated_transport_anonymous.rb +34 -0
- data/lib/volcano/generated_transport_auth.rb +108 -0
- data/lib/volcano/generated_transport_confirmation.rb +30 -0
- data/lib/volcano/generated_transport_database.rb +54 -0
- data/lib/volcano/generated_transport_email_change.rb +44 -0
- data/lib/volcano/generated_transport_functions.rb +108 -0
- data/lib/volcano/generated_transport_logs.rb +31 -0
- data/lib/volcano/generated_transport_oauth.rb +64 -0
- data/lib/volcano/generated_transport_sessions.rb +27 -0
- data/lib/volcano/generated_transport_storage.rb +86 -0
- data/lib/volcano/generated_transport_support.rb +221 -0
- data/lib/volcano/generated_transport_upload_session_api.rb +69 -0
- data/lib/volcano/generated_transport_upload_sessions.rb +67 -0
- data/lib/volcano/lock_auto_renewal.rb +51 -0
- data/lib/volcano/lock_guard.rb +135 -0
- data/lib/volcano/lock_lease_clock.rb +39 -0
- data/lib/volcano/lock_renewer.rb +73 -0
- data/lib/volcano/lock_session.rb +70 -0
- data/lib/volcano/locks.rb +109 -0
- data/lib/volcano/log_responses.rb +39 -0
- data/lib/volcano/logs.rb +82 -0
- data/lib/volcano/models.rb +115 -0
- data/lib/volcano/realtime/blocking_call.rb +32 -0
- data/lib/volcano/realtime/broadcast_delivery.rb +63 -0
- data/lib/volcano/realtime/channel_callbacks.rb +127 -0
- data/lib/volcano/realtime/channel_lifecycle.rb +133 -0
- data/lib/volcano/realtime/connection.rb +114 -0
- data/lib/volcano/realtime/connection_callbacks.rb +126 -0
- data/lib/volcano/realtime/lifecycle.rb +46 -0
- data/lib/volcano/realtime/postgres_batch.rb +89 -0
- data/lib/volcano/realtime/postgres_changes.rb +107 -0
- data/lib/volcano/realtime/postgres_database.rb +63 -0
- data/lib/volcano/realtime/postgres_delivery.rb +113 -0
- data/lib/volcano/realtime/postgres_expansion.rb +66 -0
- data/lib/volcano/realtime/presence.rb +122 -0
- data/lib/volcano/realtime/presence_state.rb +61 -0
- data/lib/volcano/realtime/protocol.rb +150 -0
- data/lib/volcano/realtime/protocol_dispatch.rb +114 -0
- data/lib/volcano/realtime/protocol_io.rb +96 -0
- data/lib/volcano/realtime/protocol_lifecycle.rb +122 -0
- data/lib/volcano/realtime/protocol_publication_dispatch.rb +121 -0
- data/lib/volcano/realtime/protocol_recovery.rb +117 -0
- data/lib/volcano/realtime/protocol_recovery_dispatch.rb +106 -0
- data/lib/volcano/realtime/protocol_recovery_position.rb +95 -0
- data/lib/volcano/realtime/reconnect.rb +88 -0
- data/lib/volcano/realtime.rb +260 -0
- data/lib/volcano/redaction.rb +60 -0
- data/lib/volcano/sign_up_result.rb +9 -0
- data/lib/volcano/storage.rb +120 -0
- data/lib/volcano/storage_models.rb +121 -0
- data/lib/volcano/storage_mutations.rb +81 -0
- data/lib/volcano/storage_public_url.rb +64 -0
- data/lib/volcano/storage_resumable_upload.rb +90 -0
- data/lib/volcano/storage_upload_sessions.rb +116 -0
- data/lib/volcano/transport.rb +60 -0
- data/lib/volcano/version.rb +5 -0
- data/lib/volcano.rb +58 -0
- metadata +580 -0
|
@@ -0,0 +1,1012 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Volcano Hosting API
|
|
3
|
+
|
|
4
|
+
#Public API for Volcano Hosting clients, SDKs, and CLI tooling (Port 8000). This specification intentionally excludes first-party/internal APIs. See api/openapi-internal.yaml for non-public internal and Builder operations.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 3.0.0
|
|
7
|
+
Contact: support@volcano.dev
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.17.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module Volcano::Generated
|
|
16
|
+
class GitConnectionsApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Cancel an incomplete source export
|
|
23
|
+
# Restores platform source writes while the project is in `git_exporting` or `git_pending`. If Volcano reserved or deployed the root commit, export remains consumed and cannot be run again. The connected repository and any commit already pushed to it are unchanged.
|
|
24
|
+
# @param id [String] Project ID
|
|
25
|
+
# @param [Hash] opts the optional parameters
|
|
26
|
+
# @return [nil]
|
|
27
|
+
def cancel_project_source_export(id, opts = {})
|
|
28
|
+
cancel_project_source_export_with_http_info(id, opts)
|
|
29
|
+
nil
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Cancel an incomplete source export
|
|
33
|
+
# Restores platform source writes while the project is in `git_exporting` or `git_pending`. If Volcano reserved or deployed the root commit, export remains consumed and cannot be run again. The connected repository and any commit already pushed to it are unchanged.
|
|
34
|
+
# @param id [String] Project ID
|
|
35
|
+
# @param [Hash] opts the optional parameters
|
|
36
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
37
|
+
def cancel_project_source_export_with_http_info(id, opts = {})
|
|
38
|
+
if @api_client.config.debugging
|
|
39
|
+
@api_client.config.logger.debug 'Calling API: GitConnectionsApi.cancel_project_source_export ...'
|
|
40
|
+
end
|
|
41
|
+
# verify the required parameter 'id' is set
|
|
42
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
43
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling GitConnectionsApi.cancel_project_source_export"
|
|
44
|
+
end
|
|
45
|
+
# resource path
|
|
46
|
+
local_var_path = '/projects/{id}/source-export'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
47
|
+
|
|
48
|
+
# query parameters
|
|
49
|
+
query_params = opts[:query_params] || {}
|
|
50
|
+
|
|
51
|
+
# header parameters
|
|
52
|
+
header_params = opts[:header_params] || {}
|
|
53
|
+
# HTTP header 'Accept' (if needed)
|
|
54
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
55
|
+
|
|
56
|
+
# form parameters
|
|
57
|
+
form_params = opts[:form_params] || {}
|
|
58
|
+
|
|
59
|
+
# http body (model)
|
|
60
|
+
post_body = opts[:debug_body]
|
|
61
|
+
|
|
62
|
+
# return_type
|
|
63
|
+
return_type = opts[:debug_return_type]
|
|
64
|
+
|
|
65
|
+
# auth_names
|
|
66
|
+
auth_names = opts[:debug_auth_names] || ['UserToken']
|
|
67
|
+
|
|
68
|
+
new_options = opts.merge(
|
|
69
|
+
:operation => :"GitConnectionsApi.cancel_project_source_export",
|
|
70
|
+
:header_params => header_params,
|
|
71
|
+
:query_params => query_params,
|
|
72
|
+
:form_params => form_params,
|
|
73
|
+
:body => post_body,
|
|
74
|
+
:auth_names => auth_names,
|
|
75
|
+
:return_type => return_type
|
|
76
|
+
)
|
|
77
|
+
|
|
78
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
79
|
+
if @api_client.config.debugging
|
|
80
|
+
@api_client.config.logger.debug "API called: GitConnectionsApi#cancel_project_source_export\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
81
|
+
end
|
|
82
|
+
return data, status_code, headers
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
# Connect or update a project's repo connection
|
|
86
|
+
# Full replace, following Vercel's model: many projects may point at the same repo, so this only binds the project — it never creates or deletes git-provider state. Used for both the initial connect and later edits (repo change, root directory, production branch). Resolves the repository_id or repo_full_name selector against the repos accessible through installation_id via connection_id's stored GitHub user token, then persists repository metadata only from that validated GitHub response.
|
|
87
|
+
# @param id [String] Project ID
|
|
88
|
+
# @param connect_project_git_request [ConnectProjectGitRequest]
|
|
89
|
+
# @param [Hash] opts the optional parameters
|
|
90
|
+
# @return [ProjectGitConnection]
|
|
91
|
+
def connect_project_git(id, connect_project_git_request, opts = {})
|
|
92
|
+
data, _status_code, _headers = connect_project_git_with_http_info(id, connect_project_git_request, opts)
|
|
93
|
+
data
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# Connect or update a project's repo connection
|
|
97
|
+
# Full replace, following Vercel's model: many projects may point at the same repo, so this only binds the project — it never creates or deletes git-provider state. Used for both the initial connect and later edits (repo change, root directory, production branch). Resolves the repository_id or repo_full_name selector against the repos accessible through installation_id via connection_id's stored GitHub user token, then persists repository metadata only from that validated GitHub response.
|
|
98
|
+
# @param id [String] Project ID
|
|
99
|
+
# @param connect_project_git_request [ConnectProjectGitRequest]
|
|
100
|
+
# @param [Hash] opts the optional parameters
|
|
101
|
+
# @return [Array<(ProjectGitConnection, Integer, Hash)>] ProjectGitConnection data, response status code and response headers
|
|
102
|
+
def connect_project_git_with_http_info(id, connect_project_git_request, opts = {})
|
|
103
|
+
if @api_client.config.debugging
|
|
104
|
+
@api_client.config.logger.debug 'Calling API: GitConnectionsApi.connect_project_git ...'
|
|
105
|
+
end
|
|
106
|
+
# verify the required parameter 'id' is set
|
|
107
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
108
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling GitConnectionsApi.connect_project_git"
|
|
109
|
+
end
|
|
110
|
+
# verify the required parameter 'connect_project_git_request' is set
|
|
111
|
+
if @api_client.config.client_side_validation && connect_project_git_request.nil?
|
|
112
|
+
fail ArgumentError, "Missing the required parameter 'connect_project_git_request' when calling GitConnectionsApi.connect_project_git"
|
|
113
|
+
end
|
|
114
|
+
# resource path
|
|
115
|
+
local_var_path = '/projects/{id}/git-connection'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
116
|
+
|
|
117
|
+
# query parameters
|
|
118
|
+
query_params = opts[:query_params] || {}
|
|
119
|
+
|
|
120
|
+
# header parameters
|
|
121
|
+
header_params = opts[:header_params] || {}
|
|
122
|
+
# HTTP header 'Accept' (if needed)
|
|
123
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
124
|
+
# HTTP header 'Content-Type'
|
|
125
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
126
|
+
if !content_type.nil?
|
|
127
|
+
header_params['Content-Type'] = content_type
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
# form parameters
|
|
131
|
+
form_params = opts[:form_params] || {}
|
|
132
|
+
|
|
133
|
+
# http body (model)
|
|
134
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(connect_project_git_request)
|
|
135
|
+
|
|
136
|
+
# return_type
|
|
137
|
+
return_type = opts[:debug_return_type] || 'ProjectGitConnection'
|
|
138
|
+
|
|
139
|
+
# auth_names
|
|
140
|
+
auth_names = opts[:debug_auth_names] || ['UserToken']
|
|
141
|
+
|
|
142
|
+
new_options = opts.merge(
|
|
143
|
+
:operation => :"GitConnectionsApi.connect_project_git",
|
|
144
|
+
:header_params => header_params,
|
|
145
|
+
:query_params => query_params,
|
|
146
|
+
:form_params => form_params,
|
|
147
|
+
:body => post_body,
|
|
148
|
+
:auth_names => auth_names,
|
|
149
|
+
:return_type => return_type
|
|
150
|
+
)
|
|
151
|
+
|
|
152
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
153
|
+
if @api_client.config.debugging
|
|
154
|
+
@api_client.config.logger.debug "API called: GitConnectionsApi#connect_project_git\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
155
|
+
end
|
|
156
|
+
return data, status_code, headers
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
# Delete a git provider connection
|
|
160
|
+
# @param connection_id [String] Connection ID to delete
|
|
161
|
+
# @param [Hash] opts the optional parameters
|
|
162
|
+
# @return [nil]
|
|
163
|
+
def delete_git_connection(connection_id, opts = {})
|
|
164
|
+
delete_git_connection_with_http_info(connection_id, opts)
|
|
165
|
+
nil
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
# Delete a git provider connection
|
|
169
|
+
# @param connection_id [String] Connection ID to delete
|
|
170
|
+
# @param [Hash] opts the optional parameters
|
|
171
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
172
|
+
def delete_git_connection_with_http_info(connection_id, opts = {})
|
|
173
|
+
if @api_client.config.debugging
|
|
174
|
+
@api_client.config.logger.debug 'Calling API: GitConnectionsApi.delete_git_connection ...'
|
|
175
|
+
end
|
|
176
|
+
# verify the required parameter 'connection_id' is set
|
|
177
|
+
if @api_client.config.client_side_validation && connection_id.nil?
|
|
178
|
+
fail ArgumentError, "Missing the required parameter 'connection_id' when calling GitConnectionsApi.delete_git_connection"
|
|
179
|
+
end
|
|
180
|
+
# resource path
|
|
181
|
+
local_var_path = '/user/git/connections/{connectionId}'.sub('{' + 'connectionId' + '}', CGI.escape(connection_id.to_s))
|
|
182
|
+
|
|
183
|
+
# query parameters
|
|
184
|
+
query_params = opts[:query_params] || {}
|
|
185
|
+
|
|
186
|
+
# header parameters
|
|
187
|
+
header_params = opts[:header_params] || {}
|
|
188
|
+
# HTTP header 'Accept' (if needed)
|
|
189
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
190
|
+
|
|
191
|
+
# form parameters
|
|
192
|
+
form_params = opts[:form_params] || {}
|
|
193
|
+
|
|
194
|
+
# http body (model)
|
|
195
|
+
post_body = opts[:debug_body]
|
|
196
|
+
|
|
197
|
+
# return_type
|
|
198
|
+
return_type = opts[:debug_return_type]
|
|
199
|
+
|
|
200
|
+
# auth_names
|
|
201
|
+
auth_names = opts[:debug_auth_names] || ['AuthUserAccessToken', 'UserToken']
|
|
202
|
+
|
|
203
|
+
new_options = opts.merge(
|
|
204
|
+
:operation => :"GitConnectionsApi.delete_git_connection",
|
|
205
|
+
:header_params => header_params,
|
|
206
|
+
:query_params => query_params,
|
|
207
|
+
:form_params => form_params,
|
|
208
|
+
:body => post_body,
|
|
209
|
+
:auth_names => auth_names,
|
|
210
|
+
:return_type => return_type
|
|
211
|
+
)
|
|
212
|
+
|
|
213
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
214
|
+
if @api_client.config.debugging
|
|
215
|
+
@api_client.config.logger.debug "API called: GitConnectionsApi#delete_git_connection\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
216
|
+
end
|
|
217
|
+
return data, status_code, headers
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
# Disconnect a project's repo connection
|
|
221
|
+
# @param id [String] Project ID
|
|
222
|
+
# @param [Hash] opts the optional parameters
|
|
223
|
+
# @return [nil]
|
|
224
|
+
def disconnect_project_git(id, opts = {})
|
|
225
|
+
disconnect_project_git_with_http_info(id, opts)
|
|
226
|
+
nil
|
|
227
|
+
end
|
|
228
|
+
|
|
229
|
+
# Disconnect a project's repo connection
|
|
230
|
+
# @param id [String] Project ID
|
|
231
|
+
# @param [Hash] opts the optional parameters
|
|
232
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
233
|
+
def disconnect_project_git_with_http_info(id, opts = {})
|
|
234
|
+
if @api_client.config.debugging
|
|
235
|
+
@api_client.config.logger.debug 'Calling API: GitConnectionsApi.disconnect_project_git ...'
|
|
236
|
+
end
|
|
237
|
+
# verify the required parameter 'id' is set
|
|
238
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
239
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling GitConnectionsApi.disconnect_project_git"
|
|
240
|
+
end
|
|
241
|
+
# resource path
|
|
242
|
+
local_var_path = '/projects/{id}/git-connection'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
243
|
+
|
|
244
|
+
# query parameters
|
|
245
|
+
query_params = opts[:query_params] || {}
|
|
246
|
+
|
|
247
|
+
# header parameters
|
|
248
|
+
header_params = opts[:header_params] || {}
|
|
249
|
+
# HTTP header 'Accept' (if needed)
|
|
250
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
251
|
+
|
|
252
|
+
# form parameters
|
|
253
|
+
form_params = opts[:form_params] || {}
|
|
254
|
+
|
|
255
|
+
# http body (model)
|
|
256
|
+
post_body = opts[:debug_body]
|
|
257
|
+
|
|
258
|
+
# return_type
|
|
259
|
+
return_type = opts[:debug_return_type]
|
|
260
|
+
|
|
261
|
+
# auth_names
|
|
262
|
+
auth_names = opts[:debug_auth_names] || ['UserToken']
|
|
263
|
+
|
|
264
|
+
new_options = opts.merge(
|
|
265
|
+
:operation => :"GitConnectionsApi.disconnect_project_git",
|
|
266
|
+
:header_params => header_params,
|
|
267
|
+
:query_params => query_params,
|
|
268
|
+
:form_params => form_params,
|
|
269
|
+
:body => post_body,
|
|
270
|
+
:auth_names => auth_names,
|
|
271
|
+
:return_type => return_type
|
|
272
|
+
)
|
|
273
|
+
|
|
274
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
275
|
+
if @api_client.config.debugging
|
|
276
|
+
@api_client.config.logger.debug "API called: GitConnectionsApi#disconnect_project_git\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
277
|
+
end
|
|
278
|
+
return data, status_code, headers
|
|
279
|
+
end
|
|
280
|
+
|
|
281
|
+
# Initialize an empty repository with a project's stored source
|
|
282
|
+
# Creates the first commit in the connected repository and pushes it directly to the configured production branch. The push enters the ordinary Git auto-deploy flow. Direct source writes remain frozen until that deployment succeeds and the repository becomes the source of truth. The caller confirms the production branch shown before export. Starting export pins that branch: later GitHub default-branch changes do not repoint the project. If the configured branch changed after the caller read it, the request fails without exporting so the caller can show and confirm the new value. The response lists what the export could not carry: resources with no successful deployment to take source from (`skipped`), and things no export can hand back (`omitted`) — migrations, which Volcano stores no copy of, and credential-shaped files, which are left for their owner to add. Requires a connected repository with no commits or branches, and runs once. Volcano never creates the repository. If GitHub did not confirm the push, retrying creates the same commit and adopts it when it already reached the repository.
|
|
283
|
+
# @param id [String] Project ID
|
|
284
|
+
# @param export_project_source_request [ExportProjectSourceRequest]
|
|
285
|
+
# @param [Hash] opts the optional parameters
|
|
286
|
+
# @return [ProjectSourceExport]
|
|
287
|
+
def export_project_source(id, export_project_source_request, opts = {})
|
|
288
|
+
data, _status_code, _headers = export_project_source_with_http_info(id, export_project_source_request, opts)
|
|
289
|
+
data
|
|
290
|
+
end
|
|
291
|
+
|
|
292
|
+
# Initialize an empty repository with a project's stored source
|
|
293
|
+
# Creates the first commit in the connected repository and pushes it directly to the configured production branch. The push enters the ordinary Git auto-deploy flow. Direct source writes remain frozen until that deployment succeeds and the repository becomes the source of truth. The caller confirms the production branch shown before export. Starting export pins that branch: later GitHub default-branch changes do not repoint the project. If the configured branch changed after the caller read it, the request fails without exporting so the caller can show and confirm the new value. The response lists what the export could not carry: resources with no successful deployment to take source from (`skipped`), and things no export can hand back (`omitted`) — migrations, which Volcano stores no copy of, and credential-shaped files, which are left for their owner to add. Requires a connected repository with no commits or branches, and runs once. Volcano never creates the repository. If GitHub did not confirm the push, retrying creates the same commit and adopts it when it already reached the repository.
|
|
294
|
+
# @param id [String] Project ID
|
|
295
|
+
# @param export_project_source_request [ExportProjectSourceRequest]
|
|
296
|
+
# @param [Hash] opts the optional parameters
|
|
297
|
+
# @return [Array<(ProjectSourceExport, Integer, Hash)>] ProjectSourceExport data, response status code and response headers
|
|
298
|
+
def export_project_source_with_http_info(id, export_project_source_request, opts = {})
|
|
299
|
+
if @api_client.config.debugging
|
|
300
|
+
@api_client.config.logger.debug 'Calling API: GitConnectionsApi.export_project_source ...'
|
|
301
|
+
end
|
|
302
|
+
# verify the required parameter 'id' is set
|
|
303
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
304
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling GitConnectionsApi.export_project_source"
|
|
305
|
+
end
|
|
306
|
+
# verify the required parameter 'export_project_source_request' is set
|
|
307
|
+
if @api_client.config.client_side_validation && export_project_source_request.nil?
|
|
308
|
+
fail ArgumentError, "Missing the required parameter 'export_project_source_request' when calling GitConnectionsApi.export_project_source"
|
|
309
|
+
end
|
|
310
|
+
# resource path
|
|
311
|
+
local_var_path = '/projects/{id}/source-export'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
312
|
+
|
|
313
|
+
# query parameters
|
|
314
|
+
query_params = opts[:query_params] || {}
|
|
315
|
+
|
|
316
|
+
# header parameters
|
|
317
|
+
header_params = opts[:header_params] || {}
|
|
318
|
+
# HTTP header 'Accept' (if needed)
|
|
319
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
320
|
+
# HTTP header 'Content-Type'
|
|
321
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
322
|
+
if !content_type.nil?
|
|
323
|
+
header_params['Content-Type'] = content_type
|
|
324
|
+
end
|
|
325
|
+
|
|
326
|
+
# form parameters
|
|
327
|
+
form_params = opts[:form_params] || {}
|
|
328
|
+
|
|
329
|
+
# http body (model)
|
|
330
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(export_project_source_request)
|
|
331
|
+
|
|
332
|
+
# return_type
|
|
333
|
+
return_type = opts[:debug_return_type] || 'ProjectSourceExport'
|
|
334
|
+
|
|
335
|
+
# auth_names
|
|
336
|
+
auth_names = opts[:debug_auth_names] || ['UserToken']
|
|
337
|
+
|
|
338
|
+
new_options = opts.merge(
|
|
339
|
+
:operation => :"GitConnectionsApi.export_project_source",
|
|
340
|
+
:header_params => header_params,
|
|
341
|
+
:query_params => query_params,
|
|
342
|
+
:form_params => form_params,
|
|
343
|
+
:body => post_body,
|
|
344
|
+
:auth_names => auth_names,
|
|
345
|
+
:return_type => return_type
|
|
346
|
+
)
|
|
347
|
+
|
|
348
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
349
|
+
if @api_client.config.debugging
|
|
350
|
+
@api_client.config.logger.debug "API called: GitConnectionsApi#export_project_source\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
351
|
+
end
|
|
352
|
+
return data, status_code, headers
|
|
353
|
+
end
|
|
354
|
+
|
|
355
|
+
# Get a project's repo connection
|
|
356
|
+
# @param id [String] Project ID
|
|
357
|
+
# @param [Hash] opts the optional parameters
|
|
358
|
+
# @return [ProjectGitConnection]
|
|
359
|
+
def get_project_git_connection(id, opts = {})
|
|
360
|
+
data, _status_code, _headers = get_project_git_connection_with_http_info(id, opts)
|
|
361
|
+
data
|
|
362
|
+
end
|
|
363
|
+
|
|
364
|
+
# Get a project's repo connection
|
|
365
|
+
# @param id [String] Project ID
|
|
366
|
+
# @param [Hash] opts the optional parameters
|
|
367
|
+
# @return [Array<(ProjectGitConnection, Integer, Hash)>] ProjectGitConnection data, response status code and response headers
|
|
368
|
+
def get_project_git_connection_with_http_info(id, opts = {})
|
|
369
|
+
if @api_client.config.debugging
|
|
370
|
+
@api_client.config.logger.debug 'Calling API: GitConnectionsApi.get_project_git_connection ...'
|
|
371
|
+
end
|
|
372
|
+
# verify the required parameter 'id' is set
|
|
373
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
374
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling GitConnectionsApi.get_project_git_connection"
|
|
375
|
+
end
|
|
376
|
+
# resource path
|
|
377
|
+
local_var_path = '/projects/{id}/git-connection'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
378
|
+
|
|
379
|
+
# query parameters
|
|
380
|
+
query_params = opts[:query_params] || {}
|
|
381
|
+
|
|
382
|
+
# header parameters
|
|
383
|
+
header_params = opts[:header_params] || {}
|
|
384
|
+
# HTTP header 'Accept' (if needed)
|
|
385
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
386
|
+
|
|
387
|
+
# form parameters
|
|
388
|
+
form_params = opts[:form_params] || {}
|
|
389
|
+
|
|
390
|
+
# http body (model)
|
|
391
|
+
post_body = opts[:debug_body]
|
|
392
|
+
|
|
393
|
+
# return_type
|
|
394
|
+
return_type = opts[:debug_return_type] || 'ProjectGitConnection'
|
|
395
|
+
|
|
396
|
+
# auth_names
|
|
397
|
+
auth_names = opts[:debug_auth_names] || ['UserToken']
|
|
398
|
+
|
|
399
|
+
new_options = opts.merge(
|
|
400
|
+
:operation => :"GitConnectionsApi.get_project_git_connection",
|
|
401
|
+
:header_params => header_params,
|
|
402
|
+
:query_params => query_params,
|
|
403
|
+
:form_params => form_params,
|
|
404
|
+
:body => post_body,
|
|
405
|
+
:auth_names => auth_names,
|
|
406
|
+
:return_type => return_type
|
|
407
|
+
)
|
|
408
|
+
|
|
409
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
410
|
+
if @api_client.config.debugging
|
|
411
|
+
@api_client.config.logger.debug "API called: GitConnectionsApi#get_project_git_connection\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
412
|
+
end
|
|
413
|
+
return data, status_code, headers
|
|
414
|
+
end
|
|
415
|
+
|
|
416
|
+
# Get a project's Git auto-deploy settings
|
|
417
|
+
# @param id [String] Project ID
|
|
418
|
+
# @param [Hash] opts the optional parameters
|
|
419
|
+
# @return [ProjectGitDeploySettings]
|
|
420
|
+
def get_project_git_deploy_settings(id, opts = {})
|
|
421
|
+
data, _status_code, _headers = get_project_git_deploy_settings_with_http_info(id, opts)
|
|
422
|
+
data
|
|
423
|
+
end
|
|
424
|
+
|
|
425
|
+
# Get a project's Git auto-deploy settings
|
|
426
|
+
# @param id [String] Project ID
|
|
427
|
+
# @param [Hash] opts the optional parameters
|
|
428
|
+
# @return [Array<(ProjectGitDeploySettings, Integer, Hash)>] ProjectGitDeploySettings data, response status code and response headers
|
|
429
|
+
def get_project_git_deploy_settings_with_http_info(id, opts = {})
|
|
430
|
+
if @api_client.config.debugging
|
|
431
|
+
@api_client.config.logger.debug 'Calling API: GitConnectionsApi.get_project_git_deploy_settings ...'
|
|
432
|
+
end
|
|
433
|
+
# verify the required parameter 'id' is set
|
|
434
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
435
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling GitConnectionsApi.get_project_git_deploy_settings"
|
|
436
|
+
end
|
|
437
|
+
# resource path
|
|
438
|
+
local_var_path = '/projects/{id}/git-deploy-settings'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
439
|
+
|
|
440
|
+
# query parameters
|
|
441
|
+
query_params = opts[:query_params] || {}
|
|
442
|
+
|
|
443
|
+
# header parameters
|
|
444
|
+
header_params = opts[:header_params] || {}
|
|
445
|
+
# HTTP header 'Accept' (if needed)
|
|
446
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
447
|
+
|
|
448
|
+
# form parameters
|
|
449
|
+
form_params = opts[:form_params] || {}
|
|
450
|
+
|
|
451
|
+
# http body (model)
|
|
452
|
+
post_body = opts[:debug_body]
|
|
453
|
+
|
|
454
|
+
# return_type
|
|
455
|
+
return_type = opts[:debug_return_type] || 'ProjectGitDeploySettings'
|
|
456
|
+
|
|
457
|
+
# auth_names
|
|
458
|
+
auth_names = opts[:debug_auth_names] || ['UserToken']
|
|
459
|
+
|
|
460
|
+
new_options = opts.merge(
|
|
461
|
+
:operation => :"GitConnectionsApi.get_project_git_deploy_settings",
|
|
462
|
+
:header_params => header_params,
|
|
463
|
+
:query_params => query_params,
|
|
464
|
+
:form_params => form_params,
|
|
465
|
+
:body => post_body,
|
|
466
|
+
:auth_names => auth_names,
|
|
467
|
+
:return_type => return_type
|
|
468
|
+
)
|
|
469
|
+
|
|
470
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
471
|
+
if @api_client.config.debugging
|
|
472
|
+
@api_client.config.logger.debug "API called: GitConnectionsApi#get_project_git_deploy_settings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
473
|
+
end
|
|
474
|
+
return data, status_code, headers
|
|
475
|
+
end
|
|
476
|
+
|
|
477
|
+
# Report the project's source-of-truth state
|
|
478
|
+
# Volcano stores the source of the functions and frontend it runs for a project. This reports whether that source has been written to the connected repository, and whether the repository has taken over as the project's source of truth. `mode` is `platform`, `git_exporting`, `git_pending`, or `git`. Export enters `git_exporting` before reading stored source. GitHub's signed push event confirms that the initial commit reached the production branch. That push or a newer production push changes the mode to `git_pending` when it starts a deployment. `exported_at` records that transition. A successful Git run completes the transition when it matches the recorded repository, production branch, and root directory and actually dispatches every recorded resource. Ordinary production-branch pushes deploy without changing a platform-managed project's source ownership.
|
|
479
|
+
# @param id [String] Project ID
|
|
480
|
+
# @param [Hash] opts the optional parameters
|
|
481
|
+
# @return [ProjectSourceExportState]
|
|
482
|
+
def get_project_source_export(id, opts = {})
|
|
483
|
+
data, _status_code, _headers = get_project_source_export_with_http_info(id, opts)
|
|
484
|
+
data
|
|
485
|
+
end
|
|
486
|
+
|
|
487
|
+
# Report the project's source-of-truth state
|
|
488
|
+
# Volcano stores the source of the functions and frontend it runs for a project. This reports whether that source has been written to the connected repository, and whether the repository has taken over as the project's source of truth. `mode` is `platform`, `git_exporting`, `git_pending`, or `git`. Export enters `git_exporting` before reading stored source. GitHub's signed push event confirms that the initial commit reached the production branch. That push or a newer production push changes the mode to `git_pending` when it starts a deployment. `exported_at` records that transition. A successful Git run completes the transition when it matches the recorded repository, production branch, and root directory and actually dispatches every recorded resource. Ordinary production-branch pushes deploy without changing a platform-managed project's source ownership.
|
|
489
|
+
# @param id [String] Project ID
|
|
490
|
+
# @param [Hash] opts the optional parameters
|
|
491
|
+
# @return [Array<(ProjectSourceExportState, Integer, Hash)>] ProjectSourceExportState data, response status code and response headers
|
|
492
|
+
def get_project_source_export_with_http_info(id, opts = {})
|
|
493
|
+
if @api_client.config.debugging
|
|
494
|
+
@api_client.config.logger.debug 'Calling API: GitConnectionsApi.get_project_source_export ...'
|
|
495
|
+
end
|
|
496
|
+
# verify the required parameter 'id' is set
|
|
497
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
498
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling GitConnectionsApi.get_project_source_export"
|
|
499
|
+
end
|
|
500
|
+
# resource path
|
|
501
|
+
local_var_path = '/projects/{id}/source-export'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
502
|
+
|
|
503
|
+
# query parameters
|
|
504
|
+
query_params = opts[:query_params] || {}
|
|
505
|
+
|
|
506
|
+
# header parameters
|
|
507
|
+
header_params = opts[:header_params] || {}
|
|
508
|
+
# HTTP header 'Accept' (if needed)
|
|
509
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
510
|
+
|
|
511
|
+
# form parameters
|
|
512
|
+
form_params = opts[:form_params] || {}
|
|
513
|
+
|
|
514
|
+
# http body (model)
|
|
515
|
+
post_body = opts[:debug_body]
|
|
516
|
+
|
|
517
|
+
# return_type
|
|
518
|
+
return_type = opts[:debug_return_type] || 'ProjectSourceExportState'
|
|
519
|
+
|
|
520
|
+
# auth_names
|
|
521
|
+
auth_names = opts[:debug_auth_names] || ['UserToken']
|
|
522
|
+
|
|
523
|
+
new_options = opts.merge(
|
|
524
|
+
:operation => :"GitConnectionsApi.get_project_source_export",
|
|
525
|
+
:header_params => header_params,
|
|
526
|
+
:query_params => query_params,
|
|
527
|
+
:form_params => form_params,
|
|
528
|
+
:body => post_body,
|
|
529
|
+
:auth_names => auth_names,
|
|
530
|
+
:return_type => return_type
|
|
531
|
+
)
|
|
532
|
+
|
|
533
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
534
|
+
if @api_client.config.debugging
|
|
535
|
+
@api_client.config.logger.debug "API called: GitConnectionsApi#get_project_source_export\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
536
|
+
end
|
|
537
|
+
return data, status_code, headers
|
|
538
|
+
end
|
|
539
|
+
|
|
540
|
+
# Complete a GitHub App connection callback
|
|
541
|
+
# Public GitHub App callback. The signed state and callback binding cookie bind the provider authorization to the browser that started the flow.
|
|
542
|
+
# @param state [String] Signed connect state generated by startGitConnect.
|
|
543
|
+
# @param [Hash] opts the optional parameters
|
|
544
|
+
# @option opts [String] :code GitHub user authorization code.
|
|
545
|
+
# @option opts [String] :error Provider error returned by GitHub.
|
|
546
|
+
# @return [nil]
|
|
547
|
+
def git_connect_callback(state, opts = {})
|
|
548
|
+
git_connect_callback_with_http_info(state, opts)
|
|
549
|
+
nil
|
|
550
|
+
end
|
|
551
|
+
|
|
552
|
+
# Complete a GitHub App connection callback
|
|
553
|
+
# Public GitHub App callback. The signed state and callback binding cookie bind the provider authorization to the browser that started the flow.
|
|
554
|
+
# @param state [String] Signed connect state generated by startGitConnect.
|
|
555
|
+
# @param [Hash] opts the optional parameters
|
|
556
|
+
# @option opts [String] :code GitHub user authorization code.
|
|
557
|
+
# @option opts [String] :error Provider error returned by GitHub.
|
|
558
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
559
|
+
def git_connect_callback_with_http_info(state, opts = {})
|
|
560
|
+
if @api_client.config.debugging
|
|
561
|
+
@api_client.config.logger.debug 'Calling API: GitConnectionsApi.git_connect_callback ...'
|
|
562
|
+
end
|
|
563
|
+
# verify the required parameter 'state' is set
|
|
564
|
+
if @api_client.config.client_side_validation && state.nil?
|
|
565
|
+
fail ArgumentError, "Missing the required parameter 'state' when calling GitConnectionsApi.git_connect_callback"
|
|
566
|
+
end
|
|
567
|
+
# resource path
|
|
568
|
+
local_var_path = '/github/callback'
|
|
569
|
+
|
|
570
|
+
# query parameters
|
|
571
|
+
query_params = opts[:query_params] || {}
|
|
572
|
+
query_params[:'state'] = state
|
|
573
|
+
query_params[:'code'] = opts[:'code'] if !opts[:'code'].nil?
|
|
574
|
+
query_params[:'error'] = opts[:'error'] if !opts[:'error'].nil?
|
|
575
|
+
|
|
576
|
+
# header parameters
|
|
577
|
+
header_params = opts[:header_params] || {}
|
|
578
|
+
# HTTP header 'Accept' (if needed)
|
|
579
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
580
|
+
|
|
581
|
+
# form parameters
|
|
582
|
+
form_params = opts[:form_params] || {}
|
|
583
|
+
|
|
584
|
+
# http body (model)
|
|
585
|
+
post_body = opts[:debug_body]
|
|
586
|
+
|
|
587
|
+
# return_type
|
|
588
|
+
return_type = opts[:debug_return_type]
|
|
589
|
+
|
|
590
|
+
# auth_names
|
|
591
|
+
auth_names = opts[:debug_auth_names] || []
|
|
592
|
+
|
|
593
|
+
new_options = opts.merge(
|
|
594
|
+
:operation => :"GitConnectionsApi.git_connect_callback",
|
|
595
|
+
:header_params => header_params,
|
|
596
|
+
:query_params => query_params,
|
|
597
|
+
:form_params => form_params,
|
|
598
|
+
:body => post_body,
|
|
599
|
+
:auth_names => auth_names,
|
|
600
|
+
:return_type => return_type
|
|
601
|
+
)
|
|
602
|
+
|
|
603
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
604
|
+
if @api_client.config.debugging
|
|
605
|
+
@api_client.config.logger.debug "API called: GitConnectionsApi#git_connect_callback\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
606
|
+
end
|
|
607
|
+
return data, status_code, headers
|
|
608
|
+
end
|
|
609
|
+
|
|
610
|
+
# List git provider connections
|
|
611
|
+
# @param [Hash] opts the optional parameters
|
|
612
|
+
# @return [GitConnectionsResponse]
|
|
613
|
+
def list_git_connections(opts = {})
|
|
614
|
+
data, _status_code, _headers = list_git_connections_with_http_info(opts)
|
|
615
|
+
data
|
|
616
|
+
end
|
|
617
|
+
|
|
618
|
+
# List git provider connections
|
|
619
|
+
# @param [Hash] opts the optional parameters
|
|
620
|
+
# @return [Array<(GitConnectionsResponse, Integer, Hash)>] GitConnectionsResponse data, response status code and response headers
|
|
621
|
+
def list_git_connections_with_http_info(opts = {})
|
|
622
|
+
if @api_client.config.debugging
|
|
623
|
+
@api_client.config.logger.debug 'Calling API: GitConnectionsApi.list_git_connections ...'
|
|
624
|
+
end
|
|
625
|
+
# resource path
|
|
626
|
+
local_var_path = '/user/git/connections'
|
|
627
|
+
|
|
628
|
+
# query parameters
|
|
629
|
+
query_params = opts[:query_params] || {}
|
|
630
|
+
|
|
631
|
+
# header parameters
|
|
632
|
+
header_params = opts[:header_params] || {}
|
|
633
|
+
# HTTP header 'Accept' (if needed)
|
|
634
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
635
|
+
|
|
636
|
+
# form parameters
|
|
637
|
+
form_params = opts[:form_params] || {}
|
|
638
|
+
|
|
639
|
+
# http body (model)
|
|
640
|
+
post_body = opts[:debug_body]
|
|
641
|
+
|
|
642
|
+
# return_type
|
|
643
|
+
return_type = opts[:debug_return_type] || 'GitConnectionsResponse'
|
|
644
|
+
|
|
645
|
+
# auth_names
|
|
646
|
+
auth_names = opts[:debug_auth_names] || ['AuthUserAccessToken', 'UserToken']
|
|
647
|
+
|
|
648
|
+
new_options = opts.merge(
|
|
649
|
+
:operation => :"GitConnectionsApi.list_git_connections",
|
|
650
|
+
:header_params => header_params,
|
|
651
|
+
:query_params => query_params,
|
|
652
|
+
:form_params => form_params,
|
|
653
|
+
:body => post_body,
|
|
654
|
+
:auth_names => auth_names,
|
|
655
|
+
:return_type => return_type
|
|
656
|
+
)
|
|
657
|
+
|
|
658
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
659
|
+
if @api_client.config.debugging
|
|
660
|
+
@api_client.config.logger.debug "API called: GitConnectionsApi#list_git_connections\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
661
|
+
end
|
|
662
|
+
return data, status_code, headers
|
|
663
|
+
end
|
|
664
|
+
|
|
665
|
+
# List repos accessible to a connection through an installation
|
|
666
|
+
# Live proxy to GitHub: lists the repos the connection's stored user token can access through installationId. Nothing is persisted by this call.
|
|
667
|
+
# @param connection_id [String] Connection ID to browse repositories for.
|
|
668
|
+
# @param installation_id [Integer] GitHub App installation ID.
|
|
669
|
+
# @param [Hash] opts the optional parameters
|
|
670
|
+
# @return [GitRepositoriesResponse]
|
|
671
|
+
def list_git_installation_repositories(connection_id, installation_id, opts = {})
|
|
672
|
+
data, _status_code, _headers = list_git_installation_repositories_with_http_info(connection_id, installation_id, opts)
|
|
673
|
+
data
|
|
674
|
+
end
|
|
675
|
+
|
|
676
|
+
# List repos accessible to a connection through an installation
|
|
677
|
+
# Live proxy to GitHub: lists the repos the connection's stored user token can access through installationId. Nothing is persisted by this call.
|
|
678
|
+
# @param connection_id [String] Connection ID to browse repositories for.
|
|
679
|
+
# @param installation_id [Integer] GitHub App installation ID.
|
|
680
|
+
# @param [Hash] opts the optional parameters
|
|
681
|
+
# @return [Array<(GitRepositoriesResponse, Integer, Hash)>] GitRepositoriesResponse data, response status code and response headers
|
|
682
|
+
def list_git_installation_repositories_with_http_info(connection_id, installation_id, opts = {})
|
|
683
|
+
if @api_client.config.debugging
|
|
684
|
+
@api_client.config.logger.debug 'Calling API: GitConnectionsApi.list_git_installation_repositories ...'
|
|
685
|
+
end
|
|
686
|
+
# verify the required parameter 'connection_id' is set
|
|
687
|
+
if @api_client.config.client_side_validation && connection_id.nil?
|
|
688
|
+
fail ArgumentError, "Missing the required parameter 'connection_id' when calling GitConnectionsApi.list_git_installation_repositories"
|
|
689
|
+
end
|
|
690
|
+
# verify the required parameter 'installation_id' is set
|
|
691
|
+
if @api_client.config.client_side_validation && installation_id.nil?
|
|
692
|
+
fail ArgumentError, "Missing the required parameter 'installation_id' when calling GitConnectionsApi.list_git_installation_repositories"
|
|
693
|
+
end
|
|
694
|
+
# resource path
|
|
695
|
+
local_var_path = '/user/git/connections/{connectionId}/installations/{installationId}/repositories'.sub('{' + 'connectionId' + '}', CGI.escape(connection_id.to_s)).sub('{' + 'installationId' + '}', CGI.escape(installation_id.to_s))
|
|
696
|
+
|
|
697
|
+
# query parameters
|
|
698
|
+
query_params = opts[:query_params] || {}
|
|
699
|
+
|
|
700
|
+
# header parameters
|
|
701
|
+
header_params = opts[:header_params] || {}
|
|
702
|
+
# HTTP header 'Accept' (if needed)
|
|
703
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
704
|
+
|
|
705
|
+
# form parameters
|
|
706
|
+
form_params = opts[:form_params] || {}
|
|
707
|
+
|
|
708
|
+
# http body (model)
|
|
709
|
+
post_body = opts[:debug_body]
|
|
710
|
+
|
|
711
|
+
# return_type
|
|
712
|
+
return_type = opts[:debug_return_type] || 'GitRepositoriesResponse'
|
|
713
|
+
|
|
714
|
+
# auth_names
|
|
715
|
+
auth_names = opts[:debug_auth_names] || ['AuthUserAccessToken', 'UserToken']
|
|
716
|
+
|
|
717
|
+
new_options = opts.merge(
|
|
718
|
+
:operation => :"GitConnectionsApi.list_git_installation_repositories",
|
|
719
|
+
:header_params => header_params,
|
|
720
|
+
:query_params => query_params,
|
|
721
|
+
:form_params => form_params,
|
|
722
|
+
:body => post_body,
|
|
723
|
+
:auth_names => auth_names,
|
|
724
|
+
:return_type => return_type
|
|
725
|
+
)
|
|
726
|
+
|
|
727
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
728
|
+
if @api_client.config.debugging
|
|
729
|
+
@api_client.config.logger.debug "API called: GitConnectionsApi#list_git_installation_repositories\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
730
|
+
end
|
|
731
|
+
return data, status_code, headers
|
|
732
|
+
end
|
|
733
|
+
|
|
734
|
+
# List GitHub App installations accessible to a connection
|
|
735
|
+
# Live proxy to GitHub: lists the platform GitHub App installations the connection's stored user token can access. Nothing is persisted by this call.
|
|
736
|
+
# @param connection_id [String] Connection ID to browse installations for.
|
|
737
|
+
# @param [Hash] opts the optional parameters
|
|
738
|
+
# @return [GitInstallationsResponse]
|
|
739
|
+
def list_git_installations(connection_id, opts = {})
|
|
740
|
+
data, _status_code, _headers = list_git_installations_with_http_info(connection_id, opts)
|
|
741
|
+
data
|
|
742
|
+
end
|
|
743
|
+
|
|
744
|
+
# List GitHub App installations accessible to a connection
|
|
745
|
+
# Live proxy to GitHub: lists the platform GitHub App installations the connection's stored user token can access. Nothing is persisted by this call.
|
|
746
|
+
# @param connection_id [String] Connection ID to browse installations for.
|
|
747
|
+
# @param [Hash] opts the optional parameters
|
|
748
|
+
# @return [Array<(GitInstallationsResponse, Integer, Hash)>] GitInstallationsResponse data, response status code and response headers
|
|
749
|
+
def list_git_installations_with_http_info(connection_id, opts = {})
|
|
750
|
+
if @api_client.config.debugging
|
|
751
|
+
@api_client.config.logger.debug 'Calling API: GitConnectionsApi.list_git_installations ...'
|
|
752
|
+
end
|
|
753
|
+
# verify the required parameter 'connection_id' is set
|
|
754
|
+
if @api_client.config.client_side_validation && connection_id.nil?
|
|
755
|
+
fail ArgumentError, "Missing the required parameter 'connection_id' when calling GitConnectionsApi.list_git_installations"
|
|
756
|
+
end
|
|
757
|
+
# resource path
|
|
758
|
+
local_var_path = '/user/git/connections/{connectionId}/installations'.sub('{' + 'connectionId' + '}', CGI.escape(connection_id.to_s))
|
|
759
|
+
|
|
760
|
+
# query parameters
|
|
761
|
+
query_params = opts[:query_params] || {}
|
|
762
|
+
|
|
763
|
+
# header parameters
|
|
764
|
+
header_params = opts[:header_params] || {}
|
|
765
|
+
# HTTP header 'Accept' (if needed)
|
|
766
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
767
|
+
|
|
768
|
+
# form parameters
|
|
769
|
+
form_params = opts[:form_params] || {}
|
|
770
|
+
|
|
771
|
+
# http body (model)
|
|
772
|
+
post_body = opts[:debug_body]
|
|
773
|
+
|
|
774
|
+
# return_type
|
|
775
|
+
return_type = opts[:debug_return_type] || 'GitInstallationsResponse'
|
|
776
|
+
|
|
777
|
+
# auth_names
|
|
778
|
+
auth_names = opts[:debug_auth_names] || ['AuthUserAccessToken', 'UserToken']
|
|
779
|
+
|
|
780
|
+
new_options = opts.merge(
|
|
781
|
+
:operation => :"GitConnectionsApi.list_git_installations",
|
|
782
|
+
:header_params => header_params,
|
|
783
|
+
:query_params => query_params,
|
|
784
|
+
:form_params => form_params,
|
|
785
|
+
:body => post_body,
|
|
786
|
+
:auth_names => auth_names,
|
|
787
|
+
:return_type => return_type
|
|
788
|
+
)
|
|
789
|
+
|
|
790
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
791
|
+
if @api_client.config.debugging
|
|
792
|
+
@api_client.config.logger.debug "API called: GitConnectionsApi#list_git_installations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
793
|
+
end
|
|
794
|
+
return data, status_code, headers
|
|
795
|
+
end
|
|
796
|
+
|
|
797
|
+
# Set the branch a project deploys from
|
|
798
|
+
# Changes only the production branch, leaving the repository binding alone. PUT /projects/{id}/git-connection can also set it, but that is a full rebind: it needs connection_id, installation_id and a repository selector resent, and re-resolves the repository against GitHub for a field that does not depend on it. The branch does not have to exist. It is validated as a Git branch name and nothing more, so a project can be pointed at a branch that is about to be pushed — the case a repository created empty depends on. Setting the branch here marks it as the project's own choice, so a later default-branch rename on GitHub no longer moves it. Projects that never set one keep following the repository's default branch.
|
|
799
|
+
# @param id [String] Project ID
|
|
800
|
+
# @param set_project_git_production_branch_request [SetProjectGitProductionBranchRequest]
|
|
801
|
+
# @param [Hash] opts the optional parameters
|
|
802
|
+
# @return [ProjectGitConnection]
|
|
803
|
+
def set_project_git_production_branch(id, set_project_git_production_branch_request, opts = {})
|
|
804
|
+
data, _status_code, _headers = set_project_git_production_branch_with_http_info(id, set_project_git_production_branch_request, opts)
|
|
805
|
+
data
|
|
806
|
+
end
|
|
807
|
+
|
|
808
|
+
# Set the branch a project deploys from
|
|
809
|
+
# Changes only the production branch, leaving the repository binding alone. PUT /projects/{id}/git-connection can also set it, but that is a full rebind: it needs connection_id, installation_id and a repository selector resent, and re-resolves the repository against GitHub for a field that does not depend on it. The branch does not have to exist. It is validated as a Git branch name and nothing more, so a project can be pointed at a branch that is about to be pushed — the case a repository created empty depends on. Setting the branch here marks it as the project's own choice, so a later default-branch rename on GitHub no longer moves it. Projects that never set one keep following the repository's default branch.
|
|
810
|
+
# @param id [String] Project ID
|
|
811
|
+
# @param set_project_git_production_branch_request [SetProjectGitProductionBranchRequest]
|
|
812
|
+
# @param [Hash] opts the optional parameters
|
|
813
|
+
# @return [Array<(ProjectGitConnection, Integer, Hash)>] ProjectGitConnection data, response status code and response headers
|
|
814
|
+
def set_project_git_production_branch_with_http_info(id, set_project_git_production_branch_request, opts = {})
|
|
815
|
+
if @api_client.config.debugging
|
|
816
|
+
@api_client.config.logger.debug 'Calling API: GitConnectionsApi.set_project_git_production_branch ...'
|
|
817
|
+
end
|
|
818
|
+
# verify the required parameter 'id' is set
|
|
819
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
820
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling GitConnectionsApi.set_project_git_production_branch"
|
|
821
|
+
end
|
|
822
|
+
# verify the required parameter 'set_project_git_production_branch_request' is set
|
|
823
|
+
if @api_client.config.client_side_validation && set_project_git_production_branch_request.nil?
|
|
824
|
+
fail ArgumentError, "Missing the required parameter 'set_project_git_production_branch_request' when calling GitConnectionsApi.set_project_git_production_branch"
|
|
825
|
+
end
|
|
826
|
+
# resource path
|
|
827
|
+
local_var_path = '/projects/{id}/git-connection/production-branch'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
828
|
+
|
|
829
|
+
# query parameters
|
|
830
|
+
query_params = opts[:query_params] || {}
|
|
831
|
+
|
|
832
|
+
# header parameters
|
|
833
|
+
header_params = opts[:header_params] || {}
|
|
834
|
+
# HTTP header 'Accept' (if needed)
|
|
835
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
836
|
+
# HTTP header 'Content-Type'
|
|
837
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
838
|
+
if !content_type.nil?
|
|
839
|
+
header_params['Content-Type'] = content_type
|
|
840
|
+
end
|
|
841
|
+
|
|
842
|
+
# form parameters
|
|
843
|
+
form_params = opts[:form_params] || {}
|
|
844
|
+
|
|
845
|
+
# http body (model)
|
|
846
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(set_project_git_production_branch_request)
|
|
847
|
+
|
|
848
|
+
# return_type
|
|
849
|
+
return_type = opts[:debug_return_type] || 'ProjectGitConnection'
|
|
850
|
+
|
|
851
|
+
# auth_names
|
|
852
|
+
auth_names = opts[:debug_auth_names] || ['UserToken']
|
|
853
|
+
|
|
854
|
+
new_options = opts.merge(
|
|
855
|
+
:operation => :"GitConnectionsApi.set_project_git_production_branch",
|
|
856
|
+
:header_params => header_params,
|
|
857
|
+
:query_params => query_params,
|
|
858
|
+
:form_params => form_params,
|
|
859
|
+
:body => post_body,
|
|
860
|
+
:auth_names => auth_names,
|
|
861
|
+
:return_type => return_type
|
|
862
|
+
)
|
|
863
|
+
|
|
864
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
865
|
+
if @api_client.config.debugging
|
|
866
|
+
@api_client.config.logger.debug "API called: GitConnectionsApi#set_project_git_production_branch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
867
|
+
end
|
|
868
|
+
return data, status_code, headers
|
|
869
|
+
end
|
|
870
|
+
|
|
871
|
+
# Start a git provider connection
|
|
872
|
+
# Starts a first-party dashboard user's git provider connection flow and returns the provider authorization URL. The response also sets a short-lived HttpOnly callback binding cookie tied to the authenticated user through the signed provider state.
|
|
873
|
+
# @param [Hash] opts the optional parameters
|
|
874
|
+
# @option opts [String] :provider Git provider to connect. Defaults to github. (default to 'github')
|
|
875
|
+
# @option opts [String] :redirect URL to redirect the browser to after the provider callback completes.
|
|
876
|
+
# @return [GitConnectStartResponse]
|
|
877
|
+
def start_git_connect(opts = {})
|
|
878
|
+
data, _status_code, _headers = start_git_connect_with_http_info(opts)
|
|
879
|
+
data
|
|
880
|
+
end
|
|
881
|
+
|
|
882
|
+
# Start a git provider connection
|
|
883
|
+
# Starts a first-party dashboard user's git provider connection flow and returns the provider authorization URL. The response also sets a short-lived HttpOnly callback binding cookie tied to the authenticated user through the signed provider state.
|
|
884
|
+
# @param [Hash] opts the optional parameters
|
|
885
|
+
# @option opts [String] :provider Git provider to connect. Defaults to github. (default to 'github')
|
|
886
|
+
# @option opts [String] :redirect URL to redirect the browser to after the provider callback completes.
|
|
887
|
+
# @return [Array<(GitConnectStartResponse, Integer, Hash)>] GitConnectStartResponse data, response status code and response headers
|
|
888
|
+
def start_git_connect_with_http_info(opts = {})
|
|
889
|
+
if @api_client.config.debugging
|
|
890
|
+
@api_client.config.logger.debug 'Calling API: GitConnectionsApi.start_git_connect ...'
|
|
891
|
+
end
|
|
892
|
+
allowable_values = ["github"]
|
|
893
|
+
if @api_client.config.client_side_validation && opts[:'provider'] && !allowable_values.include?(opts[:'provider'])
|
|
894
|
+
fail ArgumentError, "invalid value for \"provider\", must be one of #{allowable_values}"
|
|
895
|
+
end
|
|
896
|
+
# resource path
|
|
897
|
+
local_var_path = '/user/git/connect'
|
|
898
|
+
|
|
899
|
+
# query parameters
|
|
900
|
+
query_params = opts[:query_params] || {}
|
|
901
|
+
query_params[:'provider'] = opts[:'provider'] if !opts[:'provider'].nil?
|
|
902
|
+
query_params[:'redirect'] = opts[:'redirect'] if !opts[:'redirect'].nil?
|
|
903
|
+
|
|
904
|
+
# header parameters
|
|
905
|
+
header_params = opts[:header_params] || {}
|
|
906
|
+
# HTTP header 'Accept' (if needed)
|
|
907
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
908
|
+
|
|
909
|
+
# form parameters
|
|
910
|
+
form_params = opts[:form_params] || {}
|
|
911
|
+
|
|
912
|
+
# http body (model)
|
|
913
|
+
post_body = opts[:debug_body]
|
|
914
|
+
|
|
915
|
+
# return_type
|
|
916
|
+
return_type = opts[:debug_return_type] || 'GitConnectStartResponse'
|
|
917
|
+
|
|
918
|
+
# auth_names
|
|
919
|
+
auth_names = opts[:debug_auth_names] || ['AuthUserAccessToken', 'UserToken']
|
|
920
|
+
|
|
921
|
+
new_options = opts.merge(
|
|
922
|
+
:operation => :"GitConnectionsApi.start_git_connect",
|
|
923
|
+
:header_params => header_params,
|
|
924
|
+
:query_params => query_params,
|
|
925
|
+
:form_params => form_params,
|
|
926
|
+
:body => post_body,
|
|
927
|
+
:auth_names => auth_names,
|
|
928
|
+
:return_type => return_type
|
|
929
|
+
)
|
|
930
|
+
|
|
931
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
932
|
+
if @api_client.config.debugging
|
|
933
|
+
@api_client.config.logger.debug "API called: GitConnectionsApi#start_git_connect\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
934
|
+
end
|
|
935
|
+
return data, status_code, headers
|
|
936
|
+
end
|
|
937
|
+
|
|
938
|
+
# Update a project's Git auto-deploy settings
|
|
939
|
+
# Full replace of the project's Git auto-deploy settings: what a push to the connected repo's production branch deploys. Connecting a repository sets auto_deploy_enabled and deploy_functions to true for a project that has never called this endpoint, so a push deploys without any further setup. Once these settings have been saved here they are the project's own: connecting, rebinding, disconnecting and reconnecting all leave them untouched, including when they were saved before any repository was connected. Frontend settings are off until set here; the frontend need not exist when they are saved, since frontend_name is resolved at deploy time.
|
|
940
|
+
# @param id [String] Project ID
|
|
941
|
+
# @param update_project_git_deploy_settings_request [UpdateProjectGitDeploySettingsRequest]
|
|
942
|
+
# @param [Hash] opts the optional parameters
|
|
943
|
+
# @return [ProjectGitDeploySettings]
|
|
944
|
+
def update_project_git_deploy_settings(id, update_project_git_deploy_settings_request, opts = {})
|
|
945
|
+
data, _status_code, _headers = update_project_git_deploy_settings_with_http_info(id, update_project_git_deploy_settings_request, opts)
|
|
946
|
+
data
|
|
947
|
+
end
|
|
948
|
+
|
|
949
|
+
# Update a project's Git auto-deploy settings
|
|
950
|
+
# Full replace of the project's Git auto-deploy settings: what a push to the connected repo's production branch deploys. Connecting a repository sets auto_deploy_enabled and deploy_functions to true for a project that has never called this endpoint, so a push deploys without any further setup. Once these settings have been saved here they are the project's own: connecting, rebinding, disconnecting and reconnecting all leave them untouched, including when they were saved before any repository was connected. Frontend settings are off until set here; the frontend need not exist when they are saved, since frontend_name is resolved at deploy time.
|
|
951
|
+
# @param id [String] Project ID
|
|
952
|
+
# @param update_project_git_deploy_settings_request [UpdateProjectGitDeploySettingsRequest]
|
|
953
|
+
# @param [Hash] opts the optional parameters
|
|
954
|
+
# @return [Array<(ProjectGitDeploySettings, Integer, Hash)>] ProjectGitDeploySettings data, response status code and response headers
|
|
955
|
+
def update_project_git_deploy_settings_with_http_info(id, update_project_git_deploy_settings_request, opts = {})
|
|
956
|
+
if @api_client.config.debugging
|
|
957
|
+
@api_client.config.logger.debug 'Calling API: GitConnectionsApi.update_project_git_deploy_settings ...'
|
|
958
|
+
end
|
|
959
|
+
# verify the required parameter 'id' is set
|
|
960
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
961
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling GitConnectionsApi.update_project_git_deploy_settings"
|
|
962
|
+
end
|
|
963
|
+
# verify the required parameter 'update_project_git_deploy_settings_request' is set
|
|
964
|
+
if @api_client.config.client_side_validation && update_project_git_deploy_settings_request.nil?
|
|
965
|
+
fail ArgumentError, "Missing the required parameter 'update_project_git_deploy_settings_request' when calling GitConnectionsApi.update_project_git_deploy_settings"
|
|
966
|
+
end
|
|
967
|
+
# resource path
|
|
968
|
+
local_var_path = '/projects/{id}/git-deploy-settings'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
969
|
+
|
|
970
|
+
# query parameters
|
|
971
|
+
query_params = opts[:query_params] || {}
|
|
972
|
+
|
|
973
|
+
# header parameters
|
|
974
|
+
header_params = opts[:header_params] || {}
|
|
975
|
+
# HTTP header 'Accept' (if needed)
|
|
976
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
977
|
+
# HTTP header 'Content-Type'
|
|
978
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
979
|
+
if !content_type.nil?
|
|
980
|
+
header_params['Content-Type'] = content_type
|
|
981
|
+
end
|
|
982
|
+
|
|
983
|
+
# form parameters
|
|
984
|
+
form_params = opts[:form_params] || {}
|
|
985
|
+
|
|
986
|
+
# http body (model)
|
|
987
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_project_git_deploy_settings_request)
|
|
988
|
+
|
|
989
|
+
# return_type
|
|
990
|
+
return_type = opts[:debug_return_type] || 'ProjectGitDeploySettings'
|
|
991
|
+
|
|
992
|
+
# auth_names
|
|
993
|
+
auth_names = opts[:debug_auth_names] || ['UserToken']
|
|
994
|
+
|
|
995
|
+
new_options = opts.merge(
|
|
996
|
+
:operation => :"GitConnectionsApi.update_project_git_deploy_settings",
|
|
997
|
+
:header_params => header_params,
|
|
998
|
+
:query_params => query_params,
|
|
999
|
+
:form_params => form_params,
|
|
1000
|
+
:body => post_body,
|
|
1001
|
+
:auth_names => auth_names,
|
|
1002
|
+
:return_type => return_type
|
|
1003
|
+
)
|
|
1004
|
+
|
|
1005
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
1006
|
+
if @api_client.config.debugging
|
|
1007
|
+
@api_client.config.logger.debug "API called: GitConnectionsApi#update_project_git_deploy_settings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1008
|
+
end
|
|
1009
|
+
return data, status_code, headers
|
|
1010
|
+
end
|
|
1011
|
+
end
|
|
1012
|
+
end
|