Class: Google::Storage::Data::BucketDefaultObjectAclApi

Inherits:
BucketDefaultObjectAcl show all
Defined in:
lib/google/storage/property/bucket_default_object_acl.rb

Overview

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

Instance Attribute Summary

Attributes inherited from BucketDefaultObjectAcl

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

Instance Method Summary collapse

Methods inherited from BucketDefaultObjectAcl

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

Constructor Details

#initialize(args) ⇒ BucketDefaultObjectAclApi

Returns a new instance of BucketDefaultObjectAclApi.



119
120
121
122
123
124
125
126
127
128
129
130
131
# File 'lib/google/storage/property/bucket_default_object_acl.rb', line 119

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'])
  @generation = Google::Storage::Property::Integer.api_munge(args['generation'])
  @id = Google::Storage::Property::String.api_munge(args['id'])
  @object = Google::Storage::Property::String.api_munge(args['object'])
  @project_team =
    Google::Storage::Property::BucketProjectTeam.api_munge(args['projectTeam'])
  @role = Google::Storage::Property::Enum.api_munge(args['role'])
end