class

GoogleCloudStorage::Policy

Inherits OpenApi::Json < OpenApi::Validatable < JSON::Serializable::Unmapped < JSON::Serializable < Reference < Object

A bucket/object IAM policy.

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
new(*, bindings : Array(GoogleCloudStorage::PolicyBindingsInner) | Nil = nil, etag : String | Nil = nil, kind : String | Nil = "storage#policy", resource_id : String | Nil = nil, version : Int32 | Nil = nil)

Initializes the object @param [Hash] attributes Model attributes in the form of hash

Source

Instance methods

==(other : self)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

bindings

An association between a role, which comes with a set of permissions, and members who may assume that role.

Source
bindings=(new_value : Array(GoogleCloudStorage::PolicyBindingsInner) | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] bindings Object to be assigned

Source
etag

HTTP 1.1 Entity tag for the policy.

Source
etag=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] etag Object to be assigned

Source
hash(hasher)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

kind

The kind of item this is. For policies, this is always storage#policy. This field is ignored on input.

Source
kind=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] kind Object to be assigned

Source
list_invalid_properties

Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons

Source
resource_id

The ID of the resource to which this policy belongs. Will be of the form projects//buckets/bucket for buckets, and projects//buckets/bucket/objects/object for objects. A specific generation may be specified by appending #generationNumber to the end of the object name, e.g. projects/_/buckets/my-bucket/objects/data.txt#17. The current generation can be denoted with #0. This field is ignored on input.

Source
resource_id=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] resource_id Object to be assigned

Source
valid?

Check to see if the all the properties in the model are valid @return true if the model is valid

Source
version

The IAM policy format version.

Source
version=(new_value : Int32 | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] version Object to be assigned

Source