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(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 = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
  @username = username == nil ? "" : username
end

Instance Attribute Details

#bind_interfaceObject

Bind interface



1685
1686
1687
# File 'lib/models/porcelain.rb', line 1685

def bind_interface
  @bind_interface
end

#egress_filterObject

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

#endpointObject

Returns the value of attribute endpoint.



1689
1690
1691
# File 'lib/models/porcelain.rb', line 1689

def endpoint
  @endpoint
end

#healthyObject

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

#idObject

Unique identifier of the Resource.



1693
1694
1695
# File 'lib/models/porcelain.rb', line 1693

def id
  @id
end

#nameObject

Unique human-readable name of the Resource.



1695
1696
1697
# File 'lib/models/porcelain.rb', line 1695

def name
  @name
end

#port_overrideObject

Returns the value of attribute port_override.



1697
1698
1699
# File 'lib/models/porcelain.rb', line 1697

def port_override
  @port_override
end

#private_keyObject

Returns the value of attribute private_key.



1699
1700
1701
# File 'lib/models/porcelain.rb', line 1699

def private_key
  @private_key
end

#projectObject

Returns the value of attribute project.



1701
1702
1703
# File 'lib/models/porcelain.rb', line 1701

def project
  @project
end

#secret_store_idObject

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

#tagsObject

Tags is a map of key, value pairs.



1705
1706
1707
# File 'lib/models/porcelain.rb', line 1705

def tags
  @tags
end

#usernameObject

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(options = {})
  hash = {}
  self.instance_variables.each do |var|
    hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
  end
  hash.to_json
end