lightning-sdk 0.2.15__py3-none-any.whl → 0.2.17__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 +1 -1
- lightning_sdk/api/base_studio_api.py +7 -1
- lightning_sdk/api/cluster_api.py +83 -1
- lightning_sdk/api/llm_api.py +27 -5
- lightning_sdk/api/studio_api.py +64 -0
- lightning_sdk/api/teamspace_api.py +127 -1
- lightning_sdk/api/utils.py +4 -0
- lightning_sdk/base_studio.py +14 -1
- lightning_sdk/cli/create.py +21 -1
- lightning_sdk/cli/deploy/__init__.py +0 -0
- lightning_sdk/cli/deploy/_auth.py +189 -0
- lightning_sdk/cli/deploy/devbox.py +157 -0
- lightning_sdk/cli/{serve.py → deploy/serve.py} +11 -322
- lightning_sdk/cli/download.py +44 -16
- lightning_sdk/cli/entrypoint.py +1 -1
- lightning_sdk/cli/open.py +21 -2
- lightning_sdk/cli/start.py +12 -3
- lightning_sdk/cli/upload.py +2 -4
- lightning_sdk/lightning_cloud/openapi/__init__.py +19 -0
- lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +126 -1
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_environment_template_service_api.py +97 -0
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +105 -0
- lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +105 -0
- lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +752 -106
- lightning_sdk/lightning_cloud/openapi/api/storage_service_api.py +93 -0
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +19 -0
- lightning_sdk/lightning_cloud/openapi/models/assistant_id_conversations_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/cloudspaces_id_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/create_deployment_request_defines_a_spec_for_the_job_that_allows_for_autoscaling_jobs.py +27 -1
- 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 +79 -1
- lightning_sdk/lightning_cloud/openapi/models/models_id_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +105 -1
- lightning_sdk/lightning_cloud/openapi/models/project_id_cloudspaces_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_source_type.py +103 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_tagging_options.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_deployment_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_data_connection.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_deployment_alerting_policy_response.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +79 -1
- 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 +111 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_recipients.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_ge_list_deployment_routing_telemetry_response.py +27 -1
- 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_deployment_routing_telemetry_content_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_organization_storage_metadata_response.py +331 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_google_cloud_direct_v1.py +27 -1
- 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_membership.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +105 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_project.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_project_membership.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_project_storage.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_routing_telemetry.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_server_alert_type.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_sleep_server_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_user_request.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +105 -53
- lightning_sdk/lightning_cloud/openapi/models/v1_user_requested_compute_config.py +27 -1
- lightning_sdk/llm/llm.py +54 -8
- lightning_sdk/studio.py +40 -1
- lightning_sdk/teamspace.py +68 -0
- {lightning_sdk-0.2.15.dist-info → lightning_sdk-0.2.17.dist-info}/METADATA +1 -1
- {lightning_sdk-0.2.15.dist-info → lightning_sdk-0.2.17.dist-info}/RECORD +80 -58
- {lightning_sdk-0.2.15.dist-info → lightning_sdk-0.2.17.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.2.15.dist-info → lightning_sdk-0.2.17.dist-info}/WHEEL +0 -0
- {lightning_sdk-0.2.15.dist-info → lightning_sdk-0.2.17.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.2.15.dist-info → lightning_sdk-0.2.17.dist-info}/top_level.txt +0 -0
|
@@ -103,6 +103,8 @@ from lightning_sdk.lightning_cloud.openapi.models.data_connection_mount_data_con
|
|
|
103
103
|
from lightning_sdk.lightning_cloud.openapi.models.dataset_id_versions_body import DatasetIdVersionsBody
|
|
104
104
|
from lightning_sdk.lightning_cloud.openapi.models.dataset_id_visibility_body import DatasetIdVisibilityBody
|
|
105
105
|
from lightning_sdk.lightning_cloud.openapi.models.datasets_id_body import DatasetsIdBody
|
|
106
|
+
from lightning_sdk.lightning_cloud.openapi.models.deployment_id_alertingpolicies_body import DeploymentIdAlertingpoliciesBody
|
|
107
|
+
from lightning_sdk.lightning_cloud.openapi.models.deployment_id_alertingpolicies_body1 import DeploymentIdAlertingpoliciesBody1
|
|
106
108
|
from lightning_sdk.lightning_cloud.openapi.models.deployments_id_body import DeploymentsIdBody
|
|
107
109
|
from lightning_sdk.lightning_cloud.openapi.models.deploymenttemplates_id_body import DeploymenttemplatesIdBody
|
|
108
110
|
from lightning_sdk.lightning_cloud.openapi.models.endpoints_id_body import EndpointsIdBody
|
|
@@ -160,6 +162,7 @@ from lightning_sdk.lightning_cloud.openapi.models.metricsstream_delete_body impo
|
|
|
160
162
|
from lightning_sdk.lightning_cloud.openapi.models.metricsstream_id_body import MetricsstreamIdBody
|
|
161
163
|
from lightning_sdk.lightning_cloud.openapi.models.model_id_versions_body import ModelIdVersionsBody
|
|
162
164
|
from lightning_sdk.lightning_cloud.openapi.models.model_id_visibility_body import ModelIdVisibilityBody
|
|
165
|
+
from lightning_sdk.lightning_cloud.openapi.models.models_id_body import ModelsIdBody
|
|
163
166
|
from lightning_sdk.lightning_cloud.openapi.models.models_model_id_body import ModelsModelIdBody
|
|
164
167
|
from lightning_sdk.lightning_cloud.openapi.models.multimachinejobs_id_body import MultimachinejobsIdBody
|
|
165
168
|
from lightning_sdk.lightning_cloud.openapi.models.multipartuploads_upload_id_body import MultipartuploadsUploadIdBody
|
|
@@ -295,6 +298,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_cloud_space_publication imp
|
|
|
295
298
|
from lightning_sdk.lightning_cloud.openapi.models.v1_cloud_space_publication_type import V1CloudSpacePublicationType
|
|
296
299
|
from lightning_sdk.lightning_cloud.openapi.models.v1_cloud_space_seed_file import V1CloudSpaceSeedFile
|
|
297
300
|
from lightning_sdk.lightning_cloud.openapi.models.v1_cloud_space_session import V1CloudSpaceSession
|
|
301
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_cloud_space_source_type import V1CloudSpaceSourceType
|
|
298
302
|
from lightning_sdk.lightning_cloud.openapi.models.v1_cloud_space_state import V1CloudSpaceState
|
|
299
303
|
from lightning_sdk.lightning_cloud.openapi.models.v1_cloud_space_version import V1CloudSpaceVersion
|
|
300
304
|
from lightning_sdk.lightning_cloud.openapi.models.v1_cloud_space_version_publication import V1CloudSpaceVersionPublication
|
|
@@ -393,6 +397,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_delete_cluster_usage_restri
|
|
|
393
397
|
from lightning_sdk.lightning_cloud.openapi.models.v1_delete_conversation_response import V1DeleteConversationResponse
|
|
394
398
|
from lightning_sdk.lightning_cloud.openapi.models.v1_delete_data_connection_response import V1DeleteDataConnectionResponse
|
|
395
399
|
from lightning_sdk.lightning_cloud.openapi.models.v1_delete_dataset_response import V1DeleteDatasetResponse
|
|
400
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_delete_deployment_alerting_policy_response import V1DeleteDeploymentAlertingPolicyResponse
|
|
396
401
|
from lightning_sdk.lightning_cloud.openapi.models.v1_delete_deployment_release_response import V1DeleteDeploymentReleaseResponse
|
|
397
402
|
from lightning_sdk.lightning_cloud.openapi.models.v1_delete_deployment_response import V1DeleteDeploymentResponse
|
|
398
403
|
from lightning_sdk.lightning_cloud.openapi.models.v1_delete_endpoint_response import V1DeleteEndpointResponse
|
|
@@ -438,6 +443,13 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_dependency_cache_state impo
|
|
|
438
443
|
from lightning_sdk.lightning_cloud.openapi.models.v1_dependency_file_info import V1DependencyFileInfo
|
|
439
444
|
from lightning_sdk.lightning_cloud.openapi.models.v1_deployment import V1Deployment
|
|
440
445
|
from lightning_sdk.lightning_cloud.openapi.models.v1_deployment_api import V1DeploymentAPI
|
|
446
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_deployment_alerting_event import V1DeploymentAlertingEvent
|
|
447
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_deployment_alerting_policy import V1DeploymentAlertingPolicy
|
|
448
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_deployment_alerting_policy_frequency import V1DeploymentAlertingPolicyFrequency
|
|
449
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_deployment_alerting_policy_operation import V1DeploymentAlertingPolicyOperation
|
|
450
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_deployment_alerting_policy_severity import V1DeploymentAlertingPolicySeverity
|
|
451
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_deployment_alerting_policy_type import V1DeploymentAlertingPolicyType
|
|
452
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_deployment_alerting_recipients import V1DeploymentAlertingRecipients
|
|
441
453
|
from lightning_sdk.lightning_cloud.openapi.models.v1_deployment_details import V1DeploymentDetails
|
|
442
454
|
from lightning_sdk.lightning_cloud.openapi.models.v1_deployment_event import V1DeploymentEvent
|
|
443
455
|
from lightning_sdk.lightning_cloud.openapi.models.v1_deployment_event_type import V1DeploymentEventType
|
|
@@ -507,12 +519,14 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_get_agent_job_env_response
|
|
|
507
519
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_agent_job_logs_metadata_response import V1GetAgentJobLogsMetadataResponse
|
|
508
520
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_artifacts_page_response import V1GetArtifactsPageResponse
|
|
509
521
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_cloud_space_cold_start_metrics_stats_response import V1GetCloudSpaceColdStartMetricsStatsResponse
|
|
522
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_get_cloud_space_instance_open_ports_response import V1GetCloudSpaceInstanceOpenPortsResponse
|
|
510
523
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_cloud_space_instance_status_response import V1GetCloudSpaceInstanceStatusResponse
|
|
511
524
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_cloud_space_instance_system_metrics_aggregate_response import V1GetCloudSpaceInstanceSystemMetricsAggregateResponse
|
|
512
525
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_cloud_space_size_response import V1GetCloudSpaceSizeResponse
|
|
513
526
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_cluster_accelerator_demand_response import V1GetClusterAcceleratorDemandResponse
|
|
514
527
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_cluster_credentials_response import V1GetClusterCredentialsResponse
|
|
515
528
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_deployment_routing_telemetry_aggregated_response import V1GetDeploymentRoutingTelemetryAggregatedResponse
|
|
529
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_get_deployment_routing_telemetry_content_response import V1GetDeploymentRoutingTelemetryContentResponse
|
|
516
530
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_deployment_routing_telemetry_response import V1GetDeploymentRoutingTelemetryResponse
|
|
517
531
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_folder_index_response import V1GetFolderIndexResponse
|
|
518
532
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_job_stats_response import V1GetJobStatsResponse
|
|
@@ -529,6 +543,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_get_model_file_upload_urls_
|
|
|
529
543
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_model_file_url_response import V1GetModelFileUrlResponse
|
|
530
544
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_model_files_response import V1GetModelFilesResponse
|
|
531
545
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_model_files_url_response import V1GetModelFilesUrlResponse
|
|
546
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_get_organization_storage_metadata_response import V1GetOrganizationStorageMetadataResponse
|
|
532
547
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_project_artifact_response import V1GetProjectArtifactResponse
|
|
533
548
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_project_balance_response import V1GetProjectBalanceResponse
|
|
534
549
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_project_compute_usage_response import V1GetProjectComputeUsageResponse
|
|
@@ -617,6 +632,8 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_list_data_connection_artifa
|
|
|
617
632
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_data_connections_response import V1ListDataConnectionsResponse
|
|
618
633
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_datasets_response import V1ListDatasetsResponse
|
|
619
634
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_default_cluster_accelerators_response import V1ListDefaultClusterAcceleratorsResponse
|
|
635
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_list_deployment_alerting_events_response import V1ListDeploymentAlertingEventsResponse
|
|
636
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_list_deployment_alerting_policies_response import V1ListDeploymentAlertingPoliciesResponse
|
|
620
637
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_deployment_events_response import V1ListDeploymentEventsResponse
|
|
621
638
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_deployment_releases_response import V1ListDeploymentReleasesResponse
|
|
622
639
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_deployment_tags_response import V1ListDeploymentTagsResponse
|
|
@@ -819,6 +836,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_restart_timing import V1Res
|
|
|
819
836
|
from lightning_sdk.lightning_cloud.openapi.models.v1_restore_deployment_release_response import V1RestoreDeploymentReleaseResponse
|
|
820
837
|
from lightning_sdk.lightning_cloud.openapi.models.v1_role import V1Role
|
|
821
838
|
from lightning_sdk.lightning_cloud.openapi.models.v1_rolling_update_strategy import V1RollingUpdateStrategy
|
|
839
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_routing_telemetry import V1RoutingTelemetry
|
|
822
840
|
from lightning_sdk.lightning_cloud.openapi.models.v1_rule import V1Rule
|
|
823
841
|
from lightning_sdk.lightning_cloud.openapi.models.v1_rule_action import V1RuleAction
|
|
824
842
|
from lightning_sdk.lightning_cloud.openapi.models.v1_rule_condition import V1RuleCondition
|
|
@@ -849,6 +867,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_setup_data_connection_respo
|
|
|
849
867
|
from lightning_sdk.lightning_cloud.openapi.models.v1_shared_filesystem import V1SharedFilesystem
|
|
850
868
|
from lightning_sdk.lightning_cloud.openapi.models.v1_should_start_syncing_response import V1ShouldStartSyncingResponse
|
|
851
869
|
from lightning_sdk.lightning_cloud.openapi.models.v1_signed_url import V1SignedUrl
|
|
870
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_sleep_server_response import V1SleepServerResponse
|
|
852
871
|
from lightning_sdk.lightning_cloud.openapi.models.v1_slurm_cluster_user import V1SlurmClusterUser
|
|
853
872
|
from lightning_sdk.lightning_cloud.openapi.models.v1_slurm_node import V1SlurmNode
|
|
854
873
|
from lightning_sdk.lightning_cloud.openapi.models.v1_slurm_v1 import V1SlurmV1
|
|
@@ -1274,6 +1274,7 @@ class AssistantsServiceApi(object):
|
|
|
1274
1274
|
:param async_req bool
|
|
1275
1275
|
:param str assistant_id: (required)
|
|
1276
1276
|
:param str page_token:
|
|
1277
|
+
:param bool filter_internal:
|
|
1277
1278
|
:return: V1ListConversationsResponse
|
|
1278
1279
|
If the method is called asynchronously,
|
|
1279
1280
|
returns the request thread.
|
|
@@ -1296,12 +1297,13 @@ class AssistantsServiceApi(object):
|
|
|
1296
1297
|
:param async_req bool
|
|
1297
1298
|
:param str assistant_id: (required)
|
|
1298
1299
|
:param str page_token:
|
|
1300
|
+
:param bool filter_internal:
|
|
1299
1301
|
:return: V1ListConversationsResponse
|
|
1300
1302
|
If the method is called asynchronously,
|
|
1301
1303
|
returns the request thread.
|
|
1302
1304
|
"""
|
|
1303
1305
|
|
|
1304
|
-
all_params = ['assistant_id', 'page_token'] # noqa: E501
|
|
1306
|
+
all_params = ['assistant_id', 'page_token', 'filter_internal'] # noqa: E501
|
|
1305
1307
|
all_params.append('async_req')
|
|
1306
1308
|
all_params.append('_return_http_data_only')
|
|
1307
1309
|
all_params.append('_preload_content')
|
|
@@ -1330,6 +1332,8 @@ class AssistantsServiceApi(object):
|
|
|
1330
1332
|
query_params = []
|
|
1331
1333
|
if 'page_token' in params:
|
|
1332
1334
|
query_params.append(('pageToken', params['page_token'])) # noqa: E501
|
|
1335
|
+
if 'filter_internal' in params:
|
|
1336
|
+
query_params.append(('filterInternal', params['filter_internal'])) # noqa: E501
|
|
1333
1337
|
|
|
1334
1338
|
header_params = {}
|
|
1335
1339
|
|
|
@@ -1691,6 +1695,127 @@ class AssistantsServiceApi(object):
|
|
|
1691
1695
|
_request_timeout=params.get('_request_timeout'),
|
|
1692
1696
|
collection_formats=collection_formats)
|
|
1693
1697
|
|
|
1698
|
+
def assistants_service_update_assistant_managed_endpoint_model(self, body: 'ModelsIdBody', project_id: 'str', managed_endpoint_id: 'str', id: 'str', **kwargs) -> 'V1ManagedModel': # noqa: E501
|
|
1699
|
+
"""assistants_service_update_assistant_managed_endpoint_model # noqa: E501
|
|
1700
|
+
|
|
1701
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1702
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1703
|
+
>>> thread = api.assistants_service_update_assistant_managed_endpoint_model(body, project_id, managed_endpoint_id, id, async_req=True)
|
|
1704
|
+
>>> result = thread.get()
|
|
1705
|
+
|
|
1706
|
+
:param async_req bool
|
|
1707
|
+
:param ModelsIdBody body: (required)
|
|
1708
|
+
:param str project_id: (required)
|
|
1709
|
+
:param str managed_endpoint_id: (required)
|
|
1710
|
+
:param str id: (required)
|
|
1711
|
+
:return: V1ManagedModel
|
|
1712
|
+
If the method is called asynchronously,
|
|
1713
|
+
returns the request thread.
|
|
1714
|
+
"""
|
|
1715
|
+
kwargs['_return_http_data_only'] = True
|
|
1716
|
+
if kwargs.get('async_req'):
|
|
1717
|
+
return self.assistants_service_update_assistant_managed_endpoint_model_with_http_info(body, project_id, managed_endpoint_id, id, **kwargs) # noqa: E501
|
|
1718
|
+
else:
|
|
1719
|
+
(data) = self.assistants_service_update_assistant_managed_endpoint_model_with_http_info(body, project_id, managed_endpoint_id, id, **kwargs) # noqa: E501
|
|
1720
|
+
return data
|
|
1721
|
+
|
|
1722
|
+
def assistants_service_update_assistant_managed_endpoint_model_with_http_info(self, body: 'ModelsIdBody', project_id: 'str', managed_endpoint_id: 'str', id: 'str', **kwargs) -> 'V1ManagedModel': # noqa: E501
|
|
1723
|
+
"""assistants_service_update_assistant_managed_endpoint_model # noqa: E501
|
|
1724
|
+
|
|
1725
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1726
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1727
|
+
>>> thread = api.assistants_service_update_assistant_managed_endpoint_model_with_http_info(body, project_id, managed_endpoint_id, id, async_req=True)
|
|
1728
|
+
>>> result = thread.get()
|
|
1729
|
+
|
|
1730
|
+
:param async_req bool
|
|
1731
|
+
:param ModelsIdBody body: (required)
|
|
1732
|
+
:param str project_id: (required)
|
|
1733
|
+
:param str managed_endpoint_id: (required)
|
|
1734
|
+
:param str id: (required)
|
|
1735
|
+
:return: V1ManagedModel
|
|
1736
|
+
If the method is called asynchronously,
|
|
1737
|
+
returns the request thread.
|
|
1738
|
+
"""
|
|
1739
|
+
|
|
1740
|
+
all_params = ['body', 'project_id', 'managed_endpoint_id', 'id'] # noqa: E501
|
|
1741
|
+
all_params.append('async_req')
|
|
1742
|
+
all_params.append('_return_http_data_only')
|
|
1743
|
+
all_params.append('_preload_content')
|
|
1744
|
+
all_params.append('_request_timeout')
|
|
1745
|
+
|
|
1746
|
+
params = locals()
|
|
1747
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
1748
|
+
if key not in all_params:
|
|
1749
|
+
raise TypeError(
|
|
1750
|
+
"Got an unexpected keyword argument '%s'"
|
|
1751
|
+
" to method assistants_service_update_assistant_managed_endpoint_model" % key
|
|
1752
|
+
)
|
|
1753
|
+
params[key] = val
|
|
1754
|
+
del params['kwargs']
|
|
1755
|
+
# verify the required parameter 'body' is set
|
|
1756
|
+
if ('body' not in params or
|
|
1757
|
+
params['body'] is None):
|
|
1758
|
+
raise ValueError("Missing the required parameter `body` when calling `assistants_service_update_assistant_managed_endpoint_model`") # noqa: E501
|
|
1759
|
+
# verify the required parameter 'project_id' is set
|
|
1760
|
+
if ('project_id' not in params or
|
|
1761
|
+
params['project_id'] is None):
|
|
1762
|
+
raise ValueError("Missing the required parameter `project_id` when calling `assistants_service_update_assistant_managed_endpoint_model`") # noqa: E501
|
|
1763
|
+
# verify the required parameter 'managed_endpoint_id' is set
|
|
1764
|
+
if ('managed_endpoint_id' not in params or
|
|
1765
|
+
params['managed_endpoint_id'] is None):
|
|
1766
|
+
raise ValueError("Missing the required parameter `managed_endpoint_id` when calling `assistants_service_update_assistant_managed_endpoint_model`") # noqa: E501
|
|
1767
|
+
# verify the required parameter 'id' is set
|
|
1768
|
+
if ('id' not in params or
|
|
1769
|
+
params['id'] is None):
|
|
1770
|
+
raise ValueError("Missing the required parameter `id` when calling `assistants_service_update_assistant_managed_endpoint_model`") # noqa: E501
|
|
1771
|
+
|
|
1772
|
+
collection_formats = {}
|
|
1773
|
+
|
|
1774
|
+
path_params = {}
|
|
1775
|
+
if 'project_id' in params:
|
|
1776
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
1777
|
+
if 'managed_endpoint_id' in params:
|
|
1778
|
+
path_params['managedEndpointId'] = params['managed_endpoint_id'] # noqa: E501
|
|
1779
|
+
if 'id' in params:
|
|
1780
|
+
path_params['id'] = params['id'] # noqa: E501
|
|
1781
|
+
|
|
1782
|
+
query_params = []
|
|
1783
|
+
|
|
1784
|
+
header_params = {}
|
|
1785
|
+
|
|
1786
|
+
form_params = []
|
|
1787
|
+
local_var_files = {}
|
|
1788
|
+
|
|
1789
|
+
body_params = None
|
|
1790
|
+
if 'body' in params:
|
|
1791
|
+
body_params = params['body']
|
|
1792
|
+
# HTTP header `Accept`
|
|
1793
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1794
|
+
['application/json']) # noqa: E501
|
|
1795
|
+
|
|
1796
|
+
# HTTP header `Content-Type`
|
|
1797
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
1798
|
+
['application/json']) # noqa: E501
|
|
1799
|
+
|
|
1800
|
+
# Authentication setting
|
|
1801
|
+
auth_settings = [] # noqa: E501
|
|
1802
|
+
|
|
1803
|
+
return self.api_client.call_api(
|
|
1804
|
+
'/v1/projects/{projectId}/agent-managed-endpoints/{managedEndpointId}/models/{id}', 'PUT',
|
|
1805
|
+
path_params,
|
|
1806
|
+
query_params,
|
|
1807
|
+
header_params,
|
|
1808
|
+
body=body_params,
|
|
1809
|
+
post_params=form_params,
|
|
1810
|
+
files=local_var_files,
|
|
1811
|
+
response_type='V1ManagedModel', # noqa: E501
|
|
1812
|
+
auth_settings=auth_settings,
|
|
1813
|
+
async_req=params.get('async_req'),
|
|
1814
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1815
|
+
_preload_content=params.get('_preload_content', True),
|
|
1816
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1817
|
+
collection_formats=collection_formats)
|
|
1818
|
+
|
|
1694
1819
|
def assistants_service_update_conversation(self, body: 'ConversationsIdBody', assistant_id: 'str', id: 'str', **kwargs) -> 'V1Conversation': # noqa: E501
|
|
1695
1820
|
"""assistants_service_update_conversation # noqa: E501
|
|
1696
1821
|
|
|
@@ -431,6 +431,103 @@ class CloudSpaceEnvironmentTemplateServiceApi(object):
|
|
|
431
431
|
_request_timeout=params.get('_request_timeout'),
|
|
432
432
|
collection_formats=collection_formats)
|
|
433
433
|
|
|
434
|
+
def cloud_space_environment_template_service_list_managed_cloud_space_environment_templates(self, **kwargs) -> 'V1ListCloudSpaceEnvironmentTemplatesResponse': # noqa: E501
|
|
435
|
+
"""cloud_space_environment_template_service_list_managed_cloud_space_environment_templates # noqa: E501
|
|
436
|
+
|
|
437
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
438
|
+
asynchronous HTTP request, please pass async_req=True
|
|
439
|
+
>>> thread = api.cloud_space_environment_template_service_list_managed_cloud_space_environment_templates(async_req=True)
|
|
440
|
+
>>> result = thread.get()
|
|
441
|
+
|
|
442
|
+
:param async_req bool
|
|
443
|
+
:param str org_id:
|
|
444
|
+
:param str page_token:
|
|
445
|
+
:param int limit:
|
|
446
|
+
:return: V1ListCloudSpaceEnvironmentTemplatesResponse
|
|
447
|
+
If the method is called asynchronously,
|
|
448
|
+
returns the request thread.
|
|
449
|
+
"""
|
|
450
|
+
kwargs['_return_http_data_only'] = True
|
|
451
|
+
if kwargs.get('async_req'):
|
|
452
|
+
return self.cloud_space_environment_template_service_list_managed_cloud_space_environment_templates_with_http_info(**kwargs) # noqa: E501
|
|
453
|
+
else:
|
|
454
|
+
(data) = self.cloud_space_environment_template_service_list_managed_cloud_space_environment_templates_with_http_info(**kwargs) # noqa: E501
|
|
455
|
+
return data
|
|
456
|
+
|
|
457
|
+
def cloud_space_environment_template_service_list_managed_cloud_space_environment_templates_with_http_info(self, **kwargs) -> 'V1ListCloudSpaceEnvironmentTemplatesResponse': # noqa: E501
|
|
458
|
+
"""cloud_space_environment_template_service_list_managed_cloud_space_environment_templates # noqa: E501
|
|
459
|
+
|
|
460
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
461
|
+
asynchronous HTTP request, please pass async_req=True
|
|
462
|
+
>>> thread = api.cloud_space_environment_template_service_list_managed_cloud_space_environment_templates_with_http_info(async_req=True)
|
|
463
|
+
>>> result = thread.get()
|
|
464
|
+
|
|
465
|
+
:param async_req bool
|
|
466
|
+
:param str org_id:
|
|
467
|
+
:param str page_token:
|
|
468
|
+
:param int limit:
|
|
469
|
+
:return: V1ListCloudSpaceEnvironmentTemplatesResponse
|
|
470
|
+
If the method is called asynchronously,
|
|
471
|
+
returns the request thread.
|
|
472
|
+
"""
|
|
473
|
+
|
|
474
|
+
all_params = ['org_id', 'page_token', 'limit'] # noqa: E501
|
|
475
|
+
all_params.append('async_req')
|
|
476
|
+
all_params.append('_return_http_data_only')
|
|
477
|
+
all_params.append('_preload_content')
|
|
478
|
+
all_params.append('_request_timeout')
|
|
479
|
+
|
|
480
|
+
params = locals()
|
|
481
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
482
|
+
if key not in all_params:
|
|
483
|
+
raise TypeError(
|
|
484
|
+
"Got an unexpected keyword argument '%s'"
|
|
485
|
+
" to method cloud_space_environment_template_service_list_managed_cloud_space_environment_templates" % key
|
|
486
|
+
)
|
|
487
|
+
params[key] = val
|
|
488
|
+
del params['kwargs']
|
|
489
|
+
|
|
490
|
+
collection_formats = {}
|
|
491
|
+
|
|
492
|
+
path_params = {}
|
|
493
|
+
|
|
494
|
+
query_params = []
|
|
495
|
+
if 'org_id' in params:
|
|
496
|
+
query_params.append(('orgId', params['org_id'])) # noqa: E501
|
|
497
|
+
if 'page_token' in params:
|
|
498
|
+
query_params.append(('pageToken', params['page_token'])) # noqa: E501
|
|
499
|
+
if 'limit' in params:
|
|
500
|
+
query_params.append(('limit', params['limit'])) # noqa: E501
|
|
501
|
+
|
|
502
|
+
header_params = {}
|
|
503
|
+
|
|
504
|
+
form_params = []
|
|
505
|
+
local_var_files = {}
|
|
506
|
+
|
|
507
|
+
body_params = None
|
|
508
|
+
# HTTP header `Accept`
|
|
509
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
510
|
+
['application/json']) # noqa: E501
|
|
511
|
+
|
|
512
|
+
# Authentication setting
|
|
513
|
+
auth_settings = [] # noqa: E501
|
|
514
|
+
|
|
515
|
+
return self.api_client.call_api(
|
|
516
|
+
'/v1/cloudspaces/environment-templates/managed', 'GET',
|
|
517
|
+
path_params,
|
|
518
|
+
query_params,
|
|
519
|
+
header_params,
|
|
520
|
+
body=body_params,
|
|
521
|
+
post_params=form_params,
|
|
522
|
+
files=local_var_files,
|
|
523
|
+
response_type='V1ListCloudSpaceEnvironmentTemplatesResponse', # noqa: E501
|
|
524
|
+
auth_settings=auth_settings,
|
|
525
|
+
async_req=params.get('async_req'),
|
|
526
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
527
|
+
_preload_content=params.get('_preload_content', True),
|
|
528
|
+
_request_timeout=params.get('_request_timeout'),
|
|
529
|
+
collection_formats=collection_formats)
|
|
530
|
+
|
|
434
531
|
def cloud_space_environment_template_service_update_cloud_space_environment_template(self, body: 'Update', id: 'str', **kwargs) -> 'V1CloudSpaceEnvironmentTemplate': # noqa: E501
|
|
435
532
|
"""cloud_space_environment_template_service_update_cloud_space_environment_template # noqa: E501
|
|
436
533
|
|
|
@@ -3481,6 +3481,111 @@ class CloudSpaceServiceApi(object):
|
|
|
3481
3481
|
_request_timeout=params.get('_request_timeout'),
|
|
3482
3482
|
collection_formats=collection_formats)
|
|
3483
3483
|
|
|
3484
|
+
def cloud_space_service_get_cloud_space_instance_open_ports(self, project_id: 'str', cloudspace_id: 'str', **kwargs) -> 'V1GetCloudSpaceInstanceOpenPortsResponse': # noqa: E501
|
|
3485
|
+
"""cloud_space_service_get_cloud_space_instance_open_ports # 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.cloud_space_service_get_cloud_space_instance_open_ports(project_id, cloudspace_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: (required)
|
|
3495
|
+
:param str cloudspace_instance_id:
|
|
3496
|
+
:return: V1GetCloudSpaceInstanceOpenPortsResponse
|
|
3497
|
+
If the method is called asynchronously,
|
|
3498
|
+
returns the request thread.
|
|
3499
|
+
"""
|
|
3500
|
+
kwargs['_return_http_data_only'] = True
|
|
3501
|
+
if kwargs.get('async_req'):
|
|
3502
|
+
return self.cloud_space_service_get_cloud_space_instance_open_ports_with_http_info(project_id, cloudspace_id, **kwargs) # noqa: E501
|
|
3503
|
+
else:
|
|
3504
|
+
(data) = self.cloud_space_service_get_cloud_space_instance_open_ports_with_http_info(project_id, cloudspace_id, **kwargs) # noqa: E501
|
|
3505
|
+
return data
|
|
3506
|
+
|
|
3507
|
+
def cloud_space_service_get_cloud_space_instance_open_ports_with_http_info(self, project_id: 'str', cloudspace_id: 'str', **kwargs) -> 'V1GetCloudSpaceInstanceOpenPortsResponse': # noqa: E501
|
|
3508
|
+
"""cloud_space_service_get_cloud_space_instance_open_ports # noqa: E501
|
|
3509
|
+
|
|
3510
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
3511
|
+
asynchronous HTTP request, please pass async_req=True
|
|
3512
|
+
>>> thread = api.cloud_space_service_get_cloud_space_instance_open_ports_with_http_info(project_id, cloudspace_id, async_req=True)
|
|
3513
|
+
>>> result = thread.get()
|
|
3514
|
+
|
|
3515
|
+
:param async_req bool
|
|
3516
|
+
:param str project_id: (required)
|
|
3517
|
+
:param str cloudspace_id: (required)
|
|
3518
|
+
:param str cloudspace_instance_id:
|
|
3519
|
+
:return: V1GetCloudSpaceInstanceOpenPortsResponse
|
|
3520
|
+
If the method is called asynchronously,
|
|
3521
|
+
returns the request thread.
|
|
3522
|
+
"""
|
|
3523
|
+
|
|
3524
|
+
all_params = ['project_id', 'cloudspace_id', 'cloudspace_instance_id'] # noqa: E501
|
|
3525
|
+
all_params.append('async_req')
|
|
3526
|
+
all_params.append('_return_http_data_only')
|
|
3527
|
+
all_params.append('_preload_content')
|
|
3528
|
+
all_params.append('_request_timeout')
|
|
3529
|
+
|
|
3530
|
+
params = locals()
|
|
3531
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
3532
|
+
if key not in all_params:
|
|
3533
|
+
raise TypeError(
|
|
3534
|
+
"Got an unexpected keyword argument '%s'"
|
|
3535
|
+
" to method cloud_space_service_get_cloud_space_instance_open_ports" % key
|
|
3536
|
+
)
|
|
3537
|
+
params[key] = val
|
|
3538
|
+
del params['kwargs']
|
|
3539
|
+
# verify the required parameter 'project_id' is set
|
|
3540
|
+
if ('project_id' not in params or
|
|
3541
|
+
params['project_id'] is None):
|
|
3542
|
+
raise ValueError("Missing the required parameter `project_id` when calling `cloud_space_service_get_cloud_space_instance_open_ports`") # noqa: E501
|
|
3543
|
+
# verify the required parameter 'cloudspace_id' is set
|
|
3544
|
+
if ('cloudspace_id' not in params or
|
|
3545
|
+
params['cloudspace_id'] is None):
|
|
3546
|
+
raise ValueError("Missing the required parameter `cloudspace_id` when calling `cloud_space_service_get_cloud_space_instance_open_ports`") # noqa: E501
|
|
3547
|
+
|
|
3548
|
+
collection_formats = {}
|
|
3549
|
+
|
|
3550
|
+
path_params = {}
|
|
3551
|
+
if 'project_id' in params:
|
|
3552
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
3553
|
+
if 'cloudspace_id' in params:
|
|
3554
|
+
path_params['cloudspaceId'] = params['cloudspace_id'] # noqa: E501
|
|
3555
|
+
|
|
3556
|
+
query_params = []
|
|
3557
|
+
if 'cloudspace_instance_id' in params:
|
|
3558
|
+
query_params.append(('cloudspaceInstanceId', params['cloudspace_instance_id'])) # noqa: E501
|
|
3559
|
+
|
|
3560
|
+
header_params = {}
|
|
3561
|
+
|
|
3562
|
+
form_params = []
|
|
3563
|
+
local_var_files = {}
|
|
3564
|
+
|
|
3565
|
+
body_params = None
|
|
3566
|
+
# HTTP header `Accept`
|
|
3567
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
3568
|
+
['application/json']) # noqa: E501
|
|
3569
|
+
|
|
3570
|
+
# Authentication setting
|
|
3571
|
+
auth_settings = [] # noqa: E501
|
|
3572
|
+
|
|
3573
|
+
return self.api_client.call_api(
|
|
3574
|
+
'/v1/projects/{projectId}/cloudspaces/{cloudspaceId}/open-ports', 'GET',
|
|
3575
|
+
path_params,
|
|
3576
|
+
query_params,
|
|
3577
|
+
header_params,
|
|
3578
|
+
body=body_params,
|
|
3579
|
+
post_params=form_params,
|
|
3580
|
+
files=local_var_files,
|
|
3581
|
+
response_type='V1GetCloudSpaceInstanceOpenPortsResponse', # noqa: E501
|
|
3582
|
+
auth_settings=auth_settings,
|
|
3583
|
+
async_req=params.get('async_req'),
|
|
3584
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
3585
|
+
_preload_content=params.get('_preload_content', True),
|
|
3586
|
+
_request_timeout=params.get('_request_timeout'),
|
|
3587
|
+
collection_formats=collection_formats)
|
|
3588
|
+
|
|
3484
3589
|
def cloud_space_service_get_cloud_space_instance_status(self, project_id: 'str', id: 'str', **kwargs) -> 'V1GetCloudSpaceInstanceStatusResponse': # noqa: E501
|
|
3485
3590
|
"""cloud_space_service_get_cloud_space_instance_status # noqa: E501
|
|
3486
3591
|
|
|
@@ -3420,6 +3420,111 @@ class ClusterServiceApi(object):
|
|
|
3420
3420
|
_request_timeout=params.get('_request_timeout'),
|
|
3421
3421
|
collection_formats=collection_formats)
|
|
3422
3422
|
|
|
3423
|
+
def cluster_service_sleep_server(self, body: 'object', server_id: 'str', **kwargs) -> 'V1SleepServerResponse': # noqa: E501
|
|
3424
|
+
"""cluster_service_sleep_server # noqa: E501
|
|
3425
|
+
|
|
3426
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
3427
|
+
asynchronous HTTP request, please pass async_req=True
|
|
3428
|
+
>>> thread = api.cluster_service_sleep_server(body, server_id, async_req=True)
|
|
3429
|
+
>>> result = thread.get()
|
|
3430
|
+
|
|
3431
|
+
:param async_req bool
|
|
3432
|
+
:param object body: (required)
|
|
3433
|
+
:param str server_id: (required)
|
|
3434
|
+
:return: V1SleepServerResponse
|
|
3435
|
+
If the method is called asynchronously,
|
|
3436
|
+
returns the request thread.
|
|
3437
|
+
"""
|
|
3438
|
+
kwargs['_return_http_data_only'] = True
|
|
3439
|
+
if kwargs.get('async_req'):
|
|
3440
|
+
return self.cluster_service_sleep_server_with_http_info(body, server_id, **kwargs) # noqa: E501
|
|
3441
|
+
else:
|
|
3442
|
+
(data) = self.cluster_service_sleep_server_with_http_info(body, server_id, **kwargs) # noqa: E501
|
|
3443
|
+
return data
|
|
3444
|
+
|
|
3445
|
+
def cluster_service_sleep_server_with_http_info(self, body: 'object', server_id: 'str', **kwargs) -> 'V1SleepServerResponse': # noqa: E501
|
|
3446
|
+
"""cluster_service_sleep_server # noqa: E501
|
|
3447
|
+
|
|
3448
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
3449
|
+
asynchronous HTTP request, please pass async_req=True
|
|
3450
|
+
>>> thread = api.cluster_service_sleep_server_with_http_info(body, server_id, async_req=True)
|
|
3451
|
+
>>> result = thread.get()
|
|
3452
|
+
|
|
3453
|
+
:param async_req bool
|
|
3454
|
+
:param object body: (required)
|
|
3455
|
+
:param str server_id: (required)
|
|
3456
|
+
:return: V1SleepServerResponse
|
|
3457
|
+
If the method is called asynchronously,
|
|
3458
|
+
returns the request thread.
|
|
3459
|
+
"""
|
|
3460
|
+
|
|
3461
|
+
all_params = ['body', 'server_id'] # noqa: E501
|
|
3462
|
+
all_params.append('async_req')
|
|
3463
|
+
all_params.append('_return_http_data_only')
|
|
3464
|
+
all_params.append('_preload_content')
|
|
3465
|
+
all_params.append('_request_timeout')
|
|
3466
|
+
|
|
3467
|
+
params = locals()
|
|
3468
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
3469
|
+
if key not in all_params:
|
|
3470
|
+
raise TypeError(
|
|
3471
|
+
"Got an unexpected keyword argument '%s'"
|
|
3472
|
+
" to method cluster_service_sleep_server" % key
|
|
3473
|
+
)
|
|
3474
|
+
params[key] = val
|
|
3475
|
+
del params['kwargs']
|
|
3476
|
+
# verify the required parameter 'body' is set
|
|
3477
|
+
if ('body' not in params or
|
|
3478
|
+
params['body'] is None):
|
|
3479
|
+
raise ValueError("Missing the required parameter `body` when calling `cluster_service_sleep_server`") # noqa: E501
|
|
3480
|
+
# verify the required parameter 'server_id' is set
|
|
3481
|
+
if ('server_id' not in params or
|
|
3482
|
+
params['server_id'] is None):
|
|
3483
|
+
raise ValueError("Missing the required parameter `server_id` when calling `cluster_service_sleep_server`") # noqa: E501
|
|
3484
|
+
|
|
3485
|
+
collection_formats = {}
|
|
3486
|
+
|
|
3487
|
+
path_params = {}
|
|
3488
|
+
if 'server_id' in params:
|
|
3489
|
+
path_params['serverId'] = params['server_id'] # noqa: E501
|
|
3490
|
+
|
|
3491
|
+
query_params = []
|
|
3492
|
+
|
|
3493
|
+
header_params = {}
|
|
3494
|
+
|
|
3495
|
+
form_params = []
|
|
3496
|
+
local_var_files = {}
|
|
3497
|
+
|
|
3498
|
+
body_params = None
|
|
3499
|
+
if 'body' in params:
|
|
3500
|
+
body_params = params['body']
|
|
3501
|
+
# HTTP header `Accept`
|
|
3502
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
3503
|
+
['application/json']) # noqa: E501
|
|
3504
|
+
|
|
3505
|
+
# HTTP header `Content-Type`
|
|
3506
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
3507
|
+
['application/json']) # noqa: E501
|
|
3508
|
+
|
|
3509
|
+
# Authentication setting
|
|
3510
|
+
auth_settings = [] # noqa: E501
|
|
3511
|
+
|
|
3512
|
+
return self.api_client.call_api(
|
|
3513
|
+
'/v1/core/servers/{serverId}/sleep', 'POST',
|
|
3514
|
+
path_params,
|
|
3515
|
+
query_params,
|
|
3516
|
+
header_params,
|
|
3517
|
+
body=body_params,
|
|
3518
|
+
post_params=form_params,
|
|
3519
|
+
files=local_var_files,
|
|
3520
|
+
response_type='V1SleepServerResponse', # noqa: E501
|
|
3521
|
+
auth_settings=auth_settings,
|
|
3522
|
+
async_req=params.get('async_req'),
|
|
3523
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
3524
|
+
_preload_content=params.get('_preload_content', True),
|
|
3525
|
+
_request_timeout=params.get('_request_timeout'),
|
|
3526
|
+
collection_formats=collection_formats)
|
|
3527
|
+
|
|
3423
3528
|
def cluster_service_update_cluster(self, body: 'ClustersIdBody', id: 'str', **kwargs) -> 'Externalv1Cluster': # noqa: E501
|
|
3424
3529
|
"""cluster_service_update_cluster # noqa: E501
|
|
3425
3530
|
|