lightning-sdk 2025.12.17__py3-none-any.whl → 2026.1.27__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.
Files changed (130) hide show
  1. lightning_sdk/__version__.py +1 -1
  2. lightning_sdk/api/k8s_api.py +75 -29
  3. lightning_sdk/api/studio_api.py +192 -37
  4. lightning_sdk/api/teamspace_api.py +180 -54
  5. lightning_sdk/api/utils.py +8 -0
  6. lightning_sdk/cli/cp/__init__.py +67 -0
  7. lightning_sdk/cli/cp/teamspace_uploads.py +93 -0
  8. lightning_sdk/cli/entrypoint.py +2 -0
  9. lightning_sdk/cli/groups.py +22 -0
  10. lightning_sdk/cli/legacy/clusters_menu.py +2 -2
  11. lightning_sdk/cli/legacy/deploy/_auth.py +7 -6
  12. lightning_sdk/cli/legacy/download.py +29 -98
  13. lightning_sdk/cli/legacy/run.py +13 -2
  14. lightning_sdk/cli/legacy/upload.py +24 -31
  15. lightning_sdk/cli/studio/__init__.py +4 -0
  16. lightning_sdk/cli/studio/cp.py +24 -65
  17. lightning_sdk/cli/studio/ls.py +57 -0
  18. lightning_sdk/cli/studio/rm.py +71 -0
  19. lightning_sdk/cli/utils/filesystem.py +103 -0
  20. lightning_sdk/cli/utils/logging.py +2 -1
  21. lightning_sdk/cli/utils/teamspace_selection.py +5 -0
  22. lightning_sdk/exceptions.py +31 -0
  23. lightning_sdk/job/base.py +1 -1
  24. lightning_sdk/k8s_cluster.py +9 -10
  25. lightning_sdk/lightning_cloud/__version__.py +1 -1
  26. lightning_sdk/lightning_cloud/openapi/__init__.py +43 -23
  27. lightning_sdk/lightning_cloud/openapi/api/__init__.py +2 -1
  28. lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +118 -1
  29. lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +378 -536
  30. lightning_sdk/lightning_cloud/openapi/api/container_registry_service_api.py +456 -0
  31. lightning_sdk/lightning_cloud/openapi/api/data_connection_service_api.py +5 -1
  32. lightning_sdk/lightning_cloud/openapi/api/file_system_service_api.py +11 -11
  33. lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +113 -0
  34. lightning_sdk/lightning_cloud/openapi/api/k8_s_cluster_service_api.py +246 -19
  35. lightning_sdk/lightning_cloud/openapi/api/lightningwork_service_api.py +116 -11
  36. lightning_sdk/lightning_cloud/openapi/api/lit_logger_service_api.py +588 -2
  37. lightning_sdk/lightning_cloud/openapi/api/models_store_api.py +9 -1
  38. lightning_sdk/lightning_cloud/openapi/api/organizations_service_api.py +113 -0
  39. lightning_sdk/lightning_cloud/openapi/api/storage_service_api.py +5 -1
  40. lightning_sdk/lightning_cloud/openapi/api/{kubernetes_virtual_machine_service_api.py → virtual_machine_service_api.py} +82 -82
  41. lightning_sdk/lightning_cloud/openapi/models/__init__.py +41 -22
  42. lightning_sdk/lightning_cloud/openapi/models/cluster_service_create_cluster_capacity_reservation_body.py +53 -1
  43. lightning_sdk/lightning_cloud/openapi/models/cluster_service_create_machine_body.py +53 -1
  44. lightning_sdk/lightning_cloud/openapi/models/cluster_service_create_org_cluster_capacity_reservation_body.py +409 -0
  45. lightning_sdk/lightning_cloud/openapi/models/{v1_add_container_registry_response.py → cluster_service_report_machine_system_metrics_body.py} +23 -23
  46. lightning_sdk/lightning_cloud/openapi/models/container_registry_config_ecr.py +149 -0
  47. lightning_sdk/lightning_cloud/openapi/models/{v1_container_registry_status.py → container_registry_provider.py} +14 -10
  48. lightning_sdk/lightning_cloud/openapi/models/container_registry_service_create_container_registry_body.py +201 -0
  49. lightning_sdk/lightning_cloud/openapi/models/{v1_ecr_registry_config_input.py → container_registry_service_refresh_container_registry_credentials_body.py} +21 -21
  50. lightning_sdk/lightning_cloud/openapi/models/externalv1_cloud_space_instance_status.py +27 -1
  51. lightning_sdk/lightning_cloud/openapi/models/{v1_ecr_registry_config.py → jobs_service_duplicate_deployment_body.py} +51 -51
  52. lightning_sdk/lightning_cloud/openapi/models/lit_logger_service_create_lit_logger_media_body.py +305 -0
  53. lightning_sdk/lightning_cloud/openapi/models/lit_logger_service_update_lit_logger_media_body.py +149 -0
  54. lightning_sdk/lightning_cloud/openapi/models/lit_logger_service_update_metrics_stream_body.py +53 -1
  55. lightning_sdk/lightning_cloud/openapi/models/organizations_service_update_org_role_body.py +175 -0
  56. lightning_sdk/lightning_cloud/openapi/models/v1_capacity_reservation_used_by.py +227 -0
  57. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_provider.py +2 -1
  58. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_type.py +1 -0
  59. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_accelerator.py +27 -1
  60. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_capacity_reservation.py +53 -1
  61. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +79 -27
  62. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_type.py +0 -1
  63. lightning_sdk/lightning_cloud/openapi/models/v1_container_registry.py +63 -89
  64. lightning_sdk/lightning_cloud/openapi/models/{cluster_service_add_container_registry_body.py → v1_container_registry_config.py} +16 -16
  65. lightning_sdk/lightning_cloud/openapi/models/v1_container_registry_scopes.py +149 -0
  66. lightning_sdk/lightning_cloud/openapi/models/{v1_delete_kubernetes_virtual_machine_response.py → v1_create_container_registry_response.py} +6 -6
  67. lightning_sdk/lightning_cloud/openapi/models/v1_create_lit_logger_media_response.py +149 -0
  68. lightning_sdk/lightning_cloud/openapi/models/v1_create_org_cluster_capacity_reservation_response.py +201 -0
  69. lightning_sdk/lightning_cloud/openapi/models/v1_create_sdk_command_history_request.py +29 -3
  70. lightning_sdk/lightning_cloud/openapi/models/v1_cudo_direct_v1.py +175 -0
  71. lightning_sdk/lightning_cloud/openapi/models/{cluster_service_refresh_container_registry_credentials_body.py → v1_delete_lit_logger_media_response.py} +6 -6
  72. lightning_sdk/lightning_cloud/openapi/models/{kubernetes_virtual_machine_service_update_kubernetes_virtual_machine_body.py → v1_delete_org_cluster_capacity_reservation_response.py} +6 -6
  73. lightning_sdk/lightning_cloud/openapi/models/v1_delete_virtual_machine_response.py +97 -0
  74. lightning_sdk/lightning_cloud/openapi/models/v1_describe_org_cluster_capacity_reservation_response.py +201 -0
  75. lightning_sdk/lightning_cloud/openapi/models/v1_external_cluster_spec.py +27 -27
  76. lightning_sdk/lightning_cloud/openapi/models/v1_external_search_user.py +27 -1
  77. lightning_sdk/lightning_cloud/openapi/models/v1_generic_job_spec.py +79 -1
  78. lightning_sdk/lightning_cloud/openapi/models/{v1_validate_container_registry_response.py → v1_get_kubernetes_pod_logs_response.py} +37 -37
  79. lightning_sdk/lightning_cloud/openapi/models/{v1_get_machine_response.py → v1_get_kubernetes_pod_response.py} +23 -23
  80. lightning_sdk/lightning_cloud/openapi/models/v1_job.py +27 -1
  81. lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +27 -1
  82. lightning_sdk/lightning_cloud/openapi/models/v1_joinable_organization.py +27 -1
  83. lightning_sdk/lightning_cloud/openapi/models/{v1_container_registry_integration.py → v1_k8s_incident_setting.py} +49 -23
  84. lightning_sdk/lightning_cloud/openapi/models/v1_k8s_incident_type.py +108 -0
  85. lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_settings_v1.py +53 -1
  86. lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_v1.py +53 -27
  87. lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_pod.py +27 -1
  88. lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_pod_logs_page.py +227 -0
  89. lightning_sdk/lightning_cloud/openapi/models/v1_kubevirt_config.py +53 -1
  90. lightning_sdk/lightning_cloud/openapi/models/v1_list_container_registries_response.py +6 -6
  91. lightning_sdk/lightning_cloud/openapi/models/v1_list_kubernetes_pods_response.py +43 -17
  92. lightning_sdk/lightning_cloud/openapi/models/v1_list_kubernetes_pods_sort_order.py +104 -0
  93. lightning_sdk/lightning_cloud/openapi/models/v1_list_lit_logger_media_response.py +149 -0
  94. lightning_sdk/lightning_cloud/openapi/models/v1_list_models_response.py +55 -3
  95. lightning_sdk/lightning_cloud/openapi/models/{v1_list_kubernetes_virtual_machines_response.py → v1_list_virtual_machines_response.py} +16 -16
  96. lightning_sdk/lightning_cloud/openapi/models/v1_lit_logger_media.py +513 -0
  97. lightning_sdk/lightning_cloud/openapi/models/v1_machine.py +27 -53
  98. lightning_sdk/lightning_cloud/openapi/models/v1_machine_direct_v1.py +107 -3
  99. lightning_sdk/lightning_cloud/openapi/models/v1_media_type.py +104 -0
  100. lightning_sdk/lightning_cloud/openapi/models/{v1_ai_pod_v1.py → v1_mithril_direct_v1.py} +51 -51
  101. lightning_sdk/lightning_cloud/openapi/models/v1_nebius_direct_v1.py +29 -3
  102. lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +27 -1
  103. lightning_sdk/lightning_cloud/openapi/models/v1_refresh_container_registry_credentials_response.py +1 -27
  104. lightning_sdk/lightning_cloud/openapi/models/{cluster_service_validate_container_registry_body.py → v1_report_cloud_space_instance_idle_state_response.py} +6 -6
  105. lightning_sdk/lightning_cloud/openapi/models/v1_report_machine_system_metrics_response.py +97 -0
  106. lightning_sdk/lightning_cloud/openapi/models/{v1_ecr_registry_details.py → v1_tenant_credentials.py} +53 -53
  107. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +183 -157
  108. lightning_sdk/lightning_cloud/openapi/models/{v1_kubernetes_virtual_machine.py → v1_virtual_machine.py} +94 -68
  109. lightning_sdk/lightning_cloud/openapi/models/{v1_kubevirt_vm_configuration.py → v1_vm_configuration.py} +20 -20
  110. lightning_sdk/lightning_cloud/openapi/models/{v1_kubevirt_provider_configuration.py → v1_vm_provider_configuration.py} +32 -32
  111. lightning_sdk/lightning_cloud/openapi/models/virtual_machine_service_create_virtual_machine_body.py +565 -0
  112. lightning_sdk/lightning_cloud/openapi/models/virtual_machine_service_update_virtual_machine_body.py +97 -0
  113. lightning_sdk/lightning_cloud/openapi/rest.py +2 -2
  114. lightning_sdk/lightning_cloud/rest_client.py +0 -2
  115. lightning_sdk/machine.py +3 -3
  116. lightning_sdk/studio.py +14 -4
  117. lightning_sdk/teamspace.py +28 -7
  118. lightning_sdk/utils/logging.py +2 -1
  119. {lightning_sdk-2025.12.17.dist-info → lightning_sdk-2026.1.27.dist-info}/METADATA +1 -5
  120. {lightning_sdk-2025.12.17.dist-info → lightning_sdk-2026.1.27.dist-info}/RECORD +125 -102
  121. {lightning_sdk-2025.12.17.dist-info → lightning_sdk-2026.1.27.dist-info}/WHEEL +1 -1
  122. lightning_sdk/lightning_cloud/cli/__main__.py +0 -29
  123. lightning_sdk/lightning_cloud/openapi/models/kubernetes_virtual_machine_service_create_kubernetes_virtual_machine_body.py +0 -513
  124. lightning_sdk/lightning_cloud/openapi/models/v1_container_registry_info.py +0 -281
  125. lightning_sdk/lightning_cloud/openapi/models/v1_kubevirt_vm_resources.py +0 -201
  126. lightning_sdk/lightning_cloud/source_code/logs_socket_api.py +0 -103
  127. /lightning_sdk/lightning_cloud/openapi/models/{v1_list_filesystem_mmts_response.py → v1_list_filesystem_mm_ts_response.py} +0 -0
  128. {lightning_sdk-2025.12.17.dist-info → lightning_sdk-2026.1.27.dist-info}/LICENSE +0 -0
  129. {lightning_sdk-2025.12.17.dist-info → lightning_sdk-2026.1.27.dist-info}/entry_points.txt +0 -0
  130. {lightning_sdk-2025.12.17.dist-info → lightning_sdk-2026.1.27.dist-info}/top_level.txt +0 -0
