# Generated by the protocol buffer compiler.  DO NOT EDIT!
# Source: google/storage/control/v2/storage_control.proto for package 'Google.Cloud.Storage.Control.V2'
# 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/storage/control/v2/storage_control_pb'

module Google
  module Cloud
    module Storage
      module Control
        module V2
          module StorageControl
            # StorageControl service includes selected control plane operations.
            class Service

              include ::GRPC::GenericService

              self.marshal_class_method = :encode
              self.unmarshal_class_method = :decode
              self.service_name = 'google.storage.control.v2.StorageControl'

              # Creates a new folder. This operation is only applicable to a hierarchical
              # namespace enabled bucket.
              rpc :CreateFolder, ::Google::Cloud::Storage::Control::V2::CreateFolderRequest, ::Google::Cloud::Storage::Control::V2::Folder
              # Permanently deletes an empty folder. This operation is only applicable to a
              # hierarchical namespace enabled bucket.
              rpc :DeleteFolder, ::Google::Cloud::Storage::Control::V2::DeleteFolderRequest, ::Google::Protobuf::Empty
              # Returns metadata for the specified folder. This operation is only
              # applicable to a hierarchical namespace enabled bucket.
              rpc :GetFolder, ::Google::Cloud::Storage::Control::V2::GetFolderRequest, ::Google::Cloud::Storage::Control::V2::Folder
              # Retrieves a list of folders. This operation is only applicable to a
              # hierarchical namespace enabled bucket.
              rpc :ListFolders, ::Google::Cloud::Storage::Control::V2::ListFoldersRequest, ::Google::Cloud::Storage::Control::V2::ListFoldersResponse
              # Renames a source folder to a destination folder. This operation is only
              # applicable to a hierarchical namespace enabled bucket. During a rename, the
              # source and destination folders are locked until the long running operation
              # completes.
              rpc :RenameFolder, ::Google::Cloud::Storage::Control::V2::RenameFolderRequest, ::Google::Longrunning::Operation
              # Returns the storage layout configuration for a given bucket.
              rpc :GetStorageLayout, ::Google::Cloud::Storage::Control::V2::GetStorageLayoutRequest, ::Google::Cloud::Storage::Control::V2::StorageLayout
              # Creates a new managed folder.
              rpc :CreateManagedFolder, ::Google::Cloud::Storage::Control::V2::CreateManagedFolderRequest, ::Google::Cloud::Storage::Control::V2::ManagedFolder
              # Permanently deletes an empty managed folder.
              rpc :DeleteManagedFolder, ::Google::Cloud::Storage::Control::V2::DeleteManagedFolderRequest, ::Google::Protobuf::Empty
              # Returns metadata for the specified managed folder.
              rpc :GetManagedFolder, ::Google::Cloud::Storage::Control::V2::GetManagedFolderRequest, ::Google::Cloud::Storage::Control::V2::ManagedFolder
              # Retrieves a list of managed folders for a given bucket.
              rpc :ListManagedFolders, ::Google::Cloud::Storage::Control::V2::ListManagedFoldersRequest, ::Google::Cloud::Storage::Control::V2::ListManagedFoldersResponse
              # Creates an Anywhere Cache instance.
              rpc :CreateAnywhereCache, ::Google::Cloud::Storage::Control::V2::CreateAnywhereCacheRequest, ::Google::Longrunning::Operation
              # Updates an Anywhere Cache instance. Mutable fields include `ttl` and
              # `admission_policy`.
              rpc :UpdateAnywhereCache, ::Google::Cloud::Storage::Control::V2::UpdateAnywhereCacheRequest, ::Google::Longrunning::Operation
              # Disables an Anywhere Cache instance. A disabled instance is read-only. The
              # disablement could be revoked by calling ResumeAnywhereCache. The cache
              # instance will be deleted automatically if it remains in the disabled state
              # for at least one hour.
              rpc :DisableAnywhereCache, ::Google::Cloud::Storage::Control::V2::DisableAnywhereCacheRequest, ::Google::Cloud::Storage::Control::V2::AnywhereCache
              # Pauses an Anywhere Cache instance.
              rpc :PauseAnywhereCache, ::Google::Cloud::Storage::Control::V2::PauseAnywhereCacheRequest, ::Google::Cloud::Storage::Control::V2::AnywhereCache
              # Resumes a disabled or paused Anywhere Cache instance.
              rpc :ResumeAnywhereCache, ::Google::Cloud::Storage::Control::V2::ResumeAnywhereCacheRequest, ::Google::Cloud::Storage::Control::V2::AnywhereCache
              # Gets an Anywhere Cache instance.
              rpc :GetAnywhereCache, ::Google::Cloud::Storage::Control::V2::GetAnywhereCacheRequest, ::Google::Cloud::Storage::Control::V2::AnywhereCache
              # Lists Anywhere Cache instances for a given bucket.
              rpc :ListAnywhereCaches, ::Google::Cloud::Storage::Control::V2::ListAnywhereCachesRequest, ::Google::Cloud::Storage::Control::V2::ListAnywhereCachesResponse
              # Returns the Project scoped singleton IntelligenceConfig resource.
              rpc :GetProjectIntelligenceConfig, ::Google::Cloud::Storage::Control::V2::GetProjectIntelligenceConfigRequest, ::Google::Cloud::Storage::Control::V2::IntelligenceConfig
              # Updates the Project scoped singleton IntelligenceConfig resource.
              rpc :UpdateProjectIntelligenceConfig, ::Google::Cloud::Storage::Control::V2::UpdateProjectIntelligenceConfigRequest, ::Google::Cloud::Storage::Control::V2::IntelligenceConfig
              # Returns the Folder scoped singleton IntelligenceConfig resource.
              rpc :GetFolderIntelligenceConfig, ::Google::Cloud::Storage::Control::V2::GetFolderIntelligenceConfigRequest, ::Google::Cloud::Storage::Control::V2::IntelligenceConfig
              # Updates the Folder scoped singleton IntelligenceConfig resource.
              rpc :UpdateFolderIntelligenceConfig, ::Google::Cloud::Storage::Control::V2::UpdateFolderIntelligenceConfigRequest, ::Google::Cloud::Storage::Control::V2::IntelligenceConfig
              # Returns the Organization scoped singleton IntelligenceConfig resource.
              rpc :GetOrganizationIntelligenceConfig, ::Google::Cloud::Storage::Control::V2::GetOrganizationIntelligenceConfigRequest, ::Google::Cloud::Storage::Control::V2::IntelligenceConfig
              # Updates the Organization scoped singleton IntelligenceConfig resource.
              rpc :UpdateOrganizationIntelligenceConfig, ::Google::Cloud::Storage::Control::V2::UpdateOrganizationIntelligenceConfigRequest, ::Google::Cloud::Storage::Control::V2::IntelligenceConfig
              # Gets the IAM policy for a specified bucket.
              # The `resource` field in the request should be
              # `projects/_/buckets/{bucket}` for a bucket, or
              # `projects/_/buckets/{bucket}/managedFolders/{managedFolder}`
              # for a managed folder.
              rpc :GetIamPolicy, ::Google::Iam::V1::GetIamPolicyRequest, ::Google::Iam::V1::Policy
              # Updates an IAM policy for the specified bucket.
              # The `resource` field in the request should be
              # `projects/_/buckets/{bucket}` for a bucket, or
              # `projects/_/buckets/{bucket}/managedFolders/{managedFolder}`
              # for a managed folder.
              rpc :SetIamPolicy, ::Google::Iam::V1::SetIamPolicyRequest, ::Google::Iam::V1::Policy
              # Tests a set of permissions on the given bucket, object, or managed folder
              # to see which, if any, are held by the caller.
              # The `resource` field in the request should be
              # `projects/_/buckets/{bucket}` for a bucket,
              # `projects/_/buckets/{bucket}/objects/{object}` for an object, or
              # `projects/_/buckets/{bucket}/managedFolders/{managedFolder}`
              # for a managed folder.
              rpc :TestIamPermissions, ::Google::Iam::V1::TestIamPermissionsRequest, ::Google::Iam::V1::TestIamPermissionsResponse
            end

            Stub = Service.rpc_stub_class
          end
        end
      end
    end
  end
end
