Skip to content

Commit 4873616

Browse files
committed
renaming PagesProjects to ListPagesProjects
1 parent 3ddd94a commit 4873616

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pages_project.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,10 @@ type pagesProjectListResponse struct {
122122
ResultInfo `json:"result_info"`
123123
}
124124

125-
// PagesProjects returns all Pages projects for an account.
125+
// ListPagesProjects returns all Pages projects for an account.
126126
//
127127
// API reference: https://api.cloudflare.com/#pages-project-get-projects
128-
func (api *API) PagesProjects(ctx context.Context, accountID string, pageOpts PaginationOptions) ([]PagesProject, ResultInfo, error) {
128+
func (api *API) ListPagesProjects(ctx context.Context, accountID string, pageOpts PaginationOptions) ([]PagesProject, ResultInfo, error) {
129129
v := url.Values{}
130130
if pageOpts.PerPage > 0 {
131131
v.Set("per_page", strconv.Itoa(pageOpts.PerPage))

pages_project_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ var (
310310
}
311311
)
312312

313-
func TestPagesProjects(t *testing.T) {
313+
func TestListPagesProjects(t *testing.T) {
314314
setup(UsingAccount("foo"))
315315
defer teardown()
316316

@@ -345,7 +345,7 @@ func TestPagesProjects(t *testing.T) {
345345
Count: 1,
346346
Total: 1,
347347
}
348-
actual, resultInfo, err := client.PagesProjects(context.Background(), "foo", PaginationOptions{})
348+
actual, resultInfo, err := client.ListPagesProjects(context.Background(), "foo", PaginationOptions{})
349349
if assert.NoError(t, err) {
350350
assert.Equal(t, expectedPagesProjects, actual)
351351
assert.Equal(t, expectedResultInfo, resultInfo)

0 commit comments

Comments
 (0)