Class: SDM::BigQuery
- Inherits:
-
Object
- Object
- SDM::BigQuery
- Defined in:
- lib/models/porcelain.rb
Instance Attribute Summary collapse
-
#bind_interface ⇒ Object
Bind interface.
-
#egress_filter ⇒ Object
A filter applied to the routing logic to pin datasource to nodes.
-
#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.
-
#secret_store_id ⇒ Object
ID of the secret store containing credentials for this resource, if any.
-
#tags ⇒ Object
Tags is a map of key, value pairs.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(bind_interface: nil, egress_filter: nil, endpoint: nil, healthy: nil, id: nil, name: nil, port_override: nil, private_key: nil, project: nil, secret_store_id: nil, tags: nil, username: nil) ⇒ BigQuery
constructor
A new instance of BigQuery.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(bind_interface: nil, egress_filter: nil, endpoint: nil, healthy: nil, id: nil, name: nil, port_override: nil, private_key: nil, project: nil, secret_store_id: nil, tags: nil, username: nil) ⇒ BigQuery
Returns a new instance of BigQuery.
1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 |
# File 'lib/models/porcelain.rb', line 1709 def initialize( bind_interface: nil, egress_filter: nil, endpoint: nil, healthy: nil, id: nil, name: nil, port_override: nil, private_key: nil, project: nil, secret_store_id: nil, tags: nil, username: nil ) @bind_interface = bind_interface == nil ? "" : bind_interface @egress_filter = egress_filter == nil ? "" : egress_filter @endpoint = endpoint == nil ? "" : endpoint @healthy = healthy == nil ? false : healthy @id = id == nil ? "" : id @name = name == nil ? "" : name @port_override = port_override == nil ? 0 : port_override @private_key = private_key == nil ? "" : private_key @project = project == nil ? "" : project @secret_store_id = secret_store_id == nil ? "" : secret_store_id @tags = == nil ? SDM::() : @username = username == nil ? "" : username end |
Instance Attribute Details
#bind_interface ⇒ Object
Bind interface
1685 1686 1687 |
# File 'lib/models/porcelain.rb', line 1685 def bind_interface @bind_interface end |
#egress_filter ⇒ Object
A filter applied to the routing logic to pin datasource to nodes.
1687 1688 1689 |
# File 'lib/models/porcelain.rb', line 1687 def egress_filter @egress_filter end |
#endpoint ⇒ Object
Returns the value of attribute endpoint.
1689 1690 1691 |
# File 'lib/models/porcelain.rb', line 1689 def endpoint @endpoint end |
#healthy ⇒ Object
True if the datasource is reachable and the credentials are valid.
1691 1692 1693 |
# File 'lib/models/porcelain.rb', line 1691 def healthy @healthy end |
#id ⇒ Object
Unique identifier of the Resource.
1693 1694 1695 |
# File 'lib/models/porcelain.rb', line 1693 def id @id end |
#name ⇒ Object
Unique human-readable name of the Resource.
1695 1696 1697 |
# File 'lib/models/porcelain.rb', line 1695 def name @name end |
#port_override ⇒ Object
Returns the value of attribute port_override.
1697 1698 1699 |
# File 'lib/models/porcelain.rb', line 1697 def port_override @port_override end |
#private_key ⇒ Object
Returns the value of attribute private_key.
1699 1700 1701 |
# File 'lib/models/porcelain.rb', line 1699 def private_key @private_key end |
#project ⇒ Object
Returns the value of attribute project.
1701 1702 1703 |
# File 'lib/models/porcelain.rb', line 1701 def project @project end |
#secret_store_id ⇒ Object
ID of the secret store containing credentials for this resource, if any.
1703 1704 1705 |
# File 'lib/models/porcelain.rb', line 1703 def secret_store_id @secret_store_id end |
#tags ⇒ Object
Tags is a map of key, value pairs.
1705 1706 1707 |
# File 'lib/models/porcelain.rb', line 1705 def @tags end |
#username ⇒ Object
Returns the value of attribute username.
1707 1708 1709 |
# File 'lib/models/porcelain.rb', line 1707 def username @username end |
Instance Method Details
#to_json(options = {}) ⇒ Object
1737 1738 1739 1740 1741 1742 1743 |
# File 'lib/models/porcelain.rb', line 1737 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 |