databricks-sdk 0.19.0__py3-none-any.whl → 0.20.0__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.

Potentially problematic release.


This version of databricks-sdk might be problematic. Click here for more details.

@@ -5560,6 +5560,7 @@ class ClusterPoliciesAPI:
5560
5560
  body['policy_family_definition_overrides'] = policy_family_definition_overrides
5561
5561
  if policy_family_id is not None: body['policy_family_id'] = policy_family_id
5562
5562
  headers = {'Accept': 'application/json', 'Content-Type': 'application/json', }
5563
+
5563
5564
  res = self._api.do('POST', '/api/2.0/policies/clusters/create', body=body, headers=headers)
5564
5565
  return CreatePolicyResponse.from_dict(res)
5565
5566
 
@@ -5576,6 +5577,7 @@ class ClusterPoliciesAPI:
5576
5577
  body = {}
5577
5578
  if policy_id is not None: body['policy_id'] = policy_id
5578
5579
  headers = {'Accept': 'application/json', 'Content-Type': 'application/json', }
5580
+
5579
5581
  self._api.do('POST', '/api/2.0/policies/clusters/delete', body=body, headers=headers)
5580
5582
 
5581
5583
  def edit(self,
@@ -5638,6 +5640,7 @@ class ClusterPoliciesAPI:
5638
5640
  if policy_family_id is not None: body['policy_family_id'] = policy_family_id
5639
5641
  if policy_id is not None: body['policy_id'] = policy_id
5640
5642
  headers = {'Accept': 'application/json', 'Content-Type': 'application/json', }
5643
+
5641
5644
  self._api.do('POST', '/api/2.0/policies/clusters/edit', body=body, headers=headers)
5642
5645
 
5643
5646
  def get(self, policy_id: str) -> Policy:
@@ -5654,6 +5657,7 @@ class ClusterPoliciesAPI:
5654
5657
  query = {}
5655
5658
  if policy_id is not None: query['policy_id'] = policy_id
5656
5659
  headers = {'Accept': 'application/json', }
5660
+
5657
5661
  res = self._api.do('GET', '/api/2.0/policies/clusters/get', query=query, headers=headers)
5658
5662
  return Policy.from_dict(res)
5659
5663
 
@@ -5669,6 +5673,7 @@ class ClusterPoliciesAPI:
5669
5673
  """
5670
5674
 
5671
5675
  headers = {'Accept': 'application/json', }
5676
+
5672
5677
  res = self._api.do('GET',
5673
5678
  f'/api/2.0/permissions/cluster-policies/{cluster_policy_id}/permissionLevels',
5674
5679
  headers=headers)
@@ -5687,6 +5692,7 @@ class ClusterPoliciesAPI:
5687
5692
  """
5688
5693
 
5689
5694
  headers = {'Accept': 'application/json', }
5695
+
5690
5696
  res = self._api.do('GET',
5691
5697
  f'/api/2.0/permissions/cluster-policies/{cluster_policy_id}',
5692
5698
  headers=headers)
@@ -5714,6 +5720,7 @@ class ClusterPoliciesAPI:
5714
5720
  if sort_column is not None: query['sort_column'] = sort_column.value
5715
5721
  if sort_order is not None: query['sort_order'] = sort_order.value
5716
5722
  headers = {'Accept': 'application/json', }
5723
+
5717
5724
  json = self._api.do('GET', '/api/2.0/policies/clusters/list', query=query, headers=headers)
5718
5725
  parsed = ListPoliciesResponse.from_dict(json).policies
5719
5726
  return parsed if parsed is not None else []
@@ -5738,6 +5745,7 @@ class ClusterPoliciesAPI:
5738
5745
  if access_control_list is not None:
5739
5746
  body['access_control_list'] = [v.as_dict() for v in access_control_list]
5740
5747
  headers = {'Accept': 'application/json', 'Content-Type': 'application/json', }
5748
+
5741
5749
  res = self._api.do('PUT',
5742
5750
  f'/api/2.0/permissions/cluster-policies/{cluster_policy_id}',
5743
5751
  body=body,
@@ -5765,6 +5773,7 @@ class ClusterPoliciesAPI:
5765
5773
  if access_control_list is not None:
5766
5774
  body['access_control_list'] = [v.as_dict() for v in access_control_list]
5767
5775
  headers = {'Accept': 'application/json', 'Content-Type': 'application/json', }
5776
+
5768
5777
  res = self._api.do('PATCH',
5769
5778
  f'/api/2.0/permissions/cluster-policies/{cluster_policy_id}',
5770
5779
  body=body,
@@ -5878,6 +5887,7 @@ class ClustersAPI:
5878
5887
  if cluster_id is not None: body['cluster_id'] = cluster_id
5879
5888
  if owner_username is not None: body['owner_username'] = owner_username
5880
5889
  headers = {'Accept': 'application/json', 'Content-Type': 'application/json', }
5890
+
5881
5891
  self._api.do('POST', '/api/2.0/clusters/change-owner', body=body, headers=headers)
5882
5892
 
5883
5893
  def create(self,
@@ -6069,6 +6079,7 @@ class ClustersAPI:
6069
6079
  if ssh_public_keys is not None: body['ssh_public_keys'] = [v for v in ssh_public_keys]
6070
6080
  if workload_type is not None: body['workload_type'] = workload_type.as_dict()
6071
6081
  headers = {'Accept': 'application/json', 'Content-Type': 'application/json', }
6082
+
6072
6083
  op_response = self._api.do('POST', '/api/2.0/clusters/create', body=body, headers=headers)
6073
6084
  return Wait(self.wait_get_cluster_running,
6074
6085
  response=CreateClusterResponse.from_dict(op_response),
@@ -6152,6 +6163,7 @@ class ClustersAPI:
6152
6163
  body = {}
6153
6164
  if cluster_id is not None: body['cluster_id'] = cluster_id
6154
6165
  headers = {'Accept': 'application/json', 'Content-Type': 'application/json', }
6166
+
6155
6167
  self._api.do('POST', '/api/2.0/clusters/delete', body=body, headers=headers)
6156
6168
  return Wait(self.wait_get_cluster_terminated, cluster_id=cluster_id)
6157
6169
 
@@ -6356,6 +6368,7 @@ class ClustersAPI:
6356
6368
  if ssh_public_keys is not None: body['ssh_public_keys'] = [v for v in ssh_public_keys]
6357
6369
  if workload_type is not None: body['workload_type'] = workload_type.as_dict()
6358
6370
  headers = {'Accept': 'application/json', 'Content-Type': 'application/json', }
6371
+
6359
6372
  self._api.do('POST', '/api/2.0/clusters/edit', body=body, headers=headers)
6360
6373
  return Wait(self.wait_get_cluster_running, cluster_id=cluster_id)
6361
6374
 
@@ -6490,6 +6503,7 @@ class ClustersAPI:
6490
6503
  query = {}
6491
6504
  if cluster_id is not None: query['cluster_id'] = cluster_id
6492
6505
  headers = {'Accept': 'application/json', }
6506
+
6493
6507
  res = self._api.do('GET', '/api/2.0/clusters/get', query=query, headers=headers)
6494
6508
  return ClusterDetails.from_dict(res)
6495
6509
 
@@ -6505,6 +6519,7 @@ class ClustersAPI:
6505
6519
  """
6506
6520
 
6507
6521
  headers = {'Accept': 'application/json', }
6522
+
6508
6523
  res = self._api.do('GET',
6509
6524
  f'/api/2.0/permissions/clusters/{cluster_id}/permissionLevels',
6510
6525
  headers=headers)
@@ -6522,6 +6537,7 @@ class ClustersAPI:
6522
6537
  """
6523
6538
 
6524
6539
  headers = {'Accept': 'application/json', }
6540
+
6525
6541
  res = self._api.do('GET', f'/api/2.0/permissions/clusters/{cluster_id}', headers=headers)
6526
6542
  return ClusterPermissions.from_dict(res)
6527
6543
 
@@ -6548,6 +6564,7 @@ class ClustersAPI:
6548
6564
  query = {}
6549
6565
  if can_use_client is not None: query['can_use_client'] = can_use_client
6550
6566
  headers = {'Accept': 'application/json', }
6567
+
6551
6568
  json = self._api.do('GET', '/api/2.0/clusters/list', query=query, headers=headers)
6552
6569
  parsed = ListClustersResponse.from_dict(json).clusters
6553
6570
  return parsed if parsed is not None else []
@@ -6561,6 +6578,7 @@ class ClustersAPI:
6561
6578
  """
6562
6579
 
6563
6580
  headers = {'Accept': 'application/json', }
6581
+
6564
6582
  res = self._api.do('GET', '/api/2.0/clusters/list-node-types', headers=headers)
6565
6583
  return ListNodeTypesResponse.from_dict(res)
6566
6584
 
@@ -6574,6 +6592,7 @@ class ClustersAPI:
6574
6592
  """
6575
6593
 
6576
6594
  headers = {'Accept': 'application/json', }
6595
+
6577
6596
  res = self._api.do('GET', '/api/2.0/clusters/list-zones', headers=headers)
6578
6597
  return ListAvailableZonesResponse.from_dict(res)
6579
6598
 
@@ -6594,6 +6613,7 @@ class ClustersAPI:
6594
6613
  body = {}
6595
6614
  if cluster_id is not None: body['cluster_id'] = cluster_id
6596
6615
  headers = {'Accept': 'application/json', 'Content-Type': 'application/json', }
6616
+
6597
6617
  self._api.do('POST', '/api/2.0/clusters/permanent-delete', body=body, headers=headers)
6598
6618
 
6599
6619
  def pin(self, cluster_id: str):
@@ -6610,6 +6630,7 @@ class ClustersAPI:
6610
6630
  body = {}
6611
6631
  if cluster_id is not None: body['cluster_id'] = cluster_id
6612
6632
  headers = {'Accept': 'application/json', 'Content-Type': 'application/json', }
6633
+
6613
6634
  self._api.do('POST', '/api/2.0/clusters/pin', body=body, headers=headers)
6614
6635
 
6615
6636
  def resize(self,
@@ -6646,6 +6667,7 @@ class ClustersAPI:
6646
6667
  if cluster_id is not None: body['cluster_id'] = cluster_id
6647
6668
  if num_workers is not None: body['num_workers'] = num_workers
6648
6669
  headers = {'Accept': 'application/json', 'Content-Type': 'application/json', }
6670
+
6649
6671
  self._api.do('POST', '/api/2.0/clusters/resize', body=body, headers=headers)
6650
6672
  return Wait(self.wait_get_cluster_running, cluster_id=cluster_id)
6651
6673
 
@@ -6677,6 +6699,7 @@ class ClustersAPI:
6677
6699
  if cluster_id is not None: body['cluster_id'] = cluster_id
6678
6700
  if restart_user is not None: body['restart_user'] = restart_user
6679
6701
  headers = {'Accept': 'application/json', 'Content-Type': 'application/json', }
6702
+
6680
6703
  self._api.do('POST', '/api/2.0/clusters/restart', body=body, headers=headers)
6681
6704
  return Wait(self.wait_get_cluster_running, cluster_id=cluster_id)
6682
6705
 
@@ -6706,6 +6729,7 @@ class ClustersAPI:
6706
6729
  if access_control_list is not None:
6707
6730
  body['access_control_list'] = [v.as_dict() for v in access_control_list]
6708
6731
  headers = {'Accept': 'application/json', 'Content-Type': 'application/json', }
6732
+
6709
6733
  res = self._api.do('PUT', f'/api/2.0/permissions/clusters/{cluster_id}', body=body, headers=headers)
6710
6734
  return ClusterPermissions.from_dict(res)
6711
6735
 
@@ -6718,6 +6742,7 @@ class ClustersAPI:
6718
6742
  """
6719
6743
 
6720
6744
  headers = {'Accept': 'application/json', }
6745
+
6721
6746
  res = self._api.do('GET', '/api/2.0/clusters/spark-versions', headers=headers)
6722
6747
  return GetSparkVersionsResponse.from_dict(res)
6723
6748
 
@@ -6741,6 +6766,7 @@ class ClustersAPI:
6741
6766
  body = {}
6742
6767
  if cluster_id is not None: body['cluster_id'] = cluster_id
6743
6768
  headers = {'Accept': 'application/json', 'Content-Type': 'application/json', }
6769
+
6744
6770
  self._api.do('POST', '/api/2.0/clusters/start', body=body, headers=headers)
6745
6771
  return Wait(self.wait_get_cluster_running, cluster_id=cluster_id)
6746
6772
 
@@ -6762,6 +6788,7 @@ class ClustersAPI:
6762
6788
  body = {}
6763
6789
  if cluster_id is not None: body['cluster_id'] = cluster_id
6764
6790
  headers = {'Accept': 'application/json', 'Content-Type': 'application/json', }
6791
+
6765
6792
  self._api.do('POST', '/api/2.0/clusters/unpin', body=body, headers=headers)
6766
6793
 
6767
6794
  def update_permissions(
@@ -6783,6 +6810,7 @@ class ClustersAPI:
6783
6810
  if access_control_list is not None:
6784
6811
  body['access_control_list'] = [v.as_dict() for v in access_control_list]
6785
6812
  headers = {'Accept': 'application/json', 'Content-Type': 'application/json', }
6813
+
6786
6814
  res = self._api.do('PATCH', f'/api/2.0/permissions/clusters/{cluster_id}', body=body, headers=headers)
6787
6815
  return ClusterPermissions.from_dict(res)
6788
6816
 
@@ -6917,6 +6945,7 @@ class CommandExecutionAPI:
6917
6945
  if command_id is not None: body['commandId'] = command_id
6918
6946
  if context_id is not None: body['contextId'] = context_id
6919
6947
  headers = {'Accept': 'application/json', 'Content-Type': 'application/json', }
6948
+
6920
6949
  self._api.do('POST', '/api/1.2/commands/cancel', body=body, headers=headers)
6921
6950
  return Wait(self.wait_command_status_command_execution_cancelled,
6922
6951
  cluster_id=cluster_id,
@@ -6952,6 +6981,7 @@ class CommandExecutionAPI:
6952
6981
  if command_id is not None: query['commandId'] = command_id
6953
6982
  if context_id is not None: query['contextId'] = context_id
6954
6983
  headers = {'Accept': 'application/json', }
6984
+
6955
6985
  res = self._api.do('GET', '/api/1.2/commands/status', query=query, headers=headers)
6956
6986
  return CommandStatusResponse.from_dict(res)
6957
6987
 
@@ -6970,6 +7000,7 @@ class CommandExecutionAPI:
6970
7000
  if cluster_id is not None: query['clusterId'] = cluster_id
6971
7001
  if context_id is not None: query['contextId'] = context_id
6972
7002
  headers = {'Accept': 'application/json', }
7003
+
6973
7004
  res = self._api.do('GET', '/api/1.2/contexts/status', query=query, headers=headers)
6974
7005
  return ContextStatusResponse.from_dict(res)
6975
7006
 
@@ -6995,6 +7026,7 @@ class CommandExecutionAPI:
6995
7026
  if cluster_id is not None: body['clusterId'] = cluster_id
6996
7027
  if language is not None: body['language'] = language.value
6997
7028
  headers = {'Accept': 'application/json', 'Content-Type': 'application/json', }
7029
+
6998
7030
  op_response = self._api.do('POST', '/api/1.2/contexts/create', body=body, headers=headers)
6999
7031
  return Wait(self.wait_context_status_command_execution_running,
7000
7032
  response=Created.from_dict(op_response),
@@ -7023,6 +7055,7 @@ class CommandExecutionAPI:
7023
7055
  if cluster_id is not None: body['clusterId'] = cluster_id
7024
7056
  if context_id is not None: body['contextId'] = context_id
7025
7057
  headers = {'Accept': 'application/json', 'Content-Type': 'application/json', }
7058
+
7026
7059
  self._api.do('POST', '/api/1.2/contexts/destroy', body=body, headers=headers)
7027
7060
 
7028
7061
  def execute(self,
@@ -7055,6 +7088,7 @@ class CommandExecutionAPI:
7055
7088
  if context_id is not None: body['contextId'] = context_id
7056
7089
  if language is not None: body['language'] = language.value
7057
7090
  headers = {'Accept': 'application/json', 'Content-Type': 'application/json', }
7091
+
7058
7092
  op_response = self._api.do('POST', '/api/1.2/commands/execute', body=body, headers=headers)
7059
7093
  return Wait(self.wait_command_status_command_execution_finished_or_error,
7060
7094
  response=Created.from_dict(op_response),
@@ -7121,6 +7155,7 @@ class GlobalInitScriptsAPI:
7121
7155
  if position is not None: body['position'] = position
7122
7156
  if script is not None: body['script'] = script
7123
7157
  headers = {'Accept': 'application/json', 'Content-Type': 'application/json', }
7158
+
7124
7159
  res = self._api.do('POST', '/api/2.0/global-init-scripts', body=body, headers=headers)
7125
7160
  return CreateResponse.from_dict(res)
7126
7161
 
@@ -7136,6 +7171,7 @@ class GlobalInitScriptsAPI:
7136
7171
  """
7137
7172
 
7138
7173
  headers = {}
7174
+
7139
7175
  self._api.do('DELETE', f'/api/2.0/global-init-scripts/{script_id}', headers=headers)
7140
7176
 
7141
7177
  def get(self, script_id: str) -> GlobalInitScriptDetailsWithContent:
@@ -7150,6 +7186,7 @@ class GlobalInitScriptsAPI:
7150
7186
  """
7151
7187
 
7152
7188
  headers = {'Accept': 'application/json', }
7189
+
7153
7190
  res = self._api.do('GET', f'/api/2.0/global-init-scripts/{script_id}', headers=headers)
7154
7191
  return GlobalInitScriptDetailsWithContent.from_dict(res)
7155
7192
 
@@ -7164,6 +7201,7 @@ class GlobalInitScriptsAPI:
7164
7201
  """
7165
7202
 
7166
7203
  headers = {'Accept': 'application/json', }
7204
+
7167
7205
  json = self._api.do('GET', '/api/2.0/global-init-scripts', headers=headers)
7168
7206
  parsed = ListGlobalInitScriptsResponse.from_dict(json).scripts
7169
7207
  return parsed if parsed is not None else []
@@ -7207,6 +7245,7 @@ class GlobalInitScriptsAPI:
7207
7245
  if position is not None: body['position'] = position
7208
7246
  if script is not None: body['script'] = script
7209
7247
  headers = {'Content-Type': 'application/json', }
7248
+
7210
7249
  self._api.do('PATCH', f'/api/2.0/global-init-scripts/{script_id}', body=body, headers=headers)
7211
7250
 
7212
7251
 
@@ -7315,6 +7354,7 @@ class InstancePoolsAPI:
7315
7354
  if preloaded_spark_versions is not None:
7316
7355
  body['preloaded_spark_versions'] = [v for v in preloaded_spark_versions]
7317
7356
  headers = {'Accept': 'application/json', 'Content-Type': 'application/json', }
7357
+
7318
7358
  res = self._api.do('POST', '/api/2.0/instance-pools/create', body=body, headers=headers)
7319
7359
  return CreateInstancePoolResponse.from_dict(res)
7320
7360
 
@@ -7331,6 +7371,7 @@ class InstancePoolsAPI:
7331
7371
  body = {}
7332
7372
  if instance_pool_id is not None: body['instance_pool_id'] = instance_pool_id
7333
7373
  headers = {'Accept': 'application/json', 'Content-Type': 'application/json', }
7374
+
7334
7375
  self._api.do('POST', '/api/2.0/instance-pools/delete', body=body, headers=headers)
7335
7376
 
7336
7377
  def edit(self,
@@ -7386,6 +7427,7 @@ class InstancePoolsAPI:
7386
7427
  if min_idle_instances is not None: body['min_idle_instances'] = min_idle_instances
7387
7428
  if node_type_id is not None: body['node_type_id'] = node_type_id
7388
7429
  headers = {'Accept': 'application/json', 'Content-Type': 'application/json', }
7430
+
7389
7431
  self._api.do('POST', '/api/2.0/instance-pools/edit', body=body, headers=headers)
7390
7432
 
7391
7433
  def get(self, instance_pool_id: str) -> GetInstancePool:
@@ -7402,6 +7444,7 @@ class InstancePoolsAPI:
7402
7444
  query = {}
7403
7445
  if instance_pool_id is not None: query['instance_pool_id'] = instance_pool_id
7404
7446
  headers = {'Accept': 'application/json', }
7447
+
7405
7448
  res = self._api.do('GET', '/api/2.0/instance-pools/get', query=query, headers=headers)
7406
7449
  return GetInstancePool.from_dict(res)
7407
7450
 
@@ -7417,6 +7460,7 @@ class InstancePoolsAPI:
7417
7460
  """
7418
7461
 
7419
7462
  headers = {'Accept': 'application/json', }
7463
+
7420
7464
  res = self._api.do('GET',
7421
7465
  f'/api/2.0/permissions/instance-pools/{instance_pool_id}/permissionLevels',
7422
7466
  headers=headers)
@@ -7435,6 +7479,7 @@ class InstancePoolsAPI:
7435
7479
  """
7436
7480
 
7437
7481
  headers = {'Accept': 'application/json', }
7482
+
7438
7483
  res = self._api.do('GET', f'/api/2.0/permissions/instance-pools/{instance_pool_id}', headers=headers)
7439
7484
  return InstancePoolPermissions.from_dict(res)
7440
7485
 
@@ -7447,6 +7492,7 @@ class InstancePoolsAPI:
7447
7492
  """
7448
7493
 
7449
7494
  headers = {'Accept': 'application/json', }
7495
+
7450
7496
  json = self._api.do('GET', '/api/2.0/instance-pools/list', headers=headers)
7451
7497
  parsed = ListInstancePools.from_dict(json).instance_pools
7452
7498
  return parsed if parsed is not None else []
@@ -7471,6 +7517,7 @@ class InstancePoolsAPI:
7471
7517
  if access_control_list is not None:
7472
7518
  body['access_control_list'] = [v.as_dict() for v in access_control_list]
7473
7519
  headers = {'Accept': 'application/json', 'Content-Type': 'application/json', }
7520
+
7474
7521
  res = self._api.do('PUT',
7475
7522
  f'/api/2.0/permissions/instance-pools/{instance_pool_id}',
7476
7523
  body=body,
@@ -7498,6 +7545,7 @@ class InstancePoolsAPI:
7498
7545
  if access_control_list is not None:
7499
7546
  body['access_control_list'] = [v.as_dict() for v in access_control_list]
7500
7547
  headers = {'Accept': 'application/json', 'Content-Type': 'application/json', }
7548
+
7501
7549
  res = self._api.do('PATCH',
7502
7550
  f'/api/2.0/permissions/instance-pools/{instance_pool_id}',
7503
7551
  body=body,
@@ -7556,6 +7604,7 @@ class InstanceProfilesAPI:
7556
7604
  if is_meta_instance_profile is not None: body['is_meta_instance_profile'] = is_meta_instance_profile
7557
7605
  if skip_validation is not None: body['skip_validation'] = skip_validation
7558
7606
  headers = {'Accept': 'application/json', 'Content-Type': 'application/json', }
7607
+
7559
7608
  self._api.do('POST', '/api/2.0/instance-profiles/add', body=body, headers=headers)
7560
7609
 
7561
7610
  def edit(self,
@@ -7601,6 +7650,7 @@ class InstanceProfilesAPI:
7601
7650
  if instance_profile_arn is not None: body['instance_profile_arn'] = instance_profile_arn
7602
7651
  if is_meta_instance_profile is not None: body['is_meta_instance_profile'] = is_meta_instance_profile
7603
7652
  headers = {'Accept': 'application/json', 'Content-Type': 'application/json', }
7653
+
7604
7654
  self._api.do('POST', '/api/2.0/instance-profiles/edit', body=body, headers=headers)
7605
7655
 
7606
7656
  def list(self) -> Iterator[InstanceProfile]:
@@ -7614,6 +7664,7 @@ class InstanceProfilesAPI:
7614
7664
  """
7615
7665
 
7616
7666
  headers = {'Accept': 'application/json', }
7667
+
7617
7668
  json = self._api.do('GET', '/api/2.0/instance-profiles/list', headers=headers)
7618
7669
  parsed = ListInstanceProfilesResponse.from_dict(json).instance_profiles
7619
7670
  return parsed if parsed is not None else []
@@ -7634,6 +7685,7 @@ class InstanceProfilesAPI:
7634
7685
  body = {}
7635
7686
  if instance_profile_arn is not None: body['instance_profile_arn'] = instance_profile_arn
7636
7687
  headers = {'Accept': 'application/json', 'Content-Type': 'application/json', }
7688
+
7637
7689
  self._api.do('POST', '/api/2.0/instance-profiles/remove', body=body, headers=headers)
7638
7690
 
7639
7691
 
@@ -7669,6 +7721,7 @@ class LibrariesAPI:
7669
7721
  """
7670
7722
 
7671
7723
  headers = {'Accept': 'application/json', }
7724
+
7672
7725
  res = self._api.do('GET', '/api/2.0/libraries/all-cluster-statuses', headers=headers)
7673
7726
  return ListAllClusterLibraryStatusesResponse.from_dict(res)
7674
7727
 
@@ -7697,6 +7750,7 @@ class LibrariesAPI:
7697
7750
  query = {}
7698
7751
  if cluster_id is not None: query['cluster_id'] = cluster_id
7699
7752
  headers = {'Accept': 'application/json', }
7753
+
7700
7754
  json = self._api.do('GET', '/api/2.0/libraries/cluster-status', query=query, headers=headers)
7701
7755
  parsed = ClusterLibraryStatuses.from_dict(json).library_statuses
7702
7756
  return parsed if parsed is not None else []
@@ -7721,6 +7775,7 @@ class LibrariesAPI:
7721
7775
  if cluster_id is not None: body['cluster_id'] = cluster_id
7722
7776
  if libraries is not None: body['libraries'] = [v.as_dict() for v in libraries]
7723
7777
  headers = {'Accept': 'application/json', 'Content-Type': 'application/json', }
7778
+
7724
7779
  self._api.do('POST', '/api/2.0/libraries/install', body=body, headers=headers)
7725
7780
 
7726
7781
  def uninstall(self, cluster_id: str, libraries: List[Library]):
@@ -7741,6 +7796,7 @@ class LibrariesAPI:
7741
7796
  if cluster_id is not None: body['cluster_id'] = cluster_id
7742
7797
  if libraries is not None: body['libraries'] = [v.as_dict() for v in libraries]
7743
7798
  headers = {'Accept': 'application/json', 'Content-Type': 'application/json', }
7799
+
7744
7800
  self._api.do('POST', '/api/2.0/libraries/uninstall', body=body, headers=headers)
7745
7801
 
7746
7802
 
@@ -7769,6 +7825,7 @@ class PolicyFamiliesAPI:
7769
7825
  """
7770
7826
 
7771
7827
  headers = {'Accept': 'application/json', }
7828
+
7772
7829
  res = self._api.do('GET', f'/api/2.0/policy-families/{policy_family_id}', headers=headers)
7773
7830
  return PolicyFamily.from_dict(res)
7774
7831
 
@@ -69,6 +69,7 @@ class LakeviewAPI:
69
69
  if embed_credentials is not None: body['embed_credentials'] = embed_credentials
70
70
  if warehouse_id is not None: body['warehouse_id'] = warehouse_id
71
71
  headers = {'Accept': 'application/json', 'Content-Type': 'application/json', }
72
+
72
73
  self._api.do('POST',
73
74
  f'/api/2.0/lakeview/dashboards/{dashboard_id}/published',
74
75
  body=body,