@@ -43,111 +43,6 @@ class ClusterServiceApi(object):
43
43
  api_client = ApiClient()
44
44
  self.api_client = api_client
45
45
 
46
- def cluster_service_add_container_registry(self, body: 'ClusterServiceAddContainerRegistryBody', cluster_id: 'str', **kwargs) -> 'V1AddContainerRegistryResponse': # noqa: E501
47
- """Add a new container registry to a cluster # noqa: E501
48
-
49
- This method makes a synchronous HTTP request by default. To make an
50
- asynchronous HTTP request, please pass async_req=True
51
- >>> thread = api.cluster_service_add_container_registry(body, cluster_id, async_req=True)
52
- >>> result = thread.get()
53
-
54
- :param async_req bool
55
- :param ClusterServiceAddContainerRegistryBody body: (required)
56
- :param str cluster_id: (required)
57
- :return: V1AddContainerRegistryResponse
58
- If the method is called asynchronously,
59
- returns the request thread.
60
- """
61
- kwargs['_return_http_data_only'] = True
62
- if kwargs.get('async_req'):
63
- return self.cluster_service_add_container_registry_with_http_info(body, cluster_id, **kwargs) # noqa: E501
64
- else:
65
- (data) = self.cluster_service_add_container_registry_with_http_info(body, cluster_id, **kwargs) # noqa: E501
66
- return data
67
-
68
- def cluster_service_add_container_registry_with_http_info(self, body: 'ClusterServiceAddContainerRegistryBody', cluster_id: 'str', **kwargs) -> 'V1AddContainerRegistryResponse': # noqa: E501
69
- """Add a new container registry to a cluster # noqa: E501
70
-
71
- This method makes a synchronous HTTP request by default. To make an
72
- asynchronous HTTP request, please pass async_req=True
73
- >>> thread = api.cluster_service_add_container_registry_with_http_info(body, cluster_id, async_req=True)
74
- >>> result = thread.get()
75
-
76
- :param async_req bool
77
- :param ClusterServiceAddContainerRegistryBody body: (required)
78
- :param str cluster_id: (required)
79
- :return: V1AddContainerRegistryResponse
80
- If the method is called asynchronously,
81
- returns the request thread.
82
- """
83
-
84
- all_params = ['body', 'cluster_id'] # noqa: E501
85
- all_params.append('async_req')
86
- all_params.append('_return_http_data_only')
87
- all_params.append('_preload_content')
88
- all_params.append('_request_timeout')
89
-
90
- params = locals()
91
- for key, val in six.iteritems(params['kwargs']):
92
- if key not in all_params:
93
- raise TypeError(
94
- "Got an unexpected keyword argument '%s'"
95
- " to method cluster_service_add_container_registry" % key
96
- )
97
- params[key] = val
98
- del params['kwargs']
99
- # verify the required parameter 'body' is set
100
- if ('body' not in params or
101
- params['body'] is None):
102
- raise ValueError("Missing the required parameter `body` when calling `cluster_service_add_container_registry`") # noqa: E501
103
- # verify the required parameter 'cluster_id' is set
104
- if ('cluster_id' not in params or
105
- params['cluster_id'] is None):
106
- raise ValueError("Missing the required parameter `cluster_id` when calling `cluster_service_add_container_registry`") # noqa: E501
107
-
108
- collection_formats = {}
109
-
110
- path_params = {}
111
- if 'cluster_id' in params:
112
- path_params['clusterId'] = params['cluster_id'] # noqa: E501
113
-
114
- query_params = []
115
-
116
- header_params = {}
117
-
118
- form_params = []
119
- local_var_files = {}
120
-
121
- body_params = None
122
- if 'body' in params:
123
- body_params = params['body']
124
- # HTTP header `Accept`
125
- header_params['Accept'] = self.api_client.select_header_accept(
126
- ['application/json']) # noqa: E501
127
-
128
- # HTTP header `Content-Type`
129
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
130
- ['application/json']) # noqa: E501
131
-
132
- # Authentication setting
133
- auth_settings = [] # noqa: E501
134
-
135
- return self.api_client.call_api(
136
- '/v1/clusters/{clusterId}/container-registries', 'POST',
137
- path_params,
138
- query_params,
139
- header_params,
140
- body=body_params,
141
- post_params=form_params,
142
- files=local_var_files,
143
- response_type='V1AddContainerRegistryResponse', # noqa: E501
144
- auth_settings=auth_settings,
145
- async_req=params.get('async_req'),
146
- _return_http_data_only=params.get('_return_http_data_only'),
147
- _preload_content=params.get('_preload_content', True),
148
- _request_timeout=params.get('_request_timeout'),
149
- collection_formats=collection_formats)
150
-
151
46
  def cluster_service_check_cluster_name_availability(self, body: 'V1CheckClusterNameAvailabilityRequest', **kwargs) -> 'V1CheckClusterNameAvailabilityResponse': # noqa: E501
152
47
  """cluster_service_check_cluster_name_availability # noqa: E501
153
48
 
@@ -343,7 +238,7 @@ class ClusterServiceApi(object):
343
238
  collection_formats=collection_formats)
344
239
 
345
240
  def cluster_service_create_cluster_capacity_reservation(self, body: 'ClusterServiceCreateClusterCapacityReservationBody', project_id: 'str', cluster_id: 'str', **kwargs) -> 'V1CreateClusterCapacityReservationResponse': # noqa: E501
346
- """cluster_service_create_cluster_capacity_reservation # noqa: E501
241
+ """capacity reservation # noqa: E501
347
242
 
348
243
  This method makes a synchronous HTTP request by default. To make an
349
244
  asynchronous HTTP request, please pass async_req=True
@@ -366,7 +261,7 @@ class ClusterServiceApi(object):
366
261
  return data
367
262
 
368
263
  def cluster_service_create_cluster_capacity_reservation_with_http_info(self, body: 'ClusterServiceCreateClusterCapacityReservationBody', project_id: 'str', cluster_id: 'str', **kwargs) -> 'V1CreateClusterCapacityReservationResponse': # noqa: E501
369
- """cluster_service_create_cluster_capacity_reservation # noqa: E501
264
+ """capacity reservation # noqa: E501
370
265
 
371
266
  This method makes a synchronous HTTP request by default. To make an
372
267
  asynchronous HTTP request, please pass async_req=True
@@ -867,6 +762,119 @@ class ClusterServiceApi(object):
867
762
  _request_timeout=params.get('_request_timeout'),
868
763
  collection_formats=collection_formats)
869
764
 
765
+ def cluster_service_create_org_cluster_capacity_reservation(self, body: 'ClusterServiceCreateOrgClusterCapacityReservationBody', org_id: 'str', cluster_id: 'str', **kwargs) -> 'V1CreateOrgClusterCapacityReservationResponse': # noqa: E501
766
+ """cluster_service_create_org_cluster_capacity_reservation # noqa: E501
767
+
768
+ This method makes a synchronous HTTP request by default. To make an
769
+ asynchronous HTTP request, please pass async_req=True
770
+ >>> thread = api.cluster_service_create_org_cluster_capacity_reservation(body, org_id, cluster_id, async_req=True)
771
+ >>> result = thread.get()
772
+
773
+ :param async_req bool
774
+ :param ClusterServiceCreateOrgClusterCapacityReservationBody body: (required)
775
+ :param str org_id: (required)
776
+ :param str cluster_id: (required)
777
+ :return: V1CreateOrgClusterCapacityReservationResponse
778
+ If the method is called asynchronously,
779
+ returns the request thread.
780
+ """
781
+ kwargs['_return_http_data_only'] = True
782
+ if kwargs.get('async_req'):
783
+ return self.cluster_service_create_org_cluster_capacity_reservation_with_http_info(body, org_id, cluster_id, **kwargs) # noqa: E501
784
+ else:
785
+ (data) = self.cluster_service_create_org_cluster_capacity_reservation_with_http_info(body, org_id, cluster_id, **kwargs) # noqa: E501
786
+ return data
787
+
788
+ def cluster_service_create_org_cluster_capacity_reservation_with_http_info(self, body: 'ClusterServiceCreateOrgClusterCapacityReservationBody', org_id: 'str', cluster_id: 'str', **kwargs) -> 'V1CreateOrgClusterCapacityReservationResponse': # noqa: E501
789
+ """cluster_service_create_org_cluster_capacity_reservation # noqa: E501
790
+
791
+ This method makes a synchronous HTTP request by default. To make an
792
+ asynchronous HTTP request, please pass async_req=True
793
+ >>> thread = api.cluster_service_create_org_cluster_capacity_reservation_with_http_info(body, org_id, cluster_id, async_req=True)
794
+ >>> result = thread.get()
795
+
796
+ :param async_req bool
797
+ :param ClusterServiceCreateOrgClusterCapacityReservationBody body: (required)
798
+ :param str org_id: (required)
799
+ :param str cluster_id: (required)
800
+ :return: V1CreateOrgClusterCapacityReservationResponse
801
+ If the method is called asynchronously,
802
+ returns the request thread.
803
+ """
804
+
805
+ all_params = ['body', 'org_id', 'cluster_id'] # noqa: E501
806
+ all_params.append('async_req')
807
+ all_params.append('_return_http_data_only')
808
+ all_params.append('_preload_content')
809
+ all_params.append('_request_timeout')
810
+
811
+ params = locals()
812
+ for key, val in six.iteritems(params['kwargs']):
813
+ if key not in all_params:
814
+ raise TypeError(
815
+ "Got an unexpected keyword argument '%s'"
816
+ " to method cluster_service_create_org_cluster_capacity_reservation" % key
817
+ )
818
+ params[key] = val
819
+ del params['kwargs']
820
+ # verify the required parameter 'body' is set
821
+ if ('body' not in params or
822
+ params['body'] is None):
823
+ raise ValueError("Missing the required parameter `body` when calling `cluster_service_create_org_cluster_capacity_reservation`") # noqa: E501
824
+ # verify the required parameter 'org_id' is set
825
+ if ('org_id' not in params or
826
+ params['org_id'] is None):
827
+ raise ValueError("Missing the required parameter `org_id` when calling `cluster_service_create_org_cluster_capacity_reservation`") # noqa: E501
828
+ # verify the required parameter 'cluster_id' is set
829
+ if ('cluster_id' not in params or
830
+ params['cluster_id'] is None):
831
+ raise ValueError("Missing the required parameter `cluster_id` when calling `cluster_service_create_org_cluster_capacity_reservation`") # noqa: E501
832
+
833
+ collection_formats = {}
834
+
835
+ path_params = {}
836
+ if 'org_id' in params:
837
+ path_params['orgId'] = params['org_id'] # noqa: E501
838
+ if 'cluster_id' in params:
839
+ path_params['clusterId'] = params['cluster_id'] # noqa: E501
840
+
841
+ query_params = []
842
+
843
+ header_params = {}
844
+
845
+ form_params = []
846
+ local_var_files = {}
847
+
848
+ body_params = None
849
+ if 'body' in params:
850
+ body_params = params['body']
851
+ # HTTP header `Accept`
852
+ header_params['Accept'] = self.api_client.select_header_accept(
853
+ ['application/json']) # noqa: E501
854
+
855
+ # HTTP header `Content-Type`
856
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
857
+ ['application/json']) # noqa: E501
858
+
859
+ # Authentication setting
860
+ auth_settings = [] # noqa: E501
861
+
862
+ return self.api_client.call_api(
863
+ '/v1/orgs/{orgId}/clusters/{clusterId}/capacity-reservations', 'POST',
864
+ path_params,
865
+ query_params,
866
+ header_params,
867
+ body=body_params,
868
+ post_params=form_params,
869
+ files=local_var_files,
870
+ response_type='V1CreateOrgClusterCapacityReservationResponse', # noqa: E501
871
+ auth_settings=auth_settings,
872
+ async_req=params.get('async_req'),
873
+ _return_http_data_only=params.get('_return_http_data_only'),
874
+ _preload_content=params.get('_preload_content', True),
875
+ _request_timeout=params.get('_request_timeout'),
876
+ collection_formats=collection_formats)
877
+
870
878
  def cluster_service_create_project_cluster(self, body: 'ClusterServiceCreateProjectClusterBody', project_id: 'str', **kwargs) -> 'Externalv1Cluster': # noqa: E501
871
879
  """cluster_service_create_project_cluster # noqa: E501
