Class: SDM::BigQuery

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id: nil, name: nil, healthy: nil, private_key: nil, project: nil, port_override: nil, endpoint: nil, username: nil) ⇒ BigQuery

Returns a new instance of BigQuery.



555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
# File 'lib/models/porcelain.rb', line 555

def initialize(
	id:nil \
,
	name:nil \
,
	healthy:nil \
,
	private_key:nil \
,
	project:nil \
,
	port_override:nil \
,
	endpoint:nil \
,
	username:nil \
)
	if id != nil
		@id = id
	end
	if name != nil
		@name = name
	end
	if healthy != nil
		@healthy = healthy
	end
	if private_key != nil
		@private_key = private_key
	end
	if project != nil
		@project = project
	end
	if port_override != nil
		@port_override = port_override
	end
	if endpoint != nil
		@endpoint = endpoint
	end
	if username != nil
		@username = username
	end
end

Instance Attribute Details

#endpointObject

Returns the value of attribute endpoint.



552
553
554
# File 'lib/models/porcelain.rb', line 552

def endpoint
  @endpoint
end

#healthyObject

True if the datasource is reachable and the credentials are valid.



544
545
546
# File 'lib/models/porcelain.rb', line 544

def healthy
  @healthy
end

#idObject

Unique identifier of the Resource.



540
541
542
# File 'lib/models/porcelain.rb', line 540

def id
  @id
end

#nameObject

Unique human-readable name of the Resource.



542
543
544
# File 'lib/models/porcelain.rb', line 542

def name
  @name
end

#port_overrideObject

Returns the value of attribute port_override.



550
551
552
# File 'lib/models/porcelain.rb', line 550

def port_override
  @port_override
end

#private_keyObject

Returns the value of attribute private_key.



546
547
548
# File 'lib/models/porcelain.rb', line 546

def private_key
  @private_key
end

#projectObject

Returns the value of attribute project.



548
549
550
# File 'lib/models/porcelain.rb', line 548

def project
  @project
end

#usernameObject

Returns the value of attribute username.



554
555
556
# File 'lib/models/porcelain.rb', line 554

def username
  @username
end