Skip to content

Conversation

@chalmerlowe
Copy link
Collaborator

@chalmerlowe chalmerlowe commented Sep 12, 2025

This adds one template used to generate a _helpers.py file that will be used by the centralized client.

The main purpose of the _create_request() function is to accept a string-based resource identifier (e.g. "project_id.dataset_id" and use it to help create a *Request object.

It is used inside of each action method (e.g. get_dataset(), list_tables(), delete_routine()) as a convenience function so that users can provide string locations.

@chalmerlowe chalmerlowe requested review from a team as code owners September 12, 2025 09:39
@chalmerlowe chalmerlowe requested review from logachev and removed request for a team September 12, 2025 09:39
@product-auto-label product-auto-label bot added the size: m Pull request size is medium. label Sep 12, 2025
@product-auto-label product-auto-label bot added the api: bigquery Issues related to the googleapis/python-bigquery API. label Sep 12, 2025
@chalmerlowe chalmerlowe added this to the µgen PoC milestone Sep 12, 2025
@chalmerlowe chalmerlowe changed the title Feat: adds _helpers.py.j2 template Feat: microgen - adds _helpers.py.j2 template Sep 15, 2025
@chalmerlowe chalmerlowe changed the title Feat: microgen - adds _helpers.py.j2 template feat: microgen - adds _helpers.py.j2 template Sep 15, 2025
@@ -0,0 +1,79 @@
from typing import Any, Dict, List, Optional, Type
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: I presume we'll need a license header here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tswast Done, good sir.

@chalmerlowe chalmerlowe merged commit 87934e8 into chore-adds-init-files Sep 15, 2025
4 of 15 checks passed
@chalmerlowe chalmerlowe deleted the feat-adds-helpers-template branch September 15, 2025 18:00
chalmerlowe added a commit that referenced this pull request Sep 18, 2025
* chore: removes old proof of concept

* removes old __init__.py

* Adds two utility files to handle basic tasks

* Adds a configuration file for the microgenerator

* Removes unused comment

* chore: adds noxfile.py for the microgenerator

* feat: microgen - adds two init file templates

* feat: microgen - adds _helpers.py.j2 template (#2287)

* feat: adds _helpers.py.js  template

* Updates with two usage examples

* updates the license header
chalmerlowe added a commit that referenced this pull request Sep 18, 2025
…tures (#2288)

* chore: removes old proof of concept

* removes old __init__.py

* Adds two utility files to handle basic tasks

* Adds a configuration file for the microgenerator

* Removes unused comment

* chore: adds noxfile.py for the microgenerator

* feat: microgen - adds two init file templates

* feat: adds _helpers.py.js  template

* Updates with two usage examples

* feat: adds two partial templates for creating method signatures

* feat: microgen - adds _helpers.py.j2 template (#2287)

* feat: adds _helpers.py.js  template

* Updates with two usage examples

* updates the license header

* feat: Add microgenerator __init__.py (#2291)

Migrates the empty __init__.py file to the microgenerator package.

* adds comment explaining source of *Request names

* adds comment regarding request_id_args
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: bigquery Issues related to the googleapis/python-bigquery API. size: m Pull request size is medium.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants