Send feedback Class Iam (5.13.2) Stay organized with collections Save and categorize content based on your preferences. Version 5.13.2keyboard_arrow_down Package @google-cloud/storage! Constructors (constructor)(bucket)
constructor ( bucket : Bucket ); Constructs a new instance of theIam class
Parameter Name Description bucket Bucket
Methods getPolicy(options)
getPolicy ( options ?: GetPolicyOptions ) : Promise<GetPolicyResponse> ; Parameter Returns Type Description Promise <GetPolicyResponse >
getPolicy(options, callback)
getPolicy ( options : GetPolicyOptions , callback : GetPolicyCallback ) : void ; Parameters Returns getPolicy(callback)
getPolicy ( callback : GetPolicyCallback ) : void ; Parameter Returns setPolicy(policy, options)
setPolicy ( policy : Policy , options ?: SetPolicyOptions ) : Promise<SetPolicyResponse> ; Parameters Returns Type Description Promise <SetPolicyResponse >
setPolicy(policy, callback)
setPolicy ( policy : Policy , callback : SetPolicyCallback ) : void ; Parameters Returns setPolicy(policy, options, callback)
setPolicy ( policy : Policy , options : SetPolicyOptions , callback : SetPolicyCallback ) : void ; Parameters Returns testPermissions(permissions, options)
testPermissions ( permissions : string | string [], options ?: TestIamPermissionsOptions ) : Promise<TestIamPermissionsResponse> ; Parameters Returns Type Description Promise <TestIamPermissionsResponse >
testPermissions(permissions, callback)
testPermissions ( permissions : string | string [], callback : TestIamPermissionsCallback ) : void ; Parameters Returns testPermissions(permissions, options, callback)
testPermissions ( permissions : string | string [], options : TestIamPermissionsOptions , callback : TestIamPermissionsCallback ) : void ; Parameters Returns Send feedback
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License , and code samples are licensed under theApache 2.0 License . For details, see theGoogle Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-30 UTC.
Need to tell us more? [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-30 UTC."],[],[]]