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(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.



1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
# File 'lib/models/porcelain.rb', line 1634

def initialize(
  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
)
  if egress_filter != nil
    @egress_filter = egress_filter
  end
  if endpoint != nil
    @endpoint = endpoint
  end
  if healthy != nil
    @healthy = healthy
  end
  if id != nil
    @id = id
  end
  if name != nil
    @name = name
  end
  if port_override != nil
    @port_override = port_override
  end
  if private_key != nil
    @private_key = private_key
  end
  if project != nil
    @project = project
  end
  if secret_store_id != nil
    @secret_store_id = secret_store_id
  end
  if tags != nil
    @tags = tags
  end
  if username != nil
    @username = username
  end
end

Instance Attribute Details

#egress_filterObject

A filter applied to the routing logic to pin datasource to nodes.



1612
1613
1614
# File 'lib/models/porcelain.rb', line 1612

def egress_filter
  @egress_filter
end

#endpointObject

Returns the value of attribute endpoint.



1614
1615
1616
# File 'lib/models/porcelain.rb', line 1614

def endpoint
  @endpoint
end

#healthyObject

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



1616
1617
1618
# File 'lib/models/porcelain.rb', line 1616

def healthy
  @healthy
end

#idObject

Unique identifier of the Resource.



1618
1619
1620
# File 'lib/models/porcelain.rb', line 1618

def id
  @id
end

#nameObject

Unique human-readable name of the Resource.



1620
1621
1622
# File 'lib/models/porcelain.rb', line 1620

def name
  @name
end

#port_overrideObject

Returns the value of attribute port_override.



1622
1623
1624
# File 'lib/models/porcelain.rb', line 1622

def port_override
  @port_override
end

#private_keyObject

Returns the value of attribute private_key.



1624
1625
1626
# File 'lib/models/porcelain.rb', line 1624

def private_key
  @private_key
end

#projectObject

Returns the value of attribute project.



1626
1627
1628
# File 'lib/models/porcelain.rb', line 1626

def project
  @project
end

#secret_store_idObject

ID of the secret store containing credentials for this resource, if any.



1628
1629
1630
# File 'lib/models/porcelain.rb', line 1628

def secret_store_id
  @secret_store_id
end

#tagsObject

Tags is a map of key, value pairs.



1630
1631
1632
# File 'lib/models/porcelain.rb', line 1630

def tags
  @tags
end

#usernameObject

Returns the value of attribute username.



1632
1633
1634
# File 'lib/models/porcelain.rb', line 1632

def username
  @username
end

Instance Method Details

#to_json(options = {}) ⇒ Object



1682
1683
1684
1685
1686
1687
1688
# File 'lib/models/porcelain.rb', line 1682

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