Sha256: aadfb88ac9542c4708852ce3241703a4342f405759e8ab6277ce08a0828e2fdd
Contents?: true
Size: 1011 Bytes
Versions: 35
Compression:
Stored size: 1011 Bytes
Contents
require 'redhat_access_lib' require 'forwardable' module RedhatAccess module Telemetry class PortalClient < RedHatSupportLib::TelemetryApi::Client extend Forwardable include RedhatAccess::Telemetry::LookUps UPLOAD_HOST = REDHAT_ACCESS_CONFIG[:telemetry_upload_host] API_HOST = REDHAT_ACCESS_CONFIG[:telemetry_api_host] UPLOAD_URL = "#{UPLOAD_HOST}/r/insights/uploads" STRATA_URL = "#{API_HOST}/r/insights" delegate [:get_machines,:get_auth_opts,:get_current_organization] => :@context def initialize(upload_url, strata_url, creds, context, optional) upload_url = UPLOAD_URL if upload_url.nil? strata_url = STRATA_URL if strata_url.nil? super(upload_url, strata_url, creds, optional) @context = context end # Returns the branch id of the current org/account def get_branch_id organization = get_current_organization return get_branch_id_for_org(organization) end end end end
Version data entries
35 entries across 35 versions & 1 rubygems