Class: SDM::BigQuery
- Inherits:
-
Object
- Object
- SDM::BigQuery
- Defined in:
- lib/models/porcelain.rb
Instance Attribute Summary collapse
-
#endpoint ⇒ Object
Returns the value of attribute endpoint.
-
#healthy ⇒ Object
True if the datasource is reachable and the credentials are valid.
-
#id ⇒ Object
Unique identifier of the Resource.
-
#name ⇒ Object
Unique human-readable name of the Resource.
-
#port_override ⇒ Object
Returns the value of attribute port_override.
-
#private_key ⇒ Object
Returns the value of attribute private_key.
-
#project ⇒ Object
Returns the value of attribute project.
-
#tags ⇒ Object
Tags is a map of key, value pairs.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(id: nil, name: nil, healthy: nil, tags: nil, private_key: nil, project: nil, port_override: nil, endpoint: nil, username: nil) ⇒ BigQuery
constructor
A new instance of BigQuery.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(id: nil, name: nil, healthy: nil, tags: nil, private_key: nil, project: nil, port_override: nil, endpoint: nil, username: nil) ⇒ BigQuery
Returns a new instance of BigQuery.
736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 |
# File 'lib/models/porcelain.rb', line 736 def initialize( id: nil, name: nil, healthy: nil, tags: 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 != nil @tags = 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
#endpoint ⇒ Object
Returns the value of attribute endpoint.
732 733 734 |
# File 'lib/models/porcelain.rb', line 732 def endpoint @endpoint end |
#healthy ⇒ Object
True if the datasource is reachable and the credentials are valid.
722 723 724 |
# File 'lib/models/porcelain.rb', line 722 def healthy @healthy end |
#id ⇒ Object
Unique identifier of the Resource.
718 719 720 |
# File 'lib/models/porcelain.rb', line 718 def id @id end |
#name ⇒ Object
Unique human-readable name of the Resource.
720 721 722 |
# File 'lib/models/porcelain.rb', line 720 def name @name end |
#port_override ⇒ Object
Returns the value of attribute port_override.
730 731 732 |
# File 'lib/models/porcelain.rb', line 730 def port_override @port_override end |
#private_key ⇒ Object
Returns the value of attribute private_key.
726 727 728 |
# File 'lib/models/porcelain.rb', line 726 def private_key @private_key end |
#project ⇒ Object
Returns the value of attribute project.
728 729 730 |
# File 'lib/models/porcelain.rb', line 728 def project @project end |
#tags ⇒ Object
Tags is a map of key, value pairs.
724 725 726 |
# File 'lib/models/porcelain.rb', line 724 def @tags end |
#username ⇒ Object
Returns the value of attribute username.
734 735 736 |
# File 'lib/models/porcelain.rb', line 734 def username @username end |
Instance Method Details
#to_json(options = {}) ⇒ Object
776 777 778 779 780 781 782 |
# File 'lib/models/porcelain.rb', line 776 def to_json( = {}) hash = {} self.instance_variables.each do |var| hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var end hash.to_json end |