anyscale 0.26.28__py3-none-any.whl → 0.26.29__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 (39) hide show
  1. anyscale/_private/docgen/__main__.py +0 -18
  2. anyscale/_private/docgen/api.md +0 -125
  3. anyscale/_private/docgen/models.md +0 -111
  4. anyscale/client/README.md +0 -6
  5. anyscale/client/openapi_client/__init__.py +0 -4
  6. anyscale/client/openapi_client/api/default_api.py +0 -228
  7. anyscale/client/openapi_client/models/__init__.py +0 -4
  8. anyscale/client/openapi_client/models/workload_info.py +59 -3
  9. anyscale/commands/machine_pool_commands.py +11 -9
  10. anyscale/commands/service_commands.py +4 -2
  11. anyscale/sdk/anyscale_client/__init__.py +0 -11
  12. anyscale/sdk/anyscale_client/api/default_api.py +140 -1433
  13. anyscale/sdk/anyscale_client/models/__init__.py +0 -11
  14. anyscale/service/__init__.py +4 -1
  15. anyscale/service/_private/service_sdk.py +5 -0
  16. anyscale/service/commands.py +4 -2
  17. anyscale/version.py +1 -1
  18. {anyscale-0.26.28.dist-info → anyscale-0.26.29.dist-info}/METADATA +1 -1
  19. {anyscale-0.26.28.dist-info → anyscale-0.26.29.dist-info}/RECORD +24 -39
  20. anyscale/client/openapi_client/models/serve_deployment_fast_api_docs_status.py +0 -123
  21. anyscale/client/openapi_client/models/servedeploymentfastapidocsstatus_response.py +0 -121
  22. anyscale/client/openapi_client/models/web_terminal.py +0 -121
  23. anyscale/client/openapi_client/models/webterminal_response.py +0 -121
  24. anyscale/sdk/anyscale_client/models/cluster_environment_build_log_response.py +0 -123
  25. anyscale/sdk/anyscale_client/models/clusterenvironmentbuildlogresponse_response.py +0 -121
  26. anyscale/sdk/anyscale_client/models/create_cloud.py +0 -518
  27. anyscale/sdk/anyscale_client/models/object_storage_config.py +0 -122
  28. anyscale/sdk/anyscale_client/models/object_storage_config_s3.py +0 -256
  29. anyscale/sdk/anyscale_client/models/objectstorageconfig_response.py +0 -121
  30. anyscale/sdk/anyscale_client/models/session_operation.py +0 -266
  31. anyscale/sdk/anyscale_client/models/session_operation_type.py +0 -101
  32. anyscale/sdk/anyscale_client/models/sessionoperation_response.py +0 -121
  33. anyscale/sdk/anyscale_client/models/update_cloud.py +0 -150
  34. anyscale/sdk/anyscale_client/models/update_project.py +0 -150
  35. {anyscale-0.26.28.dist-info → anyscale-0.26.29.dist-info}/LICENSE +0 -0
  36. {anyscale-0.26.28.dist-info → anyscale-0.26.29.dist-info}/NOTICE +0 -0
  37. {anyscale-0.26.28.dist-info → anyscale-0.26.29.dist-info}/WHEEL +0 -0
  38. {anyscale-0.26.28.dist-info → anyscale-0.26.29.dist-info}/entry_points.txt +0 -0
  39. {anyscale-0.26.28.dist-info → anyscale-0.26.29.dist-info}/top_level.txt +0 -0
@@ -36,120 +36,6 @@ class DefaultApi(object):
36
36
  api_client = ApiClient()
37
37
  self.api_client = api_client
38
38
 
39
- def archive_cluster(self, cluster_id, **kwargs): # noqa: E501
40
- """Archive Cluster # noqa: E501
41
-
42
- Archives the cluster. It is a no-op if the cluster is already archived. # noqa: E501
43
- This method makes a synchronous HTTP request by default. To make an
44
- asynchronous HTTP request, please pass async_req=True
45
- >>> thread = api.archive_cluster(cluster_id, async_req=True)
46
- >>> result = thread.get()
47
-
48
- :param async_req bool: execute request asynchronously
49
- :param str cluster_id: (required)
50
- :param _preload_content: if False, the urllib3.HTTPResponse object will
51
- be returned without reading/decoding response
52
- data. Default is True.
53
- :param _request_timeout: timeout setting for this request. If one
54
- number provided, it will be total request
55
- timeout. It can also be a pair (tuple) of
56
- (connection, read) timeouts.
57
- :return: None
58
- If the method is called asynchronously,
59
- returns the request thread.
60
- """
61
- kwargs['_return_http_data_only'] = True
62
- return self.archive_cluster_with_http_info(cluster_id, **kwargs) # noqa: E501
63
-
64
- def archive_cluster_with_http_info(self, cluster_id, **kwargs): # noqa: E501
65
- """Archive Cluster # noqa: E501
66
-
67
- Archives the cluster. It is a no-op if the cluster is already archived. # noqa: E501
68
- This method makes a synchronous HTTP request by default. To make an
69
- asynchronous HTTP request, please pass async_req=True
70
- >>> thread = api.archive_cluster_with_http_info(cluster_id, async_req=True)
71
- >>> result = thread.get()
72
-
73
- :param async_req bool: execute request asynchronously
74
- :param str cluster_id: (required)
75
- :param _return_http_data_only: response data without head status code
76
- and headers
77
- :param _preload_content: if False, the urllib3.HTTPResponse object will
78
- be returned without reading/decoding response
79
- data. Default is True.
80
- :param _request_timeout: timeout setting for this request. If one
81
- number provided, it will be total request
82
- timeout. It can also be a pair (tuple) of
83
- (connection, read) timeouts.
84
- :return: None
85
- If the method is called asynchronously,
86
- returns the request thread.
87
- """
88
-
89
- local_var_params = locals()
90
-
91
- all_params = [
92
- 'cluster_id'
93
- ]
94
- all_params.extend(
95
- [
96
- 'async_req',
97
- '_return_http_data_only',
98
- '_preload_content',
99
- '_request_timeout'
100
- ]
101
- )
102
-
103
- for key, val in six.iteritems(local_var_params['kwargs']):
104
- if key not in all_params:
105
- raise ApiTypeError(
106
- "Got an unexpected keyword argument '%s'"
107
- " to method archive_cluster" % key
108
- )
109
- local_var_params[key] = val
110
- del local_var_params['kwargs']
111
- # verify the required parameter 'cluster_id' is set
112
- if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501
113
- local_var_params['cluster_id'] is None): # noqa: E501
114
- raise ApiValueError("Missing the required parameter `cluster_id` when calling `archive_cluster`") # noqa: E501
115
-
116
- collection_formats = {}
117
-
118
- path_params = {}
119
- if 'cluster_id' in local_var_params:
120
- path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501
121
-
122
- query_params = []
123
-
124
- header_params = {}
125
-
126
- form_params = []
127
- local_var_files = {}
128
-
129
- body_params = None
130
- # HTTP header `Accept`
131
- header_params['Accept'] = self.api_client.select_header_accept(
132
- ['application/json']) # noqa: E501
133
-
134
- # Authentication setting
135
- auth_settings = [] # noqa: E501
136
-
137
- return self.api_client.call_api(
138
- '/clusters/{cluster_id}/archive', 'POST',
139
- path_params,
140
- query_params,
141
- header_params,
142
- body=body_params,
143
- post_params=form_params,
144
- files=local_var_files,
145
- response_type=None, # noqa: E501
146
- auth_settings=auth_settings,
147
- async_req=local_var_params.get('async_req'),
148
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
149
- _preload_content=local_var_params.get('_preload_content', True),
150
- _request_timeout=local_var_params.get('_request_timeout'),
151
- collection_formats=collection_formats)
152
-
153
39
  def archive_service(self, service_id, **kwargs): # noqa: E501
154
40
  """Archive Service # noqa: E501
155
41
 
@@ -500,124 +386,6 @@ class DefaultApi(object):
500
386
  _request_timeout=local_var_params.get('_request_timeout'),
501
387
  collection_formats=collection_formats)
502
388
 
503
- def create_cloud(self, create_cloud, **kwargs): # noqa: E501
504
- """Create Cloud # noqa: E501
505
-
506
- Creates a Cloud. # noqa: E501
507
- This method makes a synchronous HTTP request by default. To make an
508
- asynchronous HTTP request, please pass async_req=True
509
- >>> thread = api.create_cloud(create_cloud, async_req=True)
510
- >>> result = thread.get()
511
-
512
- :param async_req bool: execute request asynchronously
513
- :param CreateCloud create_cloud: (required)
514
- :param _preload_content: if False, the urllib3.HTTPResponse object will
515
- be returned without reading/decoding response
516
- data. Default is True.
517
- :param _request_timeout: timeout setting for this request. If one
518
- number provided, it will be total request
519
- timeout. It can also be a pair (tuple) of
520
- (connection, read) timeouts.
521
- :return: CloudResponse
522
- If the method is called asynchronously,
523
- returns the request thread.
524
- """
525
- kwargs['_return_http_data_only'] = True
526
- return self.create_cloud_with_http_info(create_cloud, **kwargs) # noqa: E501
527
-
528
- def create_cloud_with_http_info(self, create_cloud, **kwargs): # noqa: E501
529
- """Create Cloud # noqa: E501
530
-
531
- Creates a Cloud. # noqa: E501
532
- This method makes a synchronous HTTP request by default. To make an
533
- asynchronous HTTP request, please pass async_req=True
534
- >>> thread = api.create_cloud_with_http_info(create_cloud, async_req=True)
535
- >>> result = thread.get()
536
-
537
- :param async_req bool: execute request asynchronously
538
- :param CreateCloud create_cloud: (required)
539
- :param _return_http_data_only: response data without head status code
540
- and headers
541
- :param _preload_content: if False, the urllib3.HTTPResponse object will
542
- be returned without reading/decoding response
543
- data. Default is True.
544
- :param _request_timeout: timeout setting for this request. If one
545
- number provided, it will be total request
546
- timeout. It can also be a pair (tuple) of
547
- (connection, read) timeouts.
548
- :return: tuple(CloudResponse, status_code(int), headers(HTTPHeaderDict))
549
- If the method is called asynchronously,
550
- returns the request thread.
551
- """
552
-
553
- local_var_params = locals()
554
-
555
- all_params = [
556
- 'create_cloud'
557
- ]
558
- all_params.extend(
559
- [
560
- 'async_req',
561
- '_return_http_data_only',
562
- '_preload_content',
563
- '_request_timeout'
564
- ]
565
- )
566
-
567
- for key, val in six.iteritems(local_var_params['kwargs']):
568
- if key not in all_params:
569
- raise ApiTypeError(
570
- "Got an unexpected keyword argument '%s'"
571
- " to method create_cloud" % key
572
- )
573
- local_var_params[key] = val
574
- del local_var_params['kwargs']
575
- # verify the required parameter 'create_cloud' is set
576
- if self.api_client.client_side_validation and ('create_cloud' not in local_var_params or # noqa: E501
577
- local_var_params['create_cloud'] is None): # noqa: E501
578
- raise ApiValueError("Missing the required parameter `create_cloud` when calling `create_cloud`") # noqa: E501
579
-
580
- collection_formats = {}
581
-
582
- path_params = {}
583
-
584
- query_params = []
585
-
586
- header_params = {}
587
-
588
- form_params = []
589
- local_var_files = {}
590
-
591
- body_params = None
592
- if 'create_cloud' in local_var_params:
593
- body_params = local_var_params['create_cloud']
594
- # HTTP header `Accept`
595
- header_params['Accept'] = self.api_client.select_header_accept(
596
- ['application/json']) # noqa: E501
597
-
598
- # HTTP header `Content-Type`
599
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
600
- ['application/json']) # noqa: E501
601
-
602
- # Authentication setting
603
- auth_settings = [] # noqa: E501
604
-
605
- return self.api_client.call_api(
606
- '/clouds/', 'POST',
607
- path_params,
608
- query_params,
609
- header_params,
610
- body=body_params,
611
- post_params=form_params,
612
- files=local_var_files,
613
- response_type='CloudResponse', # noqa: E501
614
- auth_settings=auth_settings,
615
- async_req=local_var_params.get('async_req'),
616
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
617
- _preload_content=local_var_params.get('_preload_content', True),
618
- _request_timeout=local_var_params.get('_request_timeout'),
619
- collection_formats=collection_formats)
620
-
621
389
  def create_cluster(self, create_cluster, **kwargs): # noqa: E501
622
390
  """Create Cluster # noqa: E501
623
391
 
@@ -1444,17 +1212,17 @@ class DefaultApi(object):
1444
1212
  _request_timeout=local_var_params.get('_request_timeout'),
1445
1213
  collection_formats=collection_formats)
1446
1214
 
1447
- def delete_cloud(self, cloud_id, **kwargs): # noqa: E501
1448
- """Delete Cloud # noqa: E501
1215
+ def delete_cluster(self, cluster_id, **kwargs): # noqa: E501
1216
+ """Delete Cluster # noqa: E501
1449
1217
 
1450
- Deletes a Cloud. Will delete all clusters that are using this cloud. If any of those clusters are not terminated, this call will fail. # noqa: E501
1218
+ Deletes a Cluster. # noqa: E501
1451
1219
  This method makes a synchronous HTTP request by default. To make an
1452
1220
  asynchronous HTTP request, please pass async_req=True
1453
- >>> thread = api.delete_cloud(cloud_id, async_req=True)
1221
+ >>> thread = api.delete_cluster(cluster_id, async_req=True)
1454
1222
  >>> result = thread.get()
1455
1223
 
1456
1224
  :param async_req bool: execute request asynchronously
1457
- :param str cloud_id: ID of the Cloud to delete. (required)
1225
+ :param str cluster_id: ID of the Cluster to delete. (required)
1458
1226
  :param _preload_content: if False, the urllib3.HTTPResponse object will
1459
1227
  be returned without reading/decoding response
1460
1228
  data. Default is True.
@@ -1467,19 +1235,19 @@ class DefaultApi(object):
1467
1235
  returns the request thread.
1468
1236
  """
1469
1237
  kwargs['_return_http_data_only'] = True
1470
- return self.delete_cloud_with_http_info(cloud_id, **kwargs) # noqa: E501
1238
+ return self.delete_cluster_with_http_info(cluster_id, **kwargs) # noqa: E501
1471
1239
 
1472
- def delete_cloud_with_http_info(self, cloud_id, **kwargs): # noqa: E501
1473
- """Delete Cloud # noqa: E501
1240
+ def delete_cluster_with_http_info(self, cluster_id, **kwargs): # noqa: E501
1241
+ """Delete Cluster # noqa: E501
1474
1242
 
1475
- Deletes a Cloud. Will delete all clusters that are using this cloud. If any of those clusters are not terminated, this call will fail. # noqa: E501
1243
+ Deletes a Cluster. # noqa: E501
1476
1244
  This method makes a synchronous HTTP request by default. To make an
1477
1245
  asynchronous HTTP request, please pass async_req=True
1478
- >>> thread = api.delete_cloud_with_http_info(cloud_id, async_req=True)
1246
+ >>> thread = api.delete_cluster_with_http_info(cluster_id, async_req=True)
1479
1247
  >>> result = thread.get()
1480
1248
 
1481
1249
  :param async_req bool: execute request asynchronously
1482
- :param str cloud_id: ID of the Cloud to delete. (required)
1250
+ :param str cluster_id: ID of the Cluster to delete. (required)
1483
1251
  :param _return_http_data_only: response data without head status code
1484
1252
  and headers
1485
1253
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -1497,7 +1265,7 @@ class DefaultApi(object):
1497
1265
  local_var_params = locals()
1498
1266
 
1499
1267
  all_params = [
1500
- 'cloud_id'
1268
+ 'cluster_id'
1501
1269
  ]
1502
1270
  all_params.extend(
1503
1271
  [
@@ -1512,20 +1280,20 @@ class DefaultApi(object):
1512
1280
  if key not in all_params:
1513
1281
  raise ApiTypeError(
1514
1282
  "Got an unexpected keyword argument '%s'"
1515
- " to method delete_cloud" % key
1283
+ " to method delete_cluster" % key
1516
1284
  )
1517
1285
  local_var_params[key] = val
1518
1286
  del local_var_params['kwargs']
1519
- # verify the required parameter 'cloud_id' is set
1520
- if self.api_client.client_side_validation and ('cloud_id' not in local_var_params or # noqa: E501
1521
- local_var_params['cloud_id'] is None): # noqa: E501
1522
- raise ApiValueError("Missing the required parameter `cloud_id` when calling `delete_cloud`") # noqa: E501
1287
+ # verify the required parameter 'cluster_id' is set
1288
+ if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501
1289
+ local_var_params['cluster_id'] is None): # noqa: E501
1290
+ raise ApiValueError("Missing the required parameter `cluster_id` when calling `delete_cluster`") # noqa: E501
1523
1291
 
1524
1292
  collection_formats = {}
1525
1293
 
1526
1294
  path_params = {}
1527
- if 'cloud_id' in local_var_params:
1528
- path_params['cloud_id'] = local_var_params['cloud_id'] # noqa: E501
1295
+ if 'cluster_id' in local_var_params:
1296
+ path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501
1529
1297
 
1530
1298
  query_params = []
1531
1299
 
@@ -1543,7 +1311,7 @@ class DefaultApi(object):
1543
1311
  auth_settings = [] # noqa: E501
1544
1312
 
1545
1313
  return self.api_client.call_api(
1546
- '/clouds/{cloud_id}', 'DELETE',
1314
+ '/clusters/{cluster_id}', 'DELETE',
1547
1315
  path_params,
1548
1316
  query_params,
1549
1317
  header_params,
@@ -1558,17 +1326,17 @@ class DefaultApi(object):
1558
1326
  _request_timeout=local_var_params.get('_request_timeout'),
1559
1327
  collection_formats=collection_formats)
1560
1328
 
1561
- def delete_cluster(self, cluster_id, **kwargs): # noqa: E501
1562
- """Delete Cluster # noqa: E501
1329
+ def delete_cluster_compute(self, cluster_compute_id, **kwargs): # noqa: E501
1330
+ """Delete Cluster Compute # noqa: E501
1563
1331
 
1564
- Deletes a Cluster. # noqa: E501
1332
+ Deletes a Cluster Compute. # noqa: E501
1565
1333
  This method makes a synchronous HTTP request by default. To make an
1566
1334
  asynchronous HTTP request, please pass async_req=True
1567
- >>> thread = api.delete_cluster(cluster_id, async_req=True)
1335
+ >>> thread = api.delete_cluster_compute(cluster_compute_id, async_req=True)
1568
1336
  >>> result = thread.get()
1569
1337
 
1570
1338
  :param async_req bool: execute request asynchronously
1571
- :param str cluster_id: ID of the Cluster to delete. (required)
1339
+ :param str cluster_compute_id: ID of the Cluster Compute to delete. (required)
1572
1340
  :param _preload_content: if False, the urllib3.HTTPResponse object will
1573
1341
  be returned without reading/decoding response
1574
1342
  data. Default is True.
@@ -1581,19 +1349,19 @@ class DefaultApi(object):
1581
1349
  returns the request thread.
1582
1350
  """
1583
1351
  kwargs['_return_http_data_only'] = True
1584
- return self.delete_cluster_with_http_info(cluster_id, **kwargs) # noqa: E501
1352
+ return self.delete_cluster_compute_with_http_info(cluster_compute_id, **kwargs) # noqa: E501
1585
1353
 
1586
- def delete_cluster_with_http_info(self, cluster_id, **kwargs): # noqa: E501
1587
- """Delete Cluster # noqa: E501
1354
+ def delete_cluster_compute_with_http_info(self, cluster_compute_id, **kwargs): # noqa: E501
1355
+ """Delete Cluster Compute # noqa: E501
1588
1356
 
1589
- Deletes a Cluster. # noqa: E501
1357
+ Deletes a Cluster Compute. # noqa: E501
1590
1358
  This method makes a synchronous HTTP request by default. To make an
1591
1359
  asynchronous HTTP request, please pass async_req=True
1592
- >>> thread = api.delete_cluster_with_http_info(cluster_id, async_req=True)
1360
+ >>> thread = api.delete_cluster_compute_with_http_info(cluster_compute_id, async_req=True)
1593
1361
  >>> result = thread.get()
1594
1362
 
1595
1363
  :param async_req bool: execute request asynchronously
1596
- :param str cluster_id: ID of the Cluster to delete. (required)
1364
+ :param str cluster_compute_id: ID of the Cluster Compute to delete. (required)
1597
1365
  :param _return_http_data_only: response data without head status code
1598
1366
  and headers
1599
1367
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -1611,7 +1379,7 @@ class DefaultApi(object):
1611
1379
  local_var_params = locals()
1612
1380
 
1613
1381
  all_params = [
1614
- 'cluster_id'
1382
+ 'cluster_compute_id'
1615
1383
  ]
1616
1384
  all_params.extend(
1617
1385
  [
@@ -1626,121 +1394,7 @@ class DefaultApi(object):
1626
1394
  if key not in all_params:
1627
1395
  raise ApiTypeError(
1628
1396
  "Got an unexpected keyword argument '%s'"
1629
- " to method delete_cluster" % key
1630
- )
1631
- local_var_params[key] = val
1632
- del local_var_params['kwargs']
1633
- # verify the required parameter 'cluster_id' is set
1634
- if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501
1635
- local_var_params['cluster_id'] is None): # noqa: E501
1636
- raise ApiValueError("Missing the required parameter `cluster_id` when calling `delete_cluster`") # noqa: E501
1637
-
1638
- collection_formats = {}
1639
-
1640
- path_params = {}
1641
- if 'cluster_id' in local_var_params:
1642
- path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501
1643
-
1644
- query_params = []
1645
-
1646
- header_params = {}
1647
-
1648
- form_params = []
1649
- local_var_files = {}
1650
-
1651
- body_params = None
1652
- # HTTP header `Accept`
1653
- header_params['Accept'] = self.api_client.select_header_accept(
1654
- ['application/json']) # noqa: E501
1655
-
1656
- # Authentication setting
1657
- auth_settings = [] # noqa: E501
1658
-
1659
- return self.api_client.call_api(
1660
- '/clusters/{cluster_id}', 'DELETE',
1661
- path_params,
1662
- query_params,
1663
- header_params,
1664
- body=body_params,
1665
- post_params=form_params,
1666
- files=local_var_files,
1667
- response_type=None, # noqa: E501
1668
- auth_settings=auth_settings,
1669
- async_req=local_var_params.get('async_req'),
1670
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
1671
- _preload_content=local_var_params.get('_preload_content', True),
1672
- _request_timeout=local_var_params.get('_request_timeout'),
1673
- collection_formats=collection_formats)
1674
-
1675
- def delete_cluster_compute(self, cluster_compute_id, **kwargs): # noqa: E501
1676
- """Delete Cluster Compute # noqa: E501
1677
-
1678
- Deletes a Cluster Compute. # noqa: E501
1679
- This method makes a synchronous HTTP request by default. To make an
1680
- asynchronous HTTP request, please pass async_req=True
1681
- >>> thread = api.delete_cluster_compute(cluster_compute_id, async_req=True)
1682
- >>> result = thread.get()
1683
-
1684
- :param async_req bool: execute request asynchronously
1685
- :param str cluster_compute_id: ID of the Cluster Compute to delete. (required)
1686
- :param _preload_content: if False, the urllib3.HTTPResponse object will
1687
- be returned without reading/decoding response
1688
- data. Default is True.
1689
- :param _request_timeout: timeout setting for this request. If one
1690
- number provided, it will be total request
1691
- timeout. It can also be a pair (tuple) of
1692
- (connection, read) timeouts.
1693
- :return: None
1694
- If the method is called asynchronously,
1695
- returns the request thread.
1696
- """
1697
- kwargs['_return_http_data_only'] = True
1698
- return self.delete_cluster_compute_with_http_info(cluster_compute_id, **kwargs) # noqa: E501
1699
-
1700
- def delete_cluster_compute_with_http_info(self, cluster_compute_id, **kwargs): # noqa: E501
1701
- """Delete Cluster Compute # noqa: E501
1702
-
1703
- Deletes a Cluster Compute. # noqa: E501
1704
- This method makes a synchronous HTTP request by default. To make an
1705
- asynchronous HTTP request, please pass async_req=True
1706
- >>> thread = api.delete_cluster_compute_with_http_info(cluster_compute_id, async_req=True)
1707
- >>> result = thread.get()
1708
-
1709
- :param async_req bool: execute request asynchronously
1710
- :param str cluster_compute_id: ID of the Cluster Compute to delete. (required)
1711
- :param _return_http_data_only: response data without head status code
1712
- and headers
1713
- :param _preload_content: if False, the urllib3.HTTPResponse object will
1714
- be returned without reading/decoding response
1715
- data. Default is True.
1716
- :param _request_timeout: timeout setting for this request. If one
1717
- number provided, it will be total request
1718
- timeout. It can also be a pair (tuple) of
1719
- (connection, read) timeouts.
1720
- :return: None
1721
- If the method is called asynchronously,
1722
- returns the request thread.
1723
- """
1724
-
1725
- local_var_params = locals()
1726
-
1727
- all_params = [
1728
- 'cluster_compute_id'
1729
- ]
1730
- all_params.extend(
1731
- [
1732
- 'async_req',
1733
- '_return_http_data_only',
1734
- '_preload_content',
1735
- '_request_timeout'
1736
- ]
1737
- )
1738
-
1739
- for key, val in six.iteritems(local_var_params['kwargs']):
1740
- if key not in all_params:
1741
- raise ApiTypeError(
1742
- "Got an unexpected keyword argument '%s'"
1743
- " to method delete_cluster_compute" % key
1397
+ " to method delete_cluster_compute" % key
1744
1398
  )
1745
1399
  local_var_params[key] = val
1746
1400
  del local_var_params['kwargs']
@@ -1786,120 +1440,6 @@ class DefaultApi(object):
1786
1440
  _request_timeout=local_var_params.get('_request_timeout'),
1787
1441
  collection_formats=collection_formats)
