class SDM::AKS

Attributes

certificate_authority[RW]
certificate_authority_filename[RW]
client_certificate[RW]
client_certificate_filename[RW]
client_key[RW]
client_key_filename[RW]
healthcheck_namespace[RW]
healthy[RW]

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

hostname[RW]
id[RW]

Unique identifier of the Resource.

name[RW]

Unique human-readable name of the Resource.

port[RW]
tags[RW]

Tags is a map of key, value pairs.

Public Class Methods

new( id:nil \ , name:nil \ , healthy:nil \ , tags:nil \ , hostname:nil \ , port:nil \ , certificate_authority:nil \ , certificate_authority_filename:nil \ , client_certificate:nil \ , client_certificate_filename:nil \ , client_key:nil \ , client_key_filename:nil \ , healthcheck_namespace:nil \ ) click to toggle source
# File lib/models/porcelain.rb, line 2018
                def initialize(
                        id:nil \
,
                        name:nil \
,
                        healthy:nil \
,
                        tags:nil \
,
                        hostname:nil \
,
                        port:nil \
,
                        certificate_authority:nil \
,
                        certificate_authority_filename:nil \
,
                        client_certificate:nil \
,
                        client_certificate_filename:nil \
,
                        client_key:nil \
,
                        client_key_filename:nil \
,
                        healthcheck_namespace: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 hostname != nil
                                @hostname = hostname
                        end
                        if port != nil
                                @port = port
                        end
                        if certificate_authority != nil
                                @certificate_authority = certificate_authority
                        end
                        if certificate_authority_filename != nil
                                @certificate_authority_filename = certificate_authority_filename
                        end
                        if client_certificate != nil
                                @client_certificate = client_certificate
                        end
                        if client_certificate_filename != nil
                                @client_certificate_filename = client_certificate_filename
                        end
                        if client_key != nil
                                @client_key = client_key
                        end
                        if client_key_filename != nil
                                @client_key_filename = client_key_filename
                        end
                        if healthcheck_namespace != nil
                                @healthcheck_namespace = healthcheck_namespace
                        end
                end

Public Instance Methods

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