872
880
 
@@ -1602,45 +1610,47 @@ class ClusterServiceApi(object):
1602
1610
  _request_timeout=params.get('_request_timeout'),
1603
1611
  collection_formats=collection_formats)
1604
1612
 
1605
- def cluster_service_delete_container_registry(self, cluster_id: 'str', registry_id: 'str', **kwargs) -> 'V1DeleteContainerRegistryResponse': # noqa: E501
1606
- """Delete a container registry from a cluster # noqa: E501
1613
+ def cluster_service_delete_machine(self, cluster_id: 'str', id: 'str', **kwargs) -> 'V1DeleteMachineResponse': # noqa: E501
1614
+ """Delete a machine # noqa: E501
1607
1615
 
1608
1616
  This method makes a synchronous HTTP request by default. To make an
1609
1617
  asynchronous HTTP request, please pass async_req=True
1610
- >>> thread = api.cluster_service_delete_container_registry(cluster_id, registry_id, async_req=True)
1618
+ >>> thread = api.cluster_service_delete_machine(cluster_id, id, async_req=True)
1611
1619
  >>> result = thread.get()
1612
1620
 
1613
1621
  :param async_req bool
1614
1622
  :param str cluster_id: (required)
1615
- :param str registry_id: (required)
1616
- :return: V1DeleteContainerRegistryResponse
1623
+ :param str id: (required)
1624
+ :param str org_id:
1625
+ :return: V1DeleteMachineResponse
1617
1626
  If the method is called asynchronously,
1618
1627
  returns the request thread.
1619
1628
  """
1620
1629
  kwargs['_return_http_data_only'] = True
1621
1630
  if kwargs.get('async_req'):
1622
- return self.cluster_service_delete_container_registry_with_http_info(cluster_id, registry_id, **kwargs) # noqa: E501
1631
+ return self.cluster_service_delete_machine_with_http_info(cluster_id, id, **kwargs) # noqa: E501
1623
1632
  else:
1624
- (data) = self.cluster_service_delete_container_registry_with_http_info(cluster_id, registry_id, **kwargs) # noqa: E501
1633
+ (data) = self.cluster_service_delete_machine_with_http_info(cluster_id, id, **kwargs) # noqa: E501
1625
1634
  return data
1626
1635
 
1627
- def cluster_service_delete_container_registry_with_http_info(self, cluster_id: 'str', registry_id: 'str', **kwargs) -> 'V1DeleteContainerRegistryResponse': # noqa: E501
1628
- """Delete a container registry from a cluster # noqa: E501
1636
+ def cluster_service_delete_machine_with_http_info(self, cluster_id: 'str', id: 'str', **kwargs) -> 'V1DeleteMachineResponse': # noqa: E501
1637
+ """Delete a machine # noqa: E501
1629
1638
 
1630
1639
  This method makes a synchronous HTTP request by default. To make an
1631
1640
  asynchronous HTTP request, please pass async_req=True
1632
- >>> thread = api.cluster_service_delete_container_registry_with_http_info(cluster_id, registry_id, async_req=True)
1641
+ >>> thread = api.cluster_service_delete_machine_with_http_info(cluster_id, id, async_req=True)
1633
1642
  >>> result = thread.get()
1634
1643
 
1635
1644
  :param async_req bool
1636
1645
  :param str cluster_id: (required)
1637
- :param str registry_id: (required)
1638
- :return: V1DeleteContainerRegistryResponse
1646
+ :param str id: (required)
1647
+ :param str org_id:
1648
+ :return: V1DeleteMachineResponse
1639
1649
  If the method is called asynchronously,
1640
1650
  returns the request thread.
1641
1651
  """
1642
1652
 
1643
- all_params = ['cluster_id', 'registry_id'] # noqa: E501
1653
+ all_params = ['cluster_id', 'id', 'org_id'] # noqa: E501
1644
1654
  all_params.append('async_req')
1645
1655
  all_params.append('_return_http_data_only')
1646
1656
  all_params.append('_preload_content')
@@ -1651,28 +1661,30 @@ class ClusterServiceApi(object):
1651
1661
  if key not in all_params:
1652
1662
  raise TypeError(
1653
1663
  "Got an unexpected keyword argument '%s'"
1654
- " to method cluster_service_delete_container_registry" % key
1664
+ " to method cluster_service_delete_machine" % key
1655
1665
  )
1656
1666
  params[key] = val
1657
1667
  del params['kwargs']
1658
1668
  # verify the required parameter 'cluster_id' is set
1659
1669
  if ('cluster_id' not in params or
1660
1670
  params['cluster_id'] is None):
1661
- raise ValueError("Missing the required parameter `cluster_id` when calling `cluster_service_delete_container_registry`") # noqa: E501
1662
- # verify the required parameter 'registry_id' is set
1663
- if ('registry_id' not in params or
1664
- params['registry_id'] is None):
1665
- raise ValueError("Missing the required parameter `registry_id` when calling `cluster_service_delete_container_registry`") # noqa: E501
1671
+ raise ValueError("Missing the required parameter `cluster_id` when calling `cluster_service_delete_machine`") # noqa: E501
1672
+ # verify the required parameter 'id' is set
1673
+ if ('id' not in params or
1674
+ params['id'] is None):
1675
+ raise ValueError("Missing the required parameter `id` when calling `cluster_service_delete_machine`") # noqa: E501
1666
1676
 
1667
1677
  collection_formats = {}
1668
1678
 
1669
1679
  path_params = {}
1670
1680
  if 'cluster_id' in params:
1671
1681
  path_params['clusterId'] = params['cluster_id'] # noqa: E501
1672
- if 'registry_id' in params:
1673
- path_params['registryId'] = params['registry_id'] # noqa: E501
1682
+ if 'id' in params:
1683
+ path_params['id'] = params['id'] # noqa: E501
1674
1684
 
1675
1685
  query_params = []
1686
+ if 'org_id' in params:
1687
+ query_params.append(('orgId', params['org_id'])) # noqa: E501
1676
1688
 
1677
1689
  header_params = {}
1678
1690
 
@@ -1688,14 +1700,14 @@ class ClusterServiceApi(object):
1688
1700
  auth_settings = [] # noqa: E501
1689
1701
 
1690
1702
  return self.api_client.call_api(
1691
- '/v1/clusters/{clusterId}/container-registries/{registryId}', 'DELETE',
1703
+ '/v1/core/clusters/{clusterId}/machines/{id}', 'DELETE',
1692
1704
  path_params,
1693
1705
  query_params,
1694
1706
  header_params,
1695
1707
  body=body_params,
1696
1708
  post_params=form_params,
1697
1709
  files=local_var_files,
1698
- response_type='V1DeleteContainerRegistryResponse', # noqa: E501
1710
+ response_type='V1DeleteMachineResponse', # noqa: E501
1699
1711
  auth_settings=auth_settings,
1700
1712
  async_req=params.get('async_req'),
1701
1713
  _return_http_data_only=params.get('_return_http_data_only'),
@@ -1703,47 +1715,47 @@ class ClusterServiceApi(object):
1703
1715
  _request_timeout=params.get('_request_timeout'),
1704
1716
  collection_formats=collection_formats)
1705
1717
 
1706
- def cluster_service_delete_machine(self, cluster_id: 'str', id: 'str', **kwargs) -> 'V1DeleteMachineResponse': # noqa: E501
1707
- """Delete a machine # noqa: E501
1718
+ def cluster_service_delete_org_cluster_capacity_reservation(self, org_id: 'str', cluster_id: 'str', **kwargs) -> 'V1DeleteOrgClusterCapacityReservationResponse': # noqa: E501
1719
+ """cluster_service_delete_org_cluster_capacity_reservation # noqa: E501
1708
1720
 
1709
1721
  This method makes a synchronous HTTP request by default. To make an
1710
1722
  asynchronous HTTP request, please pass async_req=True
