class SDM::AccountGrant
AccountGrants
connect a resource directly to an account, giving the account the permission to connect to that resource.
Attributes
account_id[RW]
The id of the attached role of this AccountGrant
.
id[RW]
Unique identifier of the AccountGrant
.
resource_id[RW]
The id of the composite role of this AccountGrant
.
start_from[RW]
The timestamp when the resource will be granted. Optional. Both start_at and end_at must be defined together, or not defined at all.
valid_until[RW]
The timestamp when the resource grant will expire. Optional. Both start_at and end_at must be defined together, or not defined at all.
Public Class Methods
new( id:nil \ , resource_id:nil \ , account_id:nil \ , start_from:nil \ , valid_until:nil \ )
click to toggle source
# File lib/models/porcelain.rb, line 345 def initialize( id:nil \ , resource_id:nil \ , account_id:nil \ , start_from:nil \ , valid_until:nil \ ) if id != nil @id = id end if resource_id != nil @resource_id = resource_id end if account_id != nil @account_id = account_id end if start_from != nil @start_from = start_from end if valid_until != nil @valid_until = valid_until end end
Public Instance Methods
to_json(options={})
click to toggle source
# File lib/models/porcelain.rb, line 372 def to_json(options={}) hash = {} self.instance_variables.each do |var| hash[var.id2name.delete_prefix('@')] = self.instance_variable_get var end hash.to_json end