databricks-sdk 0.69.0__py3-none-any.whl → 0.70.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.

@@ -561,6 +561,9 @@ class CleanRoomTaskRunState:
561
561
 
562
562
  @dataclass
563
563
  class CleanRoomsNotebookTask:
564
+ """Clean Rooms notebook task for V1 Clean Room service (GA). Replaces the deprecated
565
+ CleanRoomNotebookTask (defined above) which was for V0 service."""
566
+
564
567
  clean_room_name: str
565
568
  """The clean room that the notebook belongs to."""
566
569
 
@@ -5016,7 +5019,11 @@ class RunJobTask:
5016
5019
 
5017
5020
  dbt_commands: Optional[List[str]] = None
5018
5021
  """An array of commands to execute for jobs with the dbt task, for example `"dbt_commands": ["dbt
5019
- deps", "dbt seed", "dbt deps", "dbt seed", "dbt run"]`"""
5022
+ deps", "dbt seed", "dbt deps", "dbt seed", "dbt run"]`
5023
+
5024
+ ⚠ **Deprecation note** Use [job parameters] to pass information down to tasks.
5025
+
5026
+ [job parameters]: https://docs.databricks.com/jobs/job-parameters.html#job-parameter-pushdown"""
5020
5027
 
5021
5028
  jar_params: Optional[List[str]] = None
5022
5029
  """A list of parameters for jobs with Spark JAR tasks, for example `"jar_params": ["john doe",
@@ -5025,9 +5032,9 @@ class RunJobTask:
5025
5032
  be specified in conjunction with notebook_params. The JSON representation of this field (for
5026
5033
  example `{"jar_params":["john doe","35"]}`) cannot exceed 10,000 bytes.
5027
5034
 
5028
- Use [Task parameter variables] to set parameters containing information about job runs.
5035
+ ⚠ **Deprecation note** Use [job parameters] to pass information down to tasks.
5029
5036
 
5030
- [Task parameter variables]: https://docs.databricks.com/jobs.html#parameter-variables"""
5037
+ [job parameters]: https://docs.databricks.com/jobs/job-parameters.html#job-parameter-pushdown"""
5031
5038
 
5032
5039
  job_parameters: Optional[Dict[str, str]] = None
5033
5040
  """Job-level parameters used to trigger the job."""
@@ -5041,13 +5048,13 @@ class RunJobTask:
5041
5048
 
5042
5049
  notebook_params cannot be specified in conjunction with jar_params.
5043
5050
 
5044
- Use [Task parameter variables] to set parameters containing information about job runs.
5051
+ ⚠ **Deprecation note** Use [job parameters] to pass information down to tasks.
5045
5052
 
5046
5053
  The JSON representation of this field (for example `{"notebook_params":{"name":"john
5047
5054
  doe","age":"35"}}`) cannot exceed 10,000 bytes.
5048
5055
 
5049
- [Task parameter variables]: https://docs.databricks.com/jobs.html#parameter-variables
5050
- [dbutils.widgets.get]: https://docs.databricks.com/dev-tools/databricks-utils.html"""
5056
+ [dbutils.widgets.get]: https://docs.databricks.com/dev-tools/databricks-utils.html
5057
+ [job parameters]: https://docs.databricks.com/jobs/job-parameters.html#job-parameter-pushdown"""
5051
5058
 
5052
5059
  pipeline_params: Optional[PipelineParams] = None
5053
5060
  """Controls whether the pipeline should perform a full refresh"""
@@ -5060,7 +5067,7 @@ class RunJobTask:
5060
5067
  `run-now`, it would overwrite the parameters specified in job setting. The JSON representation
5061
5068
  of this field (for example `{"python_params":["john doe","35"]}`) cannot exceed 10,000 bytes.
5062
5069
 
5063
- Use [Task parameter variables] to set parameters containing information about job runs.
5070
+ ⚠ **Deprecation note** Use [job parameters] to pass information down to tasks.
5064
5071
 