1711
- >>> thread = api.cluster_service_delete_machine(cluster_id, id, async_req=True)
1723
+ >>> thread = api.cluster_service_delete_org_cluster_capacity_reservation(org_id, cluster_id, async_req=True)
1712
1724
  >>> result = thread.get()
1713
1725
 
1714
1726
  :param async_req bool
1727
+ :param str org_id: (required)
1715
1728
  :param str cluster_id: (required)
1716
- :param str id: (required)
1717
- :param str org_id:
1718
- :return: V1DeleteMachineResponse
1729
+ :param str id:
1730
+ :return: V1DeleteOrgClusterCapacityReservationResponse
1719
1731
  If the method is called asynchronously,
1720
1732
  returns the request thread.
1721
1733
  """
1722
1734
  kwargs['_return_http_data_only'] = True
1723
1735
  if kwargs.get('async_req'):
1724
- return self.cluster_service_delete_machine_with_http_info(cluster_id, id, **kwargs) # noqa: E501
1736
+ return self.cluster_service_delete_org_cluster_capacity_reservation_with_http_info(org_id, cluster_id, **kwargs) # noqa: E501
1725
1737
  else:
1726
- (data) = self.cluster_service_delete_machine_with_http_info(cluster_id, id, **kwargs) # noqa: E501
1738
+ (data) = self.cluster_service_delete_org_cluster_capacity_reservation_with_http_info(org_id, cluster_id, **kwargs) # noqa: E501
1727
1739
  return data
1728
1740
 
1729
- def cluster_service_delete_machine_with_http_info(self, cluster_id: 'str', id: 'str', **kwargs) -> 'V1DeleteMachineResponse': # noqa: E501
1730
- """Delete a machine # noqa: E501
1741
+ def cluster_service_delete_org_cluster_capacity_reservation_with_http_info(self, org_id: 'str', cluster_id: 'str', **kwargs) -> 'V1DeleteOrgClusterCapacityReservationResponse': # noqa: E501
1742
+ """cluster_service_delete_org_cluster_capacity_reservation # noqa: E501
1731
1743
 
1732
1744
  This method makes a synchronous HTTP request by default. To make an
1733
1745
  asynchronous HTTP request, please pass async_req=True
1734
- >>> thread = api.cluster_service_delete_machine_with_http_info(cluster_id, id, async_req=True)
1746
+ >>> thread = api.cluster_service_delete_org_cluster_capacity_reservation_with_http_info(org_id, cluster_id, async_req=True)
1735
1747
  >>> result = thread.get()
1736
1748
 
1737
1749
  :param async_req bool
1750
+ :param str org_id: (required)
1738
1751
  :param str cluster_id: (required)
1739
- :param str id: (required)
1740
- :param str org_id:
1741
- :return: V1DeleteMachineResponse
1752
+ :param str id:
1753
+ :return: V1DeleteOrgClusterCapacityReservationResponse
1742
1754
  If the method is called asynchronously,
1743
1755
  returns the request thread.
1744
1756
  """
1745
1757
 
1746
- all_params = ['cluster_id', 'id', 'org_id'] # noqa: E501
1758
+ all_params = ['org_id', 'cluster_id', 'id'] # noqa: E501
1747
1759
  all_params.append('async_req')
1748
1760
  all_params.append('_return_http_data_only')
1749
1761
  all_params.append('_preload_content')
@@ -1754,30 +1766,30 @@ class ClusterServiceApi(object):
1754
1766
  if key not in all_params:
1755
1767
  raise TypeError(
1756
1768
  "Got an unexpected keyword argument '%s'"
1757
- " to method cluster_service_delete_machine" % key
1769
+ " to method cluster_service_delete_org_cluster_capacity_reservation" % key
1758
1770
  )
1759
1771
  params[key] = val
1760
1772
  del params['kwargs']
1773
+ # verify the required parameter 'org_id' is set
1774
+ if ('org_id' not in params or
1775
+ params['org_id'] is None):
1776
+ raise ValueError("Missing the required parameter `org_id` when calling `cluster_service_delete_org_cluster_capacity_reservation`") # noqa: E501
1761
1777
  # verify the required parameter 'cluster_id' is set
1762
1778
  if ('cluster_id' not in params or
1763
1779
  params['cluster_id'] is None):
1764
- raise ValueError("Missing the required parameter `cluster_id` when calling `cluster_service_delete_machine`") # noqa: E501
1765
- # verify the required parameter 'id' is set
1766
- if ('id' not in params or
1767
- params['id'] is None):
1768
- raise ValueError("Missing the required parameter `id` when calling `cluster_service_delete_machine`") # noqa: E501
1780
+ raise ValueError("Missing the required parameter `cluster_id` when calling `cluster_service_delete_org_cluster_capacity_reservation`") # noqa: E501
1769
1781
 
1770
1782
  collection_formats = {}
1771
1783
 
1772
1784
  path_params = {}
1785
+ if 'org_id' in params:
1786
+ path_params['orgId'] = params['org_id'] # noqa: E501
1773
1787
  if 'cluster_id' in params:
1774
1788
  path_params['clusterId'] = params['cluster_id'] # noqa: E501
1775
- if 'id' in params:
1776
- path_params['id'] = params['id'] # noqa: E501
1777
1789
 
1778
1790
  query_params = []
1779
- if 'org_id' in params:
1780
- query_params.append(('orgId', params['org_id'])) # noqa: E501
1791
+ if 'id' in params:
1792
+ query_params.append(('id', params['id'])) # noqa: E501
1781
1793
 
1782
1794
  header_params = {}
1783
1795
 
@@ -1793,14 +1805,14 @@ class ClusterServiceApi(object):
1793
1805
  auth_settings = [] # noqa: E501
1794
1806
 
1795
1807
  return self.api_client.call_api(
1796
- '/v1/core/clusters/{clusterId}/machines/{id}', 'DELETE',
1808
+ '/v1/orgs/{orgId}/clusters/{clusterId}/capacity-reservations', 'DELETE',
1797
1809
  path_params,
1798
1810
  query_params,
1799
1811
  header_params,
1800
1812
  body=body_params,
1801
1813
  post_params=form_params,
1802
1814
  files=local_var_files,
1803
- response_type='V1DeleteMachineResponse', # noqa: E501
1815
+ response_type='V1DeleteOrgClusterCapacityReservationResponse', # noqa: E501
1804
1816
  auth_settings=auth_settings,
1805
1817
  async_req=params.get('async_req'),
1806
1818
  _return_http_data_only=params.get('_return_http_data_only'),
@@ -1921,6 +1933,115 @@ class ClusterServiceApi(object):
1921
1933
  _request_timeout=params.get('_request_timeout'),
1922
1934
  collection_formats=collection_formats)
1923
1935
 
1936
+ def cluster_service_describe_org_cluster_capacity_reservation(self, org_id: 'str', cluster_id: 'str', id: 'str', **kwargs) -> 'V1DescribeOrgClusterCapacityReservationResponse': # noqa: E501
1937
+ """cluster_service_describe_org_cluster_capacity_reservation # noqa: E501
1938
+
1939
+ This method makes a synchronous HTTP request by default. To make an
1940
+ asynchronous HTTP request, please pass async_req=True
1941
+ >>> thread = api.cluster_service_describe_org_cluster_capacity_reservation(org_id, cluster_id, id, async_req=True)
1942
+ >>> result = thread.get()
1943
+
1944
+ :param async_req bool
1945
+ :param str org_id: (required)
1946
+ :param str cluster_id: (required)
1947
+ :param str id: (required)
1948
+ :return: V1DescribeOrgClusterCapacityReservationResponse
1949
+ If the method is called asynchronously,
1950
+ returns the request thread.
1951
+ """
1952
+ kwargs['_return_http_data_only'] = True
1953
+ if kwargs.get('async_req'):
1954
+ return self.cluster_service_describe_org_cluster_capacity_reservation_with_http_info(org_id, cluster_id, id, **kwargs) # noqa: E501
1955
+ else:
1956
+ (data) = self.cluster_service_describe_org_cluster_capacity_reservation_with_http_info(org_id, cluster_id, id, **kwargs) # noqa: E501
1957
+ return data
1958
+
1959
+ def cluster_service_describe_org_cluster_capacity_reservation_with_http_info(self, org_id: 'str', cluster_id: 'str', id: 'str', **kwargs) -> 'V1DescribeOrgClusterCapacityReservationResponse': # noqa: E501
1960
+ """cluster_service_describe_org_cluster_capacity_reservation # noqa: E501
1961
+
1962
+ This method makes a synchronous HTTP request by default. To make an
1963
+ asynchronous HTTP request, please pass async_req=True
1964
+ >>> thread = api.cluster_service_describe_org_cluster_capacity_reservation_with_http_info(org_id, cluster_id, id, async_req=True)
1965
+ >>> result = thread.get()
1966
+
1967
+ :param async_req bool
1968
+ :param str org_id: (required)
1969
+ :param str cluster_id: (required)
1970
+ :param str id: (required)
1971
+ :return: V1DescribeOrgClusterCapacityReservationResponse
1972
+ If the method is called asynchronously,
1973
+ returns the request thread.
1974
+ """
1975
+
1976
+ all_params = ['org_id', 'cluster_id', 'id'] # noqa: E501
1977
+ all_params.append('async_req')
1978
+ all_params.append('_return_http_data_only')
1979
+ all_params.append('_preload_content')
1980
+ all_params.append('_request_timeout')
1981
+
1982
+ params = locals()
1983
+ for key, val in six.iteritems(params['kwargs']):
1984
+ if key not in all_params:
1985
+ raise TypeError(
1986
+ "Got an unexpected keyword argument '%s'"
1987
+ " to method cluster_service_describe_org_cluster_capacity_reservation" % key
1988
+ )
1989
+ params[key] = val
1990
+ del params['kwargs']
1991
+ # verify the required parameter 'org_id' is set
1992
+ if ('org_id' not in params or
1993
+ params['org_id'] is None):
1994
+ raise ValueError("Missing the required parameter `org_id` when calling `cluster_service_describe_org_cluster_capacity_reservation`") # noqa: E501
1995
+ # verify the required parameter 'cluster_id' is set
1996
+ if ('cluster_id' not in params or
1997
+ params['cluster_id'] is None):
1998
+ raise ValueError("Missing the required parameter `cluster_id` when calling `cluster_service_describe_org_cluster_capacity_reservation`") # noqa: E501
1999
+ # verify the required parameter 'id' is set
2000
+ if ('id' not in params or
2001
+ params['id'] is None):
2002
+ raise ValueError("Missing the required parameter `id` when calling `cluster_service_describe_org_cluster_capacity_reservation`") # noqa: E501
2003
+
2004
+ collection_formats = {}
2005
+
2006
+ path_params = {}
2007
+ if 'org_id' in params:
2008
+ path_params['orgId'] = params['org_id'] # noqa: E501
2009
+ if 'cluster_id' in params:
2010
+ path_params['clusterId'] = params['cluster_id'] # noqa: E501
2011
+ if 'id' in params:
2012
+ path_params['id'] = params['id'] # noqa: E501
2013
+
2014
+ query_params = []
2015
+
2016
+ header_params = {}
2017
+
2018
+ form_params = []
2019
+ local_var_files = {}
2020
+
2021
+ body_params = None
2022
+ # HTTP header `Accept`
2023
+ header_params['Accept'] = self.api_client.select_header_accept(
2024
+ ['application/json']) # noqa: E501
2025
+
2026
+ # Authentication setting
2027
+ auth_settings = [] # noqa: E501
2028
+
2029
+ return self.api_client.call_api(
2030
+ '/v1/orgs/{orgId}/clusters/{clusterId}/capacity-reservations/{id}', 'GET',
2031
+ path_params,
2032
+ query_params,
2033
+ header_params,
2034
+ body=body_params,
2035
+ post_params=form_params,
2036
+ files=local_var_files,
2037
+ response_type='V1DescribeOrgClusterCapacityReservationResponse', # noqa: E501
2038
+ auth_settings=auth_settings,
2039
+ async_req=params.get('async_req'),
2040
+ _return_http_data_only=params.get('_return_http_data_only'),
2041
+ _preload_content=params.get('_preload_content', True),
2042
+ _request_timeout=params.get('_request_timeout'),
2043
+ collection_formats=collection_formats)
2044
+
1924
2045
  def cluster_service_find_capacity_block_offering(self, project_id: 'str', cluster_id: 'str', **kwargs) -> 'V1FindCapacityBlockOfferingResponse': # noqa: E501
