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.
-
#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(id: nil, name: nil, healthy: nil, tags: nil, secret_store_id: 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, secret_store_id: nil, private_key: nil, project: nil, port_override: nil, endpoint: nil, username: nil) ⇒ BigQuery
Returns a new instance of BigQuery.
904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 |
# File 'lib/models/porcelain.rb', line 904 def initialize( id: nil, name: nil, healthy: nil, tags: nil, secret_store_id: 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 secret_store_id != nil @secret_store_id = secret_store_id 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.
900 901 902 |
# File 'lib/models/porcelain.rb', line 900 def endpoint @endpoint end |
#healthy ⇒ Object
True if the datasource is reachable and the credentials are valid.
888 889 890 |
# File 'lib/models/porcelain.rb', line 888 def healthy @healthy end |
#id ⇒ Object
Unique identifier of the Resource.
884 885 886 |
# File 'lib/models/porcelain.rb', line 884 def id @id end |
#name ⇒ Object
Unique human-readable name of the Resource.
886 887 888 |
# File 'lib/models/porcelain.rb', line 886 def name @name end |
#port_override ⇒ Object
Returns the value of attribute port_override.
898 899 900 |
# File 'lib/models/porcelain.rb', line 898 def port_override @port_override end |
#private_key ⇒ Object
Returns the value of attribute private_key.
894 895 896 |
# File 'lib/models/porcelain.rb', line 894 def private_key @private_key end |
#project ⇒ Object
Returns the value of attribute project.
896 897 898 |
# File 'lib/models/porcelain.rb', line 896 def project @project end |
#secret_store_id ⇒ Object
ID of the secret store containing credentials for this resource, if any.
892 893 894 |
# File 'lib/models/porcelain.rb', line 892 def secret_store_id @secret_store_id end |
#tags ⇒ Object
Tags is a map of key, value pairs.
890 891 892 |
# File 'lib/models/porcelain.rb', line 890 def @tags end |
#username ⇒ Object
Returns the value of attribute username.
902 903 904 |
# File 'lib/models/porcelain.rb', line 902 def username @username end |
Instance Method Details
#to_json(options = {}) ⇒ Object
948 949 950 951 952 953 954 |
# File 'lib/models/porcelain.rb', line 948 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 |