Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Roman Lacko
gitlab_api
Commits
7fec358f
Commit
7fec358f
authored
Sep 29, 2016
by
Roman Lacko
Browse files
Update pod-GitLab.md
parent
8cf66d7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
pod-GitLab.md
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.
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment