lightning-sdk 2025.11.13.post0__py3-none-any.whl → 2025.11.21__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 +2 -0
- lightning_sdk/__version__.py +1 -1
- lightning_sdk/api/__init__.py +2 -9
- lightning_sdk/api/k8s_api.py +105 -0
- lightning_sdk/api/studio_api.py +19 -0
- lightning_sdk/api/utils.py +19 -0
- lightning_sdk/exceptions.py +2 -0
- lightning_sdk/k8s_cluster.py +83 -0
- lightning_sdk/lightning_cloud/openapi/__init__.py +15 -0
- lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +134 -1
- lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +5 -1
- lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +539 -2
- lightning_sdk/lightning_cloud/openapi/api/k8_s_cluster_service_api.py +114 -0
- lightning_sdk/lightning_cloud/openapi/api/markets_service_api.py +5 -1
- lightning_sdk/lightning_cloud/openapi/api/organizations_service_api.py +99 -2
- lightning_sdk/lightning_cloud/openapi/api/projects_service_api.py +5 -1
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +15 -0
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_metrics_body.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/deployments_deployment_id_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/id_content_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/job_id_systemmetrics_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/message_id_actions_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_aws_direct_v1.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_security_options.py +107 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_compute_cluster_machines.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_compute_cluster_request.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_project_request.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_generic_job.py +305 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_project_balance_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_v1.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_pod.py +435 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_all_jobs_response.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_jobs_sort_by.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_jobs_sort_order.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_kubernetes_pods_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_pipelines_response.py +55 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_machine_direct_v1.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_magic_link_login_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_membership.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_message.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_message_action.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_org_deployment_visibility.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pod_preemption_event.py +305 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_project_membership.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_report_job_system_metrics_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_resource_visibility.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_rule_resource.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_conversation_message_content_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +133 -107
- lightning_sdk/lightning_cloud/openapi/models/v1_validate_storage_transfer_response.py +15 -15
- lightning_sdk/lightning_cloud/rest_client.py +2 -0
- lightning_sdk/studio.py +12 -0
- {lightning_sdk-2025.11.13.post0.dist-info → lightning_sdk-2025.11.21.dist-info}/METADATA +2 -1
- {lightning_sdk-2025.11.13.post0.dist-info → lightning_sdk-2025.11.21.dist-info}/RECORD +61 -43
- {lightning_sdk-2025.11.13.post0.dist-info → lightning_sdk-2025.11.21.dist-info}/LICENSE +0 -0
- {lightning_sdk-2025.11.13.post0.dist-info → lightning_sdk-2025.11.21.dist-info}/WHEEL +0 -0
- {lightning_sdk-2025.11.13.post0.dist-info → lightning_sdk-2025.11.21.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-2025.11.13.post0.dist-info → lightning_sdk-2025.11.21.dist-info}/top_level.txt +0 -0
|
@@ -2934,6 +2934,212 @@ class JobsServiceApi(object):
|
|
|
2934
2934
|
_request_timeout=params.get('_request_timeout'),
|
|
2935
2935
|
collection_formats=collection_formats)
|
|
2936
2936
|
|
|
2937
|
+
def jobs_service_get_org_deployment_visibility(self, org_id: 'str', deployment_id: 'str', **kwargs) -> 'V1OrgDeploymentVisibility': # noqa: E501
|
|
2938
|
+
"""jobs_service_get_org_deployment_visibility # 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_get_org_deployment_visibility(org_id, deployment_id, async_req=True)
|
|
2943
|
+
>>> result = thread.get()
|
|
2944
|
+
|
|
2945
|
+
:param async_req bool
|
|
2946
|
+
:param str org_id: (required)
|
|
2947
|
+
:param str deployment_id: (required)
|
|
2948
|
+
:return: V1OrgDeploymentVisibility
|
|
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_get_org_deployment_visibility_with_http_info(org_id, deployment_id, **kwargs) # noqa: E501
|
|
2955
|
+
else:
|
|
2956
|
+
(data) = self.jobs_service_get_org_deployment_visibility_with_http_info(org_id, deployment_id, **kwargs) # noqa: E501
|
|
2957
|
+
return data
|
|
2958
|
+
|
|
2959
|
+
def jobs_service_get_org_deployment_visibility_with_http_info(self, org_id: 'str', deployment_id: 'str', **kwargs) -> 'V1OrgDeploymentVisibility': # noqa: E501
|
|
2960
|
+
"""jobs_service_get_org_deployment_visibility # 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_get_org_deployment_visibility_with_http_info(org_id, deployment_id, async_req=True)
|
|
2965
|
+
>>> result = thread.get()
|
|
2966
|
+
|
|
2967
|
+
:param async_req bool
|
|
2968
|
+
:param str org_id: (required)
|
|
2969
|
+
:param str deployment_id: (required)
|
|
2970
|
+
:return: V1OrgDeploymentVisibility
|
|
2971
|
+
If the method is called asynchronously,
|
|
2972
|
+
returns the request thread.
|
|
2973
|
+
"""
|
|
2974
|
+
|
|
2975
|
+
all_params = ['org_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_get_org_deployment_visibility" % key
|
|
2987
|
+
)
|
|
2988
|
+
params[key] = val
|
|
2989
|
+
del params['kwargs']
|
|
2990
|
+
# verify the required parameter 'org_id' is set
|
|
2991
|
+
if ('org_id' not in params or
|
|
2992
|
+
params['org_id'] is None):
|
|
2993
|
+
raise ValueError("Missing the required parameter `org_id` when calling `jobs_service_get_org_deployment_visibility`") # 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_get_org_deployment_visibility`") # noqa: E501
|
|
2998
|
+
|
|
2999
|
+
collection_formats = {}
|
|
3000
|
+
|
|
3001
|
+
path_params = {}
|
|
3002
|
+
if 'org_id' in params:
|
|
3003
|
+
path_params['orgId'] = params['org_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/orgs/{orgId}/deployments/{deploymentId}', '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='V1OrgDeploymentVisibility', # 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_all_jobs(self, **kwargs) -> 'V1ListAllJobsResponse': # noqa: E501
|
|
3039
|
+
"""jobs_service_list_all_jobs # 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_all_jobs(async_req=True)
|
|
3044
|
+
>>> result = thread.get()
|
|
3045
|
+
|
|
3046
|
+
:param async_req bool
|
|
3047
|
+
:param str project_id:
|
|
3048
|
+
:param str page_token:
|
|
3049
|
+
:param int limit:
|
|
3050
|
+
:param str sort_by:
|
|
3051
|
+
:param str sort_order:
|
|
3052
|
+
:return: V1ListAllJobsResponse
|
|
3053
|
+
If the method is called asynchronously,
|
|
3054
|
+
returns the request thread.
|
|
3055
|
+
"""
|
|
3056
|
+
kwargs['_return_http_data_only'] = True
|
|
3057
|
+
if kwargs.get('async_req'):
|
|
3058
|
+
return self.jobs_service_list_all_jobs_with_http_info(**kwargs) # noqa: E501
|
|
3059
|
+
else:
|
|
3060
|
+
(data) = self.jobs_service_list_all_jobs_with_http_info(**kwargs) # noqa: E501
|
|
3061
|
+
return data
|
|
3062
|
+
|
|
3063
|
+
def jobs_service_list_all_jobs_with_http_info(self, **kwargs) -> 'V1ListAllJobsResponse': # noqa: E501
|
|
3064
|
+
"""jobs_service_list_all_jobs # noqa: E501
|
|
3065
|
+
|
|
3066
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
3067
|
+
asynchronous HTTP request, please pass async_req=True
|
|
3068
|
+
>>> thread = api.jobs_service_list_all_jobs_with_http_info(async_req=True)
|
|
3069
|
+
>>> result = thread.get()
|
|
3070
|
+
|
|
3071
|
+
:param async_req bool
|
|
3072
|
+
:param str project_id:
|
|
3073
|
+
:param str page_token:
|
|
3074
|
+
:param int limit:
|
|
3075
|
+
:param str sort_by:
|
|
3076
|
+
:param str sort_order:
|
|
3077
|
+
:return: V1ListAllJobsResponse
|
|
3078
|
+
If the method is called asynchronously,
|
|
3079
|
+
returns the request thread.
|
|
3080
|
+
"""
|
|
3081
|
+
|
|
3082
|
+
all_params = ['project_id', 'page_token', 'limit', 'sort_by', 'sort_order'] # noqa: E501
|
|
3083
|
+
all_params.append('async_req')
|
|
3084
|
+
all_params.append('_return_http_data_only')
|
|
3085
|
+
all_params.append('_preload_content')
|
|
3086
|
+
all_params.append('_request_timeout')
|
|
3087
|
+
|
|
3088
|
+
params = locals()
|
|
3089
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
3090
|
+
if key not in all_params:
|
|
3091
|
+
raise TypeError(
|
|
3092
|
+
"Got an unexpected keyword argument '%s'"
|
|
3093
|
+
" to method jobs_service_list_all_jobs" % key
|
|
3094
|
+
)
|
|
3095
|
+
params[key] = val
|
|
3096
|
+
del params['kwargs']
|
|
3097
|
+
|
|
3098
|
+
collection_formats = {}
|
|
3099
|
+
|
|
3100
|
+
path_params = {}
|
|
3101
|
+
|
|
3102
|
+
query_params = []
|
|
3103
|
+
if 'project_id' in params:
|
|
3104
|
+
query_params.append(('projectId', params['project_id'])) # noqa: E501
|
|
3105
|
+
if 'page_token' in params:
|
|
3106
|
+
query_params.append(('pageToken', params['page_token'])) # noqa: E501
|
|
3107
|
+
if 'limit' in params:
|
|
3108
|
+
query_params.append(('limit', params['limit'])) # noqa: E501
|
|
3109
|
+
if 'sort_by' in params:
|
|
3110
|
+
query_params.append(('sortBy', params['sort_by'])) # noqa: E501
|
|
3111
|
+
if 'sort_order' in params:
|
|
3112
|
+
query_params.append(('sortOrder', params['sort_order'])) # noqa: E501
|
|
3113
|
+
|
|
3114
|
+
header_params = {}
|
|
3115
|
+
|
|
3116
|
+
form_params = []
|
|
3117
|
+
local_var_files = {}
|
|
3118
|
+
|
|
3119
|
+
body_params = None
|
|
3120
|
+
# HTTP header `Accept`
|
|
3121
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
3122
|
+
['application/json']) # noqa: E501
|
|
3123
|
+
|
|
3124
|
+
# Authentication setting
|
|
3125
|
+
auth_settings = [] # noqa: E501
|
|
3126
|
+
|
|
3127
|
+
return self.api_client.call_api(
|
|
3128
|
+
'/v1/jobs/all', 'GET',
|
|
3129
|
+
path_params,
|
|
3130
|
+
query_params,
|
|
3131
|
+
header_params,
|
|
3132
|
+
body=body_params,
|
|
3133
|
+
post_params=form_params,
|
|
3134
|
+
files=local_var_files,
|
|
3135
|
+
response_type='V1ListAllJobsResponse', # noqa: E501
|
|
3136
|
+
auth_settings=auth_settings,
|
|
3137
|
+
async_req=params.get('async_req'),
|
|
3138
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
3139
|
+
_preload_content=params.get('_preload_content', True),
|
|
3140
|
+
_request_timeout=params.get('_request_timeout'),
|
|
3141
|
+
collection_formats=collection_formats)
|
|
3142
|
+
|
|
2937
3143
|
def jobs_service_list_deployment_alerting_events(self, project_id: 'str', deployment_id: 'str', **kwargs) -> 'V1ListDeploymentAlertingEventsResponse': # noqa: E501
|
|
2938
3144
|
"""ListDeploymentAlertingEvents lists the deployment alert events # noqa: E501
|
|
2939
3145
|
|
|
@@ -3368,6 +3574,7 @@ class JobsServiceApi(object):
|
|
|
3368
3574
|
:param list[str] path:
|
|
3369
3575
|
:param list[int] status_code:
|
|
3370
3576
|
:param int limit:
|
|
3577
|
+
:param bool filter_successful:
|
|
3371
3578
|
:return: V1GeListDeploymentRoutingTelemetryResponse
|
|
3372
3579
|
If the method is called asynchronously,
|
|
3373
3580
|
returns the request thread.
|
|
@@ -3397,12 +3604,13 @@ class JobsServiceApi(object):
|
|
|
3397
3604
|
:param list[str] path:
|
|
3398
3605
|
:param list[int] status_code:
|
|
3399
3606
|
:param int limit:
|
|
3607
|
+
:param bool filter_successful:
|
|
3400
3608
|
:return: V1GeListDeploymentRoutingTelemetryResponse
|
|
3401
3609
|
If the method is called asynchronously,
|
|
3402
3610
|
returns the request thread.
|
|
3403
3611
|
"""
|
|
3404
3612
|
|
|
3405
|
-
all_params = ['project_id', 'id', 'first_request_id', 'last_request_id', 'start', 'end', 'path', 'status_code', 'limit'] # noqa: E501
|
|
3613
|
+
all_params = ['project_id', 'id', 'first_request_id', 'last_request_id', 'start', 'end', 'path', 'status_code', 'limit', 'filter_successful'] # noqa: E501
|
|
3406
3614
|
all_params.append('async_req')
|
|
3407
3615
|
all_params.append('_return_http_data_only')
|
|
3408
3616
|
all_params.append('_preload_content')
|
|
@@ -3451,6 +3659,8 @@ class JobsServiceApi(object):
|
|
|
3451
3659
|
collection_formats['statusCode'] = 'multi' # noqa: E501
|
|
3452
3660
|
if 'limit' in params:
|
|
3453
3661
|
query_params.append(('limit', params['limit'])) # noqa: E501
|
|
3662
|
+
if 'filter_successful' in params:
|
|
3663
|
+
query_params.append(('filterSuccessful', params['filter_successful'])) # noqa: E501
|
|
3454
3664
|
|
|
3455
3665
|
header_params = {}
|
|
3456
3666
|
|
|
@@ -3737,6 +3947,8 @@ class JobsServiceApi(object):
|
|
|
3737
3947
|
:param str page_token:
|
|
3738
3948
|
:param int limit:
|
|
3739
3949
|
:param str state:
|
|
3950
|
+
:param str sort_by:
|
|
3951
|
+
:param str sort_order:
|
|
3740
3952
|
:return: V1ListJobsResponse
|
|
3741
3953
|
If the method is called asynchronously,
|
|
3742
3954
|
returns the request thread.
|
|
@@ -3766,12 +3978,14 @@ class JobsServiceApi(object):
|
|
|
3766
3978
|
:param str page_token:
|
|
3767
3979
|
:param int limit:
|
|
3768
3980
|
:param str state:
|
|
3981
|
+
:param str sort_by:
|
|
3982
|
+
:param str sort_order:
|
|
3769
3983
|
:return: V1ListJobsResponse
|
|
3770
3984
|
If the method is called asynchronously,
|
|
3771
3985
|
returns the request thread.
|
|
3772
3986
|
"""
|
|
3773
3987
|
|
|
3774
|
-
all_params = ['project_id', 'cloudspace_id', 'user_id', 'deployment_id', 'multi_machine_job_id', 'standalone', 'page_token', 'limit', 'state'] # noqa: E501
|
|
3988
|
+
all_params = ['project_id', 'cloudspace_id', 'user_id', 'deployment_id', 'multi_machine_job_id', 'standalone', 'page_token', 'limit', 'state', 'sort_by', 'sort_order'] # noqa: E501
|
|
3775
3989
|
all_params.append('async_req')
|
|
3776
3990
|
all_params.append('_return_http_data_only')
|
|
3777
3991
|
all_params.append('_preload_content')
|
|
@@ -3814,6 +4028,10 @@ class JobsServiceApi(object):
|
|
|
3814
4028
|
query_params.append(('limit', params['limit'])) # noqa: E501
|
|
3815
4029
|
if 'state' in params:
|
|
3816
4030
|
query_params.append(('state', params['state'])) # noqa: E501
|
|
4031
|
+
if 'sort_by' in params:
|
|
4032
|
+
query_params.append(('sortBy', params['sort_by'])) # noqa: E501
|
|
4033
|
+
if 'sort_order' in params:
|
|
4034
|
+
query_params.append(('sortOrder', params['sort_order'])) # noqa: E501
|
|
3817
4035
|
|
|
3818
4036
|
header_params = {}
|
|
3819
4037
|
|
|
@@ -4058,6 +4276,99 @@ class JobsServiceApi(object):
|
|
|
4058
4276
|
_request_timeout=params.get('_request_timeout'),
|
|
4059
4277
|
collection_formats=collection_formats)
|
|
4060
4278
|
|
|
4279
|
+
def jobs_service_list_org_deployments(self, org_id: 'str', **kwargs) -> 'V1ListDeploymentsResponse': # noqa: E501
|
|
4280
|
+
"""jobs_service_list_org_deployments # noqa: E501
|
|
4281
|
+
|
|
4282
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
4283
|
+
asynchronous HTTP request, please pass async_req=True
|
|
4284
|
+
>>> thread = api.jobs_service_list_org_deployments(org_id, async_req=True)
|
|
4285
|
+
>>> result = thread.get()
|
|
4286
|
+
|
|
4287
|
+
:param async_req bool
|
|
4288
|
+
:param str org_id: (required)
|
|
4289
|
+
:return: V1ListDeploymentsResponse
|
|
4290
|
+
If the method is called asynchronously,
|
|
4291
|
+
returns the request thread.
|
|
4292
|
+
"""
|
|
4293
|
+
kwargs['_return_http_data_only'] = True
|
|
4294
|
+
if kwargs.get('async_req'):
|
|
4295
|
+
return self.jobs_service_list_org_deployments_with_http_info(org_id, **kwargs) # noqa: E501
|
|
4296
|
+
else:
|
|
4297
|
+
(data) = self.jobs_service_list_org_deployments_with_http_info(org_id, **kwargs) # noqa: E501
|
|
4298
|
+
return data
|
|
4299
|
+
|
|
4300
|
+
def jobs_service_list_org_deployments_with_http_info(self, org_id: 'str', **kwargs) -> 'V1ListDeploymentsResponse': # noqa: E501
|
|
4301
|
+
"""jobs_service_list_org_deployments # noqa: E501
|
|
4302
|
+
|
|
4303
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
4304
|
+
asynchronous HTTP request, please pass async_req=True
|
|
4305
|
+
>>> thread = api.jobs_service_list_org_deployments_with_http_info(org_id, async_req=True)
|
|
4306
|
+
>>> result = thread.get()
|
|
4307
|
+
|
|
4308
|
+
:param async_req bool
|
|
4309
|
+
:param str org_id: (required)
|
|
4310
|
+
:return: V1ListDeploymentsResponse
|
|
4311
|
+
If the method is called asynchronously,
|
|
4312
|
+
returns the request thread.
|
|
4313
|
+
"""
|
|
4314
|
+
|
|
4315
|
+
all_params = ['org_id'] # noqa: E501
|
|
4316
|
+
all_params.append('async_req')
|
|
4317
|
+
all_params.append('_return_http_data_only')
|
|
4318
|
+
all_params.append('_preload_content')
|
|
4319
|
+
all_params.append('_request_timeout')
|
|
4320
|
+
|
|
4321
|
+
params = locals()
|
|
4322
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
4323
|
+
if key not in all_params:
|
|
4324
|
+
raise TypeError(
|
|
4325
|
+
"Got an unexpected keyword argument '%s'"
|
|
4326
|
+
" to method jobs_service_list_org_deployments" % key
|
|
4327
|
+
)
|
|
4328
|
+
params[key] = val
|
|
4329
|
+
del params['kwargs']
|
|
4330
|
+
# verify the required parameter 'org_id' is set
|
|
4331
|
+
if ('org_id' not in params or
|
|
4332
|
+
params['org_id'] is None):
|
|
4333
|
+
raise ValueError("Missing the required parameter `org_id` when calling `jobs_service_list_org_deployments`") # noqa: E501
|
|
4334
|
+
|
|
4335
|
+
collection_formats = {}
|
|
4336
|
+
|
|
4337
|
+
path_params = {}
|
|
4338
|
+
if 'org_id' in params:
|
|
4339
|
+
path_params['orgId'] = params['org_id'] # noqa: E501
|
|
4340
|
+
|
|
4341
|
+
query_params = []
|
|
4342
|
+
|
|
4343
|
+
header_params = {}
|
|
4344
|
+
|
|
4345
|
+
form_params = []
|
|
4346
|
+
local_var_files = {}
|
|
4347
|
+
|
|
4348
|
+
body_params = None
|
|
4349
|
+
# HTTP header `Accept`
|
|
4350
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
4351
|
+
['application/json']) # noqa: E501
|
|
4352
|
+
|
|
4353
|
+
# Authentication setting
|
|
4354
|
+
auth_settings = [] # noqa: E501
|
|
4355
|
+
|
|
4356
|
+
return self.api_client.call_api(
|
|
4357
|
+
'/v1/orgs/{orgId}/deployments', 'GET',
|
|
4358
|
+
path_params,
|
|
4359
|
+
query_params,
|
|
4360
|
+
header_params,
|
|
4361
|
+
body=body_params,
|
|
4362
|
+
post_params=form_params,
|
|
4363
|
+
files=local_var_files,
|
|
4364
|
+
response_type='V1ListDeploymentsResponse', # noqa: E501
|
|
4365
|
+
auth_settings=auth_settings,
|
|
4366
|
+
async_req=params.get('async_req'),
|
|
4367
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
4368
|
+
_preload_content=params.get('_preload_content', True),
|
|
4369
|
+
_request_timeout=params.get('_request_timeout'),
|
|
4370
|
+
collection_formats=collection_formats)
|
|
4371
|
+
|
|
4061
4372
|
def jobs_service_report_deployment_routing_telemetry(self, body: 'JobIdReportroutingtelemetryBody', project_id: 'str', deployment_id: 'str', job_id: 'str', **kwargs) -> 'V1ReportDeploymentRoutingTelemetryResponse': # noqa: E501
|
|
4062
4373
|
"""The tired proxy collects the requests sent to the resource and inform the CP # noqa: E501
|
|
4063
4374
|
|
|
@@ -4179,6 +4490,119 @@ class JobsServiceApi(object):
|
|
|
4179
4490
|
_request_timeout=params.get('_request_timeout'),
|
|
4180
4491
|
collection_formats=collection_formats)
|
|
4181
4492
|
|
|
4493
|
+
def jobs_service_report_job_system_metrics(self, body: 'JobIdSystemmetricsBody', project_id: 'str', job_id: 'str', **kwargs) -> 'V1ReportJobSystemMetricsResponse': # noqa: E501
|
|
4494
|
+
"""ReportJobSystemMetrics is used by the tired proxy to report job system metrics back to the CP # noqa: E501
|
|
4495
|
+
|
|
4496
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
4497
|
+
asynchronous HTTP request, please pass async_req=True
|
|
4498
|
+
>>> thread = api.jobs_service_report_job_system_metrics(body, project_id, job_id, async_req=True)
|
|
4499
|
+
>>> result = thread.get()
|
|
4500
|
+
|
|
4501
|
+
:param async_req bool
|
|
4502
|
+
:param JobIdSystemmetricsBody body: (required)
|
|
4503
|
+
:param str project_id: (required)
|
|
4504
|
+
:param str job_id: (required)
|
|
4505
|
+
:return: V1ReportJobSystemMetricsResponse
|
|
4506
|
+
If the method is called asynchronously,
|
|
4507
|
+
returns the request thread.
|
|
4508
|
+
"""
|
|
4509
|
+
kwargs['_return_http_data_only'] = True
|
|
4510
|
+
if kwargs.get('async_req'):
|
|
4511
|
+
return self.jobs_service_report_job_system_metrics_with_http_info(body, project_id, job_id, **kwargs) # noqa: E501
|
|
4512
|
+
else:
|
|
4513
|
+
(data) = self.jobs_service_report_job_system_metrics_with_http_info(body, project_id, job_id, **kwargs) # noqa: E501
|
|
4514
|
+
return data
|
|
4515
|
+
|
|
4516
|
+
def jobs_service_report_job_system_metrics_with_http_info(self, body: 'JobIdSystemmetricsBody', project_id: 'str', job_id: 'str', **kwargs) -> 'V1ReportJobSystemMetricsResponse': # noqa: E501
|
|
4517
|
+
"""ReportJobSystemMetrics is used by the tired proxy to report job system metrics back to the CP # noqa: E501
|
|
4518
|
+
|
|
4519
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
4520
|
+
asynchronous HTTP request, please pass async_req=True
|
|
4521
|
+
>>> thread = api.jobs_service_report_job_system_metrics_with_http_info(body, project_id, job_id, async_req=True)
|
|
4522
|
+
>>> result = thread.get()
|
|
4523
|
+
|
|
4524
|
+
:param async_req bool
|
|
4525
|
+
:param JobIdSystemmetricsBody body: (required)
|
|
4526
|
+
:param str project_id: (required)
|
|
4527
|
+
:param str job_id: (required)
|
|
4528
|
+
:return: V1ReportJobSystemMetricsResponse
|
|
4529
|
+
If the method is called asynchronously,
|
|
4530
|
+
returns the request thread.
|
|
4531
|
+
"""
|
|
4532
|
+
|
|
4533
|
+
all_params = ['body', 'project_id', 'job_id'] # noqa: E501
|
|
4534
|
+
all_params.append('async_req')
|
|
4535
|
+
all_params.append('_return_http_data_only')
|
|
4536
|
+
all_params.append('_preload_content')
|
|
4537
|
+
all_params.append('_request_timeout')
|
|
4538
|
+
|
|
4539
|
+
params = locals()
|
|
4540
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
4541
|
+
if key not in all_params:
|
|
4542
|
+
raise TypeError(
|
|
4543
|
+
"Got an unexpected keyword argument '%s'"
|
|
4544
|
+
" to method jobs_service_report_job_system_metrics" % key
|
|
4545
|
+
)
|
|
4546
|
+
params[key] = val
|
|
4547
|
+
del params['kwargs']
|
|
4548
|
+
# verify the required parameter 'body' is set
|
|
4549
|
+
if ('body' not in params or
|
|
4550
|
+
params['body'] is None):
|
|
4551
|
+
raise ValueError("Missing the required parameter `body` when calling `jobs_service_report_job_system_metrics`") # noqa: E501
|
|
4552
|
+
# verify the required parameter 'project_id' is set
|
|
4553
|
+
if ('project_id' not in params or
|
|
4554
|
+
params['project_id'] is None):
|
|
4555
|
+
raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_report_job_system_metrics`") # noqa: E501
|
|
4556
|
+
# verify the required parameter 'job_id' is set
|
|
4557
|
+
if ('job_id' not in params or
|
|
4558
|
+
params['job_id'] is None):
|
|
4559
|
+
raise ValueError("Missing the required parameter `job_id` when calling `jobs_service_report_job_system_metrics`") # noqa: E501
|
|
4560
|
+
|
|
4561
|
+
collection_formats = {}
|
|
4562
|
+
|
|
4563
|
+
path_params = {}
|
|
4564
|
+
if 'project_id' in params:
|
|
4565
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
4566
|
+
if 'job_id' in params:
|
|
4567
|
+
path_params['jobId'] = params['job_id'] # noqa: E501
|
|
4568
|
+
|
|
4569
|
+
query_params = []
|
|
4570
|
+
|
|
4571
|
+
header_params = {}
|
|
4572
|
+
|
|
4573
|
+
form_params = []
|
|
4574
|
+
local_var_files = {}
|
|
4575
|
+
|
|
4576
|
+
body_params = None
|
|
4577
|
+
if 'body' in params:
|
|
4578
|
+
body_params = params['body']
|
|
4579
|
+
# HTTP header `Accept`
|
|
4580
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
4581
|
+
['application/json']) # noqa: E501
|
|
4582
|
+
|
|
4583
|
+
# HTTP header `Content-Type`
|
|
4584
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
4585
|
+
['application/json']) # noqa: E501
|
|
4586
|
+
|
|
4587
|
+
# Authentication setting
|
|
4588
|
+
auth_settings = [] # noqa: E501
|
|
4589
|
+
|
|
4590
|
+
return self.api_client.call_api(
|
|
4591
|
+
'/v1/projects/{projectId}/jobs/{jobId}/system-metrics', 'POST',
|
|
4592
|
+
path_params,
|
|
4593
|
+
query_params,
|
|
4594
|
+
header_params,
|
|
4595
|
+
body=body_params,
|
|
4596
|
+
post_params=form_params,
|
|
4597
|
+
files=local_var_files,
|
|
4598
|
+
response_type='V1ReportJobSystemMetricsResponse', # noqa: E501
|
|
4599
|
+
auth_settings=auth_settings,
|
|
4600
|
+
async_req=params.get('async_req'),
|
|
4601
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
4602
|
+
_preload_content=params.get('_preload_content', True),
|
|
4603
|
+
_request_timeout=params.get('_request_timeout'),
|
|
4604
|
+
collection_formats=collection_formats)
|
|
4605
|
+
|
|
4182
4606
|
def jobs_service_report_logs_activity(self, body: 'IdReportlogsactivityBody', project_id: 'str', id: 'str', **kwargs) -> 'V1ReportLogsActivityResponse': # noqa: E501
|
|
4183
4607
|
"""The tired proxy collects the time at which the user logs started and inform the CP # noqa: E501
|
|
4184
4608
|
|
|
@@ -5559,6 +5983,119 @@ class JobsServiceApi(object):
|
|
|
5559
5983
|
_request_timeout=params.get('_request_timeout'),
|
|
5560
5984
|
collection_formats=collection_formats)
|
|
5561
5985
|
|
|
5986
|
+
def jobs_service_update_org_deployment_visibility(self, body: 'DeploymentsDeploymentIdBody', org_id: 'str', deployment_id: 'str', **kwargs) -> 'V1OrgDeploymentVisibility': # noqa: E501
|
|
5987
|
+
"""jobs_service_update_org_deployment_visibility # noqa: E501
|
|
5988
|
+
|
|
5989
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
5990
|
+
asynchronous HTTP request, please pass async_req=True
|
|
5991
|
+
>>> thread = api.jobs_service_update_org_deployment_visibility(body, org_id, deployment_id, async_req=True)
|
|
5992
|
+
>>> result = thread.get()
|
|
5993
|
+
|
|
5994
|
+
:param async_req bool
|
|
5995
|
+
:param DeploymentsDeploymentIdBody body: (required)
|
|
5996
|
+
:param str org_id: (required)
|
|
5997
|
+
:param str deployment_id: (required)
|
|
5998
|
+
:return: V1OrgDeploymentVisibility
|
|
5999
|
+
If the method is called asynchronously,
|
|
6000
|
+
returns the request thread.
|
|
6001
|
+
"""
|
|
6002
|
+
kwargs['_return_http_data_only'] = True
|
|
6003
|
+
if kwargs.get('async_req'):
|
|
6004
|
+
return self.jobs_service_update_org_deployment_visibility_with_http_info(body, org_id, deployment_id, **kwargs) # noqa: E501
|
|
6005
|
+
else:
|
|
6006
|
+
(data) = self.jobs_service_update_org_deployment_visibility_with_http_info(body, org_id, deployment_id, **kwargs) # noqa: E501
|
|
6007
|
+
return data
|
|
6008
|
+
|
|
6009
|
+
def jobs_service_update_org_deployment_visibility_with_http_info(self, body: 'DeploymentsDeploymentIdBody', org_id: 'str', deployment_id: 'str', **kwargs) -> 'V1OrgDeploymentVisibility': # noqa: E501
|
|
6010
|
+
"""jobs_service_update_org_deployment_visibility # noqa: E501
|
|
6011
|
+
|
|
6012
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
6013
|
+
asynchronous HTTP request, please pass async_req=True
|
|
6014
|
+
>>> thread = api.jobs_service_update_org_deployment_visibility_with_http_info(body, org_id, deployment_id, async_req=True)
|
|
6015
|
+
>>> result = thread.get()
|
|
6016
|
+
|
|
6017
|
+
:param async_req bool
|
|
6018
|
+
:param DeploymentsDeploymentIdBody body: (required)
|
|
6019
|
+
:param str org_id: (required)
|
|
6020
|
+
:param str deployment_id: (required)
|
|
6021
|
+
:return: V1OrgDeploymentVisibility
|
|
6022
|
+
If the method is called asynchronously,
|
|
6023
|
+
returns the request thread.
|
|
6024
|
+
"""
|
|
6025
|
+
|
|
6026
|
+
all_params = ['body', 'org_id', 'deployment_id'] # noqa: E501
|
|
6027
|
+
all_params.append('async_req')
|
|
6028
|
+
all_params.append('_return_http_data_only')
|
|
6029
|
+
all_params.append('_preload_content')
|
|
6030
|
+
all_params.append('_request_timeout')
|
|
6031
|
+
|
|
6032
|
+
params = locals()
|
|
6033
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
6034
|
+
if key not in all_params:
|
|
6035
|
+
raise TypeError(
|
|
6036
|
+
"Got an unexpected keyword argument '%s'"
|
|
6037
|
+
" to method jobs_service_update_org_deployment_visibility" % key
|
|
6038
|
+
)
|
|
6039
|
+
params[key] = val
|
|
6040
|
+
del params['kwargs']
|
|
6041
|
+
# verify the required parameter 'body' is set
|
|
6042
|
+
if ('body' not in params or
|
|
6043
|
+
params['body'] is None):
|
|
6044
|
+
raise ValueError("Missing the required parameter `body` when calling `jobs_service_update_org_deployment_visibility`") # noqa: E501
|
|
6045
|
+
# verify the required parameter 'org_id' is set
|
|
6046
|
+
if ('org_id' not in params or
|
|
6047
|
+
params['org_id'] is None):
|
|
6048
|
+
raise ValueError("Missing the required parameter `org_id` when calling `jobs_service_update_org_deployment_visibility`") # noqa: E501
|
|
6049
|
+
# verify the required parameter 'deployment_id' is set
|
|
6050
|
+
if ('deployment_id' not in params or
|
|
6051
|
+
params['deployment_id'] is None):
|
|
6052
|
+
raise ValueError("Missing the required parameter `deployment_id` when calling `jobs_service_update_org_deployment_visibility`") # noqa: E501
|
|
6053
|
+
|
|
6054
|
+
collection_formats = {}
|
|
6055
|
+
|
|
6056
|
+
path_params = {}
|
|
6057
|
+
if 'org_id' in params:
|
|
6058
|
+
path_params['orgId'] = params['org_id'] # noqa: E501
|
|
6059
|
+
if 'deployment_id' in params:
|
|
6060
|
+
path_params['deploymentId'] = params['deployment_id'] # noqa: E501
|
|
6061
|
+
|
|
6062
|
+
query_params = []
|
|
6063
|
+
|
|
6064
|
+
header_params = {}
|
|
6065
|
+
|
|
6066
|
+
form_params = []
|
|
6067
|
+
local_var_files = {}
|
|
6068
|
+
|
|
6069
|
+
body_params = None
|
|
6070
|
+
if 'body' in params:
|
|
6071
|
+
body_params = params['body']
|
|
6072
|
+
# HTTP header `Accept`
|
|
6073
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
6074
|
+
['application/json']) # noqa: E501
|
|
6075
|
+
|
|
6076
|
+
# HTTP header `Content-Type`
|
|
6077
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
6078
|
+
['application/json']) # noqa: E501
|
|
6079
|
+
|
|
6080
|
+
# Authentication setting
|
|
6081
|
+
auth_settings = [] # noqa: E501
|
|
6082
|
+
|
|
6083
|
+
return self.api_client.call_api(
|
|
6084
|
+
'/v1/orgs/{orgId}/deployments/{deploymentId}', 'PUT',
|
|
6085
|
+
path_params,
|
|
6086
|
+
query_params,
|
|
6087
|
+
header_params,
|
|
6088
|
+
body=body_params,
|
|
6089
|
+
post_params=form_params,
|
|
6090
|
+
files=local_var_files,
|
|
6091
|
+
response_type='V1OrgDeploymentVisibility', # noqa: E501
|
|
6092
|
+
auth_settings=auth_settings,
|
|
6093
|
+
async_req=params.get('async_req'),
|
|
6094
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
6095
|
+
_preload_content=params.get('_preload_content', True),
|
|
6096
|
+
_request_timeout=params.get('_request_timeout'),
|
|
6097
|
+
collection_formats=collection_formats)
|
|
6098
|
+
|
|
5562
6099
|
def jobs_service_validate_deployment_image(self, body: 'V1ValidateDeploymentImageRequest', **kwargs) -> 'V1ValidateDeploymentImageResponse': # noqa: E501
|
|
5563
6100
|
"""Job deployments # noqa: E501
|
|
5564
6101
|
|