Class: SDM::RequestableResourceEntitlement

Inherits:
Object
  • Object
show all
Defined in:
lib/models/porcelain.rb

Overview

RequestableResourceEntitlement represents an individual account that is permitted to request access to a Resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(account_id: nil, group_id: nil, mapped_identities: nil, origin_id: nil) ⇒ RequestableResourceEntitlement

Returns a new instance of RequestableResourceEntitlement.



16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
# File 'lib/models/porcelain.rb', line 16045

def initialize(
  account_id: nil,
  group_id: nil,
  mapped_identities: nil,
  origin_id: nil
)
  @account_id =  == nil ? "" : 
  @group_id = group_id == nil ? "" : group_id
  @mapped_identities = mapped_identities == nil ? nil : mapped_identities
  @origin_id = origin_id == nil ? "" : origin_id
end

Instance Attribute Details

#account_id ⇒ Object

The unique identifier of the Account that can request access to this resource.



16037
16038
16039
# File 'lib/models/porcelain.rb', line 16037

def 
  @account_id
end

#group_id ⇒ Object

The unique identifier of the group associated with this entitlement, if any.



16039
16040
16041
# File 'lib/models/porcelain.rb', line 16039

def group_id
  @group_id
end

#mapped_identities ⇒ Object

The mapped identity privileges for this entitlement, such as Kubernetes group memberships.



16041
16042
16043
# File 'lib/models/porcelain.rb', line 16041

def mapped_identities
  @mapped_identities
end

#origin_id ⇒ Object

The unique identifier of the origin of this entitlement (e.g., an Access Workflow ID).



16043
16044
16045
# File 'lib/models/porcelain.rb', line 16043

def origin_id
  @origin_id
end

Instance Method Details

#to_json(options = {}) ⇒ Object



16057
16058
16059
16060
16061
16062
16063
# File 'lib/models/porcelain.rb', line 16057

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