GeezerVison is showing github.com — docs: Update name of BQ source parameter in samples (#859) · googleapis/python-aiplatform@f11b598
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: samples/model-builder/create_and_import_dataset_tabular_bigquery_sample.py +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 18 | 18 |
| 19 | 19 | # [START aiplatform_sdk_create_and_import_dataset_tabular_bigquery_sample] | 20 | 20 | def create_and_import_dataset_tabular_bigquery_sample( | 21 | | - display_name: str, project: str, location: str, bigquery_source: str, | | 21 | + display_name: str, project: str, location: str, bq_source: str, | 22 | 22 | ): | 23 | 23 |
| 24 | 24 | aiplatform.init(project=project, location=location) | 25 | 25 |
| 26 | 26 | dataset = aiplatform.TabularDataset.create( | 27 | | - display_name=display_name, bigquery_source=bigquery_source, | | 27 | + display_name=display_name, bq_source=bq_source, | 28 | 28 | ) | 29 | 29 |
| 30 | 30 | dataset.wait() | |
Collapse file Copy file name to clipboardExpand all lines: samples/model-builder/create_and_import_dataset_tabular_bigquery_sample_test.py +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -24,13 +24,13 @@ def test_create_and_import_dataset_tabular_bigquery_sample( | 24 | 24 | create_and_import_dataset_tabular_bigquery_sample.create_and_import_dataset_tabular_bigquery_sample( | 25 | 25 | project=constants.PROJECT, | 26 | 26 | location=constants.LOCATION, | 27 | | - bigquery_source=constants.BIGQUERY_SOURCE, | | 27 | + bq_source=constants.BIGQUERY_SOURCE, | 28 | 28 | display_name=constants.DISPLAY_NAME, | 29 | 29 | ) | 30 | 30 |
| 31 | 31 | mock_sdk_init.assert_called_once_with( | 32 | 32 | project=constants.PROJECT, location=constants.LOCATION | 33 | 33 | ) | 34 | 34 | mock_create_tabular_dataset.assert_called_once_with( | 35 | | - display_name=constants.DISPLAY_NAME, bigquery_source=constants.BIGQUERY_SOURCE, | | 35 | + display_name=constants.DISPLAY_NAME, bq_source=constants.BIGQUERY_SOURCE, | 36 | 36 | ) |
|