@@ -75,17 +75,17 @@ func (a AgentToken) String() string {
7575	return  Stringify (a )
7676}
7777
78- // ListProjectAgentsOptions  represents the available ListProjectAgents () options. 
78+ // ListAgentsOptions  represents the available ListAgents () options. 
7979// 
8080// GitLab API docs: 
8181// https://docs.gitlab.com/ee/api/cluster_agents.html#list-the-agents-for-a-project 
82- type  ListProjectAgentsOptions  ListOptions 
82+ type  ListAgentsOptions  ListOptions 
8383
84- // ListProjectAgents  returns a list of agents registered for the project. 
84+ // ListAgents  returns a list of agents registered for the project. 
8585// 
8686// GitLab API docs: 
8787// https://docs.gitlab.com/ee/api/cluster_agents.html#list-the-agents-for-a-project 
88- func  (s  * ClusterAgentsService ) ListProjectAgents (pid  interface {}, opt  * ListProjectAgentsOptions , options  ... RequestOptionFunc ) ([]* Agent , * Response , error ) {
88+ func  (s  * ClusterAgentsService ) ListAgents (pid  interface {}, opt  * ListAgentsOptions , options  ... RequestOptionFunc ) ([]* Agent , * Response , error ) {
8989	project , err  :=  parseID (pid )
9090	if  err  !=  nil  {
9191		return  nil , nil , err 
@@ -131,20 +131,20 @@ func (s *ClusterAgentsService) GetAgent(pid interface{}, id int, options ...Requ
131131	return  a , resp , err 
132132}
133133
134- // RegisterProjectAgentOptions  represents the available RegisterProjectAgent () 
134+ // RegisterAgentOptions  represents the available RegisterAgent () 
135135// options. 
136136// 
137137// GitLab API docs: 
138138// https://docs.gitlab.com/ee/api/cluster_agents.html#register-an-agent-with-a-project 
139- type  RegisterProjectAgentOptions  struct  {
139+ type  RegisterAgentOptions  struct  {
140140	Name  * string  `url:"name,omitempty" json:"name,omitempty"` 
141141}
142142
143- // RegisterProjectAgent  registers an agent to the project. 
143+ // RegisterAgent  registers an agent to the project. 
144144// 
145145// GitLab API docs: 
146146// https://docs.gitlab.com/ee/api/cluster_agents.html#register-an-agent-with-a-project 
147- func  (s  * ClusterAgentsService ) RegisterProjectAgent (pid  interface {}, opt  * RegisterProjectAgentOptions , options  ... RequestOptionFunc ) (* Agent , * Response , error ) {
147+ func  (s  * ClusterAgentsService ) RegisterAgent (pid  interface {}, opt  * RegisterAgentOptions , options  ... RequestOptionFunc ) (* Agent , * Response , error ) {
148148	project , err  :=  parseID (pid )
149149	if  err  !=  nil  {
150150		return  nil , nil , err 
0 commit comments