Class: SDM::NodeCreateResponse

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

Overview

NodeCreateResponse reports how the Nodes were created in the system.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(meta: nil, node: nil, token: nil, rate_limit: nil) ⇒ NodeCreateResponse

Returns a new instance of NodeCreateResponse.



3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
# File 'lib/models/porcelain.rb', line 3451

def initialize(
	meta:nil \
,
	node:nil \
,
	token:nil \
,
	rate_limit:nil \
)
	if meta != nil
		@meta = meta
	end
	if node != nil
		@node = node
	end
	if token != nil
		@token = token
	end
	if rate_limit != nil
		@rate_limit = rate_limit
	end
end

Instance Attribute Details

#metaObject

Reserved for future use.



3443
3444
3445
# File 'lib/models/porcelain.rb', line 3443

def meta
  @meta
end

#nodeObject

The created Node.



3445
3446
3447
# File 'lib/models/porcelain.rb', line 3445

def node
  @node
end

#rate_limitObject

Rate limit information.



3450
3451
3452
# File 'lib/models/porcelain.rb', line 3450

def rate_limit
  @rate_limit
end

#tokenObject

The auth token generated for the Node. The Node will use this token to authenticate with the strongDM API.



3448
3449
3450
# File 'lib/models/porcelain.rb', line 3448

def token
  @token
end