Skip to content

Commit 4561b33

Browse files
authored
⚙️ Add a nolint directive to the generated files (#83)
<!-- Copyright (C) 2020-2022 Arm Limited or its affiliates and Contributors. All rights reserved. SPDX-License-Identifier: Proprietary --> ### Description <!-- Please add any detail or context that would be useful to a reviewer. --> ### Test Coverage <!-- Please put an `x` in the correct box e.g. `[x]` to indicate the testing coverage of this change. --> - [ ] This change is covered by existing or additional automated tests. - [ ] Manual testing has been performed (and evidence provided) as automated testing was not feasible. - [ ] Additional tests are not required for this change (e.g. documentation update). --------- Co-authored-by: aorabdel <[email protected]>
1 parent a3e62a3 commit 4561b33

14 files changed

+6389
-105
lines changed

changes/20250407153229.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Updated client due to schema changes

changes/20250407155638.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Updated client due to schema changes

changes/20250407162739.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
:gear: Add a global nolint directive to the generated files

client/extension_link_followers.gen.go

Lines changed: 1 addition & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Copyright (C) 2020-2025 Arm Limited or its affiliates and Contributors. All rights reserved.
33
* SPDX-License-Identifier: Apache-2.0
44
*/
5-
5+
// nolint:stylecheck,gocritic,revive
66
package client
77

88
import (
@@ -22,8 +22,6 @@ func (r *ApiGetBuildMessagesRequest) FollowGetBuildMessagesLink(link string) (*B
2222

2323
// Follows a collection link. This function is based on the `GetBuildMessagesExecute` function, with one key difference:
2424
// instead of using a fixed endpoint path, `localVarPath` is defined as the base URL + the `link` provided in the arguments.
25-
//
26-
//nolint:stylecheck,gocritic
2725
func (a *BuildJobsAPIService) FollowGetBuildMessagesLink(r *ApiGetBuildMessagesRequest, link string) (*BuildMessageItem, *http.Response, error) {
2826
var (
2927
localVarHTTPMethod = http.MethodGet
@@ -176,8 +174,6 @@ func (r *ApiListBuildJobRequest) FollowBuildJobLink(link string) (*BuildJobColle
176174

177175
// Follows a collection link. This function is based on the `ListBuildJobExecute` function, with one key difference:
178176
// instead of using a fixed endpoint path, `localVarPath` is defined as the base URL + the `link` provided in the arguments.
179-
//
180-
//nolint:stylecheck,gocritic
181177
func (a *BuildJobsAPIService) FollowBuildJobLink(r *ApiListBuildJobRequest, link string) (*BuildJobCollection, *http.Response, error) {
182178
var (
183179
localVarHTTPMethod = http.MethodGet
@@ -324,8 +320,6 @@ func (r *ApiListBuildOutputManagersRequest) FollowBuildOutputManagersLink(link s
324320

325321
// Follows a collection link. This function is based on the `ListBuildOutputManagersExecute` function, with one key difference:
326322
// instead of using a fixed endpoint path, `localVarPath` is defined as the base URL + the `link` provided in the arguments.
327-
//
328-
//nolint:stylecheck,gocritic
329323
func (a *BuildJobsAPIService) FollowBuildOutputManagersLink(r *ApiListBuildOutputManagersRequest, link string) (*ArtefactManagerCollection, *http.Response, error) {
330324
var (
331325
localVarHTTPMethod = http.MethodGet
@@ -484,8 +478,6 @@ func (r *ApiListCmsisBuildersRequest) FollowCmsisBuildersLink(link string) (*Cms
484478

485479
// Follows a collection link. This function is based on the `ListCmsisBuildersExecute` function, with one key difference:
486480
// instead of using a fixed endpoint path, `localVarPath` is defined as the base URL + the `link` provided in the arguments.
487-
//
488-
//nolint:stylecheck,gocritic
489481
func (a *CMSISBuildersAPIService) FollowCmsisBuildersLink(r *ApiListCmsisBuildersRequest, link string) (*CmsisBuilderCollection, *http.Response, error) {
490482
var (
491483
localVarHTTPMethod = http.MethodGet
@@ -632,8 +624,6 @@ func (r *ApiListCmsisIntellisenseRequest) FollowCmsisIntellisenseLink(link strin
632624

633625
// Follows a collection link. This function is based on the `ListCmsisIntellisenseExecute` function, with one key difference:
634626
// instead of using a fixed endpoint path, `localVarPath` is defined as the base URL + the `link` provided in the arguments.
635-
//
636-
//nolint:stylecheck,gocritic
637627
func (a *CMSISIntellisenseBuildersAPIService) FollowCmsisIntellisenseLink(r *ApiListCmsisIntellisenseRequest, link string) (*CmsisIntellisenseCollection, *http.Response, error) {
638628
var (
639629
localVarHTTPMethod = http.MethodGet
@@ -780,8 +770,6 @@ func (r *ApiListFpgaConnectionsRequest) FollowFpgaConnectionsLink(link string) (
780770

781771
// Follows a collection link. This function is based on the `ListFpgaConnectionsExecute` function, with one key difference:
782772
// instead of using a fixed endpoint path, `localVarPath` is defined as the base URL + the `link` provided in the arguments.
783-
//
784-
//nolint:stylecheck,gocritic
785773
func (a *FPGAConnectionAPIService) FollowFpgaConnectionsLink(r *ApiListFpgaConnectionsRequest, link string) (*FPGAConnectionCollection, *http.Response, error) {
786774
var (
787775
localVarHTTPMethod = http.MethodGet
@@ -928,8 +916,6 @@ func (r *ApiGetFpgaJobMessagesRequest) FollowGetFpgaJobMessagesLink(link string)
928916

929917
// Follows a collection link. This function is based on the `GetFpgaJobMessagesExecute` function, with one key difference:
930918
// instead of using a fixed endpoint path, `localVarPath` is defined as the base URL + the `link` provided in the arguments.
931-
//
932-
//nolint:stylecheck,gocritic
933919
func (a *FPGAJobsAPIService) FollowGetFpgaJobMessagesLink(r *ApiGetFpgaJobMessagesRequest, link string) (*NotificationFeed, *http.Response, error) {
934920
var (
935921
localVarHTTPMethod = http.MethodGet
@@ -1082,8 +1068,6 @@ func (r *ApiListFpgaJobArtefactManagersRequest) FollowFpgaJobArtefactManagersLin
10821068

10831069
// Follows a collection link. This function is based on the `ListFpgaJobArtefactManagersExecute` function, with one key difference:
10841070
// instead of using a fixed endpoint path, `localVarPath` is defined as the base URL + the `link` provided in the arguments.
1085-
//
1086-
//nolint:stylecheck,gocritic
10871071
func (a *FPGAJobsAPIService) FollowFpgaJobArtefactManagersLink(r *ApiListFpgaJobArtefactManagersRequest, link string) (*ArtefactManagerCollection, *http.Response, error) {
10881072
var (
10891073
localVarHTTPMethod = http.MethodGet
@@ -1242,8 +1226,6 @@ func (r *ApiListPayloadsRequest) FollowPayloadsLink(link string) (*FPGAPayloadCo
12421226

12431227
// Follows a collection link. This function is based on the `ListPayloadsExecute` function, with one key difference:
12441228
// instead of using a fixed endpoint path, `localVarPath` is defined as the base URL + the `link` provided in the arguments.
1245-
//
1246-
//nolint:stylecheck,gocritic
12471229
func (a *FPGAPayloadsAPIService) FollowPayloadsLink(r *ApiListPayloadsRequest, link string) (*FPGAPayloadCollection, *http.Response, error) {
12481230
var (
12491231
localVarHTTPMethod = http.MethodGet
@@ -1390,8 +1372,6 @@ func (r *ApiGetGenericWorkJobMessagesRequest) FollowGetGenericWorkJobMessagesLin
13901372

13911373
// Follows a collection link. This function is based on the `GetGenericWorkJobMessagesExecute` function, with one key difference:
13921374
// instead of using a fixed endpoint path, `localVarPath` is defined as the base URL + the `link` provided in the arguments.
1393-
//
1394-
//nolint:stylecheck,gocritic
13951375
func (a *GenericWorkJobsAPIService) FollowGetGenericWorkJobMessagesLink(r *ApiGetGenericWorkJobMessagesRequest, link string) (*NotificationFeed, *http.Response, error) {
13961376
var (
13971377
localVarHTTPMethod = http.MethodGet
@@ -1544,8 +1524,6 @@ func (r *ApiListGenericWorkJobArtefactManagersRequest) FollowGenericWorkJobArtef
15441524

15451525
// Follows a collection link. This function is based on the `ListGenericWorkJobArtefactManagersExecute` function, with one key difference:
15461526
// instead of using a fixed endpoint path, `localVarPath` is defined as the base URL + the `link` provided in the arguments.
1547-
//
1548-
//nolint:stylecheck,gocritic
15491527
func (a *GenericWorkJobsAPIService) FollowGenericWorkJobArtefactManagersLink(r *ApiListGenericWorkJobArtefactManagersRequest, link string) (*ArtefactManagerCollection, *http.Response, error) {
15501528
var (
15511529
localVarHTTPMethod = http.MethodGet
@@ -1704,8 +1682,6 @@ func (r *ApiListGenericWorkJobsRequest) FollowGenericWorkJobsLink(link string) (
17041682

17051683
// Follows a collection link. This function is based on the `ListGenericWorkJobsExecute` function, with one key difference:
17061684
// instead of using a fixed endpoint path, `localVarPath` is defined as the base URL + the `link` provided in the arguments.
1707-
//
1708-
//nolint:stylecheck,gocritic
17091685
func (a *GenericWorkJobsAPIService) FollowGenericWorkJobsLink(r *ApiListGenericWorkJobsRequest, link string) (*GenericWorkJobCollection, *http.Response, error) {
17101686
var (
17111687
localVarHTTPMethod = http.MethodGet
@@ -1852,8 +1828,6 @@ func (r *ApiListGenericWorkersRequest) FollowGenericWorkersLink(link string) (*G
18521828

18531829
// Follows a collection link. This function is based on the `ListGenericWorkersExecute` function, with one key difference:
18541830
// instead of using a fixed endpoint path, `localVarPath` is defined as the base URL + the `link` provided in the arguments.
1855-
//
1856-
//nolint:stylecheck,gocritic
18571831
func (a *GenericWorkersAPIService) FollowGenericWorkersLink(r *ApiListGenericWorkersRequest, link string) (*GenericWorkerCollection, *http.Response, error) {
18581832
var (
18591833
localVarHTTPMethod = http.MethodGet
@@ -2000,8 +1974,6 @@ func (r *ApiGetIntellisenseMessagesRequest) FollowGetIntellisenseMessagesLink(li
20001974

20011975
// Follows a collection link. This function is based on the `GetIntellisenseMessagesExecute` function, with one key difference:
20021976
// instead of using a fixed endpoint path, `localVarPath` is defined as the base URL + the `link` provided in the arguments.
2003-
//
2004-
//nolint:stylecheck,gocritic
20051977
func (a *IntellisenseJobsAPIService) FollowGetIntellisenseMessagesLink(r *ApiGetIntellisenseMessagesRequest, link string) (*IntellisenseMessageItem, *http.Response, error) {
20061978
var (
20071979
localVarHTTPMethod = http.MethodGet
@@ -2154,8 +2126,6 @@ func (r *ApiListIntellisenseJobRequest) FollowIntellisenseJobLink(link string) (
21542126

21552127
// Follows a collection link. This function is based on the `ListIntellisenseJobExecute` function, with one key difference:
21562128
// instead of using a fixed endpoint path, `localVarPath` is defined as the base URL + the `link` provided in the arguments.
2157-
//
2158-
//nolint:stylecheck,gocritic
21592129
func (a *IntellisenseJobsAPIService) FollowIntellisenseJobLink(r *ApiListIntellisenseJobRequest, link string) (*IntellisenseJobCollection, *http.Response, error) {
21602130
var (
21612131
localVarHTTPMethod = http.MethodGet
@@ -2302,8 +2272,6 @@ func (r *ApiListIntellisenseOutputManagersRequest) FollowIntellisenseOutputManag
23022272

23032273
// Follows a collection link. This function is based on the `ListIntellisenseOutputManagersExecute` function, with one key difference:
23042274
// instead of using a fixed endpoint path, `localVarPath` is defined as the base URL + the `link` provided in the arguments.
2305-
//
2306-
//nolint:stylecheck,gocritic
23072275
func (a *IntellisenseJobsAPIService) FollowIntellisenseOutputManagersLink(r *ApiListIntellisenseOutputManagersRequest, link string) (*ArtefactManagerCollection, *http.Response, error) {
23082276
var (
23092277
localVarHTTPMethod = http.MethodGet
@@ -2462,8 +2430,6 @@ func (r *ApiGetVhtRunJobMessagesRequest) FollowGetVhtRunJobMessagesLink(link str
24622430

24632431
// Follows a collection link. This function is based on the `GetVhtRunJobMessagesExecute` function, with one key difference:
24642432
// instead of using a fixed endpoint path, `localVarPath` is defined as the base URL + the `link` provided in the arguments.
2465-
//
2466-
//nolint:stylecheck,gocritic
24672433
func (a *VHTRunJobsAPIService) FollowGetVhtRunJobMessagesLink(r *ApiGetVhtRunJobMessagesRequest, link string) (*NotificationFeed, *http.Response, error) {
24682434
var (
24692435
localVarHTTPMethod = http.MethodGet
@@ -2616,8 +2582,6 @@ func (r *ApiListVhtRunJobsRequest) FollowVhtRunJobsLink(link string) (*VhtRunJob
26162582

26172583
// Follows a collection link. This function is based on the `ListVhtRunJobsExecute` function, with one key difference:
26182584
// instead of using a fixed endpoint path, `localVarPath` is defined as the base URL + the `link` provided in the arguments.
2619-
//
2620-
//nolint:stylecheck,gocritic
26212585
func (a *VHTRunJobsAPIService) FollowVhtRunJobsLink(r *ApiListVhtRunJobsRequest, link string) (*VhtRunJobCollection, *http.Response, error) {
26222586
var (
26232587
localVarHTTPMethod = http.MethodGet
@@ -2764,8 +2728,6 @@ func (r *ApiListFilteredVhtInstancesRequest) FollowFilteredVhtInstancesLink(link
27642728

27652729
// Follows a collection link. This function is based on the `ListFilteredVhtInstancesExecute` function, with one key difference:
27662730
// instead of using a fixed endpoint path, `localVarPath` is defined as the base URL + the `link` provided in the arguments.
2767-
//
2768-
//nolint:stylecheck,gocritic
27692731
func (a *VirtualHardwareTargetAPIService) FollowFilteredVhtInstancesLink(r *ApiListFilteredVhtInstancesRequest, link string) (*VhtInstanceCollection, *http.Response, error) {
27702732
var (
27712733
localVarHTTPMethod = http.MethodGet
@@ -2913,8 +2875,6 @@ func (r *ApiListVhtsRequest) FollowVhtsLink(link string) (*VhtCollection, *http.
29132875

29142876
// Follows a collection link. This function is based on the `ListVhtsExecute` function, with one key difference:
29152877
// instead of using a fixed endpoint path, `localVarPath` is defined as the base URL + the `link` provided in the arguments.
2916-
//
2917-
//nolint:stylecheck,gocritic
29182878
func (a *VirtualHardwareTargetAPIService) FollowVhtsLink(r *ApiListVhtsRequest, link string) (*VhtCollection, *http.Response, error) {
29192879
var (
29202880
localVarHTTPMethod = http.MethodGet
@@ -3061,8 +3021,6 @@ func (r *ApiGetVhtInstanceMessagesRequest) FollowGetVhtInstanceMessagesLink(link
30613021

30623022
// Follows a collection link. This function is based on the `GetVhtInstanceMessagesExecute` function, with one key difference:
30633023
// instead of using a fixed endpoint path, `localVarPath` is defined as the base URL + the `link` provided in the arguments.
3064-
//
3065-
//nolint:stylecheck,gocritic
30663024
func (a *VirtualHardwareTargetInstanceAPIService) FollowGetVhtInstanceMessagesLink(r *ApiGetVhtInstanceMessagesRequest, link string) (*NotificationFeed, *http.Response, error) {
30673025
var (
30683026
localVarHTTPMethod = http.MethodGet
@@ -3215,8 +3173,6 @@ func (r *ApiListVhtInstanceArtefactManagersRequest) FollowVhtInstanceArtefactMan
32153173

32163174
// Follows a collection link. This function is based on the `ListVhtInstanceArtefactManagersExecute` function, with one key difference:
32173175
// instead of using a fixed endpoint path, `localVarPath` is defined as the base URL + the `link` provided in the arguments.
3218-
//
3219-
//nolint:stylecheck,gocritic
32203176
func (a *VirtualHardwareTargetInstanceAPIService) FollowVhtInstanceArtefactManagersLink(r *ApiListVhtInstanceArtefactManagersRequest, link string) (*ArtefactManagerCollection, *http.Response, error) {
32213177
var (
32223178
localVarHTTPMethod = http.MethodGet
@@ -3375,8 +3331,6 @@ func (r *ApiListVhtInstancesRequest) FollowVhtInstancesLink(link string) (*VhtIn
33753331

33763332
// Follows a collection link. This function is based on the `ListVhtInstancesExecute` function, with one key difference:
33773333
// instead of using a fixed endpoint path, `localVarPath` is defined as the base URL + the `link` provided in the arguments.
3378-
//
3379-
//nolint:stylecheck,gocritic
33803334
func (a *VirtualHardwareTargetInstanceAPIService) FollowVhtInstancesLink(r *ApiListVhtInstancesRequest, link string) (*VhtInstanceCollection, *http.Response, error) {
33813335
var (
33823336
localVarHTTPMethod = http.MethodGet
@@ -3523,8 +3477,6 @@ func (r *ApiListWorkspacesRequest) FollowWorkspacesLink(link string) (*Workspace
35233477

35243478
// Follows a collection link. This function is based on the `ListWorkspacesExecute` function, with one key difference:
35253479
// instead of using a fixed endpoint path, `localVarPath` is defined as the base URL + the `link` provided in the arguments.
3526-
//
3527-
//nolint:stylecheck,gocritic
35283480
func (a *WorkspaceAPIService) FollowWorkspacesLink(r *ApiListWorkspacesRequest, link string) (*WorkspaceCollection, *http.Response, error) {
35293481
var (
35303482
localVarHTTPMethod = http.MethodGet
@@ -3671,8 +3623,6 @@ func (r *ApiListWorkspaceSourcesRequest) FollowWorkspaceSourcesLink(link string)
36713623

36723624
// Follows a collection link. This function is based on the `ListWorkspaceSourcesExecute` function, with one key difference:
36733625
// instead of using a fixed endpoint path, `localVarPath` is defined as the base URL + the `link` provided in the arguments.
3674-
//
3675-
//nolint:stylecheck,gocritic
36763626
func (a *WorkspaceSourceAPIService) FollowWorkspaceSourcesLink(r *ApiListWorkspaceSourcesRequest, link string) (*WorkspaceSourceCollection, *http.Response, error) {
36773627
var (
36783628
localVarHTTPMethod = http.MethodGet

extensions/extension_client.go

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/*
2+
* Copyright (C) 2020-2025 Arm Limited or its affiliates and Contributors. All rights reserved.
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
// Package client defines an HTTP client for communicating with the web services.
7+
// It includes the definition of request/response types as well as provides helpers for calling specific helpers.
8+
package client
9+
10+
import (
11+
"context"
12+
"net/http"
13+
"net/url"
14+
)
15+
16+
// *************************************************************************************
17+
// NOTE: this file is not generated.
18+
// It makes some of the low level methods accessible
19+
// *************************************************************************************
20+
21+
// PrepareRequest exposes the client `prepareRequest`
22+
func (c *APIClient) PrepareRequest(
23+
ctx context.Context,
24+
path string, method string,
25+
postBody interface{},
26+
headerParams map[string]string,
27+
queryParams url.Values,
28+
formParams url.Values,
29+
formFiles []formFile) (localVarRequest *http.Request, err error) {
30+
31+
return c.prepareRequest(ctx, path, method, postBody, headerParams, queryParams, formParams, formFiles)
32+
}
33+
34+
// CallAPI exposes the client `callAPI`
35+
func (c *APIClient) CallAPI(request *http.Request) (*http.Response, error) {
36+
return c.callAPI(request)
37+
}

0 commit comments

Comments
 (0)