1788
1442
 
1789
- def delete_cluster_environment(self, cluster_config_id, **kwargs): # noqa: E501
1790
- """Delete Cluster Environment # noqa: E501
1791
-
1792
- Deletes a Cluster Environment. # noqa: E501
1793
- This method makes a synchronous HTTP request by default. To make an
1794
- asynchronous HTTP request, please pass async_req=True
1795
- >>> thread = api.delete_cluster_environment(cluster_config_id, async_req=True)
1796
- >>> result = thread.get()
1797
-
1798
- :param async_req bool: execute request asynchronously
1799
- :param str cluster_config_id: ID of the Cluster Environment to delete. (required)
1800
- :param _preload_content: if False, the urllib3.HTTPResponse object will
1801
- be returned without reading/decoding response
1802
- data. Default is True.
1803
- :param _request_timeout: timeout setting for this request. If one
1804
- number provided, it will be total request
1805
- timeout. It can also be a pair (tuple) of
1806
- (connection, read) timeouts.
1807
- :return: None
1808
- If the method is called asynchronously,
1809
- returns the request thread.
1810
- """
1811
- kwargs['_return_http_data_only'] = True
1812
- return self.delete_cluster_environment_with_http_info(cluster_config_id, **kwargs) # noqa: E501
1813
-
1814
- def delete_cluster_environment_with_http_info(self, cluster_config_id, **kwargs): # noqa: E501
1815
- """Delete Cluster Environment # noqa: E501
1816
-
1817
- Deletes a Cluster Environment. # noqa: E501
1818
- This method makes a synchronous HTTP request by default. To make an
1819
- asynchronous HTTP request, please pass async_req=True
1820
- >>> thread = api.delete_cluster_environment_with_http_info(cluster_config_id, async_req=True)
1821
- >>> result = thread.get()
1822
-
1823
- :param async_req bool: execute request asynchronously
1824
- :param str cluster_config_id: ID of the Cluster Environment to delete. (required)
1825
- :param _return_http_data_only: response data without head status code
1826
- and headers
1827
- :param _preload_content: if False, the urllib3.HTTPResponse object will
1828
- be returned without reading/decoding response
1829
- data. Default is True.
1830
- :param _request_timeout: timeout setting for this request. If one
1831
- number provided, it will be total request
1832
- timeout. It can also be a pair (tuple) of
1833
- (connection, read) timeouts.
1834
- :return: None
1835
- If the method is called asynchronously,
1836
- returns the request thread.
1837
- """
1838
-
1839
- local_var_params = locals()
1840
-
1841
- all_params = [
1842
- 'cluster_config_id'
1843
- ]
1844
- all_params.extend(
1845
- [
1846
- 'async_req',
1847
- '_return_http_data_only',
1848
- '_preload_content',
1849
- '_request_timeout'
1850
- ]
1851
- )
1852
-
1853
- for key, val in six.iteritems(local_var_params['kwargs']):
1854
- if key not in all_params:
1855
- raise ApiTypeError(
1856
- "Got an unexpected keyword argument '%s'"
1857
- " to method delete_cluster_environment" % key
1858
- )
1859
- local_var_params[key] = val
1860
- del local_var_params['kwargs']
1861
- # verify the required parameter 'cluster_config_id' is set
1862
- if self.api_client.client_side_validation and ('cluster_config_id' not in local_var_params or # noqa: E501
1863
- local_var_params['cluster_config_id'] is None): # noqa: E501
1864
- raise ApiValueError("Missing the required parameter `cluster_config_id` when calling `delete_cluster_environment`") # noqa: E501
1865
-
1866
- collection_formats = {}
1867
-
1868
- path_params = {}
1869
- if 'cluster_config_id' in local_var_params:
1870
- path_params['cluster_config_id'] = local_var_params['cluster_config_id'] # noqa: E501
1871
-
1872
- query_params = []
1873
-
1874
- header_params = {}
1875
-
1876
- form_params = []
1877
- local_var_files = {}
1878
-
1879
- body_params = None
1880
- # HTTP header `Accept`
1881
- header_params['Accept'] = self.api_client.select_header_accept(
1882
- ['application/json']) # noqa: E501
1883
-
1884
- # Authentication setting
1885
- auth_settings = [] # noqa: E501
1886
-
1887
- return self.api_client.call_api(
1888
- '/cluster_environments/{cluster_config_id}', 'DELETE',
1889
- path_params,
1890
- query_params,
1891
- header_params,
1892
- body=body_params,
1893
- post_params=form_params,
1894
- files=local_var_files,
1895
- response_type=None, # noqa: E501
1896
- auth_settings=auth_settings,
1897
- async_req=local_var_params.get('async_req'),
1898
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
1899
- _preload_content=local_var_params.get('_preload_content', True),
1900
- _request_timeout=local_var_params.get('_request_timeout'),
1901
- collection_formats=collection_formats)
1902
-
1903
1443
  def delete_project(self, project_id, **kwargs): # noqa: E501
1904
1444
  """Delete Project # noqa: E501
1905
1445
 
@@ -2812,17 +2352,17 @@ class DefaultApi(object):
2812
2352
  _request_timeout=local_var_params.get('_request_timeout'),
2813
2353
  collection_formats=collection_formats)
2814
2354
 
2815
- def get_cluster_environment_build_logs(self, cluster_environment_build_id, **kwargs): # noqa: E501
2816
- """Get Cluster Environment Build Logs # noqa: E501
2355
+ def get_cluster_operation(self, cluster_operation_id, **kwargs): # noqa: E501
2356
+ """Get Cluster Operation # noqa: E501
2817
2357
 
2818
- Retrieves logs for a Cluster Environment Build. # noqa: E501
2358
+ Retrieves a Cluster Operation. # noqa: E501
2819
2359
  This method makes a synchronous HTTP request by default. To make an
2820
2360
  asynchronous HTTP request, please pass async_req=True
2821
- >>> thread = api.get_cluster_environment_build_logs(cluster_environment_build_id, async_req=True)
2361
+ >>> thread = api.get_cluster_operation(cluster_operation_id, async_req=True)
2822
2362
  >>> result = thread.get()
2823
2363
 
2824
2364
  :param async_req bool: execute request asynchronously
2825
- :param str cluster_environment_build_id: ID of the Cluster Environment Build to retrieve logs for. (required)
2365
+ :param str cluster_operation_id: ID of the Cluster Operation to retrieve. (required)
2826
2366
  :param _preload_content: if False, the urllib3.HTTPResponse object will
2827
2367
  be returned without reading/decoding response
2828
2368
  data. Default is True.
@@ -2830,24 +2370,24 @@ class DefaultApi(object):
2830
2370
  number provided, it will be total request
2831
2371
  timeout. It can also be a pair (tuple) of
2832
2372
  (connection, read) timeouts.
2833
- :return: ClusterenvironmentbuildlogresponseResponse
2373
+ :return: ClusteroperationResponse
2834
2374
  If the method is called asynchronously,
2835
2375
  returns the request thread.
2836
2376
  """
2837
2377
  kwargs['_return_http_data_only'] = True
2838
- return self.get_cluster_environment_build_logs_with_http_info(cluster_environment_build_id, **kwargs) # noqa: E501
2378
+ return self.get_cluster_operation_with_http_info(cluster_operation_id, **kwargs) # noqa: E501
2839
2379
 
2840
- def get_cluster_environment_build_logs_with_http_info(self, cluster_environment_build_id, **kwargs): # noqa: E501
2841
- """Get Cluster Environment Build Logs # noqa: E501
2380
+ def get_cluster_operation_with_http_info(self, cluster_operation_id, **kwargs): # noqa: E501
2381
+ """Get Cluster Operation # noqa: E501
2842
2382
 
2843
- Retrieves logs for a Cluster Environment Build. # noqa: E501
2383
+ Retrieves a Cluster Operation. # noqa: E501
2844
2384
  This method makes a synchronous HTTP request by default. To make an
2845
2385
  asynchronous HTTP request, please pass async_req=True
2846
- >>> thread = api.get_cluster_environment_build_logs_with_http_info(cluster_environment_build_id, async_req=True)
2386
+ >>> thread = api.get_cluster_operation_with_http_info(cluster_operation_id, async_req=True)
2847
2387
  >>> result = thread.get()
2848
2388
 
2849
2389
  :param async_req bool: execute request asynchronously
2850
- :param str cluster_environment_build_id: ID of the Cluster Environment Build to retrieve logs for. (required)
2390
+ :param str cluster_operation_id: ID of the Cluster Operation to retrieve. (required)
2851
2391
  :param _return_http_data_only: response data without head status code
2852
2392
  and headers
2853
2393
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -2857,7 +2397,7 @@ class DefaultApi(object):
2857
2397
  number provided, it will be total request
2858
2398
  timeout. It can also be a pair (tuple) of
2859
2399
  (connection, read) timeouts.
2860
- :return: tuple(ClusterenvironmentbuildlogresponseResponse, status_code(int), headers(HTTPHeaderDict))
2400
+ :return: tuple(ClusteroperationResponse, status_code(int), headers(HTTPHeaderDict))
2861
2401
  If the method is called asynchronously,
2862
2402
  returns the request thread.