5065
5072
  Important
5066
5073
 
@@ -5068,7 +5075,7 @@ class RunJobTask:
5068
5075
  returns an error. Examples of invalid, non-ASCII characters are Chinese, Japanese kanjis, and
5069
5076
  emojis.
5070
5077
 
5071
- [Task parameter variables]: https://docs.databricks.com/jobs.html#parameter-variables"""
5078
+ [job parameters]: https://docs.databricks.com/jobs/job-parameters.html#job-parameter-pushdown"""
5072
5079
 
5073
5080
  spark_submit_params: Optional[List[str]] = None
5074
5081
  """A list of parameters for jobs with spark submit task, for example `"spark_submit_params":
@@ -5077,7 +5084,7 @@ class RunJobTask:
5077
5084
  parameters specified in job setting. The JSON representation of this field (for example
5078
5085
  `{"python_params":["john doe","35"]}`) cannot exceed 10,000 bytes.
5079
5086
 
5080
- Use [Task parameter variables] to set parameters containing information about job runs
5087
+ ⚠ **Deprecation note** Use [job parameters] to pass information down to tasks.
5081
5088
 
5082
5089
  Important
5083
5090
 
@@ -5085,11 +5092,15 @@ class RunJobTask:
5085
5092
  returns an error. Examples of invalid, non-ASCII characters are Chinese, Japanese kanjis, and
5086
5093
  emojis.
5087
5094
 
5088
- [Task parameter variables]: https://docs.databricks.com/jobs.html#parameter-variables"""
5095
+ [job parameters]: https://docs.databricks.com/jobs/job-parameters.html#job-parameter-pushdown"""
5089
5096
 
5090
5097
  sql_params: Optional[Dict[str, str]] = None
5091
5098
  """A map from keys to values for jobs with SQL task, for example `"sql_params": {"name": "john
5092
- doe", "age": "35"}`. The SQL alert task does not support custom parameters."""
5099
+ doe", "age": "35"}`. The SQL alert task does not support custom parameters.
5100
+
5101
+ ⚠ **Deprecation note** Use [job parameters] to pass information down to tasks.
5102
+
5103
+ [job parameters]: https://docs.databricks.com/jobs/job-parameters.html#job-parameter-pushdown"""
5093
5104
 
5094
5105
  def as_dict(self) -> dict:
5095
5106
  """Serializes the RunJobTask into a dictionary suitable for use as a JSON request body."""
@@ -5377,7 +5388,11 @@ class RunOutput:
5377
5388
  class RunParameters:
5378
5389
  dbt_commands: Optional[List[str]] = None
5379
5390
  """An array of commands to execute for jobs with the dbt task, for example `"dbt_commands": ["dbt
5380
- deps", "dbt seed", "dbt deps", "dbt seed", "dbt run"]`"""
5391
+ deps", "dbt seed", "dbt deps", "dbt seed", "dbt run"]`
5392
+
5393
+ ⚠ **Deprecation note** Use [job parameters] to pass information down to tasks.
5394
+
5395
+ [job parameters]: https://docs.databricks.com/jobs/job-parameters.html#job-parameter-pushdown"""
5381
5396
 
5382
5397
  jar_params: Optional[List[str]] = None
5383
5398
  """A list of parameters for jobs with Spark JAR tasks, for example `"jar_params": ["john doe",
@@ -5386,9 +5401,9 @@ class RunParameters:
5386
5401
  be specified in conjunction with notebook_params. The JSON representation of this field (for
5387
5402
  example `{"jar_params":["john doe","35"]}`) cannot exceed 10,000 bytes.
5388
5403
 
5389
- Use [Task parameter variables] to set parameters containing information about job runs.
5404
+ ⚠ **Deprecation note** Use [job parameters] to pass information down to tasks.
5390
5405
 
5391
- [Task parameter variables]: https://docs.databricks.com/jobs.html#parameter-variables"""
5406
+ [job parameters]: https://docs.databricks.com/jobs/job-parameters.html#job-parameter-pushdown"""
5392
5407
 
