Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

feat: Policy Tag Manager v1 API service #143

Closed
wants to merge 13 commits into from
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
11 changes: 11 additions & 0 deletions docs/datacatalog_v1/policy_tag_manager.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
PolicyTagManager
----------------------------------

.. automodule:: google.cloud.datacatalog_v1.services.policy_tag_manager
:members:
:inherited-members:


.. automodule:: google.cloud.datacatalog_v1.services.policy_tag_manager.pagers
:members:
:inherited-members:
6 changes: 6 additions & 0 deletions docs/datacatalog_v1/policy_tag_manager_serialization.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
PolicyTagManagerSerialization
-----------------------------------------------

.. automodule:: google.cloud.datacatalog_v1.services.policy_tag_manager_serialization
:members:
:inherited-members:
2 changes: 2 additions & 0 deletions docs/datacatalog_v1/services.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ Services for Google Cloud Datacatalog v1 API
:maxdepth: 2

data_catalog
policy_tag_manager
policy_tag_manager_serialization
56 changes: 56 additions & 0 deletions google/cloud/datacatalog_v1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,18 @@
#

from .services.data_catalog import DataCatalogClient
from .services.policy_tag_manager import PolicyTagManagerClient
from .services.policy_tag_manager_serialization import (
PolicyTagManagerSerializationClient,
)
from .types.common import IntegratedSystem
from .types.data_source import DataSource
from .types.datacatalog import CreateEntryGroupRequest
from .types.datacatalog import CreateEntryRequest
from .types.datacatalog import CreateTagRequest
from .types.datacatalog import CreateTagTemplateFieldRequest
from .types.datacatalog import CreateTagTemplateRequest
from .types.datacatalog import DatabaseTableSpec
from .types.datacatalog import DeleteEntryGroupRequest
from .types.datacatalog import DeleteEntryRequest
from .types.datacatalog import DeleteTagRequest
Expand All @@ -40,6 +46,7 @@
from .types.datacatalog import ListTagsRequest
from .types.datacatalog import ListTagsResponse
from .types.datacatalog import LookupEntryRequest
from .types.datacatalog import RenameTagTemplateFieldEnumValueRequest
from .types.datacatalog import RenameTagTemplateFieldRequest
from .types.datacatalog import SearchCatalogRequest
from .types.datacatalog import SearchCatalogResponse
Expand All @@ -50,6 +57,28 @@
from .types.datacatalog import UpdateTagTemplateRequest
from .types.gcs_fileset_spec import GcsFileSpec
from .types.gcs_fileset_spec import GcsFilesetSpec
from .types.policytagmanager import CreatePolicyTagRequest
from .types.policytagmanager import CreateTaxonomyRequest
from .types.policytagmanager import DeletePolicyTagRequest
from .types.policytagmanager import DeleteTaxonomyRequest
from .types.policytagmanager import GetPolicyTagRequest
from .types.policytagmanager import GetTaxonomyRequest
from .types.policytagmanager import ListPolicyTagsRequest
from .types.policytagmanager import ListPolicyTagsResponse
from .types.policytagmanager import ListTaxonomiesRequest
from .types.policytagmanager import ListTaxonomiesResponse
from .types.policytagmanager import PolicyTag
from .types.policytagmanager import Taxonomy
from .types.policytagmanager import UpdatePolicyTagRequest
from .types.policytagmanager import UpdateTaxonomyRequest
from .types.policytagmanagerserialization import CrossRegionalSource
from .types.policytagmanagerserialization import ExportTaxonomiesRequest
from .types.policytagmanagerserialization import ExportTaxonomiesResponse
from .types.policytagmanagerserialization import ImportTaxonomiesRequest
from .types.policytagmanagerserialization import ImportTaxonomiesResponse
from .types.policytagmanagerserialization import InlineSource
from .types.policytagmanagerserialization import SerializedPolicyTag
from .types.policytagmanagerserialization import SerializedTaxonomy
from .types.schema import ColumnSchema
from .types.schema import Schema
from .types.search import SearchCatalogResult
Expand All @@ -73,49 +102,76 @@
"ColumnSchema",
"CreateEntryGroupRequest",
"CreateEntryRequest",
"CreatePolicyTagRequest",
"CreateTagRequest",
"CreateTagTemplateFieldRequest",
"CreateTagTemplateRequest",
"CreateTaxonomyRequest",
"CrossRegionalSource",
"DataSource",
"DatabaseTableSpec",
"DeleteEntryGroupRequest",
"DeleteEntryRequest",
"DeletePolicyTagRequest",
"DeleteTagRequest",
"DeleteTagTemplateFieldRequest",
"DeleteTagTemplateRequest",
"DeleteTaxonomyRequest",
"Entry",
"EntryGroup",
"EntryType",
"ExportTaxonomiesRequest",
"ExportTaxonomiesResponse",
"FieldType",
"GcsFileSpec",
"GcsFilesetSpec",
"GetEntryGroupRequest",
"GetEntryRequest",
"GetPolicyTagRequest",
"GetTagTemplateRequest",
"GetTaxonomyRequest",
"ImportTaxonomiesRequest",
"ImportTaxonomiesResponse",
"InlineSource",
"IntegratedSystem",
"ListEntriesRequest",
"ListEntriesResponse",
"ListEntryGroupsRequest",
"ListEntryGroupsResponse",
"ListPolicyTagsRequest",
"ListPolicyTagsResponse",
"ListTagsRequest",
"ListTagsResponse",
"ListTaxonomiesRequest",
"ListTaxonomiesResponse",
"LookupEntryRequest",
"PolicyTag",
"PolicyTagManagerClient",
"PolicyTagManagerSerializationClient",
"RenameTagTemplateFieldEnumValueRequest",
"RenameTagTemplateFieldRequest",
"Schema",
"SearchCatalogRequest",
"SearchCatalogResponse",
"SearchCatalogResult",
"SearchResultType",
"SerializedPolicyTag",
"SerializedTaxonomy",
"SystemTimestamps",
"TableSourceType",
"TableSpec",
"Tag",
"TagField",
"TagTemplate",
"TagTemplateField",
"Taxonomy",
"UpdateEntryGroupRequest",
"UpdateEntryRequest",
"UpdatePolicyTagRequest",
"UpdateTagRequest",
"UpdateTagTemplateFieldRequest",
"UpdateTagTemplateRequest",
"UpdateTaxonomyRequest",
"ViewSpec",
"DataCatalogClient",
)
5 changes: 4 additions & 1 deletion google/cloud/datacatalog_v1/proto/common.proto
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2020 Google LLC
// Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -35,4 +35,7 @@ enum IntegratedSystem {

