UNPKG

@google-cloud/storage-control

Version:
880 lines (741 loc) 1.33 MB
// Copyright 2026 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. import type {protobuf as $protobuf} from "google-gax"; import Long = require("long"); /** Namespace google. */ export namespace google { /** Namespace storage. */ namespace storage { /** Namespace control. */ namespace control { /** Namespace v2. */ namespace v2 { /** Represents a StorageControl */ class StorageControl extends $protobuf.rpc.Service { /** * Constructs a new StorageControl service. * @param rpcImpl RPC implementation * @param [requestDelimited=false] Whether requests are length-delimited * @param [responseDelimited=false] Whether responses are length-delimited */ constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** * Creates new StorageControl service using the specified rpc implementation. * @param rpcImpl RPC implementation * @param [requestDelimited=false] Whether requests are length-delimited * @param [responseDelimited=false] Whether responses are length-delimited * @returns RPC service. Useful where requests and/or responses are streamed. */ public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): StorageControl; /** * Calls CreateFolder. * @param request CreateFolderRequest message or plain object * @param callback Node-style callback called with the error, if any, and Folder */ public createFolder(request: google.storage.control.v2.ICreateFolderRequest, callback: google.storage.control.v2.StorageControl.CreateFolderCallback): void; /** * Calls CreateFolder. * @param request CreateFolderRequest message or plain object * @returns Promise */ public createFolder(request: google.storage.control.v2.ICreateFolderRequest): Promise<google.storage.control.v2.Folder>; /** * Calls DeleteFolder. * @param request DeleteFolderRequest message or plain object * @param callback Node-style callback called with the error, if any, and Empty */ public deleteFolder(request: google.storage.control.v2.IDeleteFolderRequest, callback: google.storage.control.v2.StorageControl.DeleteFolderCallback): void; /** * Calls DeleteFolder. * @param request DeleteFolderRequest message or plain object * @returns Promise */ public deleteFolder(request: google.storage.control.v2.IDeleteFolderRequest): Promise<google.protobuf.Empty>; /** * Calls GetFolder. * @param request GetFolderRequest message or plain object * @param callback Node-style callback called with the error, if any, and Folder */ public getFolder(request: google.storage.control.v2.IGetFolderRequest, callback: google.storage.control.v2.StorageControl.GetFolderCallback): void; /** * Calls GetFolder. * @param request GetFolderRequest message or plain object * @returns Promise */ public getFolder(request: google.storage.control.v2.IGetFolderRequest): Promise<google.storage.control.v2.Folder>; /** * Calls ListFolders. * @param request ListFoldersRequest message or plain object * @param callback Node-style callback called with the error, if any, and ListFoldersResponse */ public listFolders(request: google.storage.control.v2.IListFoldersRequest, callback: google.storage.control.v2.StorageControl.ListFoldersCallback): void; /** * Calls ListFolders. * @param request ListFoldersRequest message or plain object * @returns Promise */ public listFolders(request: google.storage.control.v2.IListFoldersRequest): Promise<google.storage.control.v2.ListFoldersResponse>; /** * Calls RenameFolder. * @param request RenameFolderRequest message or plain object * @param callback Node-style callback called with the error, if any, and Operation */ public renameFolder(request: google.storage.control.v2.IRenameFolderRequest, callback: google.storage.control.v2.StorageControl.RenameFolderCallback): void; /** * Calls RenameFolder. * @param request RenameFolderRequest message or plain object * @returns Promise */ public renameFolder(request: google.storage.control.v2.IRenameFolderRequest): Promise<google.longrunning.Operation>; /** * Calls DeleteFolderRecursive. * @param request DeleteFolderRecursiveRequest message or plain object * @param callback Node-style callback called with the error, if any, and Operation */ public deleteFolderRecursive(request: google.storage.control.v2.IDeleteFolderRecursiveRequest, callback: google.storage.control.v2.StorageControl.DeleteFolderRecursiveCallback): void; /** * Calls DeleteFolderRecursive. * @param request DeleteFolderRecursiveRequest message or plain object * @returns Promise */ public deleteFolderRecursive(request: google.storage.control.v2.IDeleteFolderRecursiveRequest): Promise<google.longrunning.Operation>; /** * Calls GetStorageLayout. * @param request GetStorageLayoutRequest message or plain object * @param callback Node-style callback called with the error, if any, and StorageLayout */ public getStorageLayout(request: google.storage.control.v2.IGetStorageLayoutRequest, callback: google.storage.control.v2.StorageControl.GetStorageLayoutCallback): void; /** * Calls GetStorageLayout. * @param request GetStorageLayoutRequest message or plain object * @returns Promise */ public getStorageLayout(request: google.storage.control.v2.IGetStorageLayoutRequest): Promise<google.storage.control.v2.StorageLayout>; /** * Calls CreateManagedFolder. * @param request CreateManagedFolderRequest message or plain object * @param callback Node-style callback called with the error, if any, and ManagedFolder */ public createManagedFolder(request: google.storage.control.v2.ICreateManagedFolderRequest, callback: google.storage.control.v2.StorageControl.CreateManagedFolderCallback): void; /** * Calls CreateManagedFolder. * @param request CreateManagedFolderRequest message or plain object * @returns Promise */ public createManagedFolder(request: google.storage.control.v2.ICreateManagedFolderRequest): Promise<google.storage.control.v2.ManagedFolder>; /** * Calls DeleteManagedFolder. * @param request DeleteManagedFolderRequest message or plain object * @param callback Node-style callback called with the error, if any, and Empty */ public deleteManagedFolder(request: google.storage.control.v2.IDeleteManagedFolderRequest, callback: google.storage.control.v2.StorageControl.DeleteManagedFolderCallback): void; /** * Calls DeleteManagedFolder. * @param request DeleteManagedFolderRequest message or plain object * @returns Promise */ public deleteManagedFolder(request: google.storage.control.v2.IDeleteManagedFolderRequest): Promise<google.protobuf.Empty>; /** * Calls GetManagedFolder. * @param request GetManagedFolderRequest message or plain object * @param callback Node-style callback called with the error, if any, and ManagedFolder */ public getManagedFolder(request: google.storage.control.v2.IGetManagedFolderRequest, callback: google.storage.control.v2.StorageControl.GetManagedFolderCallback): void; /** * Calls GetManagedFolder. * @param request GetManagedFolderRequest message or plain object * @returns Promise */ public getManagedFolder(request: google.storage.control.v2.IGetManagedFolderRequest): Promise<google.storage.control.v2.ManagedFolder>; /** * Calls ListManagedFolders. * @param request ListManagedFoldersRequest message or plain object * @param callback Node-style callback called with the error, if any, and ListManagedFoldersResponse */ public listManagedFolders(request: google.storage.control.v2.IListManagedFoldersRequest, callback: google.storage.control.v2.StorageControl.ListManagedFoldersCallback): void; /** * Calls ListManagedFolders. * @param request ListManagedFoldersRequest message or plain object * @returns Promise */ public listManagedFolders(request: google.storage.control.v2.IListManagedFoldersRequest): Promise<google.storage.control.v2.ListManagedFoldersResponse>; /** * Calls CreateAnywhereCache. * @param request CreateAnywhereCacheRequest message or plain object * @param callback Node-style callback called with the error, if any, and Operation */ public createAnywhereCache(request: google.storage.control.v2.ICreateAnywhereCacheRequest, callback: google.storage.control.v2.StorageControl.CreateAnywhereCacheCallback): void; /** * Calls CreateAnywhereCache. * @param request CreateAnywhereCacheRequest message or plain object * @returns Promise */ public createAnywhereCache(request: google.storage.control.v2.ICreateAnywhereCacheRequest): Promise<google.longrunning.Operation>; /** * Calls UpdateAnywhereCache. * @param request UpdateAnywhereCacheRequest message or plain object * @param callback Node-style callback called with the error, if any, and Operation */ public updateAnywhereCache(request: google.storage.control.v2.IUpdateAnywhereCacheRequest, callback: google.storage.control.v2.StorageControl.UpdateAnywhereCacheCallback): void; /** * Calls UpdateAnywhereCache. * @param request UpdateAnywhereCacheRequest message or plain object * @returns Promise */ public updateAnywhereCache(request: google.storage.control.v2.IUpdateAnywhereCacheRequest): Promise<google.longrunning.Operation>; /** * Calls DisableAnywhereCache. * @param request DisableAnywhereCacheRequest message or plain object * @param callback Node-style callback called with the error, if any, and AnywhereCache */ public disableAnywhereCache(request: google.storage.control.v2.IDisableAnywhereCacheRequest, callback: google.storage.control.v2.StorageControl.DisableAnywhereCacheCallback): void; /** * Calls DisableAnywhereCache. * @param request DisableAnywhereCacheRequest message or plain object * @returns Promise */ public disableAnywhereCache(request: google.storage.control.v2.IDisableAnywhereCacheRequest): Promise<google.storage.control.v2.AnywhereCache>; /** * Calls PauseAnywhereCache. * @param request PauseAnywhereCacheRequest message or plain object * @param callback Node-style callback called with the error, if any, and AnywhereCache */ public pauseAnywhereCache(request: google.storage.control.v2.IPauseAnywhereCacheRequest, callback: google.storage.control.v2.StorageControl.PauseAnywhereCacheCallback): void; /** * Calls PauseAnywhereCache. * @param request PauseAnywhereCacheRequest message or plain object * @returns Promise */ public pauseAnywhereCache(request: google.storage.control.v2.IPauseAnywhereCacheRequest): Promise<google.storage.control.v2.AnywhereCache>; /** * Calls ResumeAnywhereCache. * @param request ResumeAnywhereCacheRequest message or plain object * @param callback Node-style callback called with the error, if any, and AnywhereCache */ public resumeAnywhereCache(request: google.storage.control.v2.IResumeAnywhereCacheRequest, callback: google.storage.control.v2.StorageControl.ResumeAnywhereCacheCallback): void; /** * Calls ResumeAnywhereCache. * @param request ResumeAnywhereCacheRequest message or plain object * @returns Promise */ public resumeAnywhereCache(request: google.storage.control.v2.IResumeAnywhereCacheRequest): Promise<google.storage.control.v2.AnywhereCache>; /** * Calls GetAnywhereCache. * @param request GetAnywhereCacheRequest message or plain object * @param callback Node-style callback called with the error, if any, and AnywhereCache */ public getAnywhereCache(request: google.storage.control.v2.IGetAnywhereCacheRequest, callback: google.storage.control.v2.StorageControl.GetAnywhereCacheCallback): void; /** * Calls GetAnywhereCache. * @param request GetAnywhereCacheRequest message or plain object * @returns Promise */ public getAnywhereCache(request: google.storage.control.v2.IGetAnywhereCacheRequest): Promise<google.storage.control.v2.AnywhereCache>; /** * Calls ListAnywhereCaches. * @param request ListAnywhereCachesRequest message or plain object * @param callback Node-style callback called with the error, if any, and ListAnywhereCachesResponse */ public listAnywhereCaches(request: google.storage.control.v2.IListAnywhereCachesRequest, callback: google.storage.control.v2.StorageControl.ListAnywhereCachesCallback): void; /** * Calls ListAnywhereCaches. * @param request ListAnywhereCachesRequest message or plain object * @returns Promise */ public listAnywhereCaches(request: google.storage.control.v2.IListAnywhereCachesRequest): Promise<google.storage.control.v2.ListAnywhereCachesResponse>; /** * Calls GetProjectIntelligenceConfig. * @param request GetProjectIntelligenceConfigRequest message or plain object * @param callback Node-style callback called with the error, if any, and IntelligenceConfig */ public getProjectIntelligenceConfig(request: google.storage.control.v2.IGetProjectIntelligenceConfigRequest, callback: google.storage.control.v2.StorageControl.GetProjectIntelligenceConfigCallback): void; /** * Calls GetProjectIntelligenceConfig. * @param request GetProjectIntelligenceConfigRequest message or plain object * @returns Promise */ public getProjectIntelligenceConfig(request: google.storage.control.v2.IGetProjectIntelligenceConfigRequest): Promise<google.storage.control.v2.IntelligenceConfig>; /** * Calls UpdateProjectIntelligenceConfig. * @param request UpdateProjectIntelligenceConfigRequest message or plain object * @param callback Node-style callback called with the error, if any, and IntelligenceConfig */ public updateProjectIntelligenceConfig(request: google.storage.control.v2.IUpdateProjectIntelligenceConfigRequest, callback: google.storage.control.v2.StorageControl.UpdateProjectIntelligenceConfigCallback): void; /** * Calls UpdateProjectIntelligenceConfig. * @param request UpdateProjectIntelligenceConfigRequest message or plain object * @returns Promise */ public updateProjectIntelligenceConfig(request: google.storage.control.v2.IUpdateProjectIntelligenceConfigRequest): Promise<google.storage.control.v2.IntelligenceConfig>; /** * Calls GetFolderIntelligenceConfig. * @param request GetFolderIntelligenceConfigRequest message or plain object * @param callback Node-style callback called with the error, if any, and IntelligenceConfig */ public getFolderIntelligenceConfig(request: google.storage.control.v2.IGetFolderIntelligenceConfigRequest, callback: google.storage.control.v2.StorageControl.GetFolderIntelligenceConfigCallback): void; /** * Calls GetFolderIntelligenceConfig. * @param request GetFolderIntelligenceConfigRequest message or plain object * @returns Promise */ public getFolderIntelligenceConfig(request: google.storage.control.v2.IGetFolderIntelligenceConfigRequest): Promise<google.storage.control.v2.IntelligenceConfig>; /** * Calls UpdateFolderIntelligenceConfig. * @param request UpdateFolderIntelligenceConfigRequest message or plain object * @param callback Node-style callback called with the error, if any, and IntelligenceConfig */ public updateFolderIntelligenceConfig(request: google.storage.control.v2.IUpdateFolderIntelligenceConfigRequest, callback: google.storage.control.v2.StorageControl.UpdateFolderIntelligenceConfigCallback): void; /** * Calls UpdateFolderIntelligenceConfig. * @param request UpdateFolderIntelligenceConfigRequest message or plain object * @returns Promise */ public updateFolderIntelligenceConfig(request: google.storage.control.v2.IUpdateFolderIntelligenceConfigRequest): Promise<google.storage.control.v2.IntelligenceConfig>; /** * Calls GetOrganizationIntelligenceConfig. * @param request GetOrganizationIntelligenceConfigRequest message or plain object * @param callback Node-style callback called with the error, if any, and IntelligenceConfig */ public getOrganizationIntelligenceConfig(request: google.storage.control.v2.IGetOrganizationIntelligenceConfigRequest, callback: google.storage.control.v2.StorageControl.GetOrganizationIntelligenceConfigCallback): void; /** * Calls GetOrganizationIntelligenceConfig. * @param request GetOrganizationIntelligenceConfigRequest message or plain object * @returns Promise */ public getOrganizationIntelligenceConfig(request: google.storage.control.v2.IGetOrganizationIntelligenceConfigRequest): Promise<google.storage.control.v2.IntelligenceConfig>; /** * Calls UpdateOrganizationIntelligenceConfig. * @param request UpdateOrganizationIntelligenceConfigRequest message or plain object * @param callback Node-style callback called with the error, if any, and IntelligenceConfig */ public updateOrganizationIntelligenceConfig(request: google.storage.control.v2.IUpdateOrganizationIntelligenceConfigRequest, callback: google.storage.control.v2.StorageControl.UpdateOrganizationIntelligenceConfigCallback): void; /** * Calls UpdateOrganizationIntelligenceConfig. * @param request UpdateOrganizationIntelligenceConfigRequest message or plain object * @returns Promise */ public updateOrganizationIntelligenceConfig(request: google.storage.control.v2.IUpdateOrganizationIntelligenceConfigRequest): Promise<google.storage.control.v2.IntelligenceConfig>; /** * Calls GetIamPolicy. * @param request GetIamPolicyRequest message or plain object * @param callback Node-style callback called with the error, if any, and Policy */ public getIamPolicy(request: google.iam.v1.IGetIamPolicyRequest, callback: google.storage.control.v2.StorageControl.GetIamPolicyCallback): void; /** * Calls GetIamPolicy. * @param request GetIamPolicyRequest message or plain object * @returns Promise */ public getIamPolicy(request: google.iam.v1.IGetIamPolicyRequest): Promise<google.iam.v1.Policy>; /** * Calls SetIamPolicy. * @param request SetIamPolicyRequest message or plain object * @param callback Node-style callback called with the error, if any, and Policy */ public setIamPolicy(request: google.iam.v1.ISetIamPolicyRequest, callback: google.storage.control.v2.StorageControl.SetIamPolicyCallback): void; /** * Calls SetIamPolicy. * @param request SetIamPolicyRequest message or plain object * @returns Promise */ public setIamPolicy(request: google.iam.v1.ISetIamPolicyRequest): Promise<google.iam.v1.Policy>; /** * Calls TestIamPermissions. * @param request TestIamPermissionsRequest message or plain object * @param callback Node-style callback called with the error, if any, and TestIamPermissionsResponse */ public testIamPermissions(request: google.iam.v1.ITestIamPermissionsRequest, callback: google.storage.control.v2.StorageControl.TestIamPermissionsCallback): void; /** * Calls TestIamPermissions. * @param request TestIamPermissionsRequest message or plain object * @returns Promise */ public testIamPermissions(request: google.iam.v1.ITestIamPermissionsRequest): Promise<google.iam.v1.TestIamPermissionsResponse>; } namespace StorageControl { /** * Callback as used by {@link google.storage.control.v2.StorageControl|createFolder}. * @param error Error, if any * @param [response] Folder */ type CreateFolderCallback = (error: (Error|null), response?: google.storage.control.v2.Folder) => void; /** * Callback as used by {@link google.storage.control.v2.StorageControl|deleteFolder}. * @param error Error, if any * @param [response] Empty */ type DeleteFolderCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** * Callback as used by {@link google.storage.control.v2.StorageControl|getFolder}. * @param error Error, if any * @param [response] Folder */ type GetFolderCallback = (error: (Error|null), response?: google.storage.control.v2.Folder) => void; /** * Callback as used by {@link google.storage.control.v2.StorageControl|listFolders}. * @param error Error, if any * @param [response] ListFoldersResponse */ type ListFoldersCallback = (error: (Error|null), response?: google.storage.control.v2.ListFoldersResponse) => void; /** * Callback as used by {@link google.storage.control.v2.StorageControl|renameFolder}. * @param error Error, if any * @param [response] Operation */ type RenameFolderCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** * Callback as used by {@link google.storage.control.v2.StorageControl|deleteFolderRecursive}. * @param error Error, if any * @param [response] Operation */ type DeleteFolderRecursiveCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** * Callback as used by {@link google.storage.control.v2.StorageControl|getStorageLayout}. * @param error Error, if any * @param [response] StorageLayout */ type GetStorageLayoutCallback = (error: (Error|null), response?: google.storage.control.v2.StorageLayout) => void; /** * Callback as used by {@link google.storage.control.v2.StorageControl|createManagedFolder}. * @param error Error, if any * @param [response] ManagedFolder */ type CreateManagedFolderCallback = (error: (Error|null), response?: google.storage.control.v2.ManagedFolder) => void; /** * Callback as used by {@link google.storage.control.v2.StorageControl|deleteManagedFolder}. * @param error Error, if any * @param [response] Empty */ type DeleteManagedFolderCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** * Callback as used by {@link google.storage.control.v2.StorageControl|getManagedFolder}. * @param error Error, if any * @param [response] ManagedFolder */ type GetManagedFolderCallback = (error: (Error|null), response?: google.storage.control.v2.ManagedFolder) => void; /** * Callback as used by {@link google.storage.control.v2.StorageControl|listManagedFolders}. * @param error Error, if any * @param [response] ListManagedFoldersResponse */ type ListManagedFoldersCallback = (error: (Error|null), response?: google.storage.control.v2.ListManagedFoldersResponse) => void; /** * Callback as used by {@link google.storage.control.v2.StorageControl|createAnywhereCache}. * @param error Error, if any * @param [response] Operation */ type CreateAnywhereCacheCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** * Callback as used by {@link google.storage.control.v2.StorageControl|updateAnywhereCache}. * @param error Error, if any * @param [response] Operation */ type UpdateAnywhereCacheCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** * Callback as used by {@link google.storage.control.v2.StorageControl|disableAnywhereCache}. * @param error Error, if any * @param [response] AnywhereCache */ type DisableAnywhereCacheCallback = (error: (Error|null), response?: google.storage.control.v2.AnywhereCache) => void; /** * Callback as used by {@link google.storage.control.v2.StorageControl|pauseAnywhereCache}. * @param error Error, if any * @param [response] AnywhereCache */ type PauseAnywhereCacheCallback = (error: (Error|null), response?: google.storage.control.v2.AnywhereCache) => void; /** * Callback as used by {@link google.storage.control.v2.StorageControl|resumeAnywhereCache}. * @param error Error, if any * @param [response] AnywhereCache */ type ResumeAnywhereCacheCallback = (error: (Error|null), response?: google.storage.control.v2.AnywhereCache) => void; /** * Callback as used by {@link google.storage.control.v2.StorageControl|getAnywhereCache}. * @param error Error, if any * @param [response] AnywhereCache */ type GetAnywhereCacheCallback = (error: (Error|null), response?: google.storage.control.v2.AnywhereCache) => void; /** * Callback as used by {@link google.storage.control.v2.StorageControl|listAnywhereCaches}. * @param error Error, if any * @param [response] ListAnywhereCachesResponse */ type ListAnywhereCachesCallback = (error: (Error|null), response?: google.storage.control.v2.ListAnywhereCachesResponse) => void; /** * Callback as used by {@link google.storage.control.v2.StorageControl|getProjectIntelligenceConfig}. * @param error Error, if any * @param [response] IntelligenceConfig */ type GetProjectIntelligenceConfigCallback = (error: (Error|null), response?: google.storage.control.v2.IntelligenceConfig) => void; /** * Callback as used by {@link google.storage.control.v2.StorageControl|updateProjectIntelligenceConfig}. * @param error Error, if any * @param [response] IntelligenceConfig */ type UpdateProjectIntelligenceConfigCallback = (error: (Error|null), response?: google.storage.control.v2.IntelligenceConfig) => void; /** * Callback as used by {@link google.storage.control.v2.StorageControl|getFolderIntelligenceConfig}. * @param error Error, if any * @param [response] IntelligenceConfig */ type GetFolderIntelligenceConfigCallback = (error: (Error|null), response?: google.storage.control.v2.IntelligenceConfig) => void; /** * Callback as used by {@link google.storage.control.v2.StorageControl|updateFolderIntelligenceConfig}. * @param error Error, if any * @param [response] IntelligenceConfig */ type UpdateFolderIntelligenceConfigCallback = (error: (Error|null), response?: google.storage.control.v2.IntelligenceConfig) => void; /** * Callback as used by {@link google.storage.control.v2.StorageControl|getOrganizationIntelligenceConfig}. * @param error Error, if any * @param [response] IntelligenceConfig */ type GetOrganizationIntelligenceConfigCallback = (error: (Error|null), response?: google.storage.control.v2.IntelligenceConfig) => void; /** * Callback as used by {@link google.storage.control.v2.StorageControl|updateOrganizationIntelligenceConfig}. * @param error Error, if any * @param [response] IntelligenceConfig */ type UpdateOrganizationIntelligenceConfigCallback = (error: (Error|null), response?: google.storage.control.v2.IntelligenceConfig) => void; /** * Callback as used by {@link google.storage.control.v2.StorageControl|getIamPolicy}. * @param error Error, if any * @param [response] Policy */ type GetIamPolicyCallback = (error: (Error|null), response?: google.iam.v1.Policy) => void; /** * Callback as used by {@link google.storage.control.v2.StorageControl|setIamPolicy}. * @param error Error, if any * @param [response] Policy */ type SetIamPolicyCallback = (error: (Error|null), response?: google.iam.v1.Policy) => void; /** * Callback as used by {@link google.storage.control.v2.StorageControl|testIamPermissions}. * @param error Error, if any * @param [response] TestIamPermissionsResponse */ type TestIamPermissionsCallback = (error: (Error|null), response?: google.iam.v1.TestIamPermissionsResponse) => void; } /** Properties of a PendingRenameInfo. */ interface IPendingRenameInfo { /** PendingRenameInfo operation */ operation?: (string|null); } /** Represents a PendingRenameInfo. */ class PendingRenameInfo implements IPendingRenameInfo { /** * Constructs a new PendingRenameInfo. * @param [properties] Properties to set */ constructor(properties?: google.storage.control.v2.IPendingRenameInfo); /** PendingRenameInfo operation. */ public operation: string; /** * Creates a new PendingRenameInfo instance using the specified properties. * @param [properties] Properties to set * @returns PendingRenameInfo instance */ public static create(properties?: google.storage.control.v2.IPendingRenameInfo): google.storage.control.v2.PendingRenameInfo; /** * Encodes the specified PendingRenameInfo message. Does not implicitly {@link google.storage.control.v2.PendingRenameInfo.verify|verify} messages. * @param message PendingRenameInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.storage.control.v2.IPendingRenameInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified PendingRenameInfo message, length delimited. Does not implicitly {@link google.storage.control.v2.PendingRenameInfo.verify|verify} messages. * @param message PendingRenameInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.storage.control.v2.IPendingRenameInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a PendingRenameInfo message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns PendingRenameInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.storage.control.v2.PendingRenameInfo; /** * Decodes a PendingRenameInfo message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns PendingRenameInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.storage.control.v2.PendingRenameInfo; /** * Verifies a PendingRenameInfo message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a PendingRenameInfo message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns PendingRenameInfo */ public static fromObject(object: { [k: string]: any }): google.storage.control.v2.PendingRenameInfo; /** * Creates a plain object from a PendingRenameInfo message. Also converts values to other types if specified. * @param message PendingRenameInfo * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.storage.control.v2.PendingRenameInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this PendingRenameInfo to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for PendingRenameInfo * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a Folder. */ interface IFolder { /** Folder name */ name?: (string|null); /** Folder metageneration */ metageneration?: (number|Long|string|null); /** Folder createTime */ createTime?: (google.protobuf.ITimestamp|null); /** Folder updateTime */ updateTime?: (google.protobuf.ITimestamp|null); /** Folder pendingRenameInfo */ pendingRenameInfo?: (google.storage.control.v2.IPendingRenameInfo|null); } /** Represents a Folder. */ class Folder implements IFolder { /** * Constructs a new Folder. * @param [properties] Properties to set */ constructor(properties?: google.storage.control.v2.IFolder); /** Folder name. */ public name: string; /** Folder metageneration. */ public metageneration: (number|Long|string); /** Folder createTime. */ public createTime?: (google.protobuf.ITimestamp|null); /** Folder updateTime. */ public updateTime?: (google.protobuf.ITimestamp|null); /** Folder pendingRenameInfo. */ public pendingRenameInfo?: (google.storage.control.v2.IPendingRenameInfo|null); /** * Creates a new Folder instance using the specified properties. * @param [properties] Properties to set * @returns Folder instance */ public static create(properties?: google.storage.control.v2.IFolder): google.storage.control.v2.Folder; /** * Encodes the specified Folder message. Does not implicitly {@link google.storage.control.v2.Folder.verify|verify} messages. * @param message Folder message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.storage.control.v2.IFolder, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Folder message, length delimited. Does not implicitly {@link google.storage.control.v2.Folder.verify|verify} messages. * @param message Folder message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.storage.control.v2.IFolder, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a Folder message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns Folder * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.storage.control.v2.Folder; /** * Decodes a Folder message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns Folder * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.storage.control.v2.Folder; /** * Verifies a Folder message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a Folder message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns Folder */ public static fromObject(object: { [k: string]: any }): google.storage.control.v2.Folder; /** * Creates a plain object from a Folder message. Also converts values to other types if specified. * @param message Folder * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.storage.control.v2.Folder, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this Folder to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for Folder * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a GetFolderRequest. */ interface IGetFolderRequest { /** GetFolderRequest name */ name?: (string|null); /** GetFolderRequest ifMetagenerationMatch */ ifMetagenerationMatch?: (number|Long|string|null); /** GetFolderRequest ifMetagenerationNotMatch */ ifMetagenerationNotMatch?: (number|Long|string|null); /** GetFolderRequest requestId */ requestId?: (string|null); } /** Represents a GetFolderRequest. */ class GetFolderRequest implements IGetFolderRequest { /** * Constructs a new GetFolderRequest. * @param [properties] Properties to set */ constructor(properties?: google.storage.control.v2.IGetFolderRequest); /** GetFolderRequest name. */ public name: string; /** GetFolderRequest ifMetagenerationMatch. */ public ifMetagenerationMatch?: (number|Long|string|null); /** GetFolderRequest ifMetagenerationNotMatch. */ public ifMetagenerationNotMatch?: (number|Long|string|null); /** GetFolderRequest requestId. */ public requestId: string; /** * Creates a new GetFolderRequest instance using the specified properties. * @param [properties] Properties to set * @returns GetFolderRequest instance */ public static create(properties?: google.sto