1925
2046
  """cluster_service_find_capacity_block_offering # noqa: E501
1926
2047
 
@@ -2316,94 +2437,9 @@ class ClusterServiceApi(object):
2316
2437
 
2317
2438
  query_params = []
2318
2439
  if 'org_id' in params:
2319
- query_params.append(('orgId', params['org_id'])) # noqa: E501
2320
- if 'cluster_id' in params:
2321
- query_params.append(('clusterId', params['cluster_id'])) # noqa: E501
2322
-
2323
- header_params = {}
2324
-
2325
- form_params = []
2326
- local_var_files = {}
2327
-
2328
- body_params = None
2329
- # HTTP header `Accept`
2330
- header_params['Accept'] = self.api_client.select_header_accept(
2331
- ['application/json']) # noqa: E501
2332
-
2333
- # Authentication setting
2334
- auth_settings = [] # noqa: E501
2335
-
2336
- return self.api_client.call_api(
2337
- '/v1/core/cluster-availability', 'GET',
2338
- path_params,
2339
- query_params,
2340
- header_params,
2341
- body=body_params,
2342
- post_params=form_params,
2343
- files=local_var_files,
2344
- response_type='V1ClusterAvailability', # noqa: E501
2345
- auth_settings=auth_settings,
2346
- async_req=params.get('async_req'),
2347
- _return_http_data_only=params.get('_return_http_data_only'),
2348
- _preload_content=params.get('_preload_content', True),
2349
- _request_timeout=params.get('_request_timeout'),
2350
- collection_formats=collection_formats)
2351
-
2352
- def cluster_service_get_cluster_credentials(self, **kwargs) -> 'V1GetClusterCredentialsResponse': # noqa: E501
2353
- """cluster_service_get_cluster_credentials # noqa: E501
2354
-
2355
- This method makes a synchronous HTTP request by default. To make an
2356
- asynchronous HTTP request, please pass async_req=True
2357
- >>> thread = api.cluster_service_get_cluster_credentials(async_req=True)
2358
- >>> result = thread.get()
2359
-
2360
- :param async_req bool
2361
- :return: V1GetClusterCredentialsResponse
2362
- If the method is called asynchronously,
2363
- returns the request thread.
2364
- """
2365
- kwargs['_return_http_data_only'] = True
2366
- if kwargs.get('async_req'):
2367
- return self.cluster_service_get_cluster_credentials_with_http_info(**kwargs) # noqa: E501
2368
- else:
2369
- (data) = self.cluster_service_get_cluster_credentials_with_http_info(**kwargs) # noqa: E501
2370
- return data
2371
-
2372
- def cluster_service_get_cluster_credentials_with_http_info(self, **kwargs) -> 'V1GetClusterCredentialsResponse': # noqa: E501
2373
- """cluster_service_get_cluster_credentials # noqa: E501
2374
-
2375
- This method makes a synchronous HTTP request by default. To make an
2376
- asynchronous HTTP request, please pass async_req=True
2377
- >>> thread = api.cluster_service_get_cluster_credentials_with_http_info(async_req=True)
2378
- >>> result = thread.get()
2379
-
2380
- :param async_req bool
2381
- :return: V1GetClusterCredentialsResponse
2382
- If the method is called asynchronously,
2383
- returns the request thread.
2384
- """
2385
-
2386
- all_params = [] # noqa: E501
2387
- all_params.append('async_req')
2388
- all_params.append('_return_http_data_only')
2389
- all_params.append('_preload_content')
2390
- all_params.append('_request_timeout')
2391
-
2392
- params = locals()
2393
- for key, val in six.iteritems(params['kwargs']):
2394
- if key not in all_params:
2395
- raise TypeError(
2396
- "Got an unexpected keyword argument '%s'"
2397
- " to method cluster_service_get_cluster_credentials" % key
2398
- )
2399
- params[key] = val
2400
- del params['kwargs']
2401
-
2402
- collection_formats = {}
2403
-
2404
- path_params = {}
2405
-
2406
- query_params = []
2440
+ query_params.append(('orgId', params['org_id'])) # noqa: E501
2441
+ if 'cluster_id' in params:
2442
+ query_params.append(('clusterId', params['cluster_id'])) # noqa: E501
2407
2443
 
2408
2444
  header_params = {}
2409
2445
 
@@ -2419,14 +2455,14 @@ class ClusterServiceApi(object):
2419
2455
  auth_settings = [] # noqa: E501
2420
2456
 
2421
2457
  return self.api_client.call_api(
2422
- '/v1/core/cluster-credentials', 'GET',
2458
+ '/v1/core/cluster-availability', 'GET',
2423
2459
  path_params,
2424
2460
  query_params,
2425
2461
  header_params,
2426
2462
  body=body_params,
2427
2463
  post_params=form_params,
2428
2464
  files=local_var_files,
2429
- response_type='V1GetClusterCredentialsResponse', # noqa: E501
2465
+ response_type='V1ClusterAvailability', # noqa: E501
2430
2466
  auth_settings=auth_settings,
2431
2467
  async_req=params.get('async_req'),
2432
2468
  _return_http_data_only=params.get('_return_http_data_only'),
@@ -2434,43 +2470,41 @@ class ClusterServiceApi(object):
2434
2470
  _request_timeout=params.get('_request_timeout'),
2435
2471
  collection_formats=collection_formats)
2436
2472
 
2437
- def cluster_service_get_cluster_health(self, id: 'str', **kwargs) -> 'V1GetClusterHealthResponse': # noqa: E501
2438
- """cluster_service_get_cluster_health # noqa: E501
2473
+ def cluster_service_get_cluster_credentials(self, **kwargs) -> 'V1GetClusterCredentialsResponse': # noqa: E501
2474
+ """cluster_service_get_cluster_credentials # noqa: E501
2439
2475
 
2440
2476
  This method makes a synchronous HTTP request by default. To make an
2441
2477
  asynchronous HTTP request, please pass async_req=True
2442
- >>> thread = api.cluster_service_get_cluster_health(id, async_req=True)
2478
+ >>> thread = api.cluster_service_get_cluster_credentials(async_req=True)
2443
2479
  >>> result = thread.get()
2444
2480
 
2445
2481
  :param async_req bool
2446
- :param str id: (required)
2447
- :return: V1GetClusterHealthResponse
2482
+ :return: V1GetClusterCredentialsResponse
2448
2483
  If the method is called asynchronously,
2449
2484
  returns the request thread.
2450
2485
  """
2451
2486
  kwargs['_return_http_data_only'] = True
2452
2487
  if kwargs.get('async_req'):
2453
- return self.cluster_service_get_cluster_health_with_http_info(id, **kwargs) # noqa: E501
2488
+ return self.cluster_service_get_cluster_credentials_with_http_info(**kwargs) # noqa: E501
2454
2489
  else:
2455
- (data) = self.cluster_service_get_cluster_health_with_http_info(id, **kwargs) # noqa: E501
2490
+ (data) = self.cluster_service_get_cluster_credentials_with_http_info(**kwargs) # noqa: E501
2456
2491
  return data
2457
2492
 
2458
- def cluster_service_get_cluster_health_with_http_info(self, id: 'str', **kwargs) -> 'V1GetClusterHealthResponse': # noqa: E501
2459
- """cluster_service_get_cluster_health # noqa: E501
2493
+ def cluster_service_get_cluster_credentials_with_http_info(self, **kwargs) -> 'V1GetClusterCredentialsResponse': # noqa: E501
2494
+ """cluster_service_get_cluster_credentials # noqa: E501
2460
2495
 
2461
2496
  This method makes a synchronous HTTP request by default. To make an
2462
2497
  asynchronous HTTP request, please pass async_req=True
2463
- >>> thread = api.cluster_service_get_cluster_health_with_http_info(id, async_req=True)
2498
+ >>> thread = api.cluster_service_get_cluster_credentials_with_http_info(async_req=True)
2464
2499
  >>> result = thread.get()
2465
2500
 
2466
2501
  :param async_req bool
2467
- :param str id: (required)
2468
- :return: V1GetClusterHealthResponse
2502
+ :return: V1GetClusterCredentialsResponse
2469
2503
  If the method is called asynchronously,
2470
2504
  returns the request thread.
2471
2505
  """
2472
2506
 
2473
- all_params = ['id'] # noqa: E501
2507
+ all_params = [] # noqa: E501
2474
2508
  all_params.append('async_req')
2475
2509
  all_params.append('_return_http_data_only')
2476
2510
  all_params.append('_preload_content')
@@ -2481,20 +2515,14 @@ class ClusterServiceApi(object):
2481
2515
  if key not in all_params:
2482
2516
  raise TypeError(
2483
2517
  "Got an unexpected keyword argument '%s'"
2484
- " to method cluster_service_get_cluster_health" % key
2518
+ " to method cluster_service_get_cluster_credentials" % key
2485
2519
  )
2486
2520
  params[key] = val
2487
2521
  del params['kwargs']
2488
- # verify the required parameter 'id' is set
2489
- if ('id' not in params or
2490
- params['id'] is None):
2491
- raise ValueError("Missing the required parameter `id` when calling `cluster_service_get_cluster_health`") # noqa: E501
2492
2522
 
2493
2523
  collection_formats = {}
2494
2524
 
2495
2525
  path_params = {}
2496
- if 'id' in params:
2497
- path_params['id'] = params['id'] # noqa: E501
2498
2526
 
2499
2527
  query_params = []
2500
2528
 
@@ -2512,14 +2540,14 @@ class ClusterServiceApi(object):
2512
2540
  auth_settings = [] # noqa: E501
2513
2541
 
2514
2542
  return self.api_client.call_api(
2515
- '/v1/core/clusters/{id}/health', 'GET',
2543
+ '/v1/core/cluster-credentials', 'GET',
2516
2544
  path_params,
2517
2545
  query_params,
2518
2546
  header_params,
2519
2547
  body=body_params,
2520
2548
  post_params=form_params,
2521
2549
  files=local_var_files,
2522
- response_type='V1GetClusterHealthResponse', # noqa: E501
2550
+ response_type='V1GetClusterCredentialsResponse', # noqa: E501
2523
2551
  auth_settings=auth_settings,
2524
2552
  async_req=params.get('async_req'),
2525
2553
  _return_http_data_only=params.get('_return_http_data_only'),
@@ -2527,47 +2555,43 @@ class ClusterServiceApi(object):
2527
2555
  _request_timeout=params.get('_request_timeout'),
2528
2556
  collection_formats=collection_formats)
2529
2557
 
2530
- def cluster_service_get_machine(self, cluster_id: 'str', id: 'str', **kwargs) -> 'V1GetMachineResponse': # noqa: E501
2531
- """Get a machine by ID # noqa: E501
2558
+ def cluster_service_get_cluster_health(self, id: 'str', **kwargs) -> 'V1GetClusterHealthResponse': # noqa: E501
2559
+ """cluster_service_get_cluster_health # noqa: E501
2532
2560
 
2533
2561
  This method makes a synchronous HTTP request by default. To make an
2534
2562
  asynchronous HTTP request, please pass async_req=True
2535
- >>> thread = api.cluster_service_get_machine(cluster_id, id, async_req=True)
2563
+ >>> thread = api.cluster_service_get_cluster_health(id, async_req=True)
2536
2564
  >>> result = thread.get()
2537
2565
 
2538
2566
  :param async_req bool
2539
- :param str cluster_id: (required)
2540
2567
  :param str id: (required)
2541
- :param str org_id:
2542
- :return: V1GetMachineResponse
2568
+ :return: V1GetClusterHealthResponse
2543
2569
  If the method is called asynchronously,
2544
2570
  returns the request thread.
2545
2571
  """
2546
2572
  kwargs['_return_http_data_only'] = True
2547
2573
  if kwargs.get('async_req'):
2548
- return self.cluster_service_get_machine_with_http_info(cluster_id, id, **kwargs) # noqa: E501
2574
+ return self.cluster_service_get_cluster_health_with_http_info(id, **kwargs) # noqa: E501
2549
2575
  else:
2550
- (data) = self.cluster_service_get_machine_with_http_info(cluster_id, id, **kwargs) # noqa: E501
2576
+ (data) = self.cluster_service_get_cluster_health_with_http_info(id, **kwargs) # noqa: E501
2551
2577
  return data
2552
2578
 
2553
- def cluster_service_get_machine_with_http_info(self, cluster_id: 'str', id: 'str', **kwargs) -> 'V1GetMachineResponse': # noqa: E501
2554
- """Get a machine by ID # noqa: E501
2579
+ def cluster_service_get_cluster_health_with_http_info(self, id: 'str', **kwargs) -> 'V1GetClusterHealthResponse': # noqa: E501
2580
+ """cluster_service_get_cluster_health # noqa: E501
2555
2581
 
2556
2582
  This method makes a synchronous HTTP request by default. To make an
2557
2583
  asynchronous HTTP request, please pass async_req=True
2558
- >>> thread = api.cluster_service_get_machine_with_http_info(cluster_id, id, async_req=True)
2584
+ >>> thread = api.cluster_service_get_cluster_health_with_http_info(id, async_req=True)
2559
2585
  >>> result = thread.get()
2560
2586
 
2561
2587
  :param async_req bool
2562
- :param str cluster_id: (required)
2563
2588
  :param str id: (required)
2564
- :param str org_id:
2565
- :return: V1GetMachineResponse
2589
+ :return: V1GetClusterHealthResponse
2566
2590
  If the method is called asynchronously,
2567
2591
  returns the request thread.
2568
2592
  """
2569
2593
 
2570
- all_params = ['cluster_id', 'id', 'org_id'] # noqa: E501
2594
+ all_params = ['id'] # noqa: E501
2571
2595
  all_params.append('async_req')
2572
2596
  all_params.append('_return_http_data_only')
2573
2597
  all_params.append('_preload_content')
@@ -2578,30 +2602,22 @@ class ClusterServiceApi(object):
2578
2602
  if key not in all_params:
2579
2603
  raise TypeError(
2580
2604
  "Got an unexpected keyword argument '%s'"
2581
- " to method cluster_service_get_machine" % key
2605
+ " to method cluster_service_get_cluster_health" % key
2582
2606
  )
2583
2607
  params[key] = val
2584
2608
  del params['kwargs']
2585
- # verify the required parameter 'cluster_id' is set
2586
- if ('cluster_id' not in params or
2587
- params['cluster_id'] is None):
2588
- raise ValueError("Missing the required parameter `cluster_id` when calling `cluster_service_get_machine`") # noqa: E501
2589
2609
  # verify the required parameter 'id' is set
2590
2610
  if ('id' not in params or
2591
2611
  params['id'] is None):
2592
- raise ValueError("Missing the required parameter `id` when calling `cluster_service_get_machine`") # noqa: E501
2612
+ raise ValueError("Missing the required parameter `id` when calling `cluster_service_get_cluster_health`") # noqa: E501
2593
2613
 
2594
2614
  collection_formats = {}
2595
2615
 
2596
2616
  path_params = {}
2597
- if 'cluster_id' in params:
2598
- path_params['clusterId'] = params['cluster_id'] # noqa: E501
2599
2617
  if 'id' in params:
2600
2618
  path_params['id'] = params['id'] # noqa: E501
2601
2619
 
2602
2620
  query_params = []
2603
- if 'org_id' in params:
2604
- query_params.append(('orgId', params['org_id'])) # noqa: E501
2605
2621
 
2606
2622
  header_params = {}
2607
2623
 
@@ -2617,14 +2633,14 @@ class ClusterServiceApi(object):
2617
2633
  auth_settings = [] # noqa: E501
2618
2634
 
2619
2635
  return self.api_client.call_api(
2620
- '/v1/core/clusters/{clusterId}/machines/{id}', 'GET',
2636
+ '/v1/core/clusters/{id}/health', 'GET',
2621
2637
  path_params,
2622
2638
  query_params,
2623
2639
  header_params,
2624
2640
  body=body_params,
2625
2641
  post_params=form_params,
2626
2642
  files=local_var_files,
2627
- response_type='V1GetMachineResponse', # noqa: E501
2643
+ response_type='V1GetClusterHealthResponse', # noqa: E501
2628
2644
  auth_settings=auth_settings,
2629
2645
  async_req=params.get('async_req'),
2630
2646
  _return_http_data_only=params.get('_return_http_data_only'),
@@ -3032,20 +3048,26 @@ class ClusterServiceApi(object):
3032
3048
  _request_timeout=params.get('_request_timeout'),
3033
3049
  collection_formats=collection_formats)
3034
3050
 
3035
- def cluster_service_list_cluster_capacity_reservations(self, project_id: 'str', cluster_id: 'str', **kwargs) -> 'V1ListClusterCapacityReservationsResponse': # noqa: E501
3051
+ def cluster_service_list_cluster_capacity_reservations(self, org_id: 'str', cluster_id: 'str', **kwargs) -> 'V1ListClusterCapacityReservationsResponse': # noqa: E501
3036
3052
  """cluster_service_list_cluster_capacity_reservations # noqa: E501
3037
3053
 
3038
3054
  This method makes a synchronous HTTP request by default. To make an
3039
3055
  asynchronous HTTP request, please pass async_req=True
3040
- >>> thread = api.cluster_service_list_cluster_capacity_reservations(project_id, cluster_id, async_req=True)
3056
+ >>> thread = api.cluster_service_list_cluster_capacity_reservations(org_id, cluster_id, async_req=True)
3041
3057
  >>> result = thread.get()
3042
3058
 
3043
3059
  :param async_req bool
3044
- :param str project_id: (required)
3060
+ :param str org_id: (required)
3045
3061
  :param str cluster_id: (required)
3062
+ :param str project_id:
3046
3063
  :param datetime start_time:
3047
3064
  :param datetime end_time:
3048
3065
  :param bool available_only:
3066
+ :param str region:
3067
+ :param str zone:
3068
+ :param str instance_type:
3069
+ :param bool include_all:
3070
+ :param bool find_used_by: whether to find which cloudspace_ids and jobs_ids are using the reservations
3049
3071
  :param bool from_aggregate:
3050
3072
  :param str apparent_provider: only required if from aggregate, storage.providertype (eg `lightningaggregate`)
3051
3073
  :return: V1ListClusterCapacityReservationsResponse
@@ -3054,25 +3076,31 @@ class ClusterServiceApi(object):
3054
3076
  """
3055
3077
  kwargs['_return_http_data_only'] = True
3056
3078
  if kwargs.get('async_req'):
3057
- return self.cluster_service_list_cluster_capacity_reservations_with_http_info(project_id, cluster_id, **kwargs) # noqa: E501
3079
+ return self.cluster_service_list_cluster_capacity_reservations_with_http_info(org_id, cluster_id, **kwargs) # noqa: E501
3058
3080
  else:
3059
- (data) = self.cluster_service_list_cluster_capacity_reservations_with_http_info(project_id, cluster_id, **kwargs) # noqa: E501
3081
+ (data) = self.cluster_service_list_cluster_capacity_reservations_with_http_info(org_id, cluster_id, **kwargs) # noqa: E501
3060
3082
  return data
3061
3083
 
3062
- def cluster_service_list_cluster_capacity_reservations_with_http_info(self, project_id: 'str', cluster_id: 'str', **kwargs) -> 'V1ListClusterCapacityReservationsResponse': # noqa: E501
3084
+ def cluster_service_list_cluster_capacity_reservations_with_http_info(self, org_id: 'str', cluster_id: 'str', **kwargs) -> 'V1ListClusterCapacityReservationsResponse': # noqa: E501
3063
3085
  """cluster_service_list_cluster_capacity_reservations # noqa: E501
3064
3086
 
3065
3087
  This method makes a synchronous HTTP request by default. To make an
3066
3088
  asynchronous HTTP request, please pass async_req=True
3067
- >>> thread = api.cluster_service_list_cluster_capacity_reservations_with_http_info(project_id, cluster_id, async_req=True)
3089
+ >>> thread = api.cluster_service_list_cluster_capacity_reservations_with_http_info(org_id, cluster_id, async_req=True)
3068
3090
  >>> result = thread.get()
3069
3091
 
3070
3092
  :param async_req bool
3071
- :param str project_id: (required)
3093
+ :param str org_id: (required)
3072
3094
  :param str cluster_id: (required)
3095
+ :param str project_id:
3073
3096
  :param datetime start_time:
3074
3097
  :param datetime end_time:
3075
3098
  :param bool available_only:
3099
+ :param str region:
3100
+ :param str zone:
3101
+ :param str instance_type:
3102
+ :param bool include_all:
3103
+ :param bool find_used_by: whether to find which cloudspace_ids and jobs_ids are using the reservations
3076
3104
  :param bool from_aggregate:
3077
3105
  :param str apparent_provider: only required if from aggregate, storage.providertype (eg `lightningaggregate`)
3078
3106
  :return: V1ListClusterCapacityReservationsResponse
@@ -3080,7 +3108,7 @@ class ClusterServiceApi(object):
3080
3108
  returns the request thread.
3081
3109
  """
3082
3110
 
3083
- all_params = ['project_id', 'cluster_id', 'start_time', 'end_time', 'available_only', 'from_aggregate', 'apparent_provider'] # noqa: E501
3111
+ all_params = ['org_id', 'cluster_id', 'project_id', 'start_time', 'end_time', 'available_only', 'region', 'zone', 'instance_type', 'include_all', 'find_used_by', 'from_aggregate', 'apparent_provider'] # noqa: E501
3084
3112
  all_params.append('async_req')
3085
3113
  all_params.append('_return_http_data_only')
3086
3114
  all_params.append('_preload_content')
@@ -3095,10 +3123,10 @@ class ClusterServiceApi(object):
3095
3123
  )
3096
3124
  params[key] = val
3097
3125
  del params['kwargs']
3098
- # verify the required parameter 'project_id' is set
3099
- if ('project_id' not in params or
3100
- params['project_id'] is None):
3101
- raise ValueError("Missing the required parameter `project_id` when calling `cluster_service_list_cluster_capacity_reservations`") # noqa: E501
3126
+ # verify the required parameter 'org_id' is set
3127
+ if ('org_id' not in params or
3128
+ params['org_id'] is None):
3129
+ raise ValueError("Missing the required parameter `org_id` when calling `cluster_service_list_cluster_capacity_reservations`") # noqa: E501
3102
3130
  # verify the required parameter 'cluster_id' is set
3103
3131
  if ('cluster_id' not in params or
3104
3132
  params['cluster_id'] is None):
@@ -3107,18 +3135,30 @@ class ClusterServiceApi(object):
3107
3135
  collection_formats = {}
3108
3136
 
3109
3137
  path_params = {}
3110
- if 'project_id' in params:
3111
- path_params['projectId'] = params['project_id'] # noqa: E501
3138
+ if 'org_id' in params:
3139
+ path_params['orgId'] = params['org_id'] # noqa: E501
3112
3140
  if 'cluster_id' in params:
3113
3141
  path_params['clusterId'] = params['cluster_id'] # noqa: E501
3114
3142
 
3115
3143
  query_params = []
3144
+ if 'project_id' in params:
3145
+ query_params.append(('projectId', params['project_id'])) # noqa: E501
3116
3146
  if 'start_time' in params:
3117
3147
  query_params.append(('startTime', params['start_time'])) # noqa: E501
3118
3148
  if 'end_time' in params:
3119
3149
  query_params.append(('endTime', params['end_time'])) # noqa: E501
3120
3150
  if 'available_only' in params:
3121
3151
  query_params.append(('availableOnly', params['available_only'])) # noqa: E501
3152
+ if 'region' in params:
3153
+ query_params.append(('region', params['region'])) # noqa: E501
3154
+ if 'zone' in params:
3155
+ query_params.append(('zone', params['zone'])) # noqa: E501
3156
+ if 'instance_type' in params:
3157
+ query_params.append(('instanceType', params['instance_type'])) # noqa: E501
3158
+ if 'include_all' in params:
3159
+ query_params.append(('includeAll', params['include_all'])) # noqa: E501
3160
+ if 'find_used_by' in params:
3161
+ query_params.append(('findUsedBy', params['find_used_by'])) # noqa: E501
3122
3162
  if 'from_aggregate' in params:
3123
3163
  query_params.append(('fromAggregate', params['from_aggregate'])) # noqa: E501
3124
3164
  if 'apparent_provider' in params:
@@ -3138,7 +3178,7 @@ class ClusterServiceApi(object):
3138
3178
  auth_settings = [] # noqa: E501
3139
3179
 
3140
3180
  return self.api_client.call_api(
3141
- '/v1/projects/{projectId}/clusters/{clusterId}/capacity-reservations', 'GET',
3181
+ '/v1/orgs/{orgId}/clusters/{clusterId}/capacity-reservations', 'GET',
3142
3182
  path_params,
3143
3183
  query_params,
3144
3184
  header_params,
@@ -3444,99 +3484,6 @@ class ClusterServiceApi(object):
3444
3484
  _request_timeout=params.get('_request_timeout'),
3445
3485
  collection_formats=collection_formats)
3446
3486
 
3447
- def cluster_service_list_container_registries(self, cluster_id: 'str', **kwargs) -> 'V1ListContainerRegistriesResponse': # noqa: E501
3448
- """List all container registries configured for a cluster # noqa: E501
3449
-
3450
- This method makes a synchronous HTTP request by default. To make an
3451
- asynchronous HTTP request, please pass async_req=True
3452
- >>> thread = api.cluster_service_list_container_registries(cluster_id, async_req=True)
3453
- >>> result = thread.get()
3454
-
3455
- :param async_req bool
3456
- :param str cluster_id: (required)
3457
- :return: V1ListContainerRegistriesResponse
3458
- If the method is called asynchronously,
3459
- returns the request thread.
3460
- """
3461
- kwargs['_return_http_data_only'] = True
3462
- if kwargs.get('async_req'):
3463
- return self.cluster_service_list_container_registries_with_http_info(cluster_id, **kwargs) # noqa: E501
3464
- else:
3465
- (data) = self.cluster_service_list_container_registries_with_http_info(cluster_id, **kwargs) # noqa: E501
3466
- return data
3467
-
3468
- def cluster_service_list_container_registries_with_http_info(self, cluster_id: 'str', **kwargs) -> 'V1ListContainerRegistriesResponse': # noqa: E501
3469
- """List all container registries configured for a cluster # noqa: E501
3470
-
3471
- This method makes a synchronous HTTP request by default. To make an
3472
- asynchronous HTTP request, please pass async_req=True
3473
- >>> thread = api.cluster_service_list_container_registries_with_http_info(cluster_id, async_req=True)
3474
- >>> result = thread.get()
3475
-
3476
- :param async_req bool
3477
- :param str cluster_id: (required)
3478
- :return: V1ListContainerRegistriesResponse
3479
- If the method is called asynchronously,
3480
- returns the request thread.
3481
- """
3482
-
3483
- all_params = ['cluster_id'] # noqa: E501
3484
- all_params.append('async_req')
3485
- all_params.append('_return_http_data_only')
3486
- all_params.append('_preload_content')
3487
- all_params.append('_request_timeout')
3488
-
3489
- params = locals()
3490
- for key, val in six.iteritems(params['kwargs']):
3491
- if key not in all_params:
3492
- raise TypeError(
3493
- "Got an unexpected keyword argument '%s'"
3494
- " to method cluster_service_list_container_registries" % key
3495
- )
3496
- params[key] = val
3497
- del params['kwargs']
3498
- # verify the required parameter 'cluster_id' is set
3499
- if ('cluster_id' not in params or
3500
- params['cluster_id'] is None):
3501
- raise ValueError("Missing the required parameter `cluster_id` when calling `cluster_service_list_container_registries`") # noqa: E501
3502
-
3503
- collection_formats = {}
3504
-
3505
- path_params = {}
3506
- if 'cluster_id' in params:
3507
- path_params['clusterId'] = params['cluster_id'] # noqa: E501
3508
-
3509
- query_params = []
3510
-
3511
- header_params = {}
3512
-
3513
- form_params = []
3514
- local_var_files = {}
3515
-
3516
- body_params = None
3517
- # HTTP header `Accept`
3518
- header_params['Accept'] = self.api_client.select_header_accept(
3519
- ['application/json']) # noqa: E501
3520
-
3521
- # Authentication setting
3522
- auth_settings = [] # noqa: E501
3523
-
3524
- return self.api_client.call_api(
3525
- '/v1/clusters/{clusterId}/container-registries', 'GET',
3526
- path_params,
3527
- query_params,
3528
- header_params,
3529
- body=body_params,
3530
- post_params=form_params,
3531
- files=local_var_files,
3532
- response_type='V1ListContainerRegistriesResponse', # noqa: E501
3533
- auth_settings=auth_settings,
3534
- async_req=params.get('async_req'),
3535
- _return_http_data_only=params.get('_return_http_data_only'),
3536
- _preload_content=params.get('_preload_content', True),
3537
- _request_timeout=params.get('_request_timeout'),
3538
- collection_formats=collection_formats)
3539
-
3540
3487
  def cluster_service_list_default_cluster_accelerators(self, **kwargs) -> 'V1ListDefaultClusterAcceleratorsResponse': # noqa: E501
3541
3488
  """cluster_service_list_default_cluster_accelerators # noqa: E501
3542
3489
 
@@ -4139,45 +4086,47 @@ class ClusterServiceApi(object):
4139
4086
  _request_timeout=params.get('_request_timeout'),
4140
4087
  collection_formats=collection_formats)
4141
4088
 
4142
- def cluster_service_refresh_container_registry_credentials(self, body: 'ClusterServiceRefreshContainerRegistryCredentialsBody', cluster_id: 'str', **kwargs) -> 'V1RefreshContainerRegistryCredentialsResponse': # noqa: E501
4143
- """Refresh credentials for container registries and deploy to cluster # noqa: E501
4089
+ def cluster_service_report_machine_system_metrics(self, body: 'ClusterServiceReportMachineSystemMetricsBody', cluster_id: 'str', machine_id: 'str', **kwargs) -> 'V1ReportMachineSystemMetricsResponse': # noqa: E501
4090
+ """cluster_service_report_machine_system_metrics # noqa: E501
4144
4091
 
4145
4092
  This method makes a synchronous HTTP request by default. To make an
4146
4093
  asynchronous HTTP request, please pass async_req=True
4147
- >>> thread = api.cluster_service_refresh_container_registry_credentials(body, cluster_id, async_req=True)
4094
+ >>> thread = api.cluster_service_report_machine_system_metrics(body, cluster_id, machine_id, async_req=True)
4148
4095
  >>> result = thread.get()
4149
4096
 
4150
4097
  :param async_req bool
4151
- :param ClusterServiceRefreshContainerRegistryCredentialsBody body: (required)
4098
+ :param ClusterServiceReportMachineSystemMetricsBody body: (required)
4152
4099
  :param str cluster_id: (required)
4153
- :return: V1RefreshContainerRegistryCredentialsResponse
4100
+ :param str machine_id: (required)
4101
+ :return: V1ReportMachineSystemMetricsResponse
4154
4102
  If the method is called asynchronously,
4155
4103
  returns the request thread.
