lightning-sdk 2026.1.22__py3-none-any.whl → 2026.1.30__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/__version__.py +1 -1
- lightning_sdk/api/studio_api.py +38 -39
- lightning_sdk/api/teamspace_api.py +189 -72
- lightning_sdk/api/utils.py +69 -1
- lightning_sdk/cli/cp/__init__.py +14 -11
- lightning_sdk/cli/cp/teamspace_uploads.py +95 -0
- lightning_sdk/cli/legacy/download.py +29 -98
- lightning_sdk/cli/legacy/upload.py +24 -31
- lightning_sdk/cli/studio/cp.py +8 -5
- lightning_sdk/cli/studio/ls.py +1 -1
- lightning_sdk/cli/studio/rm.py +1 -1
- lightning_sdk/cli/utils/{studio_filesystem.py → filesystem.py} +49 -6
- lightning_sdk/exceptions.py +27 -0
- lightning_sdk/lightning_cloud/openapi/__init__.py +17 -12
- lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +5 -1
- lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +286 -468
- lightning_sdk/lightning_cloud/openapi/api/container_registry_service_api.py +579 -0
- lightning_sdk/lightning_cloud/openapi/api/data_connection_service_api.py +5 -1
- lightning_sdk/lightning_cloud/openapi/api/file_system_service_api.py +11 -11
- lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +113 -0
- lightning_sdk/lightning_cloud/openapi/api/organizations_service_api.py +113 -0
- lightning_sdk/lightning_cloud/openapi/api/storage_service_api.py +5 -1
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +16 -12
- lightning_sdk/lightning_cloud/openapi/models/{cluster_service_refresh_container_registry_credentials_body.py → cluster_service_get_cluster_capacity_reservation_body.py} +6 -6
- lightning_sdk/lightning_cloud/openapi/models/{v1_container_registry_integration.py → container_registry_config_ecr.py} +49 -23
- lightning_sdk/lightning_cloud/openapi/models/{v1_container_registry_status.py → container_registry_provider.py} +14 -10
- lightning_sdk/lightning_cloud/openapi/models/container_registry_service_create_container_registry_body.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_ecr_registry_config_input.py → container_registry_service_refresh_container_registry_credentials_body.py} +21 -21
- lightning_sdk/lightning_cloud/openapi/models/jobs_service_duplicate_deployment_body.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/organizations_service_update_org_role_body.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_provider.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_capacity_reservation.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_container_registry.py +63 -89
- lightning_sdk/lightning_cloud/openapi/models/{cluster_service_add_container_registry_body.py → v1_container_registry_config.py} +16 -16
- lightning_sdk/lightning_cloud/openapi/models/{v1_validate_container_registry_response.py → v1_container_registry_scopes.py} +39 -39
- lightning_sdk/lightning_cloud/openapi/models/{cluster_service_validate_container_registry_body.py → v1_create_container_registry_response.py} +6 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_org_cluster_capacity_reservation_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_describe_org_cluster_capacity_reservation_response.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_generic_job_spec.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/{v1_add_container_registry_response.py → v1_get_cluster_capacity_reservation_response.py} +23 -23
- lightning_sdk/lightning_cloud/openapi/models/v1_job.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_v1.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_list_container_registries_response.py +6 -6
- lightning_sdk/lightning_cloud/openapi/models/{v1_ecr_registry_config.py → v1_mithril_direct_v1.py} +51 -51
- lightning_sdk/lightning_cloud/openapi/models/v1_refresh_container_registry_credentials_response.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_slack_notifier.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_update_container_registry_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +53 -105
- lightning_sdk/lightning_cloud/openapi/rest.py +2 -2
- lightning_sdk/teamspace.py +28 -7
- {lightning_sdk-2026.1.22.dist-info → lightning_sdk-2026.1.30.dist-info}/METADATA +1 -1
- {lightning_sdk-2026.1.22.dist-info → lightning_sdk-2026.1.30.dist-info}/RECORD +59 -53
- lightning_sdk/lightning_cloud/openapi/models/v1_container_registry_info.py +0 -281
- lightning_sdk/lightning_cloud/openapi/models/v1_ecr_registry_details.py +0 -201
- /lightning_sdk/lightning_cloud/openapi/models/{v1_list_filesystem_mmts_response.py → v1_list_filesystem_mm_ts_response.py} +0 -0
- {lightning_sdk-2026.1.22.dist-info → lightning_sdk-2026.1.30.dist-info}/LICENSE +0 -0
- {lightning_sdk-2026.1.22.dist-info → lightning_sdk-2026.1.30.dist-info}/WHEEL +0 -0
- {lightning_sdk-2026.1.22.dist-info → lightning_sdk-2026.1.30.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-2026.1.22.dist-info → lightning_sdk-2026.1.30.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
|
|
|
@@ -1715,45 +1610,47 @@ class ClusterServiceApi(object):
|
|
|
1715
1610
|
_request_timeout=params.get('_request_timeout'),
|
|
1716
1611
|
collection_formats=collection_formats)
|
|
1717
1612
|
|
|
1718
|
-
def
|
|
1719
|
-
"""Delete a
|
|
1613
|
+
def cluster_service_delete_machine(self, cluster_id: 'str', id: 'str', **kwargs) -> 'V1DeleteMachineResponse': # noqa: E501
|
|
1614
|
+
"""Delete a machine # noqa: E501
|
|
1720
1615
|
|
|
1721
1616
|
This method makes a synchronous HTTP request by default. To make an
|
|
1722
1617
|
asynchronous HTTP request, please pass async_req=True
|
|
1723
|
-
>>> thread = api.
|
|
1618
|
+
>>> thread = api.cluster_service_delete_machine(cluster_id, id, async_req=True)
|
|
1724
1619
|
>>> result = thread.get()
|
|
1725
1620
|
|
|
1726
1621
|
:param async_req bool
|
|
1727
1622
|
:param str cluster_id: (required)
|
|
1728
|
-
:param str
|
|
1729
|
-
:
|
|
1623
|
+
:param str id: (required)
|
|
1624
|
+
:param str org_id:
|
|
1625
|
+
:return: V1DeleteMachineResponse
|
|
1730
1626
|
If the method is called asynchronously,
|
|
1731
1627
|
returns the request thread.
|
|
1732
1628
|
"""
|
|
1733
1629
|
kwargs['_return_http_data_only'] = True
|
|
1734
1630
|
if kwargs.get('async_req'):
|
|
1735
|
-
return self.
|
|
1631
|
+
return self.cluster_service_delete_machine_with_http_info(cluster_id, id, **kwargs) # noqa: E501
|
|
1736
1632
|
else:
|
|
1737
|
-
(data) = self.
|
|
1633
|
+
(data) = self.cluster_service_delete_machine_with_http_info(cluster_id, id, **kwargs) # noqa: E501
|
|
1738
1634
|
return data
|
|
1739
1635
|
|
|
1740
|
-
def
|
|
1741
|
-
"""Delete a
|
|
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
|
|
1742
1638
|
|
|
1743
1639
|
This method makes a synchronous HTTP request by default. To make an
|
|
1744
1640
|
asynchronous HTTP request, please pass async_req=True
|
|
1745
|
-
>>> thread = api.
|
|
1641
|
+
>>> thread = api.cluster_service_delete_machine_with_http_info(cluster_id, id, async_req=True)
|
|
1746
1642
|
>>> result = thread.get()
|
|
1747
1643
|
|
|
1748
1644
|
:param async_req bool
|
|
1749
1645
|
:param str cluster_id: (required)
|
|
1750
|
-
:param str
|
|
1751
|
-
:
|
|
1646
|
+
:param str id: (required)
|
|
1647
|
+
:param str org_id:
|
|
1648
|
+
:return: V1DeleteMachineResponse
|
|
1752
1649
|
If the method is called asynchronously,
|
|
1753
1650
|
returns the request thread.
|
|
1754
1651
|
"""
|
|
1755
1652
|
|
|
1756
|
-
all_params = ['cluster_id', '
|
|
1653
|
+
all_params = ['cluster_id', 'id', 'org_id'] # noqa: E501
|
|
1757
1654
|
all_params.append('async_req')
|
|
1758
1655
|
all_params.append('_return_http_data_only')
|
|
1759
1656
|
all_params.append('_preload_content')
|
|
@@ -1764,28 +1661,30 @@ class ClusterServiceApi(object):
|
|
|
1764
1661
|
if key not in all_params:
|
|
1765
1662
|
raise TypeError(
|
|
1766
1663
|
"Got an unexpected keyword argument '%s'"
|
|
1767
|
-
" to method
|
|
1664
|
+
" to method cluster_service_delete_machine" % key
|
|
1768
1665
|
)
|
|
1769
1666
|
params[key] = val
|
|
1770
1667
|
del params['kwargs']
|
|
1771
1668
|
# verify the required parameter 'cluster_id' is set
|
|
1772
1669
|
if ('cluster_id' not in params or
|
|
1773
1670
|
params['cluster_id'] is None):
|
|
1774
|
-
raise ValueError("Missing the required parameter `cluster_id` when calling `
|
|
1775
|
-
# verify the required parameter '
|
|
1776
|
-
if ('
|
|
1777
|
-
params['
|
|
1778
|
-
raise ValueError("Missing the required parameter `
|
|
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
|
|
1779
1676
|
|
|
1780
1677
|
collection_formats = {}
|
|
1781
1678
|
|
|
1782
1679
|
path_params = {}
|
|
1783
1680
|
if 'cluster_id' in params:
|
|
1784
1681
|
path_params['clusterId'] = params['cluster_id'] # noqa: E501
|
|
1785
|
-
if '
|
|
1786
|
-
path_params['
|
|
1682
|
+
if 'id' in params:
|
|
1683
|
+
path_params['id'] = params['id'] # noqa: E501
|
|
1787
1684
|
|
|
1788
1685
|
query_params = []
|
|
1686
|
+
if 'org_id' in params:
|
|
1687
|
+
query_params.append(('orgId', params['org_id'])) # noqa: E501
|
|
1789
1688
|
|
|
1790
1689
|
header_params = {}
|
|
1791
1690
|
|
|
@@ -1801,14 +1700,14 @@ class ClusterServiceApi(object):
|
|
|
1801
1700
|
auth_settings = [] # noqa: E501
|
|
1802
1701
|
|
|
1803
1702
|
return self.api_client.call_api(
|
|
1804
|
-
'/v1/clusters/{clusterId}/
|
|
1703
|
+
'/v1/core/clusters/{clusterId}/machines/{id}', 'DELETE',
|
|
1805
1704
|
path_params,
|
|
1806
1705
|
query_params,
|
|
1807
1706
|
header_params,
|
|
1808
1707
|
body=body_params,
|
|
1809
1708
|
post_params=form_params,
|
|
1810
1709
|
files=local_var_files,
|
|
1811
|
-
response_type='
|
|
1710
|
+
response_type='V1DeleteMachineResponse', # noqa: E501
|
|
1812
1711
|
auth_settings=auth_settings,
|
|
1813
1712
|
async_req=params.get('async_req'),
|
|
1814
1713
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -1816,47 +1715,47 @@ class ClusterServiceApi(object):
|
|
|
1816
1715
|
_request_timeout=params.get('_request_timeout'),
|
|
1817
1716
|
collection_formats=collection_formats)
|
|
1818
1717
|
|
|
1819
|
-
def
|
|
1820
|
-
"""
|
|
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
|
|
1821
1720
|
|
|
1822
1721
|
This method makes a synchronous HTTP request by default. To make an
|
|
1823
1722
|
asynchronous HTTP request, please pass async_req=True
|
|
1824
|
-
>>> thread = api.
|
|
1723
|
+
>>> thread = api.cluster_service_delete_org_cluster_capacity_reservation(org_id, cluster_id, async_req=True)
|
|
1825
1724
|
>>> result = thread.get()
|
|
1826
1725
|
|
|
1827
1726
|
:param async_req bool
|
|
1727
|
+
:param str org_id: (required)
|
|
1828
1728
|
:param str cluster_id: (required)
|
|
1829
|
-
:param str id:
|
|
1830
|
-
:
|
|
1831
|
-
:return: V1DeleteMachineResponse
|
|
1729
|
+
:param str id:
|
|
1730
|
+
:return: V1DeleteOrgClusterCapacityReservationResponse
|
|
1832
1731
|
If the method is called asynchronously,
|
|
1833
1732
|
returns the request thread.
|
|
1834
1733
|
"""
|
|
1835
1734
|
kwargs['_return_http_data_only'] = True
|
|
1836
1735
|
if kwargs.get('async_req'):
|
|
1837
|
-
return self.
|
|
1736
|
+
return self.cluster_service_delete_org_cluster_capacity_reservation_with_http_info(org_id, cluster_id, **kwargs) # noqa: E501
|
|
1838
1737
|
else:
|
|
1839
|
-
(data) = self.
|
|
1738
|
+
(data) = self.cluster_service_delete_org_cluster_capacity_reservation_with_http_info(org_id, cluster_id, **kwargs) # noqa: E501
|
|
1840
1739
|
return data
|
|
1841
1740
|
|
|
1842
|
-
def
|
|
1843
|
-
"""
|
|
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
|
|
1844
1743
|
|
|
1845
1744
|
This method makes a synchronous HTTP request by default. To make an
|
|
1846
1745
|
asynchronous HTTP request, please pass async_req=True
|
|
1847
|
-
>>> thread = api.
|
|
1746
|
+
>>> thread = api.cluster_service_delete_org_cluster_capacity_reservation_with_http_info(org_id, cluster_id, async_req=True)
|
|
1848
1747
|
>>> result = thread.get()
|
|
1849
1748
|
|
|
1850
1749
|
:param async_req bool
|
|
1750
|
+
:param str org_id: (required)
|
|
1851
1751
|
:param str cluster_id: (required)
|
|
1852
|
-
:param str id:
|
|
1853
|
-
:
|
|
1854
|
-
:return: V1DeleteMachineResponse
|
|
1752
|
+
:param str id:
|
|
1753
|
+
:return: V1DeleteOrgClusterCapacityReservationResponse
|
|
1855
1754
|
If the method is called asynchronously,
|
|
1856
1755
|
returns the request thread.
|
|
1857
1756
|
"""
|
|
1858
1757
|
|
|
1859
|
-
all_params = ['
|
|
1758
|
+
all_params = ['org_id', 'cluster_id', 'id'] # noqa: E501
|
|
1860
1759
|
all_params.append('async_req')
|
|
1861
1760
|
all_params.append('_return_http_data_only')
|
|
1862
1761
|
all_params.append('_preload_content')
|
|
@@ -1867,30 +1766,30 @@ class ClusterServiceApi(object):
|
|
|
1867
1766
|
if key not in all_params:
|
|
1868
1767
|
raise TypeError(
|
|
1869
1768
|
"Got an unexpected keyword argument '%s'"
|
|
1870
|
-
" to method
|
|
1769
|
+
" to method cluster_service_delete_org_cluster_capacity_reservation" % key
|
|
1871
1770
|
)
|
|
1872
1771
|
params[key] = val
|
|
1873
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
|
|
1874
1777
|
# verify the required parameter 'cluster_id' is set
|
|
1875
1778
|
if ('cluster_id' not in params or
|
|
1876
1779
|
params['cluster_id'] is None):
|
|
1877
|
-
raise ValueError("Missing the required parameter `cluster_id` when calling `
|
|
1878
|
-
# verify the required parameter 'id' is set
|
|
1879
|
-
if ('id' not in params or
|
|
1880
|
-
params['id'] is None):
|
|
1881
|
-
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
|
|
1882
1781
|
|
|
1883
1782
|
collection_formats = {}
|
|
1884
1783
|
|
|
1885
1784
|
path_params = {}
|
|
1785
|
+
if 'org_id' in params:
|
|
1786
|
+
path_params['orgId'] = params['org_id'] # noqa: E501
|
|
1886
1787
|
if 'cluster_id' in params:
|
|
1887
1788
|
path_params['clusterId'] = params['cluster_id'] # noqa: E501
|
|
1888
|
-
if 'id' in params:
|
|
1889
|
-
path_params['id'] = params['id'] # noqa: E501
|
|
1890
1789
|
|
|
1891
1790
|
query_params = []
|
|
1892
|
-
if '
|
|
1893
|
-
query_params.append(('
|
|
1791
|
+
if 'id' in params:
|
|
1792
|
+
query_params.append(('id', params['id'])) # noqa: E501
|
|
1894
1793
|
|
|
1895
1794
|
header_params = {}
|
|
1896
1795
|
|
|
@@ -1906,14 +1805,14 @@ class ClusterServiceApi(object):
|
|
|
1906
1805
|
auth_settings = [] # noqa: E501
|
|
1907
1806
|
|
|
1908
1807
|
return self.api_client.call_api(
|
|
1909
|
-
'/v1/
|
|
1808
|
+
'/v1/orgs/{orgId}/clusters/{clusterId}/capacity-reservations', 'DELETE',
|
|
1910
1809
|
path_params,
|
|
1911
1810
|
query_params,
|
|
1912
1811
|
header_params,
|
|
1913
1812
|
body=body_params,
|
|
1914
1813
|
post_params=form_params,
|
|
1915
1814
|
files=local_var_files,
|
|
1916
|
-
response_type='
|
|
1815
|
+
response_type='V1DeleteOrgClusterCapacityReservationResponse', # noqa: E501
|
|
1917
1816
|
auth_settings=auth_settings,
|
|
1918
1817
|
async_req=params.get('async_req'),
|
|
1919
1818
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -2034,6 +1933,115 @@ class ClusterServiceApi(object):
|
|
|
2034
1933
|
_request_timeout=params.get('_request_timeout'),
|
|
2035
1934
|
collection_formats=collection_formats)
|
|
2036
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
|
+
|
|
2037
2045
|
def cluster_service_find_capacity_block_offering(self, project_id: 'str', cluster_id: 'str', **kwargs) -> 'V1FindCapacityBlockOfferingResponse': # noqa: E501
|
|
2038
2046
|
"""cluster_service_find_capacity_block_offering # noqa: E501
|
|
2039
2047
|
|
|
@@ -2447,14 +2455,135 @@ class ClusterServiceApi(object):
|
|
|
2447
2455
|
auth_settings = [] # noqa: E501
|
|
2448
2456
|
|
|
2449
2457
|
return self.api_client.call_api(
|
|
2450
|
-
'/v1/core/cluster-availability', 'GET',
|
|
2458
|
+
'/v1/core/cluster-availability', 'GET',
|
|
2459
|
+
path_params,
|
|
2460
|
+
query_params,
|
|
2461
|
+
header_params,
|
|
2462
|
+
body=body_params,
|
|
2463
|
+
post_params=form_params,
|
|
2464
|
+
files=local_var_files,
|
|
2465
|
+
response_type='V1ClusterAvailability', # noqa: E501
|
|
2466
|
+
auth_settings=auth_settings,
|
|
2467
|
+
async_req=params.get('async_req'),
|
|
2468
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
2469
|
+
_preload_content=params.get('_preload_content', True),
|
|
2470
|
+
_request_timeout=params.get('_request_timeout'),
|
|
2471
|
+
collection_formats=collection_formats)
|
|
2472
|
+
|
|
2473
|
+
def cluster_service_get_cluster_capacity_reservation(self, body: 'ClusterServiceGetClusterCapacityReservationBody', project_id: 'str', cluster_id: 'str', id: 'str', **kwargs) -> 'V1GetClusterCapacityReservationResponse': # noqa: E501
|
|
2474
|
+
"""capacity reservation # noqa: E501
|
|
2475
|
+
|
|
2476
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
2477
|
+
asynchronous HTTP request, please pass async_req=True
|
|
2478
|
+
>>> thread = api.cluster_service_get_cluster_capacity_reservation(body, project_id, cluster_id, id, async_req=True)
|
|
2479
|
+
>>> result = thread.get()
|
|
2480
|
+
|
|
2481
|
+
:param async_req bool
|
|
2482
|
+
:param ClusterServiceGetClusterCapacityReservationBody body: (required)
|
|
2483
|
+
:param str project_id: (required)
|
|
2484
|
+
:param str cluster_id: (required)
|
|
2485
|
+
:param str id: capacity reservation id (required)
|
|
2486
|
+
:return: V1GetClusterCapacityReservationResponse
|
|
2487
|
+
If the method is called asynchronously,
|
|
2488
|
+
returns the request thread.
|
|
2489
|
+
"""
|
|
2490
|
+
kwargs['_return_http_data_only'] = True
|
|
2491
|
+
if kwargs.get('async_req'):
|
|
2492
|
+
return self.cluster_service_get_cluster_capacity_reservation_with_http_info(body, project_id, cluster_id, id, **kwargs) # noqa: E501
|
|
2493
|
+
else:
|
|
2494
|
+
(data) = self.cluster_service_get_cluster_capacity_reservation_with_http_info(body, project_id, cluster_id, id, **kwargs) # noqa: E501
|
|
2495
|
+
return data
|
|
2496
|
+
|
|
2497
|
+
def cluster_service_get_cluster_capacity_reservation_with_http_info(self, body: 'ClusterServiceGetClusterCapacityReservationBody', project_id: 'str', cluster_id: 'str', id: 'str', **kwargs) -> 'V1GetClusterCapacityReservationResponse': # noqa: E501
|
|
2498
|
+
"""capacity reservation # noqa: E501
|
|
2499
|
+
|
|
2500
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
2501
|
+
asynchronous HTTP request, please pass async_req=True
|
|
2502
|
+
>>> thread = api.cluster_service_get_cluster_capacity_reservation_with_http_info(body, project_id, cluster_id, id, async_req=True)
|
|
2503
|
+
>>> result = thread.get()
|
|
2504
|
+
|
|
2505
|
+
:param async_req bool
|
|
2506
|
+
:param ClusterServiceGetClusterCapacityReservationBody body: (required)
|
|
2507
|
+
:param str project_id: (required)
|
|
2508
|
+
:param str cluster_id: (required)
|
|
2509
|
+
:param str id: capacity reservation id (required)
|
|
2510
|
+
:return: V1GetClusterCapacityReservationResponse
|
|
2511
|
+
If the method is called asynchronously,
|
|
2512
|
+
returns the request thread.
|
|
2513
|
+
"""
|
|
2514
|
+
|
|
2515
|
+
all_params = ['body', 'project_id', 'cluster_id', 'id'] # noqa: E501
|
|
2516
|
+
all_params.append('async_req')
|
|
2517
|
+
all_params.append('_return_http_data_only')
|
|
2518
|
+
all_params.append('_preload_content')
|
|
2519
|
+
all_params.append('_request_timeout')
|
|
2520
|
+
|
|
2521
|
+
params = locals()
|
|
2522
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
2523
|
+
if key not in all_params:
|
|
2524
|
+
raise TypeError(
|
|
2525
|
+
"Got an unexpected keyword argument '%s'"
|
|
2526
|
+
" to method cluster_service_get_cluster_capacity_reservation" % key
|
|
2527
|
+
)
|
|
2528
|
+
params[key] = val
|
|
2529
|
+
del params['kwargs']
|
|
2530
|
+
# verify the required parameter 'body' is set
|
|
2531
|
+
if ('body' not in params or
|
|
2532
|
+
params['body'] is None):
|
|
2533
|
+
raise ValueError("Missing the required parameter `body` when calling `cluster_service_get_cluster_capacity_reservation`") # noqa: E501
|
|
2534
|
+
# verify the required parameter 'project_id' is set
|
|
2535
|
+
if ('project_id' not in params or
|
|
2536
|
+
params['project_id'] is None):
|
|
2537
|
+
raise ValueError("Missing the required parameter `project_id` when calling `cluster_service_get_cluster_capacity_reservation`") # noqa: E501
|
|
2538
|
+
# verify the required parameter 'cluster_id' is set
|
|
2539
|
+
if ('cluster_id' not in params or
|
|
2540
|
+
params['cluster_id'] is None):
|
|
2541
|
+
raise ValueError("Missing the required parameter `cluster_id` when calling `cluster_service_get_cluster_capacity_reservation`") # noqa: E501
|
|
2542
|
+
# verify the required parameter 'id' is set
|
|
2543
|
+
if ('id' not in params or
|
|
2544
|
+
params['id'] is None):
|
|
2545
|
+
raise ValueError("Missing the required parameter `id` when calling `cluster_service_get_cluster_capacity_reservation`") # noqa: E501
|
|
2546
|
+
|
|
2547
|
+
collection_formats = {}
|
|
2548
|
+
|
|
2549
|
+
path_params = {}
|
|
2550
|
+
if 'project_id' in params:
|
|
2551
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
2552
|
+
if 'cluster_id' in params:
|
|
2553
|
+
path_params['clusterId'] = params['cluster_id'] # noqa: E501
|
|
2554
|
+
if 'id' in params:
|
|
2555
|
+
path_params['id'] = params['id'] # noqa: E501
|
|
2556
|
+
|
|
2557
|
+
query_params = []
|
|
2558
|
+
|
|
2559
|
+
header_params = {}
|
|
2560
|
+
|
|
2561
|
+
form_params = []
|
|
2562
|
+
local_var_files = {}
|
|
2563
|
+
|
|
2564
|
+
body_params = None
|
|
2565
|
+
if 'body' in params:
|
|
2566
|
+
body_params = params['body']
|
|
2567
|
+
# HTTP header `Accept`
|
|
2568
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
2569
|
+
['application/json']) # noqa: E501
|
|
2570
|
+
|
|
2571
|
+
# HTTP header `Content-Type`
|
|
2572
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
2573
|
+
['application/json']) # noqa: E501
|
|
2574
|
+
|
|
2575
|
+
# Authentication setting
|
|
2576
|
+
auth_settings = [] # noqa: E501
|
|
2577
|
+
|
|
2578
|
+
return self.api_client.call_api(
|
|
2579
|
+
'/v1/projects/{projectId}/clusters/{clusterId}/capacity-reservations/{id}', 'POST',
|
|
2451
2580
|
path_params,
|
|
2452
2581
|
query_params,
|
|
2453
2582
|
header_params,
|
|
2454
2583
|
body=body_params,
|
|
2455
2584
|
post_params=form_params,
|
|
2456
2585
|
files=local_var_files,
|
|
2457
|
-
response_type='
|
|
2586
|
+
response_type='V1GetClusterCapacityReservationResponse', # noqa: E501
|
|
2458
2587
|
auth_settings=auth_settings,
|
|
2459
2588
|
async_req=params.get('async_req'),
|
|
2460
2589
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -3476,99 +3605,6 @@ class ClusterServiceApi(object):
|
|
|
3476
3605
|
_request_timeout=params.get('_request_timeout'),
|
|
3477
3606
|
collection_formats=collection_formats)
|
|
3478
3607
|
|
|
3479
|
-
def cluster_service_list_container_registries(self, cluster_id: 'str', **kwargs) -> 'V1ListContainerRegistriesResponse': # noqa: E501
|
|
3480
|
-
"""List all container registries configured for a cluster # noqa: E501
|
|
3481
|
-
|
|
3482
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
3483
|
-
asynchronous HTTP request, please pass async_req=True
|
|
3484
|
-
>>> thread = api.cluster_service_list_container_registries(cluster_id, async_req=True)
|
|
3485
|
-
>>> result = thread.get()
|
|
3486
|
-
|
|
3487
|
-
:param async_req bool
|
|
3488
|
-
:param str cluster_id: (required)
|
|
3489
|
-
:return: V1ListContainerRegistriesResponse
|
|
3490
|
-
If the method is called asynchronously,
|
|
3491
|
-
returns the request thread.
|
|
3492
|
-
"""
|
|
3493
|
-
kwargs['_return_http_data_only'] = True
|
|
3494
|
-
if kwargs.get('async_req'):
|
|
3495
|
-
return self.cluster_service_list_container_registries_with_http_info(cluster_id, **kwargs) # noqa: E501
|
|
3496
|
-
else:
|
|
3497
|
-
(data) = self.cluster_service_list_container_registries_with_http_info(cluster_id, **kwargs) # noqa: E501
|
|
3498
|
-
return data
|
|
3499
|
-
|
|
3500
|
-
def cluster_service_list_container_registries_with_http_info(self, cluster_id: 'str', **kwargs) -> 'V1ListContainerRegistriesResponse': # noqa: E501
|
|
3501
|
-
"""List all container registries configured for a cluster # noqa: E501
|
|
3502
|
-
|
|
3503
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
3504
|
-
asynchronous HTTP request, please pass async_req=True
|
|
3505
|
-
>>> thread = api.cluster_service_list_container_registries_with_http_info(cluster_id, async_req=True)
|
|
3506
|
-
>>> result = thread.get()
|
|
3507
|
-
|
|
3508
|
-
:param async_req bool
|
|
3509
|
-
:param str cluster_id: (required)
|
|
3510
|
-
:return: V1ListContainerRegistriesResponse
|
|
3511
|
-
If the method is called asynchronously,
|
|
3512
|
-
returns the request thread.
|
|
3513
|
-
"""
|
|
3514
|
-
|
|
3515
|
-
all_params = ['cluster_id'] # noqa: E501
|
|
3516
|
-
all_params.append('async_req')
|
|
3517
|
-
all_params.append('_return_http_data_only')
|
|
3518
|
-
all_params.append('_preload_content')
|
|
3519
|
-
all_params.append('_request_timeout')
|
|
3520
|
-
|
|
3521
|
-
params = locals()
|
|
3522
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
3523
|
-
if key not in all_params:
|
|
3524
|
-
raise TypeError(
|
|
3525
|
-
"Got an unexpected keyword argument '%s'"
|
|
3526
|
-
" to method cluster_service_list_container_registries" % key
|
|
3527
|
-
)
|
|
3528
|
-
params[key] = val
|
|
3529
|
-
del params['kwargs']
|
|
3530
|
-
# verify the required parameter 'cluster_id' is set
|
|
3531
|
-
if ('cluster_id' not in params or
|
|
3532
|
-
params['cluster_id'] is None):
|
|
3533
|
-
raise ValueError("Missing the required parameter `cluster_id` when calling `cluster_service_list_container_registries`") # noqa: E501
|
|
3534
|
-
|
|
3535
|
-
collection_formats = {}
|
|
3536
|
-
|
|
3537
|
-
path_params = {}
|
|
3538
|
-
if 'cluster_id' in params:
|
|
3539
|
-
path_params['clusterId'] = params['cluster_id'] # noqa: E501
|
|
3540
|
-
|
|
3541
|
-
query_params = []
|
|
3542
|
-
|
|
3543
|
-
header_params = {}
|
|
3544
|
-
|
|
3545
|
-
form_params = []
|
|
3546
|
-
local_var_files = {}
|
|
3547
|
-
|
|
3548
|
-
body_params = None
|
|
3549
|
-
# HTTP header `Accept`
|
|
3550
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
3551
|
-
['application/json']) # noqa: E501
|
|
3552
|
-
|
|
3553
|
-
# Authentication setting
|
|
3554
|
-
auth_settings = [] # noqa: E501
|
|
3555
|
-
|
|
3556
|
-
return self.api_client.call_api(
|
|
3557
|
-
'/v1/clusters/{clusterId}/container-registries', 'GET',
|
|
3558
|
-
path_params,
|
|
3559
|
-
query_params,
|
|
3560
|
-
header_params,
|
|
3561
|
-
body=body_params,
|
|
3562
|
-
post_params=form_params,
|
|
3563
|
-
files=local_var_files,
|
|
3564
|
-
response_type='V1ListContainerRegistriesResponse', # noqa: E501
|
|
3565
|
-
auth_settings=auth_settings,
|
|
3566
|
-
async_req=params.get('async_req'),
|
|
3567
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
3568
|
-
_preload_content=params.get('_preload_content', True),
|
|
3569
|
-
_request_timeout=params.get('_request_timeout'),
|
|
3570
|
-
collection_formats=collection_formats)
|
|
3571
|
-
|
|
3572
3608
|
def cluster_service_list_default_cluster_accelerators(self, **kwargs) -> 'V1ListDefaultClusterAcceleratorsResponse': # noqa: E501
|
|
3573
3609
|
"""cluster_service_list_default_cluster_accelerators # noqa: E501
|
|
3574
3610
|
|
|
@@ -4171,111 +4207,6 @@ class ClusterServiceApi(object):
|
|
|
4171
4207
|
_request_timeout=params.get('_request_timeout'),
|
|
4172
4208
|
collection_formats=collection_formats)
|
|
4173
4209
|
|
|
4174
|
-
def cluster_service_refresh_container_registry_credentials(self, body: 'ClusterServiceRefreshContainerRegistryCredentialsBody', cluster_id: 'str', **kwargs) -> 'V1RefreshContainerRegistryCredentialsResponse': # noqa: E501
|
|
4175
|
-
"""Refresh credentials for container registries and deploy to cluster # noqa: E501
|
|
4176
|
-
|
|
4177
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
4178
|
-
asynchronous HTTP request, please pass async_req=True
|
|
4179
|
-
>>> thread = api.cluster_service_refresh_container_registry_credentials(body, cluster_id, async_req=True)
|
|
4180
|
-
>>> result = thread.get()
|
|
4181
|
-
|
|
4182
|
-
:param async_req bool
|
|
4183
|
-
:param ClusterServiceRefreshContainerRegistryCredentialsBody body: (required)
|
|
4184
|
-
:param str cluster_id: (required)
|
|
4185
|
-
:return: V1RefreshContainerRegistryCredentialsResponse
|
|
4186
|
-
If the method is called asynchronously,
|
|
4187
|
-
returns the request thread.
|
|
4188
|
-
"""
|
|
4189
|
-
kwargs['_return_http_data_only'] = True
|
|
4190
|
-
if kwargs.get('async_req'):
|
|
4191
|
-
return self.cluster_service_refresh_container_registry_credentials_with_http_info(body, cluster_id, **kwargs) # noqa: E501
|
|
4192
|
-
else:
|
|
4193
|
-
(data) = self.cluster_service_refresh_container_registry_credentials_with_http_info(body, cluster_id, **kwargs) # noqa: E501
|
|
4194
|
-
return data
|
|
4195
|
-
|
|
4196
|
-
def cluster_service_refresh_container_registry_credentials_with_http_info(self, body: 'ClusterServiceRefreshContainerRegistryCredentialsBody', cluster_id: 'str', **kwargs) -> 'V1RefreshContainerRegistryCredentialsResponse': # noqa: E501
|
|
4197
|
-
"""Refresh credentials for container registries and deploy to cluster # noqa: E501
|
|
4198
|
-
|
|
4199
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
4200
|
-
asynchronous HTTP request, please pass async_req=True
|
|
4201
|
-
>>> thread = api.cluster_service_refresh_container_registry_credentials_with_http_info(body, cluster_id, async_req=True)
|
|
4202
|
-
>>> result = thread.get()
|
|
4203
|
-
|
|
4204
|
-
:param async_req bool
|
|
4205
|
-
:param ClusterServiceRefreshContainerRegistryCredentialsBody body: (required)
|
|
4206
|
-
:param str cluster_id: (required)
|
|
4207
|
-
:return: V1RefreshContainerRegistryCredentialsResponse
|
|
4208
|
-
If the method is called asynchronously,
|
|
4209
|
-
returns the request thread.
|
|
4210
|
-
"""
|
|
4211
|
-
|
|
4212
|
-
all_params = ['body', 'cluster_id'] # noqa: E501
|
|
4213
|
-
all_params.append('async_req')
|
|
4214
|
-
all_params.append('_return_http_data_only')
|
|
4215
|
-
all_params.append('_preload_content')
|
|
4216
|
-
all_params.append('_request_timeout')
|
|
4217
|
-
|
|
4218
|
-
params = locals()
|
|
4219
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
4220
|
-
if key not in all_params:
|
|
4221
|
-
raise TypeError(
|
|
4222
|
-
"Got an unexpected keyword argument '%s'"
|
|
4223
|
-
" to method cluster_service_refresh_container_registry_credentials" % key
|
|
4224
|
-
)
|
|
4225
|
-
params[key] = val
|
|
4226
|
-
del params['kwargs']
|
|
4227
|
-
# verify the required parameter 'body' is set
|
|
4228
|
-
if ('body' not in params or
|
|
4229
|
-
params['body'] is None):
|
|
4230
|
-
raise ValueError("Missing the required parameter `body` when calling `cluster_service_refresh_container_registry_credentials`") # noqa: E501
|
|
4231
|
-
# verify the required parameter 'cluster_id' is set
|
|
4232
|
-
if ('cluster_id' not in params or
|
|
4233
|
-
params['cluster_id'] is None):
|
|
4234
|
-
raise ValueError("Missing the required parameter `cluster_id` when calling `cluster_service_refresh_container_registry_credentials`") # noqa: E501
|
|
4235
|
-
|
|
4236
|
-
collection_formats = {}
|
|
4237
|
-
|
|
4238
|
-
path_params = {}
|
|
4239
|
-
if 'cluster_id' in params:
|
|
4240
|
-
path_params['clusterId'] = params['cluster_id'] # noqa: E501
|
|
4241
|
-
|
|
4242
|
-
query_params = []
|
|
4243
|
-
|
|
4244
|
-
header_params = {}
|
|
4245
|
-
|
|
4246
|
-
form_params = []
|
|
4247
|
-
local_var_files = {}
|
|
4248
|
-
|
|
4249
|
-
body_params = None
|
|
4250
|
-
if 'body' in params:
|
|
4251
|
-
body_params = params['body']
|
|
4252
|
-
# HTTP header `Accept`
|
|
4253
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
4254
|
-
['application/json']) # noqa: E501
|
|
4255
|
-
|
|
4256
|
-
# HTTP header `Content-Type`
|
|
4257
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
4258
|
-
['application/json']) # noqa: E501
|
|
4259
|
-
|
|
4260
|
-
# Authentication setting
|
|
4261
|
-
auth_settings = [] # noqa: E501
|
|
4262
|
-
|
|
4263
|
-
return self.api_client.call_api(
|
|
4264
|
-
'/v1/clusters/{clusterId}/container-registries/refresh-credentials', 'POST',
|
|
4265
|
-
path_params,
|
|
4266
|
-
query_params,
|
|
4267
|
-
header_params,
|
|
4268
|
-
body=body_params,
|
|
4269
|
-
post_params=form_params,
|
|
4270
|
-
files=local_var_files,
|
|
4271
|
-
response_type='V1RefreshContainerRegistryCredentialsResponse', # noqa: E501
|
|
4272
|
-
auth_settings=auth_settings,
|
|
4273
|
-
async_req=params.get('async_req'),
|
|
4274
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
4275
|
-
_preload_content=params.get('_preload_content', True),
|
|
4276
|
-
_request_timeout=params.get('_request_timeout'),
|
|
4277
|
-
collection_formats=collection_formats)
|
|
4278
|
-
|
|
4279
4210
|
def cluster_service_report_machine_system_metrics(self, body: 'ClusterServiceReportMachineSystemMetricsBody', cluster_id: 'str', machine_id: 'str', **kwargs) -> 'V1ReportMachineSystemMetricsResponse': # noqa: E501
|
|
4280
4211
|
"""cluster_service_report_machine_system_metrics # noqa: E501
|
|
4281
4212
|
|
|
@@ -5321,116 +5252,3 @@ class ClusterServiceApi(object):
|
|
|
5321
5252
|
_preload_content=params.get('_preload_content', True),
|
|
5322
5253
|
_request_timeout=params.get('_request_timeout'),
|
|
5323
5254
|
collection_formats=collection_formats)
|
|
5324
|
-
|
|
5325
|
-
def cluster_service_validate_container_registry(self, body: 'ClusterServiceValidateContainerRegistryBody', cluster_id: 'str', registry_id: 'str', **kwargs) -> 'V1ValidateContainerRegistryResponse': # noqa: E501
|
|
5326
|
-
"""Validate that Lightning can pull from a container registry # noqa: E501
|
|
5327
|
-
|
|
5328
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
5329
|
-
asynchronous HTTP request, please pass async_req=True
|
|
5330
|
-
>>> thread = api.cluster_service_validate_container_registry(body, cluster_id, registry_id, async_req=True)
|
|
5331
|
-
>>> result = thread.get()
|
|
5332
|
-
|
|
5333
|
-
:param async_req bool
|
|
5334
|
-
:param ClusterServiceValidateContainerRegistryBody body: (required)
|
|
5335
|
-
:param str cluster_id: (required)
|
|
5336
|
-
:param str registry_id: (required)
|
|
5337
|
-
:return: V1ValidateContainerRegistryResponse
|
|
5338
|
-
If the method is called asynchronously,
|
|
5339
|
-
returns the request thread.
|
|
5340
|
-
"""
|
|
5341
|
-
kwargs['_return_http_data_only'] = True
|
|
5342
|
-
if kwargs.get('async_req'):
|
|
5343
|
-
return self.cluster_service_validate_container_registry_with_http_info(body, cluster_id, registry_id, **kwargs) # noqa: E501
|
|
5344
|
-
else:
|
|
5345
|
-
(data) = self.cluster_service_validate_container_registry_with_http_info(body, cluster_id, registry_id, **kwargs) # noqa: E501
|
|
5346
|
-
return data
|
|
5347
|
-
|
|
5348
|
-
def cluster_service_validate_container_registry_with_http_info(self, body: 'ClusterServiceValidateContainerRegistryBody', cluster_id: 'str', registry_id: 'str', **kwargs) -> 'V1ValidateContainerRegistryResponse': # noqa: E501
|
|
5349
|
-
"""Validate that Lightning can pull from a container registry # noqa: E501
|
|
5350
|
-
|
|
5351
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
5352
|
-
asynchronous HTTP request, please pass async_req=True
|
|
5353
|
-
>>> thread = api.cluster_service_validate_container_registry_with_http_info(body, cluster_id, registry_id, async_req=True)
|
|
5354
|
-
>>> result = thread.get()
|
|
5355
|
-
|
|
5356
|
-
:param async_req bool
|
|
5357
|
-
:param ClusterServiceValidateContainerRegistryBody body: (required)
|
|
5358
|
-
:param str cluster_id: (required)
|
|
5359
|
-
:param str registry_id: (required)
|
|
5360
|
-
:return: V1ValidateContainerRegistryResponse
|
|
5361
|
-
If the method is called asynchronously,
|
|
5362
|
-
returns the request thread.
|
|
5363
|
-
"""
|
|
5364
|
-
|
|
5365
|
-
all_params = ['body', 'cluster_id', 'registry_id'] # noqa: E501
|
|
5366
|
-
all_params.append('async_req')
|
|
5367
|
-
all_params.append('_return_http_data_only')
|
|
5368
|
-
all_params.append('_preload_content')
|
|
5369
|
-
all_params.append('_request_timeout')
|
|
5370
|
-
|
|
5371
|
-
params = locals()
|
|
5372
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
5373
|
-
if key not in all_params:
|
|
5374
|
-
raise TypeError(
|
|
5375
|
-
"Got an unexpected keyword argument '%s'"
|
|
5376
|
-
" to method cluster_service_validate_container_registry" % key
|
|
5377
|
-
)
|
|
5378
|
-
params[key] = val
|
|
5379
|
-
del params['kwargs']
|
|
5380
|
-
# verify the required parameter 'body' is set
|
|
5381
|
-
if ('body' not in params or
|
|
5382
|
-
params['body'] is None):
|
|
5383
|
-
raise ValueError("Missing the required parameter `body` when calling `cluster_service_validate_container_registry`") # noqa: E501
|
|
5384
|
-
# verify the required parameter 'cluster_id' is set
|
|
5385
|
-
if ('cluster_id' not in params or
|
|
5386
|
-
params['cluster_id'] is None):
|
|
5387
|
-
raise ValueError("Missing the required parameter `cluster_id` when calling `cluster_service_validate_container_registry`") # noqa: E501
|
|
5388
|
-
# verify the required parameter 'registry_id' is set
|
|
5389
|
-
if ('registry_id' not in params or
|
|
5390
|
-
params['registry_id'] is None):
|
|
5391
|
-
raise ValueError("Missing the required parameter `registry_id` when calling `cluster_service_validate_container_registry`") # noqa: E501
|
|
5392
|
-
|
|
5393
|
-
collection_formats = {}
|
|
5394
|
-
|
|
5395
|
-
path_params = {}
|
|
5396
|
-
if 'cluster_id' in params:
|
|
5397
|
-
path_params['clusterId'] = params['cluster_id'] # noqa: E501
|
|
5398
|
-
if 'registry_id' in params:
|
|
5399
|
-
path_params['registryId'] = params['registry_id'] # noqa: E501
|
|
5400
|
-
|
|
5401
|
-
query_params = []
|
|
5402
|
-
|
|
5403
|
-
header_params = {}
|
|
5404
|
-
|
|
5405
|
-
form_params = []
|
|
5406
|
-
local_var_files = {}
|
|
5407
|
-
|
|
5408
|
-
body_params = None
|
|
5409
|
-
if 'body' in params:
|
|
5410
|
-
body_params = params['body']
|
|
5411
|
-
# HTTP header `Accept`
|
|
5412
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
5413
|
-
['application/json']) # noqa: E501
|
|
5414
|
-
|
|
5415
|
-
# HTTP header `Content-Type`
|
|
5416
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
5417
|
-
['application/json']) # noqa: E501
|
|
5418
|
-
|
|
5419
|
-
# Authentication setting
|
|
5420
|
-
auth_settings = [] # noqa: E501
|
|
5421
|
-
|
|
5422
|
-
return self.api_client.call_api(
|
|
5423
|
-
'/v1/clusters/{clusterId}/container-registries/{registryId}/validate', 'POST',
|
|
5424
|
-
path_params,
|
|
5425
|
-
query_params,
|
|
5426
|
-
header_params,
|
|
5427
|
-
body=body_params,
|
|
5428
|
-
post_params=form_params,
|
|
5429
|
-
files=local_var_files,
|
|
5430
|
-
response_type='V1ValidateContainerRegistryResponse', # noqa: E501
|
|
5431
|
-
auth_settings=auth_settings,
|
|
5432
|
-
async_req=params.get('async_req'),
|
|
5433
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
5434
|
-
_preload_content=params.get('_preload_content', True),
|
|
5435
|
-
_request_timeout=params.get('_request_timeout'),
|
|
5436
|
-
collection_formats=collection_formats)
|