Sha256: 2acf67e8c1c7548c5e5568844ec8fc352b329eb39f45f4a33ed36fb061a73e82
Contents?: true
Size: 1.13 KB
Versions: 1
Compression:
Stored size: 1.13 KB
Contents
require 'redhat_access_lib' module RedhatAccess module Telemetry class PortalClient < RedHatSupportLib::TelemetryApi::Client include RedhatAccess::Telemetry::LookUps def initialize(upload_url,api_url, creds, context, optional) super(upload_url,api_url, creds, optional) @context = context end def get_machines @context.get_machines end # Returns the branch id of the current org/account def get_branch_id return get_branch_id_for_org(Organization.current) end def get_auth_opts(creds) # #temp implementation########################## # if creds.is_a?(User) and User.current.is_a? RedhatAccess::Authentication::CertUser # opts = get_ssl_options_for_uuid(User.current.login) # elsif creds.is_a?(TelemetryProxyCredentials) # opts = { # :user => creds.username, # :password => creds.password # } # end #end temp implementation###################### #TODO enable below for cert based auth return @context.get_auth_opts() end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
redhat_access-2.0.0 | app/services/redhat_access/telemetry/portal_client.rb |