4156
4104
  """
4157
4105
  kwargs['_return_http_data_only'] = True
4158
4106
  if kwargs.get('async_req'):
4159
- return self.cluster_service_refresh_container_registry_credentials_with_http_info(body, cluster_id, **kwargs) # noqa: E501
4107
+ return self.cluster_service_report_machine_system_metrics_with_http_info(body, cluster_id, machine_id, **kwargs) # noqa: E501
4160
4108
  else:
4161
- (data) = self.cluster_service_refresh_container_registry_credentials_with_http_info(body, cluster_id, **kwargs) # noqa: E501
4109
+ (data) = self.cluster_service_report_machine_system_metrics_with_http_info(body, cluster_id, machine_id, **kwargs) # noqa: E501
4162
4110
  return data
4163
4111
 
4164
- def cluster_service_refresh_container_registry_credentials_with_http_info(self, body: 'ClusterServiceRefreshContainerRegistryCredentialsBody', cluster_id: 'str', **kwargs) -> 'V1RefreshContainerRegistryCredentialsResponse': # noqa: E501
4165
- """Refresh credentials for container registries and deploy to cluster # noqa: E501
4112
+ def cluster_service_report_machine_system_metrics_with_http_info(self, body: 'ClusterServiceReportMachineSystemMetricsBody', cluster_id: 'str', machine_id: 'str', **kwargs) -> 'V1ReportMachineSystemMetricsResponse': # noqa: E501
4113
+ """cluster_service_report_machine_system_metrics # noqa: E501
4166
4114
 
4167
4115
  This method makes a synchronous HTTP request by default. To make an
4168
4116
  asynchronous HTTP request, please pass async_req=True
4169
- >>> thread = api.cluster_service_refresh_container_registry_credentials_with_http_info(body, cluster_id, async_req=True)
4117
+ >>> thread = api.cluster_service_report_machine_system_metrics_with_http_info(body, cluster_id, machine_id, async_req=True)
4170
4118
  >>> result = thread.get()
4171
4119
 
4172
4120
  :param async_req bool
4173
- :param ClusterServiceRefreshContainerRegistryCredentialsBody body: (required)
4121
+ :param ClusterServiceReportMachineSystemMetricsBody body: (required)
4174
4122
  :param str cluster_id: (required)
4175
- :return: V1RefreshContainerRegistryCredentialsResponse
4123
+ :param str machine_id: (required)
4124
+ :return: V1ReportMachineSystemMetricsResponse
4176
4125
  If the method is called asynchronously,
4177
4126
  returns the request thread.
4178
4127
  """
4179
4128
 
4180
- all_params = ['body', 'cluster_id'] # noqa: E501
4129
+ all_params = ['body', 'cluster_id', 'machine_id'] # noqa: E501
4181
4130
  all_params.append('async_req')
4182
4131
  all_params.append('_return_http_data_only')
4183
4132
  all_params.append('_preload_content')
@@ -4188,24 +4137,30 @@ class ClusterServiceApi(object):
4188
4137
  if key not in all_params:
4189
4138
  raise TypeError(
4190
4139
  "Got an unexpected keyword argument '%s'"
4191
- " to method cluster_service_refresh_container_registry_credentials" % key
4140
+ " to method cluster_service_report_machine_system_metrics" % key
4192
4141
  )
4193
4142
  params[key] = val
4194
4143
  del params['kwargs']
4195
4144
  # verify the required parameter 'body' is set
4196
4145
  if ('body' not in params or
4197
4146
  params['body'] is None):
4198
- raise ValueError("Missing the required parameter `body` when calling `cluster_service_refresh_container_registry_credentials`") # noqa: E501
4147
+ raise ValueError("Missing the required parameter `body` when calling `cluster_service_report_machine_system_metrics`") # noqa: E501
4199
4148
  # verify the required parameter 'cluster_id' is set
4200
4149
  if ('cluster_id' not in params or
4201
4150
  params['cluster_id'] is None):
4202
- raise ValueError("Missing the required parameter `cluster_id` when calling `cluster_service_refresh_container_registry_credentials`") # noqa: E501
4151
+ raise ValueError("Missing the required parameter `cluster_id` when calling `cluster_service_report_machine_system_metrics`") # noqa: E501
4152
+ # verify the required parameter 'machine_id' is set
4153
+ if ('machine_id' not in params or
4154
+ params['machine_id'] is None):
4155
+ raise ValueError("Missing the required parameter `machine_id` when calling `cluster_service_report_machine_system_metrics`") # noqa: E501
4203
4156
 
4204
4157
  collection_formats = {}
4205
4158
 
4206
4159
  path_params = {}
4207
4160
  if 'cluster_id' in params:
4208
4161
  path_params['clusterId'] = params['cluster_id'] # noqa: E501
4162
+ if 'machine_id' in params:
4163
+ path_params['machineId'] = params['machine_id'] # noqa: E501
4209
4164
 
4210
4165
  query_params = []
4211
4166
 
@@ -4229,14 +4184,14 @@ class ClusterServiceApi(object):
4229
4184
  auth_settings = [] # noqa: E501
4230
4185
 
4231
4186
  return self.api_client.call_api(
4232
- '/v1/clusters/{clusterId}/container-registries/refresh-credentials', 'POST',
4187
+ '/v1/core/clusters/{clusterId}/machines/{machineId}/system-metrics', 'POST',
4233
4188
  path_params,
4234
4189
  query_params,
4235
4190
  header_params,
4236
4191
  body=body_params,
4237
4192
  post_params=form_params,
4238
4193
  files=local_var_files,
4239
- response_type='V1RefreshContainerRegistryCredentialsResponse', # noqa: E501
4194
+ response_type='V1ReportMachineSystemMetricsResponse', # noqa: E501
4240
4195
  auth_settings=auth_settings,
4241
4196
  async_req=params.get('async_req'),
4242
4197
  _return_http_data_only=params.get('_return_http_data_only'),
@@ -5176,116 +5131,3 @@ class ClusterServiceApi(object):
5176
5131
  _preload_content=params.get('_preload_content', True),
5177
5132
  _request_timeout=params.get('_request_timeout'),
5178
5133
  collection_formats=collection_formats)
5179
-
5180
- def cluster_service_validate_container_registry(self, body: 'ClusterServiceValidateContainerRegistryBody', cluster_id: 'str', registry_id: 'str', **kwargs) -> 'V1ValidateContainerRegistryResponse': # noqa: E501
5181
- """Validate that Lightning can pull from a container registry # noqa: E501
5182
-
5183
- This method makes a synchronous HTTP request by default. To make an
5184
- asynchronous HTTP request, please pass async_req=True
5185
- >>> thread = api.cluster_service_validate_container_registry(body, cluster_id, registry_id, async_req=True)
5186
- >>> result = thread.get()
5187
-
5188
- :param async_req bool
5189
- :param ClusterServiceValidateContainerRegistryBody body: (required)
5190
- :param str cluster_id: (required)
5191
- :param str registry_id: (required)
5192
- :return: V1ValidateContainerRegistryResponse
5193
- If the method is called asynchronously,
5194
- returns the request thread.
5195
- """
5196
- kwargs['_return_http_data_only'] = True
5197
- if kwargs.get('async_req'):
5198
- return self.cluster_service_validate_container_registry_with_http_info(body, cluster_id, registry_id, **kwargs) # noqa: E501
5199
- else:
5200
- (data) = self.cluster_service_validate_container_registry_with_http_info(body, cluster_id, registry_id, **kwargs) # noqa: E501
5201
- return data
5202
-
5203
- def cluster_service_validate_container_registry_with_http_info(self, body: 'ClusterServiceValidateContainerRegistryBody', cluster_id: 'str', registry_id: 'str', **kwargs) -> 'V1ValidateContainerRegistryResponse': # noqa: E501
5204
- """Validate that Lightning can pull from a container registry # noqa: E501
5205
-
5206
- This method makes a synchronous HTTP request by default. To make an
5207
- asynchronous HTTP request, please pass async_req=True
5208
- >>> thread = api.cluster_service_validate_container_registry_with_http_info(body, cluster_id, registry_id, async_req=True)
5209
- >>> result = thread.get()
5210
-
5211
- :param async_req bool
5212
- :param ClusterServiceValidateContainerRegistryBody body: (required)
5213
- :param str cluster_id: (required)
5214
- :param str registry_id: (required)
5215
- :return: V1ValidateContainerRegistryResponse
5216
- If the method is called asynchronously,
5217
- returns the request thread.
5218
- """
5219
-
5220
- all_params = ['body', 'cluster_id', 'registry_id'] # noqa: E501
5221
- all_params.append('async_req')
5222
- all_params.append('_return_http_data_only')
5223
- all_params.append('_preload_content')
5224
- all_params.append('_request_timeout')
5225
-
5226
- params = locals()
5227
- for key, val in six.iteritems(params['kwargs']):
5228
- if key not in all_params:
5229
- raise TypeError(
5230
- "Got an unexpected keyword argument '%s'"
5231
- " to method cluster_service_validate_container_registry" % key
5232
- )
5233
- params[key] = val
5234
- del params['kwargs']
5235
- # verify the required parameter 'body' is set
5236
- if ('body' not in params or
5237
- params['body'] is None):
5238
- raise ValueError("Missing the required parameter `body` when calling `cluster_service_validate_container_registry`") # noqa: E501
5239
- # verify the required parameter 'cluster_id' is set
5240
- if ('cluster_id' not in params or
5241
- params['cluster_id'] is None):
5242
- raise ValueError("Missing the required parameter `cluster_id` when calling `cluster_service_validate_container_registry`") # noqa: E501
5243
- # verify the required parameter 'registry_id' is set
5244
- if ('registry_id' not in params or
5245
- params['registry_id'] is None):
5246
- raise ValueError("Missing the required parameter `registry_id` when calling `cluster_service_validate_container_registry`") # noqa: E501
5247
-
5248
- collection_formats = {}
5249
-
5250
- path_params = {}
5251
- if 'cluster_id' in params:
5252
- path_params['clusterId'] = params['cluster_id'] # noqa: E501
5253
- if 'registry_id' in params:
5254
- path_params['registryId'] = params['registry_id'] # noqa: E501
5255
-
5256
- query_params = []
5257
-
5258
- header_params = {}
5259
-
5260
- form_params = []
5261
- local_var_files = {}
5262
-
5263
- body_params = None
5264
- if 'body' in params:
5265
- body_params = params['body']
5266
- # HTTP header `Accept`
5267
- header_params['Accept'] = self.api_client.select_header_accept(
5268
- ['application/json']) # noqa: E501
5269
-
5270
- # HTTP header `Content-Type`
5271
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
5272
- ['application/json']) # noqa: E501
5273
-
5274
- # Authentication setting
5275
- auth_settings = [] # noqa: E501
5276
-
5277
- return self.api_client.call_api(
5278
- '/v1/clusters/{clusterId}/container-registries/{registryId}/validate', 'POST',
5279
- path_params,
5280
- query_params,
5281
- header_params,
5282
- body=body_params,
5283
- post_params=form_params,
5284
- files=local_var_files,
5285
- response_type='V1ValidateContainerRegistryResponse', # noqa: E501
5286
- auth_settings=auth_settings,
5287
- async_req=params.get('async_req'),
5288
- _return_http_data_only=params.get('_return_http_data_only'),
5289
- _preload_content=params.get('_preload_content', True),
5290
- _request_timeout=params.get('_request_timeout'),
5291
- collection_formats=collection_formats)