@@ -75,17 +75,17 @@ func (a AgentToken) String() string {
75
75
return Stringify (a )
76
76
}
77
77
78
- // ListProjectAgentsOptions represents the available ListProjectAgents () options.
78
+ // ListAgentsOptions represents the available ListAgents () options.
79
79
//
80
80
// GitLab API docs:
81
81
// https://docs.gitlab.com/ee/api/cluster_agents.html#list-the-agents-for-a-project
82
- type ListProjectAgentsOptions ListOptions
82
+ type ListAgentsOptions ListOptions
83
83
84
- // ListProjectAgents returns a list of agents registered for the project.
84
+ // ListAgents returns a list of agents registered for the project.
85
85
//
86
86
// GitLab API docs:
87
87
// 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 ) {
89
89
project , err := parseID (pid )
90
90
if err != nil {
91
91
return nil , nil , err
@@ -131,20 +131,20 @@ func (s *ClusterAgentsService) GetAgent(pid interface{}, id int, options ...Requ
131
131
return a , resp , err
132
132
}
133
133
134
- // RegisterProjectAgentOptions represents the available RegisterProjectAgent ()
134
+ // RegisterAgentOptions represents the available RegisterAgent ()
135
135
// options.
136
136
//
137
137
// GitLab API docs:
138
138
// https://docs.gitlab.com/ee/api/cluster_agents.html#register-an-agent-with-a-project
139
- type RegisterProjectAgentOptions struct {
139
+ type RegisterAgentOptions struct {
140
140
Name * string `url:"name,omitempty" json:"name,omitempty"`
141
141
}
142
142
143
- // RegisterProjectAgent registers an agent to the project.
143
+ // RegisterAgent registers an agent to the project.
144
144
//
145
145
// GitLab API docs:
146
146
// 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 ) {
148
148
project , err := parseID (pid )
149
149
if err != nil {
150
150
return nil , nil , err
0 commit comments