// Cloud Pub/Sub.
CLOUD_PUBSUB = 2;

// Dataproc Metastore.
DATAPROC_METASTORE = 3;
}
50 changes: 50 additions & 0 deletions google/cloud/datacatalog_v1/proto/data_source.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
// Copyright 2021 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.

syntax = "proto3";

package google.cloud.datacatalog.v1;

import "google/api/field_behavior.proto";

option cc_enable_arenas = true;
option csharp_namespace = "Google.Cloud.DataCatalog.V1";
option go_package = "google.golang.org/genproto/googleapis/cloud/datacatalog/v1;datacatalog";
option java_multiple_files = true;
option java_outer_classname = "DataSourceProto";
option java_package = "com.google.cloud.datacatalog.v1";
option php_namespace = "Google\\Cloud\\DataCatalog\\V1";
option ruby_package = "Google::Cloud::DataCatalog::V1";

// Describes the physical location of an entry.
message DataSource {
// Service name where the data is stored.
enum Service {
// Default unknown service.
SERVICE_UNSPECIFIED = 0;

// Google Cloud Storage service.
CLOUD_STORAGE = 1;

// BigQuery service.
BIGQUERY = 2;
}

// Service in which the data is physically stored.
Service service = 1;

// Full name of the resource as defined by the service, e.g.
// //bigquery.googleapis.com/projects/{project_id}/locations/{location}/datasets/{dataset_id}/tables/{table_id}
string resource = 2;
}
Loading