-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add bigquery datapolicies v1 API (#9)
* 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
1 parent
07cba0e
commit ec1183d
Showing
41 changed files
with
15,434 additions
and
0 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
...google-cloud-bigquery-datapolicies/docs/datapolicies_v1/data_policy_service.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
6
packages/google-cloud-bigquery-datapolicies/docs/datapolicies_v1/services.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
6
packages/google-cloud-bigquery-datapolicies/docs/datapolicies_v1/types.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
...ages/google-cloud-bigquery-datapolicies/google/cloud/bigquery/datapolicies_v1/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
163
...gle-cloud-bigquery-datapolicies/google/cloud/bigquery/datapolicies_v1/gapic_metadata.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
2
packages/google-cloud-bigquery-datapolicies/google/cloud/bigquery/datapolicies_v1/py.typed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
15
...le-cloud-bigquery-datapolicies/google/cloud/bigquery/datapolicies_v1/services/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
# |
22 changes: 22 additions & 0 deletions
22
...tapolicies/google/cloud/bigquery/datapolicies_v1/services/data_policy_service/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
) |
Oops, something went wrong.