Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 3 additions & 9 deletions packages/google-cloud-bigquery-datapolicies/.OwlBot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,15 @@
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.


deep-remove-regex:
- /owl-bot-staging

deep-copy-regex:
- source: /google/cloud/bigquery/datapolicies/(v.*)/.*-py
dest: /owl-bot-staging/google-cloud-bigquery-datapolicies/$1

begin-after-commit-hash: 70f7f0525414fe4dfeb2fc2e81546b073f83a621
- source: /google/cloud/bigquery/datapolicies/(v.*)/.*-py
dest: /owl-bot-staging/google-cloud-bigquery-datapolicies/$1
api-name: google-cloud-bigquery-datapolicies
4 changes: 2 additions & 2 deletions packages/google-cloud-bigquery-datapolicies/.coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ branch = True
[report]
show_missing = True
omit =
google/cloud/bigquery_datapolicies/__init__.py
google/cloud/bigquery_datapolicies/gapic_version.py
google/cloud/bigquery/datapolicies/__init__.py
google/cloud/bigquery/datapolicies/gapic_version.py
exclude_lines =
# Re-enable the standard pragma
pragma: NO COVER
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"name": "bigquerydatapolicy",
"name_pretty": "BigQuery Data Policy",
"product_documentation": "https://cloud.google.com/bigquery/docs/reference/bigquerydatapolicy/rest",
"client_documentation": "https://cloud.google.com/python/docs/reference/bigquerydatapolicy/latest",
"issue_tracker": "",
"name": "google-cloud-bigquery-datapolicies",
"name_pretty": "",
"api_description": "",
"product_documentation": "",
"client_documentation": "https://cloud.google.com/python/docs/reference/google-cloud-bigquery-datapolicies/latest",
"issue_tracker": "https://github.com/googleapis/google-cloud-python/issues",
"release_level": "preview",
"language": "python",
"library_type": "GAPIC_AUTO",
"repo": "googleapis/google-cloud-python",
"distribution_name": "google-cloud-bigquery-datapolicies",
"api_id": "bigquerydatapolicy.googleapis.com",
"default_version": "v1",
"api_id": "datapolicies.googleapis.com",
"default_version": "v2beta1",
"codeowner_team": "",
"api_shortname": "bigquerydatapolicy",
"api_description": "Allows users to manage BigQuery data policies."
"api_shortname": "datapolicies"
}
22 changes: 11 additions & 11 deletions packages/google-cloud-bigquery-datapolicies/README.rst
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
Python Client for BigQuery Data Policy
======================================
Python Client for
==================

|preview| |pypi| |versions|

`BigQuery Data Policy`_: Allows users to manage BigQuery data policies.
``_:

- `Client Library Documentation`_
- `Product Documentation`_
Expand All @@ -14,9 +14,9 @@ Python Client for BigQuery Data Policy
:target: https://pypi.org/project/google-cloud-bigquery-datapolicies/
.. |versions| image:: https://img.shields.io/pypi/pyversions/google-cloud-bigquery-datapolicies.svg
:target: https://pypi.org/project/google-cloud-bigquery-datapolicies/
.. _BigQuery Data Policy: https://cloud.google.com/bigquery/docs/reference/bigquerydatapolicy/rest
.. _Client Library Documentation: https://cloud.google.com/python/docs/reference/bigquerydatapolicy/latest/summary_overview
.. _Product Documentation: https://cloud.google.com/bigquery/docs/reference/bigquerydatapolicy/rest
.. _:
.. _Client Library Documentation: https://cloud.google.com/python/docs/reference/google-cloud-bigquery-datapolicies/latest/summary_overview
.. _Product Documentation:

Quick Start
-----------
Expand All @@ -25,12 +25,12 @@ In order to use this library, you first need to go through the following steps:

1. `Select or create a Cloud Platform project.`_
2. `Enable billing for your project.`_
3. `Enable the BigQuery Data Policy.`_
3. `Enable the .`_
4. `Set up Authentication.`_

.. _Select or create a Cloud Platform project.: https://console.cloud.google.com/project
.. _Enable billing for your project.: https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project
.. _Enable the BigQuery Data Policy.: https://cloud.google.com/bigquery/docs/reference/bigquerydatapolicy/rest
.. _Enable the .:
.. _Set up Authentication.: https://googleapis.dev/python/google-api-core/latest/auth.html

Installation
Expand Down Expand Up @@ -97,14 +97,14 @@ Windows
Next Steps
~~~~~~~~~~

- Read the `Client Library Documentation`_ for BigQuery Data Policy
- Read the `Client Library Documentation`_ for
to see other available methods on the client.
- Read the `BigQuery Data Policy Product documentation`_ to learn
- Read the ` Product documentation`_ to learn
more about the product and see How-to Guides.
- View this `README`_ to see the full list of Cloud
APIs that we cover.

.. _BigQuery Data Policy Product documentation: https://cloud.google.com/bigquery/docs/reference/bigquerydatapolicy/rest
.. _ Product documentation:
.. _README: https://github.com/googleapis/google-cloud-python/blob/main/README.rst

Logging
Expand Down
2 changes: 1 addition & 1 deletion packages/google-cloud-bigquery-datapolicies/docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
# further. For a list of options available for each theme, see the
# documentation.
html_theme_options = {
"description": "Google Cloud Client Libraries for google-cloud-bigquery-datapolicies",
"description": "Google Cloud Bigquery Client Libraries for google-cloud-bigquery-datapolicies",
"github_user": "googleapis",
"github_repo": "google-cloud-python",
"github_banner": True,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
DataPolicyService
-----------------------------------

.. automodule:: google.cloud.bigquery.datapolicies_v2beta1.services.data_policy_service
:members:
:inherited-members:

.. automodule:: google.cloud.bigquery.datapolicies_v2beta1.services.data_policy_service.pagers
:members:
:inherited-members:
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Services for Google Cloud Bigquery Datapolicies v2beta1 API
===========================================================
.. toctree::
:maxdepth: 2

data_policy_service
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Types for Google Cloud Bigquery Datapolicies v2beta1 API
========================================================

.. automodule:: google.cloud.bigquery.datapolicies_v2beta1.types
:members:
:show-inheritance:
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

.. include:: multiprocessing.rst

This package includes clients for multiple versions of BigQuery Data Policy.
This package includes clients for multiple versions of .
By default, you will get version ``bigquery_datapolicies_v1``.


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ reverted. Instead, if you want to place additional content, create an
pick up on the content and merge the content.
]: #

# BigQuery Data Policy API
# API

Overview of the APIs available for BigQuery Data Policy API.
Overview of the APIs available for API.

## All entries

Classes, methods and properties & attributes for
BigQuery Data Policy API.
API.

[classes](https://cloud.google.com/python/docs/reference/bigquerydatapolicy/latest/summary_class.html)
[classes](https://cloud.google.com/python/docs/reference/google-cloud-bigquery-datapolicies/latest/summary_class.html)

[methods](https://cloud.google.com/python/docs/reference/bigquerydatapolicy/latest/summary_method.html)
[methods](https://cloud.google.com/python/docs/reference/google-cloud-bigquery-datapolicies/latest/summary_method.html)

[properties and
attributes](https://cloud.google.com/python/docs/reference/bigquerydatapolicy/latest/summary_property.html)
attributes](https://cloud.google.com/python/docs/reference/google-cloud-bigquery-datapolicies/latest/summary_property.html)
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# -*- coding: utf-8 -*-
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
from google.cloud.bigquery.datapolicies import gapic_version as package_version

__version__ = package_version.__version__


from google.cloud.bigquery.datapolicies_v2beta1.services.data_policy_service.async_client import (
DataPolicyServiceAsyncClient,
)
from google.cloud.bigquery.datapolicies_v2beta1.services.data_policy_service.client import (
DataPolicyServiceClient,
)
from google.cloud.bigquery.datapolicies_v2beta1.types.datapolicy import (
AddGranteesRequest,
CreateDataPolicyRequest,
DataMaskingPolicy,
DataPolicy,
DeleteDataPolicyRequest,
GetDataPolicyRequest,
ListDataPoliciesRequest,
ListDataPoliciesResponse,
RemoveGranteesRequest,
UpdateDataPolicyRequest,
)

__all__ = (
"DataPolicyServiceClient",
"DataPolicyServiceAsyncClient",
"AddGranteesRequest",
"CreateDataPolicyRequest",
"DataMaskingPolicy",
"DataPolicy",
"DeleteDataPolicyRequest",
"GetDataPolicyRequest",
"ListDataPoliciesRequest",
"ListDataPoliciesResponse",
"RemoveGranteesRequest",
"UpdateDataPolicyRequest",
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# -*- coding: utf-8 -*-
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Marker file for PEP 561.
# The google-cloud-bigquery-datapolicies package uses inline types.
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# -*- coding: utf-8 -*-
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
from google.cloud.bigquery.datapolicies_v2beta1 import gapic_version as package_version

__version__ = package_version.__version__


from .services.data_policy_service import (
DataPolicyServiceAsyncClient,
DataPolicyServiceClient,
)
from .types.datapolicy import (
AddGranteesRequest,
CreateDataPolicyRequest,
DataMaskingPolicy,
DataPolicy,
DeleteDataPolicyRequest,
GetDataPolicyRequest,
ListDataPoliciesRequest,
ListDataPoliciesResponse,
RemoveGranteesRequest,
UpdateDataPolicyRequest,
)

__all__ = (
"DataPolicyServiceAsyncClient",
"AddGranteesRequest",
"CreateDataPolicyRequest",
"DataMaskingPolicy",
"DataPolicy",
"DataPolicyServiceClient",
"DeleteDataPolicyRequest",
"GetDataPolicyRequest",
"ListDataPoliciesRequest",
"ListDataPoliciesResponse",
"RemoveGranteesRequest",
"UpdateDataPolicyRequest",
)
Loading
Loading