class Google::Cloud::Storage::PolicyV3
def version= new_version
- Example: Updating Policy version 1 to version 3: -
Other tags:
- See: https://cloud.google.com/iam/docs/policies#versions - Policy versions
Parameters:
-
new_version
(Integer
) -- The syntax schema version of the policy.
def version= new_version if new_version < version raise "new_version (#{new_version}) cannot be less than the current version (#{version})." end @version = new_version end