lightning-sdk 0.1.49__py3-none-any.whl → 2025.11.5__py3-none-any.whl
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.
- lightning_sdk/__init__.py +19 -9
- lightning_sdk/__version__.py +3 -0
- lightning_sdk/agents.py +2 -1
- lightning_sdk/ai_hub.py +43 -38
- lightning_sdk/api/__init__.py +2 -0
- lightning_sdk/api/ai_hub_api.py +49 -6
- lightning_sdk/api/base_studio_api.py +90 -0
- lightning_sdk/api/cloud_account_api.py +225 -0
- lightning_sdk/api/deployment_api.py +133 -27
- lightning_sdk/api/job_api.py +147 -34
- lightning_sdk/api/license_api.py +37 -0
- lightning_sdk/api/lit_container_api.py +231 -19
- lightning_sdk/api/llm_api.py +306 -0
- lightning_sdk/api/mmt_api.py +112 -28
- lightning_sdk/api/pipeline_api.py +120 -0
- lightning_sdk/api/studio_api.py +440 -89
- lightning_sdk/api/teamspace_api.py +269 -31
- lightning_sdk/api/user_api.py +56 -2
- lightning_sdk/api/utils.py +185 -52
- lightning_sdk/base_studio.py +123 -0
- lightning_sdk/cli/__init__.py +1 -0
- lightning_sdk/cli/base_studio/__init__.py +10 -0
- lightning_sdk/cli/base_studio/list.py +43 -0
- lightning_sdk/cli/config/__init__.py +14 -0
- lightning_sdk/cli/config/get.py +57 -0
- lightning_sdk/cli/config/set.py +92 -0
- lightning_sdk/cli/config/show.py +9 -0
- lightning_sdk/cli/entrypoint.py +98 -56
- lightning_sdk/cli/groups.py +56 -0
- lightning_sdk/cli/job/__init__.py +7 -0
- lightning_sdk/cli/legacy/__init__.py +0 -0
- lightning_sdk/cli/legacy/ai_hub.py +65 -0
- lightning_sdk/cli/legacy/clusters_menu.py +49 -0
- lightning_sdk/cli/legacy/configure.py +129 -0
- lightning_sdk/cli/legacy/connect.py +34 -0
- lightning_sdk/cli/legacy/create.py +115 -0
- lightning_sdk/cli/legacy/delete.py +131 -0
- lightning_sdk/cli/legacy/deploy/__init__.py +0 -0
- lightning_sdk/cli/legacy/deploy/_auth.py +196 -0
- lightning_sdk/cli/legacy/deploy/devbox.py +163 -0
- lightning_sdk/cli/legacy/deploy/serve.py +452 -0
- lightning_sdk/cli/legacy/docker_cli.py +22 -0
- lightning_sdk/cli/legacy/download.py +322 -0
- lightning_sdk/cli/legacy/entrypoint.py +110 -0
- lightning_sdk/cli/legacy/generate.py +52 -0
- lightning_sdk/cli/legacy/inspection.py +45 -0
- lightning_sdk/cli/{job_and_mmt_action.py → legacy/job_and_mmt_action.py} +6 -6
- lightning_sdk/cli/{jobs_menu.py → legacy/jobs_menu.py} +3 -2
- lightning_sdk/cli/legacy/list.py +326 -0
- lightning_sdk/cli/{mmts_menu.py → legacy/mmts_menu.py} +3 -2
- lightning_sdk/cli/legacy/open.py +81 -0
- lightning_sdk/cli/legacy/run.py +443 -0
- lightning_sdk/cli/legacy/start.py +107 -0
- lightning_sdk/cli/legacy/stop.py +107 -0
- lightning_sdk/cli/{studios_menu.py → legacy/studios_menu.py} +24 -1
- lightning_sdk/cli/legacy/switch.py +63 -0
- lightning_sdk/cli/{teamspace_menu.py → legacy/teamspace_menu.py} +12 -3
- lightning_sdk/cli/legacy/upload.py +382 -0
- lightning_sdk/cli/license/__init__.py +14 -0
- lightning_sdk/cli/license/get.py +15 -0
- lightning_sdk/cli/license/list.py +45 -0
- lightning_sdk/cli/license/set.py +13 -0
- lightning_sdk/cli/mmt/__init__.py +7 -0
- lightning_sdk/cli/studio/__init__.py +24 -0
- lightning_sdk/cli/studio/connect.py +139 -0
- lightning_sdk/cli/studio/create.py +96 -0
- lightning_sdk/cli/studio/delete.py +49 -0
- lightning_sdk/cli/studio/list.py +85 -0
- lightning_sdk/cli/studio/ssh.py +64 -0
- lightning_sdk/cli/studio/start.py +115 -0
- lightning_sdk/cli/studio/stop.py +45 -0
- lightning_sdk/cli/studio/switch.py +66 -0
- lightning_sdk/cli/utils/__init__.py +7 -0
- lightning_sdk/cli/utils/cloud_account_map.py +10 -0
- lightning_sdk/cli/utils/coloring.py +60 -0
- lightning_sdk/cli/utils/get_base_studio.py +24 -0
- lightning_sdk/cli/utils/handle_machine_and_gpus_args.py +69 -0
- lightning_sdk/cli/utils/logging.py +122 -0
- lightning_sdk/cli/utils/owner_selection.py +110 -0
- lightning_sdk/cli/utils/resolve.py +28 -0
- lightning_sdk/cli/utils/richt_print.py +35 -0
- lightning_sdk/cli/utils/save_to_config.py +27 -0
- lightning_sdk/cli/utils/ssh_connection.py +59 -0
- lightning_sdk/cli/utils/studio_selection.py +113 -0
- lightning_sdk/cli/utils/teamspace_selection.py +125 -0
- lightning_sdk/cli/vm/__init__.py +20 -0
- lightning_sdk/cli/vm/create.py +33 -0
- lightning_sdk/cli/vm/delete.py +25 -0
- lightning_sdk/cli/vm/list.py +30 -0
- lightning_sdk/cli/vm/ssh.py +31 -0
- lightning_sdk/cli/vm/start.py +60 -0
- lightning_sdk/cli/vm/stop.py +25 -0
- lightning_sdk/cli/vm/switch.py +38 -0
- lightning_sdk/constants.py +1 -0
- lightning_sdk/deployment/__init__.py +4 -0
- lightning_sdk/deployment/deployment.py +208 -28
- lightning_sdk/helpers.py +73 -34
- lightning_sdk/job/base.py +112 -12
- lightning_sdk/job/job.py +73 -44
- lightning_sdk/job/v1.py +28 -35
- lightning_sdk/job/v2.py +54 -17
- lightning_sdk/job/work.py +7 -3
- lightning_sdk/lightning_cloud/login.py +325 -18
- lightning_sdk/lightning_cloud/openapi/__init__.py +346 -26
- lightning_sdk/lightning_cloud/openapi/api/__init__.py +14 -0
- lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +1801 -384
- lightning_sdk/lightning_cloud/openapi/api/auth_service_api.py +376 -0
- lightning_sdk/lightning_cloud/openapi/api/billing_service_api.py +414 -2
- lightning_sdk/lightning_cloud/openapi/api/blog_posts_service_api.py +533 -0
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_environment_template_service_api.py +638 -0
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +2563 -866
- lightning_sdk/lightning_cloud/openapi/api/cloudy_service_api.py +327 -0
- lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +1720 -347
- lightning_sdk/lightning_cloud/openapi/api/data_connection_service_api.py +210 -4
- lightning_sdk/lightning_cloud/openapi/api/endpoint_service_api.py +126 -2119
- lightning_sdk/lightning_cloud/openapi/api/file_system_service_api.py +283 -0
- lightning_sdk/lightning_cloud/openapi/api/git_credentials_service_api.py +497 -0
- lightning_sdk/lightning_cloud/openapi/api/incidents_service_api.py +1058 -0
- lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +2326 -492
- lightning_sdk/lightning_cloud/openapi/api/k8_s_cluster_service_api.py +2273 -0
- lightning_sdk/lightning_cloud/openapi/api/lit_dataset_service_api.py +1973 -0
- lightning_sdk/lightning_cloud/openapi/api/lit_logger_service_api.py +17 -5
- lightning_sdk/lightning_cloud/openapi/api/lit_registry_service_api.py +473 -5
- lightning_sdk/lightning_cloud/openapi/api/markets_service_api.py +145 -0
- lightning_sdk/lightning_cloud/openapi/api/models_store_api.py +24 -24
- lightning_sdk/lightning_cloud/openapi/api/organizations_service_api.py +105 -0
- lightning_sdk/lightning_cloud/openapi/api/pipeline_templates_service_api.py +339 -0
- lightning_sdk/lightning_cloud/openapi/api/pipelines_service_api.py +795 -0
- lightning_sdk/lightning_cloud/openapi/api/product_license_service_api.py +525 -0
- lightning_sdk/lightning_cloud/openapi/api/projects_service_api.py +106 -5
- lightning_sdk/lightning_cloud/openapi/api/schedules_service_api.py +924 -0
- lightning_sdk/lightning_cloud/openapi/api/sdk_command_history_service_api.py +141 -0
- lightning_sdk/lightning_cloud/openapi/api/slurm_jobs_user_service_api.py +202 -0
- lightning_sdk/lightning_cloud/openapi/api/storage_service_api.py +1508 -251
- lightning_sdk/lightning_cloud/openapi/api/user_service_api.py +121 -97
- lightning_sdk/lightning_cloud/openapi/api/volume_service_api.py +258 -0
- lightning_sdk/lightning_cloud/openapi/configuration.py +4 -20
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +332 -26
- lightning_sdk/lightning_cloud/openapi/models/agentmanagedendpoints_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/agents_id_body.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/alertingevents_id_body.py +409 -0
- lightning_sdk/lightning_cloud/openapi/models/alerts_config_billing.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/alerts_config_studios.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/assistant_id_conversations_body.py +303 -17
- lightning_sdk/lightning_cloud/openapi/models/blogposts_id_body.py +305 -0
- lightning_sdk/lightning_cloud/openapi/models/cloudspace_id_systemmetrics_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/cloudspace_id_visibility_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/cloudspaces_id_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_capacityblock_body.py +15 -15
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_capacityreservations_body.py +81 -3
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_kubernetestemplates_body.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_metrics_body.py +305 -0
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_slurmusers_body.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_usagerestrictions_body.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/conversations_id_body1.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/create.py +105 -1
- lightning_sdk/lightning_cloud/openapi/models/create_deployment_request_defines_a_spec_for_the_job_that_allows_for_autoscaling_jobs.py +131 -1
- lightning_sdk/lightning_cloud/openapi/models/create_machine_request_represents_the_request_to_create_a_machine.py +461 -0
- lightning_sdk/lightning_cloud/openapi/models/credits_autoreplenish_body.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/credits_autoreplenish_body1.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/dataset_id_versions_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/dataset_id_visibility_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/deployment_id_alertingpolicies_body.py +357 -0
- lightning_sdk/lightning_cloud/openapi/models/deployment_id_alertingpolicies_body1.py +331 -0
- lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +315 -3
- lightning_sdk/lightning_cloud/openapi/models/endpoints_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/externalv1_cloud_space_instance_status.py +199 -69
- lightning_sdk/lightning_cloud/openapi/models/externalv1_cluster.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/externalv1_user_status.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/id_codeconfig_body.py +1 -53
- lightning_sdk/lightning_cloud/openapi/models/id_contactowner_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/id_fork_body1.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/id_render_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/id_reportrestarttimings_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/id_sleepconfig_body.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/id_transfer_body.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/id_visibility_body1.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/id_visibility_body2.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/incident_id_messages_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/incidents_id_body.py +279 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_list_service_executions_response.py → job_id_reportroutingtelemetry_body.py} +23 -23
- lightning_sdk/lightning_cloud/openapi/models/kubernetestemplates_id_body.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/license_key_validate_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/litdatasets_dataset_id_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/litregistry_lit_repo_name_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/message_id_actions_body.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/messages_id_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/messages_message_id_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/metricsstream_create_body.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/metricsstream_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/model_id_versions_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/model_id_visibility_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/models_id_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/models_model_id_body.py +109 -31
- lightning_sdk/lightning_cloud/openapi/models/models_model_id_body1.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/org_id_memberships_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +627 -3
- lightning_sdk/lightning_cloud/openapi/models/pipelines_id_body.py +539 -0
- lightning_sdk/lightning_cloud/openapi/models/pipelines_id_body1.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/pipelinetemplates_id_body.py +331 -0
- lightning_sdk/lightning_cloud/openapi/models/project_id_agents_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/project_id_cloudspaces_body.py +131 -1
- lightning_sdk/lightning_cloud/openapi/models/project_id_litdatasets_body.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/project_id_litregistry_body.py +2 -0
- lightning_sdk/lightning_cloud/openapi/models/project_id_pipelines_body.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/project_id_schedules_body.py +331 -0
- lightning_sdk/lightning_cloud/openapi/models/project_id_storage_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/project_id_storagetransfers_body.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/project_tab_management_messages.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +523 -3
- lightning_sdk/lightning_cloud/openapi/models/{service_artifact_artifact_kind.py → protobuf_null_value.py} +7 -9
- lightning_sdk/lightning_cloud/openapi/models/schedules_id_body.py +513 -0
- lightning_sdk/lightning_cloud/openapi/models/server_id_alerts_body.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/setup.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/slurm_jobs_body.py +93 -15
- lightning_sdk/lightning_cloud/openapi/models/storage_complete_body.py +41 -15
- lightning_sdk/lightning_cloud/openapi/models/storagetransfers_validate_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/update.py +233 -129
- lightning_sdk/lightning_cloud/openapi/models/update1.py +383 -0
- lightning_sdk/lightning_cloud/openapi/models/upload_id_complete_body1.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/upload_id_parts_body1.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/uploads_upload_id_body.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/uploads_upload_id_body1.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/usagerestrictions_id_body.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/user_id_affiliatelinks_body.py +107 -3
- lightning_sdk/lightning_cloud/openapi/models/user_id_upgradetrigger_body.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/user_user_id_body.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_abort_storage_transfer_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_agent_job.py +188 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_aggregated_pod_metrics.py +799 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_ai_pod_v1.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_alert_method.py +102 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_alerts_config.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_artifact.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_assistant.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_assistant_model_status.py +6 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_assistant_session_daily_aggregated.py +383 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_author.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_aws_direct_v1.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_billing_subscription.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_billing_tier.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_blog_post.py +435 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cancel_running_cloud_space_instance_transfer_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_capacity_block_offering.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_check_cluster_name_availability_request.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_check_cluster_name_availability_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_provider.py +117 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +313 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_artifact_event.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_artifact_event_type.py +103 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_cold_start_metrics.py +669 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_cold_start_metrics_stats.py +357 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_config.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template.py +409 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template_config.py +331 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_type.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_session.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_source_type.py +103 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_specialized_view.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_state.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_transfer_metadata.py +331 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloudflare_v1.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloudy_expert.py +279 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloudy_settings.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_accelerator.py +445 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_capacity_reservation.py +211 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_deletion_options.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_metrics.py +1527 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_security_options.py +209 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +521 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_status.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_tagging_options.py +55 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_type.py +2 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_upload_service_execution_artifact_response.py → v1_cluster_upload.py} +34 -34
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_usage_restriction.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_complete_lit_dataset_multi_part_upload_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_complete_lit_dataset_upload_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_complete_running_cloud_space_instance_transfer_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/{id_complete_body.py → v1_complete_upload_temporary_artifact_request.py} +29 -29
- lightning_sdk/lightning_cloud/openapi/models/v1_contact_assistant_owner_reason.py +102 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_contact_assistant_owner_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_container_metrics.py +461 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_conversation.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_conversation_response_chunk.py +107 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_create_billing_upgrade_trigger_record_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_blog_post_request.py +305 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_checkout_session_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_cloud_space_environment_template_request.py +409 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_cluster_capacity_reservation_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_deployment_request.py +539 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_deployment_template_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_git_credentials_request.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_incident_request.py +305 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_job_request.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_license_request.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_lit_dataset_multi_part_upload_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_machine_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_managed_endpoint_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_model_metrics_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_multi_machine_job_request.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_organization_request.py +105 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_pipeline_template_request.py +383 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_project_request.py +209 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_sdk_command_history_request.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_sdk_command_history_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_server_alert_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_subscription_checkout_session_request.py +55 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_daily_model_metrics.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_daily_usage.py +81 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_data_connection.py +261 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_data_connection_tier.py +103 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_blog_post_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_cloud_space_environment_template_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_cluster_usage_restriction_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_deployment_alerting_policy_response.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_git_credentials_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_incident_message_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_incident_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_kubernetes_template_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_license_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_lit_dataset_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_lit_dataset_version_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_lit_registry_repository_image_artifact_version_by_digest_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_machine_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_delete_file_endpoint_response.py → v1_delete_pipeline_response.py} +25 -25
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_schedule_response.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +315 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_event.py +487 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy.py +409 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_frequency.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_operation.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_severity.py +106 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_type.py +112 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_recipients.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_api.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_details.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_state.py +4 -2
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_status.py +47 -21
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_endpoint.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_external_cluster.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_external_cluster_spec.py +931 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_external_search_user.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_filestore_data_connection.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_job.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_metric.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_metrics.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_mmt.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_find_capacity_block_offering_response.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/{id_uploads_body1.py → v1_firewall_rule.py} +53 -53
- lightning_sdk/lightning_cloud/openapi/models/v1_function_call.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_function_tool.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_list_file_endpoints_response.py → v1_gcp_data_connection_setup.py} +23 -23
- lightning_sdk/lightning_cloud/openapi/models/v1_gcp_direct_vpc.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_ge_list_deployment_routing_telemetry_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_artifacts_page_response.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_get_assistant_session_daily_aggregated_response.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_cold_start_metrics_stats_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_instance_open_ports_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_instance_system_metrics_aggregate_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_required_balance_status_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_size_response.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_transfer_estimate_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_cluster_accelerator_demand_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_cluster_health_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_deployment_routing_telemetry_content_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_job_stats_response.py +105 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_latest_model_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_upload_service_execution_artifact_parts_response.py → v1_get_lit_dataset_file_upload_urls_response.py} +16 -16
- lightning_sdk/lightning_cloud/openapi/models/v1_get_lit_dataset_files_url_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_machine_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_market_pricing_response.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_model_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_organization_storage_metadata_response.py +487 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_project_balance_response.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_get_project_storage_metadata_response.py +263 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_get_temp_bucket_credentials_response.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +235 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_user_storage_breakdown_response.py +105 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_volume_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_git_credentials.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_google_cloud_direct_v1.py +185 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_group_node_metrics.py +1215 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_group_pod_metrics.py +1241 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_guest_login_request.py +177 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_guest_login_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_service_artifact.py → v1_guest_user.py} +60 -60
- lightning_sdk/lightning_cloud/openapi/models/v1_incident.py +565 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_incident_detail.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_incident_event.py +591 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_incident_message.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_incident_severity.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_incident_type.py +108 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_instance_overprovisioning_spec.py +95 -41
- lightning_sdk/lightning_cloud/openapi/models/v1_job.py +237 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_job_artifacts_type.py +103 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_job_resource.py +279 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +209 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_job_timing.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_job_type.py +109 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_k8s_incident_indexes.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_kai_scheduler_queue_metrics.py +627 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_aws_config.py +279 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_settings_v1.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_v1.py +357 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_v1_status.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_template.py +357 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_template_property.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lambda_labs_direct_v1.py +67 -17
- lightning_sdk/lightning_cloud/openapi/models/v1_license.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lightning_elastic_cluster_v1.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lightning_run.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_lightningapp_instance_artifact.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_like_status.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_aggregated_pod_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_download_service_execution_artifact_response.py → v1_list_blog_posts_response.py} +41 -41
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cloud_space_cold_start_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cloud_space_environment_templates_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cloudy_experts_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cluster_metric_timestamps_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cluster_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cluster_namespace_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cluster_namespace_user_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cluster_usage_restrictions_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_clusters_response.py +6 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_list_container_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_conversation_message_actions_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_deployment_alerting_events_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_deployment_alerting_policies_response.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_mm_ts_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_git_credentials_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_group_pod_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_incident_events_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_incident_messages_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_incidents_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_job_resources_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_kai_scheduler_queues_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_kubernetes_templates_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_license_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_lit_dataset_versions_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_lit_datasets_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_lit_registry_repository_image_artifact_versions_response.py +257 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_machines_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_node_file_system_metrics_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_node_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_notification_dialogs_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_pipelines_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_platform_notifications_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_pod_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_project_clusters_response.py +6 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_list_published_managed_endpoints_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_schedule_runs_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_schedules_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_slurm_cluster_users_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_storage_transfers_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_dataset.py +539 -0
- lightning_sdk/lightning_cloud/openapi/models/{id_storage_body.py → v1_lit_dataset_file.py} +49 -49
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_dataset_version_archive.py +435 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_registry_artifact.py +305 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_registry_project.py +35 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_repository.py +81 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_lite_published_cloud_space_response.py +513 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lustre_data_connection.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_machine.py +617 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_machine_direct_v1.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_magic_link_login_response.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_managed_endpoint.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_managed_model.py +341 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_market_price.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_membership.py +121 -17
- lightning_sdk/lightning_cloud/openapi/models/v1_message.py +159 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_message_action.py +279 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_metadata.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_metrics_stream.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_model.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_model_metrics.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_delete_service_execution_response.py → v1_modify_filesystem_volume_response.py} +6 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job_state.py +2 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_namespace_metrics.py +591 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_namespace_user_metrics.py +435 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_nebius_direct_v1.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_node_metrics.py +695 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_notification_type.py +2 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +837 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_path_mapping.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pause_storage_transfer_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline.py +591 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_parameter.py +435 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_parameter_placement.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_parameter_placement_type.py +106 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_parameter_type.py +106 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_state.py +111 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_step.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_step_status.py +331 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_step_type.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_template.py +513 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_template_visibility_type.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_platform_notification.py +279 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pod_metrics.py +747 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_post_cloud_space_artifact_events_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_project.py +105 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_project_cluster_binding.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_project_membership.py +121 -17
- lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +525 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_project_storage.py +235 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_project_tab.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_purchase_annual_upsell_request.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_purchase_annual_upsell_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_quote_annual_upsell_response.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_quote_subscription_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_r2_data_connection.py +305 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_render_kubernetes_template_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_report_cloud_space_instance_stop_at_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_report_cloud_space_instance_system_metrics_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_report_deployment_routing_telemetry_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_report_k8s_cluster_metrics_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_report_restart_timings_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_request_cloud_space_access_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_required_balance_reason.py +107 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_reservation_details.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_reset_api_key_request.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_reset_api_key_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_resource_visibility.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_resources.py +55 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_response_choice.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_restart_timing.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_resume_storage_transfer_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_routing_telemetry.py +357 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_rule_resource.py +5 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_schedule.py +565 -0
- lightning_sdk/lightning_cloud/openapi/models/{command_argument_command_argument_type.py → v1_schedule_action_type.py} +9 -8
- lightning_sdk/lightning_cloud/openapi/models/v1_schedule_resource_type.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_schedule_run.py +357 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_sdk_command_history_severity.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_sdk_command_history_type.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_secret_type.py +2 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_get_service_execution_status_response.py → v1_server_alert.py} +74 -48
- lightning_sdk/lightning_cloud/openapi/models/v1_server_alert_phase.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_server_alert_severity.py +103 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_server_alert_type.py +108 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_service_health.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_setup_data_connection_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_shared_filesystem.py +331 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_slack_notifier.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_slack_notifier_type.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_sleep_server_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_slurm_cluster_user.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_slurm_job.py +84 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_slurm_node.py +31 -291
- lightning_sdk/lightning_cloud/openapi/models/v1_slurm_v1.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_slurm_v1_status.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_storage_asset.py +159 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_storage_asset_type.py +4 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_storage_transfer.py +435 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_storage_transfer_status.py +108 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_subnet_spec.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_system_metrics_aggregated.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_token_login_request.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_token_login_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_token_owner_type.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_token_usage.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_tool.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_tool_call.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_transaction.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_transfer_cloud_space_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_trigger_filesystem_upgrade_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_cloud_space_instance_config_request.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_cloud_space_visibility_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_conversation_like_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_conversation_message_like_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_deployment_visibility_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_job_visibility_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_lit_dataset_visibility_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_lit_repository_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_metrics_stream_visibility_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_update_model_visibility_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/{v1_complete_upload_service_execution_artifact_response.py → v1_update_organization_credits_auto_replenish_response.py} +6 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_update_project_tab_order_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_user_credits_auto_replenish_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_user_request.py +131 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_update_volume_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_upload_project_artifact_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/{v1_list_new_features_for_user_response.py → v1_upload_temporary_artifact_request.py} +23 -23
- lightning_sdk/lightning_cloud/openapi/models/v1_usage.py +105 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_usage_report.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +894 -842
- lightning_sdk/lightning_cloud/openapi/models/v1_user_requested_compute_config.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_validate_data_connection_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_validate_deployment_image_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_validate_license_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_validate_managed_endpoint_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_validate_storage_transfer_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_voltage_park_direct_v1.py +229 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_volume.py +513 -45
- lightning_sdk/lightning_cloud/openapi/models/v1_volume_state.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_vultr_direct_v1.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_weka_data_connection.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/validate.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/version_default_body.py +29 -29
- lightning_sdk/lightning_cloud/openapi/models/version_default_body1.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/version_uploads_body1.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/versions_version_body1.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/volumes_id_body.py +123 -0
- lightning_sdk/lightning_cloud/rest_client.py +61 -48
- lightning_sdk/lightning_cloud/source_code/logs_socket_api.py +8 -3
- lightning_sdk/lightning_cloud/utils/data_connection.py +234 -7
- lightning_sdk/lit_container.py +68 -9
- lightning_sdk/llm/__init__.py +3 -0
- lightning_sdk/llm/llm.py +497 -0
- lightning_sdk/llm/public_assistants.py +54 -0
- lightning_sdk/machine.py +221 -30
- lightning_sdk/mmt/base.py +67 -32
- lightning_sdk/mmt/mmt.py +68 -50
- lightning_sdk/mmt/v1.py +16 -32
- lightning_sdk/mmt/v2.py +47 -18
- lightning_sdk/models.py +74 -24
- lightning_sdk/organization.py +4 -0
- lightning_sdk/owner.py +2 -1
- lightning_sdk/pipeline/__init__.py +14 -0
- lightning_sdk/pipeline/pipeline.py +163 -0
- lightning_sdk/pipeline/printer.py +124 -0
- lightning_sdk/pipeline/schedule.py +859 -0
- lightning_sdk/pipeline/steps.py +365 -0
- lightning_sdk/pipeline/utils.py +116 -0
- lightning_sdk/plugin.py +39 -20
- lightning_sdk/sandbox.py +160 -0
- lightning_sdk/serve.py +309 -0
- lightning_sdk/services/__init__.py +1 -1
- lightning_sdk/services/file_endpoint.py +3 -4
- lightning_sdk/services/utilities.py +16 -2
- lightning_sdk/studio.py +515 -41
- lightning_sdk/teamspace.py +335 -30
- lightning_sdk/user.py +19 -1
- lightning_sdk/utils/config.py +179 -0
- lightning_sdk/utils/license.py +13 -0
- lightning_sdk/utils/logging.py +79 -0
- lightning_sdk/utils/names.py +1179 -0
- lightning_sdk/utils/progress.py +283 -0
- lightning_sdk/utils/resolve.py +149 -13
- {lightning_sdk-0.1.49.dist-info → lightning_sdk-2025.11.5.dist-info}/METADATA +14 -11
- {lightning_sdk-0.1.49.dist-info → lightning_sdk-2025.11.5.dist-info}/RECORD +649 -250
- {lightning_sdk-0.1.49.dist-info → lightning_sdk-2025.11.5.dist-info}/WHEEL +1 -1
- {lightning_sdk-0.1.49.dist-info → lightning_sdk-2025.11.5.dist-info}/entry_points.txt +1 -0
- lightning_sdk/cli/ai_hub.py +0 -49
- lightning_sdk/cli/delete.py +0 -58
- lightning_sdk/cli/download.py +0 -132
- lightning_sdk/cli/inspect.py +0 -31
- lightning_sdk/cli/legacy.py +0 -135
- lightning_sdk/cli/list.py +0 -112
- lightning_sdk/cli/run.py +0 -225
- lightning_sdk/cli/serve.py +0 -218
- lightning_sdk/cli/stop.py +0 -37
- lightning_sdk/cli/upload.py +0 -255
- lightning_sdk/lightning_cloud/openapi/models/fileendpoints_id_body.py +0 -409
- lightning_sdk/lightning_cloud/openapi/models/project_id_fileendpoints_body.py +0 -357
- lightning_sdk/lightning_cloud/openapi/models/project_id_serviceexecution_body.py +0 -175
- lightning_sdk/lightning_cloud/openapi/models/serviceexecution_id_body.py +0 -331
- lightning_sdk/lightning_cloud/openapi/models/v1_command_argument.py +0 -305
- lightning_sdk/lightning_cloud/openapi/models/v1_ebs.py +0 -279
- lightning_sdk/lightning_cloud/openapi/models/v1_file_endpoint.py +0 -461
- lightning_sdk/lightning_cloud/openapi/models/v1_get_user_storage_response.py +0 -201
- lightning_sdk/lightning_cloud/openapi/models/v1_list_service_execution_lightningapp_instances_response.py +0 -175
- lightning_sdk/lightning_cloud/openapi/models/v1_service_execution.py +0 -383
- /lightning_sdk/cli/{exceptions.py → legacy/exceptions.py} +0 -0
- /lightning_sdk/services/{finetune/__init__.py → finetune_llm.py} +0 -0
- {lightning_sdk-0.1.49.dist-info → lightning_sdk-2025.11.5.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.1.49.dist-info → lightning_sdk-2025.11.5.dist-info}/top_level.txt +0 -0
|
@@ -249,6 +249,119 @@ class JobsServiceApi(object):
|
|
|
249
249
|
_request_timeout=params.get('_request_timeout'),
|
|
250
250
|
collection_formats=collection_formats)
|
|
251
251
|
|
|
252
|
+
def jobs_service_create_deployment_alerting_policy(self, body: 'DeploymentIdAlertingpoliciesBody1', project_id: 'str', deployment_id: 'str', **kwargs) -> 'V1DeploymentAlertingPolicy': # noqa: E501
|
|
253
|
+
"""CreateDeploymentAlertingPolicy creates a policy to monitor potential issues with deployment # noqa: E501
|
|
254
|
+
|
|
255
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
256
|
+
asynchronous HTTP request, please pass async_req=True
|
|
257
|
+
>>> thread = api.jobs_service_create_deployment_alerting_policy(body, project_id, deployment_id, async_req=True)
|
|
258
|
+
>>> result = thread.get()
|
|
259
|
+
|
|
260
|
+
:param async_req bool
|
|
261
|
+
:param DeploymentIdAlertingpoliciesBody1 body: (required)
|
|
262
|
+
:param str project_id: (required)
|
|
263
|
+
:param str deployment_id: (required)
|
|
264
|
+
:return: V1DeploymentAlertingPolicy
|
|
265
|
+
If the method is called asynchronously,
|
|
266
|
+
returns the request thread.
|
|
267
|
+
"""
|
|
268
|
+
kwargs['_return_http_data_only'] = True
|
|
269
|
+
if kwargs.get('async_req'):
|
|
270
|
+
return self.jobs_service_create_deployment_alerting_policy_with_http_info(body, project_id, deployment_id, **kwargs) # noqa: E501
|
|
271
|
+
else:
|
|
272
|
+
(data) = self.jobs_service_create_deployment_alerting_policy_with_http_info(body, project_id, deployment_id, **kwargs) # noqa: E501
|
|
273
|
+
return data
|
|
274
|
+
|
|
275
|
+
def jobs_service_create_deployment_alerting_policy_with_http_info(self, body: 'DeploymentIdAlertingpoliciesBody1', project_id: 'str', deployment_id: 'str', **kwargs) -> 'V1DeploymentAlertingPolicy': # noqa: E501
|
|
276
|
+
"""CreateDeploymentAlertingPolicy creates a policy to monitor potential issues with deployment # noqa: E501
|
|
277
|
+
|
|
278
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
279
|
+
asynchronous HTTP request, please pass async_req=True
|
|
280
|
+
>>> thread = api.jobs_service_create_deployment_alerting_policy_with_http_info(body, project_id, deployment_id, async_req=True)
|
|
281
|
+
>>> result = thread.get()
|
|
282
|
+
|
|
283
|
+
:param async_req bool
|
|
284
|
+
:param DeploymentIdAlertingpoliciesBody1 body: (required)
|
|
285
|
+
:param str project_id: (required)
|
|
286
|
+
:param str deployment_id: (required)
|
|
287
|
+
:return: V1DeploymentAlertingPolicy
|
|
288
|
+
If the method is called asynchronously,
|
|
289
|
+
returns the request thread.
|
|
290
|
+
"""
|
|
291
|
+
|
|
292
|
+
all_params = ['body', 'project_id', 'deployment_id'] # noqa: E501
|
|
293
|
+
all_params.append('async_req')
|
|
294
|
+
all_params.append('_return_http_data_only')
|
|
295
|
+
all_params.append('_preload_content')
|
|
296
|
+
all_params.append('_request_timeout')
|
|
297
|
+
|
|
298
|
+
params = locals()
|
|
299
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
300
|
+
if key not in all_params:
|
|
301
|
+
raise TypeError(
|
|
302
|
+
"Got an unexpected keyword argument '%s'"
|
|
303
|
+
" to method jobs_service_create_deployment_alerting_policy" % key
|
|
304
|
+
)
|
|
305
|
+
params[key] = val
|
|
306
|
+
del params['kwargs']
|
|
307
|
+
# verify the required parameter 'body' is set
|
|
308
|
+
if ('body' not in params or
|
|
309
|
+
params['body'] is None):
|
|
310
|
+
raise ValueError("Missing the required parameter `body` when calling `jobs_service_create_deployment_alerting_policy`") # noqa: E501
|
|
311
|
+
# verify the required parameter 'project_id' is set
|
|
312
|
+
if ('project_id' not in params or
|
|
313
|
+
params['project_id'] is None):
|
|
314
|
+
raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_create_deployment_alerting_policy`") # noqa: E501
|
|
315
|
+
# verify the required parameter 'deployment_id' is set
|
|
316
|
+
if ('deployment_id' not in params or
|
|
317
|
+
params['deployment_id'] is None):
|
|
318
|
+
raise ValueError("Missing the required parameter `deployment_id` when calling `jobs_service_create_deployment_alerting_policy`") # noqa: E501
|
|
319
|
+
|
|
320
|
+
collection_formats = {}
|
|
321
|
+
|
|
322
|
+
path_params = {}
|
|
323
|
+
if 'project_id' in params:
|
|
324
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
325
|
+
if 'deployment_id' in params:
|
|
326
|
+
path_params['deploymentId'] = params['deployment_id'] # noqa: E501
|
|
327
|
+
|
|
328
|
+
query_params = []
|
|
329
|
+
|
|
330
|
+
header_params = {}
|
|
331
|
+
|
|
332
|
+
form_params = []
|
|
333
|
+
local_var_files = {}
|
|
334
|
+
|
|
335
|
+
body_params = None
|
|
336
|
+
if 'body' in params:
|
|
337
|
+
body_params = params['body']
|
|
338
|
+
# HTTP header `Accept`
|
|
339
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
340
|
+
['application/json']) # noqa: E501
|
|
341
|
+
|
|
342
|
+
# HTTP header `Content-Type`
|
|
343
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
344
|
+
['application/json']) # noqa: E501
|
|
345
|
+
|
|
346
|
+
# Authentication setting
|
|
347
|
+
auth_settings = [] # noqa: E501
|
|
348
|
+
|
|
349
|
+
return self.api_client.call_api(
|
|
350
|
+
'/v1/projects/{projectId}/deployments/{deploymentId}/alerting-policies', 'POST',
|
|
351
|
+
path_params,
|
|
352
|
+
query_params,
|
|
353
|
+
header_params,
|
|
354
|
+
body=body_params,
|
|
355
|
+
post_params=form_params,
|
|
356
|
+
files=local_var_files,
|
|
357
|
+
response_type='V1DeploymentAlertingPolicy', # noqa: E501
|
|
358
|
+
auth_settings=auth_settings,
|
|
359
|
+
async_req=params.get('async_req'),
|
|
360
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
361
|
+
_preload_content=params.get('_preload_content', True),
|
|
362
|
+
_request_timeout=params.get('_request_timeout'),
|
|
363
|
+
collection_formats=collection_formats)
|
|
364
|
+
|
|
252
365
|
def jobs_service_create_job(self, body: 'ProjectIdJobsBody', project_id: 'str', **kwargs) -> 'V1Job': # noqa: E501
|
|
253
366
|
"""jobs_service_create_job # noqa: E501
|
|
254
367
|
|
|
@@ -564,6 +677,115 @@ class JobsServiceApi(object):
|
|
|
564
677
|
_request_timeout=params.get('_request_timeout'),
|
|
565
678
|
collection_formats=collection_formats)
|
|
566
679
|
|
|
680
|
+
def jobs_service_delete_deployment_alerting_policy(self, project_id: 'str', deployment_id: 'str', id: 'str', **kwargs) -> 'V1DeleteDeploymentAlertingPolicyResponse': # noqa: E501
|
|
681
|
+
"""jobs_service_delete_deployment_alerting_policy # noqa: E501
|
|
682
|
+
|
|
683
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
684
|
+
asynchronous HTTP request, please pass async_req=True
|
|
685
|
+
>>> thread = api.jobs_service_delete_deployment_alerting_policy(project_id, deployment_id, id, async_req=True)
|
|
686
|
+
>>> result = thread.get()
|
|
687
|
+
|
|
688
|
+
:param async_req bool
|
|
689
|
+
:param str project_id: (required)
|
|
690
|
+
:param str deployment_id: (required)
|
|
691
|
+
:param str id: (required)
|
|
692
|
+
:return: V1DeleteDeploymentAlertingPolicyResponse
|
|
693
|
+
If the method is called asynchronously,
|
|
694
|
+
returns the request thread.
|
|
695
|
+
"""
|
|
696
|
+
kwargs['_return_http_data_only'] = True
|
|
697
|
+
if kwargs.get('async_req'):
|
|
698
|
+
return self.jobs_service_delete_deployment_alerting_policy_with_http_info(project_id, deployment_id, id, **kwargs) # noqa: E501
|
|
699
|
+
else:
|
|
700
|
+
(data) = self.jobs_service_delete_deployment_alerting_policy_with_http_info(project_id, deployment_id, id, **kwargs) # noqa: E501
|
|
701
|
+
return data
|
|
702
|
+
|
|
703
|
+
def jobs_service_delete_deployment_alerting_policy_with_http_info(self, project_id: 'str', deployment_id: 'str', id: 'str', **kwargs) -> 'V1DeleteDeploymentAlertingPolicyResponse': # noqa: E501
|
|
704
|
+
"""jobs_service_delete_deployment_alerting_policy # noqa: E501
|
|
705
|
+
|
|
706
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
707
|
+
asynchronous HTTP request, please pass async_req=True
|
|
708
|
+
>>> thread = api.jobs_service_delete_deployment_alerting_policy_with_http_info(project_id, deployment_id, id, async_req=True)
|
|
709
|
+
>>> result = thread.get()
|
|
710
|
+
|
|
711
|
+
:param async_req bool
|
|
712
|
+
:param str project_id: (required)
|
|
713
|
+
:param str deployment_id: (required)
|
|
714
|
+
:param str id: (required)
|
|
715
|
+
:return: V1DeleteDeploymentAlertingPolicyResponse
|
|
716
|
+
If the method is called asynchronously,
|
|
717
|
+
returns the request thread.
|
|
718
|
+
"""
|
|
719
|
+
|
|
720
|
+
all_params = ['project_id', 'deployment_id', 'id'] # noqa: E501
|
|
721
|
+
all_params.append('async_req')
|
|
722
|
+
all_params.append('_return_http_data_only')
|
|
723
|
+
all_params.append('_preload_content')
|
|
724
|
+
all_params.append('_request_timeout')
|
|
725
|
+
|
|
726
|
+
params = locals()
|
|
727
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
728
|
+
if key not in all_params:
|
|
729
|
+
raise TypeError(
|
|
730
|
+
"Got an unexpected keyword argument '%s'"
|
|
731
|
+
" to method jobs_service_delete_deployment_alerting_policy" % key
|
|
732
|
+
)
|
|
733
|
+
params[key] = val
|
|
734
|
+
del params['kwargs']
|
|
735
|
+
# verify the required parameter 'project_id' is set
|
|
736
|
+
if ('project_id' not in params or
|
|
737
|
+
params['project_id'] is None):
|
|
738
|
+
raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_delete_deployment_alerting_policy`") # noqa: E501
|
|
739
|
+
# verify the required parameter 'deployment_id' is set
|
|
740
|
+
if ('deployment_id' not in params or
|
|
741
|
+
params['deployment_id'] is None):
|
|
742
|
+
raise ValueError("Missing the required parameter `deployment_id` when calling `jobs_service_delete_deployment_alerting_policy`") # noqa: E501
|
|
743
|
+
# verify the required parameter 'id' is set
|
|
744
|
+
if ('id' not in params or
|
|
745
|
+
params['id'] is None):
|
|
746
|
+
raise ValueError("Missing the required parameter `id` when calling `jobs_service_delete_deployment_alerting_policy`") # noqa: E501
|
|
747
|
+
|
|
748
|
+
collection_formats = {}
|
|
749
|
+
|
|
750
|
+
path_params = {}
|
|
751
|
+
if 'project_id' in params:
|
|
752
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
753
|
+
if 'deployment_id' in params:
|
|
754
|
+
path_params['deploymentId'] = params['deployment_id'] # noqa: E501
|
|
755
|
+
if 'id' in params:
|
|
756
|
+
path_params['id'] = params['id'] # noqa: E501
|
|
757
|
+
|
|
758
|
+
query_params = []
|
|
759
|
+
|
|
760
|
+
header_params = {}
|
|
761
|
+
|
|
762
|
+
form_params = []
|
|
763
|
+
local_var_files = {}
|
|
764
|
+
|
|
765
|
+
body_params = None
|
|
766
|
+
# HTTP header `Accept`
|
|
767
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
768
|
+
['application/json']) # noqa: E501
|
|
769
|
+
|
|
770
|
+
# Authentication setting
|
|
771
|
+
auth_settings = [] # noqa: E501
|
|
772
|
+
|
|
773
|
+
return self.api_client.call_api(
|
|
774
|
+
'/v1/projects/{projectId}/deployments/{deploymentId}/alerting-policies/{id}', 'DELETE',
|
|
775
|
+
path_params,
|
|
776
|
+
query_params,
|
|
777
|
+
header_params,
|
|
778
|
+
body=body_params,
|
|
779
|
+
post_params=form_params,
|
|
780
|
+
files=local_var_files,
|
|
781
|
+
response_type='V1DeleteDeploymentAlertingPolicyResponse', # noqa: E501
|
|
782
|
+
auth_settings=auth_settings,
|
|
783
|
+
async_req=params.get('async_req'),
|
|
784
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
785
|
+
_preload_content=params.get('_preload_content', True),
|
|
786
|
+
_request_timeout=params.get('_request_timeout'),
|
|
787
|
+
collection_formats=collection_formats)
|
|
788
|
+
|
|
567
789
|
def jobs_service_delete_deployment_release(self, project_id: 'str', deployment_id: 'str', id: 'str', **kwargs) -> 'V1DeleteDeploymentReleaseResponse': # noqa: E501
|
|
568
790
|
"""jobs_service_delete_deployment_release # noqa: E501
|
|
569
791
|
|
|
@@ -992,6 +1214,7 @@ class JobsServiceApi(object):
|
|
|
992
1214
|
:param str project_id: (required)
|
|
993
1215
|
:param str id: (required)
|
|
994
1216
|
:param str cloudspace_id:
|
|
1217
|
+
:param str deployment_id:
|
|
995
1218
|
:return: V1DownloadJobLogsResponse
|
|
996
1219
|
If the method is called asynchronously,
|
|
997
1220
|
returns the request thread.
|
|
@@ -1015,12 +1238,13 @@ class JobsServiceApi(object):
|
|
|
1015
1238
|
:param str project_id: (required)
|
|
1016
1239
|
:param str id: (required)
|
|
1017
1240
|
:param str cloudspace_id:
|
|
1241
|
+
:param str deployment_id:
|
|
1018
1242
|
:return: V1DownloadJobLogsResponse
|
|
1019
1243
|
If the method is called asynchronously,
|
|
1020
1244
|
returns the request thread.
|
|
1021
1245
|
"""
|
|
1022
1246
|
|
|
1023
|
-
all_params = ['project_id', 'id', 'cloudspace_id'] # noqa: E501
|
|
1247
|
+
all_params = ['project_id', 'id', 'cloudspace_id', 'deployment_id'] # noqa: E501
|
|
1024
1248
|
all_params.append('async_req')
|
|
1025
1249
|
all_params.append('_return_http_data_only')
|
|
1026
1250
|
all_params.append('_preload_content')
|
|
@@ -1055,6 +1279,8 @@ class JobsServiceApi(object):
|
|
|
1055
1279
|
query_params = []
|
|
1056
1280
|
if 'cloudspace_id' in params:
|
|
1057
1281
|
query_params.append(('cloudspaceId', params['cloudspace_id'])) # noqa: E501
|
|
1282
|
+
if 'deployment_id' in params:
|
|
1283
|
+
query_params.append(('deploymentId', params['deployment_id'])) # noqa: E501
|
|
1058
1284
|
|
|
1059
1285
|
header_params = {}
|
|
1060
1286
|
|
|
@@ -1384,57 +1610,47 @@ class JobsServiceApi(object):
|
|
|
1384
1610
|
_request_timeout=params.get('_request_timeout'),
|
|
1385
1611
|
collection_formats=collection_formats)
|
|
1386
1612
|
|
|
1387
|
-
def
|
|
1388
|
-
"""
|
|
1613
|
+
def jobs_service_get_deployment_by_slugs(self, project_owner_name: 'str', project_name: 'str', deployment_name: 'str', **kwargs) -> 'V1Deployment': # noqa: E501
|
|
1614
|
+
"""jobs_service_get_deployment_by_slugs # noqa: E501
|
|
1389
1615
|
|
|
1390
1616
|
This method makes a synchronous HTTP request by default. To make an
|
|
1391
1617
|
asynchronous HTTP request, please pass async_req=True
|
|
1392
|
-
>>> thread = api.
|
|
1618
|
+
>>> thread = api.jobs_service_get_deployment_by_slugs(project_owner_name, project_name, deployment_name, async_req=True)
|
|
1393
1619
|
>>> result = thread.get()
|
|
1394
1620
|
|
|
1395
1621
|
:param async_req bool
|
|
1396
|
-
:param str
|
|
1397
|
-
:param str
|
|
1398
|
-
:param
|
|
1399
|
-
:
|
|
1400
|
-
:param str path:
|
|
1401
|
-
:param int status_code:
|
|
1402
|
-
:param bool group_by_resource:
|
|
1403
|
-
:param str resolution:
|
|
1404
|
-
:return: V1GetDeploymentRoutingTelemetryResponse
|
|
1622
|
+
:param str project_owner_name: (required)
|
|
1623
|
+
:param str project_name: (required)
|
|
1624
|
+
:param str deployment_name: (required)
|
|
1625
|
+
:return: V1Deployment
|
|
1405
1626
|
If the method is called asynchronously,
|
|
1406
1627
|
returns the request thread.
|
|
1407
1628
|
"""
|
|
1408
1629
|
kwargs['_return_http_data_only'] = True
|
|
1409
1630
|
if kwargs.get('async_req'):
|
|
1410
|
-
return self.
|
|
1631
|
+
return self.jobs_service_get_deployment_by_slugs_with_http_info(project_owner_name, project_name, deployment_name, **kwargs) # noqa: E501
|
|
1411
1632
|
else:
|
|
1412
|
-
(data) = self.
|
|
1633
|
+
(data) = self.jobs_service_get_deployment_by_slugs_with_http_info(project_owner_name, project_name, deployment_name, **kwargs) # noqa: E501
|
|
1413
1634
|
return data
|
|
1414
1635
|
|
|
1415
|
-
def
|
|
1416
|
-
"""
|
|
1636
|
+
def jobs_service_get_deployment_by_slugs_with_http_info(self, project_owner_name: 'str', project_name: 'str', deployment_name: 'str', **kwargs) -> 'V1Deployment': # noqa: E501
|
|
1637
|
+
"""jobs_service_get_deployment_by_slugs # noqa: E501
|
|
1417
1638
|
|
|
1418
1639
|
This method makes a synchronous HTTP request by default. To make an
|
|
1419
1640
|
asynchronous HTTP request, please pass async_req=True
|
|
1420
|
-
>>> thread = api.
|
|
1641
|
+
>>> thread = api.jobs_service_get_deployment_by_slugs_with_http_info(project_owner_name, project_name, deployment_name, async_req=True)
|
|
1421
1642
|
>>> result = thread.get()
|
|
1422
1643
|
|
|
1423
1644
|
:param async_req bool
|
|
1424
|
-
:param str
|
|
1425
|
-
:param str
|
|
1426
|
-
:param
|
|
1427
|
-
:
|
|
1428
|
-
:param str path:
|
|
1429
|
-
:param int status_code:
|
|
1430
|
-
:param bool group_by_resource:
|
|
1431
|
-
:param str resolution:
|
|
1432
|
-
:return: V1GetDeploymentRoutingTelemetryResponse
|
|
1645
|
+
:param str project_owner_name: (required)
|
|
1646
|
+
:param str project_name: (required)
|
|
1647
|
+
:param str deployment_name: (required)
|
|
1648
|
+
:return: V1Deployment
|
|
1433
1649
|
If the method is called asynchronously,
|
|
1434
1650
|
returns the request thread.
|
|
1435
1651
|
"""
|
|
1436
1652
|
|
|
1437
|
-
all_params = ['
|
|
1653
|
+
all_params = ['project_owner_name', 'project_name', 'deployment_name'] # noqa: E501
|
|
1438
1654
|
all_params.append('async_req')
|
|
1439
1655
|
all_params.append('_return_http_data_only')
|
|
1440
1656
|
all_params.append('_preload_content')
|
|
@@ -1445,40 +1661,34 @@ class JobsServiceApi(object):
|
|
|
1445
1661
|
if key not in all_params:
|
|
1446
1662
|
raise TypeError(
|
|
1447
1663
|
"Got an unexpected keyword argument '%s'"
|
|
1448
|
-
" to method
|
|
1664
|
+
" to method jobs_service_get_deployment_by_slugs" % key
|
|
1449
1665
|
)
|
|
1450
1666
|
params[key] = val
|
|
1451
1667
|
del params['kwargs']
|
|
1452
|
-
# verify the required parameter '
|
|
1453
|
-
if ('
|
|
1454
|
-
params['
|
|
1455
|
-
raise ValueError("Missing the required parameter `
|
|
1456
|
-
# verify the required parameter '
|
|
1457
|
-
if ('
|
|
1458
|
-
params['
|
|
1459
|
-
raise ValueError("Missing the required parameter `
|
|
1668
|
+
# verify the required parameter 'project_owner_name' is set
|
|
1669
|
+
if ('project_owner_name' not in params or
|
|
1670
|
+
params['project_owner_name'] is None):
|
|
1671
|
+
raise ValueError("Missing the required parameter `project_owner_name` when calling `jobs_service_get_deployment_by_slugs`") # noqa: E501
|
|
1672
|
+
# verify the required parameter 'project_name' is set
|
|
1673
|
+
if ('project_name' not in params or
|
|
1674
|
+
params['project_name'] is None):
|
|
1675
|
+
raise ValueError("Missing the required parameter `project_name` when calling `jobs_service_get_deployment_by_slugs`") # noqa: E501
|
|
1676
|
+
# verify the required parameter 'deployment_name' is set
|
|
1677
|
+
if ('deployment_name' not in params or
|
|
1678
|
+
params['deployment_name'] is None):
|
|
1679
|
+
raise ValueError("Missing the required parameter `deployment_name` when calling `jobs_service_get_deployment_by_slugs`") # noqa: E501
|
|
1460
1680
|
|
|
1461
1681
|
collection_formats = {}
|
|
1462
1682
|
|
|
1463
1683
|
path_params = {}
|
|
1464
|
-
if '
|
|
1465
|
-
path_params['
|
|
1466
|
-
if '
|
|
1467
|
-
path_params['
|
|
1684
|
+
if 'project_owner_name' in params:
|
|
1685
|
+
path_params['projectOwnerName'] = params['project_owner_name'] # noqa: E501
|
|
1686
|
+
if 'project_name' in params:
|
|
1687
|
+
path_params['projectName'] = params['project_name'] # noqa: E501
|
|
1688
|
+
if 'deployment_name' in params:
|
|
1689
|
+
path_params['deploymentName'] = params['deployment_name'] # noqa: E501
|
|
1468
1690
|
|
|
1469
1691
|
query_params = []
|
|
1470
|
-
if 'start' in params:
|
|
1471
|
-
query_params.append(('start', params['start'])) # noqa: E501
|
|
1472
|
-
if 'end' in params:
|
|
1473
|
-
query_params.append(('end', params['end'])) # noqa: E501
|
|
1474
|
-
if 'path' in params:
|
|
1475
|
-
query_params.append(('path', params['path'])) # noqa: E501
|
|
1476
|
-
if 'status_code' in params:
|
|
1477
|
-
query_params.append(('statusCode', params['status_code'])) # noqa: E501
|
|
1478
|
-
if 'group_by_resource' in params:
|
|
1479
|
-
query_params.append(('groupByResource', params['group_by_resource'])) # noqa: E501
|
|
1480
|
-
if 'resolution' in params:
|
|
1481
|
-
query_params.append(('resolution', params['resolution'])) # noqa: E501
|
|
1482
1692
|
|
|
1483
1693
|
header_params = {}
|
|
1484
1694
|
|
|
@@ -1494,14 +1704,14 @@ class JobsServiceApi(object):
|
|
|
1494
1704
|
auth_settings = [] # noqa: E501
|
|
1495
1705
|
|
|
1496
1706
|
return self.api_client.call_api(
|
|
1497
|
-
'/v1/projects/{
|
|
1707
|
+
'/v1/projects/{projectOwnerName}/{projectName}/deployments/{deploymentName}', 'GET',
|
|
1498
1708
|
path_params,
|
|
1499
1709
|
query_params,
|
|
1500
1710
|
header_params,
|
|
1501
1711
|
body=body_params,
|
|
1502
1712
|
post_params=form_params,
|
|
1503
1713
|
files=local_var_files,
|
|
1504
|
-
response_type='
|
|
1714
|
+
response_type='V1Deployment', # noqa: E501
|
|
1505
1715
|
auth_settings=auth_settings,
|
|
1506
1716
|
async_req=params.get('async_req'),
|
|
1507
1717
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -1509,12 +1719,12 @@ class JobsServiceApi(object):
|
|
|
1509
1719
|
_request_timeout=params.get('_request_timeout'),
|
|
1510
1720
|
collection_formats=collection_formats)
|
|
1511
1721
|
|
|
1512
|
-
def
|
|
1513
|
-
"""Deployment Telemetry
|
|
1722
|
+
def jobs_service_get_deployment_routing_telemetry(self, project_id: 'str', id: 'str', **kwargs) -> 'V1GetDeploymentRoutingTelemetryResponse': # noqa: E501
|
|
1723
|
+
"""Deployment Telemetry # noqa: E501
|
|
1514
1724
|
|
|
1515
1725
|
This method makes a synchronous HTTP request by default. To make an
|
|
1516
1726
|
asynchronous HTTP request, please pass async_req=True
|
|
1517
|
-
>>> thread = api.
|
|
1727
|
+
>>> thread = api.jobs_service_get_deployment_routing_telemetry(project_id, id, async_req=True)
|
|
1518
1728
|
>>> result = thread.get()
|
|
1519
1729
|
|
|
1520
1730
|
:param async_req bool
|
|
@@ -1522,26 +1732,27 @@ class JobsServiceApi(object):
|
|
|
1522
1732
|
:param str id: (required)
|
|
1523
1733
|
:param datetime start:
|
|
1524
1734
|
:param datetime end:
|
|
1525
|
-
:param
|
|
1526
|
-
:param
|
|
1735
|
+
:param str path:
|
|
1736
|
+
:param int status_code:
|
|
1737
|
+
:param bool group_by_resource:
|
|
1527
1738
|
:param str resolution:
|
|
1528
|
-
:return:
|
|
1739
|
+
:return: V1GetDeploymentRoutingTelemetryResponse
|
|
1529
1740
|
If the method is called asynchronously,
|
|
1530
1741
|
returns the request thread.
|
|
1531
1742
|
"""
|
|
1532
1743
|
kwargs['_return_http_data_only'] = True
|
|
1533
1744
|
if kwargs.get('async_req'):
|
|
1534
|
-
return self.
|
|
1745
|
+
return self.jobs_service_get_deployment_routing_telemetry_with_http_info(project_id, id, **kwargs) # noqa: E501
|
|
1535
1746
|
else:
|
|
1536
|
-
(data) = self.
|
|
1747
|
+
(data) = self.jobs_service_get_deployment_routing_telemetry_with_http_info(project_id, id, **kwargs) # noqa: E501
|
|
1537
1748
|
return data
|
|
1538
1749
|
|
|
1539
|
-
def
|
|
1540
|
-
"""Deployment Telemetry
|
|
1750
|
+
def jobs_service_get_deployment_routing_telemetry_with_http_info(self, project_id: 'str', id: 'str', **kwargs) -> 'V1GetDeploymentRoutingTelemetryResponse': # noqa: E501
|
|
1751
|
+
"""Deployment Telemetry # noqa: E501
|
|
1541
1752
|
|
|
1542
1753
|
This method makes a synchronous HTTP request by default. To make an
|
|
1543
1754
|
asynchronous HTTP request, please pass async_req=True
|
|
1544
|
-
>>> thread = api.
|
|
1755
|
+
>>> thread = api.jobs_service_get_deployment_routing_telemetry_with_http_info(project_id, id, async_req=True)
|
|
1545
1756
|
>>> result = thread.get()
|
|
1546
1757
|
|
|
1547
1758
|
:param async_req bool
|
|
@@ -1549,15 +1760,16 @@ class JobsServiceApi(object):
|
|
|
1549
1760
|
:param str id: (required)
|
|
1550
1761
|
:param datetime start:
|
|
1551
1762
|
:param datetime end:
|
|
1552
|
-
:param
|
|
1553
|
-
:param
|
|
1763
|
+
:param str path:
|
|
1764
|
+
:param int status_code:
|
|
1765
|
+
:param bool group_by_resource:
|
|
1554
1766
|
:param str resolution:
|
|
1555
|
-
:return:
|
|
1767
|
+
:return: V1GetDeploymentRoutingTelemetryResponse
|
|
1556
1768
|
If the method is called asynchronously,
|
|
1557
1769
|
returns the request thread.
|
|
1558
1770
|
"""
|
|
1559
1771
|
|
|
1560
|
-
all_params = ['project_id', 'id', 'start', 'end', '
|
|
1772
|
+
all_params = ['project_id', 'id', 'start', 'end', 'path', 'status_code', 'group_by_resource', 'resolution'] # noqa: E501
|
|
1561
1773
|
all_params.append('async_req')
|
|
1562
1774
|
all_params.append('_return_http_data_only')
|
|
1563
1775
|
all_params.append('_preload_content')
|
|
@@ -1568,18 +1780,18 @@ class JobsServiceApi(object):
|
|
|
1568
1780
|
if key not in all_params:
|
|
1569
1781
|
raise TypeError(
|
|
1570
1782
|
"Got an unexpected keyword argument '%s'"
|
|
1571
|
-
" to method
|
|
1783
|
+
" to method jobs_service_get_deployment_routing_telemetry" % key
|
|
1572
1784
|
)
|
|
1573
1785
|
params[key] = val
|
|
1574
1786
|
del params['kwargs']
|
|
1575
1787
|
# verify the required parameter 'project_id' is set
|
|
1576
1788
|
if ('project_id' not in params or
|
|
1577
1789
|
params['project_id'] is None):
|
|
1578
|
-
raise ValueError("Missing the required parameter `project_id` when calling `
|
|
1790
|
+
raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_get_deployment_routing_telemetry`") # noqa: E501
|
|
1579
1791
|
# verify the required parameter 'id' is set
|
|
1580
1792
|
if ('id' not in params or
|
|
1581
1793
|
params['id'] is None):
|
|
1582
|
-
raise ValueError("Missing the required parameter `id` when calling `
|
|
1794
|
+
raise ValueError("Missing the required parameter `id` when calling `jobs_service_get_deployment_routing_telemetry`") # noqa: E501
|
|
1583
1795
|
|
|
1584
1796
|
collection_formats = {}
|
|
1585
1797
|
|
|
@@ -1594,12 +1806,12 @@ class JobsServiceApi(object):
|
|
|
1594
1806
|
query_params.append(('start', params['start'])) # noqa: E501
|
|
1595
1807
|
if 'end' in params:
|
|
1596
1808
|
query_params.append(('end', params['end'])) # noqa: E501
|
|
1597
|
-
if '
|
|
1598
|
-
query_params.append(('
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1809
|
+
if 'path' in params:
|
|
1810
|
+
query_params.append(('path', params['path'])) # noqa: E501
|
|
1811
|
+
if 'status_code' in params:
|
|
1812
|
+
query_params.append(('statusCode', params['status_code'])) # noqa: E501
|
|
1813
|
+
if 'group_by_resource' in params:
|
|
1814
|
+
query_params.append(('groupByResource', params['group_by_resource'])) # noqa: E501
|
|
1603
1815
|
if 'resolution' in params:
|
|
1604
1816
|
query_params.append(('resolution', params['resolution'])) # noqa: E501
|
|
1605
1817
|
|
|
@@ -1617,14 +1829,14 @@ class JobsServiceApi(object):
|
|
|
1617
1829
|
auth_settings = [] # noqa: E501
|
|
1618
1830
|
|
|
1619
1831
|
return self.api_client.call_api(
|
|
1620
|
-
'/v1/projects/{projectId}/deployments/{id}/telemetry
|
|
1832
|
+
'/v1/projects/{projectId}/deployments/{id}/telemetry', 'GET',
|
|
1621
1833
|
path_params,
|
|
1622
1834
|
query_params,
|
|
1623
1835
|
header_params,
|
|
1624
1836
|
body=body_params,
|
|
1625
1837
|
post_params=form_params,
|
|
1626
1838
|
files=local_var_files,
|
|
1627
|
-
response_type='
|
|
1839
|
+
response_type='V1GetDeploymentRoutingTelemetryResponse', # noqa: E501
|
|
1628
1840
|
auth_settings=auth_settings,
|
|
1629
1841
|
async_req=params.get('async_req'),
|
|
1630
1842
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -1632,47 +1844,55 @@ class JobsServiceApi(object):
|
|
|
1632
1844
|
_request_timeout=params.get('_request_timeout'),
|
|
1633
1845
|
collection_formats=collection_formats)
|
|
1634
1846
|
|
|
1635
|
-
def
|
|
1636
|
-
"""
|
|
1847
|
+
def jobs_service_get_deployment_routing_telemetry_aggregated(self, project_id: 'str', id: 'str', **kwargs) -> 'V1GetDeploymentRoutingTelemetryAggregatedResponse': # noqa: E501
|
|
1848
|
+
"""Deployment Telemetry aggregated to display global monitor metrics # noqa: E501
|
|
1637
1849
|
|
|
1638
1850
|
This method makes a synchronous HTTP request by default. To make an
|
|
1639
1851
|
asynchronous HTTP request, please pass async_req=True
|
|
1640
|
-
>>> thread = api.
|
|
1852
|
+
>>> thread = api.jobs_service_get_deployment_routing_telemetry_aggregated(project_id, id, async_req=True)
|
|
1641
1853
|
>>> result = thread.get()
|
|
1642
1854
|
|
|
1643
1855
|
:param async_req bool
|
|
1644
1856
|
:param str project_id: (required)
|
|
1645
1857
|
:param str id: (required)
|
|
1646
|
-
:param
|
|
1647
|
-
:
|
|
1858
|
+
:param datetime start:
|
|
1859
|
+
:param datetime end:
|
|
1860
|
+
:param list[str] paths:
|
|
1861
|
+
:param list[str] status_codes:
|
|
1862
|
+
:param str resolution:
|
|
1863
|
+
:return: V1GetDeploymentRoutingTelemetryAggregatedResponse
|
|
1648
1864
|
If the method is called asynchronously,
|
|
1649
1865
|
returns the request thread.
|
|
1650
1866
|
"""
|
|
1651
1867
|
kwargs['_return_http_data_only'] = True
|
|
1652
1868
|
if kwargs.get('async_req'):
|
|
1653
|
-
return self.
|
|
1869
|
+
return self.jobs_service_get_deployment_routing_telemetry_aggregated_with_http_info(project_id, id, **kwargs) # noqa: E501
|
|
1654
1870
|
else:
|
|
1655
|
-
(data) = self.
|
|
1871
|
+
(data) = self.jobs_service_get_deployment_routing_telemetry_aggregated_with_http_info(project_id, id, **kwargs) # noqa: E501
|
|
1656
1872
|
return data
|
|
1657
1873
|
|
|
1658
|
-
def
|
|
1659
|
-
"""
|
|
1874
|
+
def jobs_service_get_deployment_routing_telemetry_aggregated_with_http_info(self, project_id: 'str', id: 'str', **kwargs) -> 'V1GetDeploymentRoutingTelemetryAggregatedResponse': # noqa: E501
|
|
1875
|
+
"""Deployment Telemetry aggregated to display global monitor metrics # noqa: E501
|
|
1660
1876
|
|
|
1661
1877
|
This method makes a synchronous HTTP request by default. To make an
|
|
1662
1878
|
asynchronous HTTP request, please pass async_req=True
|
|
1663
|
-
>>> thread = api.
|
|
1879
|
+
>>> thread = api.jobs_service_get_deployment_routing_telemetry_aggregated_with_http_info(project_id, id, async_req=True)
|
|
1664
1880
|
>>> result = thread.get()
|
|
1665
1881
|
|
|
1666
1882
|
:param async_req bool
|
|
1667
1883
|
:param str project_id: (required)
|
|
1668
1884
|
:param str id: (required)
|
|
1669
|
-
:param
|
|
1670
|
-
:
|
|
1885
|
+
:param datetime start:
|
|
1886
|
+
:param datetime end:
|
|
1887
|
+
:param list[str] paths:
|
|
1888
|
+
:param list[str] status_codes:
|
|
1889
|
+
:param str resolution:
|
|
1890
|
+
:return: V1GetDeploymentRoutingTelemetryAggregatedResponse
|
|
1671
1891
|
If the method is called asynchronously,
|
|
1672
1892
|
returns the request thread.
|
|
1673
1893
|
"""
|
|
1674
1894
|
|
|
1675
|
-
all_params = ['project_id', 'id', '
|
|
1895
|
+
all_params = ['project_id', 'id', 'start', 'end', 'paths', 'status_codes', 'resolution'] # noqa: E501
|
|
1676
1896
|
all_params.append('async_req')
|
|
1677
1897
|
all_params.append('_return_http_data_only')
|
|
1678
1898
|
all_params.append('_preload_content')
|
|
@@ -1683,18 +1903,18 @@ class JobsServiceApi(object):
|
|
|
1683
1903
|
if key not in all_params:
|
|
1684
1904
|
raise TypeError(
|
|
1685
1905
|
"Got an unexpected keyword argument '%s'"
|
|
1686
|
-
" to method
|
|
1906
|
+
" to method jobs_service_get_deployment_routing_telemetry_aggregated" % key
|
|
1687
1907
|
)
|
|
1688
1908
|
params[key] = val
|
|
1689
1909
|
del params['kwargs']
|
|
1690
1910
|
# verify the required parameter 'project_id' is set
|
|
1691
1911
|
if ('project_id' not in params or
|
|
1692
1912
|
params['project_id'] is None):
|
|
1693
|
-
raise ValueError("Missing the required parameter `project_id` when calling `
|
|
1913
|
+
raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_get_deployment_routing_telemetry_aggregated`") # noqa: E501
|
|
1694
1914
|
# verify the required parameter 'id' is set
|
|
1695
1915
|
if ('id' not in params or
|
|
1696
1916
|
params['id'] is None):
|
|
1697
|
-
raise ValueError("Missing the required parameter `id` when calling `
|
|
1917
|
+
raise ValueError("Missing the required parameter `id` when calling `jobs_service_get_deployment_routing_telemetry_aggregated`") # noqa: E501
|
|
1698
1918
|
|
|
1699
1919
|
collection_formats = {}
|
|
1700
1920
|
|
|
@@ -1705,8 +1925,18 @@ class JobsServiceApi(object):
|
|
|
1705
1925
|
path_params['id'] = params['id'] # noqa: E501
|
|
1706
1926
|
|
|
1707
1927
|
query_params = []
|
|
1708
|
-
if '
|
|
1709
|
-
query_params.append(('
|
|
1928
|
+
if 'start' in params:
|
|
1929
|
+
query_params.append(('start', params['start'])) # noqa: E501
|
|
1930
|
+
if 'end' in params:
|
|
1931
|
+
query_params.append(('end', params['end'])) # noqa: E501
|
|
1932
|
+
if 'paths' in params:
|
|
1933
|
+
query_params.append(('paths', params['paths'])) # noqa: E501
|
|
1934
|
+
collection_formats['paths'] = 'multi' # noqa: E501
|
|
1935
|
+
if 'status_codes' in params:
|
|
1936
|
+
query_params.append(('statusCodes', params['status_codes'])) # noqa: E501
|
|
1937
|
+
collection_formats['statusCodes'] = 'multi' # noqa: E501
|
|
1938
|
+
if 'resolution' in params:
|
|
1939
|
+
query_params.append(('resolution', params['resolution'])) # noqa: E501
|
|
1710
1940
|
|
|
1711
1941
|
header_params = {}
|
|
1712
1942
|
|
|
@@ -1722,14 +1952,14 @@ class JobsServiceApi(object):
|
|
|
1722
1952
|
auth_settings = [] # noqa: E501
|
|
1723
1953
|
|
|
1724
1954
|
return self.api_client.call_api(
|
|
1725
|
-
'/v1/projects/{projectId}/
|
|
1955
|
+
'/v1/projects/{projectId}/deployments/{id}/telemetry-aggregated', 'GET',
|
|
1726
1956
|
path_params,
|
|
1727
1957
|
query_params,
|
|
1728
1958
|
header_params,
|
|
1729
1959
|
body=body_params,
|
|
1730
1960
|
post_params=form_params,
|
|
1731
1961
|
files=local_var_files,
|
|
1732
|
-
response_type='
|
|
1962
|
+
response_type='V1GetDeploymentRoutingTelemetryAggregatedResponse', # noqa: E501
|
|
1733
1963
|
auth_settings=auth_settings,
|
|
1734
1964
|
async_req=params.get('async_req'),
|
|
1735
1965
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -1737,53 +1967,47 @@ class JobsServiceApi(object):
|
|
|
1737
1967
|
_request_timeout=params.get('_request_timeout'),
|
|
1738
1968
|
collection_formats=collection_formats)
|
|
1739
1969
|
|
|
1740
|
-
def
|
|
1741
|
-
"""
|
|
1970
|
+
def jobs_service_get_deployment_routing_telemetry_content(self, project_id: 'str', id: 'str', **kwargs) -> 'V1GetDeploymentRoutingTelemetryContentResponse': # noqa: E501
|
|
1971
|
+
"""jobs_service_get_deployment_routing_telemetry_content # noqa: E501
|
|
1742
1972
|
|
|
1743
1973
|
This method makes a synchronous HTTP request by default. To make an
|
|
1744
1974
|
asynchronous HTTP request, please pass async_req=True
|
|
1745
|
-
>>> thread = api.
|
|
1975
|
+
>>> thread = api.jobs_service_get_deployment_routing_telemetry_content(project_id, id, async_req=True)
|
|
1746
1976
|
>>> result = thread.get()
|
|
1747
1977
|
|
|
1748
1978
|
:param async_req bool
|
|
1749
1979
|
:param str project_id: (required)
|
|
1750
1980
|
:param str id: (required)
|
|
1751
|
-
:param str
|
|
1752
|
-
:
|
|
1753
|
-
:param str until:
|
|
1754
|
-
:param str deployment_id:
|
|
1755
|
-
:return: V1JobLogsResponse
|
|
1981
|
+
:param str request_id:
|
|
1982
|
+
:return: V1GetDeploymentRoutingTelemetryContentResponse
|
|
1756
1983
|
If the method is called asynchronously,
|
|
1757
1984
|
returns the request thread.
|
|
1758
1985
|
"""
|
|
1759
1986
|
kwargs['_return_http_data_only'] = True
|
|
1760
1987
|
if kwargs.get('async_req'):
|
|
1761
|
-
return self.
|
|
1988
|
+
return self.jobs_service_get_deployment_routing_telemetry_content_with_http_info(project_id, id, **kwargs) # noqa: E501
|
|
1762
1989
|
else:
|
|
1763
|
-
(data) = self.
|
|
1990
|
+
(data) = self.jobs_service_get_deployment_routing_telemetry_content_with_http_info(project_id, id, **kwargs) # noqa: E501
|
|
1764
1991
|
return data
|
|
1765
1992
|
|
|
1766
|
-
def
|
|
1767
|
-
"""
|
|
1993
|
+
def jobs_service_get_deployment_routing_telemetry_content_with_http_info(self, project_id: 'str', id: 'str', **kwargs) -> 'V1GetDeploymentRoutingTelemetryContentResponse': # noqa: E501
|
|
1994
|
+
"""jobs_service_get_deployment_routing_telemetry_content # noqa: E501
|
|
1768
1995
|
|
|
1769
1996
|
This method makes a synchronous HTTP request by default. To make an
|
|
1770
1997
|
asynchronous HTTP request, please pass async_req=True
|
|
1771
|
-
>>> thread = api.
|
|
1998
|
+
>>> thread = api.jobs_service_get_deployment_routing_telemetry_content_with_http_info(project_id, id, async_req=True)
|
|
1772
1999
|
>>> result = thread.get()
|
|
1773
2000
|
|
|
1774
2001
|
:param async_req bool
|
|
1775
2002
|
:param str project_id: (required)
|
|
1776
2003
|
:param str id: (required)
|
|
1777
|
-
:param str
|
|
1778
|
-
:
|
|
1779
|
-
:param str until:
|
|
1780
|
-
:param str deployment_id:
|
|
1781
|
-
:return: V1JobLogsResponse
|
|
2004
|
+
:param str request_id:
|
|
2005
|
+
:return: V1GetDeploymentRoutingTelemetryContentResponse
|
|
1782
2006
|
If the method is called asynchronously,
|
|
1783
2007
|
returns the request thread.
|
|
1784
2008
|
"""
|
|
1785
2009
|
|
|
1786
|
-
all_params = ['project_id', 'id', '
|
|
2010
|
+
all_params = ['project_id', 'id', 'request_id'] # noqa: E501
|
|
1787
2011
|
all_params.append('async_req')
|
|
1788
2012
|
all_params.append('_return_http_data_only')
|
|
1789
2013
|
all_params.append('_preload_content')
|
|
@@ -1794,18 +2018,18 @@ class JobsServiceApi(object):
|
|
|
1794
2018
|
if key not in all_params:
|
|
1795
2019
|
raise TypeError(
|
|
1796
2020
|
"Got an unexpected keyword argument '%s'"
|
|
1797
|
-
" to method
|
|
2021
|
+
" to method jobs_service_get_deployment_routing_telemetry_content" % key
|
|
1798
2022
|
)
|
|
1799
2023
|
params[key] = val
|
|
1800
2024
|
del params['kwargs']
|
|
1801
2025
|
# verify the required parameter 'project_id' is set
|
|
1802
2026
|
if ('project_id' not in params or
|
|
1803
2027
|
params['project_id'] is None):
|
|
1804
|
-
raise ValueError("Missing the required parameter `project_id` when calling `
|
|
2028
|
+
raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_get_deployment_routing_telemetry_content`") # noqa: E501
|
|
1805
2029
|
# verify the required parameter 'id' is set
|
|
1806
2030
|
if ('id' not in params or
|
|
1807
2031
|
params['id'] is None):
|
|
1808
|
-
raise ValueError("Missing the required parameter `id` when calling `
|
|
2032
|
+
raise ValueError("Missing the required parameter `id` when calling `jobs_service_get_deployment_routing_telemetry_content`") # noqa: E501
|
|
1809
2033
|
|
|
1810
2034
|
collection_formats = {}
|
|
1811
2035
|
|
|
@@ -1816,14 +2040,8 @@ class JobsServiceApi(object):
|
|
|
1816
2040
|
path_params['id'] = params['id'] # noqa: E501
|
|
1817
2041
|
|
|
1818
2042
|
query_params = []
|
|
1819
|
-
if '
|
|
1820
|
-
query_params.append(('
|
|
1821
|
-
if 'since' in params:
|
|
1822
|
-
query_params.append(('since', params['since'])) # noqa: E501
|
|
1823
|
-
if 'until' in params:
|
|
1824
|
-
query_params.append(('until', params['until'])) # noqa: E501
|
|
1825
|
-
if 'deployment_id' in params:
|
|
1826
|
-
query_params.append(('deploymentId', params['deployment_id'])) # noqa: E501
|
|
2043
|
+
if 'request_id' in params:
|
|
2044
|
+
query_params.append(('requestId', params['request_id'])) # noqa: E501
|
|
1827
2045
|
|
|
1828
2046
|
header_params = {}
|
|
1829
2047
|
|
|
@@ -1839,14 +2057,14 @@ class JobsServiceApi(object):
|
|
|
1839
2057
|
auth_settings = [] # noqa: E501
|
|
1840
2058
|
|
|
1841
2059
|
return self.api_client.call_api(
|
|
1842
|
-
'/v1/projects/{projectId}/
|
|
2060
|
+
'/v1/projects/{projectId}/deployments/{id}/routing-telemetry-content', 'GET',
|
|
1843
2061
|
path_params,
|
|
1844
2062
|
query_params,
|
|
1845
2063
|
header_params,
|
|
1846
2064
|
body=body_params,
|
|
1847
2065
|
post_params=form_params,
|
|
1848
2066
|
files=local_var_files,
|
|
1849
|
-
response_type='
|
|
2067
|
+
response_type='V1GetDeploymentRoutingTelemetryContentResponse', # noqa: E501
|
|
1850
2068
|
auth_settings=auth_settings,
|
|
1851
2069
|
async_req=params.get('async_req'),
|
|
1852
2070
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -1854,45 +2072,45 @@ class JobsServiceApi(object):
|
|
|
1854
2072
|
_request_timeout=params.get('_request_timeout'),
|
|
1855
2073
|
collection_formats=collection_formats)
|
|
1856
2074
|
|
|
1857
|
-
def
|
|
1858
|
-
"""
|
|
2075
|
+
def jobs_service_get_deployment_status(self, project_id: 'str', id: 'str', **kwargs) -> 'V1DeploymentStatus': # noqa: E501
|
|
2076
|
+
"""jobs_service_get_deployment_status # noqa: E501
|
|
1859
2077
|
|
|
1860
2078
|
This method makes a synchronous HTTP request by default. To make an
|
|
1861
2079
|
asynchronous HTTP request, please pass async_req=True
|
|
1862
|
-
>>> thread = api.
|
|
2080
|
+
>>> thread = api.jobs_service_get_deployment_status(project_id, id, async_req=True)
|
|
1863
2081
|
>>> result = thread.get()
|
|
1864
2082
|
|
|
1865
2083
|
:param async_req bool
|
|
1866
|
-
:param str
|
|
1867
|
-
:param str
|
|
1868
|
-
:return:
|
|
2084
|
+
:param str project_id: (required)
|
|
2085
|
+
:param str id: (required)
|
|
2086
|
+
:return: V1DeploymentStatus
|
|
1869
2087
|
If the method is called asynchronously,
|
|
1870
2088
|
returns the request thread.
|
|
1871
2089
|
"""
|
|
1872
2090
|
kwargs['_return_http_data_only'] = True
|
|
1873
2091
|
if kwargs.get('async_req'):
|
|
1874
|
-
return self.
|
|
2092
|
+
return self.jobs_service_get_deployment_status_with_http_info(project_id, id, **kwargs) # noqa: E501
|
|
1875
2093
|
else:
|
|
1876
|
-
(data) = self.
|
|
2094
|
+
(data) = self.jobs_service_get_deployment_status_with_http_info(project_id, id, **kwargs) # noqa: E501
|
|
1877
2095
|
return data
|
|
1878
2096
|
|
|
1879
|
-
def
|
|
1880
|
-
"""
|
|
2097
|
+
def jobs_service_get_deployment_status_with_http_info(self, project_id: 'str', id: 'str', **kwargs) -> 'V1DeploymentStatus': # noqa: E501
|
|
2098
|
+
"""jobs_service_get_deployment_status # noqa: E501
|
|
1881
2099
|
|
|
1882
2100
|
This method makes a synchronous HTTP request by default. To make an
|
|
1883
2101
|
asynchronous HTTP request, please pass async_req=True
|
|
1884
|
-
>>> thread = api.
|
|
2102
|
+
>>> thread = api.jobs_service_get_deployment_status_with_http_info(project_id, id, async_req=True)
|
|
1885
2103
|
>>> result = thread.get()
|
|
1886
2104
|
|
|
1887
2105
|
:param async_req bool
|
|
1888
|
-
:param str
|
|
1889
|
-
:param str
|
|
1890
|
-
:return:
|
|
2106
|
+
:param str project_id: (required)
|
|
2107
|
+
:param str id: (required)
|
|
2108
|
+
:return: V1DeploymentStatus
|
|
1891
2109
|
If the method is called asynchronously,
|
|
1892
2110
|
returns the request thread.
|
|
1893
2111
|
"""
|
|
1894
2112
|
|
|
1895
|
-
all_params = ['
|
|
2113
|
+
all_params = ['project_id', 'id'] # noqa: E501
|
|
1896
2114
|
all_params.append('async_req')
|
|
1897
2115
|
all_params.append('_return_http_data_only')
|
|
1898
2116
|
all_params.append('_preload_content')
|
|
@@ -1903,20 +2121,28 @@ class JobsServiceApi(object):
|
|
|
1903
2121
|
if key not in all_params:
|
|
1904
2122
|
raise TypeError(
|
|
1905
2123
|
"Got an unexpected keyword argument '%s'"
|
|
1906
|
-
" to method
|
|
2124
|
+
" to method jobs_service_get_deployment_status" % key
|
|
1907
2125
|
)
|
|
1908
2126
|
params[key] = val
|
|
1909
2127
|
del params['kwargs']
|
|
2128
|
+
# verify the required parameter 'project_id' is set
|
|
2129
|
+
if ('project_id' not in params or
|
|
2130
|
+
params['project_id'] is None):
|
|
2131
|
+
raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_get_deployment_status`") # noqa: E501
|
|
2132
|
+
# verify the required parameter 'id' is set
|
|
2133
|
+
if ('id' not in params or
|
|
2134
|
+
params['id'] is None):
|
|
2135
|
+
raise ValueError("Missing the required parameter `id` when calling `jobs_service_get_deployment_status`") # noqa: E501
|
|
1910
2136
|
|
|
1911
2137
|
collection_formats = {}
|
|
1912
2138
|
|
|
1913
2139
|
path_params = {}
|
|
2140
|
+
if 'project_id' in params:
|
|
2141
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
2142
|
+
if 'id' in params:
|
|
2143
|
+
path_params['id'] = params['id'] # noqa: E501
|
|
1914
2144
|
|
|
1915
2145
|
query_params = []
|
|
1916
|
-
if 'org_id' in params:
|
|
1917
|
-
query_params.append(('orgId', params['org_id'])) # noqa: E501
|
|
1918
|
-
if 'project_id' in params:
|
|
1919
|
-
query_params.append(('projectId', params['project_id'])) # noqa: E501
|
|
1920
2146
|
|
|
1921
2147
|
header_params = {}
|
|
1922
2148
|
|
|
@@ -1932,14 +2158,14 @@ class JobsServiceApi(object):
|
|
|
1932
2158
|
auth_settings = [] # noqa: E501
|
|
1933
2159
|
|
|
1934
2160
|
return self.api_client.call_api(
|
|
1935
|
-
'/v1/
|
|
2161
|
+
'/v1/projects/{projectId}/deployments/{id}/status', 'GET',
|
|
1936
2162
|
path_params,
|
|
1937
2163
|
query_params,
|
|
1938
2164
|
header_params,
|
|
1939
2165
|
body=body_params,
|
|
1940
2166
|
post_params=form_params,
|
|
1941
2167
|
files=local_var_files,
|
|
1942
|
-
response_type='
|
|
2168
|
+
response_type='V1DeploymentStatus', # noqa: E501
|
|
1943
2169
|
auth_settings=auth_settings,
|
|
1944
2170
|
async_req=params.get('async_req'),
|
|
1945
2171
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -1947,57 +2173,47 @@ class JobsServiceApi(object):
|
|
|
1947
2173
|
_request_timeout=params.get('_request_timeout'),
|
|
1948
2174
|
collection_formats=collection_formats)
|
|
1949
2175
|
|
|
1950
|
-
def
|
|
1951
|
-
"""
|
|
2176
|
+
def jobs_service_get_job(self, project_id: 'str', id: 'str', **kwargs) -> 'V1Job': # noqa: E501
|
|
2177
|
+
"""jobs_service_get_job # noqa: E501
|
|
1952
2178
|
|
|
1953
2179
|
This method makes a synchronous HTTP request by default. To make an
|
|
1954
2180
|
asynchronous HTTP request, please pass async_req=True
|
|
1955
|
-
>>> thread = api.
|
|
2181
|
+
>>> thread = api.jobs_service_get_job(project_id, id, async_req=True)
|
|
1956
2182
|
>>> result = thread.get()
|
|
1957
2183
|
|
|
1958
2184
|
:param async_req bool
|
|
1959
2185
|
:param str project_id: (required)
|
|
2186
|
+
:param str id: (required)
|
|
1960
2187
|
:param str cloudspace_id:
|
|
1961
|
-
:
|
|
1962
|
-
:param datetime start:
|
|
1963
|
-
:param datetime end:
|
|
1964
|
-
:param str frequency:
|
|
1965
|
-
:param bool first_query:
|
|
1966
|
-
:param str deployment_id:
|
|
1967
|
-
:return: V1GetJobSystemMetricsResponse
|
|
2188
|
+
:return: V1Job
|
|
1968
2189
|
If the method is called asynchronously,
|
|
1969
2190
|
returns the request thread.
|
|
1970
2191
|
"""
|
|
1971
2192
|
kwargs['_return_http_data_only'] = True
|
|
1972
2193
|
if kwargs.get('async_req'):
|
|
1973
|
-
return self.
|
|
2194
|
+
return self.jobs_service_get_job_with_http_info(project_id, id, **kwargs) # noqa: E501
|
|
1974
2195
|
else:
|
|
1975
|
-
(data) = self.
|
|
2196
|
+
(data) = self.jobs_service_get_job_with_http_info(project_id, id, **kwargs) # noqa: E501
|
|
1976
2197
|
return data
|
|
1977
2198
|
|
|
1978
|
-
def
|
|
1979
|
-
"""
|
|
2199
|
+
def jobs_service_get_job_with_http_info(self, project_id: 'str', id: 'str', **kwargs) -> 'V1Job': # noqa: E501
|
|
2200
|
+
"""jobs_service_get_job # noqa: E501
|
|
1980
2201
|
|
|
1981
2202
|
This method makes a synchronous HTTP request by default. To make an
|
|
1982
2203
|
asynchronous HTTP request, please pass async_req=True
|
|
1983
|
-
>>> thread = api.
|
|
2204
|
+
>>> thread = api.jobs_service_get_job_with_http_info(project_id, id, async_req=True)
|
|
1984
2205
|
>>> result = thread.get()
|
|
1985
2206
|
|
|
1986
2207
|
:param async_req bool
|
|
1987
2208
|
:param str project_id: (required)
|
|
2209
|
+
:param str id: (required)
|
|
1988
2210
|
:param str cloudspace_id:
|
|
1989
|
-
:
|
|
1990
|
-
:param datetime start:
|
|
1991
|
-
:param datetime end:
|
|
1992
|
-
:param str frequency:
|
|
1993
|
-
:param bool first_query:
|
|
1994
|
-
:param str deployment_id:
|
|
1995
|
-
:return: V1GetJobSystemMetricsResponse
|
|
2211
|
+
:return: V1Job
|
|
1996
2212
|
If the method is called asynchronously,
|
|
1997
2213
|
returns the request thread.
|
|
1998
2214
|
"""
|
|
1999
2215
|
|
|
2000
|
-
all_params = ['project_id', '
|
|
2216
|
+
all_params = ['project_id', 'id', 'cloudspace_id'] # noqa: E501
|
|
2001
2217
|
all_params.append('async_req')
|
|
2002
2218
|
all_params.append('_return_http_data_only')
|
|
2003
2219
|
all_params.append('_preload_content')
|
|
@@ -2008,37 +2224,30 @@ class JobsServiceApi(object):
|
|
|
2008
2224
|
if key not in all_params:
|
|
2009
2225
|
raise TypeError(
|
|
2010
2226
|
"Got an unexpected keyword argument '%s'"
|
|
2011
|
-
" to method
|
|
2227
|
+
" to method jobs_service_get_job" % key
|
|
2012
2228
|
)
|
|
2013
2229
|
params[key] = val
|
|
2014
2230
|
del params['kwargs']
|
|
2015
2231
|
# verify the required parameter 'project_id' is set
|
|
2016
2232
|
if ('project_id' not in params or
|
|
2017
2233
|
params['project_id'] is None):
|
|
2018
|
-
raise ValueError("Missing the required parameter `project_id` when calling `
|
|
2234
|
+
raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_get_job`") # noqa: E501
|
|
2235
|
+
# verify the required parameter 'id' is set
|
|
2236
|
+
if ('id' not in params or
|
|
2237
|
+
params['id'] is None):
|
|
2238
|
+
raise ValueError("Missing the required parameter `id` when calling `jobs_service_get_job`") # noqa: E501
|
|
2019
2239
|
|
|
2020
2240
|
collection_formats = {}
|
|
2021
2241
|
|
|
2022
2242
|
path_params = {}
|
|
2023
2243
|
if 'project_id' in params:
|
|
2024
2244
|
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
2245
|
+
if 'id' in params:
|
|
2246
|
+
path_params['id'] = params['id'] # noqa: E501
|
|
2025
2247
|
|
|
2026
2248
|
query_params = []
|
|
2027
2249
|
if 'cloudspace_id' in params:
|
|
2028
2250
|
query_params.append(('cloudspaceId', params['cloudspace_id'])) # noqa: E501
|
|
2029
|
-
if 'ids' in params:
|
|
2030
|
-
query_params.append(('ids', params['ids'])) # noqa: E501
|
|
2031
|
-
collection_formats['ids'] = 'multi' # noqa: E501
|
|
2032
|
-
if 'start' in params:
|
|
2033
|
-
query_params.append(('start', params['start'])) # noqa: E501
|
|
2034
|
-
if 'end' in params:
|
|
2035
|
-
query_params.append(('end', params['end'])) # noqa: E501
|
|
2036
|
-
if 'frequency' in params:
|
|
2037
|
-
query_params.append(('frequency', params['frequency'])) # noqa: E501
|
|
2038
|
-
if 'first_query' in params:
|
|
2039
|
-
query_params.append(('firstQuery', params['first_query'])) # noqa: E501
|
|
2040
|
-
if 'deployment_id' in params:
|
|
2041
|
-
query_params.append(('deploymentId', params['deployment_id'])) # noqa: E501
|
|
2042
2251
|
|
|
2043
2252
|
header_params = {}
|
|
2044
2253
|
|
|
@@ -2054,14 +2263,14 @@ class JobsServiceApi(object):
|
|
|
2054
2263
|
auth_settings = [] # noqa: E501
|
|
2055
2264
|
|
|
2056
2265
|
return self.api_client.call_api(
|
|
2057
|
-
'/v1/projects/{projectId}/jobs/
|
|
2266
|
+
'/v1/projects/{projectId}/jobs/{id}', 'GET',
|
|
2058
2267
|
path_params,
|
|
2059
2268
|
query_params,
|
|
2060
2269
|
header_params,
|
|
2061
2270
|
body=body_params,
|
|
2062
2271
|
post_params=form_params,
|
|
2063
2272
|
files=local_var_files,
|
|
2064
|
-
response_type='
|
|
2273
|
+
response_type='V1Job', # noqa: E501
|
|
2065
2274
|
auth_settings=auth_settings,
|
|
2066
2275
|
async_req=params.get('async_req'),
|
|
2067
2276
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -2069,45 +2278,47 @@ class JobsServiceApi(object):
|
|
|
2069
2278
|
_request_timeout=params.get('_request_timeout'),
|
|
2070
2279
|
collection_formats=collection_formats)
|
|
2071
2280
|
|
|
2072
|
-
def
|
|
2073
|
-
"""
|
|
2281
|
+
def jobs_service_get_job_by_name(self, project_owner_name: 'str', project_name: 'str', job_name: 'str', **kwargs) -> 'V1Job': # noqa: E501
|
|
2282
|
+
"""jobs_service_get_job_by_name # noqa: E501
|
|
2074
2283
|
|
|
2075
2284
|
This method makes a synchronous HTTP request by default. To make an
|
|
2076
2285
|
asynchronous HTTP request, please pass async_req=True
|
|
2077
|
-
>>> thread = api.
|
|
2286
|
+
>>> thread = api.jobs_service_get_job_by_name(project_owner_name, project_name, job_name, async_req=True)
|
|
2078
2287
|
>>> result = thread.get()
|
|
2079
2288
|
|
|
2080
2289
|
:param async_req bool
|
|
2081
|
-
:param str
|
|
2082
|
-
:param str
|
|
2083
|
-
:
|
|
2290
|
+
:param str project_owner_name: (required)
|
|
2291
|
+
:param str project_name: (required)
|
|
2292
|
+
:param str job_name: (required)
|
|
2293
|
+
:return: V1Job
|
|
2084
2294
|
If the method is called asynchronously,
|
|
2085
2295
|
returns the request thread.
|
|
2086
2296
|
"""
|
|
2087
2297
|
kwargs['_return_http_data_only'] = True
|
|
2088
2298
|
if kwargs.get('async_req'):
|
|
2089
|
-
return self.
|
|
2299
|
+
return self.jobs_service_get_job_by_name_with_http_info(project_owner_name, project_name, job_name, **kwargs) # noqa: E501
|
|
2090
2300
|
else:
|
|
2091
|
-
(data) = self.
|
|
2301
|
+
(data) = self.jobs_service_get_job_by_name_with_http_info(project_owner_name, project_name, job_name, **kwargs) # noqa: E501
|
|
2092
2302
|
return data
|
|
2093
2303
|
|
|
2094
|
-
def
|
|
2095
|
-
"""
|
|
2304
|
+
def jobs_service_get_job_by_name_with_http_info(self, project_owner_name: 'str', project_name: 'str', job_name: 'str', **kwargs) -> 'V1Job': # noqa: E501
|
|
2305
|
+
"""jobs_service_get_job_by_name # noqa: E501
|
|
2096
2306
|
|
|
2097
2307
|
This method makes a synchronous HTTP request by default. To make an
|
|
2098
2308
|
asynchronous HTTP request, please pass async_req=True
|
|
2099
|
-
>>> thread = api.
|
|
2309
|
+
>>> thread = api.jobs_service_get_job_by_name_with_http_info(project_owner_name, project_name, job_name, async_req=True)
|
|
2100
2310
|
>>> result = thread.get()
|
|
2101
2311
|
|
|
2102
2312
|
:param async_req bool
|
|
2103
|
-
:param str
|
|
2104
|
-
:param str
|
|
2105
|
-
:
|
|
2313
|
+
:param str project_owner_name: (required)
|
|
2314
|
+
:param str project_name: (required)
|
|
2315
|
+
:param str job_name: (required)
|
|
2316
|
+
:return: V1Job
|
|
2106
2317
|
If the method is called asynchronously,
|
|
2107
2318
|
returns the request thread.
|
|
2108
2319
|
"""
|
|
2109
2320
|
|
|
2110
|
-
all_params = ['
|
|
2321
|
+
all_params = ['project_owner_name', 'project_name', 'job_name'] # noqa: E501
|
|
2111
2322
|
all_params.append('async_req')
|
|
2112
2323
|
all_params.append('_return_http_data_only')
|
|
2113
2324
|
all_params.append('_preload_content')
|
|
@@ -2118,28 +2329,1366 @@ class JobsServiceApi(object):
|
|
|
2118
2329
|
if key not in all_params:
|
|
2119
2330
|
raise TypeError(
|
|
2120
2331
|
"Got an unexpected keyword argument '%s'"
|
|
2121
|
-
" to method
|
|
2332
|
+
" to method jobs_service_get_job_by_name" % key
|
|
2122
2333
|
)
|
|
2123
2334
|
params[key] = val
|
|
2124
2335
|
del params['kwargs']
|
|
2125
|
-
# verify the required parameter '
|
|
2126
|
-
if ('
|
|
2127
|
-
params['
|
|
2128
|
-
raise ValueError("Missing the required parameter `
|
|
2336
|
+
# verify the required parameter 'project_owner_name' is set
|
|
2337
|
+
if ('project_owner_name' not in params or
|
|
2338
|
+
params['project_owner_name'] is None):
|
|
2339
|
+
raise ValueError("Missing the required parameter `project_owner_name` when calling `jobs_service_get_job_by_name`") # noqa: E501
|
|
2340
|
+
# verify the required parameter 'project_name' is set
|
|
2341
|
+
if ('project_name' not in params or
|
|
2342
|
+
params['project_name'] is None):
|
|
2343
|
+
raise ValueError("Missing the required parameter `project_name` when calling `jobs_service_get_job_by_name`") # noqa: E501
|
|
2344
|
+
# verify the required parameter 'job_name' is set
|
|
2345
|
+
if ('job_name' not in params or
|
|
2346
|
+
params['job_name'] is None):
|
|
2347
|
+
raise ValueError("Missing the required parameter `job_name` when calling `jobs_service_get_job_by_name`") # noqa: E501
|
|
2348
|
+
|
|
2349
|
+
collection_formats = {}
|
|
2350
|
+
|
|
2351
|
+
path_params = {}
|
|
2352
|
+
if 'project_owner_name' in params:
|
|
2353
|
+
path_params['projectOwnerName'] = params['project_owner_name'] # noqa: E501
|
|
2354
|
+
if 'project_name' in params:
|
|
2355
|
+
path_params['projectName'] = params['project_name'] # noqa: E501
|
|
2356
|
+
if 'job_name' in params:
|
|
2357
|
+
path_params['jobName'] = params['job_name'] # noqa: E501
|
|
2358
|
+
|
|
2359
|
+
query_params = []
|
|
2360
|
+
|
|
2361
|
+
header_params = {}
|
|
2362
|
+
|
|
2363
|
+
form_params = []
|
|
2364
|
+
local_var_files = {}
|
|
2365
|
+
|
|
2366
|
+
body_params = None
|
|
2367
|
+
# HTTP header `Accept`
|
|
2368
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
2369
|
+
['application/json']) # noqa: E501
|
|
2370
|
+
|
|
2371
|
+
# Authentication setting
|
|
2372
|
+
auth_settings = [] # noqa: E501
|
|
2373
|
+
|
|
2374
|
+
return self.api_client.call_api(
|
|
2375
|
+
'/v1/projects/{projectOwnerName}/{projectName}/jobs/{jobName}', 'GET',
|
|
2376
|
+
path_params,
|
|
2377
|
+
query_params,
|
|
2378
|
+
header_params,
|
|
2379
|
+
body=body_params,
|
|
2380
|
+
post_params=form_params,
|
|
2381
|
+
files=local_var_files,
|
|
2382
|
+
response_type='V1Job', # noqa: E501
|
|
2383
|
+
auth_settings=auth_settings,
|
|
2384
|
+
async_req=params.get('async_req'),
|
|
2385
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
2386
|
+
_preload_content=params.get('_preload_content', True),
|
|
2387
|
+
_request_timeout=params.get('_request_timeout'),
|
|
2388
|
+
collection_formats=collection_formats)
|
|
2389
|
+
|
|
2390
|
+
def jobs_service_get_job_logs(self, project_id: 'str', id: 'str', **kwargs) -> 'V1JobLogsResponse': # noqa: E501
|
|
2391
|
+
"""jobs_service_get_job_logs # noqa: E501
|
|
2392
|
+
|
|
2393
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
2394
|
+
asynchronous HTTP request, please pass async_req=True
|
|
2395
|
+
>>> thread = api.jobs_service_get_job_logs(project_id, id, async_req=True)
|
|
2396
|
+
>>> result = thread.get()
|
|
2397
|
+
|
|
2398
|
+
:param async_req bool
|
|
2399
|
+
:param str project_id: (required)
|
|
2400
|
+
:param str id: (required)
|
|
2401
|
+
:param str cloudspace_id:
|
|
2402
|
+
:param str since:
|
|
2403
|
+
:param str until:
|
|
2404
|
+
:param str deployment_id:
|
|
2405
|
+
:param int rank:
|
|
2406
|
+
:return: V1JobLogsResponse
|
|
2407
|
+
If the method is called asynchronously,
|
|
2408
|
+
returns the request thread.
|
|
2409
|
+
"""
|
|
2410
|
+
kwargs['_return_http_data_only'] = True
|
|
2411
|
+
if kwargs.get('async_req'):
|
|
2412
|
+
return self.jobs_service_get_job_logs_with_http_info(project_id, id, **kwargs) # noqa: E501
|
|
2413
|
+
else:
|
|
2414
|
+
(data) = self.jobs_service_get_job_logs_with_http_info(project_id, id, **kwargs) # noqa: E501
|
|
2415
|
+
return data
|
|
2416
|
+
|
|
2417
|
+
def jobs_service_get_job_logs_with_http_info(self, project_id: 'str', id: 'str', **kwargs) -> 'V1JobLogsResponse': # noqa: E501
|
|
2418
|
+
"""jobs_service_get_job_logs # noqa: E501
|
|
2419
|
+
|
|
2420
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
2421
|
+
asynchronous HTTP request, please pass async_req=True
|
|
2422
|
+
>>> thread = api.jobs_service_get_job_logs_with_http_info(project_id, id, async_req=True)
|
|
2423
|
+
>>> result = thread.get()
|
|
2424
|
+
|
|
2425
|
+
:param async_req bool
|
|
2426
|
+
:param str project_id: (required)
|
|
2427
|
+
:param str id: (required)
|
|
2428
|
+
:param str cloudspace_id:
|
|
2429
|
+
:param str since:
|
|
2430
|
+
:param str until:
|
|
2431
|
+
:param str deployment_id:
|
|
2432
|
+
:param int rank:
|
|
2433
|
+
:return: V1JobLogsResponse
|
|
2434
|
+
If the method is called asynchronously,
|
|
2435
|
+
returns the request thread.
|
|
2436
|
+
"""
|
|
2437
|
+
|
|
2438
|
+
all_params = ['project_id', 'id', 'cloudspace_id', 'since', 'until', 'deployment_id', 'rank'] # noqa: E501
|
|
2439
|
+
all_params.append('async_req')
|
|
2440
|
+
all_params.append('_return_http_data_only')
|
|
2441
|
+
all_params.append('_preload_content')
|
|
2442
|
+
all_params.append('_request_timeout')
|
|
2443
|
+
|
|
2444
|
+
params = locals()
|
|
2445
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
2446
|
+
if key not in all_params:
|
|
2447
|
+
raise TypeError(
|
|
2448
|
+
"Got an unexpected keyword argument '%s'"
|
|
2449
|
+
" to method jobs_service_get_job_logs" % key
|
|
2450
|
+
)
|
|
2451
|
+
params[key] = val
|
|
2452
|
+
del params['kwargs']
|
|
2453
|
+
# verify the required parameter 'project_id' is set
|
|
2454
|
+
if ('project_id' not in params or
|
|
2455
|
+
params['project_id'] is None):
|
|
2456
|
+
raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_get_job_logs`") # noqa: E501
|
|
2457
|
+
# verify the required parameter 'id' is set
|
|
2458
|
+
if ('id' not in params or
|
|
2459
|
+
params['id'] is None):
|
|
2460
|
+
raise ValueError("Missing the required parameter `id` when calling `jobs_service_get_job_logs`") # noqa: E501
|
|
2461
|
+
|
|
2462
|
+
collection_formats = {}
|
|
2463
|
+
|
|
2464
|
+
path_params = {}
|
|
2465
|
+
if 'project_id' in params:
|
|
2466
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
2467
|
+
if 'id' in params:
|
|
2468
|
+
path_params['id'] = params['id'] # noqa: E501
|
|
2469
|
+
|
|
2470
|
+
query_params = []
|
|
2471
|
+
if 'cloudspace_id' in params:
|
|
2472
|
+
query_params.append(('cloudspaceId', params['cloudspace_id'])) # noqa: E501
|
|
2473
|
+
if 'since' in params:
|
|
2474
|
+
query_params.append(('since', params['since'])) # noqa: E501
|
|
2475
|
+
if 'until' in params:
|
|
2476
|
+
query_params.append(('until', params['until'])) # noqa: E501
|
|
2477
|
+
if 'deployment_id' in params:
|
|
2478
|
+
query_params.append(('deploymentId', params['deployment_id'])) # noqa: E501
|
|
2479
|
+
if 'rank' in params:
|
|
2480
|
+
query_params.append(('rank', params['rank'])) # noqa: E501
|
|
2481
|
+
|
|
2482
|
+
header_params = {}
|
|
2483
|
+
|
|
2484
|
+
form_params = []
|
|
2485
|
+
local_var_files = {}
|
|
2486
|
+
|
|
2487
|
+
body_params = None
|
|
2488
|
+
# HTTP header `Accept`
|
|
2489
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
2490
|
+
['application/json']) # noqa: E501
|
|
2491
|
+
|
|
2492
|
+
# Authentication setting
|
|
2493
|
+
auth_settings = [] # noqa: E501
|
|
2494
|
+
|
|
2495
|
+
return self.api_client.call_api(
|
|
2496
|
+
'/v1/projects/{projectId}/jobs/{id}/page-logs', 'GET',
|
|
2497
|
+
path_params,
|
|
2498
|
+
query_params,
|
|
2499
|
+
header_params,
|
|
2500
|
+
body=body_params,
|
|
2501
|
+
post_params=form_params,
|
|
2502
|
+
files=local_var_files,
|
|
2503
|
+
response_type='V1JobLogsResponse', # noqa: E501
|
|
2504
|
+
auth_settings=auth_settings,
|
|
2505
|
+
async_req=params.get('async_req'),
|
|
2506
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
2507
|
+
_preload_content=params.get('_preload_content', True),
|
|
2508
|
+
_request_timeout=params.get('_request_timeout'),
|
|
2509
|
+
collection_formats=collection_formats)
|
|
2510
|
+
|
|
2511
|
+
def jobs_service_get_job_stats(self, **kwargs) -> 'V1GetJobStatsResponse': # noqa: E501
|
|
2512
|
+
"""jobs_service_get_job_stats # noqa: E501
|
|
2513
|
+
|
|
2514
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
2515
|
+
asynchronous HTTP request, please pass async_req=True
|
|
2516
|
+
>>> thread = api.jobs_service_get_job_stats(async_req=True)
|
|
2517
|
+
>>> result = thread.get()
|
|
2518
|
+
|
|
2519
|
+
:param async_req bool
|
|
2520
|
+
:param str org_id:
|
|
2521
|
+
:param str project_id:
|
|
2522
|
+
:param list[str] job_types:
|
|
2523
|
+
:return: V1GetJobStatsResponse
|
|
2524
|
+
If the method is called asynchronously,
|
|
2525
|
+
returns the request thread.
|
|
2526
|
+
"""
|
|
2527
|
+
kwargs['_return_http_data_only'] = True
|
|
2528
|
+
if kwargs.get('async_req'):
|
|
2529
|
+
return self.jobs_service_get_job_stats_with_http_info(**kwargs) # noqa: E501
|
|
2530
|
+
else:
|
|
2531
|
+
(data) = self.jobs_service_get_job_stats_with_http_info(**kwargs) # noqa: E501
|
|
2532
|
+
return data
|
|
2533
|
+
|
|
2534
|
+
def jobs_service_get_job_stats_with_http_info(self, **kwargs) -> 'V1GetJobStatsResponse': # noqa: E501
|
|
2535
|
+
"""jobs_service_get_job_stats # noqa: E501
|
|
2536
|
+
|
|
2537
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
2538
|
+
asynchronous HTTP request, please pass async_req=True
|
|
2539
|
+
>>> thread = api.jobs_service_get_job_stats_with_http_info(async_req=True)
|
|
2540
|
+
>>> result = thread.get()
|
|
2541
|
+
|
|
2542
|
+
:param async_req bool
|
|
2543
|
+
:param str org_id:
|
|
2544
|
+
:param str project_id:
|
|
2545
|
+
:param list[str] job_types:
|
|
2546
|
+
:return: V1GetJobStatsResponse
|
|
2547
|
+
If the method is called asynchronously,
|
|
2548
|
+
returns the request thread.
|
|
2549
|
+
"""
|
|
2550
|
+
|
|
2551
|
+
all_params = ['org_id', 'project_id', 'job_types'] # noqa: E501
|
|
2552
|
+
all_params.append('async_req')
|
|
2553
|
+
all_params.append('_return_http_data_only')
|
|
2554
|
+
all_params.append('_preload_content')
|
|
2555
|
+
all_params.append('_request_timeout')
|
|
2556
|
+
|
|
2557
|
+
params = locals()
|
|
2558
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
2559
|
+
if key not in all_params:
|
|
2560
|
+
raise TypeError(
|
|
2561
|
+
"Got an unexpected keyword argument '%s'"
|
|
2562
|
+
" to method jobs_service_get_job_stats" % key
|
|
2563
|
+
)
|
|
2564
|
+
params[key] = val
|
|
2565
|
+
del params['kwargs']
|
|
2566
|
+
|
|
2567
|
+
collection_formats = {}
|
|
2568
|
+
|
|
2569
|
+
path_params = {}
|
|
2570
|
+
|
|
2571
|
+
query_params = []
|
|
2572
|
+
if 'org_id' in params:
|
|
2573
|
+
query_params.append(('orgId', params['org_id'])) # noqa: E501
|
|
2574
|
+
if 'project_id' in params:
|
|
2575
|
+
query_params.append(('projectId', params['project_id'])) # noqa: E501
|
|
2576
|
+
if 'job_types' in params:
|
|
2577
|
+
query_params.append(('jobTypes', params['job_types'])) # noqa: E501
|
|
2578
|
+
collection_formats['jobTypes'] = 'multi' # noqa: E501
|
|
2579
|
+
|
|
2580
|
+
header_params = {}
|
|
2581
|
+
|
|
2582
|
+
form_params = []
|
|
2583
|
+
local_var_files = {}
|
|
2584
|
+
|
|
2585
|
+
body_params = None
|
|
2586
|
+
# HTTP header `Accept`
|
|
2587
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
2588
|
+
['application/json']) # noqa: E501
|
|
2589
|
+
|
|
2590
|
+
# Authentication setting
|
|
2591
|
+
auth_settings = [] # noqa: E501
|
|
2592
|
+
|
|
2593
|
+
return self.api_client.call_api(
|
|
2594
|
+
'/v1/stats/jobs', 'GET',
|
|
2595
|
+
path_params,
|
|
2596
|
+
query_params,
|
|
2597
|
+
header_params,
|
|
2598
|
+
body=body_params,
|
|
2599
|
+
post_params=form_params,
|
|
2600
|
+
files=local_var_files,
|
|
2601
|
+
response_type='V1GetJobStatsResponse', # noqa: E501
|
|
2602
|
+
auth_settings=auth_settings,
|
|
2603
|
+
async_req=params.get('async_req'),
|
|
2604
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
2605
|
+
_preload_content=params.get('_preload_content', True),
|
|
2606
|
+
_request_timeout=params.get('_request_timeout'),
|
|
2607
|
+
collection_formats=collection_formats)
|
|
2608
|
+
|
|
2609
|
+
def jobs_service_get_job_system_metrics(self, project_id: 'str', **kwargs) -> 'V1GetJobSystemMetricsResponse': # noqa: E501
|
|
2610
|
+
"""jobs_service_get_job_system_metrics # noqa: E501
|
|
2611
|
+
|
|
2612
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
2613
|
+
asynchronous HTTP request, please pass async_req=True
|
|
2614
|
+
>>> thread = api.jobs_service_get_job_system_metrics(project_id, async_req=True)
|
|
2615
|
+
>>> result = thread.get()
|
|
2616
|
+
|
|
2617
|
+
:param async_req bool
|
|
2618
|
+
:param str project_id: (required)
|
|
2619
|
+
:param str cloudspace_id:
|
|
2620
|
+
:param list[str] ids:
|
|
2621
|
+
:param datetime start:
|
|
2622
|
+
:param datetime end:
|
|
2623
|
+
:param str frequency:
|
|
2624
|
+
:param bool first_query:
|
|
2625
|
+
:param str deployment_id:
|
|
2626
|
+
:param int rank:
|
|
2627
|
+
:return: V1GetJobSystemMetricsResponse
|
|
2628
|
+
If the method is called asynchronously,
|
|
2629
|
+
returns the request thread.
|
|
2630
|
+
"""
|
|
2631
|
+
kwargs['_return_http_data_only'] = True
|
|
2632
|
+
if kwargs.get('async_req'):
|
|
2633
|
+
return self.jobs_service_get_job_system_metrics_with_http_info(project_id, **kwargs) # noqa: E501
|
|
2634
|
+
else:
|
|
2635
|
+
(data) = self.jobs_service_get_job_system_metrics_with_http_info(project_id, **kwargs) # noqa: E501
|
|
2636
|
+
return data
|
|
2637
|
+
|
|
2638
|
+
def jobs_service_get_job_system_metrics_with_http_info(self, project_id: 'str', **kwargs) -> 'V1GetJobSystemMetricsResponse': # noqa: E501
|
|
2639
|
+
"""jobs_service_get_job_system_metrics # noqa: E501
|
|
2640
|
+
|
|
2641
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
2642
|
+
asynchronous HTTP request, please pass async_req=True
|
|
2643
|
+
>>> thread = api.jobs_service_get_job_system_metrics_with_http_info(project_id, async_req=True)
|
|
2644
|
+
>>> result = thread.get()
|
|
2645
|
+
|
|
2646
|
+
:param async_req bool
|
|
2647
|
+
:param str project_id: (required)
|
|
2648
|
+
:param str cloudspace_id:
|
|
2649
|
+
:param list[str] ids:
|
|
2650
|
+
:param datetime start:
|
|
2651
|
+
:param datetime end:
|
|
2652
|
+
:param str frequency:
|
|
2653
|
+
:param bool first_query:
|
|
2654
|
+
:param str deployment_id:
|
|
2655
|
+
:param int rank:
|
|
2656
|
+
:return: V1GetJobSystemMetricsResponse
|
|
2657
|
+
If the method is called asynchronously,
|
|
2658
|
+
returns the request thread.
|
|
2659
|
+
"""
|
|
2660
|
+
|
|
2661
|
+
all_params = ['project_id', 'cloudspace_id', 'ids', 'start', 'end', 'frequency', 'first_query', 'deployment_id', 'rank'] # noqa: E501
|
|
2662
|
+
all_params.append('async_req')
|
|
2663
|
+
all_params.append('_return_http_data_only')
|
|
2664
|
+
all_params.append('_preload_content')
|
|
2665
|
+
all_params.append('_request_timeout')
|
|
2666
|
+
|
|
2667
|
+
params = locals()
|
|
2668
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
2669
|
+
if key not in all_params:
|
|
2670
|
+
raise TypeError(
|
|
2671
|
+
"Got an unexpected keyword argument '%s'"
|
|
2672
|
+
" to method jobs_service_get_job_system_metrics" % key
|
|
2673
|
+
)
|
|
2674
|
+
params[key] = val
|
|
2675
|
+
del params['kwargs']
|
|
2676
|
+
# verify the required parameter 'project_id' is set
|
|
2677
|
+
if ('project_id' not in params or
|
|
2678
|
+
params['project_id'] is None):
|
|
2679
|
+
raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_get_job_system_metrics`") # noqa: E501
|
|
2680
|
+
|
|
2681
|
+
collection_formats = {}
|
|
2682
|
+
|
|
2683
|
+
path_params = {}
|
|
2684
|
+
if 'project_id' in params:
|
|
2685
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
2686
|
+
|
|
2687
|
+
query_params = []
|
|
2688
|
+
if 'cloudspace_id' in params:
|
|
2689
|
+
query_params.append(('cloudspaceId', params['cloudspace_id'])) # noqa: E501
|
|
2690
|
+
if 'ids' in params:
|
|
2691
|
+
query_params.append(('ids', params['ids'])) # noqa: E501
|
|
2692
|
+
collection_formats['ids'] = 'multi' # noqa: E501
|
|
2693
|
+
if 'start' in params:
|
|
2694
|
+
query_params.append(('start', params['start'])) # noqa: E501
|
|
2695
|
+
if 'end' in params:
|
|
2696
|
+
query_params.append(('end', params['end'])) # noqa: E501
|
|
2697
|
+
if 'frequency' in params:
|
|
2698
|
+
query_params.append(('frequency', params['frequency'])) # noqa: E501
|
|
2699
|
+
if 'first_query' in params:
|
|
2700
|
+
query_params.append(('firstQuery', params['first_query'])) # noqa: E501
|
|
2701
|
+
if 'deployment_id' in params:
|
|
2702
|
+
query_params.append(('deploymentId', params['deployment_id'])) # noqa: E501
|
|
2703
|
+
if 'rank' in params:
|
|
2704
|
+
query_params.append(('rank', params['rank'])) # noqa: E501
|
|
2705
|
+
|
|
2706
|
+
header_params = {}
|
|
2707
|
+
|
|
2708
|
+
form_params = []
|
|
2709
|
+
local_var_files = {}
|
|
2710
|
+
|
|
2711
|
+
body_params = None
|
|
2712
|
+
# HTTP header `Accept`
|
|
2713
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
2714
|
+
['application/json']) # noqa: E501
|
|
2715
|
+
|
|
2716
|
+
# Authentication setting
|
|
2717
|
+
auth_settings = [] # noqa: E501
|
|
2718
|
+
|
|
2719
|
+
return self.api_client.call_api(
|
|
2720
|
+
'/v1/projects/{projectId}/jobs/system-metrics', 'GET',
|
|
2721
|
+
path_params,
|
|
2722
|
+
query_params,
|
|
2723
|
+
header_params,
|
|
2724
|
+
body=body_params,
|
|
2725
|
+
post_params=form_params,
|
|
2726
|
+
files=local_var_files,
|
|
2727
|
+
response_type='V1GetJobSystemMetricsResponse', # noqa: E501
|
|
2728
|
+
auth_settings=auth_settings,
|
|
2729
|
+
async_req=params.get('async_req'),
|
|
2730
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
2731
|
+
_preload_content=params.get('_preload_content', True),
|
|
2732
|
+
_request_timeout=params.get('_request_timeout'),
|
|
2733
|
+
collection_formats=collection_formats)
|
|
2734
|
+
|
|
2735
|
+
def jobs_service_get_multi_machine_job(self, project_id: 'str', id: 'str', **kwargs) -> 'V1MultiMachineJob': # noqa: E501
|
|
2736
|
+
"""jobs_service_get_multi_machine_job # noqa: E501
|
|
2737
|
+
|
|
2738
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
2739
|
+
asynchronous HTTP request, please pass async_req=True
|
|
2740
|
+
>>> thread = api.jobs_service_get_multi_machine_job(project_id, id, async_req=True)
|
|
2741
|
+
>>> result = thread.get()
|
|
2742
|
+
|
|
2743
|
+
:param async_req bool
|
|
2744
|
+
:param str project_id: (required)
|
|
2745
|
+
:param str id: (required)
|
|
2746
|
+
:return: V1MultiMachineJob
|
|
2747
|
+
If the method is called asynchronously,
|
|
2748
|
+
returns the request thread.
|
|
2749
|
+
"""
|
|
2750
|
+
kwargs['_return_http_data_only'] = True
|
|
2751
|
+
if kwargs.get('async_req'):
|
|
2752
|
+
return self.jobs_service_get_multi_machine_job_with_http_info(project_id, id, **kwargs) # noqa: E501
|
|
2753
|
+
else:
|
|
2754
|
+
(data) = self.jobs_service_get_multi_machine_job_with_http_info(project_id, id, **kwargs) # noqa: E501
|
|
2755
|
+
return data
|
|
2756
|
+
|
|
2757
|
+
def jobs_service_get_multi_machine_job_with_http_info(self, project_id: 'str', id: 'str', **kwargs) -> 'V1MultiMachineJob': # noqa: E501
|
|
2758
|
+
"""jobs_service_get_multi_machine_job # noqa: E501
|
|
2759
|
+
|
|
2760
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
2761
|
+
asynchronous HTTP request, please pass async_req=True
|
|
2762
|
+
>>> thread = api.jobs_service_get_multi_machine_job_with_http_info(project_id, id, async_req=True)
|
|
2763
|
+
>>> result = thread.get()
|
|
2764
|
+
|
|
2765
|
+
:param async_req bool
|
|
2766
|
+
:param str project_id: (required)
|
|
2767
|
+
:param str id: (required)
|
|
2768
|
+
:return: V1MultiMachineJob
|
|
2769
|
+
If the method is called asynchronously,
|
|
2770
|
+
returns the request thread.
|
|
2771
|
+
"""
|
|
2772
|
+
|
|
2773
|
+
all_params = ['project_id', 'id'] # noqa: E501
|
|
2774
|
+
all_params.append('async_req')
|
|
2775
|
+
all_params.append('_return_http_data_only')
|
|
2776
|
+
all_params.append('_preload_content')
|
|
2777
|
+
all_params.append('_request_timeout')
|
|
2778
|
+
|
|
2779
|
+
params = locals()
|
|
2780
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
2781
|
+
if key not in all_params:
|
|
2782
|
+
raise TypeError(
|
|
2783
|
+
"Got an unexpected keyword argument '%s'"
|
|
2784
|
+
" to method jobs_service_get_multi_machine_job" % key
|
|
2785
|
+
)
|
|
2786
|
+
params[key] = val
|
|
2787
|
+
del params['kwargs']
|
|
2788
|
+
# verify the required parameter 'project_id' is set
|
|
2789
|
+
if ('project_id' not in params or
|
|
2790
|
+
params['project_id'] is None):
|
|
2791
|
+
raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_get_multi_machine_job`") # noqa: E501
|
|
2792
|
+
# verify the required parameter 'id' is set
|
|
2793
|
+
if ('id' not in params or
|
|
2794
|
+
params['id'] is None):
|
|
2795
|
+
raise ValueError("Missing the required parameter `id` when calling `jobs_service_get_multi_machine_job`") # noqa: E501
|
|
2796
|
+
|
|
2797
|
+
collection_formats = {}
|
|
2798
|
+
|
|
2799
|
+
path_params = {}
|
|
2800
|
+
if 'project_id' in params:
|
|
2801
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
2802
|
+
if 'id' in params:
|
|
2803
|
+
path_params['id'] = params['id'] # noqa: E501
|
|
2804
|
+
|
|
2805
|
+
query_params = []
|
|
2806
|
+
|
|
2807
|
+
header_params = {}
|
|
2808
|
+
|
|
2809
|
+
form_params = []
|
|
2810
|
+
local_var_files = {}
|
|
2811
|
+
|
|
2812
|
+
body_params = None
|
|
2813
|
+
# HTTP header `Accept`
|
|
2814
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
2815
|
+
['application/json']) # noqa: E501
|
|
2816
|
+
|
|
2817
|
+
# Authentication setting
|
|
2818
|
+
auth_settings = [] # noqa: E501
|
|
2819
|
+
|
|
2820
|
+
return self.api_client.call_api(
|
|
2821
|
+
'/v1/projects/{projectId}/multi-machine-jobs/{id}', 'GET',
|
|
2822
|
+
path_params,
|
|
2823
|
+
query_params,
|
|
2824
|
+
header_params,
|
|
2825
|
+
body=body_params,
|
|
2826
|
+
post_params=form_params,
|
|
2827
|
+
files=local_var_files,
|
|
2828
|
+
response_type='V1MultiMachineJob', # noqa: E501
|
|
2829
|
+
auth_settings=auth_settings,
|
|
2830
|
+
async_req=params.get('async_req'),
|
|
2831
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
2832
|
+
_preload_content=params.get('_preload_content', True),
|
|
2833
|
+
_request_timeout=params.get('_request_timeout'),
|
|
2834
|
+
collection_formats=collection_formats)
|
|
2835
|
+
|
|
2836
|
+
def jobs_service_get_multi_machine_job_by_name(self, project_id: 'str', name: 'str', **kwargs) -> 'V1MultiMachineJob': # noqa: E501
|
|
2837
|
+
"""jobs_service_get_multi_machine_job_by_name # noqa: E501
|
|
2838
|
+
|
|
2839
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
2840
|
+
asynchronous HTTP request, please pass async_req=True
|
|
2841
|
+
>>> thread = api.jobs_service_get_multi_machine_job_by_name(project_id, name, async_req=True)
|
|
2842
|
+
>>> result = thread.get()
|
|
2843
|
+
|
|
2844
|
+
:param async_req bool
|
|
2845
|
+
:param str project_id: (required)
|
|
2846
|
+
:param str name: (required)
|
|
2847
|
+
:return: V1MultiMachineJob
|
|
2848
|
+
If the method is called asynchronously,
|
|
2849
|
+
returns the request thread.
|
|
2850
|
+
"""
|
|
2851
|
+
kwargs['_return_http_data_only'] = True
|
|
2852
|
+
if kwargs.get('async_req'):
|
|
2853
|
+
return self.jobs_service_get_multi_machine_job_by_name_with_http_info(project_id, name, **kwargs) # noqa: E501
|
|
2854
|
+
else:
|
|
2855
|
+
(data) = self.jobs_service_get_multi_machine_job_by_name_with_http_info(project_id, name, **kwargs) # noqa: E501
|
|
2856
|
+
return data
|
|
2857
|
+
|
|
2858
|
+
def jobs_service_get_multi_machine_job_by_name_with_http_info(self, project_id: 'str', name: 'str', **kwargs) -> 'V1MultiMachineJob': # noqa: E501
|
|
2859
|
+
"""jobs_service_get_multi_machine_job_by_name # noqa: E501
|
|
2860
|
+
|
|
2861
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
2862
|
+
asynchronous HTTP request, please pass async_req=True
|
|
2863
|
+
>>> thread = api.jobs_service_get_multi_machine_job_by_name_with_http_info(project_id, name, async_req=True)
|
|
2864
|
+
>>> result = thread.get()
|
|
2865
|
+
|
|
2866
|
+
:param async_req bool
|
|
2867
|
+
:param str project_id: (required)
|
|
2868
|
+
:param str name: (required)
|
|
2869
|
+
:return: V1MultiMachineJob
|
|
2870
|
+
If the method is called asynchronously,
|
|
2871
|
+
returns the request thread.
|
|
2872
|
+
"""
|
|
2873
|
+
|
|
2874
|
+
all_params = ['project_id', 'name'] # noqa: E501
|
|
2875
|
+
all_params.append('async_req')
|
|
2876
|
+
all_params.append('_return_http_data_only')
|
|
2877
|
+
all_params.append('_preload_content')
|
|
2878
|
+
all_params.append('_request_timeout')
|
|
2879
|
+
|
|
2880
|
+
params = locals()
|
|
2881
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
2882
|
+
if key not in all_params:
|
|
2883
|
+
raise TypeError(
|
|
2884
|
+
"Got an unexpected keyword argument '%s'"
|
|
2885
|
+
" to method jobs_service_get_multi_machine_job_by_name" % key
|
|
2886
|
+
)
|
|
2887
|
+
params[key] = val
|
|
2888
|
+
del params['kwargs']
|
|
2889
|
+
# verify the required parameter 'project_id' is set
|
|
2890
|
+
if ('project_id' not in params or
|
|
2891
|
+
params['project_id'] is None):
|
|
2892
|
+
raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_get_multi_machine_job_by_name`") # noqa: E501
|
|
2893
|
+
# verify the required parameter 'name' is set
|
|
2894
|
+
if ('name' not in params or
|
|
2895
|
+
params['name'] is None):
|
|
2896
|
+
raise ValueError("Missing the required parameter `name` when calling `jobs_service_get_multi_machine_job_by_name`") # noqa: E501
|
|
2897
|
+
|
|
2898
|
+
collection_formats = {}
|
|
2899
|
+
|
|
2900
|
+
path_params = {}
|
|
2901
|
+
if 'project_id' in params:
|
|
2902
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
2903
|
+
if 'name' in params:
|
|
2904
|
+
path_params['name'] = params['name'] # noqa: E501
|
|
2905
|
+
|
|
2906
|
+
query_params = []
|
|
2907
|
+
|
|
2908
|
+
header_params = {}
|
|
2909
|
+
|
|
2910
|
+
form_params = []
|
|
2911
|
+
local_var_files = {}
|
|
2912
|
+
|
|
2913
|
+
body_params = None
|
|
2914
|
+
# HTTP header `Accept`
|
|
2915
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
2916
|
+
['application/json']) # noqa: E501
|
|
2917
|
+
|
|
2918
|
+
# Authentication setting
|
|
2919
|
+
auth_settings = [] # noqa: E501
|
|
2920
|
+
|
|
2921
|
+
return self.api_client.call_api(
|
|
2922
|
+
'/v1/projects/{projectId}/multi-machine-jobs/{name}/getbyname', 'GET',
|
|
2923
|
+
path_params,
|
|
2924
|
+
query_params,
|
|
2925
|
+
header_params,
|
|
2926
|
+
body=body_params,
|
|
2927
|
+
post_params=form_params,
|
|
2928
|
+
files=local_var_files,
|
|
2929
|
+
response_type='V1MultiMachineJob', # noqa: E501
|
|
2930
|
+
auth_settings=auth_settings,
|
|
2931
|
+
async_req=params.get('async_req'),
|
|
2932
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
2933
|
+
_preload_content=params.get('_preload_content', True),
|
|
2934
|
+
_request_timeout=params.get('_request_timeout'),
|
|
2935
|
+
collection_formats=collection_formats)
|
|
2936
|
+
|
|
2937
|
+
def jobs_service_list_deployment_alerting_events(self, project_id: 'str', deployment_id: 'str', **kwargs) -> 'V1ListDeploymentAlertingEventsResponse': # noqa: E501
|
|
2938
|
+
"""ListDeploymentAlertingEvents lists the deployment alert events # noqa: E501
|
|
2939
|
+
|
|
2940
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
2941
|
+
asynchronous HTTP request, please pass async_req=True
|
|
2942
|
+
>>> thread = api.jobs_service_list_deployment_alerting_events(project_id, deployment_id, async_req=True)
|
|
2943
|
+
>>> result = thread.get()
|
|
2944
|
+
|
|
2945
|
+
:param async_req bool
|
|
2946
|
+
:param str project_id: (required)
|
|
2947
|
+
:param str deployment_id: (required)
|
|
2948
|
+
:return: V1ListDeploymentAlertingEventsResponse
|
|
2949
|
+
If the method is called asynchronously,
|
|
2950
|
+
returns the request thread.
|
|
2951
|
+
"""
|
|
2952
|
+
kwargs['_return_http_data_only'] = True
|
|
2953
|
+
if kwargs.get('async_req'):
|
|
2954
|
+
return self.jobs_service_list_deployment_alerting_events_with_http_info(project_id, deployment_id, **kwargs) # noqa: E501
|
|
2955
|
+
else:
|
|
2956
|
+
(data) = self.jobs_service_list_deployment_alerting_events_with_http_info(project_id, deployment_id, **kwargs) # noqa: E501
|
|
2957
|
+
return data
|
|
2958
|
+
|
|
2959
|
+
def jobs_service_list_deployment_alerting_events_with_http_info(self, project_id: 'str', deployment_id: 'str', **kwargs) -> 'V1ListDeploymentAlertingEventsResponse': # noqa: E501
|
|
2960
|
+
"""ListDeploymentAlertingEvents lists the deployment alert events # noqa: E501
|
|
2961
|
+
|
|
2962
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
2963
|
+
asynchronous HTTP request, please pass async_req=True
|
|
2964
|
+
>>> thread = api.jobs_service_list_deployment_alerting_events_with_http_info(project_id, deployment_id, async_req=True)
|
|
2965
|
+
>>> result = thread.get()
|
|
2966
|
+
|
|
2967
|
+
:param async_req bool
|
|
2968
|
+
:param str project_id: (required)
|
|
2969
|
+
:param str deployment_id: (required)
|
|
2970
|
+
:return: V1ListDeploymentAlertingEventsResponse
|
|
2971
|
+
If the method is called asynchronously,
|
|
2972
|
+
returns the request thread.
|
|
2973
|
+
"""
|
|
2974
|
+
|
|
2975
|
+
all_params = ['project_id', 'deployment_id'] # noqa: E501
|
|
2976
|
+
all_params.append('async_req')
|
|
2977
|
+
all_params.append('_return_http_data_only')
|
|
2978
|
+
all_params.append('_preload_content')
|
|
2979
|
+
all_params.append('_request_timeout')
|
|
2980
|
+
|
|
2981
|
+
params = locals()
|
|
2982
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
2983
|
+
if key not in all_params:
|
|
2984
|
+
raise TypeError(
|
|
2985
|
+
"Got an unexpected keyword argument '%s'"
|
|
2986
|
+
" to method jobs_service_list_deployment_alerting_events" % key
|
|
2987
|
+
)
|
|
2988
|
+
params[key] = val
|
|
2989
|
+
del params['kwargs']
|
|
2990
|
+
# verify the required parameter 'project_id' is set
|
|
2991
|
+
if ('project_id' not in params or
|
|
2992
|
+
params['project_id'] is None):
|
|
2993
|
+
raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_list_deployment_alerting_events`") # noqa: E501
|
|
2994
|
+
# verify the required parameter 'deployment_id' is set
|
|
2995
|
+
if ('deployment_id' not in params or
|
|
2996
|
+
params['deployment_id'] is None):
|
|
2997
|
+
raise ValueError("Missing the required parameter `deployment_id` when calling `jobs_service_list_deployment_alerting_events`") # noqa: E501
|
|
2998
|
+
|
|
2999
|
+
collection_formats = {}
|
|
3000
|
+
|
|
3001
|
+
path_params = {}
|
|
3002
|
+
if 'project_id' in params:
|
|
3003
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
3004
|
+
if 'deployment_id' in params:
|
|
3005
|
+
path_params['deploymentId'] = params['deployment_id'] # noqa: E501
|
|
3006
|
+
|
|
3007
|
+
query_params = []
|
|
3008
|
+
|
|
3009
|
+
header_params = {}
|
|
3010
|
+
|
|
3011
|
+
form_params = []
|
|
3012
|
+
local_var_files = {}
|
|
3013
|
+
|
|
3014
|
+
body_params = None
|
|
3015
|
+
# HTTP header `Accept`
|
|
3016
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
3017
|
+
['application/json']) # noqa: E501
|
|
3018
|
+
|
|
3019
|
+
# Authentication setting
|
|
3020
|
+
auth_settings = [] # noqa: E501
|
|
3021
|
+
|
|
3022
|
+
return self.api_client.call_api(
|
|
3023
|
+
'/v1/projects/{projectId}/deployments/{deploymentId}/alerting-events', 'GET',
|
|
3024
|
+
path_params,
|
|
3025
|
+
query_params,
|
|
3026
|
+
header_params,
|
|
3027
|
+
body=body_params,
|
|
3028
|
+
post_params=form_params,
|
|
3029
|
+
files=local_var_files,
|
|
3030
|
+
response_type='V1ListDeploymentAlertingEventsResponse', # noqa: E501
|
|
3031
|
+
auth_settings=auth_settings,
|
|
3032
|
+
async_req=params.get('async_req'),
|
|
3033
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
3034
|
+
_preload_content=params.get('_preload_content', True),
|
|
3035
|
+
_request_timeout=params.get('_request_timeout'),
|
|
3036
|
+
collection_formats=collection_formats)
|
|
3037
|
+
|
|
3038
|
+
def jobs_service_list_deployment_alerting_policies(self, project_id: 'str', deployment_id: 'str', **kwargs) -> 'V1ListDeploymentAlertingPoliciesResponse': # noqa: E501
|
|
3039
|
+
"""ListDeploymentAlertPolicies lists the deployment alert policies # noqa: E501
|
|
3040
|
+
|
|
3041
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
3042
|
+
asynchronous HTTP request, please pass async_req=True
|
|
3043
|
+
>>> thread = api.jobs_service_list_deployment_alerting_policies(project_id, deployment_id, async_req=True)
|
|
3044
|
+
>>> result = thread.get()
|
|
3045
|
+
|
|
3046
|
+
:param async_req bool
|
|
3047
|
+
:param str project_id: (required)
|
|
3048
|
+
:param str deployment_id: (required)
|
|
3049
|
+
:return: V1ListDeploymentAlertingPoliciesResponse
|
|
3050
|
+
If the method is called asynchronously,
|
|
3051
|
+
returns the request thread.
|
|
3052
|
+
"""
|
|
3053
|
+
kwargs['_return_http_data_only'] = True
|
|
3054
|
+
if kwargs.get('async_req'):
|
|
3055
|
+
return self.jobs_service_list_deployment_alerting_policies_with_http_info(project_id, deployment_id, **kwargs) # noqa: E501
|
|
3056
|
+
else:
|
|
3057
|
+
(data) = self.jobs_service_list_deployment_alerting_policies_with_http_info(project_id, deployment_id, **kwargs) # noqa: E501
|
|
3058
|
+
return data
|
|
3059
|
+
|
|
3060
|
+
def jobs_service_list_deployment_alerting_policies_with_http_info(self, project_id: 'str', deployment_id: 'str', **kwargs) -> 'V1ListDeploymentAlertingPoliciesResponse': # noqa: E501
|
|
3061
|
+
"""ListDeploymentAlertPolicies lists the deployment alert policies # noqa: E501
|
|
3062
|
+
|
|
3063
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
3064
|
+
asynchronous HTTP request, please pass async_req=True
|
|
3065
|
+
>>> thread = api.jobs_service_list_deployment_alerting_policies_with_http_info(project_id, deployment_id, async_req=True)
|
|
3066
|
+
>>> result = thread.get()
|
|
3067
|
+
|
|
3068
|
+
:param async_req bool
|
|
3069
|
+
:param str project_id: (required)
|
|
3070
|
+
:param str deployment_id: (required)
|
|
3071
|
+
:return: V1ListDeploymentAlertingPoliciesResponse
|
|
3072
|
+
If the method is called asynchronously,
|
|
3073
|
+
returns the request thread.
|
|
3074
|
+
"""
|
|
3075
|
+
|
|
3076
|
+
all_params = ['project_id', 'deployment_id'] # noqa: E501
|
|
3077
|
+
all_params.append('async_req')
|
|
3078
|
+
all_params.append('_return_http_data_only')
|
|
3079
|
+
all_params.append('_preload_content')
|
|
3080
|
+
all_params.append('_request_timeout')
|
|
3081
|
+
|
|
3082
|
+
params = locals()
|
|
3083
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
3084
|
+
if key not in all_params:
|
|
3085
|
+
raise TypeError(
|
|
3086
|
+
"Got an unexpected keyword argument '%s'"
|
|
3087
|
+
" to method jobs_service_list_deployment_alerting_policies" % key
|
|
3088
|
+
)
|
|
3089
|
+
params[key] = val
|
|
3090
|
+
del params['kwargs']
|
|
3091
|
+
# verify the required parameter 'project_id' is set
|
|
3092
|
+
if ('project_id' not in params or
|
|
3093
|
+
params['project_id'] is None):
|
|
3094
|
+
raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_list_deployment_alerting_policies`") # noqa: E501
|
|
3095
|
+
# verify the required parameter 'deployment_id' is set
|
|
3096
|
+
if ('deployment_id' not in params or
|
|
3097
|
+
params['deployment_id'] is None):
|
|
3098
|
+
raise ValueError("Missing the required parameter `deployment_id` when calling `jobs_service_list_deployment_alerting_policies`") # noqa: E501
|
|
3099
|
+
|
|
3100
|
+
collection_formats = {}
|
|
3101
|
+
|
|
3102
|
+
path_params = {}
|
|
3103
|
+
if 'project_id' in params:
|
|
3104
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
3105
|
+
if 'deployment_id' in params:
|
|
3106
|
+
path_params['deploymentId'] = params['deployment_id'] # noqa: E501
|
|
3107
|
+
|
|
3108
|
+
query_params = []
|
|
3109
|
+
|
|
3110
|
+
header_params = {}
|
|
3111
|
+
|
|
3112
|
+
form_params = []
|
|
3113
|
+
local_var_files = {}
|
|
3114
|
+
|
|
3115
|
+
body_params = None
|
|
3116
|
+
# HTTP header `Accept`
|
|
3117
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
3118
|
+
['application/json']) # noqa: E501
|
|
3119
|
+
|
|
3120
|
+
# Authentication setting
|
|
3121
|
+
auth_settings = [] # noqa: E501
|
|
3122
|
+
|
|
3123
|
+
return self.api_client.call_api(
|
|
3124
|
+
'/v1/projects/{projectId}/deployments/{deploymentId}/alerting-policies', 'GET',
|
|
3125
|
+
path_params,
|
|
3126
|
+
query_params,
|
|
3127
|
+
header_params,
|
|
3128
|
+
body=body_params,
|
|
3129
|
+
post_params=form_params,
|
|
3130
|
+
files=local_var_files,
|
|
3131
|
+
response_type='V1ListDeploymentAlertingPoliciesResponse', # noqa: E501
|
|
3132
|
+
auth_settings=auth_settings,
|
|
3133
|
+
async_req=params.get('async_req'),
|
|
3134
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
3135
|
+
_preload_content=params.get('_preload_content', True),
|
|
3136
|
+
_request_timeout=params.get('_request_timeout'),
|
|
3137
|
+
collection_formats=collection_formats)
|
|
3138
|
+
|
|
3139
|
+
def jobs_service_list_deployment_events(self, project_id: 'str', id: 'str', **kwargs) -> 'V1ListDeploymentEventsResponse': # noqa: E501
|
|
3140
|
+
"""Deployment events # noqa: E501
|
|
3141
|
+
|
|
3142
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
3143
|
+
asynchronous HTTP request, please pass async_req=True
|
|
3144
|
+
>>> thread = api.jobs_service_list_deployment_events(project_id, id, async_req=True)
|
|
3145
|
+
>>> result = thread.get()
|
|
3146
|
+
|
|
3147
|
+
:param async_req bool
|
|
3148
|
+
:param str project_id: (required)
|
|
3149
|
+
:param str id: (required)
|
|
3150
|
+
:param str release_id:
|
|
3151
|
+
:param str limit:
|
|
3152
|
+
:return: V1ListDeploymentEventsResponse
|
|
3153
|
+
If the method is called asynchronously,
|
|
3154
|
+
returns the request thread.
|
|
3155
|
+
"""
|
|
3156
|
+
kwargs['_return_http_data_only'] = True
|
|
3157
|
+
if kwargs.get('async_req'):
|
|
3158
|
+
return self.jobs_service_list_deployment_events_with_http_info(project_id, id, **kwargs) # noqa: E501
|
|
3159
|
+
else:
|
|
3160
|
+
(data) = self.jobs_service_list_deployment_events_with_http_info(project_id, id, **kwargs) # noqa: E501
|
|
3161
|
+
return data
|
|
3162
|
+
|
|
3163
|
+
def jobs_service_list_deployment_events_with_http_info(self, project_id: 'str', id: 'str', **kwargs) -> 'V1ListDeploymentEventsResponse': # noqa: E501
|
|
3164
|
+
"""Deployment events # noqa: E501
|
|
3165
|
+
|
|
3166
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
3167
|
+
asynchronous HTTP request, please pass async_req=True
|
|
3168
|
+
>>> thread = api.jobs_service_list_deployment_events_with_http_info(project_id, id, async_req=True)
|
|
3169
|
+
>>> result = thread.get()
|
|
3170
|
+
|
|
3171
|
+
:param async_req bool
|
|
3172
|
+
:param str project_id: (required)
|
|
3173
|
+
:param str id: (required)
|
|
3174
|
+
:param str release_id:
|
|
3175
|
+
:param str limit:
|
|
3176
|
+
:return: V1ListDeploymentEventsResponse
|
|
3177
|
+
If the method is called asynchronously,
|
|
3178
|
+
returns the request thread.
|
|
3179
|
+
"""
|
|
3180
|
+
|
|
3181
|
+
all_params = ['project_id', 'id', 'release_id', 'limit'] # noqa: E501
|
|
3182
|
+
all_params.append('async_req')
|
|
3183
|
+
all_params.append('_return_http_data_only')
|
|
3184
|
+
all_params.append('_preload_content')
|
|
3185
|
+
all_params.append('_request_timeout')
|
|
3186
|
+
|
|
3187
|
+
params = locals()
|
|
3188
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
3189
|
+
if key not in all_params:
|
|
3190
|
+
raise TypeError(
|
|
3191
|
+
"Got an unexpected keyword argument '%s'"
|
|
3192
|
+
" to method jobs_service_list_deployment_events" % key
|
|
3193
|
+
)
|
|
3194
|
+
params[key] = val
|
|
3195
|
+
del params['kwargs']
|
|
3196
|
+
# verify the required parameter 'project_id' is set
|
|
3197
|
+
if ('project_id' not in params or
|
|
3198
|
+
params['project_id'] is None):
|
|
3199
|
+
raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_list_deployment_events`") # noqa: E501
|
|
3200
|
+
# verify the required parameter 'id' is set
|
|
3201
|
+
if ('id' not in params or
|
|
3202
|
+
params['id'] is None):
|
|
3203
|
+
raise ValueError("Missing the required parameter `id` when calling `jobs_service_list_deployment_events`") # noqa: E501
|
|
3204
|
+
|
|
3205
|
+
collection_formats = {}
|
|
3206
|
+
|
|
3207
|
+
path_params = {}
|
|
3208
|
+
if 'project_id' in params:
|
|
3209
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
3210
|
+
if 'id' in params:
|
|
3211
|
+
path_params['id'] = params['id'] # noqa: E501
|
|
3212
|
+
|
|
3213
|
+
query_params = []
|
|
3214
|
+
if 'release_id' in params:
|
|
3215
|
+
query_params.append(('releaseId', params['release_id'])) # noqa: E501
|
|
3216
|
+
if 'limit' in params:
|
|
3217
|
+
query_params.append(('limit', params['limit'])) # noqa: E501
|
|
3218
|
+
|
|
3219
|
+
header_params = {}
|
|
3220
|
+
|
|
3221
|
+
form_params = []
|
|
3222
|
+
local_var_files = {}
|
|
3223
|
+
|
|
3224
|
+
body_params = None
|
|
3225
|
+
# HTTP header `Accept`
|
|
3226
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
3227
|
+
['application/json']) # noqa: E501
|
|
3228
|
+
|
|
3229
|
+
# Authentication setting
|
|
3230
|
+
auth_settings = [] # noqa: E501
|
|
3231
|
+
|
|
3232
|
+
return self.api_client.call_api(
|
|
3233
|
+
'/v1/projects/{projectId}/deployments/{id}/events', 'GET',
|
|
3234
|
+
path_params,
|
|
3235
|
+
query_params,
|
|
3236
|
+
header_params,
|
|
3237
|
+
body=body_params,
|
|
3238
|
+
post_params=form_params,
|
|
3239
|
+
files=local_var_files,
|
|
3240
|
+
response_type='V1ListDeploymentEventsResponse', # noqa: E501
|
|
3241
|
+
auth_settings=auth_settings,
|
|
3242
|
+
async_req=params.get('async_req'),
|
|
3243
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
3244
|
+
_preload_content=params.get('_preload_content', True),
|
|
3245
|
+
_request_timeout=params.get('_request_timeout'),
|
|
3246
|
+
collection_formats=collection_formats)
|
|
3247
|
+
|
|
3248
|
+
def jobs_service_list_deployment_releases(self, project_id: 'str', deployment_id: 'str', **kwargs) -> 'V1ListDeploymentReleasesResponse': # noqa: E501
|
|
3249
|
+
"""jobs_service_list_deployment_releases # noqa: E501
|
|
3250
|
+
|
|
3251
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
3252
|
+
asynchronous HTTP request, please pass async_req=True
|
|
3253
|
+
>>> thread = api.jobs_service_list_deployment_releases(project_id, deployment_id, async_req=True)
|
|
3254
|
+
>>> result = thread.get()
|
|
3255
|
+
|
|
3256
|
+
:param async_req bool
|
|
3257
|
+
:param str project_id: (required)
|
|
3258
|
+
:param str deployment_id: (required)
|
|
3259
|
+
:param bool include_archived:
|
|
3260
|
+
:return: V1ListDeploymentReleasesResponse
|
|
3261
|
+
If the method is called asynchronously,
|
|
3262
|
+
returns the request thread.
|
|
3263
|
+
"""
|
|
3264
|
+
kwargs['_return_http_data_only'] = True
|
|
3265
|
+
if kwargs.get('async_req'):
|
|
3266
|
+
return self.jobs_service_list_deployment_releases_with_http_info(project_id, deployment_id, **kwargs) # noqa: E501
|
|
3267
|
+
else:
|
|
3268
|
+
(data) = self.jobs_service_list_deployment_releases_with_http_info(project_id, deployment_id, **kwargs) # noqa: E501
|
|
3269
|
+
return data
|
|
3270
|
+
|
|
3271
|
+
def jobs_service_list_deployment_releases_with_http_info(self, project_id: 'str', deployment_id: 'str', **kwargs) -> 'V1ListDeploymentReleasesResponse': # noqa: E501
|
|
3272
|
+
"""jobs_service_list_deployment_releases # noqa: E501
|
|
3273
|
+
|
|
3274
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
3275
|
+
asynchronous HTTP request, please pass async_req=True
|
|
3276
|
+
>>> thread = api.jobs_service_list_deployment_releases_with_http_info(project_id, deployment_id, async_req=True)
|
|
3277
|
+
>>> result = thread.get()
|
|
3278
|
+
|
|
3279
|
+
:param async_req bool
|
|
3280
|
+
:param str project_id: (required)
|
|
3281
|
+
:param str deployment_id: (required)
|
|
3282
|
+
:param bool include_archived:
|
|
3283
|
+
:return: V1ListDeploymentReleasesResponse
|
|
3284
|
+
If the method is called asynchronously,
|
|
3285
|
+
returns the request thread.
|
|
3286
|
+
"""
|
|
3287
|
+
|
|
3288
|
+
all_params = ['project_id', 'deployment_id', 'include_archived'] # noqa: E501
|
|
3289
|
+
all_params.append('async_req')
|
|
3290
|
+
all_params.append('_return_http_data_only')
|
|
3291
|
+
all_params.append('_preload_content')
|
|
3292
|
+
all_params.append('_request_timeout')
|
|
3293
|
+
|
|
3294
|
+
params = locals()
|
|
3295
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
3296
|
+
if key not in all_params:
|
|
3297
|
+
raise TypeError(
|
|
3298
|
+
"Got an unexpected keyword argument '%s'"
|
|
3299
|
+
" to method jobs_service_list_deployment_releases" % key
|
|
3300
|
+
)
|
|
3301
|
+
params[key] = val
|
|
3302
|
+
del params['kwargs']
|
|
3303
|
+
# verify the required parameter 'project_id' is set
|
|
3304
|
+
if ('project_id' not in params or
|
|
3305
|
+
params['project_id'] is None):
|
|
3306
|
+
raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_list_deployment_releases`") # noqa: E501
|
|
3307
|
+
# verify the required parameter 'deployment_id' is set
|
|
3308
|
+
if ('deployment_id' not in params or
|
|
3309
|
+
params['deployment_id'] is None):
|
|
3310
|
+
raise ValueError("Missing the required parameter `deployment_id` when calling `jobs_service_list_deployment_releases`") # noqa: E501
|
|
3311
|
+
|
|
3312
|
+
collection_formats = {}
|
|
3313
|
+
|
|
3314
|
+
path_params = {}
|
|
3315
|
+
if 'project_id' in params:
|
|
3316
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
3317
|
+
if 'deployment_id' in params:
|
|
3318
|
+
path_params['deploymentId'] = params['deployment_id'] # noqa: E501
|
|
3319
|
+
|
|
3320
|
+
query_params = []
|
|
3321
|
+
if 'include_archived' in params:
|
|
3322
|
+
query_params.append(('includeArchived', params['include_archived'])) # noqa: E501
|
|
3323
|
+
|
|
3324
|
+
header_params = {}
|
|
3325
|
+
|
|
3326
|
+
form_params = []
|
|
3327
|
+
local_var_files = {}
|
|
3328
|
+
|
|
3329
|
+
body_params = None
|
|
3330
|
+
# HTTP header `Accept`
|
|
3331
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
3332
|
+
['application/json']) # noqa: E501
|
|
3333
|
+
|
|
3334
|
+
# Authentication setting
|
|
3335
|
+
auth_settings = [] # noqa: E501
|
|
3336
|
+
|
|
3337
|
+
return self.api_client.call_api(
|
|
3338
|
+
'/v1/projects/{projectId}/deployments/{deploymentId}/releases', 'GET',
|
|
3339
|
+
path_params,
|
|
3340
|
+
query_params,
|
|
3341
|
+
header_params,
|
|
3342
|
+
body=body_params,
|
|
3343
|
+
post_params=form_params,
|
|
3344
|
+
files=local_var_files,
|
|
3345
|
+
response_type='V1ListDeploymentReleasesResponse', # noqa: E501
|
|
3346
|
+
auth_settings=auth_settings,
|
|
3347
|
+
async_req=params.get('async_req'),
|
|
3348
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
3349
|
+
_preload_content=params.get('_preload_content', True),
|
|
3350
|
+
_request_timeout=params.get('_request_timeout'),
|
|
3351
|
+
collection_formats=collection_formats)
|
|
3352
|
+
|
|
3353
|
+
def jobs_service_list_deployment_routing_telemetry(self, project_id: 'str', id: 'str', **kwargs) -> 'V1GeListDeploymentRoutingTelemetryResponse': # noqa: E501
|
|
3354
|
+
"""Deployment Telemetry aggregated to display global monitor metrics # noqa: E501
|
|
3355
|
+
|
|
3356
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
3357
|
+
asynchronous HTTP request, please pass async_req=True
|
|
3358
|
+
>>> thread = api.jobs_service_list_deployment_routing_telemetry(project_id, id, async_req=True)
|
|
3359
|
+
>>> result = thread.get()
|
|
3360
|
+
|
|
3361
|
+
:param async_req bool
|
|
3362
|
+
:param str project_id: (required)
|
|
3363
|
+
:param str id: (required)
|
|
3364
|
+
:param str first_request_id:
|
|
3365
|
+
:param str last_request_id:
|
|
3366
|
+
:param datetime start:
|
|
3367
|
+
:param datetime end:
|
|
3368
|
+
:param list[str] path:
|
|
3369
|
+
:param list[int] status_code:
|
|
3370
|
+
:param int limit:
|
|
3371
|
+
:return: V1GeListDeploymentRoutingTelemetryResponse
|
|
3372
|
+
If the method is called asynchronously,
|
|
3373
|
+
returns the request thread.
|
|
3374
|
+
"""
|
|
3375
|
+
kwargs['_return_http_data_only'] = True
|
|
3376
|
+
if kwargs.get('async_req'):
|
|
3377
|
+
return self.jobs_service_list_deployment_routing_telemetry_with_http_info(project_id, id, **kwargs) # noqa: E501
|
|
3378
|
+
else:
|
|
3379
|
+
(data) = self.jobs_service_list_deployment_routing_telemetry_with_http_info(project_id, id, **kwargs) # noqa: E501
|
|
3380
|
+
return data
|
|
3381
|
+
|
|
3382
|
+
def jobs_service_list_deployment_routing_telemetry_with_http_info(self, project_id: 'str', id: 'str', **kwargs) -> 'V1GeListDeploymentRoutingTelemetryResponse': # noqa: E501
|
|
3383
|
+
"""Deployment Telemetry aggregated to display global monitor metrics # noqa: E501
|
|
3384
|
+
|
|
3385
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
3386
|
+
asynchronous HTTP request, please pass async_req=True
|
|
3387
|
+
>>> thread = api.jobs_service_list_deployment_routing_telemetry_with_http_info(project_id, id, async_req=True)
|
|
3388
|
+
>>> result = thread.get()
|
|
3389
|
+
|
|
3390
|
+
:param async_req bool
|
|
3391
|
+
:param str project_id: (required)
|
|
3392
|
+
:param str id: (required)
|
|
3393
|
+
:param str first_request_id:
|
|
3394
|
+
:param str last_request_id:
|
|
3395
|
+
:param datetime start:
|
|
3396
|
+
:param datetime end:
|
|
3397
|
+
:param list[str] path:
|
|
3398
|
+
:param list[int] status_code:
|
|
3399
|
+
:param int limit:
|
|
3400
|
+
:return: V1GeListDeploymentRoutingTelemetryResponse
|
|
3401
|
+
If the method is called asynchronously,
|
|
3402
|
+
returns the request thread.
|
|
3403
|
+
"""
|
|
3404
|
+
|
|
3405
|
+
all_params = ['project_id', 'id', 'first_request_id', 'last_request_id', 'start', 'end', 'path', 'status_code', 'limit'] # noqa: E501
|
|
3406
|
+
all_params.append('async_req')
|
|
3407
|
+
all_params.append('_return_http_data_only')
|
|
3408
|
+
all_params.append('_preload_content')
|
|
3409
|
+
all_params.append('_request_timeout')
|
|
3410
|
+
|
|
3411
|
+
params = locals()
|
|
3412
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
3413
|
+
if key not in all_params:
|
|
3414
|
+
raise TypeError(
|
|
3415
|
+
"Got an unexpected keyword argument '%s'"
|
|
3416
|
+
" to method jobs_service_list_deployment_routing_telemetry" % key
|
|
3417
|
+
)
|
|
3418
|
+
params[key] = val
|
|
3419
|
+
del params['kwargs']
|
|
3420
|
+
# verify the required parameter 'project_id' is set
|
|
3421
|
+
if ('project_id' not in params or
|
|
3422
|
+
params['project_id'] is None):
|
|
3423
|
+
raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_list_deployment_routing_telemetry`") # noqa: E501
|
|
2129
3424
|
# verify the required parameter 'id' is set
|
|
2130
3425
|
if ('id' not in params or
|
|
2131
3426
|
params['id'] is None):
|
|
2132
|
-
raise ValueError("Missing the required parameter `id` when calling `
|
|
3427
|
+
raise ValueError("Missing the required parameter `id` when calling `jobs_service_list_deployment_routing_telemetry`") # noqa: E501
|
|
3428
|
+
|
|
3429
|
+
collection_formats = {}
|
|
3430
|
+
|
|
3431
|
+
path_params = {}
|
|
3432
|
+
if 'project_id' in params:
|
|
3433
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
3434
|
+
if 'id' in params:
|
|
3435
|
+
path_params['id'] = params['id'] # noqa: E501
|
|
3436
|
+
|
|
3437
|
+
query_params = []
|
|
3438
|
+
if 'first_request_id' in params:
|
|
3439
|
+
query_params.append(('firstRequestId', params['first_request_id'])) # noqa: E501
|
|
3440
|
+
if 'last_request_id' in params:
|
|
3441
|
+
query_params.append(('lastRequestId', params['last_request_id'])) # noqa: E501
|
|
3442
|
+
if 'start' in params:
|
|
3443
|
+
query_params.append(('start', params['start'])) # noqa: E501
|
|
3444
|
+
if 'end' in params:
|
|
3445
|
+
query_params.append(('end', params['end'])) # noqa: E501
|
|
3446
|
+
if 'path' in params:
|
|
3447
|
+
query_params.append(('path', params['path'])) # noqa: E501
|
|
3448
|
+
collection_formats['path'] = 'multi' # noqa: E501
|
|
3449
|
+
if 'status_code' in params:
|
|
3450
|
+
query_params.append(('statusCode', params['status_code'])) # noqa: E501
|
|
3451
|
+
collection_formats['statusCode'] = 'multi' # noqa: E501
|
|
3452
|
+
if 'limit' in params:
|
|
3453
|
+
query_params.append(('limit', params['limit'])) # noqa: E501
|
|
3454
|
+
|
|
3455
|
+
header_params = {}
|
|
3456
|
+
|
|
3457
|
+
form_params = []
|
|
3458
|
+
local_var_files = {}
|
|
3459
|
+
|
|
3460
|
+
body_params = None
|
|
3461
|
+
# HTTP header `Accept`
|
|
3462
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
3463
|
+
['application/json']) # noqa: E501
|
|
3464
|
+
|
|
3465
|
+
# Authentication setting
|
|
3466
|
+
auth_settings = [] # noqa: E501
|
|
3467
|
+
|
|
3468
|
+
return self.api_client.call_api(
|
|
3469
|
+
'/v1/projects/{projectId}/deployments/{id}/list-routing-telemetry', 'GET',
|
|
3470
|
+
path_params,
|
|
3471
|
+
query_params,
|
|
3472
|
+
header_params,
|
|
3473
|
+
body=body_params,
|
|
3474
|
+
post_params=form_params,
|
|
3475
|
+
files=local_var_files,
|
|
3476
|
+
response_type='V1GeListDeploymentRoutingTelemetryResponse', # noqa: E501
|
|
3477
|
+
auth_settings=auth_settings,
|
|
3478
|
+
async_req=params.get('async_req'),
|
|
3479
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
3480
|
+
_preload_content=params.get('_preload_content', True),
|
|
3481
|
+
_request_timeout=params.get('_request_timeout'),
|
|
3482
|
+
collection_formats=collection_formats)
|
|
3483
|
+
|
|
3484
|
+
def jobs_service_list_deployments(self, project_id: 'str', **kwargs) -> 'V1ListDeploymentsResponse': # noqa: E501
|
|
3485
|
+
"""jobs_service_list_deployments # noqa: E501
|
|
3486
|
+
|
|
3487
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
3488
|
+
asynchronous HTTP request, please pass async_req=True
|
|
3489
|
+
>>> thread = api.jobs_service_list_deployments(project_id, async_req=True)
|
|
3490
|
+
>>> result = thread.get()
|
|
3491
|
+
|
|
3492
|
+
:param async_req bool
|
|
3493
|
+
:param str project_id: (required)
|
|
3494
|
+
:param str cloudspace_id:
|
|
3495
|
+
:param list[str] user_ids:
|
|
3496
|
+
:param bool standalone:
|
|
3497
|
+
:return: V1ListDeploymentsResponse
|
|
3498
|
+
If the method is called asynchronously,
|
|
3499
|
+
returns the request thread.
|
|
3500
|
+
"""
|
|
3501
|
+
kwargs['_return_http_data_only'] = True
|
|
3502
|
+
if kwargs.get('async_req'):
|
|
3503
|
+
return self.jobs_service_list_deployments_with_http_info(project_id, **kwargs) # noqa: E501
|
|
3504
|
+
else:
|
|
3505
|
+
(data) = self.jobs_service_list_deployments_with_http_info(project_id, **kwargs) # noqa: E501
|
|
3506
|
+
return data
|
|
3507
|
+
|
|
3508
|
+
def jobs_service_list_deployments_with_http_info(self, project_id: 'str', **kwargs) -> 'V1ListDeploymentsResponse': # noqa: E501
|
|
3509
|
+
"""jobs_service_list_deployments # noqa: E501
|
|
3510
|
+
|
|
3511
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
3512
|
+
asynchronous HTTP request, please pass async_req=True
|
|
3513
|
+
>>> thread = api.jobs_service_list_deployments_with_http_info(project_id, async_req=True)
|
|
3514
|
+
>>> result = thread.get()
|
|
3515
|
+
|
|
3516
|
+
:param async_req bool
|
|
3517
|
+
:param str project_id: (required)
|
|
3518
|
+
:param str cloudspace_id:
|
|
3519
|
+
:param list[str] user_ids:
|
|
3520
|
+
:param bool standalone:
|
|
3521
|
+
:return: V1ListDeploymentsResponse
|
|
3522
|
+
If the method is called asynchronously,
|
|
3523
|
+
returns the request thread.
|
|
3524
|
+
"""
|
|
3525
|
+
|
|
3526
|
+
all_params = ['project_id', 'cloudspace_id', 'user_ids', 'standalone'] # noqa: E501
|
|
3527
|
+
all_params.append('async_req')
|
|
3528
|
+
all_params.append('_return_http_data_only')
|
|
3529
|
+
all_params.append('_preload_content')
|
|
3530
|
+
all_params.append('_request_timeout')
|
|
3531
|
+
|
|
3532
|
+
params = locals()
|
|
3533
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
3534
|
+
if key not in all_params:
|
|
3535
|
+
raise TypeError(
|
|
3536
|
+
"Got an unexpected keyword argument '%s'"
|
|
3537
|
+
" to method jobs_service_list_deployments" % key
|
|
3538
|
+
)
|
|
3539
|
+
params[key] = val
|
|
3540
|
+
del params['kwargs']
|
|
3541
|
+
# verify the required parameter 'project_id' is set
|
|
3542
|
+
if ('project_id' not in params or
|
|
3543
|
+
params['project_id'] is None):
|
|
3544
|
+
raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_list_deployments`") # noqa: E501
|
|
3545
|
+
|
|
3546
|
+
collection_formats = {}
|
|
3547
|
+
|
|
3548
|
+
path_params = {}
|
|
3549
|
+
if 'project_id' in params:
|
|
3550
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
3551
|
+
|
|
3552
|
+
query_params = []
|
|
3553
|
+
if 'cloudspace_id' in params:
|
|
3554
|
+
query_params.append(('cloudspaceId', params['cloudspace_id'])) # noqa: E501
|
|
3555
|
+
if 'user_ids' in params:
|
|
3556
|
+
query_params.append(('userIds', params['user_ids'])) # noqa: E501
|
|
3557
|
+
collection_formats['userIds'] = 'multi' # noqa: E501
|
|
3558
|
+
if 'standalone' in params:
|
|
3559
|
+
query_params.append(('standalone', params['standalone'])) # noqa: E501
|
|
3560
|
+
|
|
3561
|
+
header_params = {}
|
|
3562
|
+
|
|
3563
|
+
form_params = []
|
|
3564
|
+
local_var_files = {}
|
|
3565
|
+
|
|
3566
|
+
body_params = None
|
|
3567
|
+
# HTTP header `Accept`
|
|
3568
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
3569
|
+
['application/json']) # noqa: E501
|
|
3570
|
+
|
|
3571
|
+
# Authentication setting
|
|
3572
|
+
auth_settings = [] # noqa: E501
|
|
3573
|
+
|
|
3574
|
+
return self.api_client.call_api(
|
|
3575
|
+
'/v1/projects/{projectId}/deployments', 'GET',
|
|
3576
|
+
path_params,
|
|
3577
|
+
query_params,
|
|
3578
|
+
header_params,
|
|
3579
|
+
body=body_params,
|
|
3580
|
+
post_params=form_params,
|
|
3581
|
+
files=local_var_files,
|
|
3582
|
+
response_type='V1ListDeploymentsResponse', # noqa: E501
|
|
3583
|
+
auth_settings=auth_settings,
|
|
3584
|
+
async_req=params.get('async_req'),
|
|
3585
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
3586
|
+
_preload_content=params.get('_preload_content', True),
|
|
3587
|
+
_request_timeout=params.get('_request_timeout'),
|
|
3588
|
+
collection_formats=collection_formats)
|
|
3589
|
+
|
|
3590
|
+
def jobs_service_list_job_resources(self, **kwargs) -> 'V1ListJobResourcesResponse': # noqa: E501
|
|
3591
|
+
"""jobs_service_list_job_resources # noqa: E501
|
|
3592
|
+
|
|
3593
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
3594
|
+
asynchronous HTTP request, please pass async_req=True
|
|
3595
|
+
>>> thread = api.jobs_service_list_job_resources(async_req=True)
|
|
3596
|
+
>>> result = thread.get()
|
|
3597
|
+
|
|
3598
|
+
:param async_req bool
|
|
3599
|
+
:param list[str] project_ids:
|
|
3600
|
+
:param list[str] user_ids:
|
|
3601
|
+
:param str org_id:
|
|
3602
|
+
:param str state:
|
|
3603
|
+
:param list[str] job_types:
|
|
3604
|
+
:param datetime end_time:
|
|
3605
|
+
:param str page_token:
|
|
3606
|
+
:param int limit:
|
|
3607
|
+
:param str cloudspace_id:
|
|
3608
|
+
:param bool standalone: fields specific to deployments.
|
|
3609
|
+
:param str parent_pipeline_id: fields specific to pipelines.
|
|
3610
|
+
:return: V1ListJobResourcesResponse
|
|
3611
|
+
If the method is called asynchronously,
|
|
3612
|
+
returns the request thread.
|
|
3613
|
+
"""
|
|
3614
|
+
kwargs['_return_http_data_only'] = True
|
|
3615
|
+
if kwargs.get('async_req'):
|
|
3616
|
+
return self.jobs_service_list_job_resources_with_http_info(**kwargs) # noqa: E501
|
|
3617
|
+
else:
|
|
3618
|
+
(data) = self.jobs_service_list_job_resources_with_http_info(**kwargs) # noqa: E501
|
|
3619
|
+
return data
|
|
3620
|
+
|
|
3621
|
+
def jobs_service_list_job_resources_with_http_info(self, **kwargs) -> 'V1ListJobResourcesResponse': # noqa: E501
|
|
3622
|
+
"""jobs_service_list_job_resources # noqa: E501
|
|
3623
|
+
|
|
3624
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
3625
|
+
asynchronous HTTP request, please pass async_req=True
|
|
3626
|
+
>>> thread = api.jobs_service_list_job_resources_with_http_info(async_req=True)
|
|
3627
|
+
>>> result = thread.get()
|
|
3628
|
+
|
|
3629
|
+
:param async_req bool
|
|
3630
|
+
:param list[str] project_ids:
|
|
3631
|
+
:param list[str] user_ids:
|
|
3632
|
+
:param str org_id:
|
|
3633
|
+
:param str state:
|
|
3634
|
+
:param list[str] job_types:
|
|
3635
|
+
:param datetime end_time:
|
|
3636
|
+
:param str page_token:
|
|
3637
|
+
:param int limit:
|
|
3638
|
+
:param str cloudspace_id:
|
|
3639
|
+
:param bool standalone: fields specific to deployments.
|
|
3640
|
+
:param str parent_pipeline_id: fields specific to pipelines.
|
|
3641
|
+
:return: V1ListJobResourcesResponse
|
|
3642
|
+
If the method is called asynchronously,
|
|
3643
|
+
returns the request thread.
|
|
3644
|
+
"""
|
|
3645
|
+
|
|
3646
|
+
all_params = ['project_ids', 'user_ids', 'org_id', 'state', 'job_types', 'end_time', 'page_token', 'limit', 'cloudspace_id', 'standalone', 'parent_pipeline_id'] # noqa: E501
|
|
3647
|
+
all_params.append('async_req')
|
|
3648
|
+
all_params.append('_return_http_data_only')
|
|
3649
|
+
all_params.append('_preload_content')
|
|
3650
|
+
all_params.append('_request_timeout')
|
|
3651
|
+
|
|
3652
|
+
params = locals()
|
|
3653
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
3654
|
+
if key not in all_params:
|
|
3655
|
+
raise TypeError(
|
|
3656
|
+
"Got an unexpected keyword argument '%s'"
|
|
3657
|
+
" to method jobs_service_list_job_resources" % key
|
|
3658
|
+
)
|
|
3659
|
+
params[key] = val
|
|
3660
|
+
del params['kwargs']
|
|
2133
3661
|
|
|
2134
3662
|
collection_formats = {}
|
|
2135
3663
|
|
|
2136
3664
|
path_params = {}
|
|
2137
|
-
if 'project_id' in params:
|
|
2138
|
-
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
2139
|
-
if 'id' in params:
|
|
2140
|
-
path_params['id'] = params['id'] # noqa: E501
|
|
2141
3665
|
|
|
2142
3666
|
query_params = []
|
|
3667
|
+
if 'project_ids' in params:
|
|
3668
|
+
query_params.append(('projectIds', params['project_ids'])) # noqa: E501
|
|
3669
|
+
collection_formats['projectIds'] = 'multi' # noqa: E501
|
|
3670
|
+
if 'user_ids' in params:
|
|
3671
|
+
query_params.append(('userIds', params['user_ids'])) # noqa: E501
|
|
3672
|
+
collection_formats['userIds'] = 'multi' # noqa: E501
|
|
3673
|
+
if 'org_id' in params:
|
|
3674
|
+
query_params.append(('orgId', params['org_id'])) # noqa: E501
|
|
3675
|
+
if 'state' in params:
|
|
3676
|
+
query_params.append(('state', params['state'])) # noqa: E501
|
|
3677
|
+
if 'job_types' in params:
|
|
3678
|
+
query_params.append(('jobTypes', params['job_types'])) # noqa: E501
|
|
3679
|
+
collection_formats['jobTypes'] = 'multi' # noqa: E501
|
|
3680
|
+
if 'end_time' in params:
|
|
3681
|
+
query_params.append(('endTime', params['end_time'])) # noqa: E501
|
|
3682
|
+
if 'page_token' in params:
|
|
3683
|
+
query_params.append(('pageToken', params['page_token'])) # noqa: E501
|
|
3684
|
+
if 'limit' in params:
|
|
3685
|
+
query_params.append(('limit', params['limit'])) # noqa: E501
|
|
3686
|
+
if 'cloudspace_id' in params:
|
|
3687
|
+
query_params.append(('cloudspaceId', params['cloudspace_id'])) # noqa: E501
|
|
3688
|
+
if 'standalone' in params:
|
|
3689
|
+
query_params.append(('standalone', params['standalone'])) # noqa: E501
|
|
3690
|
+
if 'parent_pipeline_id' in params:
|
|
3691
|
+
query_params.append(('parentPipelineId', params['parent_pipeline_id'])) # noqa: E501
|
|
2143
3692
|
|
|
2144
3693
|
header_params = {}
|
|
2145
3694
|
|
|
@@ -2155,14 +3704,14 @@ class JobsServiceApi(object):
|
|
|
2155
3704
|
auth_settings = [] # noqa: E501
|
|
2156
3705
|
|
|
2157
3706
|
return self.api_client.call_api(
|
|
2158
|
-
'/v1/
|
|
3707
|
+
'/v1/jobs', 'GET',
|
|
2159
3708
|
path_params,
|
|
2160
3709
|
query_params,
|
|
2161
3710
|
header_params,
|
|
2162
3711
|
body=body_params,
|
|
2163
3712
|
post_params=form_params,
|
|
2164
3713
|
files=local_var_files,
|
|
2165
|
-
response_type='
|
|
3714
|
+
response_type='V1ListJobResourcesResponse', # noqa: E501
|
|
2166
3715
|
auth_settings=auth_settings,
|
|
2167
3716
|
async_req=params.get('async_req'),
|
|
2168
3717
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -2170,45 +3719,59 @@ class JobsServiceApi(object):
|
|
|
2170
3719
|
_request_timeout=params.get('_request_timeout'),
|
|
2171
3720
|
collection_formats=collection_formats)
|
|
2172
3721
|
|
|
2173
|
-
def
|
|
2174
|
-
"""
|
|
3722
|
+
def jobs_service_list_jobs(self, project_id: 'str', **kwargs) -> 'V1ListJobsResponse': # noqa: E501
|
|
3723
|
+
"""jobs_service_list_jobs # noqa: E501
|
|
2175
3724
|
|
|
2176
3725
|
This method makes a synchronous HTTP request by default. To make an
|
|
2177
3726
|
asynchronous HTTP request, please pass async_req=True
|
|
2178
|
-
>>> thread = api.
|
|
3727
|
+
>>> thread = api.jobs_service_list_jobs(project_id, async_req=True)
|
|
2179
3728
|
>>> result = thread.get()
|
|
2180
3729
|
|
|
2181
3730
|
:param async_req bool
|
|
2182
3731
|
:param str project_id: (required)
|
|
2183
|
-
:param str
|
|
2184
|
-
:
|
|
3732
|
+
:param str cloudspace_id:
|
|
3733
|
+
:param str user_id:
|
|
3734
|
+
:param str deployment_id:
|
|
3735
|
+
:param str multi_machine_job_id:
|
|
3736
|
+
:param bool standalone: Whether to list standalone jobs, not part of a deployment or mmt.
|
|
3737
|
+
:param str page_token:
|
|
3738
|
+
:param int limit:
|
|
3739
|
+
:param str state:
|
|
3740
|
+
:return: V1ListJobsResponse
|
|
2185
3741
|
If the method is called asynchronously,
|
|
2186
3742
|
returns the request thread.
|
|
2187
3743
|
"""
|
|
2188
3744
|
kwargs['_return_http_data_only'] = True
|
|
2189
3745
|
if kwargs.get('async_req'):
|
|
2190
|
-
return self.
|
|
3746
|
+
return self.jobs_service_list_jobs_with_http_info(project_id, **kwargs) # noqa: E501
|
|
2191
3747
|
else:
|
|
2192
|
-
(data) = self.
|
|
3748
|
+
(data) = self.jobs_service_list_jobs_with_http_info(project_id, **kwargs) # noqa: E501
|
|
2193
3749
|
return data
|
|
2194
3750
|
|
|
2195
|
-
def
|
|
2196
|
-
"""
|
|
3751
|
+
def jobs_service_list_jobs_with_http_info(self, project_id: 'str', **kwargs) -> 'V1ListJobsResponse': # noqa: E501
|
|
3752
|
+
"""jobs_service_list_jobs # noqa: E501
|
|
2197
3753
|
|
|
2198
3754
|
This method makes a synchronous HTTP request by default. To make an
|
|
2199
3755
|
asynchronous HTTP request, please pass async_req=True
|
|
2200
|
-
>>> thread = api.
|
|
3756
|
+
>>> thread = api.jobs_service_list_jobs_with_http_info(project_id, async_req=True)
|
|
2201
3757
|
>>> result = thread.get()
|
|
2202
3758
|
|
|
2203
3759
|
:param async_req bool
|
|
2204
3760
|
:param str project_id: (required)
|
|
2205
|
-
:param str
|
|
2206
|
-
:
|
|
3761
|
+
:param str cloudspace_id:
|
|
3762
|
+
:param str user_id:
|
|
3763
|
+
:param str deployment_id:
|
|
3764
|
+
:param str multi_machine_job_id:
|
|
3765
|
+
:param bool standalone: Whether to list standalone jobs, not part of a deployment or mmt.
|
|
3766
|
+
:param str page_token:
|
|
3767
|
+
:param int limit:
|
|
3768
|
+
:param str state:
|
|
3769
|
+
:return: V1ListJobsResponse
|
|
2207
3770
|
If the method is called asynchronously,
|
|
2208
3771
|
returns the request thread.
|
|
2209
3772
|
"""
|
|
2210
3773
|
|
|
2211
|
-
all_params = ['project_id', '
|
|
3774
|
+
all_params = ['project_id', 'cloudspace_id', 'user_id', 'deployment_id', 'multi_machine_job_id', 'standalone', 'page_token', 'limit', 'state'] # noqa: E501
|
|
2212
3775
|
all_params.append('async_req')
|
|
2213
3776
|
all_params.append('_return_http_data_only')
|
|
2214
3777
|
all_params.append('_preload_content')
|
|
@@ -2219,28 +3782,38 @@ class JobsServiceApi(object):
|
|
|
2219
3782
|
if key not in all_params:
|
|
2220
3783
|
raise TypeError(
|
|
2221
3784
|
"Got an unexpected keyword argument '%s'"
|
|
2222
|
-
" to method
|
|
3785
|
+
" to method jobs_service_list_jobs" % key
|
|
2223
3786
|
)
|
|
2224
3787
|
params[key] = val
|
|
2225
3788
|
del params['kwargs']
|
|
2226
3789
|
# verify the required parameter 'project_id' is set
|
|
2227
3790
|
if ('project_id' not in params or
|
|
2228
3791
|
params['project_id'] is None):
|
|
2229
|
-
raise ValueError("Missing the required parameter `project_id` when calling `
|
|
2230
|
-
# verify the required parameter 'name' is set
|
|
2231
|
-
if ('name' not in params or
|
|
2232
|
-
params['name'] is None):
|
|
2233
|
-
raise ValueError("Missing the required parameter `name` when calling `jobs_service_get_multi_machine_job_by_name`") # noqa: E501
|
|
3792
|
+
raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_list_jobs`") # noqa: E501
|
|
2234
3793
|
|
|
2235
3794
|
collection_formats = {}
|
|
2236
3795
|
|
|
2237
3796
|
path_params = {}
|
|
2238
3797
|
if 'project_id' in params:
|
|
2239
3798
|
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
2240
|
-
if 'name' in params:
|
|
2241
|
-
path_params['name'] = params['name'] # noqa: E501
|
|
2242
3799
|
|
|
2243
3800
|
query_params = []
|
|
3801
|
+
if 'cloudspace_id' in params:
|
|
3802
|
+
query_params.append(('cloudspaceId', params['cloudspace_id'])) # noqa: E501
|
|
3803
|
+
if 'user_id' in params:
|
|
3804
|
+
query_params.append(('userId', params['user_id'])) # noqa: E501
|
|
3805
|
+
if 'deployment_id' in params:
|
|
3806
|
+
query_params.append(('deploymentId', params['deployment_id'])) # noqa: E501
|
|
3807
|
+
if 'multi_machine_job_id' in params:
|
|
3808
|
+
query_params.append(('multiMachineJobId', params['multi_machine_job_id'])) # noqa: E501
|
|
3809
|
+
if 'standalone' in params:
|
|
3810
|
+
query_params.append(('standalone', params['standalone'])) # noqa: E501
|
|
3811
|
+
if 'page_token' in params:
|
|
3812
|
+
query_params.append(('pageToken', params['page_token'])) # noqa: E501
|
|
3813
|
+
if 'limit' in params:
|
|
3814
|
+
query_params.append(('limit', params['limit'])) # noqa: E501
|
|
3815
|
+
if 'state' in params:
|
|
3816
|
+
query_params.append(('state', params['state'])) # noqa: E501
|
|
2244
3817
|
|
|
2245
3818
|
header_params = {}
|
|
2246
3819
|
|
|
@@ -2256,14 +3829,14 @@ class JobsServiceApi(object):
|
|
|
2256
3829
|
auth_settings = [] # noqa: E501
|
|
2257
3830
|
|
|
2258
3831
|
return self.api_client.call_api(
|
|
2259
|
-
'/v1/projects/{projectId}/
|
|
3832
|
+
'/v1/projects/{projectId}/jobs', 'GET',
|
|
2260
3833
|
path_params,
|
|
2261
3834
|
query_params,
|
|
2262
3835
|
header_params,
|
|
2263
3836
|
body=body_params,
|
|
2264
3837
|
post_params=form_params,
|
|
2265
3838
|
files=local_var_files,
|
|
2266
|
-
response_type='
|
|
3839
|
+
response_type='V1ListJobsResponse', # noqa: E501
|
|
2267
3840
|
auth_settings=auth_settings,
|
|
2268
3841
|
async_req=params.get('async_req'),
|
|
2269
3842
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -2271,12 +3844,12 @@ class JobsServiceApi(object):
|
|
|
2271
3844
|
_request_timeout=params.get('_request_timeout'),
|
|
2272
3845
|
collection_formats=collection_formats)
|
|
2273
3846
|
|
|
2274
|
-
def
|
|
2275
|
-
"""
|
|
3847
|
+
def jobs_service_list_multi_machine_job_events(self, project_id: 'str', id: 'str', **kwargs) -> 'V1ListMultiMachineJobEventsResponse': # noqa: E501
|
|
3848
|
+
"""jobs_service_list_multi_machine_job_events # noqa: E501
|
|
2276
3849
|
|
|
2277
3850
|
This method makes a synchronous HTTP request by default. To make an
|
|
2278
3851
|
asynchronous HTTP request, please pass async_req=True
|
|
2279
|
-
>>> thread = api.
|
|
3852
|
+
>>> thread = api.jobs_service_list_multi_machine_job_events(project_id, id, async_req=True)
|
|
2280
3853
|
>>> result = thread.get()
|
|
2281
3854
|
|
|
2282
3855
|
:param async_req bool
|
|
@@ -2284,23 +3857,23 @@ class JobsServiceApi(object):
|
|
|
2284
3857
|
:param str id: (required)
|
|
2285
3858
|
:param str release_id:
|
|
2286
3859
|
:param str limit:
|
|
2287
|
-
:return:
|
|
3860
|
+
:return: V1ListMultiMachineJobEventsResponse
|
|
2288
3861
|
If the method is called asynchronously,
|
|
2289
3862
|
returns the request thread.
|
|
2290
3863
|
"""
|
|
2291
3864
|
kwargs['_return_http_data_only'] = True
|
|
2292
3865
|
if kwargs.get('async_req'):
|
|
2293
|
-
return self.
|
|
3866
|
+
return self.jobs_service_list_multi_machine_job_events_with_http_info(project_id, id, **kwargs) # noqa: E501
|
|
2294
3867
|
else:
|
|
2295
|
-
(data) = self.
|
|
3868
|
+
(data) = self.jobs_service_list_multi_machine_job_events_with_http_info(project_id, id, **kwargs) # noqa: E501
|
|
2296
3869
|
return data
|
|
2297
3870
|
|
|
2298
|
-
def
|
|
2299
|
-
"""
|
|
3871
|
+
def jobs_service_list_multi_machine_job_events_with_http_info(self, project_id: 'str', id: 'str', **kwargs) -> 'V1ListMultiMachineJobEventsResponse': # noqa: E501
|
|
3872
|
+
"""jobs_service_list_multi_machine_job_events # noqa: E501
|
|
2300
3873
|
|
|
2301
3874
|
This method makes a synchronous HTTP request by default. To make an
|
|
2302
3875
|
asynchronous HTTP request, please pass async_req=True
|
|
2303
|
-
>>> thread = api.
|
|
3876
|
+
>>> thread = api.jobs_service_list_multi_machine_job_events_with_http_info(project_id, id, async_req=True)
|
|
2304
3877
|
>>> result = thread.get()
|
|
2305
3878
|
|
|
2306
3879
|
:param async_req bool
|
|
@@ -2308,7 +3881,7 @@ class JobsServiceApi(object):
|
|
|
2308
3881
|
:param str id: (required)
|
|
2309
3882
|
:param str release_id:
|
|
2310
3883
|
:param str limit:
|
|
2311
|
-
:return:
|
|
3884
|
+
:return: V1ListMultiMachineJobEventsResponse
|
|
2312
3885
|
If the method is called asynchronously,
|
|
2313
3886
|
returns the request thread.
|
|
2314
3887
|
"""
|
|
@@ -2324,18 +3897,18 @@ class JobsServiceApi(object):
|
|
|
2324
3897
|
if key not in all_params:
|
|
2325
3898
|
raise TypeError(
|
|
2326
3899
|
"Got an unexpected keyword argument '%s'"
|
|
2327
|
-
" to method
|
|
3900
|
+
" to method jobs_service_list_multi_machine_job_events" % key
|
|
2328
3901
|
)
|
|
2329
3902
|
params[key] = val
|
|
2330
3903
|
del params['kwargs']
|
|
2331
3904
|
# verify the required parameter 'project_id' is set
|
|
2332
3905
|
if ('project_id' not in params or
|
|
2333
3906
|
params['project_id'] is None):
|
|
2334
|
-
raise ValueError("Missing the required parameter `project_id` when calling `
|
|
3907
|
+
raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_list_multi_machine_job_events`") # noqa: E501
|
|
2335
3908
|
# verify the required parameter 'id' is set
|
|
2336
3909
|
if ('id' not in params or
|
|
2337
3910
|
params['id'] is None):
|
|
2338
|
-
raise ValueError("Missing the required parameter `id` when calling `
|
|
3911
|
+
raise ValueError("Missing the required parameter `id` when calling `jobs_service_list_multi_machine_job_events`") # noqa: E501
|
|
2339
3912
|
|
|
2340
3913
|
collection_formats = {}
|
|
2341
3914
|
|
|
@@ -2365,14 +3938,119 @@ class JobsServiceApi(object):
|
|
|
2365
3938
|
auth_settings = [] # noqa: E501
|
|
2366
3939
|
|
|
2367
3940
|
return self.api_client.call_api(
|
|
2368
|
-
'/v1/projects/{projectId}/
|
|
3941
|
+
'/v1/projects/{projectId}/multi-machine-jobs/{id}/events', 'GET',
|
|
3942
|
+
path_params,
|
|
3943
|
+
query_params,
|
|
3944
|
+
header_params,
|
|
3945
|
+
body=body_params,
|
|
3946
|
+
post_params=form_params,
|
|
3947
|
+
files=local_var_files,
|
|
3948
|
+
response_type='V1ListMultiMachineJobEventsResponse', # noqa: E501
|
|
3949
|
+
auth_settings=auth_settings,
|
|
3950
|
+
async_req=params.get('async_req'),
|
|
3951
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
3952
|
+
_preload_content=params.get('_preload_content', True),
|
|
3953
|
+
_request_timeout=params.get('_request_timeout'),
|
|
3954
|
+
collection_formats=collection_formats)
|
|
3955
|
+
|
|
3956
|
+
def jobs_service_list_multi_machine_jobs(self, project_id: 'str', **kwargs) -> 'V1ListMultiMachineJobsResponse': # noqa: E501
|
|
3957
|
+
"""jobs_service_list_multi_machine_jobs # noqa: E501
|
|
3958
|
+
|
|
3959
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
3960
|
+
asynchronous HTTP request, please pass async_req=True
|
|
3961
|
+
>>> thread = api.jobs_service_list_multi_machine_jobs(project_id, async_req=True)
|
|
3962
|
+
>>> result = thread.get()
|
|
3963
|
+
|
|
3964
|
+
:param async_req bool
|
|
3965
|
+
:param str project_id: (required)
|
|
3966
|
+
:param str cloudspace_id:
|
|
3967
|
+
:param str user_id:
|
|
3968
|
+
:param bool standalone:
|
|
3969
|
+
:return: V1ListMultiMachineJobsResponse
|
|
3970
|
+
If the method is called asynchronously,
|
|
3971
|
+
returns the request thread.
|
|
3972
|
+
"""
|
|
3973
|
+
kwargs['_return_http_data_only'] = True
|
|
3974
|
+
if kwargs.get('async_req'):
|
|
3975
|
+
return self.jobs_service_list_multi_machine_jobs_with_http_info(project_id, **kwargs) # noqa: E501
|
|
3976
|
+
else:
|
|
3977
|
+
(data) = self.jobs_service_list_multi_machine_jobs_with_http_info(project_id, **kwargs) # noqa: E501
|
|
3978
|
+
return data
|
|
3979
|
+
|
|
3980
|
+
def jobs_service_list_multi_machine_jobs_with_http_info(self, project_id: 'str', **kwargs) -> 'V1ListMultiMachineJobsResponse': # noqa: E501
|
|
3981
|
+
"""jobs_service_list_multi_machine_jobs # noqa: E501
|
|
3982
|
+
|
|
3983
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
3984
|
+
asynchronous HTTP request, please pass async_req=True
|
|
3985
|
+
>>> thread = api.jobs_service_list_multi_machine_jobs_with_http_info(project_id, async_req=True)
|
|
3986
|
+
>>> result = thread.get()
|
|
3987
|
+
|
|
3988
|
+
:param async_req bool
|
|
3989
|
+
:param str project_id: (required)
|
|
3990
|
+
:param str cloudspace_id:
|
|
3991
|
+
:param str user_id:
|
|
3992
|
+
:param bool standalone:
|
|
3993
|
+
:return: V1ListMultiMachineJobsResponse
|
|
3994
|
+
If the method is called asynchronously,
|
|
3995
|
+
returns the request thread.
|
|
3996
|
+
"""
|
|
3997
|
+
|
|
3998
|
+
all_params = ['project_id', 'cloudspace_id', 'user_id', 'standalone'] # noqa: E501
|
|
3999
|
+
all_params.append('async_req')
|
|
4000
|
+
all_params.append('_return_http_data_only')
|
|
4001
|
+
all_params.append('_preload_content')
|
|
4002
|
+
all_params.append('_request_timeout')
|
|
4003
|
+
|
|
4004
|
+
params = locals()
|
|
4005
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
4006
|
+
if key not in all_params:
|
|
4007
|
+
raise TypeError(
|
|
4008
|
+
"Got an unexpected keyword argument '%s'"
|
|
4009
|
+
" to method jobs_service_list_multi_machine_jobs" % key
|
|
4010
|
+
)
|
|
4011
|
+
params[key] = val
|
|
4012
|
+
del params['kwargs']
|
|
4013
|
+
# verify the required parameter 'project_id' is set
|
|
4014
|
+
if ('project_id' not in params or
|
|
4015
|
+
params['project_id'] is None):
|
|
4016
|
+
raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_list_multi_machine_jobs`") # noqa: E501
|
|
4017
|
+
|
|
4018
|
+
collection_formats = {}
|
|
4019
|
+
|
|
4020
|
+
path_params = {}
|
|
4021
|
+
if 'project_id' in params:
|
|
4022
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
4023
|
+
|
|
4024
|
+
query_params = []
|
|
4025
|
+
if 'cloudspace_id' in params:
|
|
4026
|
+
query_params.append(('cloudspaceId', params['cloudspace_id'])) # noqa: E501
|
|
4027
|
+
if 'user_id' in params:
|
|
4028
|
+
query_params.append(('userId', params['user_id'])) # noqa: E501
|
|
4029
|
+
if 'standalone' in params:
|
|
4030
|
+
query_params.append(('standalone', params['standalone'])) # noqa: E501
|
|
4031
|
+
|
|
4032
|
+
header_params = {}
|
|
4033
|
+
|
|
4034
|
+
form_params = []
|
|
4035
|
+
local_var_files = {}
|
|
4036
|
+
|
|
4037
|
+
body_params = None
|
|
4038
|
+
# HTTP header `Accept`
|
|
4039
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
4040
|
+
['application/json']) # noqa: E501
|
|
4041
|
+
|
|
4042
|
+
# Authentication setting
|
|
4043
|
+
auth_settings = [] # noqa: E501
|
|
4044
|
+
|
|
4045
|
+
return self.api_client.call_api(
|
|
4046
|
+
'/v1/projects/{projectId}/multi-machine-jobs', 'GET',
|
|
2369
4047
|
path_params,
|
|
2370
4048
|
query_params,
|
|
2371
4049
|
header_params,
|
|
2372
4050
|
body=body_params,
|
|
2373
4051
|
post_params=form_params,
|
|
2374
4052
|
files=local_var_files,
|
|
2375
|
-
response_type='
|
|
4053
|
+
response_type='V1ListMultiMachineJobsResponse', # noqa: E501
|
|
2376
4054
|
auth_settings=auth_settings,
|
|
2377
4055
|
async_req=params.get('async_req'),
|
|
2378
4056
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -2380,47 +4058,49 @@ class JobsServiceApi(object):
|
|
|
2380
4058
|
_request_timeout=params.get('_request_timeout'),
|
|
2381
4059
|
collection_formats=collection_formats)
|
|
2382
4060
|
|
|
2383
|
-
def
|
|
2384
|
-
"""
|
|
4061
|
+
def jobs_service_report_deployment_routing_telemetry(self, body: 'JobIdReportroutingtelemetryBody', project_id: 'str', deployment_id: 'str', job_id: 'str', **kwargs) -> 'V1ReportDeploymentRoutingTelemetryResponse': # noqa: E501
|
|
4062
|
+
"""The tired proxy collects the requests sent to the resource and inform the CP # noqa: E501
|
|
2385
4063
|
|
|
2386
4064
|
This method makes a synchronous HTTP request by default. To make an
|
|
2387
4065
|
asynchronous HTTP request, please pass async_req=True
|
|
2388
|
-
>>> thread = api.
|
|
4066
|
+
>>> thread = api.jobs_service_report_deployment_routing_telemetry(body, project_id, deployment_id, job_id, async_req=True)
|
|
2389
4067
|
>>> result = thread.get()
|
|
2390
4068
|
|
|
2391
4069
|
:param async_req bool
|
|
4070
|
+
:param JobIdReportroutingtelemetryBody body: (required)
|
|
2392
4071
|
:param str project_id: (required)
|
|
2393
4072
|
:param str deployment_id: (required)
|
|
2394
|
-
:param
|
|
2395
|
-
:return:
|
|
4073
|
+
:param str job_id: (required)
|
|
4074
|
+
:return: V1ReportDeploymentRoutingTelemetryResponse
|
|
2396
4075
|
If the method is called asynchronously,
|
|
2397
4076
|
returns the request thread.
|
|
2398
4077
|
"""
|
|
2399
4078
|
kwargs['_return_http_data_only'] = True
|
|
2400
4079
|
if kwargs.get('async_req'):
|
|
2401
|
-
return self.
|
|
4080
|
+
return self.jobs_service_report_deployment_routing_telemetry_with_http_info(body, project_id, deployment_id, job_id, **kwargs) # noqa: E501
|
|
2402
4081
|
else:
|
|
2403
|
-
(data) = self.
|
|
4082
|
+
(data) = self.jobs_service_report_deployment_routing_telemetry_with_http_info(body, project_id, deployment_id, job_id, **kwargs) # noqa: E501
|
|
2404
4083
|
return data
|
|
2405
4084
|
|
|
2406
|
-
def
|
|
2407
|
-
"""
|
|
4085
|
+
def jobs_service_report_deployment_routing_telemetry_with_http_info(self, body: 'JobIdReportroutingtelemetryBody', project_id: 'str', deployment_id: 'str', job_id: 'str', **kwargs) -> 'V1ReportDeploymentRoutingTelemetryResponse': # noqa: E501
|
|
4086
|
+
"""The tired proxy collects the requests sent to the resource and inform the CP # noqa: E501
|
|
2408
4087
|
|
|
2409
4088
|
This method makes a synchronous HTTP request by default. To make an
|
|
2410
4089
|
asynchronous HTTP request, please pass async_req=True
|
|
2411
|
-
>>> thread = api.
|
|
4090
|
+
>>> thread = api.jobs_service_report_deployment_routing_telemetry_with_http_info(body, project_id, deployment_id, job_id, async_req=True)
|
|
2412
4091
|
>>> result = thread.get()
|
|
2413
4092
|
|
|
2414
4093
|
:param async_req bool
|
|
4094
|
+
:param JobIdReportroutingtelemetryBody body: (required)
|
|
2415
4095
|
:param str project_id: (required)
|
|
2416
4096
|
:param str deployment_id: (required)
|
|
2417
|
-
:param
|
|
2418
|
-
:return:
|
|
4097
|
+
:param str job_id: (required)
|
|
4098
|
+
:return: V1ReportDeploymentRoutingTelemetryResponse
|
|
2419
4099
|
If the method is called asynchronously,
|
|
2420
4100
|
returns the request thread.
|
|
2421
4101
|
"""
|
|
2422
4102
|
|
|
2423
|
-
all_params = ['project_id', 'deployment_id', '
|
|
4103
|
+
all_params = ['body', 'project_id', 'deployment_id', 'job_id'] # noqa: E501
|
|
2424
4104
|
all_params.append('async_req')
|
|
2425
4105
|
all_params.append('_return_http_data_only')
|
|
2426
4106
|
all_params.append('_preload_content')
|
|
@@ -2431,18 +4111,26 @@ class JobsServiceApi(object):
|
|
|
2431
4111
|
if key not in all_params:
|
|
2432
4112
|
raise TypeError(
|
|
2433
4113
|
"Got an unexpected keyword argument '%s'"
|
|
2434
|
-
" to method
|
|
4114
|
+
" to method jobs_service_report_deployment_routing_telemetry" % key
|
|
2435
4115
|
)
|
|
2436
4116
|
params[key] = val
|
|
2437
4117
|
del params['kwargs']
|
|
4118
|
+
# verify the required parameter 'body' is set
|
|
4119
|
+
if ('body' not in params or
|
|
4120
|
+
params['body'] is None):
|
|
4121
|
+
raise ValueError("Missing the required parameter `body` when calling `jobs_service_report_deployment_routing_telemetry`") # noqa: E501
|
|
2438
4122
|
# verify the required parameter 'project_id' is set
|
|
2439
4123
|
if ('project_id' not in params or
|
|
2440
4124
|
params['project_id'] is None):
|
|
2441
|
-
raise ValueError("Missing the required parameter `project_id` when calling `
|
|
4125
|
+
raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_report_deployment_routing_telemetry`") # noqa: E501
|
|
2442
4126
|
# verify the required parameter 'deployment_id' is set
|
|
2443
4127
|
if ('deployment_id' not in params or
|
|
2444
4128
|
params['deployment_id'] is None):
|
|
2445
|
-
raise ValueError("Missing the required parameter `deployment_id` when calling `
|
|
4129
|
+
raise ValueError("Missing the required parameter `deployment_id` when calling `jobs_service_report_deployment_routing_telemetry`") # noqa: E501
|
|
4130
|
+
# verify the required parameter 'job_id' is set
|
|
4131
|
+
if ('job_id' not in params or
|
|
4132
|
+
params['job_id'] is None):
|
|
4133
|
+
raise ValueError("Missing the required parameter `job_id` when calling `jobs_service_report_deployment_routing_telemetry`") # noqa: E501
|
|
2446
4134
|
|
|
2447
4135
|
collection_formats = {}
|
|
2448
4136
|
|
|
@@ -2451,10 +4139,10 @@ class JobsServiceApi(object):
|
|
|
2451
4139
|
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
2452
4140
|
if 'deployment_id' in params:
|
|
2453
4141
|
path_params['deploymentId'] = params['deployment_id'] # noqa: E501
|
|
4142
|
+
if 'job_id' in params:
|
|
4143
|
+
path_params['jobId'] = params['job_id'] # noqa: E501
|
|
2454
4144
|
|
|
2455
4145
|
query_params = []
|
|
2456
|
-
if 'include_archived' in params:
|
|
2457
|
-
query_params.append(('includeArchived', params['include_archived'])) # noqa: E501
|
|
2458
4146
|
|
|
2459
4147
|
header_params = {}
|
|
2460
4148
|
|
|
@@ -2462,22 +4150,28 @@ class JobsServiceApi(object):
|
|
|
2462
4150
|
local_var_files = {}
|
|
2463
4151
|
|
|
2464
4152
|
body_params = None
|
|
4153
|
+
if 'body' in params:
|
|
4154
|
+
body_params = params['body']
|
|
2465
4155
|
# HTTP header `Accept`
|
|
2466
4156
|
header_params['Accept'] = self.api_client.select_header_accept(
|
|
2467
4157
|
['application/json']) # noqa: E501
|
|
2468
4158
|
|
|
4159
|
+
# HTTP header `Content-Type`
|
|
4160
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
4161
|
+
['application/json']) # noqa: E501
|
|
4162
|
+
|
|
2469
4163
|
# Authentication setting
|
|
2470
4164
|
auth_settings = [] # noqa: E501
|
|
2471
4165
|
|
|
2472
4166
|
return self.api_client.call_api(
|
|
2473
|
-
'/v1/projects/{projectId}/
|
|
4167
|
+
'/v1/projects/{projectId}/deployment/{deploymentId}/jobs/{jobId}/report-routing-telemetry', 'PUT',
|
|
2474
4168
|
path_params,
|
|
2475
4169
|
query_params,
|
|
2476
4170
|
header_params,
|
|
2477
4171
|
body=body_params,
|
|
2478
4172
|
post_params=form_params,
|
|
2479
4173
|
files=local_var_files,
|
|
2480
|
-
response_type='
|
|
4174
|
+
response_type='V1ReportDeploymentRoutingTelemetryResponse', # noqa: E501
|
|
2481
4175
|
auth_settings=auth_settings,
|
|
2482
4176
|
async_req=params.get('async_req'),
|
|
2483
4177
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -2485,47 +4179,47 @@ class JobsServiceApi(object):
|
|
|
2485
4179
|
_request_timeout=params.get('_request_timeout'),
|
|
2486
4180
|
collection_formats=collection_formats)
|
|
2487
4181
|
|
|
2488
|
-
def
|
|
2489
|
-
"""
|
|
4182
|
+
def jobs_service_report_logs_activity(self, body: 'IdReportlogsactivityBody', project_id: 'str', id: 'str', **kwargs) -> 'V1ReportLogsActivityResponse': # noqa: E501
|
|
4183
|
+
"""The tired proxy collects the time at which the user logs started and inform the CP # noqa: E501
|
|
2490
4184
|
|
|
2491
4185
|
This method makes a synchronous HTTP request by default. To make an
|
|
2492
4186
|
asynchronous HTTP request, please pass async_req=True
|
|
2493
|
-
>>> thread = api.
|
|
4187
|
+
>>> thread = api.jobs_service_report_logs_activity(body, project_id, id, async_req=True)
|
|
2494
4188
|
>>> result = thread.get()
|
|
2495
4189
|
|
|
2496
4190
|
:param async_req bool
|
|
4191
|
+
:param IdReportlogsactivityBody body: (required)
|
|
2497
4192
|
:param str project_id: (required)
|
|
2498
|
-
:param str
|
|
2499
|
-
:
|
|
2500
|
-
:return: V1ListDeploymentsResponse
|
|
4193
|
+
:param str id: (required)
|
|
4194
|
+
:return: V1ReportLogsActivityResponse
|
|
2501
4195
|
If the method is called asynchronously,
|
|
2502
4196
|
returns the request thread.
|
|
2503
4197
|
"""
|
|
2504
4198
|
kwargs['_return_http_data_only'] = True
|
|
2505
4199
|
if kwargs.get('async_req'):
|
|
2506
|
-
return self.
|
|
4200
|
+
return self.jobs_service_report_logs_activity_with_http_info(body, project_id, id, **kwargs) # noqa: E501
|
|
2507
4201
|
else:
|
|
2508
|
-
(data) = self.
|
|
4202
|
+
(data) = self.jobs_service_report_logs_activity_with_http_info(body, project_id, id, **kwargs) # noqa: E501
|
|
2509
4203
|
return data
|
|
2510
4204
|
|
|
2511
|
-
def
|
|
2512
|
-
"""
|
|
4205
|
+
def jobs_service_report_logs_activity_with_http_info(self, body: 'IdReportlogsactivityBody', project_id: 'str', id: 'str', **kwargs) -> 'V1ReportLogsActivityResponse': # noqa: E501
|
|
4206
|
+
"""The tired proxy collects the time at which the user logs started and inform the CP # noqa: E501
|
|
2513
4207
|
|
|
2514
4208
|
This method makes a synchronous HTTP request by default. To make an
|
|
2515
4209
|
asynchronous HTTP request, please pass async_req=True
|
|
2516
|
-
>>> thread = api.
|
|
4210
|
+
>>> thread = api.jobs_service_report_logs_activity_with_http_info(body, project_id, id, async_req=True)
|
|
2517
4211
|
>>> result = thread.get()
|
|
2518
4212
|
|
|
2519
4213
|
:param async_req bool
|
|
4214
|
+
:param IdReportlogsactivityBody body: (required)
|
|
2520
4215
|
:param str project_id: (required)
|
|
2521
|
-
:param str
|
|
2522
|
-
:
|
|
2523
|
-
:return: V1ListDeploymentsResponse
|
|
4216
|
+
:param str id: (required)
|
|
4217
|
+
:return: V1ReportLogsActivityResponse
|
|
2524
4218
|
If the method is called asynchronously,
|
|
2525
4219
|
returns the request thread.
|
|
2526
4220
|
"""
|
|
2527
4221
|
|
|
2528
|
-
all_params = ['
|
|
4222
|
+
all_params = ['body', 'project_id', 'id'] # noqa: E501
|
|
2529
4223
|
all_params.append('async_req')
|
|
2530
4224
|
all_params.append('_return_http_data_only')
|
|
2531
4225
|
all_params.append('_preload_content')
|
|
@@ -2536,27 +4230,32 @@ class JobsServiceApi(object):
|
|
|
2536
4230
|
if key not in all_params:
|
|
2537
4231
|
raise TypeError(
|
|
2538
4232
|
"Got an unexpected keyword argument '%s'"
|
|
2539
|
-
" to method
|
|
4233
|
+
" to method jobs_service_report_logs_activity" % key
|
|
2540
4234
|
)
|
|
2541
4235
|
params[key] = val
|
|
2542
4236
|
del params['kwargs']
|
|
4237
|
+
# verify the required parameter 'body' is set
|
|
4238
|
+
if ('body' not in params or
|
|
4239
|
+
params['body'] is None):
|
|
4240
|
+
raise ValueError("Missing the required parameter `body` when calling `jobs_service_report_logs_activity`") # noqa: E501
|
|
2543
4241
|
# verify the required parameter 'project_id' is set
|
|
2544
4242
|
if ('project_id' not in params or
|
|
2545
4243
|
params['project_id'] is None):
|
|
2546
|
-
raise ValueError("Missing the required parameter `project_id` when calling `
|
|
4244
|
+
raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_report_logs_activity`") # noqa: E501
|
|
4245
|
+
# verify the required parameter 'id' is set
|
|
4246
|
+
if ('id' not in params or
|
|
4247
|
+
params['id'] is None):
|
|
4248
|
+
raise ValueError("Missing the required parameter `id` when calling `jobs_service_report_logs_activity`") # noqa: E501
|
|
2547
4249
|
|
|
2548
4250
|
collection_formats = {}
|
|
2549
4251
|
|
|
2550
4252
|
path_params = {}
|
|
2551
4253
|
if 'project_id' in params:
|
|
2552
4254
|
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
4255
|
+
if 'id' in params:
|
|
4256
|
+
path_params['id'] = params['id'] # noqa: E501
|
|
2553
4257
|
|
|
2554
4258
|
query_params = []
|
|
2555
|
-
if 'cloudspace_id' in params:
|
|
2556
|
-
query_params.append(('cloudspaceId', params['cloudspace_id'])) # noqa: E501
|
|
2557
|
-
if 'user_ids' in params:
|
|
2558
|
-
query_params.append(('userIds', params['user_ids'])) # noqa: E501
|
|
2559
|
-
collection_formats['userIds'] = 'multi' # noqa: E501
|
|
2560
4259
|
|
|
2561
4260
|
header_params = {}
|
|
2562
4261
|
|
|
@@ -2564,22 +4263,28 @@ class JobsServiceApi(object):
|
|
|
2564
4263
|
local_var_files = {}
|
|
2565
4264
|
|
|
2566
4265
|
body_params = None
|
|
4266
|
+
if 'body' in params:
|
|
4267
|
+
body_params = params['body']
|
|
2567
4268
|
# HTTP header `Accept`
|
|
2568
4269
|
header_params['Accept'] = self.api_client.select_header_accept(
|
|
2569
4270
|
['application/json']) # noqa: E501
|
|
2570
4271
|
|
|
4272
|
+
# HTTP header `Content-Type`
|
|
4273
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
4274
|
+
['application/json']) # noqa: E501
|
|
4275
|
+
|
|
2571
4276
|
# Authentication setting
|
|
2572
4277
|
auth_settings = [] # noqa: E501
|
|
2573
4278
|
|
|
2574
4279
|
return self.api_client.call_api(
|
|
2575
|
-
'/v1/projects/{projectId}/
|
|
4280
|
+
'/v1/projects/{projectId}/jobs/{id}/report-logs-activity', 'PUT',
|
|
2576
4281
|
path_params,
|
|
2577
4282
|
query_params,
|
|
2578
4283
|
header_params,
|
|
2579
4284
|
body=body_params,
|
|
2580
4285
|
post_params=form_params,
|
|
2581
4286
|
files=local_var_files,
|
|
2582
|
-
response_type='
|
|
4287
|
+
response_type='V1ReportLogsActivityResponse', # noqa: E501
|
|
2583
4288
|
auth_settings=auth_settings,
|
|
2584
4289
|
async_req=params.get('async_req'),
|
|
2585
4290
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -2587,59 +4292,47 @@ class JobsServiceApi(object):
|
|
|
2587
4292
|
_request_timeout=params.get('_request_timeout'),
|
|
2588
4293
|
collection_formats=collection_formats)
|
|
2589
4294
|
|
|
2590
|
-
def
|
|
2591
|
-
"""
|
|
4295
|
+
def jobs_service_report_restart_timings(self, body: 'IdReportrestarttimingsBody', project_id: 'str', id: 'str', **kwargs) -> 'V1ReportRestartTimingsResponse': # noqa: E501
|
|
4296
|
+
"""The tired proxy collects the time at which the user logs started and inform the CP # noqa: E501
|
|
2592
4297
|
|
|
2593
4298
|
This method makes a synchronous HTTP request by default. To make an
|
|
2594
4299
|
asynchronous HTTP request, please pass async_req=True
|
|
2595
|
-
>>> thread = api.
|
|
4300
|
+
>>> thread = api.jobs_service_report_restart_timings(body, project_id, id, async_req=True)
|
|
2596
4301
|
>>> result = thread.get()
|
|
2597
4302
|
|
|
2598
4303
|
:param async_req bool
|
|
4304
|
+
:param IdReportrestarttimingsBody body: (required)
|
|
2599
4305
|
:param str project_id: (required)
|
|
2600
|
-
:param str
|
|
2601
|
-
:
|
|
2602
|
-
:param str deployment_id:
|
|
2603
|
-
:param str multi_machine_job_id:
|
|
2604
|
-
:param bool standalone: Whether to list standalone jobs, not part of a deployment or mmt.
|
|
2605
|
-
:param str page_token:
|
|
2606
|
-
:param int limit:
|
|
2607
|
-
:param str state:
|
|
2608
|
-
:return: V1ListJobsResponse
|
|
4306
|
+
:param str id: (required)
|
|
4307
|
+
:return: V1ReportRestartTimingsResponse
|
|
2609
4308
|
If the method is called asynchronously,
|
|
2610
4309
|
returns the request thread.
|
|
2611
4310
|
"""
|
|
2612
4311
|
kwargs['_return_http_data_only'] = True
|
|
2613
4312
|
if kwargs.get('async_req'):
|
|
2614
|
-
return self.
|
|
4313
|
+
return self.jobs_service_report_restart_timings_with_http_info(body, project_id, id, **kwargs) # noqa: E501
|
|
2615
4314
|
else:
|
|
2616
|
-
(data) = self.
|
|
4315
|
+
(data) = self.jobs_service_report_restart_timings_with_http_info(body, project_id, id, **kwargs) # noqa: E501
|
|
2617
4316
|
return data
|
|
2618
4317
|
|
|
2619
|
-
def
|
|
2620
|
-
"""
|
|
4318
|
+
def jobs_service_report_restart_timings_with_http_info(self, body: 'IdReportrestarttimingsBody', project_id: 'str', id: 'str', **kwargs) -> 'V1ReportRestartTimingsResponse': # noqa: E501
|
|
4319
|
+
"""The tired proxy collects the time at which the user logs started and inform the CP # noqa: E501
|
|
2621
4320
|
|
|
2622
4321
|
This method makes a synchronous HTTP request by default. To make an
|
|
2623
4322
|
asynchronous HTTP request, please pass async_req=True
|
|
2624
|
-
>>> thread = api.
|
|
4323
|
+
>>> thread = api.jobs_service_report_restart_timings_with_http_info(body, project_id, id, async_req=True)
|
|
2625
4324
|
>>> result = thread.get()
|
|
2626
4325
|
|
|
2627
4326
|
:param async_req bool
|
|
4327
|
+
:param IdReportrestarttimingsBody body: (required)
|
|
2628
4328
|
:param str project_id: (required)
|
|
2629
|
-
:param str
|
|
2630
|
-
:
|
|
2631
|
-
:param str deployment_id:
|
|
2632
|
-
:param str multi_machine_job_id:
|
|
2633
|
-
:param bool standalone: Whether to list standalone jobs, not part of a deployment or mmt.
|
|
2634
|
-
:param str page_token:
|
|
2635
|
-
:param int limit:
|
|
2636
|
-
:param str state:
|
|
2637
|
-
:return: V1ListJobsResponse
|
|
4329
|
+
:param str id: (required)
|
|
4330
|
+
:return: V1ReportRestartTimingsResponse
|
|
2638
4331
|
If the method is called asynchronously,
|
|
2639
4332
|
returns the request thread.
|
|
2640
4333
|
"""
|
|
2641
4334
|
|
|
2642
|
-
all_params = ['
|
|
4335
|
+
all_params = ['body', 'project_id', 'id'] # noqa: E501
|
|
2643
4336
|
all_params.append('async_req')
|
|
2644
4337
|
all_params.append('_return_http_data_only')
|
|
2645
4338
|
all_params.append('_preload_content')
|
|
@@ -2650,38 +4343,32 @@ class JobsServiceApi(object):
|
|
|
2650
4343
|
if key not in all_params:
|
|
2651
4344
|
raise TypeError(
|
|
2652
4345
|
"Got an unexpected keyword argument '%s'"
|
|
2653
|
-
" to method
|
|
4346
|
+
" to method jobs_service_report_restart_timings" % key
|
|
2654
4347
|
)
|
|
2655
4348
|
params[key] = val
|
|
2656
4349
|
del params['kwargs']
|
|
4350
|
+
# verify the required parameter 'body' is set
|
|
4351
|
+
if ('body' not in params or
|
|
4352
|
+
params['body'] is None):
|
|
4353
|
+
raise ValueError("Missing the required parameter `body` when calling `jobs_service_report_restart_timings`") # noqa: E501
|
|
2657
4354
|
# verify the required parameter 'project_id' is set
|
|
2658
4355
|
if ('project_id' not in params or
|
|
2659
4356
|
params['project_id'] is None):
|
|
2660
|
-
raise ValueError("Missing the required parameter `project_id` when calling `
|
|
4357
|
+
raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_report_restart_timings`") # noqa: E501
|
|
4358
|
+
# verify the required parameter 'id' is set
|
|
4359
|
+
if ('id' not in params or
|
|
4360
|
+
params['id'] is None):
|
|
4361
|
+
raise ValueError("Missing the required parameter `id` when calling `jobs_service_report_restart_timings`") # noqa: E501
|
|
2661
4362
|
|
|
2662
4363
|
collection_formats = {}
|
|
2663
4364
|
|
|
2664
4365
|
path_params = {}
|
|
2665
4366
|
if 'project_id' in params:
|
|
2666
4367
|
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
4368
|
+
if 'id' in params:
|
|
4369
|
+
path_params['id'] = params['id'] # noqa: E501
|
|
2667
4370
|
|
|
2668
4371
|
query_params = []
|
|
2669
|
-
if 'cloudspace_id' in params:
|
|
2670
|
-
query_params.append(('cloudspaceId', params['cloudspace_id'])) # noqa: E501
|
|
2671
|
-
if 'user_id' in params:
|
|
2672
|
-
query_params.append(('userId', params['user_id'])) # noqa: E501
|
|
2673
|
-
if 'deployment_id' in params:
|
|
2674
|
-
query_params.append(('deploymentId', params['deployment_id'])) # noqa: E501
|
|
2675
|
-
if 'multi_machine_job_id' in params:
|
|
2676
|
-
query_params.append(('multiMachineJobId', params['multi_machine_job_id'])) # noqa: E501
|
|
2677
|
-
if 'standalone' in params:
|
|
2678
|
-
query_params.append(('standalone', params['standalone'])) # noqa: E501
|
|
2679
|
-
if 'page_token' in params:
|
|
2680
|
-
query_params.append(('pageToken', params['page_token'])) # noqa: E501
|
|
2681
|
-
if 'limit' in params:
|
|
2682
|
-
query_params.append(('limit', params['limit'])) # noqa: E501
|
|
2683
|
-
if 'state' in params:
|
|
2684
|
-
query_params.append(('state', params['state'])) # noqa: E501
|
|
2685
4372
|
|
|
2686
4373
|
header_params = {}
|
|
2687
4374
|
|
|
@@ -2689,22 +4376,28 @@ class JobsServiceApi(object):
|
|
|
2689
4376
|
local_var_files = {}
|
|
2690
4377
|
|
|
2691
4378
|
body_params = None
|
|
4379
|
+
if 'body' in params:
|
|
4380
|
+
body_params = params['body']
|
|
2692
4381
|
# HTTP header `Accept`
|
|
2693
4382
|
header_params['Accept'] = self.api_client.select_header_accept(
|
|
2694
4383
|
['application/json']) # noqa: E501
|
|
2695
4384
|
|
|
4385
|
+
# HTTP header `Content-Type`
|
|
4386
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
4387
|
+
['application/json']) # noqa: E501
|
|
4388
|
+
|
|
2696
4389
|
# Authentication setting
|
|
2697
4390
|
auth_settings = [] # noqa: E501
|
|
2698
4391
|
|
|
2699
4392
|
return self.api_client.call_api(
|
|
2700
|
-
'/v1/projects/{projectId}/jobs', '
|
|
4393
|
+
'/v1/projects/{projectId}/jobs/{id}/report-restart-timings', 'PUT',
|
|
2701
4394
|
path_params,
|
|
2702
4395
|
query_params,
|
|
2703
4396
|
header_params,
|
|
2704
4397
|
body=body_params,
|
|
2705
4398
|
post_params=form_params,
|
|
2706
4399
|
files=local_var_files,
|
|
2707
|
-
response_type='
|
|
4400
|
+
response_type='V1ReportRestartTimingsResponse', # noqa: E501
|
|
2708
4401
|
auth_settings=auth_settings,
|
|
2709
4402
|
async_req=params.get('async_req'),
|
|
2710
4403
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -2712,49 +4405,49 @@ class JobsServiceApi(object):
|
|
|
2712
4405
|
_request_timeout=params.get('_request_timeout'),
|
|
2713
4406
|
collection_formats=collection_formats)
|
|
2714
4407
|
|
|
2715
|
-
def
|
|
2716
|
-
"""
|
|
4408
|
+
def jobs_service_restore_deployment_release(self, body: 'object', project_id: 'str', deployment_id: 'str', id: 'str', **kwargs) -> 'V1RestoreDeploymentReleaseResponse': # noqa: E501
|
|
4409
|
+
"""jobs_service_restore_deployment_release # noqa: E501
|
|
2717
4410
|
|
|
2718
4411
|
This method makes a synchronous HTTP request by default. To make an
|
|
2719
4412
|
asynchronous HTTP request, please pass async_req=True
|
|
2720
|
-
>>> thread = api.
|
|
4413
|
+
>>> thread = api.jobs_service_restore_deployment_release(body, project_id, deployment_id, id, async_req=True)
|
|
2721
4414
|
>>> result = thread.get()
|
|
2722
4415
|
|
|
2723
4416
|
:param async_req bool
|
|
4417
|
+
:param object body: (required)
|
|
2724
4418
|
:param str project_id: (required)
|
|
4419
|
+
:param str deployment_id: (required)
|
|
2725
4420
|
:param str id: (required)
|
|
2726
|
-
:
|
|
2727
|
-
:param str limit:
|
|
2728
|
-
:return: V1ListMultiMachineJobEventsResponse
|
|
4421
|
+
:return: V1RestoreDeploymentReleaseResponse
|
|
2729
4422
|
If the method is called asynchronously,
|
|
2730
4423
|
returns the request thread.
|
|
2731
4424
|
"""
|
|
2732
4425
|
kwargs['_return_http_data_only'] = True
|
|
2733
4426
|
if kwargs.get('async_req'):
|
|
2734
|
-
return self.
|
|
4427
|
+
return self.jobs_service_restore_deployment_release_with_http_info(body, project_id, deployment_id, id, **kwargs) # noqa: E501
|
|
2735
4428
|
else:
|
|
2736
|
-
(data) = self.
|
|
4429
|
+
(data) = self.jobs_service_restore_deployment_release_with_http_info(body, project_id, deployment_id, id, **kwargs) # noqa: E501
|
|
2737
4430
|
return data
|
|
2738
4431
|
|
|
2739
|
-
def
|
|
2740
|
-
"""
|
|
4432
|
+
def jobs_service_restore_deployment_release_with_http_info(self, body: 'object', project_id: 'str', deployment_id: 'str', id: 'str', **kwargs) -> 'V1RestoreDeploymentReleaseResponse': # noqa: E501
|
|
4433
|
+
"""jobs_service_restore_deployment_release # noqa: E501
|
|
2741
4434
|
|
|
2742
4435
|
This method makes a synchronous HTTP request by default. To make an
|
|
2743
4436
|
asynchronous HTTP request, please pass async_req=True
|
|
2744
|
-
>>> thread = api.
|
|
4437
|
+
>>> thread = api.jobs_service_restore_deployment_release_with_http_info(body, project_id, deployment_id, id, async_req=True)
|
|
2745
4438
|
>>> result = thread.get()
|
|
2746
4439
|
|
|
2747
4440
|
:param async_req bool
|
|
4441
|
+
:param object body: (required)
|
|
2748
4442
|
:param str project_id: (required)
|
|
4443
|
+
:param str deployment_id: (required)
|
|
2749
4444
|
:param str id: (required)
|
|
2750
|
-
:
|
|
2751
|
-
:param str limit:
|
|
2752
|
-
:return: V1ListMultiMachineJobEventsResponse
|
|
4445
|
+
:return: V1RestoreDeploymentReleaseResponse
|
|
2753
4446
|
If the method is called asynchronously,
|
|
2754
4447
|
returns the request thread.
|
|
2755
4448
|
"""
|
|
2756
4449
|
|
|
2757
|
-
all_params = ['
|
|
4450
|
+
all_params = ['body', 'project_id', 'deployment_id', 'id'] # noqa: E501
|
|
2758
4451
|
all_params.append('async_req')
|
|
2759
4452
|
all_params.append('_return_http_data_only')
|
|
2760
4453
|
all_params.append('_preload_content')
|
|
@@ -2765,32 +4458,38 @@ class JobsServiceApi(object):
|
|
|
2765
4458
|
if key not in all_params:
|
|
2766
4459
|
raise TypeError(
|
|
2767
4460
|
"Got an unexpected keyword argument '%s'"
|
|
2768
|
-
" to method
|
|
4461
|
+
" to method jobs_service_restore_deployment_release" % key
|
|
2769
4462
|
)
|
|
2770
4463
|
params[key] = val
|
|
2771
4464
|
del params['kwargs']
|
|
4465
|
+
# verify the required parameter 'body' is set
|
|
4466
|
+
if ('body' not in params or
|
|
4467
|
+
params['body'] is None):
|
|
4468
|
+
raise ValueError("Missing the required parameter `body` when calling `jobs_service_restore_deployment_release`") # noqa: E501
|
|
2772
4469
|
# verify the required parameter 'project_id' is set
|
|
2773
4470
|
if ('project_id' not in params or
|
|
2774
4471
|
params['project_id'] is None):
|
|
2775
|
-
raise ValueError("Missing the required parameter `project_id` when calling `
|
|
4472
|
+
raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_restore_deployment_release`") # noqa: E501
|
|
4473
|
+
# verify the required parameter 'deployment_id' is set
|
|
4474
|
+
if ('deployment_id' not in params or
|
|
4475
|
+
params['deployment_id'] is None):
|
|
4476
|
+
raise ValueError("Missing the required parameter `deployment_id` when calling `jobs_service_restore_deployment_release`") # noqa: E501
|
|
2776
4477
|
# verify the required parameter 'id' is set
|
|
2777
4478
|
if ('id' not in params or
|
|
2778
4479
|
params['id'] is None):
|
|
2779
|
-
raise ValueError("Missing the required parameter `id` when calling `
|
|
4480
|
+
raise ValueError("Missing the required parameter `id` when calling `jobs_service_restore_deployment_release`") # noqa: E501
|
|
2780
4481
|
|
|
2781
4482
|
collection_formats = {}
|
|
2782
4483
|
|
|
2783
4484
|
path_params = {}
|
|
2784
4485
|
if 'project_id' in params:
|
|
2785
4486
|
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
4487
|
+
if 'deployment_id' in params:
|
|
4488
|
+
path_params['deploymentId'] = params['deployment_id'] # noqa: E501
|
|
2786
4489
|
if 'id' in params:
|
|
2787
4490
|
path_params['id'] = params['id'] # noqa: E501
|
|
2788
4491
|
|
|
2789
4492
|
query_params = []
|
|
2790
|
-
if 'release_id' in params:
|
|
2791
|
-
query_params.append(('releaseId', params['release_id'])) # noqa: E501
|
|
2792
|
-
if 'limit' in params:
|
|
2793
|
-
query_params.append(('limit', params['limit'])) # noqa: E501
|
|
2794
4493
|
|
|
2795
4494
|
header_params = {}
|
|
2796
4495
|
|
|
@@ -2798,22 +4497,28 @@ class JobsServiceApi(object):
|
|
|
2798
4497
|
local_var_files = {}
|
|
2799
4498
|
|
|
2800
4499
|
body_params = None
|
|
4500
|
+
if 'body' in params:
|
|
4501
|
+
body_params = params['body']
|
|
2801
4502
|
# HTTP header `Accept`
|
|
2802
4503
|
header_params['Accept'] = self.api_client.select_header_accept(
|
|
2803
4504
|
['application/json']) # noqa: E501
|
|
2804
4505
|
|
|
4506
|
+
# HTTP header `Content-Type`
|
|
4507
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
4508
|
+
['application/json']) # noqa: E501
|
|
4509
|
+
|
|
2805
4510
|
# Authentication setting
|
|
2806
4511
|
auth_settings = [] # noqa: E501
|
|
2807
4512
|
|
|
2808
4513
|
return self.api_client.call_api(
|
|
2809
|
-
'/v1/projects/{projectId}/
|
|
4514
|
+
'/v1/projects/{projectId}/deployments/{deploymentId}/releases/{id}', 'POST',
|
|
2810
4515
|
path_params,
|
|
2811
4516
|
query_params,
|
|
2812
4517
|
header_params,
|
|
2813
4518
|
body=body_params,
|
|
2814
4519
|
post_params=form_params,
|
|
2815
4520
|
files=local_var_files,
|
|
2816
|
-
response_type='
|
|
4521
|
+
response_type='V1RestoreDeploymentReleaseResponse', # noqa: E501
|
|
2817
4522
|
auth_settings=auth_settings,
|
|
2818
4523
|
async_req=params.get('async_req'),
|
|
2819
4524
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -2821,45 +4526,57 @@ class JobsServiceApi(object):
|
|
|
2821
4526
|
_request_timeout=params.get('_request_timeout'),
|
|
2822
4527
|
collection_formats=collection_formats)
|
|
2823
4528
|
|
|
2824
|
-
def
|
|
2825
|
-
"""
|
|
4529
|
+
def jobs_service_search_job_logs(self, project_id: 'str', **kwargs) -> 'V1SearchJobLogsResponse': # noqa: E501
|
|
4530
|
+
"""jobs_service_search_job_logs # noqa: E501
|
|
2826
4531
|
|
|
2827
4532
|
This method makes a synchronous HTTP request by default. To make an
|
|
2828
4533
|
asynchronous HTTP request, please pass async_req=True
|
|
2829
|
-
>>> thread = api.
|
|
4534
|
+
>>> thread = api.jobs_service_search_job_logs(project_id, async_req=True)
|
|
2830
4535
|
>>> result = thread.get()
|
|
2831
4536
|
|
|
2832
4537
|
:param async_req bool
|
|
2833
4538
|
:param str project_id: (required)
|
|
2834
|
-
:param str
|
|
2835
|
-
:
|
|
4539
|
+
:param str id:
|
|
4540
|
+
:param str deployment_id:
|
|
4541
|
+
:param datetime since:
|
|
4542
|
+
:param datetime until:
|
|
4543
|
+
:param str query:
|
|
4544
|
+
:param str page_size:
|
|
4545
|
+
:param str page_token:
|
|
4546
|
+
:return: V1SearchJobLogsResponse
|
|
2836
4547
|
If the method is called asynchronously,
|
|
2837
4548
|
returns the request thread.
|
|
2838
4549
|
"""
|
|
2839
4550
|
kwargs['_return_http_data_only'] = True
|
|
2840
4551
|
if kwargs.get('async_req'):
|
|
2841
|
-
return self.
|
|
4552
|
+
return self.jobs_service_search_job_logs_with_http_info(project_id, **kwargs) # noqa: E501
|
|
2842
4553
|
else:
|
|
2843
|
-
(data) = self.
|
|
4554
|
+
(data) = self.jobs_service_search_job_logs_with_http_info(project_id, **kwargs) # noqa: E501
|
|
2844
4555
|
return data
|
|
2845
4556
|
|
|
2846
|
-
def
|
|
2847
|
-
"""
|
|
4557
|
+
def jobs_service_search_job_logs_with_http_info(self, project_id: 'str', **kwargs) -> 'V1SearchJobLogsResponse': # noqa: E501
|
|
4558
|
+
"""jobs_service_search_job_logs # noqa: E501
|
|
2848
4559
|
|
|
2849
4560
|
This method makes a synchronous HTTP request by default. To make an
|
|
2850
4561
|
asynchronous HTTP request, please pass async_req=True
|
|
2851
|
-
>>> thread = api.
|
|
4562
|
+
>>> thread = api.jobs_service_search_job_logs_with_http_info(project_id, async_req=True)
|
|
2852
4563
|
>>> result = thread.get()
|
|
2853
4564
|
|
|
2854
4565
|
:param async_req bool
|
|
2855
4566
|
:param str project_id: (required)
|
|
2856
|
-
:param str
|
|
2857
|
-
:
|
|
4567
|
+
:param str id:
|
|
4568
|
+
:param str deployment_id:
|
|
4569
|
+
:param datetime since:
|
|
4570
|
+
:param datetime until:
|
|
4571
|
+
:param str query:
|
|
4572
|
+
:param str page_size:
|
|
4573
|
+
:param str page_token:
|
|
4574
|
+
:return: V1SearchJobLogsResponse
|
|
2858
4575
|
If the method is called asynchronously,
|
|
2859
4576
|
returns the request thread.
|
|
2860
4577
|
"""
|
|
2861
4578
|
|
|
2862
|
-
all_params = ['project_id', '
|
|
4579
|
+
all_params = ['project_id', 'id', 'deployment_id', 'since', 'until', 'query', 'page_size', 'page_token'] # noqa: E501
|
|
2863
4580
|
all_params.append('async_req')
|
|
2864
4581
|
all_params.append('_return_http_data_only')
|
|
2865
4582
|
all_params.append('_preload_content')
|
|
@@ -2870,14 +4587,14 @@ class JobsServiceApi(object):
|
|
|
2870
4587
|
if key not in all_params:
|
|
2871
4588
|
raise TypeError(
|
|
2872
4589
|
"Got an unexpected keyword argument '%s'"
|
|
2873
|
-
" to method
|
|
4590
|
+
" to method jobs_service_search_job_logs" % key
|
|
2874
4591
|
)
|
|
2875
4592
|
params[key] = val
|
|
2876
4593
|
del params['kwargs']
|
|
2877
4594
|
# verify the required parameter 'project_id' is set
|
|
2878
4595
|
if ('project_id' not in params or
|
|
2879
4596
|
params['project_id'] is None):
|
|
2880
|
-
raise ValueError("Missing the required parameter `project_id` when calling `
|
|
4597
|
+
raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_search_job_logs`") # noqa: E501
|
|
2881
4598
|
|
|
2882
4599
|
collection_formats = {}
|
|
2883
4600
|
|
|
@@ -2886,8 +4603,20 @@ class JobsServiceApi(object):
|
|
|
2886
4603
|
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
2887
4604
|
|
|
2888
4605
|
query_params = []
|
|
2889
|
-
if '
|
|
2890
|
-
query_params.append(('
|
|
4606
|
+
if 'id' in params:
|
|
4607
|
+
query_params.append(('id', params['id'])) # noqa: E501
|
|
4608
|
+
if 'deployment_id' in params:
|
|
4609
|
+
query_params.append(('deploymentId', params['deployment_id'])) # noqa: E501
|
|
4610
|
+
if 'since' in params:
|
|
4611
|
+
query_params.append(('since', params['since'])) # noqa: E501
|
|
4612
|
+
if 'until' in params:
|
|
4613
|
+
query_params.append(('until', params['until'])) # noqa: E501
|
|
4614
|
+
if 'query' in params:
|
|
4615
|
+
query_params.append(('query', params['query'])) # noqa: E501
|
|
4616
|
+
if 'page_size' in params:
|
|
4617
|
+
query_params.append(('pageSize', params['page_size'])) # noqa: E501
|
|
4618
|
+
if 'page_token' in params:
|
|
4619
|
+
query_params.append(('pageToken', params['page_token'])) # noqa: E501
|
|
2891
4620
|
|
|
2892
4621
|
header_params = {}
|
|
2893
4622
|
|
|
@@ -2903,14 +4632,14 @@ class JobsServiceApi(object):
|
|
|
2903
4632
|
auth_settings = [] # noqa: E501
|
|
2904
4633
|
|
|
2905
4634
|
return self.api_client.call_api(
|
|
2906
|
-
'/v1/projects/{projectId}/
|
|
4635
|
+
'/v1/projects/{projectId}/jobs/logs', 'GET',
|
|
2907
4636
|
path_params,
|
|
2908
4637
|
query_params,
|
|
2909
4638
|
header_params,
|
|
2910
4639
|
body=body_params,
|
|
2911
4640
|
post_params=form_params,
|
|
2912
4641
|
files=local_var_files,
|
|
2913
|
-
response_type='
|
|
4642
|
+
response_type='V1SearchJobLogsResponse', # noqa: E501
|
|
2914
4643
|
auth_settings=auth_settings,
|
|
2915
4644
|
async_req=params.get('async_req'),
|
|
2916
4645
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -2918,42 +4647,42 @@ class JobsServiceApi(object):
|
|
|
2918
4647
|
_request_timeout=params.get('_request_timeout'),
|
|
2919
4648
|
collection_formats=collection_formats)
|
|
2920
4649
|
|
|
2921
|
-
def
|
|
2922
|
-
"""
|
|
4650
|
+
def jobs_service_update_deployment(self, body: 'DeploymentsIdBody', project_id: 'str', id: 'str', **kwargs) -> 'V1Deployment': # noqa: E501
|
|
4651
|
+
"""jobs_service_update_deployment # noqa: E501
|
|
2923
4652
|
|
|
2924
4653
|
This method makes a synchronous HTTP request by default. To make an
|
|
2925
4654
|
asynchronous HTTP request, please pass async_req=True
|
|
2926
|
-
>>> thread = api.
|
|
4655
|
+
>>> thread = api.jobs_service_update_deployment(body, project_id, id, async_req=True)
|
|
2927
4656
|
>>> result = thread.get()
|
|
2928
4657
|
|
|
2929
4658
|
:param async_req bool
|
|
2930
|
-
:param
|
|
4659
|
+
:param DeploymentsIdBody body: (required)
|
|
2931
4660
|
:param str project_id: (required)
|
|
2932
4661
|
:param str id: (required)
|
|
2933
|
-
:return:
|
|
4662
|
+
:return: V1Deployment
|
|
2934
4663
|
If the method is called asynchronously,
|
|
2935
4664
|
returns the request thread.
|
|
2936
4665
|
"""
|
|
2937
4666
|
kwargs['_return_http_data_only'] = True
|
|
2938
4667
|
if kwargs.get('async_req'):
|
|
2939
|
-
return self.
|
|
4668
|
+
return self.jobs_service_update_deployment_with_http_info(body, project_id, id, **kwargs) # noqa: E501
|
|
2940
4669
|
else:
|
|
2941
|
-
(data) = self.
|
|
4670
|
+
(data) = self.jobs_service_update_deployment_with_http_info(body, project_id, id, **kwargs) # noqa: E501
|
|
2942
4671
|
return data
|
|
2943
4672
|
|
|
2944
|
-
def
|
|
2945
|
-
"""
|
|
4673
|
+
def jobs_service_update_deployment_with_http_info(self, body: 'DeploymentsIdBody', project_id: 'str', id: 'str', **kwargs) -> 'V1Deployment': # noqa: E501
|
|
4674
|
+
"""jobs_service_update_deployment # noqa: E501
|
|
2946
4675
|
|
|
2947
4676
|
This method makes a synchronous HTTP request by default. To make an
|
|
2948
4677
|
asynchronous HTTP request, please pass async_req=True
|
|
2949
|
-
>>> thread = api.
|
|
4678
|
+
>>> thread = api.jobs_service_update_deployment_with_http_info(body, project_id, id, async_req=True)
|
|
2950
4679
|
>>> result = thread.get()
|
|
2951
4680
|
|
|
2952
4681
|
:param async_req bool
|
|
2953
|
-
:param
|
|
4682
|
+
:param DeploymentsIdBody body: (required)
|
|
2954
4683
|
:param str project_id: (required)
|
|
2955
4684
|
:param str id: (required)
|
|
2956
|
-
:return:
|
|
4685
|
+
:return: V1Deployment
|
|
2957
4686
|
If the method is called asynchronously,
|
|
2958
4687
|
returns the request thread.
|
|
2959
4688
|
"""
|
|
@@ -2969,22 +4698,22 @@ class JobsServiceApi(object):
|
|
|
2969
4698
|
if key not in all_params:
|
|
2970
4699
|
raise TypeError(
|
|
2971
4700
|
"Got an unexpected keyword argument '%s'"
|
|
2972
|
-
" to method
|
|
4701
|
+
" to method jobs_service_update_deployment" % key
|
|
2973
4702
|
)
|
|
2974
4703
|
params[key] = val
|
|
2975
4704
|
del params['kwargs']
|
|
2976
4705
|
# verify the required parameter 'body' is set
|
|
2977
4706
|
if ('body' not in params or
|
|
2978
4707
|
params['body'] is None):
|
|
2979
|
-
raise ValueError("Missing the required parameter `body` when calling `
|
|
4708
|
+
raise ValueError("Missing the required parameter `body` when calling `jobs_service_update_deployment`") # noqa: E501
|
|
2980
4709
|
# verify the required parameter 'project_id' is set
|
|
2981
4710
|
if ('project_id' not in params or
|
|
2982
4711
|
params['project_id'] is None):
|
|
2983
|
-
raise ValueError("Missing the required parameter `project_id` when calling `
|
|
4712
|
+
raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_update_deployment`") # noqa: E501
|
|
2984
4713
|
# verify the required parameter 'id' is set
|
|
2985
4714
|
if ('id' not in params or
|
|
2986
4715
|
params['id'] is None):
|
|
2987
|
-
raise ValueError("Missing the required parameter `id` when calling `
|
|
4716
|
+
raise ValueError("Missing the required parameter `id` when calling `jobs_service_update_deployment`") # noqa: E501
|
|
2988
4717
|
|
|
2989
4718
|
collection_formats = {}
|
|
2990
4719
|
|
|
@@ -3016,14 +4745,14 @@ class JobsServiceApi(object):
|
|
|
3016
4745
|
auth_settings = [] # noqa: E501
|
|
3017
4746
|
|
|
3018
4747
|
return self.api_client.call_api(
|
|
3019
|
-
'/v1/projects/{projectId}/
|
|
4748
|
+
'/v1/projects/{projectId}/deployments/{id}', 'PUT',
|
|
3020
4749
|
path_params,
|
|
3021
4750
|
query_params,
|
|
3022
4751
|
header_params,
|
|
3023
4752
|
body=body_params,
|
|
3024
4753
|
post_params=form_params,
|
|
3025
4754
|
files=local_var_files,
|
|
3026
|
-
response_type='
|
|
4755
|
+
response_type='V1Deployment', # noqa: E501
|
|
3027
4756
|
auth_settings=auth_settings,
|
|
3028
4757
|
async_req=params.get('async_req'),
|
|
3029
4758
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -3031,44 +4760,44 @@ class JobsServiceApi(object):
|
|
|
3031
4760
|
_request_timeout=params.get('_request_timeout'),
|
|
3032
4761
|
collection_formats=collection_formats)
|
|
3033
4762
|
|
|
3034
|
-
def
|
|
3035
|
-
"""
|
|
4763
|
+
def jobs_service_update_deployment_alerting_event(self, body: 'AlertingeventsIdBody', project_id: 'str', deployment_id: 'str', id: 'str', **kwargs) -> 'V1DeploymentAlertingEvent': # noqa: E501
|
|
4764
|
+
"""UpdateDeploymentAlertingEvent lists the deployment alert events # noqa: E501
|
|
3036
4765
|
|
|
3037
4766
|
This method makes a synchronous HTTP request by default. To make an
|
|
3038
4767
|
asynchronous HTTP request, please pass async_req=True
|
|
3039
|
-
>>> thread = api.
|
|
4768
|
+
>>> thread = api.jobs_service_update_deployment_alerting_event(body, project_id, deployment_id, id, async_req=True)
|
|
3040
4769
|
>>> result = thread.get()
|
|
3041
4770
|
|
|
3042
4771
|
:param async_req bool
|
|
3043
|
-
:param
|
|
4772
|
+
:param AlertingeventsIdBody body: (required)
|
|
3044
4773
|
:param str project_id: (required)
|
|
3045
4774
|
:param str deployment_id: (required)
|
|
3046
4775
|
:param str id: (required)
|
|
3047
|
-
:return:
|
|
4776
|
+
:return: V1DeploymentAlertingEvent
|
|
3048
4777
|
If the method is called asynchronously,
|
|
3049
4778
|
returns the request thread.
|
|
3050
4779
|
"""
|
|
3051
4780
|
kwargs['_return_http_data_only'] = True
|
|
3052
4781
|
if kwargs.get('async_req'):
|
|
3053
|
-
return self.
|
|
4782
|
+
return self.jobs_service_update_deployment_alerting_event_with_http_info(body, project_id, deployment_id, id, **kwargs) # noqa: E501
|
|
3054
4783
|
else:
|
|
3055
|
-
(data) = self.
|
|
4784
|
+
(data) = self.jobs_service_update_deployment_alerting_event_with_http_info(body, project_id, deployment_id, id, **kwargs) # noqa: E501
|
|
3056
4785
|
return data
|
|
3057
4786
|
|
|
3058
|
-
def
|
|
3059
|
-
"""
|
|
4787
|
+
def jobs_service_update_deployment_alerting_event_with_http_info(self, body: 'AlertingeventsIdBody', project_id: 'str', deployment_id: 'str', id: 'str', **kwargs) -> 'V1DeploymentAlertingEvent': # noqa: E501
|
|
4788
|
+
"""UpdateDeploymentAlertingEvent lists the deployment alert events # noqa: E501
|
|
3060
4789
|
|
|
3061
4790
|
This method makes a synchronous HTTP request by default. To make an
|
|
3062
4791
|
asynchronous HTTP request, please pass async_req=True
|
|
3063
|
-
>>> thread = api.
|
|
4792
|
+
>>> thread = api.jobs_service_update_deployment_alerting_event_with_http_info(body, project_id, deployment_id, id, async_req=True)
|
|
3064
4793
|
>>> result = thread.get()
|
|
3065
4794
|
|
|
3066
4795
|
:param async_req bool
|
|
3067
|
-
:param
|
|
4796
|
+
:param AlertingeventsIdBody body: (required)
|
|
3068
4797
|
:param str project_id: (required)
|
|
3069
4798
|
:param str deployment_id: (required)
|
|
3070
4799
|
:param str id: (required)
|
|
3071
|
-
:return:
|
|
4800
|
+
:return: V1DeploymentAlertingEvent
|
|
3072
4801
|
If the method is called asynchronously,
|
|
3073
4802
|
returns the request thread.
|
|
3074
4803
|
"""
|
|
@@ -3084,26 +4813,26 @@ class JobsServiceApi(object):
|
|
|
3084
4813
|
if key not in all_params:
|
|
3085
4814
|
raise TypeError(
|
|
3086
4815
|
"Got an unexpected keyword argument '%s'"
|
|
3087
|
-
" to method
|
|
4816
|
+
" to method jobs_service_update_deployment_alerting_event" % key
|
|
3088
4817
|
)
|
|
3089
4818
|
params[key] = val
|
|
3090
4819
|
del params['kwargs']
|
|
3091
4820
|
# verify the required parameter 'body' is set
|
|
3092
4821
|
if ('body' not in params or
|
|
3093
4822
|
params['body'] is None):
|
|
3094
|
-
raise ValueError("Missing the required parameter `body` when calling `
|
|
4823
|
+
raise ValueError("Missing the required parameter `body` when calling `jobs_service_update_deployment_alerting_event`") # noqa: E501
|
|
3095
4824
|
# verify the required parameter 'project_id' is set
|
|
3096
4825
|
if ('project_id' not in params or
|
|
3097
4826
|
params['project_id'] is None):
|
|
3098
|
-
raise ValueError("Missing the required parameter `project_id` when calling `
|
|
4827
|
+
raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_update_deployment_alerting_event`") # noqa: E501
|
|
3099
4828
|
# verify the required parameter 'deployment_id' is set
|
|
3100
4829
|
if ('deployment_id' not in params or
|
|
3101
4830
|
params['deployment_id'] is None):
|
|
3102
|
-
raise ValueError("Missing the required parameter `deployment_id` when calling `
|
|
4831
|
+
raise ValueError("Missing the required parameter `deployment_id` when calling `jobs_service_update_deployment_alerting_event`") # noqa: E501
|
|
3103
4832
|
# verify the required parameter 'id' is set
|
|
3104
4833
|
if ('id' not in params or
|
|
3105
4834
|
params['id'] is None):
|
|
3106
|
-
raise ValueError("Missing the required parameter `id` when calling `
|
|
4835
|
+
raise ValueError("Missing the required parameter `id` when calling `jobs_service_update_deployment_alerting_event`") # noqa: E501
|
|
3107
4836
|
|
|
3108
4837
|
collection_formats = {}
|
|
3109
4838
|
|
|
@@ -3137,14 +4866,14 @@ class JobsServiceApi(object):
|
|
|
3137
4866
|
auth_settings = [] # noqa: E501
|
|
3138
4867
|
|
|
3139
4868
|
return self.api_client.call_api(
|
|
3140
|
-
'/v1/projects/{projectId}/deployments/{deploymentId}/
|
|
4869
|
+
'/v1/projects/{projectId}/deployments/{deploymentId}/alerting-events/{id}', 'PUT',
|
|
3141
4870
|
path_params,
|
|
3142
4871
|
query_params,
|
|
3143
4872
|
header_params,
|
|
3144
4873
|
body=body_params,
|
|
3145
4874
|
post_params=form_params,
|
|
3146
4875
|
files=local_var_files,
|
|
3147
|
-
response_type='
|
|
4876
|
+
response_type='V1DeploymentAlertingEvent', # noqa: E501
|
|
3148
4877
|
auth_settings=auth_settings,
|
|
3149
4878
|
async_req=params.get('async_req'),
|
|
3150
4879
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -3152,57 +4881,47 @@ class JobsServiceApi(object):
|
|
|
3152
4881
|
_request_timeout=params.get('_request_timeout'),
|
|
3153
4882
|
collection_formats=collection_formats)
|
|
3154
4883
|
|
|
3155
|
-
def
|
|
3156
|
-
"""
|
|
4884
|
+
def jobs_service_update_deployment_alerting_policy(self, body: 'DeploymentIdAlertingpoliciesBody', project_id: 'str', deployment_id: 'str', **kwargs) -> 'V1DeploymentAlertingPolicy': # noqa: E501
|
|
4885
|
+
"""jobs_service_update_deployment_alerting_policy # noqa: E501
|
|
3157
4886
|
|
|
3158
4887
|
This method makes a synchronous HTTP request by default. To make an
|
|
3159
4888
|
asynchronous HTTP request, please pass async_req=True
|
|
3160
|
-
>>> thread = api.
|
|
4889
|
+
>>> thread = api.jobs_service_update_deployment_alerting_policy(body, project_id, deployment_id, async_req=True)
|
|
3161
4890
|
>>> result = thread.get()
|
|
3162
4891
|
|
|
3163
4892
|
:param async_req bool
|
|
4893
|
+
:param DeploymentIdAlertingpoliciesBody body: (required)
|
|
3164
4894
|
:param str project_id: (required)
|
|
3165
|
-
:param str
|
|
3166
|
-
:
|
|
3167
|
-
:param datetime since:
|
|
3168
|
-
:param datetime until:
|
|
3169
|
-
:param str query:
|
|
3170
|
-
:param str page_size:
|
|
3171
|
-
:param str page_token:
|
|
3172
|
-
:return: V1SearchJobLogsResponse
|
|
4895
|
+
:param str deployment_id: (required)
|
|
4896
|
+
:return: V1DeploymentAlertingPolicy
|
|
3173
4897
|
If the method is called asynchronously,
|
|
3174
4898
|
returns the request thread.
|
|
3175
4899
|
"""
|
|
3176
4900
|
kwargs['_return_http_data_only'] = True
|
|
3177
4901
|
if kwargs.get('async_req'):
|
|
3178
|
-
return self.
|
|
4902
|
+
return self.jobs_service_update_deployment_alerting_policy_with_http_info(body, project_id, deployment_id, **kwargs) # noqa: E501
|
|
3179
4903
|
else:
|
|
3180
|
-
(data) = self.
|
|
4904
|
+
(data) = self.jobs_service_update_deployment_alerting_policy_with_http_info(body, project_id, deployment_id, **kwargs) # noqa: E501
|
|
3181
4905
|
return data
|
|
3182
4906
|
|
|
3183
|
-
def
|
|
3184
|
-
"""
|
|
4907
|
+
def jobs_service_update_deployment_alerting_policy_with_http_info(self, body: 'DeploymentIdAlertingpoliciesBody', project_id: 'str', deployment_id: 'str', **kwargs) -> 'V1DeploymentAlertingPolicy': # noqa: E501
|
|
4908
|
+
"""jobs_service_update_deployment_alerting_policy # noqa: E501
|
|
3185
4909
|
|
|
3186
4910
|
This method makes a synchronous HTTP request by default. To make an
|
|
3187
4911
|
asynchronous HTTP request, please pass async_req=True
|
|
3188
|
-
>>> thread = api.
|
|
4912
|
+
>>> thread = api.jobs_service_update_deployment_alerting_policy_with_http_info(body, project_id, deployment_id, async_req=True)
|
|
3189
4913
|
>>> result = thread.get()
|
|
3190
4914
|
|
|
3191
4915
|
:param async_req bool
|
|
4916
|
+
:param DeploymentIdAlertingpoliciesBody body: (required)
|
|
3192
4917
|
:param str project_id: (required)
|
|
3193
|
-
:param str
|
|
3194
|
-
:
|
|
3195
|
-
:param datetime since:
|
|
3196
|
-
:param datetime until:
|
|
3197
|
-
:param str query:
|
|
3198
|
-
:param str page_size:
|
|
3199
|
-
:param str page_token:
|
|
3200
|
-
:return: V1SearchJobLogsResponse
|
|
4918
|
+
:param str deployment_id: (required)
|
|
4919
|
+
:return: V1DeploymentAlertingPolicy
|
|
3201
4920
|
If the method is called asynchronously,
|
|
3202
4921
|
returns the request thread.
|
|
3203
4922
|
"""
|
|
3204
4923
|
|
|
3205
|
-
all_params = ['
|
|
4924
|
+
all_params = ['body', 'project_id', 'deployment_id'] # noqa: E501
|
|
3206
4925
|
all_params.append('async_req')
|
|
3207
4926
|
all_params.append('_return_http_data_only')
|
|
3208
4927
|
all_params.append('_preload_content')
|
|
@@ -3213,36 +4932,32 @@ class JobsServiceApi(object):
|
|
|
3213
4932
|
if key not in all_params:
|
|
3214
4933
|
raise TypeError(
|
|
3215
4934
|
"Got an unexpected keyword argument '%s'"
|
|
3216
|
-
" to method
|
|
4935
|
+
" to method jobs_service_update_deployment_alerting_policy" % key
|
|
3217
4936
|
)
|
|
3218
4937
|
params[key] = val
|
|
3219
4938
|
del params['kwargs']
|
|
4939
|
+
# verify the required parameter 'body' is set
|
|
4940
|
+
if ('body' not in params or
|
|
4941
|
+
params['body'] is None):
|
|
4942
|
+
raise ValueError("Missing the required parameter `body` when calling `jobs_service_update_deployment_alerting_policy`") # noqa: E501
|
|
3220
4943
|
# verify the required parameter 'project_id' is set
|
|
3221
4944
|
if ('project_id' not in params or
|
|
3222
4945
|
params['project_id'] is None):
|
|
3223
|
-
raise ValueError("Missing the required parameter `project_id` when calling `
|
|
4946
|
+
raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_update_deployment_alerting_policy`") # noqa: E501
|
|
4947
|
+
# verify the required parameter 'deployment_id' is set
|
|
4948
|
+
if ('deployment_id' not in params or
|
|
4949
|
+
params['deployment_id'] is None):
|
|
4950
|
+
raise ValueError("Missing the required parameter `deployment_id` when calling `jobs_service_update_deployment_alerting_policy`") # noqa: E501
|
|
3224
4951
|
|
|
3225
4952
|
collection_formats = {}
|
|
3226
4953
|
|
|
3227
4954
|
path_params = {}
|
|
3228
4955
|
if 'project_id' in params:
|
|
3229
4956
|
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
4957
|
+
if 'deployment_id' in params:
|
|
4958
|
+
path_params['deploymentId'] = params['deployment_id'] # noqa: E501
|
|
3230
4959
|
|
|
3231
4960
|
query_params = []
|
|
3232
|
-
if 'id' in params:
|
|
3233
|
-
query_params.append(('id', params['id'])) # noqa: E501
|
|
3234
|
-
if 'deployment_id' in params:
|
|
3235
|
-
query_params.append(('deploymentId', params['deployment_id'])) # noqa: E501
|
|
3236
|
-
if 'since' in params:
|
|
3237
|
-
query_params.append(('since', params['since'])) # noqa: E501
|
|
3238
|
-
if 'until' in params:
|
|
3239
|
-
query_params.append(('until', params['until'])) # noqa: E501
|
|
3240
|
-
if 'query' in params:
|
|
3241
|
-
query_params.append(('query', params['query'])) # noqa: E501
|
|
3242
|
-
if 'page_size' in params:
|
|
3243
|
-
query_params.append(('pageSize', params['page_size'])) # noqa: E501
|
|
3244
|
-
if 'page_token' in params:
|
|
3245
|
-
query_params.append(('pageToken', params['page_token'])) # noqa: E501
|
|
3246
4961
|
|
|
3247
4962
|
header_params = {}
|
|
3248
4963
|
|
|
@@ -3250,22 +4965,28 @@ class JobsServiceApi(object):
|
|
|
3250
4965
|
local_var_files = {}
|
|
3251
4966
|
|
|
3252
4967
|
body_params = None
|
|
4968
|
+
if 'body' in params:
|
|
4969
|
+
body_params = params['body']
|
|
3253
4970
|
# HTTP header `Accept`
|
|
3254
4971
|
header_params['Accept'] = self.api_client.select_header_accept(
|
|
3255
4972
|
['application/json']) # noqa: E501
|
|
3256
4973
|
|
|
4974
|
+
# HTTP header `Content-Type`
|
|
4975
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
4976
|
+
['application/json']) # noqa: E501
|
|
4977
|
+
|
|
3257
4978
|
# Authentication setting
|
|
3258
4979
|
auth_settings = [] # noqa: E501
|
|
3259
4980
|
|
|
3260
4981
|
return self.api_client.call_api(
|
|
3261
|
-
'/v1/projects/{projectId}/
|
|
4982
|
+
'/v1/projects/{projectId}/deployments/{deploymentId}/alerting-policies', 'PUT',
|
|
3262
4983
|
path_params,
|
|
3263
4984
|
query_params,
|
|
3264
4985
|
header_params,
|
|
3265
4986
|
body=body_params,
|
|
3266
4987
|
post_params=form_params,
|
|
3267
4988
|
files=local_var_files,
|
|
3268
|
-
response_type='
|
|
4989
|
+
response_type='V1DeploymentAlertingPolicy', # noqa: E501
|
|
3269
4990
|
auth_settings=auth_settings,
|
|
3270
4991
|
async_req=params.get('async_req'),
|
|
3271
4992
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -3273,42 +4994,42 @@ class JobsServiceApi(object):
|
|
|
3273
4994
|
_request_timeout=params.get('_request_timeout'),
|
|
3274
4995
|
collection_formats=collection_formats)
|
|
3275
4996
|
|
|
3276
|
-
def
|
|
3277
|
-
"""
|
|
4997
|
+
def jobs_service_update_deployment_visibility(self, body: 'IdVisibilityBody', project_id: 'str', id: 'str', **kwargs) -> 'V1UpdateDeploymentVisibilityResponse': # noqa: E501
|
|
4998
|
+
"""UpdateDeploymentVisibility updates the deployment visibility, mainly switch between public and private # noqa: E501
|
|
3278
4999
|
|
|
3279
5000
|
This method makes a synchronous HTTP request by default. To make an
|
|
3280
5001
|
asynchronous HTTP request, please pass async_req=True
|
|
3281
|
-
>>> thread = api.
|
|
5002
|
+
>>> thread = api.jobs_service_update_deployment_visibility(body, project_id, id, async_req=True)
|
|
3282
5003
|
>>> result = thread.get()
|
|
3283
5004
|
|
|
3284
5005
|
:param async_req bool
|
|
3285
|
-
:param
|
|
5006
|
+
:param IdVisibilityBody body: (required)
|
|
3286
5007
|
:param str project_id: (required)
|
|
3287
5008
|
:param str id: (required)
|
|
3288
|
-
:return:
|
|
5009
|
+
:return: V1UpdateDeploymentVisibilityResponse
|
|
3289
5010
|
If the method is called asynchronously,
|
|
3290
5011
|
returns the request thread.
|
|
3291
5012
|
"""
|
|
3292
5013
|
kwargs['_return_http_data_only'] = True
|
|
3293
5014
|
if kwargs.get('async_req'):
|
|
3294
|
-
return self.
|
|
5015
|
+
return self.jobs_service_update_deployment_visibility_with_http_info(body, project_id, id, **kwargs) # noqa: E501
|
|
3295
5016
|
else:
|
|
3296
|
-
(data) = self.
|
|
5017
|
+
(data) = self.jobs_service_update_deployment_visibility_with_http_info(body, project_id, id, **kwargs) # noqa: E501
|
|
3297
5018
|
return data
|
|
3298
5019
|
|
|
3299
|
-
def
|
|
3300
|
-
"""
|
|
5020
|
+
def jobs_service_update_deployment_visibility_with_http_info(self, body: 'IdVisibilityBody', project_id: 'str', id: 'str', **kwargs) -> 'V1UpdateDeploymentVisibilityResponse': # noqa: E501
|
|
5021
|
+
"""UpdateDeploymentVisibility updates the deployment visibility, mainly switch between public and private # noqa: E501
|
|
3301
5022
|
|
|
3302
5023
|
This method makes a synchronous HTTP request by default. To make an
|
|
3303
5024
|
asynchronous HTTP request, please pass async_req=True
|
|
3304
|
-
>>> thread = api.
|
|
5025
|
+
>>> thread = api.jobs_service_update_deployment_visibility_with_http_info(body, project_id, id, async_req=True)
|
|
3305
5026
|
>>> result = thread.get()
|
|
3306
5027
|
|
|
3307
5028
|
:param async_req bool
|
|
3308
|
-
:param
|
|
5029
|
+
:param IdVisibilityBody body: (required)
|
|
3309
5030
|
:param str project_id: (required)
|
|
3310
5031
|
:param str id: (required)
|
|
3311
|
-
:return:
|
|
5032
|
+
:return: V1UpdateDeploymentVisibilityResponse
|
|
3312
5033
|
If the method is called asynchronously,
|
|
3313
5034
|
returns the request thread.
|
|
3314
5035
|
"""
|
|
@@ -3324,22 +5045,22 @@ class JobsServiceApi(object):
|
|
|
3324
5045
|
if key not in all_params:
|
|
3325
5046
|
raise TypeError(
|
|
3326
5047
|
"Got an unexpected keyword argument '%s'"
|
|
3327
|
-
" to method
|
|
5048
|
+
" to method jobs_service_update_deployment_visibility" % key
|
|
3328
5049
|
)
|
|
3329
5050
|
params[key] = val
|
|
3330
5051
|
del params['kwargs']
|
|
3331
5052
|
# verify the required parameter 'body' is set
|
|
3332
5053
|
if ('body' not in params or
|
|
3333
5054
|
params['body'] is None):
|
|
3334
|
-
raise ValueError("Missing the required parameter `body` when calling `
|
|
5055
|
+
raise ValueError("Missing the required parameter `body` when calling `jobs_service_update_deployment_visibility`") # noqa: E501
|
|
3335
5056
|
# verify the required parameter 'project_id' is set
|
|
3336
5057
|
if ('project_id' not in params or
|
|
3337
5058
|
params['project_id'] is None):
|
|
3338
|
-
raise ValueError("Missing the required parameter `project_id` when calling `
|
|
5059
|
+
raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_update_deployment_visibility`") # noqa: E501
|
|
3339
5060
|
# verify the required parameter 'id' is set
|
|
3340
5061
|
if ('id' not in params or
|
|
3341
5062
|
params['id'] is None):
|
|
3342
|
-
raise ValueError("Missing the required parameter `id` when calling `
|
|
5063
|
+
raise ValueError("Missing the required parameter `id` when calling `jobs_service_update_deployment_visibility`") # noqa: E501
|
|
3343
5064
|
|
|
3344
5065
|
collection_formats = {}
|
|
3345
5066
|
|
|
@@ -3371,14 +5092,14 @@ class JobsServiceApi(object):
|
|
|
3371
5092
|
auth_settings = [] # noqa: E501
|
|
3372
5093
|
|
|
3373
5094
|
return self.api_client.call_api(
|
|
3374
|
-
'/v1/projects/{projectId}/deployments/{id}', 'PUT',
|
|
5095
|
+
'/v1/projects/{projectId}/deployments/{id}/visibility', 'PUT',
|
|
3375
5096
|
path_params,
|
|
3376
5097
|
query_params,
|
|
3377
5098
|
header_params,
|
|
3378
5099
|
body=body_params,
|
|
3379
5100
|
post_params=form_params,
|
|
3380
5101
|
files=local_var_files,
|
|
3381
|
-
response_type='
|
|
5102
|
+
response_type='V1UpdateDeploymentVisibilityResponse', # noqa: E501
|
|
3382
5103
|
auth_settings=auth_settings,
|
|
3383
5104
|
async_req=params.get('async_req'),
|
|
3384
5105
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -3612,6 +5333,119 @@ class JobsServiceApi(object):
|
|
|
3612
5333
|
_request_timeout=params.get('_request_timeout'),
|
|
3613
5334
|
collection_formats=collection_formats)
|
|
3614
5335
|
|
|
5336
|
+
def jobs_service_update_job_visibility(self, body: 'IdVisibilityBody1', project_id: 'str', id: 'str', **kwargs) -> 'V1UpdateJobVisibilityResponse': # noqa: E501
|
|
5337
|
+
"""UpdateJobVisibility updates the jobs visibility, mainly switch between public and private # noqa: E501
|
|
5338
|
+
|
|
5339
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
5340
|
+
asynchronous HTTP request, please pass async_req=True
|
|
5341
|
+
>>> thread = api.jobs_service_update_job_visibility(body, project_id, id, async_req=True)
|
|
5342
|
+
>>> result = thread.get()
|
|
5343
|
+
|
|
5344
|
+
:param async_req bool
|
|
5345
|
+
:param IdVisibilityBody1 body: (required)
|
|
5346
|
+
:param str project_id: (required)
|
|
5347
|
+
:param str id: (required)
|
|
5348
|
+
:return: V1UpdateJobVisibilityResponse
|
|
5349
|
+
If the method is called asynchronously,
|
|
5350
|
+
returns the request thread.
|
|
5351
|
+
"""
|
|
5352
|
+
kwargs['_return_http_data_only'] = True
|
|
5353
|
+
if kwargs.get('async_req'):
|
|
5354
|
+
return self.jobs_service_update_job_visibility_with_http_info(body, project_id, id, **kwargs) # noqa: E501
|
|
5355
|
+
else:
|
|
5356
|
+
(data) = self.jobs_service_update_job_visibility_with_http_info(body, project_id, id, **kwargs) # noqa: E501
|
|
5357
|
+
return data
|
|
5358
|
+
|
|
5359
|
+
def jobs_service_update_job_visibility_with_http_info(self, body: 'IdVisibilityBody1', project_id: 'str', id: 'str', **kwargs) -> 'V1UpdateJobVisibilityResponse': # noqa: E501
|
|
5360
|
+
"""UpdateJobVisibility updates the jobs visibility, mainly switch between public and private # noqa: E501
|
|
5361
|
+
|
|
5362
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
5363
|
+
asynchronous HTTP request, please pass async_req=True
|
|
5364
|
+
>>> thread = api.jobs_service_update_job_visibility_with_http_info(body, project_id, id, async_req=True)
|
|
5365
|
+
>>> result = thread.get()
|
|
5366
|
+
|
|
5367
|
+
:param async_req bool
|
|
5368
|
+
:param IdVisibilityBody1 body: (required)
|
|
5369
|
+
:param str project_id: (required)
|
|
5370
|
+
:param str id: (required)
|
|
5371
|
+
:return: V1UpdateJobVisibilityResponse
|
|
5372
|
+
If the method is called asynchronously,
|
|
5373
|
+
returns the request thread.
|
|
5374
|
+
"""
|
|
5375
|
+
|
|
5376
|
+
all_params = ['body', 'project_id', 'id'] # noqa: E501
|
|
5377
|
+
all_params.append('async_req')
|
|
5378
|
+
all_params.append('_return_http_data_only')
|
|
5379
|
+
all_params.append('_preload_content')
|
|
5380
|
+
all_params.append('_request_timeout')
|
|
5381
|
+
|
|
5382
|
+
params = locals()
|
|
5383
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
5384
|
+
if key not in all_params:
|
|
5385
|
+
raise TypeError(
|
|
5386
|
+
"Got an unexpected keyword argument '%s'"
|
|
5387
|
+
" to method jobs_service_update_job_visibility" % key
|
|
5388
|
+
)
|
|
5389
|
+
params[key] = val
|
|
5390
|
+
del params['kwargs']
|
|
5391
|
+
# verify the required parameter 'body' is set
|
|
5392
|
+
if ('body' not in params or
|
|
5393
|
+
params['body'] is None):
|
|
5394
|
+
raise ValueError("Missing the required parameter `body` when calling `jobs_service_update_job_visibility`") # noqa: E501
|
|
5395
|
+
# verify the required parameter 'project_id' is set
|
|
5396
|
+
if ('project_id' not in params or
|
|
5397
|
+
params['project_id'] is None):
|
|
5398
|
+
raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_update_job_visibility`") # noqa: E501
|
|
5399
|
+
# verify the required parameter 'id' is set
|
|
5400
|
+
if ('id' not in params or
|
|
5401
|
+
params['id'] is None):
|
|
5402
|
+
raise ValueError("Missing the required parameter `id` when calling `jobs_service_update_job_visibility`") # noqa: E501
|
|
5403
|
+
|
|
5404
|
+
collection_formats = {}
|
|
5405
|
+
|
|
5406
|
+
path_params = {}
|
|
5407
|
+
if 'project_id' in params:
|
|
5408
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
5409
|
+
if 'id' in params:
|
|
5410
|
+
path_params['id'] = params['id'] # noqa: E501
|
|
5411
|
+
|
|
5412
|
+
query_params = []
|
|
5413
|
+
|
|
5414
|
+
header_params = {}
|
|
5415
|
+
|
|
5416
|
+
form_params = []
|
|
5417
|
+
local_var_files = {}
|
|
5418
|
+
|
|
5419
|
+
body_params = None
|
|
5420
|
+
if 'body' in params:
|
|
5421
|
+
body_params = params['body']
|
|
5422
|
+
# HTTP header `Accept`
|
|
5423
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
5424
|
+
['application/json']) # noqa: E501
|
|
5425
|
+
|
|
5426
|
+
# HTTP header `Content-Type`
|
|
5427
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
5428
|
+
['application/json']) # noqa: E501
|
|
5429
|
+
|
|
5430
|
+
# Authentication setting
|
|
5431
|
+
auth_settings = [] # noqa: E501
|
|
5432
|
+
|
|
5433
|
+
return self.api_client.call_api(
|
|
5434
|
+
'/v1/projects/{projectId}/jobs/{id}/visibility', 'PUT',
|
|
5435
|
+
path_params,
|
|
5436
|
+
query_params,
|
|
5437
|
+
header_params,
|
|
5438
|
+
body=body_params,
|
|
5439
|
+
post_params=form_params,
|
|
5440
|
+
files=local_var_files,
|
|
5441
|
+
response_type='V1UpdateJobVisibilityResponse', # noqa: E501
|
|
5442
|
+
auth_settings=auth_settings,
|
|
5443
|
+
async_req=params.get('async_req'),
|
|
5444
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
5445
|
+
_preload_content=params.get('_preload_content', True),
|
|
5446
|
+
_request_timeout=params.get('_request_timeout'),
|
|
5447
|
+
collection_formats=collection_formats)
|
|
5448
|
+
|
|
3615
5449
|
def jobs_service_update_multi_machine_job(self, body: 'MultimachinejobsIdBody', project_id: 'str', id: 'str', **kwargs) -> 'V1MultiMachineJob': # noqa: E501
|
|
3616
5450
|
"""jobs_service_update_multi_machine_job # noqa: E501
|
|
3617
5451
|
|