2863
2403
  """
@@ -2865,7 +2405,7 @@ class DefaultApi(object):
2865
2405
  local_var_params = locals()
2866
2406
 
2867
2407
  all_params = [
2868
- 'cluster_environment_build_id'
2408
+ 'cluster_operation_id'
2869
2409
  ]
2870
2410
  all_params.extend(
2871
2411
  [
@@ -2880,20 +2420,20 @@ class DefaultApi(object):
2880
2420
  if key not in all_params:
2881
2421
  raise ApiTypeError(
2882
2422
  "Got an unexpected keyword argument '%s'"
2883
- " to method get_cluster_environment_build_logs" % key
2423
+ " to method get_cluster_operation" % key
2884
2424
  )
2885
2425
  local_var_params[key] = val
2886
2426
  del local_var_params['kwargs']
2887
- # verify the required parameter 'cluster_environment_build_id' is set
2888
- if self.api_client.client_side_validation and ('cluster_environment_build_id' not in local_var_params or # noqa: E501
2889
- local_var_params['cluster_environment_build_id'] is None): # noqa: E501
2890
- raise ApiValueError("Missing the required parameter `cluster_environment_build_id` when calling `get_cluster_environment_build_logs`") # noqa: E501
2427
+ # verify the required parameter 'cluster_operation_id' is set
2428
+ if self.api_client.client_side_validation and ('cluster_operation_id' not in local_var_params or # noqa: E501
2429
+ local_var_params['cluster_operation_id'] is None): # noqa: E501
2430
+ raise ApiValueError("Missing the required parameter `cluster_operation_id` when calling `get_cluster_operation`") # noqa: E501
2891
2431
 
2892
2432
  collection_formats = {}
2893
2433
 
2894
2434
  path_params = {}
2895
- if 'cluster_environment_build_id' in local_var_params:
2896
- path_params['cluster_environment_build_id'] = local_var_params['cluster_environment_build_id'] # noqa: E501
2435
+ if 'cluster_operation_id' in local_var_params:
2436
+ path_params['cluster_operation_id'] = local_var_params['cluster_operation_id'] # noqa: E501
2897
2437
 
2898
2438
  query_params = []
2899
2439
 
@@ -2911,14 +2451,14 @@ class DefaultApi(object):
2911
2451
  auth_settings = [] # noqa: E501
2912
2452
 
2913
2453
  return self.api_client.call_api(
2914
- '/cluster_environment_builds/{cluster_environment_build_id}/logs', 'GET',
2454
+ '/cluster_operations/{cluster_operation_id}', 'GET',
2915
2455
  path_params,
2916
2456
  query_params,
2917
2457
  header_params,
2918
2458
  body=body_params,
2919
2459
  post_params=form_params,
2920
2460
  files=local_var_files,
2921
- response_type='ClusterenvironmentbuildlogresponseResponse', # noqa: E501
2461
+ response_type='ClusteroperationResponse', # noqa: E501
2922
2462
  auth_settings=auth_settings,
2923
2463
  async_req=local_var_params.get('async_req'),
2924
2464
  _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -2926,17 +2466,17 @@ class DefaultApi(object):
2926
2466
  _request_timeout=local_var_params.get('_request_timeout'),
2927
2467
  collection_formats=collection_formats)
2928
2468
 
2929
- def get_cluster_environment_build_operation(self, cluster_environment_build_operation_id, **kwargs): # noqa: E501
2930
- """Get Cluster Environment Build Operation # noqa: E501
2469
+ def get_compute_template(self, template_id, **kwargs): # noqa: E501
2470
+ """Get Compute Template # noqa: E501
2931
2471
 
2932
- Retrieves a Cluster Environment Build Operation. # noqa: E501
2472
+ DEPRECATED: Use Cluster Computes API instead. Retrieves a compute template. # noqa: E501
2933
2473
  This method makes a synchronous HTTP request by default. To make an
2934
2474
  asynchronous HTTP request, please pass async_req=True
2935
- >>> thread = api.get_cluster_environment_build_operation(cluster_environment_build_operation_id, async_req=True)
2475
+ >>> thread = api.get_compute_template(template_id, async_req=True)
2936
2476
  >>> result = thread.get()
2937
2477
 
2938
2478
  :param async_req bool: execute request asynchronously
2939
- :param str cluster_environment_build_operation_id: ID of the Cluster Environment Build Operation to retrieve. (required)
2479
+ :param str template_id: (required)
2940
2480
  :param _preload_content: if False, the urllib3.HTTPResponse object will
2941
2481
  be returned without reading/decoding response
2942
2482
  data. Default is True.
@@ -2944,24 +2484,24 @@ class DefaultApi(object):
2944
2484
  number provided, it will be total request
2945
2485
  timeout. It can also be a pair (tuple) of
2946
2486
  (connection, read) timeouts.
2947
- :return: ClusterenvironmentbuildoperationResponse
2487
+ :return: ComputetemplateResponse
2948
2488
  If the method is called asynchronously,
2949
2489
  returns the request thread.
2950
2490
  """
2951
2491
  kwargs['_return_http_data_only'] = True
2952
- return self.get_cluster_environment_build_operation_with_http_info(cluster_environment_build_operation_id, **kwargs) # noqa: E501
2492
+ return self.get_compute_template_with_http_info(template_id, **kwargs) # noqa: E501
2953
2493
 
2954
- def get_cluster_environment_build_operation_with_http_info(self, cluster_environment_build_operation_id, **kwargs): # noqa: E501
2955
- """Get Cluster Environment Build Operation # noqa: E501
2494
+ def get_compute_template_with_http_info(self, template_id, **kwargs): # noqa: E501
2495
+ """Get Compute Template # noqa: E501
2956
2496
 
2957
- Retrieves a Cluster Environment Build Operation. # noqa: E501
2497
+ DEPRECATED: Use Cluster Computes API instead. Retrieves a compute template. # noqa: E501
2958
2498
  This method makes a synchronous HTTP request by default. To make an
2959
2499
  asynchronous HTTP request, please pass async_req=True
2960
- >>> thread = api.get_cluster_environment_build_operation_with_http_info(cluster_environment_build_operation_id, async_req=True)
2500
+ >>> thread = api.get_compute_template_with_http_info(template_id, async_req=True)
2961
2501
  >>> result = thread.get()
2962
2502
 
2963
2503
  :param async_req bool: execute request asynchronously
2964
- :param str cluster_environment_build_operation_id: ID of the Cluster Environment Build Operation to retrieve. (required)
2504
+ :param str template_id: (required)
2965
2505
  :param _return_http_data_only: response data without head status code
2966
2506
  and headers
2967
2507
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -2971,7 +2511,7 @@ class DefaultApi(object):
2971
2511
  number provided, it will be total request
2972
2512
  timeout. It can also be a pair (tuple) of
2973
2513
  (connection, read) timeouts.
2974
- :return: tuple(ClusterenvironmentbuildoperationResponse, status_code(int), headers(HTTPHeaderDict))
2514
+ :return: tuple(ComputetemplateResponse, status_code(int), headers(HTTPHeaderDict))
2975
2515
  If the method is called asynchronously,
2976
2516
  returns the request thread.
