15
15
namespace Gitlab \Api ;
16
16
17
17
use Symfony \Component \OptionsResolver \Options ;
18
- use Symfony \Component \OptionsResolver \OptionsResolver ;
19
18
20
19
class Registry extends AbstractApi
21
20
{
22
21
/**
23
22
* @see https://docs.gitlab.com/ee/api/container_registry.html#get-details-of-a-single-repository
24
23
*
25
- * @param int|string $repository_id The ID of the registry repository accessible by the authenticated user.
24
+ * @param int|string $repository_id The ID of the registry repository accessible by the authenticated user
26
25
* @param array $parameters {
26
+ *
27
27
* @var bool $tags
28
28
* @var bool $tags_count
29
29
* @var bool $size
30
30
* }
31
+ *
31
32
* @return mixed
32
33
*/
33
34
public function repositories ($ repository_id , array $ parameters = [])
@@ -55,6 +56,7 @@ public function repositories($repository_id, array $parameters = [])
55
56
*
56
57
* @param int|string $project_id
57
58
* @param int $repository_id
59
+ *
58
60
* @return mixed
59
61
*/
60
62
public function repositoryTags ($ project_id , int $ repository_id )
@@ -71,6 +73,7 @@ public function repositoryTags($project_id, int $repository_id)
71
73
* @param int|string $project_id
72
74
* @param int $repository_id
73
75
* @param string $tag_name
76
+ *
74
77
* @return mixed
75
78
*/
76
79
public function repositoryTag ($ project_id , int $ repository_id , string $ tag_name )
@@ -90,6 +93,7 @@ public function repositoryTag($project_id, int $repository_id, string $tag_name)
90
93
* @param int|string $project_id
91
94
* @param int $repository_id
92
95
* @param string $tag_name
96
+ *
93
97
* @return mixed
94
98
*/
95
99
public function removeRepositoryTag ($ project_id , int $ repository_id , string $ tag_name )
@@ -108,11 +112,13 @@ public function removeRepositoryTag($project_id, int $repository_id, string $tag
108
112
* @param int|string $project_id
109
113
* @param int $repository_id
110
114
* @param array $parameters {
115
+ *
111
116
* @var string $name_regex_delete
112
117
* @var string $name_regex_keep
113
118
* @var int $keep_n
114
119
* @var string $older_than
115
120
* }
121
+ *
116
122
* @return mixed
117
123
*/
118
124
public function removeRepositoryTags ($ project_id , int $ repository_id , array $ parameters = [])
@@ -127,7 +133,6 @@ public function removeRepositoryTags($project_id, int $repository_id, array $par
127
133
$ resolver ->setDefined ('older_than ' )
128
134
->setAllowedTypes ('older_than ' , 'string ' );
129
135
130
-
131
136
return $ this ->delete (
132
137
$ this ->getProjectPath (
133
138
$ project_id ,
0 commit comments