Class: Google::Storage::Data::BucketAclApi

Inherits:
BucketAcl
  • Object
show all
Defined in:
lib/google/storage/property/bucket_acl.rb

Overview

Manages a BucketAcl nested object Data is coming from the GCP API

Instance Attribute Summary

Attributes inherited from BucketAcl

#bucket, #domain, #email, #entity, #entity_id, #id, #project_team, #role

Instance Method Summary collapse

Methods inherited from BucketAcl

#<=>, #==, #to_json, #to_s

Constructor Details

#initialize(args) ⇒ BucketAclApi

Returns a new instance of BucketAclApi.



111
112
113
114
115
116
117
118
119
120
121
# File 'lib/google/storage/property/bucket_acl.rb', line 111

def initialize(args)
  @bucket = Google::Storage::Property::BucketNameRef.api_munge(args['bucket'])
  @domain = Google::Storage::Property::String.api_munge(args['domain'])
  @email = Google::Storage::Property::String.api_munge(args['email'])
  @entity = Google::Storage::Property::String.api_munge(args['entity'])
  @entity_id = Google::Storage::Property::String.api_munge(args['entityId'])
  @id = Google::Storage::Property::String.api_munge(args['id'])
  @project_team =
    Google::Storage::Property::BucketProjectTeam.api_munge(args['projectTeam'])
  @role = Google::Storage::Property::Enum.api_munge(args['role'])
end