2977
2517
  """
@@ -2979,7 +2519,7 @@ class DefaultApi(object):
2979
2519
  local_var_params = locals()
2980
2520
 
2981
2521
  all_params = [
2982
- 'cluster_environment_build_operation_id'
2522
+ 'template_id'
2983
2523
  ]
2984
2524
  all_params.extend(
2985
2525
  [
@@ -2994,20 +2534,20 @@ class DefaultApi(object):
2994
2534
  if key not in all_params:
2995
2535
  raise ApiTypeError(
2996
2536
  "Got an unexpected keyword argument '%s'"
2997
- " to method get_cluster_environment_build_operation" % key
2537
+ " to method get_compute_template" % key
2998
2538
  )
2999
2539
  local_var_params[key] = val
3000
2540
  del local_var_params['kwargs']
3001
- # verify the required parameter 'cluster_environment_build_operation_id' is set
3002
- if self.api_client.client_side_validation and ('cluster_environment_build_operation_id' not in local_var_params or # noqa: E501
3003
- local_var_params['cluster_environment_build_operation_id'] is None): # noqa: E501
3004
- raise ApiValueError("Missing the required parameter `cluster_environment_build_operation_id` when calling `get_cluster_environment_build_operation`") # noqa: E501
2541
+ # verify the required parameter 'template_id' is set
2542
+ if self.api_client.client_side_validation and ('template_id' not in local_var_params or # noqa: E501
2543
+ local_var_params['template_id'] is None): # noqa: E501
2544
+ raise ApiValueError("Missing the required parameter `template_id` when calling `get_compute_template`") # noqa: E501
3005
2545
 
3006
2546
  collection_formats = {}
3007
2547
 
3008
2548
  path_params = {}
3009
- if 'cluster_environment_build_operation_id' in local_var_params:
3010
- path_params['cluster_environment_build_operation_id'] = local_var_params['cluster_environment_build_operation_id'] # noqa: E501
2549
+ if 'template_id' in local_var_params:
2550
+ path_params['template_id'] = local_var_params['template_id'] # noqa: E501
3011
2551
 
3012
2552
  query_params = []
3013
2553
 
@@ -3025,235 +2565,7 @@ class DefaultApi(object):
3025
2565
  auth_settings = [] # noqa: E501
3026
2566
 
3027
2567
  return self.api_client.call_api(
3028
- '/cluster_environment_build_operations/{cluster_environment_build_operation_id}', 'GET',
3029
- path_params,
3030
- query_params,
3031
- header_params,
3032
- body=body_params,
3033
- post_params=form_params,
3034
- files=local_var_files,
3035
- response_type='ClusterenvironmentbuildoperationResponse', # noqa: E501
3036
- auth_settings=auth_settings,
3037
- async_req=local_var_params.get('async_req'),
3038
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
3039
- _preload_content=local_var_params.get('_preload_content', True),
3040
- _request_timeout=local_var_params.get('_request_timeout'),
3041
- collection_formats=collection_formats)
3042
-
3043
- def get_cluster_operation(self, cluster_operation_id, **kwargs): # noqa: E501
3044
- """Get Cluster Operation # noqa: E501
3045
-
3046
- Retrieves a Cluster Operation. # noqa: E501
3047
- This method makes a synchronous HTTP request by default. To make an
3048
- asynchronous HTTP request, please pass async_req=True
3049
- >>> thread = api.get_cluster_operation(cluster_operation_id, async_req=True)
3050
- >>> result = thread.get()
3051
-
3052
- :param async_req bool: execute request asynchronously
3053
- :param str cluster_operation_id: ID of the Cluster Operation to retrieve. (required)
3054
- :param _preload_content: if False, the urllib3.HTTPResponse object will
3055
- be returned without reading/decoding response
3056
- data. Default is True.
3057
- :param _request_timeout: timeout setting for this request. If one
3058
- number provided, it will be total request
3059
- timeout. It can also be a pair (tuple) of
3060
- (connection, read) timeouts.
3061
- :return: ClusteroperationResponse
3062
- If the method is called asynchronously,
3063
- returns the request thread.
3064
- """
3065
- kwargs['_return_http_data_only'] = True
3066
- return self.get_cluster_operation_with_http_info(cluster_operation_id, **kwargs) # noqa: E501
3067
-
3068
- def get_cluster_operation_with_http_info(self, cluster_operation_id, **kwargs): # noqa: E501
3069
- """Get Cluster Operation # noqa: E501
3070
-
3071
- Retrieves a Cluster Operation. # noqa: E501
3072
- This method makes a synchronous HTTP request by default. To make an
3073
- asynchronous HTTP request, please pass async_req=True
3074
- >>> thread = api.get_cluster_operation_with_http_info(cluster_operation_id, async_req=True)
3075
- >>> result = thread.get()
3076
-
3077
- :param async_req bool: execute request asynchronously
3078
- :param str cluster_operation_id: ID of the Cluster Operation to retrieve. (required)
3079
- :param _return_http_data_only: response data without head status code
3080
- and headers
3081
- :param _preload_content: if False, the urllib3.HTTPResponse object will
3082
- be returned without reading/decoding response
3083
- data. Default is True.
3084
- :param _request_timeout: timeout setting for this request. If one
3085
- number provided, it will be total request
3086
- timeout. It can also be a pair (tuple) of
3087
- (connection, read) timeouts.
3088
- :return: tuple(ClusteroperationResponse, status_code(int), headers(HTTPHeaderDict))
3089
- If the method is called asynchronously,
3090
- returns the request thread.
3091
- """
3092
-
3093
- local_var_params = locals()
3094
-
3095
- all_params = [
3096
- 'cluster_operation_id'
3097
- ]
3098
- all_params.extend(
3099
- [
3100
- 'async_req',
3101
- '_return_http_data_only',
3102
- '_preload_content',
3103
- '_request_timeout'
3104
- ]
3105
- )
3106
-
3107
- for key, val in six.iteritems(local_var_params['kwargs']):
3108
- if key not in all_params:
3109
- raise ApiTypeError(
3110
- "Got an unexpected keyword argument '%s'"
3111
- " to method get_cluster_operation" % key
3112
- )
3113
- local_var_params[key] = val
3114
- del local_var_params['kwargs']
3115
- # verify the required parameter 'cluster_operation_id' is set
3116
- if self.api_client.client_side_validation and ('cluster_operation_id' not in local_var_params or # noqa: E501
3117
- local_var_params['cluster_operation_id'] is None): # noqa: E501
3118
- raise ApiValueError("Missing the required parameter `cluster_operation_id` when calling `get_cluster_operation`") # noqa: E501
3119
-
3120
- collection_formats = {}
3121
-
3122
- path_params = {}
3123
- if 'cluster_operation_id' in local_var_params:
3124
- path_params['cluster_operation_id'] = local_var_params['cluster_operation_id'] # noqa: E501
3125
-
3126
- query_params = []
3127
-
3128
- header_params = {}
3129
-
3130
- form_params = []
3131
- local_var_files = {}
3132
-
3133
- body_params = None
3134
- # HTTP header `Accept`
3135
- header_params['Accept'] = self.api_client.select_header_accept(
3136
- ['application/json']) # noqa: E501
3137
-
3138
- # Authentication setting
3139
- auth_settings = [] # noqa: E501
3140
-
3141
- return self.api_client.call_api(
3142
- '/cluster_operations/{cluster_operation_id}', 'GET',
3143
- path_params,
3144
- query_params,
3145
- header_params,
3146
- body=body_params,
3147
- post_params=form_params,
3148
- files=local_var_files,
3149
- response_type='ClusteroperationResponse', # noqa: E501
3150
- auth_settings=auth_settings,
3151
- async_req=local_var_params.get('async_req'),
3152
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
3153
- _preload_content=local_var_params.get('_preload_content', True),
3154
- _request_timeout=local_var_params.get('_request_timeout'),
3155
- collection_formats=collection_formats)
3156
-
3157
- def get_compute_template(self, template_id, **kwargs): # noqa: E501
3158
- """Get Compute Template # noqa: E501
3159
-
3160
- DEPRECATED: Use Cluster Computes API instead. Retrieves a compute template. # noqa: E501
3161
- This method makes a synchronous HTTP request by default. To make an
3162
- asynchronous HTTP request, please pass async_req=True
3163
- >>> thread = api.get_compute_template(template_id, async_req=True)
3164
- >>> result = thread.get()
3165
-
3166
- :param async_req bool: execute request asynchronously
3167
- :param str template_id: (required)
3168
- :param _preload_content: if False, the urllib3.HTTPResponse object will
3169
- be returned without reading/decoding response
3170
- data. Default is True.
3171
- :param _request_timeout: timeout setting for this request. If one
3172
- number provided, it will be total request
3173
- timeout. It can also be a pair (tuple) of
3174
- (connection, read) timeouts.
3175
- :return: ComputetemplateResponse
3176
- If the method is called asynchronously,
3177
- returns the request thread.
3178
- """
3179
- kwargs['_return_http_data_only'] = True
3180
- return self.get_compute_template_with_http_info(template_id, **kwargs) # noqa: E501
3181
-
3182
- def get_compute_template_with_http_info(self, template_id, **kwargs): # noqa: E501
3183
- """Get Compute Template # noqa: E501
3184
-
3185
- DEPRECATED: Use Cluster Computes API instead. Retrieves a compute template. # noqa: E501
3186
- This method makes a synchronous HTTP request by default. To make an
3187
- asynchronous HTTP request, please pass async_req=True
3188
- >>> thread = api.get_compute_template_with_http_info(template_id, async_req=True)
3189
- >>> result = thread.get()
3190
-
3191
- :param async_req bool: execute request asynchronously
3192
- :param str template_id: (required)
3193
- :param _return_http_data_only: response data without head status code
3194
- and headers
3195
- :param _preload_content: if False, the urllib3.HTTPResponse object will
3196
- be returned without reading/decoding response
3197
- data. Default is True.
3198
- :param _request_timeout: timeout setting for this request. If one
3199
- number provided, it will be total request
3200
- timeout. It can also be a pair (tuple) of
3201
- (connection, read) timeouts.
3202
- :return: tuple(ComputetemplateResponse, status_code(int), headers(HTTPHeaderDict))
3203
- If the method is called asynchronously,
3204
- returns the request thread.
3205
- """
3206
-
3207
- local_var_params = locals()
3208
-
3209
- all_params = [
3210
- 'template_id'
3211
- ]
3212
- all_params.extend(
3213
- [
3214
- 'async_req',
3215
- '_return_http_data_only',
3216
- '_preload_content',
3217
- '_request_timeout'
3218
- ]
3219
- )
3220
-
3221
- for key, val in six.iteritems(local_var_params['kwargs']):
3222
- if key not in all_params:
3223
- raise ApiTypeError(
3224
- "Got an unexpected keyword argument '%s'"
3225
- " to method get_compute_template" % key
3226
- )
3227
- local_var_params[key] = val
3228
- del local_var_params['kwargs']
3229
- # verify the required parameter 'template_id' is set
3230
- if self.api_client.client_side_validation and ('template_id' not in local_var_params or # noqa: E501
3231
- local_var_params['template_id'] is None): # noqa: E501
3232
- raise ApiValueError("Missing the required parameter `template_id` when calling `get_compute_template`") # noqa: E501
3233
-
3234
- collection_formats = {}
3235
-
3236
- path_params = {}
3237
- if 'template_id' in local_var_params:
3238
- path_params['template_id'] = local_var_params['template_id'] # noqa: E501
3239
-
3240
- query_params = []
3241
-
3242
- header_params = {}
3243
-
3244
- form_params = []
3245
- local_var_files = {}
3246
-
3247
- body_params = None
3248
- # HTTP header `Accept`
3249
- header_params['Accept'] = self.api_client.select_header_accept(
3250
- ['application/json']) # noqa: E501
3251
-
3252
- # Authentication setting
3253
- auth_settings = [] # noqa: E501
3254
-
3255
- return self.api_client.call_api(
3256
- '/compute_templates/{template_id}', 'GET',
2568
+ '/compute_templates/{template_id}', 'GET',
3257
2569
  path_params,
3258
2570
  query_params,
3259
2571
  header_params,
@@ -4059,18 +3371,17 @@ class DefaultApi(object):
4059
3371
  _request_timeout=local_var_params.get('_request_timeout'),
4060
3372
  collection_formats=collection_formats)
4061
3373
 
4062
- def get_organization_temporary_object_storage_credentials(self, organization_id, region, **kwargs): # noqa: E501
4063
- """Get Organization Temporary Object Storage Credentials # noqa: E501
3374
+ def get_production_job(self, production_job_id, **kwargs): # noqa: E501
3375
+ """Get Production Job # noqa: E501
4064
3376
 
4065
- Retrieves temporary object storage config and credentials scoped to an organization and region. # noqa: E501
3377
+ Get an Production Job # noqa: E501
4066
3378
  This method makes a synchronous HTTP request by default. To make an
4067
3379
  asynchronous HTTP request, please pass async_req=True
4068
- >>> thread = api.get_organization_temporary_object_storage_credentials(organization_id, region, async_req=True)
3380
+ >>> thread = api.get_production_job(production_job_id, async_req=True)
4069
3381
  >>> result = thread.get()
4070
3382
 
4071
3383
  :param async_req bool: execute request asynchronously
4072
- :param str organization_id: (required)
4073
- :param str region: (required)
3384
+ :param str production_job_id: (required)
4074
3385
  :param _preload_content: if False, the urllib3.HTTPResponse object will
4075
3386
  be returned without reading/decoding response
4076
3387
  data. Default is True.
@@ -4078,25 +3389,24 @@ class DefaultApi(object):
4078
3389
  number provided, it will be total request
4079
3390
  timeout. It can also be a pair (tuple) of
4080
3391
  (connection, read) timeouts.
4081
- :return: ObjectstorageconfigResponse
3392
+ :return: ProductionjobResponse
4082
3393
  If the method is called asynchronously,
4083
3394
  returns the request thread.
4084
3395
  """
4085
3396
  kwargs['_return_http_data_only'] = True
4086
- return self.get_organization_temporary_object_storage_credentials_with_http_info(organization_id, region, **kwargs) # noqa: E501
3397
+ return self.get_production_job_with_http_info(production_job_id, **kwargs) # noqa: E501
4087
3398
 
4088
- def get_organization_temporary_object_storage_credentials_with_http_info(self, organization_id, region, **kwargs): # noqa: E501
4089
- """Get Organization Temporary Object Storage Credentials # noqa: E501
3399
+ def get_production_job_with_http_info(self, production_job_id, **kwargs): # noqa: E501
3400
+ """Get Production Job # noqa: E501
4090
3401
 
4091
- Retrieves temporary object storage config and credentials scoped to an organization and region. # noqa: E501
3402
+ Get an Production Job # noqa: E501
4092
3403
  This method makes a synchronous HTTP request by default. To make an
4093
3404
  asynchronous HTTP request, please pass async_req=True
4094
- >>> thread = api.get_organization_temporary_object_storage_credentials_with_http_info(organization_id, region, async_req=True)
3405
+ >>> thread = api.get_production_job_with_http_info(production_job_id, async_req=True)
4095
3406
  >>> result = thread.get()
4096
3407
 
4097
3408
  :param async_req bool: execute request asynchronously
4098
- :param str organization_id: (required)
4099
- :param str region: (required)
3409
+ :param str production_job_id: (required)
4100
3410
  :param _return_http_data_only: response data without head status code
4101
3411
  and headers
4102
3412
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -4106,7 +3416,7 @@ class DefaultApi(object):
4106
3416
  number provided, it will be total request
4107
3417
  timeout. It can also be a pair (tuple) of
4108
3418
  (connection, read) timeouts.
4109
- :return: tuple(ObjectstorageconfigResponse, status_code(int), headers(HTTPHeaderDict))
3419
+ :return: tuple(ProductionjobResponse, status_code(int), headers(HTTPHeaderDict))
4110
3420
  If the method is called asynchronously,
4111
3421
  returns the request thread.