5393
5408
  notebook_params: Optional[Dict[str, str]] = None
5394
5409
  """A map from keys to values for jobs with notebook task, for example `"notebook_params": {"name":
@@ -5399,13 +5414,13 @@ class RunParameters:
5399
5414
 
5400
5415
  notebook_params cannot be specified in conjunction with jar_params.
5401
5416
 
5402
- Use [Task parameter variables] to set parameters containing information about job runs.
5417
+ ⚠ **Deprecation note** Use [job parameters] to pass information down to tasks.
5403
5418
 
5404
5419
  The JSON representation of this field (for example `{"notebook_params":{"name":"john
5405
5420
  doe","age":"35"}}`) cannot exceed 10,000 bytes.
5406
5421
 
5407
- [Task parameter variables]: https://docs.databricks.com/jobs.html#parameter-variables
5408
- [dbutils.widgets.get]: https://docs.databricks.com/dev-tools/databricks-utils.html"""
5422
+ [dbutils.widgets.get]: https://docs.databricks.com/dev-tools/databricks-utils.html
5423
+ [job parameters]: https://docs.databricks.com/jobs/job-parameters.html#job-parameter-pushdown"""
5409
5424
 
5410
5425
  pipeline_params: Optional[PipelineParams] = None
5411
5426
  """Controls whether the pipeline should perform a full refresh"""
@@ -5418,7 +5433,7 @@ class RunParameters:
5418
5433
  `run-now`, it would overwrite the parameters specified in job setting. The JSON representation
5419
5434
  of this field (for example `{"python_params":["john doe","35"]}`) cannot exceed 10,000 bytes.
5420
5435
 
5421
- Use [Task parameter variables] to set parameters containing information about job runs.
5436
+ ⚠ **Deprecation note** Use [job parameters] to pass information down to tasks.
5422
5437
 
5423
5438
  Important
5424
5439
 
@@ -5426,7 +5441,7 @@ class RunParameters:
5426
5441
  returns an error. Examples of invalid, non-ASCII characters are Chinese, Japanese kanjis, and
5427
5442
  emojis.
5428
5443
 
5429
- [Task parameter variables]: https://docs.databricks.com/jobs.html#parameter-variables"""
5444
+ [job parameters]: https://docs.databricks.com/jobs/job-parameters.html#job-parameter-pushdown"""
5430
5445
 
5431
5446
  spark_submit_params: Optional[List[str]] = None
5432
5447
  """A list of parameters for jobs with spark submit task, for example `"spark_submit_params":
@@ -5435,7 +5450,7 @@ class RunParameters:
5435
5450
  parameters specified in job setting. The JSON representation of this field (for example
5436
5451
  `{"python_params":["john doe","35"]}`) cannot exceed 10,000 bytes.
5437
5452
 
5438
- Use [Task parameter variables] to set parameters containing information about job runs
5453
+ ⚠ **Deprecation note** Use [job parameters] to pass information down to tasks.
5439
5454
 
5440
5455
  Important
5441
5456
 
@@ -5443,11 +5458,15 @@ class RunParameters:
5443
5458
  returns an error. Examples of invalid, non-ASCII characters are Chinese, Japanese kanjis, and
5444
5459
  emojis.
5445
5460
 
5446
- [Task parameter variables]: https://docs.databricks.com/jobs.html#parameter-variables"""
5461
+ [job parameters]: https://docs.databricks.com/jobs/job-parameters.html#job-parameter-pushdown"""
5447
5462
 
5448
5463
  sql_params: Optional[Dict[str, str]] = None
