class ONEAccess::API::V1_1::Entitlement::Organization::ProductGroup

Public Class Methods

get_list(contributor_org_id:, page_number: 0, page_size: 20, type: nil) click to toggle source
# File lib/oneaccess/api/v1_1/entitlement/organization/product_group.rb, line 13
def self.get_list(contributor_org_id:, page_number: 0, page_size: 20, type: nil)
  resp = send_get(
    'getList', Query: {
      PageNumber:       page_number,
      PageSize:         page_size,
      ContributorOrgId: contributor_org_id,
      Type:             type,
    }.to_json
  )
  Response::ProductGroupsResponse.from_json(resp.body)
end