4112
3422
  """
@@ -4114,8 +3424,7 @@ class DefaultApi(object):
4114
3424
  local_var_params = locals()
4115
3425
 
4116
3426
  all_params = [
4117
- 'organization_id',
4118
- 'region'
3427
+ 'production_job_id'
4119
3428
  ]
4120
3429
  all_params.extend(
4121
3430
  [
@@ -4130,26 +3439,20 @@ class DefaultApi(object):
4130
3439
  if key not in all_params:
4131
3440
  raise ApiTypeError(
4132
3441
  "Got an unexpected keyword argument '%s'"
4133
- " to method get_organization_temporary_object_storage_credentials" % key
3442
+ " to method get_production_job" % key
4134
3443
  )
4135
3444
  local_var_params[key] = val
4136
3445
  del local_var_params['kwargs']
4137
- # verify the required parameter 'organization_id' is set
4138
- if self.api_client.client_side_validation and ('organization_id' not in local_var_params or # noqa: E501
4139
- local_var_params['organization_id'] is None): # noqa: E501
4140
- raise ApiValueError("Missing the required parameter `organization_id` when calling `get_organization_temporary_object_storage_credentials`") # noqa: E501
4141
- # verify the required parameter 'region' is set
4142
- if self.api_client.client_side_validation and ('region' not in local_var_params or # noqa: E501
4143
- local_var_params['region'] is None): # noqa: E501
4144
- raise ApiValueError("Missing the required parameter `region` when calling `get_organization_temporary_object_storage_credentials`") # noqa: E501
3446
+ # verify the required parameter 'production_job_id' is set
3447
+ if self.api_client.client_side_validation and ('production_job_id' not in local_var_params or # noqa: E501
3448
+ local_var_params['production_job_id'] is None): # noqa: E501
3449
+ raise ApiValueError("Missing the required parameter `production_job_id` when calling `get_production_job`") # noqa: E501
4145
3450
 
4146
3451
  collection_formats = {}
4147
3452
 
4148
3453
  path_params = {}
4149
- if 'organization_id' in local_var_params:
4150
- path_params['organization_id'] = local_var_params['organization_id'] # noqa: E501
4151
- if 'region' in local_var_params:
4152
- path_params['region'] = local_var_params['region'] # noqa: E501
3454
+ if 'production_job_id' in local_var_params:
3455
+ path_params['production_job_id'] = local_var_params['production_job_id'] # noqa: E501
4153
3456
 
4154
3457
  query_params = []
4155
3458
 
@@ -4167,128 +3470,14 @@ class DefaultApi(object):
4167
3470
  auth_settings = [] # noqa: E501
4168
3471
 
4169
3472
  return self.api_client.call_api(
4170
- '/organizations/{organization_id}/{region}/temporary_object_storage_config', 'GET',
3473
+ '/production_jobs/{production_job_id}', 'GET',
4171
3474
  path_params,
4172
3475
  query_params,
4173
3476
  header_params,
4174
3477
  body=body_params,
4175
3478
  post_params=form_params,
4176
3479
  files=local_var_files,
4177
- response_type='ObjectstorageconfigResponse', # noqa: E501
4178
- auth_settings=auth_settings,
4179
- async_req=local_var_params.get('async_req'),
4180
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
4181
- _preload_content=local_var_params.get('_preload_content', True),
4182
- _request_timeout=local_var_params.get('_request_timeout'),
4183
- collection_formats=collection_formats)
4184
-
4185
- def get_production_job(self, production_job_id, **kwargs): # noqa: E501
4186
- """Get Production Job # noqa: E501
4187
-
4188
- Get an Production Job # noqa: E501
4189
- This method makes a synchronous HTTP request by default. To make an
4190
- asynchronous HTTP request, please pass async_req=True
4191
- >>> thread = api.get_production_job(production_job_id, async_req=True)
4192
- >>> result = thread.get()
4193
-
4194
- :param async_req bool: execute request asynchronously
4195
- :param str production_job_id: (required)
4196
- :param _preload_content: if False, the urllib3.HTTPResponse object will
4197
- be returned without reading/decoding response
4198
- data. Default is True.
4199
- :param _request_timeout: timeout setting for this request. If one
4200
- number provided, it will be total request
4201
- timeout. It can also be a pair (tuple) of
4202
- (connection, read) timeouts.
4203
- :return: ProductionjobResponse
4204
- If the method is called asynchronously,
4205
- returns the request thread.
4206
- """
4207
- kwargs['_return_http_data_only'] = True
4208
- return self.get_production_job_with_http_info(production_job_id, **kwargs) # noqa: E501
4209
-
4210
- def get_production_job_with_http_info(self, production_job_id, **kwargs): # noqa: E501
4211
- """Get Production Job # noqa: E501
4212
-
4213
- Get an Production Job # noqa: E501
4214
- This method makes a synchronous HTTP request by default. To make an
4215
- asynchronous HTTP request, please pass async_req=True
4216
- >>> thread = api.get_production_job_with_http_info(production_job_id, async_req=True)
4217
- >>> result = thread.get()
4218
-
4219
- :param async_req bool: execute request asynchronously
4220
- :param str production_job_id: (required)
4221
- :param _return_http_data_only: response data without head status code
4222
- and headers
4223
- :param _preload_content: if False, the urllib3.HTTPResponse object will
4224
- be returned without reading/decoding response
4225
- data. Default is True.
4226
- :param _request_timeout: timeout setting for this request. If one
4227
- number provided, it will be total request
4228
- timeout. It can also be a pair (tuple) of
4229
- (connection, read) timeouts.
4230
- :return: tuple(ProductionjobResponse, status_code(int), headers(HTTPHeaderDict))
4231
- If the method is called asynchronously,
4232
- returns the request thread.
4233
- """
4234
-
4235
- local_var_params = locals()
4236
-
4237
- all_params = [
4238
- 'production_job_id'
4239
- ]
4240
- all_params.extend(
4241
- [
4242
- 'async_req',
4243
- '_return_http_data_only',
4244
- '_preload_content',
4245
- '_request_timeout'
4246
- ]
4247
- )
4248
-
4249
- for key, val in six.iteritems(local_var_params['kwargs']):
4250
- if key not in all_params:
4251
- raise ApiTypeError(
4252
- "Got an unexpected keyword argument '%s'"
4253
- " to method get_production_job" % key
4254
- )
4255
- local_var_params[key] = val
4256
- del local_var_params['kwargs']
4257
- # verify the required parameter 'production_job_id' is set
4258
- if self.api_client.client_side_validation and ('production_job_id' not in local_var_params or # noqa: E501
4259
- local_var_params['production_job_id'] is None): # noqa: E501
4260
- raise ApiValueError("Missing the required parameter `production_job_id` when calling `get_production_job`") # noqa: E501
4261
-
4262
- collection_formats = {}
4263
-
4264
- path_params = {}
4265
- if 'production_job_id' in local_var_params:
4266
- path_params['production_job_id'] = local_var_params['production_job_id'] # noqa: E501
4267
-
4268
- query_params = []
4269
-
4270
- header_params = {}
4271
-
4272
- form_params = []
4273
- local_var_files = {}
4274
-
4275
- body_params = None
4276
- # HTTP header `Accept`
4277
- header_params['Accept'] = self.api_client.select_header_accept(
4278
- ['application/json']) # noqa: E501
4279
-
4280
- # Authentication setting
4281
- auth_settings = [] # noqa: E501
4282
-
4283
- return self.api_client.call_api(
4284
- '/production_jobs/{production_job_id}', 'GET',
4285
- path_params,
4286
- query_params,
4287
- header_params,
4288
- body=body_params,
4289
- post_params=form_params,
4290
- files=local_var_files,
4291
- response_type='ProductionjobResponse', # noqa: E501
3480
+ response_type='ProductionjobResponse', # noqa: E501
4292
3481
  auth_settings=auth_settings,
4293
3482
  async_req=local_var_params.get('async_req'),
4294
3483
  _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -4663,245 +3852,17 @@ class DefaultApi(object):
4663
3852
  kwargs['_return_http_data_only'] = True
4664
3853
  return self.get_service_v2_with_http_info(service_id, **kwargs) # noqa: E501
4665
3854
 
4666
- def get_service_v2_with_http_info(self, service_id, **kwargs): # noqa: E501
4667
- """Get Service V2 # noqa: E501
4668
-
4669
- DEPRECATED. Please use the /services endpoint or the get_service command in the SDK. # noqa: E501
4670
- This method makes a synchronous HTTP request by default. To make an
4671
- asynchronous HTTP request, please pass async_req=True
4672
- >>> thread = api.get_service_v2_with_http_info(service_id, async_req=True)
4673
- >>> result = thread.get()
4674
-
4675
- :param async_req bool: execute request asynchronously
4676
- :param str service_id: (required)
4677
- :param _return_http_data_only: response data without head status code
4678
- and headers
4679
- :param _preload_content: if False, the urllib3.HTTPResponse object will
4680
- be returned without reading/decoding response
4681
- data. Default is True.
4682
- :param _request_timeout: timeout setting for this request. If one
4683
- number provided, it will be total request
4684
- timeout. It can also be a pair (tuple) of
4685
- (connection, read) timeouts.
4686
- :return: tuple(Productionservicev2ModelResponse, status_code(int), headers(HTTPHeaderDict))
4687
- If the method is called asynchronously,
4688
- returns the request thread.
4689
- """
4690
-
4691
- local_var_params = locals()
4692
-
4693
- all_params = [
4694
- 'service_id'
4695
- ]
4696
- all_params.extend(
4697
- [
4698
- 'async_req',
4699
- '_return_http_data_only',
4700
- '_preload_content',
4701
- '_request_timeout'
4702
- ]
4703
- )
4704
-
4705
- for key, val in six.iteritems(local_var_params['kwargs']):
4706
- if key not in all_params:
4707
- raise ApiTypeError(
4708
- "Got an unexpected keyword argument '%s'"
4709
- " to method get_service_v2" % key
4710
- )
4711
- local_var_params[key] = val
4712
- del local_var_params['kwargs']
4713
- # verify the required parameter 'service_id' is set
4714
- if self.api_client.client_side_validation and ('service_id' not in local_var_params or # noqa: E501
4715
- local_var_params['service_id'] is None): # noqa: E501
4716
- raise ApiValueError("Missing the required parameter `service_id` when calling `get_service_v2`") # noqa: E501
4717
-
4718
- collection_formats = {}
4719
-
4720
- path_params = {}
4721
- if 'service_id' in local_var_params:
4722
- path_params['service_id'] = local_var_params['service_id'] # noqa: E501
4723
-
4724
- query_params = []
4725
-
4726
- header_params = {}
4727
-
4728
- form_params = []
4729
- local_var_files = {}
4730
-
4731
- body_params = None
4732
- # HTTP header `Accept`
4733
- header_params['Accept'] = self.api_client.select_header_accept(
4734
- ['application/json']) # noqa: E501
4735
-
4736
- # Authentication setting
4737
- auth_settings = [] # noqa: E501
4738
-
4739
- return self.api_client.call_api(
4740
- '/services-v2/{service_id}', 'GET',
4741
- path_params,
4742
- query_params,
4743
- header_params,
4744
- body=body_params,
4745
- post_params=form_params,
4746
- files=local_var_files,
4747
- response_type='Productionservicev2ModelResponse', # noqa: E501
4748
- auth_settings=auth_settings,
4749
- async_req=local_var_params.get('async_req'),
4750
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
4751
- _preload_content=local_var_params.get('_preload_content', True),
4752
- _request_timeout=local_var_params.get('_request_timeout'),
4753
- collection_formats=collection_formats)
4754
-
4755
- def get_session(self, session_id, **kwargs): # noqa: E501
4756
- """Get Session # noqa: E501
4757
-
4758
- DEPRECATED: Use Clusters API instead. Retrieves a Session. # noqa: E501
4759
- This method makes a synchronous HTTP request by default. To make an
4760
- asynchronous HTTP request, please pass async_req=True
4761
- >>> thread = api.get_session(session_id, async_req=True)
4762
- >>> result = thread.get()
4763
-
4764
- :param async_req bool: execute request asynchronously
4765
- :param str session_id: (required)
4766
- :param _preload_content: if False, the urllib3.HTTPResponse object will
4767
- be returned without reading/decoding response
4768
- data. Default is True.
4769
- :param _request_timeout: timeout setting for this request. If one
4770
- number provided, it will be total request
4771
- timeout. It can also be a pair (tuple) of
4772
- (connection, read) timeouts.
4773
- :return: SessionResponse
4774
- If the method is called asynchronously,
4775
- returns the request thread.
4776
- """
4777
- kwargs['_return_http_data_only'] = True
4778
- return self.get_session_with_http_info(session_id, **kwargs) # noqa: E501
4779
-
4780
- def get_session_with_http_info(self, session_id, **kwargs): # noqa: E501
4781
- """Get Session # noqa: E501
4782
-
4783
- DEPRECATED: Use Clusters API instead. Retrieves a Session. # noqa: E501
4784
- This method makes a synchronous HTTP request by default. To make an
4785
- asynchronous HTTP request, please pass async_req=True
4786
- >>> thread = api.get_session_with_http_info(session_id, async_req=True)
4787
- >>> result = thread.get()
4788
-
4789
- :param async_req bool: execute request asynchronously
4790
- :param str session_id: (required)
4791
- :param _return_http_data_only: response data without head status code
4792
- and headers
4793
- :param _preload_content: if False, the urllib3.HTTPResponse object will
4794
- be returned without reading/decoding response
4795
- data. Default is True.
4796
- :param _request_timeout: timeout setting for this request. If one
4797
- number provided, it will be total request
4798
- timeout. It can also be a pair (tuple) of
4799
- (connection, read) timeouts.
4800
- :return: tuple(SessionResponse, status_code(int), headers(HTTPHeaderDict))
4801
- If the method is called asynchronously,
4802
- returns the request thread.
4803
- """
4804
-
4805
- local_var_params = locals()
4806
-
4807
- all_params = [
4808
- 'session_id'
4809
- ]
4810
- all_params.extend(
4811
- [
4812
- 'async_req',
4813
- '_return_http_data_only',
4814
- '_preload_content',
4815
- '_request_timeout'
4816
- ]
4817
- )
4818
-
4819
- for key, val in six.iteritems(local_var_params['kwargs']):
4820
- if key not in all_params:
4821
- raise ApiTypeError(
4822
- "Got an unexpected keyword argument '%s'"
4823
- " to method get_session" % key
4824
- )
4825
- local_var_params[key] = val
4826
- del local_var_params['kwargs']
4827
- # verify the required parameter 'session_id' is set
4828
- if self.api_client.client_side_validation and ('session_id' not in local_var_params or # noqa: E501
4829
- local_var_params['session_id'] is None): # noqa: E501
4830
- raise ApiValueError("Missing the required parameter `session_id` when calling `get_session`") # noqa: E501
4831
-
4832
- collection_formats = {}
4833
-
4834
- path_params = {}
4835
- if 'session_id' in local_var_params:
4836
- path_params['session_id'] = local_var_params['session_id'] # noqa: E501
4837
-
4838
- query_params = []
4839
-
4840
- header_params = {}
4841
-
4842
- form_params = []
4843
- local_var_files = {}
4844
-
4845
- body_params = None
4846
- # HTTP header `Accept`
4847
- header_params['Accept'] = self.api_client.select_header_accept(
4848
- ['application/json']) # noqa: E501
4849
-
4850
- # Authentication setting
4851
- auth_settings = [] # noqa: E501
4852
-
4853
- return self.api_client.call_api(
4854
- '/sessions/{session_id}', 'GET',
4855
- path_params,
4856
- query_params,
4857
- header_params,
4858
- body=body_params,
4859
- post_params=form_params,
4860
- files=local_var_files,
4861
- response_type='SessionResponse', # noqa: E501
4862
- auth_settings=auth_settings,
4863
- async_req=local_var_params.get('async_req'),
4864
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
4865
- _preload_content=local_var_params.get('_preload_content', True),
4866
- _request_timeout=local_var_params.get('_request_timeout'),
4867
- collection_formats=collection_formats)
4868
-
4869
- def get_session_for_job(self, production_job_id, **kwargs): # noqa: E501
4870
- """Get Session For Job # noqa: E501
4871
-
4872
- Get Session for Production Job # noqa: E501
4873
- This method makes a synchronous HTTP request by default. To make an
4874
- asynchronous HTTP request, please pass async_req=True
4875
- >>> thread = api.get_session_for_job(production_job_id, async_req=True)
4876
- >>> result = thread.get()
4877
-
4878
- :param async_req bool: execute request asynchronously
4879
- :param str production_job_id: (required)
4880
- :param _preload_content: if False, the urllib3.HTTPResponse object will
4881
- be returned without reading/decoding response
4882
- data. Default is True.
4883
- :param _request_timeout: timeout setting for this request. If one
4884
- number provided, it will be total request
4885
- timeout. It can also be a pair (tuple) of
4886
- (connection, read) timeouts.
4887
- :return: SessionResponse
4888
- If the method is called asynchronously,
4889
- returns the request thread.
4890
- """
4891
- kwargs['_return_http_data_only'] = True
4892
- return self.get_session_for_job_with_http_info(production_job_id, **kwargs) # noqa: E501
4893
-
4894
- def get_session_for_job_with_http_info(self, production_job_id, **kwargs): # noqa: E501
4895
- """Get Session For Job # noqa: E501
3855
+ def get_service_v2_with_http_info(self, service_id, **kwargs): # noqa: E501
3856
+ """Get Service V2 # noqa: E501
4896
3857
 
4897
- Get Session for Production Job # noqa: E501
3858
+ DEPRECATED. Please use the /services endpoint or the get_service command in the SDK. # noqa: E501
4898
3859
  This method makes a synchronous HTTP request by default. To make an
4899
3860
  asynchronous HTTP request, please pass async_req=True
4900
- >>> thread = api.get_session_for_job_with_http_info(production_job_id, async_req=True)
3861
+ >>> thread = api.get_service_v2_with_http_info(service_id, async_req=True)
4901
3862
  >>> result = thread.get()
4902
3863
 
4903
3864
  :param async_req bool: execute request asynchronously
4904
- :param str production_job_id: (required)
3865
+ :param str service_id: (required)
4905
3866
  :param _return_http_data_only: response data without head status code
4906
3867
  and headers
4907
3868
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -4911,7 +3872,7 @@ class DefaultApi(object):
4911
3872
  number provided, it will be total request
4912
3873
  timeout. It can also be a pair (tuple) of
4913
3874
  (connection, read) timeouts.
4914
- :return: tuple(SessionResponse, status_code(int), headers(HTTPHeaderDict))
3875
+ :return: tuple(Productionservicev2ModelResponse, status_code(int), headers(HTTPHeaderDict))
4915
3876
  If the method is called asynchronously,
4916
3877
  returns the request thread.
4917
3878
  """
@@ -4919,7 +3880,7 @@ class DefaultApi(object):
4919
3880
  local_var_params = locals()
4920
3881
 
4921
3882
  all_params = [
4922
- 'production_job_id'
3883
+ 'service_id'
4923
3884
  ]
4924
3885
  all_params.extend(
4925
3886
  [
@@ -4934,20 +3895,20 @@ class DefaultApi(object):
4934
3895
  if key not in all_params:
4935
3896
  raise ApiTypeError(
4936
3897
  "Got an unexpected keyword argument '%s'"
4937
- " to method get_session_for_job" % key
3898
+ " to method get_service_v2" % key
4938
3899
  )
4939
3900
  local_var_params[key] = val
4940
3901
  del local_var_params['kwargs']
4941
- # verify the required parameter 'production_job_id' is set
4942
- if self.api_client.client_side_validation and ('production_job_id' not in local_var_params or # noqa: E501
4943
- local_var_params['production_job_id'] is None): # noqa: E501
4944
- raise ApiValueError("Missing the required parameter `production_job_id` when calling `get_session_for_job`") # noqa: E501
3902
+ # verify the required parameter 'service_id' is set
3903
+ if self.api_client.client_side_validation and ('service_id' not in local_var_params or # noqa: E501
3904
+ local_var_params['service_id'] is None): # noqa: E501
3905
+ raise ApiValueError("Missing the required parameter `service_id` when calling `get_service_v2`") # noqa: E501
4945
3906
 
4946
3907
  collection_formats = {}
4947
3908
 
4948
3909
  path_params = {}
4949
- if 'production_job_id' in local_var_params:
4950
- path_params['production_job_id'] = local_var_params['production_job_id'] # noqa: E501
3910
+ if 'service_id' in local_var_params:
3911
+ path_params['service_id'] = local_var_params['service_id'] # noqa: E501
4951
3912
 
4952
3913
  query_params = []
4953
3914
 
@@ -4965,14 +3926,14 @@ class DefaultApi(object):
4965
3926
  auth_settings = [] # noqa: E501
4966
3927
 
4967
3928
  return self.api_client.call_api(
4968
- '/production_jobs/{production_job_id}/session', 'GET',
3929
+ '/services-v2/{service_id}', 'GET',
4969
3930
  path_params,
4970
3931
  query_params,
4971
3932
  header_params,
4972
3933
  body=body_params,
4973
3934
  post_params=form_params,
4974
3935
  files=local_var_files,
4975
- response_type='SessionResponse', # noqa: E501
3936
+ response_type='Productionservicev2ModelResponse', # noqa: E501
4976
3937
  auth_settings=auth_settings,
4977
3938
  async_req=local_var_params.get('async_req'),
4978
3939
  _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -4980,17 +3941,17 @@ class DefaultApi(object):
4980
3941
  _request_timeout=local_var_params.get('_request_timeout'),
4981
3942
  collection_formats=collection_formats)
4982
3943
 
4983
- def get_session_operation(self, session_operation_id, **kwargs): # noqa: E501
4984
- """Get Session Operation # noqa: E501
3944
+ def get_session(self, session_id, **kwargs): # noqa: E501
3945
+ """Get Session # noqa: E501
4985
3946
 
4986
- DEPRECATED: use /cluster_operations. Get the status of a session operation for the given session. # noqa: E501
3947
+ DEPRECATED: Use Clusters API instead. Retrieves a Session. # noqa: E501
4987
3948
  This method makes a synchronous HTTP request by default. To make an
4988
3949
  asynchronous HTTP request, please pass async_req=True
4989
- >>> thread = api.get_session_operation(session_operation_id, async_req=True)
3950
+ >>> thread = api.get_session(session_id, async_req=True)
4990
3951
  >>> result = thread.get()
4991
3952
 
4992
3953
  :param async_req bool: execute request asynchronously
4993
- :param str session_operation_id: (required)
3954
+ :param str session_id: (required)
4994
3955
  :param _preload_content: if False, the urllib3.HTTPResponse object will
4995
3956
  be returned without reading/decoding response
4996
3957
  data. Default is True.
@@ -4998,24 +3959,24 @@ class DefaultApi(object):
4998
3959
  number provided, it will be total request
4999
3960
  timeout. It can also be a pair (tuple) of
5000
3961
  (connection, read) timeouts.
5001
- :return: SessionoperationResponse
3962
+ :return: SessionResponse
5002
3963
  If the method is called asynchronously,
5003
3964
  returns the request thread.
5004
3965
  """
5005
3966
  kwargs['_return_http_data_only'] = True
5006
- return self.get_session_operation_with_http_info(session_operation_id, **kwargs) # noqa: E501
3967
+ return self.get_session_with_http_info(session_id, **kwargs) # noqa: E501
5007
3968
 
5008
- def get_session_operation_with_http_info(self, session_operation_id, **kwargs): # noqa: E501
5009
- """Get Session Operation # noqa: E501
3969
+ def get_session_with_http_info(self, session_id, **kwargs): # noqa: E501
3970
+ """Get Session # noqa: E501
5010
3971
 
5011
- DEPRECATED: use /cluster_operations. Get the status of a session operation for the given session. # noqa: E501
3972
+ DEPRECATED: Use Clusters API instead. Retrieves a Session. # noqa: E501
5012
3973
  This method makes a synchronous HTTP request by default. To make an
5013
3974
  asynchronous HTTP request, please pass async_req=True
5014
- >>> thread = api.get_session_operation_with_http_info(session_operation_id, async_req=True)
3975
+ >>> thread = api.get_session_with_http_info(session_id, async_req=True)
5015
3976
  >>> result = thread.get()
5016
3977
 
5017
3978
  :param async_req bool: execute request asynchronously
5018
- :param str session_operation_id: (required)
3979
+ :param str session_id: (required)
5019
3980
  :param _return_http_data_only: response data without head status code
5020
3981
  and headers
5021
3982
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -5025,7 +3986,7 @@ class DefaultApi(object):
5025
3986
  number provided, it will be total request
5026
3987
  timeout. It can also be a pair (tuple) of
5027
3988
  (connection, read) timeouts.
5028
- :return: tuple(SessionoperationResponse, status_code(int), headers(HTTPHeaderDict))
3989
+ :return: tuple(SessionResponse, status_code(int), headers(HTTPHeaderDict))
5029
3990
  If the method is called asynchronously,
5030
3991
  returns the request thread.
5031
3992
  """
@@ -5033,7 +3994,7 @@ class DefaultApi(object):
5033
3994
  local_var_params = locals()
5034
3995
 
5035
3996
  all_params = [
5036
- 'session_operation_id'
3997
+ 'session_id'
5037
3998
  ]
5038
3999
  all_params.extend(
5039
4000
  [
@@ -5048,20 +4009,20 @@ class DefaultApi(object):
5048
4009
  if key not in all_params:
5049
4010
  raise ApiTypeError(
5050
4011
  "Got an unexpected keyword argument '%s'"
5051
- " to method get_session_operation" % key
4012
+ " to method get_session" % key
5052
4013
  )
5053
4014
  local_var_params[key] = val
5054
4015
  del local_var_params['kwargs']
5055
- # verify the required parameter 'session_operation_id' is set
5056
- if self.api_client.client_side_validation and ('session_operation_id' not in local_var_params or # noqa: E501
5057
- local_var_params['session_operation_id'] is None): # noqa: E501
5058
- raise ApiValueError("Missing the required parameter `session_operation_id` when calling `get_session_operation`") # noqa: E501
4016
+ # verify the required parameter 'session_id' is set
4017
+ if self.api_client.client_side_validation and ('session_id' not in local_var_params or # noqa: E501
4018
+ local_var_params['session_id'] is None): # noqa: E501
4019
+ raise ApiValueError("Missing the required parameter `session_id` when calling `get_session`") # noqa: E501
5059
4020
 
5060
4021
  collection_formats = {}
5061
4022
 
5062
4023
  path_params = {}
5063
- if 'session_operation_id' in local_var_params:
5064
- path_params['session_operation_id'] = local_var_params['session_operation_id'] # noqa: E501
4024
+ if 'session_id' in local_var_params:
4025
+ path_params['session_id'] = local_var_params['session_id'] # noqa: E501
5065
4026
 
5066
4027
  query_params = []
5067
4028
 
@@ -5079,14 +4040,14 @@ class DefaultApi(object):
5079
4040
  auth_settings = [] # noqa: E501
5080
4041
 
5081
4042
  return self.api_client.call_api(
5082
- '/session_operations/{session_operation_id}', 'GET',
4043
+ '/sessions/{session_id}', 'GET',
5083
4044
  path_params,
5084
4045
  query_params,
5085
4046
  header_params,
5086
4047
  body=body_params,
5087
4048
  post_params=form_params,
5088
4049
  files=local_var_files,
5089
- response_type='SessionoperationResponse', # noqa: E501
4050
+ response_type='SessionResponse', # noqa: E501
5090
4051
  auth_settings=auth_settings,
5091
4052
  async_req=local_var_params.get('async_req'),
5092
4053
  _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -8062,133 +7023,6 @@ class DefaultApi(object):
8062
7023
  _request_timeout=local_var_params.get('_request_timeout'),
8063
7024
  collection_formats=collection_formats)
8064
7025
 
8065
- def update_cloud(self, cloud_id, update_cloud, **kwargs): # noqa: E501
8066
- """Update Cloud # noqa: E501
8067
-
8068
- Updates a Cloud. # noqa: E501
8069
- This method makes a synchronous HTTP request by default. To make an
8070
- asynchronous HTTP request, please pass async_req=True
8071
- >>> thread = api.update_cloud(cloud_id, update_cloud, async_req=True)
8072
- >>> result = thread.get()
8073
-
8074
- :param async_req bool: execute request asynchronously
8075
- :param str cloud_id: ID of the Cloud to update. (required)
8076
- :param UpdateCloud update_cloud: (required)
8077
- :param _preload_content: if False, the urllib3.HTTPResponse object will
8078
- be returned without reading/decoding response
8079
- data. Default is True.
8080
- :param _request_timeout: timeout setting for this request. If one
8081
- number provided, it will be total request
8082
- timeout. It can also be a pair (tuple) of
8083
- (connection, read) timeouts.
8084
- :return: CloudResponse
8085
- If the method is called asynchronously,
8086
- returns the request thread.
8087
- """
8088
- kwargs['_return_http_data_only'] = True
8089
- return self.update_cloud_with_http_info(cloud_id, update_cloud, **kwargs) # noqa: E501
8090
-
8091
- def update_cloud_with_http_info(self, cloud_id, update_cloud, **kwargs): # noqa: E501
8092
- """Update Cloud # noqa: E501
8093
-
8094
- Updates a Cloud. # noqa: E501
8095
- This method makes a synchronous HTTP request by default. To make an
8096
- asynchronous HTTP request, please pass async_req=True
8097
- >>> thread = api.update_cloud_with_http_info(cloud_id, update_cloud, async_req=True)
8098
- >>> result = thread.get()
8099
-
8100
- :param async_req bool: execute request asynchronously
8101
- :param str cloud_id: ID of the Cloud to update. (required)
8102
- :param UpdateCloud update_cloud: (required)
8103
- :param _return_http_data_only: response data without head status code
8104
- and headers
8105
- :param _preload_content: if False, the urllib3.HTTPResponse object will
8106
- be returned without reading/decoding response
8107
- data. Default is True.
8108
- :param _request_timeout: timeout setting for this request. If one
8109
- number provided, it will be total request
8110
- timeout. It can also be a pair (tuple) of
8111
- (connection, read) timeouts.
8112
- :return: tuple(CloudResponse, status_code(int), headers(HTTPHeaderDict))
8113
- If the method is called asynchronously,
8114
- returns the request thread.
8115
- """
8116
-
8117
- local_var_params = locals()
8118
-
8119
- all_params = [
8120
- 'cloud_id',
8121
- 'update_cloud'
8122
- ]
8123
- all_params.extend(
8124
- [
8125
- 'async_req',
8126
- '_return_http_data_only',
8127
- '_preload_content',
8128
- '_request_timeout'
8129
- ]
8130
- )
8131
-
8132
- for key, val in six.iteritems(local_var_params['kwargs']):
8133
- if key not in all_params:
8134
- raise ApiTypeError(
8135
- "Got an unexpected keyword argument '%s'"
8136
- " to method update_cloud" % key
8137
- )
8138
- local_var_params[key] = val
8139
- del local_var_params['kwargs']
8140
- # verify the required parameter 'cloud_id' is set
8141
- if self.api_client.client_side_validation and ('cloud_id' not in local_var_params or # noqa: E501
8142
- local_var_params['cloud_id'] is None): # noqa: E501
8143
- raise ApiValueError("Missing the required parameter `cloud_id` when calling `update_cloud`") # noqa: E501
8144
- # verify the required parameter 'update_cloud' is set
8145
- if self.api_client.client_side_validation and ('update_cloud' not in local_var_params or # noqa: E501
8146
- local_var_params['update_cloud'] is None): # noqa: E501
8147
- raise ApiValueError("Missing the required parameter `update_cloud` when calling `update_cloud`") # noqa: E501
8148
-
8149
- collection_formats = {}
8150
-
8151
- path_params = {}
8152
- if 'cloud_id' in local_var_params:
8153
- path_params['cloud_id'] = local_var_params['cloud_id'] # noqa: E501
8154
-
8155
- query_params = []
8156
-
8157
- header_params = {}
8158
-
8159
- form_params = []
8160
- local_var_files = {}
8161
-
8162
- body_params = None
8163
- if 'update_cloud' in local_var_params:
8164
- body_params = local_var_params['update_cloud']
8165
- # HTTP header `Accept`
8166
- header_params['Accept'] = self.api_client.select_header_accept(
8167
- ['application/json']) # noqa: E501
8168
-
8169
- # HTTP header `Content-Type`
8170
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
8171
- ['application/json']) # noqa: E501
8172
-
8173
- # Authentication setting
8174
- auth_settings = [] # noqa: E501
8175
-
8176
- return self.api_client.call_api(
8177
- '/clouds/{cloud_id}', 'PUT',
8178
- path_params,
8179
- query_params,
8180
- header_params,
8181
- body=body_params,
8182
- post_params=form_params,
8183
- files=local_var_files,
8184
- response_type='CloudResponse', # noqa: E501
8185
- auth_settings=auth_settings,
8186
- async_req=local_var_params.get('async_req'),
8187
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
8188
- _preload_content=local_var_params.get('_preload_content', True),
8189
- _request_timeout=local_var_params.get('_request_timeout'),
8190
- collection_formats=collection_formats)
8191
-
8192
7026
  def update_cluster(self, cluster_id, update_cluster, **kwargs): # noqa: E501
8193
7027
  """Update Cluster # noqa: E501
8194
7028
 
@@ -8316,133 +7150,6 @@ class DefaultApi(object):
8316
7150
  _request_timeout=local_var_params.get('_request_timeout'),
8317
7151
  collection_formats=collection_formats)
8318
7152
 
8319
- def update_project(self, project_id, update_project, **kwargs): # noqa: E501
8320
- """Update Project # noqa: E501
8321
-
8322
- Updates a Project. # noqa: E501
8323
- This method makes a synchronous HTTP request by default. To make an
8324
- asynchronous HTTP request, please pass async_req=True
8325
- >>> thread = api.update_project(project_id, update_project, async_req=True)
8326
- >>> result = thread.get()
8327
-
8328
- :param async_req bool: execute request asynchronously
8329
- :param str project_id: ID of the Project to update. (required)
8330
- :param UpdateProject update_project: (required)
8331
- :param _preload_content: if False, the urllib3.HTTPResponse object will
8332
- be returned without reading/decoding response
8333
- data. Default is True.
8334
- :param _request_timeout: timeout setting for this request. If one
8335
- number provided, it will be total request
8336
- timeout. It can also be a pair (tuple) of
8337
- (connection, read) timeouts.
8338
- :return: ProjectResponse
8339
- If the method is called asynchronously,
8340
- returns the request thread.
8341
- """
8342
- kwargs['_return_http_data_only'] = True
8343
- return self.update_project_with_http_info(project_id, update_project, **kwargs) # noqa: E501
8344
-
8345
- def update_project_with_http_info(self, project_id, update_project, **kwargs): # noqa: E501
8346
- """Update Project # noqa: E501
8347
-
8348
- Updates a Project. # noqa: E501
8349
- This method makes a synchronous HTTP request by default. To make an
8350
- asynchronous HTTP request, please pass async_req=True
8351
- >>> thread = api.update_project_with_http_info(project_id, update_project, async_req=True)
8352
- >>> result = thread.get()
8353
-
8354
- :param async_req bool: execute request asynchronously
8355
- :param str project_id: ID of the Project to update. (required)
8356
- :param UpdateProject update_project: (required)
8357
- :param _return_http_data_only: response data without head status code
8358
- and headers
8359
- :param _preload_content: if False, the urllib3.HTTPResponse object will
8360
- be returned without reading/decoding response
8361
- data. Default is True.
8362
- :param _request_timeout: timeout setting for this request. If one
8363
- number provided, it will be total request
8364
- timeout. It can also be a pair (tuple) of
8365
- (connection, read) timeouts.
8366
- :return: tuple(ProjectResponse, status_code(int), headers(HTTPHeaderDict))
8367
- If the method is called asynchronously,
8368
- returns the request thread.
8369
- """
8370
-
8371
- local_var_params = locals()
8372
-
8373
- all_params = [
8374
- 'project_id',
8375
- 'update_project'
8376
- ]
8377
- all_params.extend(
8378
- [
8379
- 'async_req',
8380
- '_return_http_data_only',
8381
- '_preload_content',
8382
- '_request_timeout'
8383
- ]
8384
- )
8385
-
8386
- for key, val in six.iteritems(local_var_params['kwargs']):
8387
- if key not in all_params:
8388
- raise ApiTypeError(
8389
- "Got an unexpected keyword argument '%s'"
8390
- " to method update_project" % key
8391
- )
8392
- local_var_params[key] = val
8393
- del local_var_params['kwargs']
8394
- # verify the required parameter 'project_id' is set
8395
- if self.api_client.client_side_validation and ('project_id' not in local_var_params or # noqa: E501
8396
- local_var_params['project_id'] is None): # noqa: E501
8397
- raise ApiValueError("Missing the required parameter `project_id` when calling `update_project`") # noqa: E501
8398
- # verify the required parameter 'update_project' is set
8399
- if self.api_client.client_side_validation and ('update_project' not in local_var_params or # noqa: E501
8400
- local_var_params['update_project'] is None): # noqa: E501
8401
- raise ApiValueError("Missing the required parameter `update_project` when calling `update_project`") # noqa: E501
8402
-
8403
- collection_formats = {}
8404
-
8405
- path_params = {}
8406
- if 'project_id' in local_var_params:
8407
- path_params['project_id'] = local_var_params['project_id'] # noqa: E501
8408
-
8409
- query_params = []
8410
-
8411
- header_params = {}
8412
-
8413
- form_params = []
8414
- local_var_files = {}
8415
-
8416
- body_params = None
8417
- if 'update_project' in local_var_params:
8418
- body_params = local_var_params['update_project']
8419
- # HTTP header `Accept`
8420
- header_params['Accept'] = self.api_client.select_header_accept(
8421
- ['application/json']) # noqa: E501
8422
-
8423
- # HTTP header `Content-Type`
8424
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
8425
- ['application/json']) # noqa: E501
8426
-
8427
- # Authentication setting
8428
- auth_settings = [] # noqa: E501
8429
-
8430
- return self.api_client.call_api(
8431
- '/projects/{project_id}', 'PUT',
8432
- path_params,
8433
- query_params,
8434
- header_params,
8435
- body=body_params,
8436
- post_params=form_params,
8437
- files=local_var_files,
8438
- response_type='ProjectResponse', # noqa: E501
8439
- auth_settings=auth_settings,
8440
- async_req=local_var_params.get('async_req'),
8441
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
8442
- _preload_content=local_var_params.get('_preload_content', True),
8443
- _request_timeout=local_var_params.get('_request_timeout'),
8444
- collection_formats=collection_formats)
8445
-
8446
7153
  def upsert_sso_config(self, create_sso_config, **kwargs): # noqa: E501
8447
7154
  """Upsert Sso Config # noqa: E501
8448
7155