5449
5464
  """A map from keys to values for jobs with SQL task, for example `"sql_params": {"name": "john
5450
- doe", "age": "35"}`. The SQL alert task does not support custom parameters."""
5465
+ doe", "age": "35"}`. The SQL alert task does not support custom parameters.
5466
+
5467
+ ⚠ **Deprecation note** Use [job parameters] to pass information down to tasks.
5468
+
5469
+ [job parameters]: https://docs.databricks.com/jobs/job-parameters.html#job-parameter-pushdown"""
5451
5470
 
5452
5471
  def as_dict(self) -> dict:
5453
5472
  """Serializes the RunParameters into a dictionary suitable for use as a JSON request body."""
@@ -8981,6 +9000,10 @@ class JobsAPI:
8981
9000
  :param dbt_commands: List[str] (optional)
8982
9001
  An array of commands to execute for jobs with the dbt task, for example `"dbt_commands": ["dbt
8983
9002
  deps", "dbt seed", "dbt deps", "dbt seed", "dbt run"]`
9003
+
9004
+ ⚠ **Deprecation note** Use [job parameters] to pass information down to tasks.
9005
+
9006
+ [job parameters]: https://docs.databricks.com/jobs/job-parameters.html#job-parameter-pushdown
8984
9007
  :param jar_params: List[str] (optional)
8985
9008
  A list of parameters for jobs with Spark JAR tasks, for example `"jar_params": ["john doe", "35"]`.
8986
9009
  The parameters are used to invoke the main function of the main class specified in the Spark JAR
@@ -8988,9 +9011,9 @@ class JobsAPI:
8988
9011
  in conjunction with notebook_params. The JSON representation of this field (for example
8989
9012
  `{"jar_params":["john doe","35"]}`) cannot exceed 10,000 bytes.
8990
9013
 
8991
- Use [Task parameter variables] to set parameters containing information about job runs.
9014
+ ⚠ **Deprecation note** Use [job parameters] to pass information down to tasks.
8992
9015
 
8993
- [Task parameter variables]: https://docs.databricks.com/jobs.html#parameter-variables
9016
+ [job parameters]: https://docs.databricks.com/jobs/job-parameters.html#job-parameter-pushdown
8994
9017
  :param job_parameters: Dict[str,str] (optional)
8995
9018
  Job-level parameters used in the run. for example `"param": "overriding_val"`
8996
9019
  :param latest_repair_id: int (optional)
@@ -9005,13 +9028,13 @@ class JobsAPI:
9005
9028
 
9006
9029
  notebook_params cannot be specified in conjunction with jar_params.
9007
9030
 
9008
- Use [Task parameter variables] to set parameters containing information about job runs.
9031
+ ⚠ **Deprecation note** Use [job parameters] to pass information down to tasks.
9009
9032
 
9010
9033
  The JSON representation of this field (for example `{"notebook_params":{"name":"john
9011
9034
  doe","age":"35"}}`) cannot exceed 10,000 bytes.
9012
9035
 
9013
- [Task parameter variables]: https://docs.databricks.com/jobs.html#parameter-variables
9014
9036
  [dbutils.widgets.get]: https://docs.databricks.com/dev-tools/databricks-utils.html
9037
+ [job parameters]: https://docs.databricks.com/jobs/job-parameters.html#job-parameter-pushdown
9015
9038
  :param performance_target: :class:`PerformanceTarget` (optional)
9016
9039
  The performance mode on a serverless job. The performance target determines the level of compute
9017
9040
  performance or cost-efficiency for the run. This field overrides the performance target defined on
@@ -9029,7 +9052,7 @@ class JobsAPI:
9029
9052
  would overwrite the parameters specified in job setting. The JSON representation of this field (for
9030
9053
  example `{"python_params":["john doe","35"]}`) cannot exceed 10,000 bytes.
9031
9054
 
9032
- Use [Task parameter variables] to set parameters containing information about job runs.
9055
+ ⚠ **Deprecation note** Use [job parameters] to pass information down to tasks.
9033
9056
 
9034
9057
  Important
9035
9058
 
