Skip to content

Commit

Permalink
feat: add bigquery datapolicies v1 API (#9)
Browse files Browse the repository at this point in the history
* feat: add bigquery datapolicies v1 API

PiperOrigin-RevId: 491999451

Source-Link: googleapis/googleapis@24fc77b

Source-Link: googleapis/googleapis-gen@81aebdc
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiODFhZWJkYzdmNjhkMzkwZWUyMjZlOGUzMjdlZGJlYmNjYzk5NmU0OSJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* docs: fix minor docstring formatting

PiperOrigin-RevId: 492509862

Source-Link: googleapis/googleapis@83c3605

Source-Link: googleapis/googleapis-gen@2fd72ef
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMmZkNzJlZjk4NjlkYjYwMjkzN2ExMDc1YWU5MWQwYjE0NjkzZWNjZiJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Dec 5, 2022
1 parent 07cba0e commit ec1183d
Show file tree
Hide file tree
Showing 41 changed files with 15,434 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
DataPolicyService
-----------------------------------

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

.. automodule:: google.cloud.bigquery.datapolicies_v1.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 v1 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 v1 API
===================================================

.. automodule:: google.cloud.bigquery.datapolicies_v1.types
:members:
:show-inheritance:
11 changes: 11 additions & 0 deletions packages/google-cloud-bigquery-datapolicies/docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

.. include:: multiprocessing.rst

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


API Reference
-------------
Expand All @@ -11,6 +14,14 @@ API Reference
datapolicies_v1beta1/services
datapolicies_v1beta1/types

API Reference
-------------
.. toctree::
:maxdepth: 2

datapolicies_v1/services
datapolicies_v1/types


Changelog
---------
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# -*- coding: utf-8 -*-
# Copyright 2022 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 .services.data_policy_service import (
DataPolicyServiceAsyncClient,
DataPolicyServiceClient,
)
from .types.datapolicy import (
CreateDataPolicyRequest,
DataMaskingPolicy,
DataPolicy,
DeleteDataPolicyRequest,
GetDataPolicyRequest,
ListDataPoliciesRequest,
ListDataPoliciesResponse,
RenameDataPolicyRequest,
UpdateDataPolicyRequest,
)

__all__ = (
"DataPolicyServiceAsyncClient",
"CreateDataPolicyRequest",
"DataMaskingPolicy",
"DataPolicy",
"DataPolicyServiceClient",
"DeleteDataPolicyRequest",
"GetDataPolicyRequest",
"ListDataPoliciesRequest",
"ListDataPoliciesResponse",
"RenameDataPolicyRequest",
"UpdateDataPolicyRequest",
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,163 @@
{
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
"language": "python",
"libraryPackage": "google.cloud.bigquery.datapolicies_v1",
"protoPackage": "google.cloud.bigquery.datapolicies.v1",
"schema": "1.0",
"services": {
"DataPolicyService": {
"clients": {
"grpc": {
"libraryClient": "DataPolicyServiceClient",
"rpcs": {
"CreateDataPolicy": {
"methods": [
"create_data_policy"
]
},
"DeleteDataPolicy": {
"methods": [
"delete_data_policy"
]
},
"GetDataPolicy": {
"methods": [
"get_data_policy"
]
},
"GetIamPolicy": {
"methods": [
"get_iam_policy"
]
},
"ListDataPolicies": {
"methods": [
"list_data_policies"
]
},
"RenameDataPolicy": {
"methods": [
"rename_data_policy"
]
},
"SetIamPolicy": {
"methods": [
"set_iam_policy"
]
},
"TestIamPermissions": {
"methods": [
"test_iam_permissions"
]
},
"UpdateDataPolicy": {
"methods": [
"update_data_policy"
]
}
}
},
"grpc-async": {
"libraryClient": "DataPolicyServiceAsyncClient",
"rpcs": {
"CreateDataPolicy": {
"methods": [
"create_data_policy"
]
},
"DeleteDataPolicy": {
"methods": [
"delete_data_policy"
]
},
"GetDataPolicy": {
"methods": [
"get_data_policy"
]
},
"GetIamPolicy": {
"methods": [
"get_iam_policy"
]
},
"ListDataPolicies": {
"methods": [
"list_data_policies"
]
},
"RenameDataPolicy": {
"methods": [
"rename_data_policy"
]
},
"SetIamPolicy": {
"methods": [
"set_iam_policy"
]
},
"TestIamPermissions": {
"methods": [
"test_iam_permissions"
]
},
"UpdateDataPolicy": {
"methods": [
"update_data_policy"
]
}
}
},
"rest": {
"libraryClient": "DataPolicyServiceClient",
"rpcs": {
"CreateDataPolicy": {
"methods": [
"create_data_policy"
]
},
"DeleteDataPolicy": {
"methods": [
"delete_data_policy"
]
},
"GetDataPolicy": {
"methods": [
"get_data_policy"
]
},
"GetIamPolicy": {
"methods": [
"get_iam_policy"
]
},
"ListDataPolicies": {
"methods": [
"list_data_policies"
]
},
"RenameDataPolicy": {
"methods": [
"rename_data_policy"
]
},
"SetIamPolicy": {
"methods": [
"set_iam_policy"
]
},
"TestIamPermissions": {
"methods": [
"test_iam_permissions"
]
},
"UpdateDataPolicy": {
"methods": [
"update_data_policy"
]
}
}
}
}
}
}
}
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,15 @@
# -*- coding: utf-8 -*-
# Copyright 2022 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.
#
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
# Copyright 2022 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 .async_client import DataPolicyServiceAsyncClient
from .client import DataPolicyServiceClient

__all__ = (
"DataPolicyServiceClient",
"DataPolicyServiceAsyncClient",
)
Loading

0 comments on commit ec1183d

Please sign in to comment.