Class: SDM::AccountGrant
- Inherits:
-
Object
- Object
- SDM::AccountGrant
- Defined in:
- lib/models/porcelain.rb
Overview
AccountGrants connect a resource directly to an account, giving the account the permission to connect to that resource.
Instance Attribute Summary collapse
-
#account_id ⇒ Object
The id of the attached role of this AccountGrant.
-
#id ⇒ Object
Unique identifier of the AccountGrant.
-
#resource_id ⇒ Object
The id of the composite role of this AccountGrant.
-
#start_from ⇒ Object
The timestamp when the resource will be granted.
-
#valid_until ⇒ Object
The timestamp when the resource grant will expire.
Instance Method Summary collapse
-
#initialize(id: nil, resource_id: nil, account_id: nil, start_from: nil, valid_until: nil) ⇒ AccountGrant
constructor
A new instance of AccountGrant.
Constructor Details
#initialize(id: nil, resource_id: nil, account_id: nil, start_from: nil, valid_until: nil) ⇒ AccountGrant
Returns a new instance of AccountGrant.
274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 |
# File 'lib/models/porcelain.rb', line 274 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 |
Instance Attribute Details
#account_id ⇒ Object
The id of the attached role of this AccountGrant.
267 268 269 |
# File 'lib/models/porcelain.rb', line 267 def account_id @account_id end |
#id ⇒ Object
Unique identifier of the AccountGrant.
263 264 265 |
# File 'lib/models/porcelain.rb', line 263 def id @id end |
#resource_id ⇒ Object
The id of the composite role of this AccountGrant.
265 266 267 |
# File 'lib/models/porcelain.rb', line 265 def resource_id @resource_id end |
#start_from ⇒ Object
The timestamp when the resource will be granted. Optional. Both start_at and end_at must be defined together, or not defined at all.
270 271 272 |
# File 'lib/models/porcelain.rb', line 270 def start_from @start_from end |
#valid_until ⇒ Object
The timestamp when the resource grant will expire. Optional. Both start_at and end_at must be defined together, or not defined at all.
273 274 275 |
# File 'lib/models/porcelain.rb', line 273 def valid_until @valid_until end |