class SDM::BigQuery

Attributes

egress_filter[RW]

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

endpoint[RW]
healthy[RW]

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

id[RW]

Unique identifier of the Resource.

name[RW]

Unique human-readable name of the Resource.

port_override[RW]
private_key[RW]
project[RW]
secret_store_id[RW]

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

tags[RW]

Tags is a map of key, value pairs.

username[RW]

Public Class Methods

new( id:nil \ , name:nil \ , healthy:nil \ , tags:nil \ , secret_store_id:nil \ , egress_filter:nil \ , private_key:nil \ , project:nil \ , port_override:nil \ , endpoint:nil \ , username:nil \ ) click to toggle source
# File lib/models/porcelain.rb, line 1112
                def initialize(
                        id:nil \
,
                        name:nil \
,
                        healthy:nil \
,
                        tags:nil \
,
                        secret_store_id:nil \
,
                        egress_filter: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 tags != nil
                                @tags = tags
                        end
                        if secret_store_id != nil
                                @secret_store_id = secret_store_id
                        end
                        if egress_filter != nil
                                @egress_filter = egress_filter
                        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

Public Instance Methods

to_json(options={}) click to toggle source
# File lib/models/porcelain.rb, line 1169
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