# Generated by the protocol buffer compiler.  DO NOT EDIT!
# Source: google/cloud/datacatalog/v1beta1/policytagmanager.proto for package 'Google.Cloud.DataCatalog.V1beta1'
# Original file comments:
# Copyright 2023 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.
#

require 'grpc'
require 'google/cloud/datacatalog/v1beta1/policytagmanager_pb'

module Google
  module Cloud
    module DataCatalog
      module V1beta1
        module PolicyTagManager
          # The policy tag manager API service allows clients to manage their taxonomies
          # and policy tags.
          class Service

            include ::GRPC::GenericService

            self.marshal_class_method = :encode
            self.unmarshal_class_method = :decode
            self.service_name = 'google.cloud.datacatalog.v1beta1.PolicyTagManager'

            # Creates a taxonomy in the specified project.
            rpc :CreateTaxonomy, ::Google::Cloud::DataCatalog::V1beta1::CreateTaxonomyRequest, ::Google::Cloud::DataCatalog::V1beta1::Taxonomy
            # Deletes a taxonomy. This operation will also delete all
            # policy tags in this taxonomy along with their associated policies.
            rpc :DeleteTaxonomy, ::Google::Cloud::DataCatalog::V1beta1::DeleteTaxonomyRequest, ::Google::Protobuf::Empty
            # Updates a taxonomy.
            rpc :UpdateTaxonomy, ::Google::Cloud::DataCatalog::V1beta1::UpdateTaxonomyRequest, ::Google::Cloud::DataCatalog::V1beta1::Taxonomy
            # Lists all taxonomies in a project in a particular location that the caller
            # has permission to view.
            rpc :ListTaxonomies, ::Google::Cloud::DataCatalog::V1beta1::ListTaxonomiesRequest, ::Google::Cloud::DataCatalog::V1beta1::ListTaxonomiesResponse
            # Gets a taxonomy.
            rpc :GetTaxonomy, ::Google::Cloud::DataCatalog::V1beta1::GetTaxonomyRequest, ::Google::Cloud::DataCatalog::V1beta1::Taxonomy
            # Creates a policy tag in the specified taxonomy.
            rpc :CreatePolicyTag, ::Google::Cloud::DataCatalog::V1beta1::CreatePolicyTagRequest, ::Google::Cloud::DataCatalog::V1beta1::PolicyTag
            # Deletes a policy tag. Also deletes all of its descendant policy tags.
            rpc :DeletePolicyTag, ::Google::Cloud::DataCatalog::V1beta1::DeletePolicyTagRequest, ::Google::Protobuf::Empty
            # Updates a policy tag.
            rpc :UpdatePolicyTag, ::Google::Cloud::DataCatalog::V1beta1::UpdatePolicyTagRequest, ::Google::Cloud::DataCatalog::V1beta1::PolicyTag
            # Lists all policy tags in a taxonomy.
            rpc :ListPolicyTags, ::Google::Cloud::DataCatalog::V1beta1::ListPolicyTagsRequest, ::Google::Cloud::DataCatalog::V1beta1::ListPolicyTagsResponse
            # Gets a policy tag.
            rpc :GetPolicyTag, ::Google::Cloud::DataCatalog::V1beta1::GetPolicyTagRequest, ::Google::Cloud::DataCatalog::V1beta1::PolicyTag
            # Gets the IAM policy for a taxonomy or a policy tag.
            rpc :GetIamPolicy, ::Google::Iam::V1::GetIamPolicyRequest, ::Google::Iam::V1::Policy
            # Sets the IAM policy for a taxonomy or a policy tag.
            rpc :SetIamPolicy, ::Google::Iam::V1::SetIamPolicyRequest, ::Google::Iam::V1::Policy
            # Returns the permissions that a caller has on the specified taxonomy or
            # policy tag.
            rpc :TestIamPermissions, ::Google::Iam::V1::TestIamPermissionsRequest, ::Google::Iam::V1::TestIamPermissionsResponse
          end

          Stub = Service.rpc_stub_class
        end
      end
    end
  end
end