@@ -9037,7 +9060,7 @@ class JobsAPI:
9037
9060
  returns an error. Examples of invalid, non-ASCII characters are Chinese, Japanese kanjis, and
9038
9061
  emojis.
9039
9062
 
9040
- [Task parameter variables]: https://docs.databricks.com/jobs.html#parameter-variables
9063
+ [job parameters]: https://docs.databricks.com/jobs/job-parameters.html#job-parameter-pushdown
9041
9064
  :param rerun_all_failed_tasks: bool (optional)
9042
9065
  If true, repair all failed tasks. Only one of `rerun_tasks` or `rerun_all_failed_tasks` can be used.
9043
9066
  :param rerun_dependent_tasks: bool (optional)
@@ -9052,7 +9075,7 @@ class JobsAPI:
9052
9075
  in job setting. The JSON representation of this field (for example `{"python_params":["john
9053
9076
  doe","35"]}`) cannot exceed 10,000 bytes.
9054
9077
 
9055
- Use [Task parameter variables] to set parameters containing information about job runs
9078
+ ⚠ **Deprecation note** Use [job parameters] to pass information down to tasks.
9056
9079
 
9057
9080
  Important
9058
9081
 
@@ -9060,11 +9083,15 @@ class JobsAPI:
9060
9083
  returns an error. Examples of invalid, non-ASCII characters are Chinese, Japanese kanjis, and
9061
9084
  emojis.
9062
9085
 
9063
- [Task parameter variables]: https://docs.databricks.com/jobs.html#parameter-variables
9086
+ [job parameters]: https://docs.databricks.com/jobs/job-parameters.html#job-parameter-pushdown
9064
9087
  :param sql_params: Dict[str,str] (optional)
9065
9088
  A map from keys to values for jobs with SQL task, for example `"sql_params": {"name": "john doe",
9066
9089
  "age": "35"}`. The SQL alert task does not support custom parameters.
9067
9090
 
9091
+ ⚠ **Deprecation note** Use [job parameters] to pass information down to tasks.
9092
+
9093
+ [job parameters]: https://docs.databricks.com/jobs/job-parameters.html#job-parameter-pushdown
9094
+
9068
9095
  :returns:
9069
9096
  Long-running operation waiter for :class:`Run`.
9070
9097
  See :method:wait_get_run_job_terminated_or_skipped for more details.
@@ -9200,6 +9227,10 @@ class JobsAPI:
9200
9227
  :param dbt_commands: List[str] (optional)
9201
9228
  An array of commands to execute for jobs with the dbt task, for example `"dbt_commands": ["dbt
9202
9229
  deps", "dbt seed", "dbt deps", "dbt seed", "dbt run"]`
9230
+
9231
+ ⚠ **Deprecation note** Use [job parameters] to pass information down to tasks.
9232
+
9233
+ [job parameters]: https://docs.databricks.com/jobs/job-parameters.html#job-parameter-pushdown
9203
9234
  :param idempotency_token: str (optional)
9204
9235
  An optional token to guarantee the idempotency of job run requests. If a run with the provided token
9205
9236
  already exists, the request does not create a new run but returns the ID of the existing run
@@ -9220,9 +9251,9 @@ class JobsAPI:
9220
9251
  in conjunction with notebook_params. The JSON representation of this field (for example
9221
9252
  `{"jar_params":["john doe","35"]}`) cannot exceed 10,000 bytes.
9222
9253
 
9223
- Use [Task parameter variables] to set parameters containing information about job runs.
9254
+ ⚠ **Deprecation note** Use [job parameters] to pass information down to tasks.
9224
9255
 
9225
- [Task parameter variables]: https://docs.databricks.com/jobs.html#parameter-variables
9256
+ [job parameters]: https://docs.databricks.com/jobs/job-parameters.html#job-parameter-pushdown
9226
9257
  :param job_parameters: Dict[str,str] (optional)
9227
9258
  Job-level parameters used in the run. for example `"param": "overriding_val"`
9228
9259
  :param notebook_params: Dict[str,str] (optional)
@@ -9234,13 +9265,13 @@ class JobsAPI:
9234
9265
 
9235
9266
  notebook_params cannot be specified in conjunction with jar_params.
9236
9267
 
9237
- Use [Task parameter variables] to set parameters containing information about job runs.
9268
+ ⚠ **Deprecation note** Use [job parameters] to pass information down to tasks.
9238
9269
 
9239
9270
  The JSON representation of this field (for example `{"notebook_params":{"name":"john
9240
9271
  doe","age":"35"}}`) cannot exceed 10,000 bytes.
9241
9272
 
9242
- [Task parameter variables]: https://docs.databricks.com/jobs.html#parameter-variables
9243
9273
  [dbutils.widgets.get]: https://docs.databricks.com/dev-tools/databricks-utils.html
9274
+ [job parameters]: https://docs.databricks.com/jobs/job-parameters.html#job-parameter-pushdown
9244
9275
  :param only: List[str] (optional)
9245
9276
  A list of task keys to run inside of the job. If this field is not provided, all tasks in the job
9246
9277
  will be run.
@@ -9261,7 +9292,7 @@ class JobsAPI:
9261
9292
  would overwrite the parameters specified in job setting. The JSON representation of this field (for
9262
9293
  example `{"python_params":["john doe","35"]}`) cannot exceed 10,000 bytes.
9263
9294
 
9264
- Use [Task parameter variables] to set parameters containing information about job runs.
9295
+ ⚠ **Deprecation note** Use [job parameters] to pass information down to tasks.
9265
9296
 
9266
9297
  Important
9267
9298
 
@@ -9269,7 +9300,7 @@ class JobsAPI:
9269
9300
  returns an error. Examples of invalid, non-ASCII characters are Chinese, Japanese kanjis, and
9270
9301
  emojis.
9271
9302
 
9272
- [Task parameter variables]: https://docs.databricks.com/jobs.html#parameter-variables
9303
+ [job parameters]: https://docs.databricks.com/jobs/job-parameters.html#job-parameter-pushdown
9273
9304
  :param queue: :class:`QueueSettings` (optional)
9274
9305
  The queue settings of the run.
9275
9306
  :param spark_submit_params: List[str] (optional)
@@ -9279,7 +9310,7 @@ class JobsAPI:
9279
9310
  in job setting. The JSON representation of this field (for example `{"python_params":["john
9280
9311
  doe","35"]}`) cannot exceed 10,000 bytes.
9281
9312
 
9282
- Use [Task parameter variables] to set parameters containing information about job runs
9313
+ ⚠ **Deprecation note** Use [job parameters] to pass information down to tasks.
9283
9314
 
9284
9315
  Important
9285
9316
 
@@ -9287,11 +9318,15 @@ class JobsAPI:
9287
9318
  returns an error. Examples of invalid, non-ASCII characters are Chinese, Japanese kanjis, and
9288
9319
  emojis.
9289
9320
 
9290
- [Task parameter variables]: https://docs.databricks.com/jobs.html#parameter-variables
9321
+ [job parameters]: https://docs.databricks.com/jobs/job-parameters.html#job-parameter-pushdown
9291
9322
  :param sql_params: Dict[str,str] (optional)
9292
9323
  A map from keys to values for jobs with SQL task, for example `"sql_params": {"name": "john doe",
9293
9324
  "age": "35"}`. The SQL alert task does not support custom parameters.
9294
9325
 
9326
+ ⚠ **Deprecation note** Use [job parameters] to pass information down to tasks.
9327
+
9328
+ [job parameters]: https://docs.databricks.com/jobs/job-parameters.html#job-parameter-pushdown
9329
+
9295
9330
  :returns:
9296
9331
  Long-running operation waiter for :class:`Run`.
9297
9332
  See :method:wait_get_run_job_terminated_or_skipped for more details.