Sha256: 710e17b23e7dedab2156638baf0705b47a09dd18a7824d9c4099d7240e9b5bb5
Contents?: true
Size: 1.29 KB
Versions: 6
Compression:
Stored size: 1.29 KB
Contents
# frozen_string_literal: true require 'avm/eac_gitlab_base0/api/node' require 'avm/eac_gitlab_base0/api/project' require 'eac_rest/api' require 'eac_ruby_utils/core_ext' module Avm module EacGitlabBase0 class Api < ::EacRest::Api class Group < ::Avm::EacGitlabBase0::Api::Node FIELDS = %w[id web_url name path description visibility share_with_group_lock require_two_factor_authentication two_factor_grace_period project_creation_level auto_devops_enabled subgroup_creation_level emails_disabled lfs_enabled avatar_url request_access_enabled full_name full_path parent_id].freeze FIELDS.each do |field| define_method field do data.fetch(field) end end def api_prefix "/groups/#{encode_id(id)}" end def to_s full_path end private def members_uncached fetch_entities( "#{api_prefix}/members", ::Avm::EacGitlabBase0::Api::Member ) end def projects_uncached fetch_entities( "#{api_prefix}/projects?order_by=path&sort=asc&per_page=9999", ::Avm::EacGitlabBase0::Api::Project ) end end end end end
Version data entries
6 entries across 6 versions & 2 rubygems