class Runcible::Models::GroupExportDistributor

Attributes

http[RW]

required attributes

https[RW]

required attributes

Public Class Methods

new(http = false, https = false, params = {}) click to toggle source

Instantiates a group export distributor.

@param [boolean] http serve the contents over http @param [boolean] https serve the contents over https @param [hash] params additional parameters to send in request @return [Runcible::Extensions::GroupExportDistributor]

Calls superclass method Runcible::Models::Distributor::new
# File lib/runcible/models/group_export_distributor.rb, line 16
def initialize(http = false, https = false, params = {})
  @http = http
  @https = https
  # these two fields are helpful when instantiating a group export
  # distributor via group creation. It saves a few pulp API calls.
  @distributor_type_id = type_id
  @distributor_config = {:http => http, :https => https}
  super(params)
end
type_id() click to toggle source

Distributor Type id

@return [string]

# File lib/runcible/models/group_export_distributor.rb, line 29
def self.type_id
  'group_export_distributor'
end

Public Instance Methods

config() click to toggle source

generate the pulp config for the export distributor

@return [Hash]

# File lib/runcible/models/group_export_distributor.rb, line 36
def config
  to_ret = as_json
  to_ret.delete('auto_publish')
  to_ret.delete('id')
  to_ret
end