Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
gitlab_api
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Roman Lacko
gitlab_api
Commits
7fec358f
There was an error fetching the commit references. Please try again later.
Commit
7fec358f
authored
8 years ago
by
Roman Lacko
Browse files
Options
Downloads
Patches
Plain Diff
Update pod-GitLab.md
parent
8cf66d7f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pod-GitLab.md
+30
-20
30 additions, 20 deletions
pod-GitLab.md
with
30 additions
and
20 deletions
pod-GitLab.md
+
30
−
20
View file @
7fec358f
# NAME
GitLab - convenience wrapper for GitLab::API that provides useful constants
GitLab - convenience wrapper for
[
GitLab::API
](
pod-GitLab-api.md
)
that provides useful constants
# SYNOPSIS
use GitLab qw(:utils);
```
{.pl}
use GitLab qw(:utils);
my $gitlab = GitLab::API->new(...);
my $users = $gitlab->users();
my $gitlab = GitLab::API->new(...);
my $users = $gitlab->users();
```
# DESCRIPTION
...
...
@@ -20,34 +22,42 @@ for explanation.
Import with
`:group_visibility`
tag.
10 GROUP_PRIVATE
20 GROUP_INTERNAL
30 GROUP_PUBLIC
| code | constant |
| ----: | ---------------------- |
| 10 |
`GROUP_PRIVATE`
|
| 20 |
`GROUP_INTERNAL`
|
| 30 |
` GROUP_PUBLIC`
|
### Member access
Import with
`:member_access`
tag.
10 MEMBER_GUEST
20 MEMBER_REPORTER
30 MEMBER_DEVELOPER
40 MEMBER_MASTER
50 MEMBER_OWNER
| code | constant |
| ----: | ---------------------- |
| 10 |
`MEMBER_GUEST`
|
| 20 |
`MEMBER_REPORTER`
|
| 30 |
`MEMBER_DEVELOPER`
|
| 40 |
`MEMBER_MASTER`
|
| 50 |
`MEMBER_OWNER`
|
## Utilities
Import with
`:utils`
tag.
-
group
\
_
visibility
\
_
name()
-
`
group_visibility_name()
`
$name = GitLab::group_visibility_name($code)
```{.pl}
$name = GitLab::group_visibility_name($code)
```
Translates a Group Visibility code to its string representation, i.e. _Private_, _Internal_ or _Public_.
If the parameter does not represent a valid GitLab Group Visibility code, returns _Invalid_.
-
member
\
_
access
\
_
name()
-
`
member_access_name()
`
$name = GitLab::member_access_name($code);
```{.pl}
$name = GitLab::member_access_name($code);
```
Translates a Member Access code to its string representation, i.e. _Guest_, _Reporter_, _Developer_, _Master_ and _Owner_.
If the parameter does not represent a valid GitLab Member Access code, returns _Invalid_.
...
...
@@ -62,18 +72,18 @@ Roman Lacko <[xlacko1@fi.muni.cz](https://metacpan.org/pod/xlacko1@fi.muni.cz)>
Complete GitLab API v3 implementation with CLI support.
-
[
GitLab::API
](
https://metacpan.org/
pod
/
GitLab
::
API
)
-
[
GitLab::API
](
pod
-
GitLab
-
API
.md
)
implementation of the [GitLab API](http://docs.gitlab.com/ce/api/) client.
-
[
GitLab::Groups
](
https://metacpan.org/
pod
/
GitLab
::
Groups
)
-
[
GitLab::Groups
](
pod
-
GitLab
-
Groups
.md
)
[GitLab Groups](http://docs.gitlab.com/ce/api/groups.html) methods.
-
[
GitLab::Namespaces
](
https://metacpan.org/
pod
/
GitLab
::
Namespaces
)
-
[
GitLab::Namespaces
](
pod
-
GitLab
-
Namespaces
.md
)
[GitLab Namespaces](http://docs.gitlab.com/ce/api/namespaces.html) methods.
-
[
GitLab::Users
](
https://metacpan.org/
pod
/
GitLab
::
Users
)
-
[
GitLab::Users
](
pod
-
GitLab
-
Users
.md
)
[GitLab Users](http://docs.gitlab.com/ce/api/users.html) methods.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment