api_helper.rb
def compartments
  id_client
    .list_compartments(
      OCI.config.tenancy,
      limit: 50,
      compartment_id_in_subtree: true
    ).collect(&:data).flatten
end
# Returns the list of compartments in the tenancy
Returns the list of compartments in the tenancy
Returns the list of compartments in the tenancy
def compartments
  id_client
    .list_compartments(
      OCI.config.tenancy,
      limit: 50,
      compartment_id_in_subtree: true
    ).collect(&:data).flatten
end
def compartments id_client . list_compartments ( OCI . config . tenancy , limit : 50 , compartment_id_in_subtree : true ) . collect ( & :data ) . flatten end
Returns the list of compartments in the tenancy
Returns the list of compartments in the tenancy