Skip to content
This repository was archived by the owner on Sep 5, 2023. It is now read-only.
Merged
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
10 changes: 10 additions & 0 deletions docs/datapolicies_v1/data_policy_service.rst
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:
6 changes: 6 additions & 0 deletions docs/datapolicies_v1/services.rst
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
6 changes: 6 additions & 0 deletions docs/datapolicies_v1/types.rst
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 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
49 changes: 49 additions & 0 deletions google/cloud/bigquery/datapolicies_v1/__init__.py
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",
)
163 changes: 163 additions & 0 deletions google/cloud/bigquery/datapolicies_v1/gapic_metadata.json
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"
]
}
}
}
}
}
}
}
2 changes: 2 additions & 0 deletions google/cloud/bigquery/datapolicies_v1/py.typed
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.
15 changes: 15 additions & 0 deletions google/cloud/bigquery/datapolicies_v1/services/__init__.py
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